/openbmc/linux/drivers/accel/habanalabs/common/ |
H A D | device.c | 405 hdev = hpriv->hdev; in hpriv_release() 529 struct hl_device *hdev = hpriv->hdev; in hl_device_release() local 561 struct hl_device *hdev = hpriv->hdev; in hl_device_release_ctrl() local 904 hdev->device_reset_work.hdev = hdev; in device_early_init() 909 hdev->device_release_watchdog_work.hdev = hdev; in device_early_init() 1093 hdev->asic_funcs->late_fini(hdev); in device_late_fini() 2011 hdev->cdev_idx = hdev->id / 2; in create_cdev() 2020 rc = device_init_cdev(hdev, hdev->hclass, hdev->id, &hl_ops, name, in create_cdev() 2021 &hdev->cdev, &hdev->dev); in create_cdev() 2322 hdev->asic_funcs->sw_fini(hdev); in hl_device_init() [all …]
|
H A D | habanalabs_drv.c | 147 if (!hdev) { in hl_device_open() 157 hpriv->hdev = hdev; in hl_device_open() 177 dev_name(hdev->dev), hdev->status[status]); in hl_device_open() 221 hdev->asic_funcs->send_device_activity(hdev, true); in hl_device_open() 259 if (!hdev) { in hl_device_open_ctrl() 272 hpriv->hdev = hdev; in hl_device_open_ctrl() 406 hdev = kzalloc(sizeof(*hdev), GFP_KERNEL); in create_hdev() 407 if (!hdev) in create_hdev() 427 hdev->asic_type = get_asic_type(hdev); in create_hdev() 577 if (!hdev) in hl_pci_remove() [all …]
|
H A D | firmware_if.c | 1484 hdev, in hl_fw_wait_preboot_ready() 1553 hdev->asic_funcs->init_firmware_loader(hdev); in hl_fw_read_preboot_caps() 1837 hdev, in hl_fw_dynamic_wait_for_status() 2527 hdev, in hl_fw_dynamic_wait_for_boot_fit_active() 2555 hdev, in hl_fw_dynamic_wait_for_linux_active() 2776 hdev->tpc_binning, hdev->dram_binning, hdev->edma_binning, in hl_fw_dynamic_init_cpu() 2897 hdev, in hl_fw_static_init_cpu() 2920 hdev, in hl_fw_static_init_cpu() 2946 hdev, in hl_fw_static_init_cpu() 2998 hdev, in hl_fw_static_init_cpu() [all …]
|
H A D | hw_queue.c | 43 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 335 struct hl_device *hdev = job->cs->ctx->hdev; in int_queue_schedule_job() local 356 hdev->asic_funcs->pqe_write(hdev, pi, &bd); in int_queue_schedule_job() 550 struct hl_device *hdev = ctx->hdev; in init_signal_wait_cs() local 630 struct hl_device *hdev = ctx->hdev; in hl_hw_queue_schedule_cs() local 639 hdev->asic_funcs->hw_queues_lock(hdev); in hl_hw_queue_schedule_cs() 795 hdev->asic_funcs->hw_queues_unlock(hdev); in hl_hw_queue_schedule_cs() [all …]
|
H A D | sysfs.c | 20 value = hl_fw_get_frequency(hdev, hdev->asic_prop.clk_pll_index, false); in clk_max_freq_mhz_show() 49 hl_fw_set_frequency(hdev, hdev->asic_prop.clk_pll_index, hdev->asic_prop.max_freq_value); in clk_max_freq_mhz_store() 63 value = hl_fw_get_frequency(hdev, hdev->asic_prop.clk_pll_index, true); in clk_cur_freq_mhz_show() 203 hl_device_reset(hdev, 0); in soft_reset_store() 259 hdev->asic_type); in device_type_show() 284 strscpy(str, hdev->status[hl_device_status(hdev)], HL_STR_MAX); in status_show() 343 hdev->max_power = value; in max_power_store() 369 rc = hdev->asic_funcs->get_eeprom_data(hdev, data, max_size); in eeprom_read_handler() 485 hdev->max_power = hdev->asic_prop.max_power_default; in hl_sysfs_init() 491 dev_err(hdev->dev, in hl_sysfs_init() [all …]
|
/openbmc/linux/net/bluetooth/ |
H A D | hci_sync.c | 90 struct hci_dev *hdev = req->hdev; in hci_cmd_sync_add() local 119 struct hci_dev *hdev = req->hdev; in hci_req_sync_run() local 1095 err = smp_generate_rpa(hdev, hdev->irk, &hdev->rpa); in hci_update_random_address_sync() 4901 ret = hdev->set_bdaddr(hdev, &hdev->public_addr); in hci_dev_setup_sync() 4959 ret = hdev->set_bdaddr(hdev, &hdev->public_addr); in hci_dev_init_sync() 5035 if (hdev->open(hdev)) { in hci_dev_open_sync() 5076 hdev->flush(hdev); in hci_dev_open_sync() 5092 hdev->close(hdev); in hci_dev_open_sync() 5222 hdev->flush(hdev); in hci_dev_close_sync() 5259 hdev->close(hdev); in hci_dev_close_sync() [all …]
|
H A D | hci_debugfs.c | 115 hdev->devid_vendor, hdev->devid_product, hdev->devid_version); in device_id_show() 318 debugfs_create_file("features", 0444, hdev->debugfs, hdev, in hci_debugfs_create_common() 344 if (lmp_ssp_capable(hdev) || lmp_le_capable(hdev)) in hci_debugfs_create_common() 348 if (lmp_sc_capable(hdev) || lmp_le_capable(hdev)) in hci_debugfs_create_common() 409 hdev->dev_class[1], hdev->dev_class[0]); in dev_class_show() 682 16, hdev->irk, &hdev->rpa); in identity_show() 1216 hdev->debugfs, hdev, in hci_debugfs_create_le() 1257 hdev->debugfs, hdev, in hci_debugfs_create_le() 1260 hdev->debugfs, hdev, in hci_debugfs_create_le() 1266 struct hci_dev *hdev = conn->hdev; in hci_debugfs_create_conn() local [all …]
|
H A D | coredump.c | 73 hdev->dump.dmp_hdr(hdev, skb); in hci_devcd_mkheader() 84 hdev->dump.notify_change(hdev, state); in hci_devcd_notify() 116 hdev->dump.tail = hdev->dump.head; in hci_devcd_alloc() 117 hdev->dump.end = hdev->dump.head + size; in hci_devcd_alloc() 127 if (hdev->dump.tail + size > hdev->dump.end) in hci_devcd_copy() 139 if (hdev->dump.tail + len > hdev->dump.end) in hci_devcd_memset() 254 dump_size = hdev->dump.tail - hdev->dump.head; in hci_devcd_handle_pkt_complete() 273 dump_size = hdev->dump.tail - hdev->dump.head; in hci_devcd_handle_pkt_abort() 364 hci_devcd_notify(hdev, hdev->dump.state); in hci_devcd_rx() 390 dump_size = hdev->dump.tail - hdev->dump.head; in hci_devcd_timeout() [all …]
|
H A D | hci_core.c | 574 hdev->flush(hdev); in hci_dev_do_reset() 1006 hdev->hw_error(hdev, hdev->hw_error_code); in hci_error_reset() 1455 hdev->cmd_timeout(hdev); in hci_cmd_timeout() 2560 if (!hdev->open || !hdev->close || !hdev->send) in hci_register_dev() 2599 hdev->rfkill = rfkill_alloc(hdev->name, &hdev->dev, in hci_register_dev() 3312 hdev = conn->hdev; in hci_quote_sent() 3323 cnt = hdev->le_mtu ? hdev->le_cnt : hdev->acl_cnt; in hci_quote_sent() 3327 hdev->le_mtu ? hdev->le_cnt : hdev->acl_cnt; in hci_quote_sent() 3650 cnt = hdev->le_pkts ? &hdev->le_cnt : &hdev->acl_cnt; in hci_sched_le() 3697 hdev->le_pkts ? &hdev->le_cnt : &hdev->acl_cnt; in hci_sched_iso() [all …]
|
H A D | hci_request.c | 38 req->hdev = hdev; in hci_req_init() 55 struct hci_dev *hdev = req->hdev; in req_run() local 244 struct hci_dev *hdev = req->hdev; in hci_req_add_ev() local 332 struct hci_dev *hdev = req->hdev; in hci_req_add_le_scan_disable() local 396 struct hci_dev *hdev = req->hdev; in add_to_accept_list() local 454 struct hci_dev *hdev = req->hdev; in update_accept_list() local 548 struct hci_dev *hdev = req->hdev; in hci_req_start_scan() local 639 struct hci_dev *hdev = req->hdev; in hci_update_random_address() local 658 err = smp_generate_rpa(hdev, hdev->irk, &hdev->rpa); in hci_update_random_address() 730 struct hci_dev *hdev = req->hdev; in hci_req_add_le_passive_scan() local [all …]
|
H A D | hci_event.c | 936 hdev->acl_cnt = hdev->acl_pkts; in hci_cc_read_buffer_size() 937 hdev->sco_cnt = hdev->sco_pkts; in hci_cc_read_buffer_size() 940 hdev->acl_pkts, hdev->sco_mtu, hdev->sco_pkts); in hci_cc_read_buffer_size() 1204 hdev->le_cnt = hdev->le_pkts; in hci_cc_le_read_buffer_size() 1206 BT_DBG("%s le mtu %d:%d", hdev->name, hdev->le_mtu, hdev->le_pkts); in hci_cc_le_read_buffer_size() 3763 hdev->le_cnt = hdev->le_pkts; in hci_cc_le_read_buffer_size_v2() 3764 hdev->iso_cnt = hdev->iso_pkts; in hci_cc_le_read_buffer_size_v2() 3767 hdev->acl_pkts, hdev->iso_mtu, hdev->iso_pkts); in hci_cc_le_read_buffer_size_v2() 4417 hdev->acl_cnt = hdev->acl_pkts; in hci_num_comp_pkts_evt() 4424 hdev->le_cnt = hdev->le_pkts; in hci_num_comp_pkts_evt() [all …]
|
H A D | mgmt.c | 3323 struct hci_dev *hdev = conn->hdev; in find_pairing() local 4399 if (hdev && ll_privacy_capable(hdev)) { in read_exp_features_info() 4410 if (hdev && (aosp_has_quality_report(hdev) || in read_exp_features_info() 4422 if (hdev && hdev->get_data_path_id) { in read_exp_features_info() 4440 if (hdev && lmp_le_capable(hdev)) { in read_exp_features_info() 4527 if (hdev && use_ll_privacy(hdev) && !hdev_is_powered(hdev)) { in set_zero_key_func() 4554 if (hdev) in set_debug_func() 4747 err = hdev->set_quality_report(hdev, val); in set_quality_report_func() 4906 if (hdev) in set_iso_socket_func() 7002 memcpy(hdev->irk, cp->irk, sizeof(hdev->irk)); in set_privacy() [all …]
|
/openbmc/linux/net/nfc/hci/ |
H A D | core.c | 78 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 …]
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
H A D | hclgevf_main.c | 56 hdev->arq.hdev = hdev; in hclgevf_arq_init() 270 hdev->htqp = devm_kcalloc(&hdev->pdev->dev, hdev->num_tqps, in hclgevf_alloc_tqps() 342 hdev->htqp[i].q.handle = &hdev->nic; in hclgevf_knic_setup() 1510 set_bit(hdev->reset_type, &hdev->reset_pending); in hclgevf_reset_err_handle() 2347 0, hdev->misc_vector.name, hdev); in hclgevf_misc_irq_init() 2367 free_irq(hdev->misc_vector.vector_irq, hdev); in hclgevf_misc_irq_uninit() 2625 hdev->num_nic_msix = hdev->num_roce_msix; in hclgevf_query_vf_resource() 2630 hdev->num_msi = hdev->num_roce_msix + in hclgevf_query_vf_resource() 2637 hdev->num_nic_msix = hdev->num_msi; in hclgevf_query_vf_resource() 2961 hclge_comm_cmd_uninit(hdev->ae_dev, &hdev->hw.hw); in hclgevf_init_hdev() [all …]
|
H A D | hclgevf_mbx.c | 25 hdev->mbx_resp.match_id++; in hclgevf_reset_mbx_resp_status() 50 dev_err(&hdev->pdev->dev, in hclgevf_get_mbx_resp() 70 dev_err(&hdev->pdev->dev, in hclgevf_get_mbx_resp() 89 dev_err(&hdev->pdev->dev, in hclgevf_get_mbx_resp() 92 dev_err(&hdev->pdev->dev, in hclgevf_get_mbx_resp() 112 dev_err(&hdev->pdev->dev, in hclgevf_send_mbx_msg() 216 memcpy(hdev->arq.msg_q[hdev->arq.tail], &req->msg, in hclgevf_handle_mbx_msg() 314 tail = hdev->arq.tail; in hclgevf_mbx_async_handler() 325 msg_q = hdev->arq.msg_q[hdev->arq.head]; in hclgevf_mbx_async_handler() 341 &hdev->state); in hclgevf_mbx_async_handler() [all …]
|
/openbmc/linux/include/net/bluetooth/ |
H A D | hci_sync.h | 44 void hci_cmd_sync_init(struct hci_dev *hdev); 45 void hci_cmd_sync_clear(struct hci_dev *hdev); 70 int hci_update_eir_sync(struct hci_dev *hdev); 73 int hci_update_eir_sync(struct hci_dev *hdev); 75 int hci_update_name_sync(struct hci_dev *hdev); 117 int hci_update_scan(struct hci_dev *hdev); 126 int hci_reset_sync(struct hci_dev *hdev); 127 int hci_dev_open_sync(struct hci_dev *hdev); 128 int hci_dev_close_sync(struct hci_dev *hdev); 141 int hci_suspend_sync(struct hci_dev *hdev); [all …]
|
/openbmc/linux/drivers/bluetooth/ |
H A D | btintel.c | 670 struct hci_dev *hdev; member 852 ctx->hdev = hdev; in btintel_regmap_init() 1028 bt_dev_err(hdev, in btintel_download_firmware_payload() 1635 BT_DBG("%s", hdev->name); in btintel_legacy_rom_setup() 1642 bt_dev_info(hdev, in btintel_legacy_rom_setup() 2532 bt_dev_dbg(hdev, ""); in btintel_bootloader_setup_tlv() 2646 bt_dev_err(hdev, in btintel_setup_combined() 2717 &hdev->quirks); in btintel_setup_combined() 2720 &hdev->quirks); in btintel_setup_combined() 2737 &hdev->quirks); in btintel_setup_combined() [all …]
|
/openbmc/linux/drivers/media/platform/qcom/venus/ |
H A D | hfi_venus.c | 466 if (IS_IRIS2(hdev->core) || IS_IRIS2_1(hdev->core)) { in venus_boot_core() 494 if (IS_IRIS2(hdev->core) || IS_IRIS2_1(hdev->core)) { in venus_boot_core() 767 venus_free(hdev, &hdev->ifaceq_table); in venus_interface_queues_release() 768 venus_free(hdev, &hdev->sfr); in venus_interface_queues_release() 770 memset(hdev->queues, 0, sizeof(hdev->queues)); in venus_interface_queues_release() 772 memset(&hdev->sfr, 0, sizeof(hdev->sfr)); in venus_interface_queues_release() 1074 if (!hdev) in venus_isr_thread() 1116 if (!hdev) in venus_isr() 1473 if (!hdev->power_enabled || hdev->suspended) in venus_suspend_1xx() 1572 if (!hdev->power_enabled || hdev->suspended) in venus_suspend_3xx() [all …]
|
/openbmc/linux/drivers/crypto/ |
H A D | img-hash.c | 296 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() 366 if (!hdev->req) in img_hash_dma_task() 394 hdev->err = 0; in img_hash_dma_task() 481 hdev->err = 0; in img_hash_hw_init() 532 hdev->req = req; in img_hash_handle_queue() 634 hdev = tmp; in img_hash_digest() 637 tctx->hdev = hdev; in img_hash_digest() 640 hdev = tctx->hdev; in img_hash_digest() 644 ctx->hdev = hdev; in img_hash_digest() [all …]
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_dcb.c | 51 ets->ets_cap = hdev->tc_max; in hclge_tm_info_to_ieee_ets() 55 if (i < hdev->tm_info.num_tc) in hclge_tm_info_to_ieee_ets() 84 if (num_tc > hdev->tc_max) { in hclge_dcb_common_validate() 85 dev_err(&hdev->pdev->dev, in hclge_dcb_common_validate() 87 num_tc, hdev->tc_max); in hclge_dcb_common_validate() 93 dev_err(&hdev->pdev->dev, in hclge_dcb_common_validate() 101 dev_err(&hdev->pdev->dev, in hclge_dcb_common_validate() 217 hclge_comm_rss_indir_init_cfg(hdev->ae_dev, &hdev->rss_cfg); in hclge_map_update() 315 dev_err(&hdev->pdev->dev, in hclge_ieee_getpfc() 490 return hdev->dcbx_cap; in hclge_getdcbx() [all …]
|
H A D | hclge_tm.c | 806 hdev->tm_info.pg_info[i].tc_bit_map = hdev->hw_tc_map; in hclge_tm_pg_info_init() 816 if (hdev->tm_info.num_tc == 1 && !hdev->tm_info.pfc_en) { in hclge_update_fc_mode_by_dcb_flag() 821 hdev->tm_info.fc_mode = hdev->fc_mode_last_time; in hclge_update_fc_mode_by_dcb_flag() 827 hdev->fc_mode_last_time = hdev->tm_info.fc_mode; in hclge_update_fc_mode_by_dcb_flag() 835 hdev->tm_info.fc_mode = hdev->fc_mode_last_time; in hclge_update_fc_mode() 840 hdev->fc_mode_last_time = hdev->tm_info.fc_mode; in hclge_update_fc_mode() 875 hdev, i, hdev->tm_info.pg_info[i].tc_bit_map); in hclge_tm_pg_to_pri_map() 941 ret = hclge_tm_pg_weight_cfg(hdev, i, hdev->tm_info.pg_dwrr[i]); in hclge_tm_pg_dwrr_cfg() 1193 &hdev->tm_info.pg_info[hdev->tm_info.tc_info[i].pgid]; in hclge_tm_pri_tc_base_dwrr_cfg() 1694 hdev->fc_mode_last_time = hdev->tm_info.fc_mode; in hclge_tm_schd_init() [all …]
|
H A D | hclge_ptp.c | 86 hdev->ptp->last_tx_seqid = readl(hdev->ptp->io_base + in hclge_ptp_clean_tx_hwts() 91 hdev->ptp->tx_cleaned++; in hclge_ptp_clean_tx_hwts() 111 if (!hdev->ptp || !test_bit(HCLGE_PTP_FLAG_RX_EN, &hdev->ptp->flags)) in hclge_ptp_get_rx_hwts() 125 hdev->ptp->rx_cnt++; in hclge_ptp_get_rx_hwts() 398 if (hdev->ptp->clock) in hclge_ptp_get_ts_info() 430 ptp->hdev = hdev; in hclge_ptp_create_clock() 458 hdev->ptp = ptp; in hclge_ptp_create_clock() 467 devm_kfree(&hdev->pdev->dev, hdev->ptp); in hclge_ptp_destroy_clock() 468 hdev->ptp = NULL; in hclge_ptp_destroy_clock() 480 if (!hdev->ptp) { in hclge_ptp_init() [all …]
|
H A D | hclge_main.c | 833 hdev->num_msi = hdev->num_nic_msi + hdev->num_roce_msi; in hclge_query_pf_resource() 835 hdev->num_msi = hdev->num_nic_msi; in hclge_query_pf_resource() 1454 hdev->num_tqps = hdev->num_req_vfs + 1; in hclge_init_kdump_kernel_config() 1475 hdev->pfc_max = hdev->tc_max; in hclge_init_tc_config() 1586 hdev->htqp = devm_kcalloc(&hdev->pdev->dev, hdev->num_tqps, in hclge_alloc_tqps() 1804 hdev->num_alloc_vfs = hdev->num_req_vfs; in hclge_alloc_vport() 2443 if (hdev->num_msi < hdev->num_nic_msi + hdev->num_roce_msi) in hclge_init_roce_base_info() 3716 0, hdev->misc_vector.name, hdev); in hclge_misc_irq_init() 8352 hdev->priv_umv_size = hdev->max_umv_size / (hdev->num_alloc_vport + 1); in hclge_init_umv_space() 11651 ret = hclge_comm_cmd_init(hdev->ae_dev, &hdev->hw.hw, &hdev->fw_version, in hclge_init_ae_dev() [all …]
|
/openbmc/linux/drivers/accel/habanalabs/common/pci/ |
H A D | pci.c | 49 if (!hdev->pcie_bar[bar]) { in hl_pci_bars_map() 62 if (hdev->pcie_bar[bar]) in hl_pci_bars_map() 63 iounmap(hdev->pcie_bar[bar]); in hl_pci_bars_map() 84 iounmap(hdev->pcie_bar[bar]); in hl_pci_bars_unmap() 97 if (hdev->pldm) in hl_pci_elbi_read() 160 if (hdev->pldm) in hl_pci_elbi_write() 392 rc = hdev->asic_funcs->pci_bars_map(hdev); in hl_pci_init() 398 rc = hdev->asic_funcs->init_iatu(hdev); in hl_pci_init() 410 dev_err(hdev->dev, in hl_pci_init() 421 hl_pci_bars_unmap(hdev); in hl_pci_init() [all …]
|
/openbmc/linux/drivers/accel/habanalabs/goya/ |
H A D | goya_hwmgr.c | 14 if (!hdev->pdev) in goya_set_pll_profile() 19 hl_fw_set_frequency(hdev, HL_GOYA_MME_PLL, hdev->high_pll); in goya_set_pll_profile() 20 hl_fw_set_frequency(hdev, HL_GOYA_TPC_PLL, hdev->high_pll); in goya_set_pll_profile() 21 hl_fw_set_frequency(hdev, HL_GOYA_IC_PLL, hdev->high_pll); in goya_set_pll_profile() 44 if (!hl_device_operational(hdev, NULL)) in mme_clk_show() 93 if (!hl_device_operational(hdev, NULL)) in tpc_clk_show() 262 mutex_lock(&hdev->fpriv_list_lock); in pm_mng_profile_store() 264 if (hdev->is_compute_ctx_active) { in pm_mng_profile_store() 265 dev_err(hdev->dev, in pm_mng_profile_store() 276 goya_set_frequency(hdev, PLL_LOW); in pm_mng_profile_store() [all …]
|