Lines Matching refs:resp
86 struct picolcd_pending *resp; in picolcd_debug_eeprom_read() local
101 resp = picolcd_send_and_wait(data->hdev, REPORT_EE_READ, raw_data, in picolcd_debug_eeprom_read()
103 if (!resp) in picolcd_debug_eeprom_read()
106 if (resp->in_report && resp->in_report->id == REPORT_EE_DATA) { in picolcd_debug_eeprom_read()
108 ret = resp->raw_data[2]; in picolcd_debug_eeprom_read()
111 if (copy_to_user(u, resp->raw_data+3, ret)) in picolcd_debug_eeprom_read()
117 kfree(resp); in picolcd_debug_eeprom_read()
125 struct picolcd_pending *resp; in picolcd_debug_eeprom_write() local
143 resp = picolcd_send_and_wait(data->hdev, REPORT_EE_WRITE, raw_data, in picolcd_debug_eeprom_write()
146 if (!resp) in picolcd_debug_eeprom_write()
149 if (resp->in_report && resp->in_report->id == REPORT_EE_DATA) { in picolcd_debug_eeprom_write()
151 if (memcmp(raw_data, resp->raw_data, 3+raw_data[2]) == 0) { in picolcd_debug_eeprom_write()
156 kfree(resp); in picolcd_debug_eeprom_write()
192 struct picolcd_pending *resp; in _picolcd_flash_read() local
201 resp = picolcd_send_and_wait(data->hdev, report_id, raw_data, len_off+1); in _picolcd_flash_read()
202 if (!resp || !resp->in_report) in _picolcd_flash_read()
204 if (resp->in_report->id == REPORT_MEMORY || in _picolcd_flash_read()
205 resp->in_report->id == REPORT_BL_READ_MEMORY) { in _picolcd_flash_read()
206 if (memcmp(raw_data, resp->raw_data, len_off+1) != 0) in _picolcd_flash_read()
208 if (copy_to_user(u+ret, resp->raw_data+len_off+1, raw_data[len_off])) { in _picolcd_flash_read()
218 kfree(resp); in _picolcd_flash_read()
247 struct picolcd_pending *resp; in _picolcd_flash_erase64() local
256 resp = picolcd_send_and_wait(data->hdev, report_id, raw_data, len_off); in _picolcd_flash_erase64()
257 if (!resp || !resp->in_report) in _picolcd_flash_erase64()
259 if (resp->in_report->id == REPORT_MEMORY || in _picolcd_flash_erase64()
260 resp->in_report->id == REPORT_BL_ERASE_MEMORY) { in _picolcd_flash_erase64()
261 if (memcmp(raw_data, resp->raw_data, len_off) != 0) in _picolcd_flash_erase64()
266 kfree(resp); in _picolcd_flash_erase64()
274 struct picolcd_pending *resp; in _picolcd_flash_write() local
287 resp = picolcd_send_and_wait(data->hdev, report_id, raw_data, in _picolcd_flash_write()
289 if (!resp || !resp->in_report) in _picolcd_flash_write()
291 if (resp->in_report->id == REPORT_MEMORY || in _picolcd_flash_write()
292 resp->in_report->id == REPORT_BL_WRITE_MEMORY) { in _picolcd_flash_write()
293 if (memcmp(raw_data, resp->raw_data, len_off+1+raw_data[len_off]) != 0) in _picolcd_flash_write()
301 kfree(resp); in _picolcd_flash_write()