Searched refs:len_off (Results 1 - 2 of 2) sorted by relevance
/linux-4.4.14/drivers/hid/ |
H A D | hid-picolcd_debugfs.c | 195 int len_off, err = -EIO; _picolcd_flash_read() local 199 len_off = _picolcd_flash_setaddr(data, raw_data, *off); _picolcd_flash_read() 200 raw_data[len_off] = s > 32 ? 32 : s; _picolcd_flash_read() 201 resp = picolcd_send_and_wait(data->hdev, report_id, raw_data, len_off+1); _picolcd_flash_read() 206 if (memcmp(raw_data, resp->raw_data, len_off+1) != 0) _picolcd_flash_read() 208 if (copy_to_user(u+ret, resp->raw_data+len_off+1, raw_data[len_off])) { _picolcd_flash_read() 212 *off += raw_data[len_off]; _picolcd_flash_read() 213 s -= raw_data[len_off]; _picolcd_flash_read() 214 ret += raw_data[len_off]; _picolcd_flash_read() 249 int len_off; _picolcd_flash_erase64() local 255 len_off = _picolcd_flash_setaddr(data, raw_data, *off); _picolcd_flash_erase64() 256 resp = picolcd_send_and_wait(data->hdev, report_id, raw_data, len_off); _picolcd_flash_erase64() 261 if (memcmp(raw_data, resp->raw_data, len_off) != 0) _picolcd_flash_erase64() 277 int len_off, err = -EIO; _picolcd_flash_write() local 281 len_off = _picolcd_flash_setaddr(data, raw_data, *off); _picolcd_flash_write() 282 raw_data[len_off] = s > 32 ? 32 : s; _picolcd_flash_write() 283 if (copy_from_user(raw_data+len_off+1, u, raw_data[len_off])) { _picolcd_flash_write() 288 len_off+1+raw_data[len_off]); _picolcd_flash_write() 293 if (memcmp(raw_data, resp->raw_data, len_off+1+raw_data[len_off]) != 0) _picolcd_flash_write() 295 *off += raw_data[len_off]; _picolcd_flash_write() 296 s -= raw_data[len_off]; _picolcd_flash_write() 297 ret += raw_data[len_off]; _picolcd_flash_write()
|
/linux-4.4.14/tools/testing/selftests/net/ |
H A D | psock_fanout.c | 100 const int len_off = __builtin_offsetof(struct __sk_buff, len); sock_fanout_set_ebpf() local 103 { BPF_LDX | BPF_W | BPF_MEM, 0, 6, len_off, 0 }, sock_fanout_set_ebpf()
|
Completed in 103 milliseconds