• Home
  • Raw
  • Download

Lines Matching refs:report

73 	u8 report;		/* CP2112_SMBUS_CONFIG */  member
84 u8 report; /* CP2112_USB_CONFIG */ member
97 u8 report; /* CP2112_DATA_READ_REQUEST */ member
103 u8 report; /* CP2112_DATA_WRITE_READ_REQUEST */ member
111 u8 report; /* CP2112_DATA_WRITE_REQUEST */ member
118 u8 report; /* CP2112_DATA_READ_FORCE_SEND */ member
123 u8 report; /* CP2112_TRANSFER_STATUS_RESPONSE */ member
132 u8 report; /* CP2112_*_STRING */ member
357 struct cp2112_force_read_report report; in cp2112_read() local
362 report.report = CP2112_DATA_READ_FORCE_SEND; in cp2112_read()
363 report.length = cpu_to_be16(size); in cp2112_read()
367 ret = cp2112_hid_output(hdev, &report.report, sizeof(report), in cp2112_read()
390 struct cp2112_read_req_report *report = buf; in cp2112_read_req() local
395 report->report = CP2112_DATA_READ_REQUEST; in cp2112_read_req()
396 report->slave_address = slave_address << 1; in cp2112_read_req()
397 report->length = cpu_to_be16(length); in cp2112_read_req()
398 return sizeof(*report); in cp2112_read_req()
404 struct cp2112_write_read_req_report *report = buf; in cp2112_write_read_req() local
407 || data_length > sizeof(report->target_address) - 1) in cp2112_write_read_req()
410 report->report = CP2112_DATA_WRITE_READ_REQUEST; in cp2112_write_read_req()
411 report->slave_address = slave_address << 1; in cp2112_write_read_req()
412 report->length = cpu_to_be16(length); in cp2112_write_read_req()
413 report->target_address_length = data_length + 1; in cp2112_write_read_req()
414 report->target_address[0] = command; in cp2112_write_read_req()
415 memcpy(&report->target_address[1], data, data_length); in cp2112_write_read_req()
422 struct cp2112_write_req_report *report = buf; in cp2112_write_req() local
424 if (data_length > sizeof(report->data) - 1) in cp2112_write_req()
427 report->report = CP2112_DATA_WRITE_REQUEST; in cp2112_write_req()
428 report->slave_address = slave_address << 1; in cp2112_write_req()
429 report->length = data_length + 1; in cp2112_write_req()
430 report->data[0] = command; in cp2112_write_req()
431 memcpy(&report->data[1], data, data_length); in cp2112_write_req()
438 struct cp2112_write_req_report *report = buf; in cp2112_i2c_write_req() local
440 if (data_length > sizeof(report->data)) in cp2112_i2c_write_req()
443 report->report = CP2112_DATA_WRITE_REQUEST; in cp2112_i2c_write_req()
444 report->slave_address = slave_address << 1; in cp2112_i2c_write_req()
445 report->length = data_length; in cp2112_i2c_write_req()
446 memcpy(report->data, data, data_length); in cp2112_i2c_write_req()
454 struct cp2112_write_read_req_report *report = buf; in cp2112_i2c_write_read_req() local
457 addr_length > sizeof(report->target_address)) in cp2112_i2c_write_read_req()
460 report->report = CP2112_DATA_WRITE_READ_REQUEST; in cp2112_i2c_write_read_req()
461 report->slave_address = slave_address << 1; in cp2112_i2c_write_read_req()
462 report->length = cpu_to_be16(read_length); in cp2112_i2c_write_read_req()
463 report->target_address_length = addr_length; in cp2112_i2c_write_read_req()
464 memcpy(report->target_address, addr, addr_length); in cp2112_i2c_write_read_req()
789 BUG_ON(cfg->report != CP2112_USB_CONFIG); in cp2112_set_usb_config()
883 unsigned char report; member
893 struct cp2112_string_report report; in pstr_store() local
896 memset(&report, 0, sizeof(report)); in pstr_store()
899 report.string, ARRAY_SIZE(report.string)); in pstr_store()
900 report.report = attr->report; in pstr_store()
901 report.length = ret * sizeof(report.string[0]) + 2; in pstr_store()
902 report.type = USB_DT_STRING; in pstr_store()
904 ret = cp2112_hid_output(hdev, &report.report, report.length + 1, in pstr_store()
906 if (ret != report.length + 1) { in pstr_store()
924 struct cp2112_string_report report; in pstr_show() local
928 ret = cp2112_hid_get(hdev, attr->report, &report.report, in pstr_show()
929 sizeof(report) - 1, HID_FEATURE_REPORT); in pstr_show()
938 if (report.length < 2) { in pstr_show()
940 kattr->attr.name, report.length); in pstr_show()
944 length = report.length > ret - 1 ? ret - 1 : report.length; in pstr_show()
945 length = (length - 2) / sizeof(report.string[0]); in pstr_show()
946 ret = utf16s_to_utf8s(report.string, length, UTF16_LITTLE_ENDIAN, buf, in pstr_show()
955 .report = _report, \
1159 static int cp2112_raw_event(struct hid_device *hdev, struct hid_report *report, in cp2112_raw_event() argument