Lines Matching refs:memAddr
119 unsigned short memAddr; in inv_dmpkey_supported() local
126 memAddr = sGetAddress(key); in inv_dmpkey_supported()
127 if (memAddr >= 0xffff) { in inv_dmpkey_supported()
732 unsigned char memAddr, in inv_get_mpu_memory_one_bank() argument
739 ((memAddr + length) > MPU_MEM_BANK_SIZE) || (NULL == buffer)) { in inv_get_mpu_memory_one_bank()
744 memcpy(buffer, &mldlCfg.ram[bank][memAddr], length); in inv_get_mpu_memory_one_bank()
748 ((bank << 8) | memAddr), length, buffer); in inv_get_mpu_memory_one_bank()
777 unsigned short memAddr, in inv_set_mpu_memory_one_bank() argument
784 if ((bank >= MPU_MEM_NUM_RAM_BANKS) || (memAddr >= MPU_MEM_BANK_SIZE) || in inv_set_mpu_memory_one_bank()
785 ((memAddr + length) > MPU_MEM_BANK_SIZE) || (NULL == buffer)) { in inv_set_mpu_memory_one_bank()
789 different = memcmp(&mldlCfg.ram[bank][memAddr], buffer, length); in inv_set_mpu_memory_one_bank()
790 memcpy(&mldlCfg.ram[bank][memAddr], buffer, length); in inv_set_mpu_memory_one_bank()
793 ((bank << 8) | memAddr), length, buffer); in inv_set_mpu_memory_one_bank()
827 unsigned short memAddr; in inv_get_mpu_memory() local
833 memAddr = sGetAddress(key); in inv_get_mpu_memory()
834 if (memAddr >= 0xffff) in inv_get_mpu_memory()
836 bank = memAddr >> 8; // Get Bank in inv_get_mpu_memory()
837 memAddr &= 0xff; in inv_get_mpu_memory()
839 while (memAddr + length > MPU_MEM_BANK_SIZE) { in inv_get_mpu_memory()
841 unsigned short sub_length = MPU_MEM_BANK_SIZE - memAddr; in inv_get_mpu_memory()
842 result = inv_get_mpu_memory_one_bank(bank, (unsigned char)memAddr, in inv_get_mpu_memory()
849 memAddr = 0; in inv_get_mpu_memory()
851 result = inv_get_mpu_memory_one_bank(bank, (unsigned char)memAddr, in inv_get_mpu_memory()
884 unsigned short memAddr; in inv_set_mpu_memory() local
891 memAddr = sGetAddress(key); in inv_set_mpu_memory()
893 if (memAddr >= 0xffff) { in inv_set_mpu_memory()
898 bank = (unsigned char)(memAddr >> 8); in inv_set_mpu_memory()
899 memAddr &= 0xff; in inv_set_mpu_memory()
901 while (memAddr + length > MPU_MEM_BANK_SIZE) { in inv_set_mpu_memory()
903 unsigned short sub_length = MPU_MEM_BANK_SIZE - memAddr; in inv_set_mpu_memory()
905 result = inv_set_mpu_memory_one_bank(bank, memAddr, sub_length, buffer); in inv_set_mpu_memory()
914 memAddr = 0; in inv_set_mpu_memory()
916 result = inv_set_mpu_memory_one_bank(bank, memAddr, length, buffer); in inv_set_mpu_memory()
941 unsigned short memAddr = 0; in inv_load_dmp() local
954 inv_set_mpu_memory_one_bank(memAddr >> 8, memAddr & 0xff, toWrite, in inv_load_dmp()
962 memAddr += toWrite; in inv_load_dmp()