Lines Matching refs:memAddr
119 unsigned short memAddr;
126 memAddr = sGetAddress(key);
127 if (memAddr >= 0xffff) {
723 * @param memAddr Starting address for write.
732 unsigned char memAddr,
738 //(memAddr >= MPU_MEM_BANK_SIZE) || always 0, memAddr is an u_char, therefore limited to 255
739 ((memAddr + length) > MPU_MEM_BANK_SIZE) || (NULL == buffer)) {
744 memcpy(buffer, &mldlCfg.ram[bank][memAddr], length);
748 ((bank << 8) | memAddr), length, buffer);
769 * @param memAddr Starting address for write.
777 unsigned short memAddr,
784 if ((bank >= MPU_MEM_NUM_RAM_BANKS) || (memAddr >= MPU_MEM_BANK_SIZE) ||
785 ((memAddr + length) > MPU_MEM_BANK_SIZE) || (NULL == buffer)) {
789 different = memcmp(&mldlCfg.ram[bank][memAddr], buffer, length);
790 memcpy(&mldlCfg.ram[bank][memAddr], buffer, length);
793 ((bank << 8) | memAddr), length, buffer);
827 unsigned short memAddr;
833 memAddr = sGetAddress(key);
834 if (memAddr >= 0xffff)
836 bank = memAddr >> 8; // Get Bank
837 memAddr &= 0xff;
839 while (memAddr + length > MPU_MEM_BANK_SIZE) {
841 unsigned short sub_length = MPU_MEM_BANK_SIZE - memAddr;
842 result = inv_get_mpu_memory_one_bank(bank, (unsigned char)memAddr,
849 memAddr = 0;
851 result = inv_get_mpu_memory_one_bank(bank, (unsigned char)memAddr,
884 unsigned short memAddr;
891 memAddr = sGetAddress(key);
893 if (memAddr >= 0xffff) {
898 bank = (unsigned char)(memAddr >> 8);
899 memAddr &= 0xff;
901 while (memAddr + length > MPU_MEM_BANK_SIZE) {
903 unsigned short sub_length = MPU_MEM_BANK_SIZE - memAddr;
905 result = inv_set_mpu_memory_one_bank(bank, memAddr, sub_length, buffer);
914 memAddr = 0;
916 result = inv_set_mpu_memory_one_bank(bank, memAddr, length, buffer);
941 unsigned short memAddr = 0;
954 inv_set_mpu_memory_one_bank(memAddr >> 8, memAddr & 0xff, toWrite,
962 memAddr += toWrite;