/linux-master/drivers/hid/ |
H A D | hid-uclogic-params.h | 184 struct hid_device *hdev; member in struct:uclogic_raw_event_hook 260 struct hid_device *hdev); 271 extern void uclogic_params_hid_dbg(const struct hid_device *hdev,
|
H A D | hid-mcp2221.c | 94 struct hid_device *hdev; member in struct:mcp2221 139 ret = hid_hw_output_report(mcp->hdev, buf, len); 359 hid_hw_power(mcp->hdev, PM_HINT_FULLON); 402 hid_hw_power(mcp->hdev, PM_HINT_NORMAL); 461 hid_hw_power(mcp->hdev, PM_HINT_FULLON); 590 hid_hw_power(mcp->hdev, PM_HINT_NORMAL); 754 static int mcp2221_raw_event(struct hid_device *hdev, argument 758 struct mcp2221 *mcp = hid_get_drvdata(hdev); 938 struct hid_device *hdev = ptr; local 940 hid_hw_close(hdev); 945 mcp2221_remove(struct hid_device *hdev) argument 1124 mcp2221_probe(struct hid_device *hdev, const struct hid_device_id *id) argument [all...] |
H A D | hid-kye.c | 362 static __u8 *kye_consumer_control_fixup(struct hid_device *hdev, __u8 *rdesc, argument 377 hid_info(hdev, "fixing up %s report descriptor\n", device_name); 402 static __u8 *kye_tablet_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) argument 408 hid_warn(hdev, 414 if (hdev->product == info->product) 419 hid_err(hdev, "tablet unknown, someone forget to add kye_tablet_info entry?\n"); 445 hid_err(hdev, "control rdesc unexpectedly large"); 456 static __u8 *kye_report_fixup(struct hid_device *hdev, __u8 *rdesc, argument 459 switch (hdev->product) { 474 hid_info(hdev, 515 kye_tablet_enable(struct hid_device *hdev) argument 562 kye_probe(struct hid_device *hdev, const struct hid_device_id *id) argument [all...] |
H A D | hid-pl.c | 178 static int pl_probe(struct hid_device *hdev, const struct hid_device_id *id) argument 183 hdev->quirks |= HID_QUIRK_MULTI_INPUT; 185 ret = hid_parse(hdev); 187 hid_err(hdev, "parse failed\n"); 191 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF); 193 hid_err(hdev, "hw start failed\n"); 197 plff_init(hdev);
|
H A D | hid-sjoy.c | 118 static int sjoy_probe(struct hid_device *hdev, const struct hid_device_id *id) argument 122 hdev->quirks |= id->driver_data; 124 ret = hid_parse(hdev); 126 hid_err(hdev, "parse failed\n"); 130 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF); 132 hid_err(hdev, "hw start failed\n"); 136 sjoyff_init(hdev);
|
H A D | hid-picolcd_cir.c | 108 rdev->device_name = data->hdev->name; 109 rdev->input_phys = data->hdev->phys; 110 rdev->input_id.bustype = data->hdev->bus; 111 rdev->input_id.vendor = data->hdev->vendor; 112 rdev->input_id.product = data->hdev->product; 113 rdev->input_id.version = data->hdev->version; 114 rdev->dev.parent = &data->hdev->dev;
|
H A D | hid-razer.c | 44 static int razer_input_mapping(struct hid_device *hdev, argument 76 static int razer_probe(struct hid_device *hdev, const struct hid_device_id *id) argument 81 ret = hid_parse(hdev); 89 if (hdev->type == HID_TYPE_USBMOUSE) { 94 ret = hid_hw_raw_request(hdev, 0, buf, RAZER_BLACKWIDOW_TRANSFER_BUF_SIZE, 97 hid_err(hdev, "failed to enable macro keys: %d\n", ret); 102 return hid_hw_start(hdev, HID_CONNECT_DEFAULT);
|
H A D | hid-roccat-pyra.c | 396 static int pyra_init_specials(struct hid_device *hdev) argument 398 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); 408 hid_err(hdev, "can't alloc device descriptor\n"); 411 hid_set_drvdata(hdev, pyra); 415 hid_err(hdev, "couldn't init struct pyra_device\n"); 419 retval = roccat_connect(&pyra_class, hdev, 422 hid_err(hdev, "couldn't init char dev\n"); 428 hid_set_drvdata(hdev, NULL); 437 static void pyra_remove_specials(struct hid_device *hdev) argument 439 struct usb_interface *intf = to_usb_interface(hdev 451 pyra_probe(struct hid_device *hdev, const struct hid_device_id *id) argument 483 pyra_remove(struct hid_device *hdev) argument 547 pyra_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) argument [all...] |
H A D | hid-roccat-kovaplus.c | 446 static int kovaplus_init_specials(struct hid_device *hdev) argument 448 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); 458 hid_err(hdev, "can't alloc device descriptor\n"); 461 hid_set_drvdata(hdev, kovaplus); 465 hid_err(hdev, "couldn't init struct kovaplus_device\n"); 469 retval = roccat_connect(&kovaplus_class, hdev, 472 hid_err(hdev, "couldn't init char dev\n"); 479 hid_set_drvdata(hdev, NULL); 488 static void kovaplus_remove_specials(struct hid_device *hdev) argument 490 struct usb_interface *intf = to_usb_interface(hdev 502 kovaplus_probe(struct hid_device *hdev, const struct hid_device_id *id) argument 536 kovaplus_remove(struct hid_device *hdev) argument 604 kovaplus_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) argument [all...] |
H A D | hid-roccat-koneplus.c | 377 static int koneplus_init_specials(struct hid_device *hdev) argument 379 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); 389 hid_err(hdev, "can't alloc device descriptor\n"); 392 hid_set_drvdata(hdev, koneplus); 396 hid_err(hdev, "couldn't init struct koneplus_device\n"); 400 retval = roccat_connect(&koneplus_class, hdev, 403 hid_err(hdev, "couldn't init char dev\n"); 409 hid_set_drvdata(hdev, NULL); 418 static void koneplus_remove_specials(struct hid_device *hdev) argument 420 struct usb_interface *intf = to_usb_interface(hdev 432 koneplus_probe(struct hid_device *hdev, const struct hid_device_id *id) argument 466 koneplus_remove(struct hid_device *hdev) argument 513 koneplus_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) argument [all...] |
H A D | hid-wiimote-core.c | 22 static int wiimote_hid_send(struct hid_device *hdev, __u8 *buffer, argument 28 if (!hdev->ll_driver->output_report) 35 ret = hid_hw_output_report(hdev, buf, count); 54 ret = wiimote_hid_send(wdata->hdev, 77 hid_warn(wdata->hdev, "Sending too large output report\n"); 105 hid_warn(wdata->hdev, "Output queue is full"); 317 hid_warn(wdata->hdev, "Invalid length %d wmem request\n", size); 342 hid_warn(wdata->hdev, "Invalid length %d rmem request\n", size); 441 hid_dbg(wdata->hdev, "extension ID: %6phC\n", rmem); 523 hid_dbg(wdata->hdev, "motio 1622 wiimote_hid_event(struct hid_device *hdev, struct hid_report *report, u8 *raw_data, int size) argument 1736 wiimote_create(struct hid_device *hdev) argument 1789 wiimote_hid_probe(struct hid_device *hdev, const struct hid_device_id *id) argument 1861 wiimote_hid_remove(struct hid_device *hdev) argument [all...] |
H A D | hid-roccat-kone.c | 697 static int kone_init_specials(struct hid_device *hdev) argument 699 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); 710 hid_set_drvdata(hdev, kone); 714 hid_err(hdev, "couldn't init struct kone_device\n"); 718 retval = roccat_connect(&kone_class, hdev, 721 hid_err(hdev, "couldn't init char dev\n"); 728 hid_set_drvdata(hdev, NULL); 737 static void kone_remove_specials(struct hid_device *hdev) argument 739 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); 744 kone = hid_get_drvdata(hdev); 751 kone_probe(struct hid_device *hdev, const struct hid_device_id *id) argument 784 kone_remove(struct hid_device *hdev) argument 844 kone_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) argument [all...] |
H A D | hid-led.c | 98 struct hid_device *hdev; member in struct:hidled_device 126 ret = hid_hw_raw_request(ldev->hdev, buf[0], ldev->buf, 131 ret = hid_hw_output_report(ldev->hdev, ldev->buf, 156 ret = hid_hw_raw_request(ldev->hdev, buf[0], ldev->buf, 163 ret = hid_hw_raw_request(ldev->hdev, buf[0], ldev->buf, 427 return devm_led_classdev_register(&rgb->ldev->hdev->dev, &led->cdev); 448 static int hidled_probe(struct hid_device *hdev, const struct hid_device_id *id) argument 454 ldev = devm_kzalloc(&hdev->dev, sizeof(*ldev), GFP_KERNEL); 458 ldev->buf = devm_kmalloc(&hdev->dev, MAX_REPORT_SIZE, GFP_KERNEL); 462 ret = hid_parse(hdev); [all...] |
H A D | hid-holtekff.c | 181 static int holtek_probe(struct hid_device *hdev, const struct hid_device_id *id) argument 185 ret = hid_parse(hdev); 187 hid_err(hdev, "parse failed\n"); 191 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF); 193 hid_err(hdev, "hw start failed\n"); 197 holtekff_init(hdev);
|
H A D | hid-gembird.c | 60 static __u8 *gembird_report_fixup(struct hid_device *hdev, __u8 *rdesc, argument 72 new_rdesc = devm_kzalloc(&hdev->dev, new_size, GFP_KERNEL); 76 dev_info(&hdev->dev,
|
/linux-master/drivers/hwmon/ |
H A D | surface_fan.c | 63 struct device *hdev; local 65 hdev = devm_hwmon_device_register_with_info(&sdev->dev, 70 return PTR_ERR_OR_ZERO(hdev);
|
H A D | corsair-psu.c | 123 struct hid_device *hdev; member in struct:corsairpsu_data 172 ret = hid_hw_output_report(priv->hdev, priv->cmd_buffer, CMD_BUFFER_SIZE); 755 scnprintf(name, sizeof(name), "%s-%s", DRIVER_NAME, dev_name(&priv->hdev->dev)); 773 static int corsairpsu_probe(struct hid_device *hdev, const struct hid_device_id *id) argument 778 priv = devm_kzalloc(&hdev->dev, sizeof(struct corsairpsu_data), GFP_KERNEL); 782 priv->cmd_buffer = devm_kmalloc(&hdev->dev, CMD_BUFFER_SIZE, GFP_KERNEL); 786 ret = hid_parse(hdev); 790 ret = hid_hw_start(hdev, HID_CONNECT_HIDRAW); 794 ret = hid_hw_open(hdev); 798 priv->hdev 839 corsairpsu_remove(struct hid_device *hdev) argument 849 corsairpsu_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) argument 864 corsairpsu_resume(struct hid_device *hdev) argument [all...] |
H A D | nzxt-kraken3.c | 97 struct hid_device *hdev; member in struct:kraken3_data 193 ret = hid_hw_output_report(priv->hdev, priv->buffer, MAX_REPORT_LENGTH); 723 static int kraken3_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) argument 725 struct kraken3_data *priv = hid_get_drvdata(hdev); 746 hid_err_once(hdev, 793 static int kraken3_init_device(struct hid_device *hdev) argument 795 struct kraken3_data *priv = hid_get_drvdata(hdev); 811 static int kraken3_get_fw_ver(struct hid_device *hdev) argument 813 struct kraken3_data *priv = hid_get_drvdata(hdev); 830 static int __maybe_unused kraken3_reset_resume(struct hid_device *hdev) argument 866 kraken3_probe(struct hid_device *hdev, const struct hid_device_id *id) argument 959 kraken3_remove(struct hid_device *hdev) argument [all...] |
/linux-master/net/bluetooth/ |
H A D | smp.h | 184 int smp_cancel_and_remove_pairing(struct hci_dev *hdev, bdaddr_t *bdaddr, 191 bool smp_irk_matches(struct hci_dev *hdev, const u8 irk[16], 193 int smp_generate_rpa(struct hci_dev *hdev, const u8 irk[16], bdaddr_t *rpa); 194 int smp_generate_oob(struct hci_dev *hdev, u8 hash[16], u8 rand[16]); 196 int smp_force_bredr(struct hci_dev *hdev, bool enable); 198 int smp_register(struct hci_dev *hdev); 199 void smp_unregister(struct hci_dev *hdev);
|
H A D | sco.c | 125 struct hci_dev *hdev = hcon->hdev; local 144 if (hdev->sco_mtu > 0) 145 conn->mtu = hdev->sco_mtu; 244 struct hci_dev *hdev; local 249 hdev = hci_get_route(&sco_pi(sk)->dst, &sco_pi(sk)->src, BDADDR_BREDR); 250 if (!hdev) 253 hci_dev_lock(hdev); 255 if (lmp_esco_capable(hdev) && !disable_esco) 261 (!lmp_transp_capable(hdev) || !lmp_esco_capabl 754 struct hci_dev *hdev = conn->hdev; local 831 struct hci_dev *hdev; local 1033 struct hci_dev *hdev; local 1319 sco_connect_ind(struct hci_dev *hdev, bdaddr_t *bdaddr, __u8 *flags) argument [all...] |
/linux-master/drivers/bluetooth/ |
H A D | hci_ll.c | 357 static int ll_recv_frame(struct hci_dev *hdev, struct sk_buff *skb) argument 359 struct hci_uart *hu = hci_get_drvdata(hdev); 369 bt_dev_err(hdev, "received HCILL_GO_TO_SLEEP_ACK in state %ld", 432 ll->rx_skb = h4_recv_buf(hu->hdev, ll->rx_skb, data, count, 436 bt_dev_err(hu->hdev, "Frame reassembly failed (%d)", err); 452 static int read_local_version(struct hci_dev *hdev) argument 459 skb = __hci_cmd_sync(hdev, HCI_OP_READ_LOCAL_VERSION, 0, NULL, 462 bt_dev_err(hdev, "Reading TI version information failed (%ld)", 481 bt_dev_err(hdev, "Failed to read TI version info: %d", err); 495 bt_dev_warn(lldev->hu.hdev, 590 ll_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr) argument [all...] |
/linux-master/sound/soc/sof/intel/ |
H A D | hda.c | 185 struct sof_intel_hda_dev *hdev; local 187 hdev = sdev->pdata->hw_pdata; 189 if (!hdev->sdw) 213 struct sof_intel_hda_dev *hdev; local 223 hdev = sdev->pdata->hw_pdata; 225 ret = sdw_intel_acpi_scan(handle, &hdev->info); 235 struct sof_intel_hda_dev *hdev; local 239 hdev = sdev->pdata->hw_pdata; 247 res.shim_base = hdev->desc->sdw_shim_base; 248 res.alh_base = hdev 303 struct sof_intel_hda_dev *hdev; local 326 struct sof_intel_hda_dev *hdev; local 362 struct sof_intel_hda_dev *hdev; local 383 struct sof_intel_hda_dev *hdev; local 398 struct sof_intel_hda_dev *hdev; local 444 struct sof_intel_hda_dev *hdev; local 473 struct sof_intel_hda_dev *hdev; local 925 struct sof_intel_hda_dev *hdev = sdev->pdata->hw_pdata; local 951 struct sof_intel_hda_dev *hdev = sdev->pdata->hw_pdata; local 970 struct sof_intel_hda_dev *hdev = sdev->pdata->hw_pdata; local 1061 struct sof_intel_hda_dev *hdev = pdata->hw_pdata; local 1148 struct sof_intel_hda_dev *hdev = sdev->pdata->hw_pdata; local 1185 struct sof_intel_hda_dev *hdev; local 1233 struct sof_intel_hda_dev *hdev = sdev->pdata->hw_pdata; local 1530 struct sof_intel_hda_dev *hdev = sdev->pdata->hw_pdata; local 1560 struct sof_intel_hda_dev *hdev; local [all...] |
/linux-master/include/net/bluetooth/ |
H A D | bluetooth.h | 271 #define bt_dev_name(hdev) ((hdev) ? (hdev)->name : "null") 273 #define bt_dev_info(hdev, fmt, ...) \ 274 BT_INFO("%s: " fmt, bt_dev_name(hdev), ##__VA_ARGS__) 275 #define bt_dev_warn(hdev, fmt, ...) \ 276 BT_WARN("%s: " fmt, bt_dev_name(hdev), ##__VA_ARGS__) 277 #define bt_dev_err(hdev, fmt, ...) \ 278 BT_ERR("%s: " fmt, bt_dev_name(hdev), ##__VA_ARGS__) 279 #define bt_dev_dbg(hdev, fm 459 struct hci_dev *hdev; member in struct:mgmt_ctrl [all...] |
/linux-master/drivers/usb/core/ |
H A D | usb-acpi.c | 21 * @hdev: USB device belonging to the usb hub 26 bool usb_acpi_power_manageable(struct usb_device *hdev, int index) argument 31 port_handle = usb_get_hub_port_acpi_handle(hdev, 45 * @hdev: USB device belonging to the usb hub 59 int usb_acpi_port_lpm_incapable(struct usb_device *hdev, int index) argument 71 port_handle = usb_get_hub_port_acpi_handle(hdev, port1); 73 dev_dbg(&hdev->dev, "port-%d no acpi handle\n", port1); 79 dev_dbg(&hdev->dev, "port-%d no _DSM function %d\n", 88 dev_dbg(&hdev->dev, "evaluate port-%d _DSM failed\n", port1); 104 * @hdev 113 usb_acpi_set_power_state(struct usb_device *hdev, int index, bool enable) argument [all...] |
/linux-master/drivers/accel/habanalabs/gaudi2/ |
H A D | gaudi2P.h | 444 void (*instance_cfg_fn)(struct hl_device *hdev, u64 base, void *data); 526 int (*cpucp_info_get)(struct hl_device *hdev); 598 void gaudi2_iterate_tpcs(struct hl_device *hdev, struct iterate_module_ctx *ctx); 599 int gaudi2_coresight_init(struct hl_device *hdev); 600 int gaudi2_debug_coresight(struct hl_device *hdev, struct hl_ctx *ctx, void *data); 601 void gaudi2_halt_coresight(struct hl_device *hdev, struct hl_ctx *ctx); 602 void gaudi2_init_blocks(struct hl_device *hdev, struct dup_block_ctx *cfg_ctx); 603 bool gaudi2_is_hmmu_enabled(struct hl_device *hdev, int dcore_id, int hmmu_id); 604 void gaudi2_write_rr_to_all_lbw_rtrs(struct hl_device *hdev, u8 rr_type, u32 rr_index, u64 min_val, 606 void gaudi2_pb_print_security_errors(struct hl_device *hdev, u3 [all...] |