• Home
  • Raw
  • Download

Lines Matching refs:off

83 		size_t s, loff_t *off)  in picolcd_debug_eeprom_read()  argument
92 if (*off > 0x0ff) in picolcd_debug_eeprom_read()
96 raw_data[0] = *off & 0xff; in picolcd_debug_eeprom_read()
97 raw_data[1] = (*off >> 8) & 0xff; in picolcd_debug_eeprom_read()
99 if (*off + raw_data[2] > 0xff) in picolcd_debug_eeprom_read()
100 raw_data[2] = 0x100 - *off; in picolcd_debug_eeprom_read()
114 *off += ret; in picolcd_debug_eeprom_read()
122 size_t s, loff_t *off) in picolcd_debug_eeprom_write() argument
131 if (*off > 0x0ff) in picolcd_debug_eeprom_write()
135 raw_data[0] = *off & 0xff; in picolcd_debug_eeprom_write()
136 raw_data[1] = (*off >> 8) & 0xff; in picolcd_debug_eeprom_write()
138 if (*off + raw_data[2] > 0xff) in picolcd_debug_eeprom_write()
139 raw_data[2] = 0x100 - *off; in picolcd_debug_eeprom_write()
152 *off += raw_data[2]; in picolcd_debug_eeprom_write()
179 static int _picolcd_flash_setaddr(struct picolcd_data *data, u8 *buf, long off) in _picolcd_flash_setaddr() argument
181 buf[0] = off & 0xff; in _picolcd_flash_setaddr()
182 buf[1] = (off >> 8) & 0xff; in _picolcd_flash_setaddr()
184 buf[2] = (off >> 16) & 0xff; in _picolcd_flash_setaddr()
190 char __user *u, size_t s, loff_t *off) in _picolcd_flash_read() argument
199 len_off = _picolcd_flash_setaddr(data, raw_data, *off); in _picolcd_flash_read()
212 *off += raw_data[len_off]; in _picolcd_flash_read()
226 size_t s, loff_t *off) in picolcd_debug_flash_read() argument
232 if (*off > 0x05fff) in picolcd_debug_flash_read()
234 if (*off + s > 0x05fff) in picolcd_debug_flash_read()
235 s = 0x06000 - *off; in picolcd_debug_flash_read()
238 return _picolcd_flash_read(data, REPORT_BL_READ_MEMORY, u, s, off); in picolcd_debug_flash_read()
240 return _picolcd_flash_read(data, REPORT_READ_MEMORY, u, s, off); in picolcd_debug_flash_read()
245 loff_t *off) in _picolcd_flash_erase64() argument
252 if (*off & 0x3f) in _picolcd_flash_erase64()
255 len_off = _picolcd_flash_setaddr(data, raw_data, *off); in _picolcd_flash_erase64()
272 const char __user *u, size_t s, loff_t *off) in _picolcd_flash_write() argument
281 len_off = _picolcd_flash_setaddr(data, raw_data, *off); in _picolcd_flash_write()
295 *off += raw_data[len_off]; in _picolcd_flash_write()
309 size_t s, loff_t *off) in picolcd_debug_flash_write() argument
317 if (*off > 0x5fff) in picolcd_debug_flash_write()
321 if (*off & 0x3f) in picolcd_debug_flash_write()
333 err = _picolcd_flash_erase64(data, report_erase, off); in picolcd_debug_flash_write()
336 err = _picolcd_flash_write(data, report_write, u, 64, off); in picolcd_debug_flash_write()
340 *off += err; in picolcd_debug_flash_write()