/openbmc/linux/drivers/hwmon/ |
H A D | corsair-cpro.c | 79 struct hid_device *hdev; member 516 ret = hid_parse(hdev); in ccp_probe() 520 ret = hid_hw_start(hdev, HID_CONNECT_HIDRAW); in ccp_probe() 524 ret = hid_hw_open(hdev); in ccp_probe() 528 ccp->hdev = hdev; in ccp_probe() 529 hid_set_drvdata(hdev, ccp); in ccp_probe() 535 hid_device_io_start(hdev); in ccp_probe() 555 hid_hw_close(hdev); in ccp_probe() 557 hid_hw_stop(hdev); in ccp_probe() 566 hid_hw_close(hdev); in ccp_remove() [all …]
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
H A D | hclgevf_main.h | 102 #define HCLGEVF_NIC_MEM_OFFSET(hdev) \ argument 103 (pci_resource_len((hdev)->pdev, HCLGEVF_MEM_BAR) >> 1) 104 #define HCLGEVF_TQP_MEM_OFFSET(hdev, i) \ argument 105 (HCLGEVF_NIC_MEM_OFFSET(hdev) + HCLGEVF_TQP_MEM_SIZE * (i)) 280 static inline bool hclgevf_is_reset_pending(struct hclgevf_dev *hdev) in hclgevf_is_reset_pending() argument 282 return !!hdev->reset_pending; in hclgevf_is_reset_pending() 285 int hclgevf_send_mbx_msg(struct hclgevf_dev *hdev, 288 void hclgevf_mbx_handler(struct hclgevf_dev *hdev); 289 void hclgevf_mbx_async_handler(struct hclgevf_dev *hdev); 294 void hclgevf_reset_task_schedule(struct hclgevf_dev *hdev); [all …]
|
H A D | hclgevf_regs.c | 109 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_get_regs_len() local 119 tqp_intr_len * (hdev->num_msi_used - 1) + in hclgevf_get_regs_len() 120 ring_len * hdev->num_tqps; in hclgevf_get_regs_len() 129 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_get_regs() local 133 *version = hdev->fw_version; in hclgevf_get_regs() 140 *reg++ = hclgevf_read_dev(&hdev->hw, cmdq_reg_addr_list[i]); in hclgevf_get_regs() 145 *reg++ = hclgevf_read_dev(&hdev->hw, common_reg_addr_list[i]); in hclgevf_get_regs() 148 for (j = 0; j < hdev->num_tqps; j++) { in hclgevf_get_regs() 151 *reg++ = hclgevf_read_dev(&hdev->hw, in hclgevf_get_regs() 157 for (j = 0; j < hdev->num_msi_used - 1; j++) { in hclgevf_get_regs() [all …]
|
/openbmc/linux/drivers/hid/ |
H A D | hid-dr.c | 231 static __u8 *dr_report_fixup(struct hid_device *hdev, __u8 *rdesc, in dr_report_fixup() argument 234 switch (hdev->product) { in dr_report_fixup() 273 dev_dbg(&hdev->dev, "DragonRise Inc. HID hardware probe..."); in dr_probe() 275 ret = hid_parse(hdev); in dr_probe() 277 hid_err(hdev, "parse failed\n"); in dr_probe() 281 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF); in dr_probe() 283 hid_err(hdev, "hw start failed\n"); in dr_probe() 287 switch (hdev->product) { in dr_probe() 289 ret = drff_init(hdev); in dr_probe() 291 dev_err(&hdev->dev, "force feedback init failed\n"); in dr_probe() [all …]
|
H A D | hid-holtek-kbd.c | 105 static __u8 *holtek_kbd_report_fixup(struct hid_device *hdev, __u8 *rdesc, in holtek_kbd_report_fixup() argument 108 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in holtek_kbd_report_fixup() 144 static int holtek_kbd_probe(struct hid_device *hdev, in holtek_kbd_probe() argument 150 if (!hid_is_usb(hdev)) in holtek_kbd_probe() 153 ret = hid_parse(hdev); in holtek_kbd_probe() 155 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT); in holtek_kbd_probe() 157 intf = to_usb_interface(hdev->dev.parent); in holtek_kbd_probe() 160 list_for_each_entry(hidinput, &hdev->inputs, list) { in holtek_kbd_probe()
|
H A D | hid-lg4ff.h | 10 int lg4ff_raw_event(struct hid_device *hdev, struct hid_report *report, 12 int lg4ff_init(struct hid_device *hdev); 13 int lg4ff_deinit(struct hid_device *hdev); 17 static inline int lg4ff_raw_event(struct hid_device *hdev, struct hid_report *report, in lg4ff_raw_event() argument 19 static inline int lg4ff_init(struct hid_device *hdev) { return -1; } in lg4ff_init() argument 20 static inline int lg4ff_deinit(struct hid_device *hdev) { return -1; } in lg4ff_deinit() argument
|
H A D | hid-mcp2221.c | 93 struct hid_device *hdev; member 918 hid_hw_close(hdev); in mcp2221_hid_unregister() 919 hid_hw_stop(hdev); in mcp2221_hid_unregister() 1112 ret = hid_parse(hdev); in mcp2221_probe() 1128 hid_info(hdev, "USB HID v%x.%02x Device [%s] on %s\n", hdev->version >> 8, in mcp2221_probe() 1129 hdev->version & 0xff, hdev->name, hdev->phys); in mcp2221_probe() 1131 ret = hid_hw_open(hdev); in mcp2221_probe() 1134 hid_hw_stop(hdev); in mcp2221_probe() 1141 mcp->hdev = hdev; in mcp2221_probe() 1143 ret = devm_add_action_or_reset(&hdev->dev, mcp2221_hid_unregister, hdev); in mcp2221_probe() [all …]
|
H A D | hid-roccat-koneplus.c | 392 hid_set_drvdata(hdev, koneplus); in koneplus_init_specials() 409 hid_set_drvdata(hdev, NULL); in koneplus_init_specials() 425 koneplus = hid_get_drvdata(hdev); in koneplus_remove_specials() 437 if (!hid_is_usb(hdev)) in koneplus_probe() 440 retval = hid_parse(hdev); in koneplus_probe() 442 hid_err(hdev, "parse failed\n"); in koneplus_probe() 448 hid_err(hdev, "hw start failed\n"); in koneplus_probe() 452 retval = koneplus_init_specials(hdev); in koneplus_probe() 461 hid_hw_stop(hdev); in koneplus_probe() 468 koneplus_remove_specials(hdev); in koneplus_remove() [all …]
|
H A D | hid-roccat-pyra.c | 411 hid_set_drvdata(hdev, pyra); in pyra_init_specials() 428 hid_set_drvdata(hdev, NULL); in pyra_init_specials() 444 pyra = hid_get_drvdata(hdev); in pyra_remove_specials() 447 kfree(hid_get_drvdata(hdev)); in pyra_remove_specials() 455 if (!hid_is_usb(hdev)) in pyra_probe() 458 retval = hid_parse(hdev); in pyra_probe() 460 hid_err(hdev, "parse failed\n"); in pyra_probe() 470 retval = pyra_init_specials(hdev); in pyra_probe() 478 hid_hw_stop(hdev); in pyra_probe() 485 pyra_remove_specials(hdev); in pyra_remove() [all …]
|
H A D | hid-razer.c | 44 static int razer_input_mapping(struct hid_device *hdev, in razer_input_mapping() argument 76 static int razer_probe(struct hid_device *hdev, const struct hid_device_id *id) in razer_probe() argument 81 ret = hid_parse(hdev); in razer_probe() 89 if (hdev->type == HID_TYPE_USBMOUSE) { in razer_probe() 94 ret = hid_hw_raw_request(hdev, 0, buf, RAZER_BLACKWIDOW_TRANSFER_BUF_SIZE, in razer_probe() 97 hid_err(hdev, "failed to enable macro keys: %d\n", ret); in razer_probe() 102 return hid_hw_start(hdev, HID_CONNECT_DEFAULT); in razer_probe()
|
H A D | hid-wiimote-core.c | 28 if (!hdev->ll_driver->output_report) in wiimote_hid_send() 820 vendor = wdata->hdev->vendor; in wiimote_init_set_type() 822 name = wdata->hdev->name; in wiimote_init_set_type() 1744 wdata->hdev = hdev; in wiimote_create() 1745 hid_set_drvdata(hdev, wdata); in wiimote_create() 1783 hid_hw_close(wdata->hdev); in wiimote_destroy() 1784 hid_hw_stop(wdata->hdev); in wiimote_destroy() 1803 ret = hid_parse(hdev); in wiimote_hid_probe() 1815 ret = hid_hw_open(hdev); in wiimote_hid_probe() 1851 hid_hw_close(hdev); in wiimote_hid_probe() [all …]
|
H A D | hid-roccat-kovaplus.c | 461 hid_set_drvdata(hdev, kovaplus); in kovaplus_init_specials() 479 hid_set_drvdata(hdev, NULL); in kovaplus_init_specials() 495 kovaplus = hid_get_drvdata(hdev); in kovaplus_remove_specials() 507 if (!hid_is_usb(hdev)) in kovaplus_probe() 510 retval = hid_parse(hdev); in kovaplus_probe() 512 hid_err(hdev, "parse failed\n"); in kovaplus_probe() 518 hid_err(hdev, "hw start failed\n"); in kovaplus_probe() 522 retval = kovaplus_init_specials(hdev); in kovaplus_probe() 531 hid_hw_stop(hdev); in kovaplus_probe() 538 kovaplus_remove_specials(hdev); in kovaplus_remove() [all …]
|
H A D | hid-picolcd_leds.c | 39 report = picolcd_out_report(REPORT_LED_STATE, data->hdev); in picolcd_leds_set() 46 hid_hw_request(data->hdev, report, HID_REQ_SET_REPORT); in picolcd_leds_set() 54 struct hid_device *hdev; in picolcd_led_set_brightness() local 59 hdev = to_hid_device(dev); in picolcd_led_set_brightness() 60 data = hid_get_drvdata(hdev); in picolcd_led_set_brightness() 81 struct hid_device *hdev; in picolcd_led_get_brightness() local 86 hdev = to_hid_device(dev); in picolcd_led_get_brightness() 87 data = hid_get_drvdata(hdev); in picolcd_led_get_brightness() 98 struct device *dev = &data->hdev->dev; in picolcd_init_leds()
|
/openbmc/qemu/hw/virtio/ |
H A D | virtio-qmp.c | 776 status->vhost_dev->nvqs = hdev->nvqs; in qmp_x_query_virtio_status() 814 struct vhost_dev *hdev = vdc->get_vhost(vdev); in qmp_x_query_virtio_vhost_queue_status() local 816 if (queue < hdev->vq_index || queue >= hdev->vq_index + hdev->nvqs) { in qmp_x_query_virtio_vhost_queue_status() 823 status->kick = hdev->vqs[queue].kick; in qmp_x_query_virtio_vhost_queue_status() 824 status->call = hdev->vqs[queue].call; in qmp_x_query_virtio_vhost_queue_status() 825 status->desc = (uintptr_t)hdev->vqs[queue].desc; in qmp_x_query_virtio_vhost_queue_status() 828 status->num = hdev->vqs[queue].num; in qmp_x_query_virtio_vhost_queue_status() 829 status->desc_phys = hdev->vqs[queue].desc_phys; in qmp_x_query_virtio_vhost_queue_status() 830 status->desc_size = hdev->vqs[queue].desc_size; in qmp_x_query_virtio_vhost_queue_status() 833 status->used_phys = hdev->vqs[queue].used_phys; in qmp_x_query_virtio_vhost_queue_status() [all …]
|
/openbmc/linux/drivers/pci/controller/ |
H A D | pci-hyperv.c | 497 struct hv_device *hdev; member 2898 struct hv_device *hdev = hbus->hdev; in hv_pci_eject_device() local 3141 dev_err(&hdev->device, in hv_pci_protocol_negotiation() 3166 dev_err(&hdev->device, in hv_pci_protocol_negotiation() 3391 dev_err(&hdev->device, in hv_pci_enter_d0() 3396 dev_err(&hdev->device, in hv_pci_enter_d0() 3668 dom_req = hdev->dev_instance.b[5] << 8 | hdev->dev_instance.b[4]; in hv_pci_probe() 3672 dev_err(&hdev->device, in hv_pci_probe() 3699 hbus->hdev = hdev; in hv_pci_probe() 3734 dev_err(&hdev->device, in hv_pci_probe() [all …]
|
/openbmc/linux/drivers/bluetooth/ |
H A D | btqca.h | 161 int qca_set_bdaddr_rome(struct hci_dev *hdev, const bdaddr_t *bdaddr); 162 int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate, 165 int qca_read_soc_version(struct hci_dev *hdev, struct qca_btsoc_version *ver, 167 int qca_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr); 168 int qca_send_pre_shutdown_cmd(struct hci_dev *hdev); 171 static inline int qca_set_bdaddr_rome(struct hci_dev *hdev, const bdaddr_t *bdaddr) in qca_set_bdaddr_rome() argument 176 static inline int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate, in qca_uart_setup() argument 184 static inline int qca_read_soc_version(struct hci_dev *hdev, in qca_read_soc_version() argument 191 static inline int qca_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr) in qca_set_bdaddr() argument 196 static inline int qca_send_pre_shutdown_cmd(struct hci_dev *hdev) in qca_send_pre_shutdown_cmd() argument
|
H A D | hci_ll.c | 359 struct hci_uart *hu = hci_get_drvdata(hdev); in ll_recv_frame() 452 static int read_local_version(struct hci_dev *hdev) in read_local_version() argument 495 bt_dev_warn(lldev->hu.hdev, in send_command_from_firmware() 505 bt_dev_err(lldev->hu.hdev, "send command failed"); in send_command_from_firmware() 526 version = read_local_version(lldev->hu.hdev); in download_firmware() 563 bt_dev_dbg(lldev->hu.hdev, "S"); in download_firmware() 571 bt_dev_dbg(lldev->hu.hdev, "W"); in download_firmware() 574 bt_dev_info(lldev->hu.hdev, "sleep command in scr"); in download_firmware() 620 hu->hdev->set_bdaddr = ll_set_bdaddr; in ll_setup() 632 bt_dev_err(hu->hdev, "Failed to get CTS"); in ll_setup() [all …]
|
/openbmc/linux/drivers/usb/core/ |
H A D | port.c | 76 usb_lock_device(hdev); in disable_show() 86 usb_unlock_device(hdev); in disable_show() 131 usb_lock_device(hdev); in disable_store() 152 usb_unlock_device(hdev); in disable_store() 391 if (hub_is_superspeed(hdev)) in usb_port_runtime_resume() 615 hcd = bus_to_hcd(hdev->bus); in match_location() 641 struct usb_device *hdev = hub->hdev; in find_and_link_peer() local 655 } else if (!hdev->parent) { in find_and_link_peer() 720 struct usb_device *hdev = hub->hdev; in usb_hub_create_port_device() local 737 if (hub_is_superspeed(hdev)) { in usb_hub_create_port_device() [all …]
|
/openbmc/linux/sound/hda/ |
H A D | hda_bus_type.c | 24 hdac_get_device_id(struct hdac_device *hdev, struct hdac_driver *drv) in hdac_get_device_id() argument 30 if (hdev->vendor_id == id->vendor_id && in hdac_get_device_id() 31 (!id->rev_id || id->rev_id == hdev->revision_id)) in hdac_get_device_id() 51 struct hdac_device *hdev = dev_to_hdac_dev(dev); in hda_bus_match() local 54 if (hdev->type != hdrv->type) in hda_bus_match() 62 return hdrv->match(hdev, hdrv); in hda_bus_match() 64 return hdac_codec_match(hdev, hdrv); in hda_bus_match()
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hnae3.h | 73 #define hnae3_dev_roce_supported(hdev) \ argument 76 #define hnae3_dev_dcb_supported(hdev) \ argument 114 #define hnae3_dev_fec_supported(hdev) \ argument 117 #define hnae3_dev_udp_gso_supported(hdev) \ argument 120 #define hnae3_dev_qb_supported(hdev) \ argument 126 #define hnae3_dev_ptp_supported(hdev) \ argument 129 #define hnae3_dev_int_ql_supported(hdev) \ argument 132 #define hnae3_dev_hw_csum_supported(hdev) \ argument 147 #define hnae3_dev_hw_pad_supported(hdev) \ argument 150 #define hnae3_dev_stash_supported(hdev) \ argument [all …]
|
/openbmc/linux/net/bluetooth/ |
H A D | sco.c | 254 if (!hdev) in sco_connect() 257 hci_dev_lock(hdev); in sco_connect() 265 (!lmp_transp_capable(hdev) || !lmp_esco_capable(hdev))) { in sco_connect() 307 hci_dev_put(hdev); in sco_connect() 757 struct hci_dev *hdev = conn->hdev; in sco_conn_defer_accept() local 883 if (!hdev) { in sco_sock_setsockopt() 890 hci_dev_put(hdev); in sco_sock_setsockopt() 913 if (!hdev) { in sco_sock_setsockopt() 952 hci_dev_put(hdev); in sco_sock_setsockopt() 1107 if (!hdev) { in sco_sock_getsockopt() [all …]
|
/openbmc/linux/drivers/gpu/drm/hyperv/ |
H A D | hyperv_drm.h | 37 struct hv_device *hdev; member 46 int hyperv_update_vram_location(struct hv_device *hdev, phys_addr_t vram_pp); 47 int hyperv_update_situation(struct hv_device *hdev, u8 active, u32 bpp, 49 int hyperv_hide_hw_ptr(struct hv_device *hdev); 50 int hyperv_update_dirt(struct hv_device *hdev, struct drm_rect *rect); 51 int hyperv_connect_vsp(struct hv_device *hdev);
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_mdio.h | 11 int hclge_mac_mdio_config(struct hclge_dev *hdev); 14 void hclge_mac_start_phy(struct hclge_dev *hdev); 15 void hclge_mac_stop_phy(struct hclge_dev *hdev); 16 u16 hclge_read_phy_reg(struct hclge_dev *hdev, u16 reg_addr); 17 int hclge_write_phy_reg(struct hclge_dev *hdev, u16 reg_addr, u16 val);
|
H A D | hclge_ptp.h | 59 struct hclge_dev *hdev; member 129 return ptp->hdev; in hclge_ptp_get_hdev() 133 void hclge_ptp_clean_tx_hwts(struct hclge_dev *hdev); 136 int hclge_ptp_get_cfg(struct hclge_dev *hdev, struct ifreq *ifr); 137 int hclge_ptp_set_cfg(struct hclge_dev *hdev, struct ifreq *ifr); 138 int hclge_ptp_init(struct hclge_dev *hdev); 139 void hclge_ptp_uninit(struct hclge_dev *hdev); 142 int hclge_ptp_cfg_qry(struct hclge_dev *hdev, u32 *cfg);
|
/openbmc/linux/drivers/accel/habanalabs/goya/ |
H A D | goya_security.c | 42 goya_pb_set_block(hdev, mmSBA_ECC_MEM_BASE); in goya_init_mme_protection_bits() 43 goya_pb_set_block(hdev, mmSBB_ECC_MEM_BASE); in goya_init_mme_protection_bits() 45 goya_pb_set_block(hdev, mmMME1_RTR_BASE); in goya_init_mme_protection_bits() 48 goya_pb_set_block(hdev, mmMME2_RTR_BASE); in goya_init_mme_protection_bits() 51 goya_pb_set_block(hdev, mmMME3_RTR_BASE); in goya_init_mme_protection_bits() 55 goya_pb_set_block(hdev, mmMME4_RTR_BASE); in goya_init_mme_protection_bits() 59 goya_pb_set_block(hdev, mmMME5_RTR_BASE); in goya_init_mme_protection_bits() 63 goya_pb_set_block(hdev, mmMME6_RTR_BASE); in goya_init_mme_protection_bits() 2364 goya_init_mme_protection_bits(hdev); in goya_init_protection_bits() 2366 goya_init_dma_protection_bits(hdev); in goya_init_protection_bits() [all …]
|