Lines Matching defs:resp
76 struct picolcd_pending *resp;
91 resp = picolcd_send_and_wait(data->hdev, REPORT_EE_READ, raw_data,
93 if (!resp)
96 if (resp->in_report && resp->in_report->id == REPORT_EE_DATA) {
98 ret = resp->raw_data[2];
101 if (copy_to_user(u, resp->raw_data+3, ret))
107 kfree(resp);
115 struct picolcd_pending *resp;
133 resp = picolcd_send_and_wait(data->hdev, REPORT_EE_WRITE, raw_data,
136 if (!resp)
139 if (resp->in_report && resp->in_report->id == REPORT_EE_DATA) {
141 if (memcmp(raw_data, resp->raw_data, 3+raw_data[2]) == 0) {
146 kfree(resp);
182 struct picolcd_pending *resp;
191 resp = picolcd_send_and_wait(data->hdev, report_id, raw_data, len_off+1);
192 if (!resp || !resp->in_report)
194 if (resp->in_report->id == REPORT_MEMORY ||
195 resp->in_report->id == REPORT_BL_READ_MEMORY) {
196 if (memcmp(raw_data, resp->raw_data, len_off+1) != 0)
198 if (copy_to_user(u+ret, resp->raw_data+len_off+1, raw_data[len_off])) {
208 kfree(resp);
237 struct picolcd_pending *resp;
246 resp = picolcd_send_and_wait(data->hdev, report_id, raw_data, len_off);
247 if (!resp || !resp->in_report)
249 if (resp->in_report->id == REPORT_MEMORY ||
250 resp->in_report->id == REPORT_BL_ERASE_MEMORY) {
251 if (memcmp(raw_data, resp->raw_data, len_off) != 0)
256 kfree(resp);
264 struct picolcd_pending *resp;
277 resp = picolcd_send_and_wait(data->hdev, report_id, raw_data,
279 if (!resp || !resp->in_report)
281 if (resp->in_report->id == REPORT_MEMORY ||
282 resp->in_report->id == REPORT_BL_WRITE_MEMORY) {
283 if (memcmp(raw_data, resp->raw_data, len_off+1+raw_data[len_off]) != 0)
291 kfree(resp);