/openbmc/linux/drivers/accel/habanalabs/common/mmu/ |
H A D | mmu_v2_hr.c | 50 return hl_mmu_hr_init(hdev, &hdev->mmu_priv.hr, prop->mmu_hop_table_size, in hl_mmu_v2_hr_init() 68 hl_mmu_hr_fini(hdev, &hdev->mmu_priv.hr, prop->mmu_hop_table_size); in hl_mmu_v2_hr_fini() 97 struct hl_device *hdev = ctx->hdev; in hl_mmu_v2_hr_ctx_fini() local 107 dev_err_ratelimited(hdev->dev, in hl_mmu_v2_hr_ctx_fini() 120 struct hl_device *hdev = ctx->hdev; in _hl_mmu_v2_hr_unmap() local 126 prop = &hdev->asic_prop; in _hl_mmu_v2_hr_unmap() 132 scrambled_virt_addr = hdev->asic_funcs->scramble_addr(hdev, virt_addr); in _hl_mmu_v2_hr_unmap() 213 struct hl_device *hdev = ctx->hdev; in _hl_mmu_v2_hr_map() local 238 scrambled_virt_addr = hdev->asic_funcs->scramble_addr(hdev, virt_addr); in _hl_mmu_v2_hr_map() 239 scrambled_phys_addr = hdev->asic_funcs->scramble_addr(hdev, phys_addr); in _hl_mmu_v2_hr_map() [all …]
|
/openbmc/linux/drivers/accel/habanalabs/common/ |
H A D | memory.c | 90 struct hl_device *hdev = ctx->hdev; in alloc_device_memory() local 355 struct hl_device *hdev = ctx->hdev; in free_device_memory() local 946 struct hl_device *hdev = ctx->hdev; in map_phys_pg_pack() local 1009 struct hl_device *hdev = ctx->hdev; in unmap_phys_pg_pack() local 1054 struct hl_device *hdev = ctx->hdev; in map_device_va() local 1278 struct hl_device *hdev = ctx->hdev; in unmap_device_va() local 1691 hdev = hl_dmabuf->ctx->hdev; in hl_dmabuf_attach() 1710 hdev = hl_dmabuf->ctx->hdev; in hl_map_dmabuf() 1768 struct hl_device *hdev = ctx->hdev; in memhash_node_export_get() local 1838 struct hl_device *hdev = ctx->hdev; in export_dmabuf() local [all …]
|
H A D | security.c | 63 dev_err(hdev->dev, in hl_unset_pb_in_block() 124 block_num = hl_get_pb_block(hdev, in hl_unsecure_register_range() 132 rc |= hl_unset_pb_in_block(hdev, reg_offset, in hl_unsecure_register_range() 220 hdev->asic_funcs->pb_print_security_errors(hdev, in hl_ack_pb_security_violations() 244 if (hdev->pldm) in hl_config_glbl_sec() 265 void hl_secure_block(struct hl_device *hdev, in hl_secure_block() argument 694 dev_err_ratelimited(hdev->dev, in hl_read_glbl_errors() 721 dev_err_ratelimited(hdev->dev, in hl_check_for_glbl_errors() 750 if ((hl_check_block_range_exclusion(hdev, in hl_iterate_special_blocks() 754 skip_blocks_cfg->skip_block_hook(hdev, in hl_iterate_special_blocks() [all …]
|
/openbmc/qemu/hw/virtio/ |
H A D | vhost.c | 800 struct vhost_dev *hdev = iommu->hdev; in vhost_iommu_unmap_notify() local 1453 r = hdev->vhost_ops->vhost_set_owner(hdev); in vhost_dev_init() 1479 r = vhost_virtqueue_init(hdev, hdev->vqs + i, hdev->vq_index + i); in vhost_dev_init() 1603 hdev->vhost_ops->vhost_backend_cleanup(hdev); in vhost_dev_cleanup() 1699 assert(n >= hdev->vq_index && n < hdev->vq_index + hdev->nvqs); in vhost_virtqueue_pending() 2010 r = hdev->vhost_ops->vhost_set_mem_table(hdev, hdev->mem); in vhost_dev_start() 2039 hdev->log_size = vhost_get_log_size(hdev); in vhost_dev_start() 2040 hdev->log = vhost_log_get(hdev->log_size, in vhost_dev_start() 2043 r = hdev->vhost_ops->vhost_set_log_base(hdev, in vhost_dev_start() 2116 hdev->vhost_ops->vhost_dev_start(hdev, false); in vhost_dev_stop() [all …]
|
/openbmc/linux/drivers/bluetooth/ |
H A D | hci_ldisc.c | 80 struct hci_dev *hdev = hu->hdev; in hci_uart_tx_complete() local 149 struct hci_dev *hdev = hu->hdev; in hci_uart_write_work() local 197 hdev = hu->hdev; in hci_uart_init_work() 198 hu->hdev = NULL; in hci_uart_init_work() 253 BT_DBG("%s %p", hdev->name, hdev); in hci_uart_open() 537 hdev = hu->hdev; in hci_uart_tty_close() 538 if (hdev) in hci_uart_tty_close() 549 if (hdev) { in hci_uart_tty_close() 622 if (hu->hdev) in hci_uart_tty_receive() 637 if (!hdev) { in hci_uart_register_dev() [all …]
|
H A D | btmtk.c | 60 err = __hci_cmd_send(hdev, 0xfd5b, 0, NULL); in btmtk_coredump() 101 btmtk_reset_sync(hdev); in btmtk_coredump_notify() 162 err = wmt_cmd_sync(hdev, &wmt_params); in btmtk_setup_firmware_79xx() 203 err = wmt_cmd_sync(hdev, &wmt_params); in btmtk_setup_firmware_79xx() 251 err = wmt_cmd_sync(hdev, &wmt_params); in btmtk_setup_firmware() 286 err = wmt_cmd_sync(hdev, &wmt_params); in btmtk_setup_firmware() 304 err = wmt_cmd_sync(hdev, &wmt_params); in btmtk_setup_firmware() 343 hci_dev_lock(hdev); in btmtk_reset_sync() 349 hci_dev_unlock(hdev); in btmtk_reset_sync() 395 err = hci_devcd_append(hdev, skb); in btmtk_process_coredump() [all …]
|
H A D | btbcm.h | 54 int btbcm_check_bdaddr(struct hci_dev *hdev); 55 int btbcm_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr); 57 int btbcm_read_pcm_int_params(struct hci_dev *hdev, 59 int btbcm_write_pcm_int_params(struct hci_dev *hdev, 62 int btbcm_setup_patchram(struct hci_dev *hdev); 63 int btbcm_setup_apple(struct hci_dev *hdev); 70 static inline int btbcm_check_bdaddr(struct hci_dev *hdev) in btbcm_check_bdaddr() argument 80 static inline int btbcm_read_pcm_int_params(struct hci_dev *hdev, in btbcm_read_pcm_int_params() argument 86 static inline int btbcm_write_pcm_int_params(struct hci_dev *hdev, in btbcm_write_pcm_int_params() argument 97 static inline int btbcm_setup_patchram(struct hci_dev *hdev) in btbcm_setup_patchram() argument [all …]
|
H A D | btrtl.c | 843 skb = btrtl_read_local_version(hdev); in rtl_download_firmware() 865 rtl_dev_info(hdev, "loading %s", name); in rtl_load_file() 1077 hci_ver, hdev->bus, in btrtl_initialize() 1083 skb = btrtl_read_local_version(hdev); in btrtl_initialize() 1105 hdev->bus, chip_type); in btrtl_initialize() 1128 ret = hdev->send(hdev, skb); in btrtl_initialize() 1205 hci_set_msft_opcode(hdev, 0xFCF0); in btrtl_initialize() 1291 hci_set_aosp_capable(hdev); in btrtl_set_quirks() 1309 &hdev->quirks); in btrtl_set_quirks() 1328 btrtl_set_quirks(hdev, btrtl_dev); in btrtl_setup_realtek() [all …]
|
H A D | btmtkuart.c | 55 struct hci_dev *hdev; member 241 struct hci_dev *hdev = bdev->hdev; in btmtkuart_tx_work() local 265 hdev->stat.cmd_tx++; in btmtkuart_tx_work() 268 hdev->stat.acl_tx++; in btmtkuart_tx_work() 829 struct hci_dev *hdev; in btmtkuart_probe() local 854 if (!hdev) { in btmtkuart_probe() 859 bdev->hdev = hdev; in btmtkuart_probe() 861 hdev->bus = HCI_UART; in btmtkuart_probe() 937 hci_free_dev(hdev); in btmtkuart_probe() 945 struct hci_dev *hdev = bdev->hdev; in btmtkuart_remove() local [all …]
|
/openbmc/linux/drivers/hid/bpf/ |
H A D | hid_bpf_dispatch.c | 54 .hid = hdev, in dispatch_hid_bpf_device_event() 67 if (!hdev->bpf.device_data) in dispatch_hid_bpf_device_event() 113 .hid = hdev, in call_hid_bpf_rdesc_fixup() 230 if (hdev->bpf.device_data) in hid_bpf_allocate_event_data() 233 return __hid_bpf_allocate_data(hdev, &hdev->bpf.device_data, &hdev->bpf.allocated_data); in hid_bpf_allocate_event_data() 292 struct hid_device *hdev; in hid_bpf_attach_prog() local 307 hdev = to_hid_device(dev); in hid_bpf_attach_prog() 344 struct hid_device *hdev; in hid_bpf_allocate_context() local 363 ctx_kern->ctx.hid = hdev; in hid_bpf_allocate_context() 404 struct hid_device *hdev; in hid_bpf_hw_request() local [all …]
|
/openbmc/linux/drivers/hid/ |
H A D | hid-picolcd_debugfs.c | 50 picolcd_reset(data->hdev); in picolcd_debug_reset_write() 408 hid_debug_event(hdev, buff); in picolcd_debug_out_report() 412 hid_debug_event(hdev, buff); in picolcd_debug_out_report() 419 hid_debug_event(hdev, buff); in picolcd_debug_out_report() 421 hid_debug_event(hdev, buff); in picolcd_debug_out_report() 427 hid_debug_event(hdev, buff); in picolcd_debug_out_report() 429 hid_debug_event(hdev, buff); in picolcd_debug_out_report() 435 hid_debug_event(hdev, buff); in picolcd_debug_out_report() 437 hid_debug_event(hdev, buff); in picolcd_debug_out_report() 443 hid_debug_event(hdev, buff); in picolcd_debug_out_report() [all …]
|
H A D | hid-roccat-konepure.c | 87 hid_set_drvdata(hdev, NULL); in konepure_init_specials() 96 hid_set_drvdata(hdev, konepure); in konepure_init_specials() 128 konepure = hid_get_drvdata(hdev); in konepure_remove_specials() 139 if (!hid_is_usb(hdev)) in konepure_probe() 142 retval = hid_parse(hdev); in konepure_probe() 144 hid_err(hdev, "parse failed\n"); in konepure_probe() 150 hid_err(hdev, "hw start failed\n"); in konepure_probe() 154 retval = konepure_init_specials(hdev); in konepure_probe() 163 hid_hw_stop(hdev); in konepure_probe() 170 konepure_remove_specials(hdev); in konepure_remove() [all …]
|
H A D | hid-roccat-savu.c | 67 hid_set_drvdata(hdev, NULL); in savu_init_specials() 76 hid_set_drvdata(hdev, savu); in savu_init_specials() 108 savu = hid_get_drvdata(hdev); in savu_remove_specials() 119 if (!hid_is_usb(hdev)) in savu_probe() 122 retval = hid_parse(hdev); in savu_probe() 124 hid_err(hdev, "parse failed\n"); in savu_probe() 130 hid_err(hdev, "hw start failed\n"); in savu_probe() 134 retval = savu_init_specials(hdev); in savu_probe() 143 hid_hw_stop(hdev); in savu_probe() 150 savu_remove_specials(hdev); in savu_remove() [all …]
|
H A D | hid-samsung.c | 65 samsung_irda_dev_trace(hdev, 184); in samsung_irda_report_fixup() 73 samsung_irda_dev_trace(hdev, 203); in samsung_irda_report_fixup() 79 samsung_irda_dev_trace(hdev, 135); in samsung_irda_report_fixup() 85 samsung_irda_dev_trace(hdev, 171); in samsung_irda_report_fixup() 143 ret = samsung_kbd_mouse_input_mapping(hdev, in samsung_input_mapping() 155 if (!hid_is_usb(hdev)) in samsung_probe() 158 ret = hid_parse(hdev); in samsung_probe() 160 hid_err(hdev, "parse failed\n"); in samsung_probe() 165 if (hdev->rsize == 184) { in samsung_probe() 172 ret = hid_hw_start(hdev, cmask); in samsung_probe() [all …]
|
H A D | hid-alps.c | 99 struct hid_device *hdev; member 440 switch (hdev->product) { in alps_raw_event() 684 ret = hid_hw_open(hdev); in alps_input_configured() 689 hid_device_io_start(hdev); in alps_input_configured() 692 ret = T4_init(hdev, data); in alps_input_configured() 695 ret = u1_init(hdev, data); in alps_input_configured() 770 hid_device_io_stop(hdev); in alps_input_configured() 771 hid_hw_close(hdev); in alps_input_configured() 790 data->hdev = hdev; in alps_probe() 795 ret = hid_parse(hdev); in alps_probe() [all …]
|
H A D | hid-core.c | 2198 !hdev->hiddev_connect(hdev, in hid_connect() 2218 hdev->ff_init(hdev); in hid_connect() 2269 type, hdev->name, hdev->phys); in hid_connect() 2281 hdev->hiddev_disconnect(hdev); in hid_disconnect() 2310 hdev->ll_driver->stop(hdev); in hid_hw_start() 2329 hdev->ll_driver->stop(hdev); in hid_hw_stop() 2373 hdev->ll_driver->close(hdev); in hid_hw_close() 2709 hdev->bus, hdev->group, hdev->vendor, hdev->product); in modalias_show() 2732 hdev->bus, hdev->vendor, hdev->product)) in hid_uevent() 2745 hdev->bus, hdev->group, hdev->vendor, hdev->product)) in hid_uevent() [all …]
|
H A D | hid-roccat-ryos.c | 95 hid_set_drvdata(hdev, NULL); in ryos_init_specials() 104 hid_set_drvdata(hdev, ryos); in ryos_init_specials() 136 ryos = hid_get_drvdata(hdev); in ryos_remove_specials() 147 if (!hid_is_usb(hdev)) in ryos_probe() 150 retval = hid_parse(hdev); in ryos_probe() 152 hid_err(hdev, "parse failed\n"); in ryos_probe() 158 hid_err(hdev, "hw start failed\n"); in ryos_probe() 162 retval = ryos_init_specials(hdev); in ryos_probe() 171 hid_hw_stop(hdev); in ryos_probe() 178 ryos_remove_specials(hdev); in ryos_remove() [all …]
|
H A D | hid-ft260.c | 308 struct hid_device *hdev = dev->hdev; in ft260_xfer_status() local 374 struct hid_device *hdev = dev->hdev; in ft260_hid_output_report_check_status() local 421 struct hid_device *hdev = dev->hdev; in ft260_i2c_write() local 503 struct hid_device *hdev = dev->hdev; in ft260_i2c_read() local 580 struct hid_device *hdev = dev->hdev; in ft260_i2c_write_read() local 617 struct hid_device *hdev = dev->hdev; in ft260_i2c_xfer() local 658 struct hid_device *hdev = dev->hdev; in ft260_smbus_xfer() local 1007 hdev->version >> 8, hdev->version & 0xff, hdev->name, in ft260_probe() 1008 hdev->phys); in ft260_probe() 1011 dev->hdev = hdev; in ft260_probe() [all …]
|
H A D | hid-asus.c | 99 struct hid_device *hdev; member 118 struct hid_device *hdev; member 566 ret = asus_kbd_init(hdev); in asus_kbd_register_leds() 588 drvdata->kbd_backlight->hdev = hdev; in asus_kbd_register_leds() 742 strlen(hdev->uniq) ? in asus_battery_probe() 743 hdev->uniq : dev_name(&hdev->dev)); in asus_battery_probe() 1085 drvdata->hdev = hdev; in asus_probe() 1090 hid_err(hdev, in asus_probe() 1096 ret = hid_parse(hdev); in asus_probe() 1128 hid_hw_stop(hdev); in asus_probe() [all …]
|
H A D | hid-sony.c | 1228 struct hid_device *hdev = sc->hdev; in buzz_set_leds() local 1369 struct hid_device *hdev = sc->hdev; in sony_leds_init() local 1527 struct hid_device *hdev = sc->hdev; in motion_send_output_report() local 1663 struct hid_device *hdev = sc->hdev; in sony_battery_probe() local 1823 snprintf(sc->hdev->uniq, sizeof(sc->hdev->uniq), in sony_check_add() 1976 hid_err(sc->hdev, in sony_input_configured() 1997 hid_err(sc->hdev, in sony_input_configured() 2011 hid_err(sc->hdev, in sony_input_configured() 2083 sc->hdev = hdev; in sony_probe() 2160 hid_hw_stop(hdev); in sony_probe() [all …]
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_mdio.c | 46 struct hclge_dev *hdev = bus->priv; in hclge_mdio_write() local 72 dev_err(&hdev->pdev->dev, in hclge_mdio_write() 84 struct hclge_dev *hdev = bus->priv; in hclge_mdio_read() local 109 dev_err(&hdev->pdev->dev, in hclge_mdio_read() 133 dev_info(&hdev->pdev->dev, in hclge_mac_mdio_config() 138 hdev->hw.mac.phy_addr); in hclge_mac_mdio_config() 150 dev_name(&hdev->pdev->dev)); in hclge_mac_mdio_config() 153 mdio_bus->priv = hdev; in hclge_mac_mdio_config() 194 ret = hclge_cfg_flowctrl(hdev); in hclge_mac_adjust_link() 287 dev_err(&hdev->pdev->dev, in hclge_read_phy_reg() [all …]
|
H A D | hclge_tm.h | 235 int hclge_tm_schd_init(struct hclge_dev *hdev); 236 int hclge_tm_vport_map_update(struct hclge_dev *hdev); 238 int hclge_tm_schd_setup_hw(struct hclge_dev *hdev); 241 void hclge_tm_pfc_info_update(struct hclge_dev *hdev); 242 int hclge_tm_dwrr_cfg(struct hclge_dev *hdev); 243 int hclge_tm_init_hw(struct hclge_dev *hdev, bool init); 248 int hclge_mac_pause_setup_hw(struct hclge_dev *hdev); 252 int hclge_tm_port_shaper_cfg(struct hclge_dev *hdev); 275 int hclge_tm_get_port_shaper(struct hclge_dev *hdev, 277 int hclge_up_to_tc_map(struct hclge_dev *hdev); [all …]
|
H A D | hclge_debugfs.c | 146 dev_err(&hdev->pdev->dev, in hclge_dbg_get_dfx_bd_num() 183 dev_err(&hdev->pdev->dev, in hclge_dbg_cmd_send() 317 dev_err(&hdev->pdev->dev, in hclge_dbg_dump_mac_enable_status() 346 dev_err(&hdev->pdev->dev, in hclge_dbg_dump_mac_frame_size() 689 hdev->tm_info.num_tc); in hclge_dbg_dump_tc() 1728 hdev->state); in hclge_dbg_dump_rst_info() 1760 hdev->num_nic_msi); in hclge_dbg_dump_interrupt() 1762 hdev->num_roce_msi); in hclge_dbg_dump_interrupt() 1764 hdev->num_msi_used); in hclge_dbg_dump_interrupt() 1766 hdev->num_msi_left); in hclge_dbg_dump_interrupt() [all …]
|
/openbmc/linux/drivers/nfc/microread/ |
H A D | microread.c | 157 struct nfc_hci_dev *hdev; member 254 hdev->gb = nfc_get_local_general_bytes(hdev->ndev, in microread_start_poll() 255 &hdev->gb_len); in microread_start_poll() 256 if (hdev->gb == NULL || hdev->gb_len == 0) { in microread_start_poll() 276 hdev->gb, hdev->gb_len); in microread_start_poll() 284 hdev->gb, hdev->gb_len); in microread_start_poll() 683 if (!info->hdev) { in microread_probe() 695 *hdev = info->hdev; in microread_probe() 700 nfc_hci_free_device(info->hdev); in microread_probe() 714 nfc_hci_unregister_device(hdev); in microread_remove() [all …]
|
/openbmc/linux/include/net/bluetooth/ |
H A D | coredump.h | 11 typedef void (*coredump_t)(struct hci_dev *hdev); 12 typedef void (*dmp_hdr_t)(struct hci_dev *hdev, struct sk_buff *skb); 13 typedef void (*notify_change_t)(struct hci_dev *hdev, int state); 63 void hci_devcd_reset(struct hci_dev *hdev); 69 int hci_devcd_init(struct hci_dev *hdev, u32 dump_size); 70 int hci_devcd_append(struct hci_dev *hdev, struct sk_buff *skb); 72 int hci_devcd_complete(struct hci_dev *hdev); 73 int hci_devcd_abort(struct hci_dev *hdev); 77 static inline void hci_devcd_reset(struct hci_dev *hdev) {} in hci_devcd_reset() argument 104 static inline int hci_devcd_complete(struct hci_dev *hdev) in hci_devcd_complete() argument [all …]
|