Home
last modified time | relevance | path

Searched refs:hdesc (Results 1 – 8 of 8) sorted by relevance

/linux-6.6.21/drivers/hid/i2c-hid/
Di2c-hid-core.c95 struct i2c_hid_desc hdesc; /* the HID Descriptor */ member
244 *(__le16 *)ihid->cmdbuf = ihid->hdesc.wCommandRegister; in i2c_hid_get_report()
255 put_unaligned_le16(le16_to_cpu(ihid->hdesc.wDataRegister), in i2c_hid_get_report()
330 if (!do_set && le16_to_cpu(ihid->hdesc.wMaxOutputLength) == 0) in i2c_hid_set_or_send_report()
335 *(__le16 *)ihid->cmdbuf = ihid->hdesc.wCommandRegister; in i2c_hid_set_or_send_report()
346 put_unaligned_le16(le16_to_cpu(ihid->hdesc.wDataRegister), in i2c_hid_set_or_send_report()
354 *(__le16 *)ihid->cmdbuf = ihid->hdesc.wOutputRegister; in i2c_hid_set_or_send_report()
376 *(__le16 *)ihid->cmdbuf = ihid->hdesc.wCommandRegister; in i2c_hid_set_power_command()
437 *(__le16 *)ihid->cmdbuf = ihid->hdesc.wCommandRegister; in i2c_hid_execute_reset()
506 u16 size = le16_to_cpu(ihid->hdesc.wMaxInputLength); in i2c_hid_get_input()
[all …]
/linux-6.6.21/drivers/staging/greybus/
Dhid.c23 struct gb_hid_desc_response hdesc; member
39 0, &ghid->hdesc, sizeof(ghid->hdesc)); in gb_hid_get_desc()
52 le16_to_cpu(ghid->hdesc.wReportDescLength)); in gb_hid_get_report_desc()
286 rsize = le16_to_cpu(ghid->hdesc.wReportDescLength); in gb_hid_parse()
403 hid->version = le16_to_cpu(ghid->hdesc.bcdHID); in gb_hid_init()
404 hid->vendor = le16_to_cpu(ghid->hdesc.wVendorID); in gb_hid_init()
405 hid->product = le16_to_cpu(ghid->hdesc.wProductID); in gb_hid_init()
406 hid->country = ghid->hdesc.bCountryCode; in gb_hid_init()
/linux-6.6.21/arch/sparc/kernel/
Dsmp_64.c293 struct hvtramp_descr *hdesc; in ldom_startcpu_cpuid() local
300 hdesc = kzalloc(sizeof(*hdesc) + in ldom_startcpu_cpuid()
304 if (!hdesc) { in ldom_startcpu_cpuid()
309 *descrp = hdesc; in ldom_startcpu_cpuid()
311 hdesc->cpu = cpu; in ldom_startcpu_cpuid()
312 hdesc->num_mappings = num_kernel_image_mappings; in ldom_startcpu_cpuid()
316 hdesc->fault_info_va = (unsigned long) &tb->fault_info; in ldom_startcpu_cpuid()
317 hdesc->fault_info_pa = kimage_addr_to_ra(&tb->fault_info); in ldom_startcpu_cpuid()
319 hdesc->thread_reg = thread_reg; in ldom_startcpu_cpuid()
324 for (i = 0; i < hdesc->num_mappings; i++) { in ldom_startcpu_cpuid()
[all …]
/linux-6.6.21/drivers/hid/usbhid/
Dhid-core.c984 struct hid_descriptor *hdesc; in usbhid_parse() local
1005 if (usb_get_extra_descriptor(interface, HID_DT_HID, &hdesc) && in usbhid_parse()
1007 usb_get_extra_descriptor(&interface->endpoint[0], HID_DT_HID, &hdesc))) { in usbhid_parse()
1012 if (hdesc->bLength < sizeof(struct hid_descriptor)) { in usbhid_parse()
1017 hid->version = le16_to_cpu(hdesc->bcdHID); in usbhid_parse()
1018 hid->country = hdesc->bCountryCode; in usbhid_parse()
1020 num_descriptors = min_t(int, hdesc->bNumDescriptors, in usbhid_parse()
1021 (hdesc->bLength - offset) / sizeof(struct hid_class_descriptor)); in usbhid_parse()
1024 if (hdesc->desc[n].bDescriptorType == HID_DT_REPORT) in usbhid_parse()
1025 rsize = le16_to_cpu(hdesc->desc[n].wDescriptorLength); in usbhid_parse()
/linux-6.6.21/include/linux/
Dhte.h174 const struct hte_ts_desc *hdesc);
/linux-6.6.21/drivers/gpio/
Dgpiolib-cdev.c530 struct hte_ts_desc hdesc; member
747 struct hte_ts_desc *hdesc = &line->hdesc; in hte_edge_setup() local
760 hte_init_line_attr(hdesc, desc_to_gpio(line->desc), flags, NULL, in hte_edge_setup()
763 ret = hte_ts_get(NULL, hdesc, 0); in hte_edge_setup()
767 return hte_request_ts_ns(hdesc, process_hw_ts, process_hw_ts_thread, in hte_edge_setup()
1022 hte_ts_put(&line->hdesc); in edge_detector_stop()
/linux-6.6.21/drivers/hte/
Dhte-tegra194.c641 const struct hte_ts_desc *hdesc) in tegra_hte_match_from_linedata() argument
648 return hte_dev->c == gpiod_to_chip(hdesc->attr.line_data); in tegra_hte_match_from_linedata()
/linux-6.6.21/drivers/dma/ppc4xx/
Dadma.c3239 struct ppc440spe_adma_desc_slot *hdesc, in ppc440spe_adma_dma2rxor_prep_src() argument
3244 struct ppc440spe_adma_desc_slot *desc = hdesc; in ppc440spe_adma_dma2rxor_prep_src()
3248 desc = list_entry(hdesc->chain_node.next, in ppc440spe_adma_dma2rxor_prep_src()