Home
last modified time | relevance | path

Searched refs:hdev (Results 1 – 25 of 345) sorted by relevance

12345678910>>...14

/linux/drivers/misc/habanalabs/common/
A Ddevice.c64 hdev = hpriv->hdev; in hpriv_release()
72 if ((!hdev->pldm) && (hdev->pdev) && in hpriv_release()
73 (!hdev->asic_funcs->is_device_idle(hdev, in hpriv_release()
132 struct hl_device *hdev = hpriv->hdev; in hl_device_release() local
163 struct hl_device *hdev = hpriv->hdev; in hl_device_release_ctrl() local
195 struct hl_device *hdev = hpriv->hdev; in hl_mmap() local
448 hdev->device_reset_work.hdev = hdev; in device_early_init()
628 hdev->asic_funcs->late_fini(hdev); in device_late_fini()
1339 &hdev->cdev, &hdev->dev); in hl_device_init()
1589 hdev->asic_funcs->sw_fini(hdev); in hl_device_init()
[all …]
A Dhabanalabs_drv.c124 if (!hdev) { in hl_device_open()
134 hpriv->hdev = hdev; in hl_device_open()
151 dev_name(hdev->dev), hdev->status[status]); in hl_device_open()
218 if (!hdev) { in hl_device_open_ctrl()
231 hpriv->hdev = hdev; in hl_device_open_ctrl()
302 hdev = kzalloc(sizeof(*hdev), GFP_KERNEL); in create_hdev()
303 if (!hdev) in create_hdev()
393 *dev = hdev; in create_hdev()
398 kfree(hdev); in create_hdev()
504 if (!hdev) in hl_pci_remove()
[all …]
A Dfirmware_if.c1097 hdev, in hl_fw_read_preboot_caps()
1149 hdev->asic_funcs->init_firmware_loader(hdev); in hl_fw_read_preboot_caps()
1436 hdev, in hl_fw_dynamic_wait_for_status()
2060 hdev, in hl_fw_dynamic_wait_for_boot_fit_active()
2088 hdev, in hl_fw_dynamic_wait_for_linux_active()
2298 hdev->asic_funcs->init_cpu_scrambler_dram(hdev); in hl_fw_dynamic_init_cpu()
2379 hdev, in hl_fw_static_init_cpu()
2402 hdev, in hl_fw_static_init_cpu()
2421 hdev, in hl_fw_static_init_cpu()
2473 hdev, in hl_fw_static_init_cpu()
[all …]
A Dhw_queue.c43 struct hl_device *hdev = cs->ctx->hdev; in hl_hw_queue_update_ci() local
234 hdev->asic_funcs->hw_queues_lock(hdev); in hl_hw_queue_send_cb_no_cmpl()
255 hdev->asic_funcs->hw_queues_unlock(hdev); in hl_hw_queue_send_cb_no_cmpl()
270 struct hl_device *hdev = job->cs->ctx->hdev; in ext_queue_schedule_job() local
334 struct hl_device *hdev = job->cs->ctx->hdev; in int_queue_schedule_job() local
355 hdev->asic_funcs->pqe_write(hdev, pi, &bd); in int_queue_schedule_job()
546 struct hl_device *hdev = ctx->hdev; in init_signal_wait_cs() local
626 struct hl_device *hdev = ctx->hdev; in hl_hw_queue_schedule_cs() local
635 hdev->asic_funcs->hw_queues_lock(hdev); in hl_hw_queue_schedule_cs()
781 hdev->asic_funcs->hw_queues_unlock(hdev); in hl_hw_queue_schedule_cs()
[all …]
/linux/net/bluetooth/
A Dhci_debugfs.c114 hdev->devid_vendor, hdev->devid_product, hdev->devid_version); in device_id_show()
313 debugfs_create_file("features", 0444, hdev->debugfs, hdev, in hci_debugfs_create_common()
339 if (lmp_ssp_capable(hdev) || lmp_le_capable(hdev)) in hci_debugfs_create_common()
343 if (lmp_sc_capable(hdev) || lmp_le_capable(hdev)) in hci_debugfs_create_common()
404 hdev->dev_class[1], hdev->dev_class[0]); in dev_class_show()
673 16, hdev->irk, &hdev->rpa); in identity_show()
1195 hdev->debugfs, hdev, in hci_debugfs_create_le()
1236 hdev->debugfs, hdev, in hci_debugfs_create_le()
1239 hdev->debugfs, hdev, in hci_debugfs_create_le()
1245 struct hci_dev *hdev = conn->hdev; in hci_debugfs_create_conn() local
[all …]
A Dhci_core.c1367 if (hdev->open(hdev)) { in hci_dev_do_open()
1451 ret = hdev->set_bdaddr(hdev, &hdev->public_addr); in hci_dev_do_open()
1510 hdev->flush(hdev); in hci_dev_do_open()
1520 hdev->close(hdev); in hci_dev_do_open()
1683 hdev->flush(hdev); in hci_dev_do_close()
1718 hdev->close(hdev); in hci_dev_do_close()
1785 hdev->flush(hdev); in hci_dev_do_reset()
2214 hdev->hw_error(hdev, hdev->hw_error_code); in hci_error_reset()
3784 if (!hdev->open || !hdev->close || !hdev->send) in hci_register_dev()
3834 hdev->rfkill = rfkill_alloc(hdev->name, &hdev->dev, in hci_register_dev()
[all …]
A Dhci_request.c42 req->hdev = hdev; in hci_req_init()
59 struct hci_dev *hdev = req->hdev; in req_run() local
321 struct hci_dev *hdev = req->hdev; in hci_req_add_ev() local
356 struct hci_dev *hdev = req->hdev; in __hci_req_write_fast_connectable() local
447 struct hci_dev *hdev = req->hdev; in __hci_update_background_scan() local
517 struct hci_dev *hdev = req->hdev; in __hci_req_update_name() local
527 struct hci_dev *hdev = req->hdev; in __hci_req_update_eir() local
556 struct hci_dev *hdev = req->hdev; in hci_req_add_le_scan_disable() local
626 struct hci_dev *hdev = req->hdev; in add_to_accept_list() local
1709 err = smp_generate_rpa(hdev, hdev->irk, &hdev->rpa); in hci_get_random_address()
[all …]
A Dhci_event.c436 hdev->dev_class[2], hdev->dev_class[1], hdev->dev_class[0]); in hci_cc_read_class_of_dev()
768 hdev->acl_cnt = hdev->acl_pkts; in hci_cc_read_buffer_size()
769 hdev->sco_cnt = hdev->sco_pkts; in hci_cc_read_buffer_size()
772 hdev->acl_pkts, hdev->sco_mtu, hdev->sco_pkts); in hci_cc_read_buffer_size()
887 hdev->block_cnt = hdev->num_blocks; in hci_cc_read_data_block_size()
1050 hdev->le_cnt = hdev->le_pkts; in hci_cc_le_read_buffer_size()
1052 BT_DBG("%s le mtu %d:%d", hdev->name, hdev->le_mtu, hdev->le_pkts); in hci_cc_le_read_buffer_size()
3930 hdev->acl_cnt = hdev->acl_pkts; in hci_num_comp_pkts_evt()
3937 hdev->le_cnt = hdev->le_pkts; in hci_num_comp_pkts_evt()
3948 hdev->sco_cnt = hdev->sco_pkts; in hci_num_comp_pkts_evt()
[all …]
A Dmgmt.c1238 queue_work(hdev->req_workqueue, &hdev->power_on); in set_powered()
2816 struct hci_dev *hdev = conn->hdev; in find_pairing() local
3855 if (hdev && use_ll_privacy(hdev)) { in read_exp_features_info()
3866 if (hdev && hdev->set_quality_report) { in read_exp_features_info()
3877 if (hdev && hdev->get_data_path_id) { in read_exp_features_info()
3969 if (hdev && use_ll_privacy(hdev) && !hdev_is_powered(hdev)) { in set_zero_key_func()
4136 err = hdev->set_quality_report(hdev, val); in set_quality_report_func()
6282 memcpy(hdev->irk, cp->irk, sizeof(hdev->irk)); in set_privacy()
6291 memset(hdev->irk, 0, sizeof(hdev->irk)); in set_privacy()
9354 struct hci_dev *hdev = req->hdev; in clear_eir() local
[all …]
A Dmsft.c120 skb = __hci_cmd_sync(hdev, hdev->msft_opcode, sizeof(cp), &cp, in read_supported_features()
326 hdev->msft_data = msft; in msft_register()
413 hci_dev_lock(hdev); in msft_le_monitor_advertisement_cb()
453 hci_dev_unlock(hdev); in msft_le_monitor_advertisement_cb()
480 hci_dev_lock(hdev); in msft_le_cancel_monitor_advertisement_cb()
482 cp = hci_sent_cmd_data(hdev, hdev->msft_opcode); in msft_le_cancel_monitor_advertisement_cb()
522 hci_dev_unlock(hdev); in msft_le_cancel_monitor_advertisement_cb()
551 hci_dev_lock(hdev); in msft_le_set_advertisement_filter_enable_cb()
553 cp = hci_sent_cmd_data(hdev, hdev->msft_opcode); in msft_le_set_advertisement_filter_enable_cb()
560 hci_dev_unlock(hdev); in msft_le_set_advertisement_filter_enable_cb()
[all …]
/linux/net/nfc/hci/
A Dcore.c78 hdev->cmd_pending_msg->cb(hdev-> in nfc_hci_msg_tx_work()
488 r = hdev->ops->load_session(hdev); in hci_dev_session_init()
585 r = hdev->ops->open(hdev); in hci_dev_up()
604 r = hdev->ops->hci_ready(hdev); in hci_dev_up()
620 hdev->ops->close(hdev); in hci_dev_up()
632 hdev->ops->close(hdev); in hci_dev_down()
657 hdev->ops->stop_poll(hdev); in hci_stop_poll()
682 return hdev->ops->dep_link_down(hdev); in hci_dep_link_down()
777 return hdev->ops->tm_send(hdev, skb); in hci_tm_send()
796 return hdev->ops->discover_se(hdev); in hci_discover_se()
[all …]
/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/
A Dhclgevf_main.c403 hdev->htqp = devm_kcalloc(&hdev->pdev->dev, hdev->num_tqps, in hclgevf_alloc_tqps()
467 hdev->htqp[i].q.handle = &hdev->nic; in hclgevf_knic_setup()
1997 set_bit(hdev->reset_type, &hdev->reset_pending); in hclgevf_reset_err_handle()
2315 set_bit(hdev->reset_level, &hdev->reset_pending); in hclgevf_reset_service_task()
2539 if (!hdev) in hclgevf_alloc_hdev()
2865 0, hdev->misc_vector.name, hdev); in hclgevf_misc_irq_init()
2885 free_irq(hdev->misc_vector.vector_irq, hdev); in hclgevf_misc_irq_uninit()
3084 hw->hdev = hdev; in hclgevf_pci_init()
3148 hdev->num_nic_msix = hdev->num_roce_msix; in hclgevf_query_vf_resource()
3153 hdev->num_msi = hdev->num_roce_msix + in hclgevf_query_vf_resource()
[all …]
A Dhclgevf_mbx.c25 hdev->mbx_resp.match_id++; in hclgevf_reset_mbx_resp_status()
48 dev_err(&hdev->pdev->dev, in hclgevf_get_mbx_resp()
64 dev_err(&hdev->pdev->dev, in hclgevf_get_mbx_resp()
83 dev_err(&hdev->pdev->dev, in hclgevf_get_mbx_resp()
86 dev_err(&hdev->pdev->dev, in hclgevf_get_mbx_resp()
204 memcpy(hdev->arq.msg_q[hdev->arq.tail], &req->msg, in hclgevf_handle_mbx_msg()
219 crq = &hdev->hw.cmq.crq; in hclgevf_mbx_handler()
295 tail = hdev->arq.tail; in hclgevf_mbx_async_handler()
305 msg_q = hdev->arq.msg_q[hdev->arq.head]; in hclgevf_mbx_async_handler()
320 &hdev->state); in hclgevf_mbx_async_handler()
[all …]
/linux/drivers/bluetooth/
A Dbtintel.c645 struct hci_dev *hdev; member
827 ctx->hdev = hdev; in btintel_regmap_init()
1003 bt_dev_err(hdev, in btintel_download_firmware_payload()
1557 BT_DBG("%s", hdev->name); in btintel_legacy_rom_setup()
1564 bt_dev_info(hdev, in btintel_legacy_rom_setup()
2259 bt_dev_dbg(hdev, ""); in btintel_bootloader_setup_tlv()
2361 bt_dev_err(hdev, in btintel_setup_combined()
2427 &hdev->quirks); in btintel_setup_combined()
2448 &hdev->quirks); in btintel_setup_combined()
2453 &hdev->quirks); in btintel_setup_combined()
[all …]
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
A Dhclge_dcb.c51 ets->ets_cap = hdev->tc_max; in hclge_tm_info_to_ieee_ets()
81 if (num_tc > hdev->tc_max) { in hclge_dcb_common_validate()
82 dev_err(&hdev->pdev->dev, in hclge_dcb_common_validate()
84 num_tc, hdev->tc_max); in hclge_dcb_common_validate()
90 dev_err(&hdev->pdev->dev, in hclge_dcb_common_validate()
98 dev_err(&hdev->pdev->dev, in hclge_dcb_common_validate()
299 dev_err(&hdev->pdev->dev, in hclge_ieee_getpfc()
371 return hdev->dcbx_cap; in hclge_getdcbx()
388 hdev->dcbx_cap = mode; in hclge_setdcbx()
420 hdev->pf_rss_size_max); in hclge_mqprio_qopt_check()
[all …]
A Dhclge_tm.c752 hdev->tm_info.pg_info[i].tc_bit_map = hdev->hw_tc_map; in hclge_tm_pg_info_init()
762 if (hdev->tm_info.num_tc == 1 && !hdev->tm_info.pfc_en) { in hclge_update_fc_mode_by_dcb_flag()
767 hdev->tm_info.fc_mode = hdev->fc_mode_last_time; in hclge_update_fc_mode_by_dcb_flag()
773 hdev->fc_mode_last_time = hdev->tm_info.fc_mode; in hclge_update_fc_mode_by_dcb_flag()
781 hdev->tm_info.fc_mode = hdev->fc_mode_last_time; in hclge_update_fc_mode()
786 hdev->fc_mode_last_time = hdev->tm_info.fc_mode; in hclge_update_fc_mode()
821 hdev, i, hdev->tm_info.pg_info[i].tc_bit_map); in hclge_tm_pg_to_pri_map()
887 ret = hclge_tm_pg_weight_cfg(hdev, i, hdev->tm_info.pg_dwrr[i]); in hclge_tm_pg_dwrr_cfg()
1105 &hdev->tm_info.pg_info[hdev->tm_info.tc_info[i].pgid]; in hclge_tm_pri_tc_base_dwrr_cfg()
1569 hdev->fc_mode_last_time = hdev->tm_info.fc_mode; in hclge_tm_schd_init()
[all …]
A Dhclge_main.c1015 hdev->num_msi = hdev->num_nic_msi + hdev->num_roce_msi; in hclge_query_pf_resource()
1017 hdev->num_msi = hdev->num_nic_msi; in hclge_query_pf_resource()
1611 hdev->num_tqps = hdev->num_req_vfs + 1; in hclge_init_kdump_kernel_config()
1677 hdev->pfc_max = hdev->tc_max; in hclge_configure()
1742 hdev->htqp = devm_kcalloc(&hdev->pdev->dev, hdev->num_tqps, in hclge_alloc_tqps()
1951 hdev->num_alloc_vfs = hdev->num_req_vfs; in hclge_alloc_vport()
2589 if (hdev->num_msi < hdev->num_nic_msi + hdev->num_roce_msi) in hclge_init_roce_base_info()
2915 ret = hclge_set_mac_mtu(hdev, hdev->mps); in hclge_mac_init()
3674 0, hdev->misc_vector.name, hdev); in hclge_misc_irq_init()
4457 (hdev, &hdev->default_reset_request)) in hclge_misc_err_recovery()
[all …]
A Dhclge_ptp.c98 hdev->ptp->last_tx_seqid = readl(hdev->ptp->io_base + in hclge_ptp_clean_tx_hwts()
102 hdev->ptp->tx_skb = NULL; in hclge_ptp_clean_tx_hwts()
103 hdev->ptp->tx_cleaned++; in hclge_ptp_clean_tx_hwts()
137 hdev->ptp->rx_cnt++; in hclge_ptp_get_rx_hwts()
410 if (hdev->ptp->clock) in hclge_ptp_get_ts_info()
442 ptp->hdev = hdev; in hclge_ptp_create_clock()
470 hdev->ptp = ptp; in hclge_ptp_create_clock()
479 devm_kfree(&hdev->pdev->dev, hdev->ptp); in hclge_ptp_destroy_clock()
480 hdev->ptp = NULL; in hclge_ptp_destroy_clock()
492 if (!hdev->ptp) { in hclge_ptp_init()
[all …]
/linux/drivers/crypto/stm32/
A Dstm32-hash.c646 ctx->hdev = hdev; in stm32_hash_find_dev()
648 hdev = ctx->hdev; in stm32_hash_find_dev()
689 rctx->hdev = hdev; in stm32_hash_init()
793 struct stm32_hash_dev *hdev = rctx->hdev; in stm32_hash_finish_req() local
846 if (!hdev) in stm32_hash_prepare_req()
868 if (!hdev) in stm32_hash_one_request()
891 struct stm32_hash_dev *hdev = ctx->hdev; in stm32_hash_enqueue() local
1440 hdev = devm_kzalloc(dev, sizeof(*hdev), GFP_KERNEL); in stm32_hash_probe()
1441 if (!hdev) in stm32_hash_probe()
1535 stm32_hash_read(hdev, HASH_VER), hdev->dma_mode); in stm32_hash_probe()
[all …]
/linux/drivers/media/platform/qcom/venus/
A Dhfi_venus.c756 venus_free(hdev, &hdev->ifaceq_table); in venus_interface_queues_release()
757 venus_free(hdev, &hdev->sfr); in venus_interface_queues_release()
759 memset(hdev->queues, 0, sizeof(hdev->queues)); in venus_interface_queues_release()
761 memset(&hdev->sfr, 0, sizeof(hdev->sfr)); in venus_interface_queues_release()
936 if (IS_V4(hdev->core) || IS_V6(hdev->core)) in venus_sys_set_default_properties()
1062 if (!hdev) in venus_isr_thread()
1104 if (!hdev) in venus_isr()
1461 if (!hdev->power_enabled || hdev->suspended) in venus_suspend_1xx()
1560 if (!hdev->power_enabled || hdev->suspended) in venus_suspend_3xx()
1672 hdev = kzalloc(sizeof(*hdev), GFP_KERNEL); in venus_hfi_create()
[all …]
/linux/drivers/crypto/
A Dimg-hash.c296 struct img_hash_dev *hdev = ctx->hdev; in img_hash_finish_req() local
337 hdev->dma_lch = dma_request_chan(hdev->dev, "tx"); in img_hash_dma_init()
390 hdev->err = 0; in img_hash_dma_task()
477 hdev->err = 0; in img_hash_hw_init()
528 hdev->req = req; in img_hash_handle_queue()
630 hdev = tmp; in img_hash_digest()
633 tctx->hdev = hdev; in img_hash_digest()
636 hdev = tctx->hdev; in img_hash_digest()
640 ctx->hdev = hdev; in img_hash_digest()
940 hdev = devm_kzalloc(dev, sizeof(*hdev), GFP_KERNEL); in img_hash_probe()
[all …]
/linux/drivers/misc/habanalabs/common/pci/
A Dpci.c47 if (!hdev->pcie_bar[bar]) { in hl_pci_bars_map()
60 if (hdev->pcie_bar[bar]) in hl_pci_bars_map()
95 if (hdev->pldm) in hl_pci_elbi_read()
155 if (hdev->pldm) in hl_pci_elbi_write()
341 if ((hdev->power9_64bit_dma_enable) && (hdev->dma_mask == 64)) in hl_pci_set_outbound_region()
401 if (hdev->reset_pcilink) in hl_pci_init()
412 rc = hdev->asic_funcs->pci_bars_map(hdev); in hl_pci_init()
418 rc = hdev->asic_funcs->init_iatu(hdev); in hl_pci_init()
427 hdev->asic_funcs->set_dma_mask_from_fw(hdev); in hl_pci_init()
433 dev_err(hdev->dev, in hl_pci_init()
[all …]
/linux/drivers/misc/habanalabs/goya/
A Dgoya_hwmgr.c16 hl_set_frequency(hdev, HL_GOYA_MME_PLL, hdev->high_pll); in goya_set_pll_profile()
17 hl_set_frequency(hdev, HL_GOYA_TPC_PLL, hdev->high_pll); in goya_set_pll_profile()
18 hl_set_frequency(hdev, HL_GOYA_IC_PLL, hdev->high_pll); in goya_set_pll_profile()
41 if (!hl_device_operational(hdev, NULL)) in mme_clk_show()
65 if (hdev->pm_mng_profile == PM_AUTO) { in mme_clk_store()
257 mutex_lock(&hdev->fpriv_list_lock); in pm_mng_profile_store()
259 if (hdev->compute_ctx) { in pm_mng_profile_store()
260 dev_err(hdev->dev, in pm_mng_profile_store()
270 hdev->pm_mng_profile = PM_AUTO; in pm_mng_profile_store()
280 hdev->pm_mng_profile = PM_MANUAL; in pm_mng_profile_store()
[all …]
A Dgoya.c563 hdev->asic_funcs->set_dma_mask_from_fw(hdev); in goya_init_iatu()
667 hdev->asic_funcs->hw_fini(hdev, true, false); in goya_early_init()
1150 hdev, in goya_stop_queue()
1163 hdev, in goya_stop_queue()
1300 hdev, in goya_init_cpu_queues()
1406 hdev, in _goya_tpc_mbist_workaround()
2567 hdev, in goya_mmu_update_asid_hop0_addr()
3957 rc = hl_cb_create(hdev, &hdev->kernel_cb_mgr, hdev->kernel_ctx, in goya_parse_cb_mmu()
4014 hl_cb_destroy(hdev, &hdev->kernel_cb_mgr, in goya_parse_cb_mmu()
4031 rc = hl_cb_create(hdev, &hdev->kernel_cb_mgr, hdev->kernel_ctx, in goya_parse_cb_no_mmu()
[all …]
/linux/drivers/misc/habanalabs/gaudi/
A Dgaudi.c680 hdev->rmmio = hdev->pcie_bar[CFG_BAR_ID] + in gaudi_pci_bars_map()
1090 struct hl_device *hdev = hw_sob_group->hdev; in gaudi_sob_group_hw_reset() local
1104 struct hl_device *hdev = hw_sob_group->hdev; in gaudi_sob_group_reset_error() local
1145 prop->hw_sob_group[i].hdev = hdev; in gaudi_collective_init()
1284 hdev = ctx->hdev; in gaudi_collective_wait_init_cs()
4218 hdev->asic_funcs->set_clock_gating(hdev); in gaudi_hw_init()
5629 rc = hl_cb_create(hdev, &hdev->kernel_cb_mgr, hdev->kernel_ctx, in gaudi_parse_cb_mmu()
5686 hl_cb_destroy(hdev, &hdev->kernel_cb_mgr, in gaudi_parse_cb_mmu()
5703 rc = hl_cb_create(hdev, &hdev->kernel_cb_mgr, hdev->kernel_ctx, in gaudi_parse_cb_no_mmu()
6433 hdev->asic_funcs->hw_queues_lock(hdev); in gaudi_debugfs_read_dma()
[all …]

Completed in 949 milliseconds

12345678910>>...14