Lines Matching defs:off
73 size_t s, loff_t *off)
82 if (*off > 0x0ff)
86 raw_data[0] = *off & 0xff;
87 raw_data[1] = (*off >> 8) & 0xff;
89 if (*off + raw_data[2] > 0xff)
90 raw_data[2] = 0x100 - *off;
104 *off += ret;
112 size_t s, loff_t *off)
121 if (*off > 0x0ff)
125 raw_data[0] = *off & 0xff;
126 raw_data[1] = (*off >> 8) & 0xff;
128 if (*off + raw_data[2] > 0xff)
129 raw_data[2] = 0x100 - *off;
142 *off += raw_data[2];
169 static int _picolcd_flash_setaddr(struct picolcd_data *data, u8 *buf, long off)
171 buf[0] = off & 0xff;
172 buf[1] = (off >> 8) & 0xff;
174 buf[2] = (off >> 16) & 0xff;
180 char __user *u, size_t s, loff_t *off)
189 len_off = _picolcd_flash_setaddr(data, raw_data, *off);
202 *off += raw_data[len_off];
216 size_t s, loff_t *off)
222 if (*off > 0x05fff)
224 if (*off + s > 0x05fff)
225 s = 0x06000 - *off;
228 return _picolcd_flash_read(data, REPORT_BL_READ_MEMORY, u, s, off);
230 return _picolcd_flash_read(data, REPORT_READ_MEMORY, u, s, off);
235 loff_t *off)
242 if (*off & 0x3f)
245 len_off = _picolcd_flash_setaddr(data, raw_data, *off);
262 const char __user *u, size_t s, loff_t *off)
271 len_off = _picolcd_flash_setaddr(data, raw_data, *off);
285 *off += raw_data[len_off];
299 size_t s, loff_t *off)
307 if (*off > 0x5fff)
311 if (*off & 0x3f)
323 err = _picolcd_flash_erase64(data, report_erase, off);
326 err = _picolcd_flash_write(data, report_write, u, 64, off);
330 *off += err;