| /linux/net/bluetooth/ |
| A D | hci_sync.c | 88 struct hci_dev *hdev = req->hdev; in hci_cmd_sync_add() local 117 struct hci_dev *hdev = req->hdev; in hci_req_sync_run() local 151 req->hdev = hdev; in hci_request_init() 1077 err = smp_generate_rpa(hdev, hdev->irk, &hdev->rpa); in hci_update_random_address_sync() 4890 ret = hdev->set_bdaddr(hdev, &hdev->public_addr); in hci_dev_setup_sync() 5024 if (hdev->open(hdev)) { in hci_dev_open_sync() 5065 hdev->flush(hdev); in hci_dev_open_sync() 5081 hdev->close(hdev); in hci_dev_open_sync() 5218 hdev->flush(hdev); in hci_dev_close_sync() 5255 hdev->close(hdev); in hci_dev_close_sync() [all …]
|
| A D | hci_debugfs.c | 114 hdev->devid_vendor, hdev->devid_product, hdev->devid_version); in device_id_show() 317 debugfs_create_file("features", 0444, hdev->debugfs, hdev, in hci_debugfs_create_common() 343 if (lmp_ssp_capable(hdev) || lmp_le_capable(hdev)) in hci_debugfs_create_common() 347 if (lmp_sc_capable(hdev) || lmp_le_capable(hdev)) in hci_debugfs_create_common() 408 hdev->dev_class[1], hdev->dev_class[0]); in dev_class_show() 681 16, hdev->irk, &hdev->rpa); in identity_show() 1215 hdev->debugfs, hdev, in hci_debugfs_create_le() 1256 hdev->debugfs, hdev, in hci_debugfs_create_le() 1259 hdev->debugfs, hdev, in hci_debugfs_create_le() 1265 struct hci_dev *hdev = conn->hdev; in hci_debugfs_create_conn() local [all …]
|
| 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 …]
|
| A D | hci_core.c | 552 hdev->flush(hdev); in hci_dev_do_reset() 1012 hdev->hw_error(hdev, hdev->hw_error_code); in hci_error_reset() 1461 hdev->cmd_timeout(hdev); in hci_cmd_timeout() 2574 if (!hdev->open || !hdev->close || !hdev->send) in hci_register_dev() 2613 hdev->rfkill = rfkill_alloc(hdev->name, &hdev->dev, in hci_register_dev() 3348 hdev = conn->hdev; in hci_quote_sent() 3359 cnt = hdev->le_mtu ? hdev->le_cnt : hdev->acl_cnt; in hci_quote_sent() 3363 hdev->le_mtu ? hdev->le_cnt : hdev->acl_cnt; in hci_quote_sent() 3686 cnt = hdev->le_pkts ? &hdev->le_cnt : &hdev->acl_cnt; in hci_sched_le() 3733 hdev->le_pkts ? &hdev->le_cnt : &hdev->acl_cnt; in hci_sched_iso() [all …]
|
| A D | hci_event.c | 935 hdev->acl_cnt = hdev->acl_pkts; in hci_cc_read_buffer_size() 936 hdev->sco_cnt = hdev->sco_pkts; in hci_cc_read_buffer_size() 939 hdev->acl_pkts, hdev->sco_mtu, hdev->sco_pkts); in hci_cc_read_buffer_size() 1203 hdev->le_cnt = hdev->le_pkts; in hci_cc_le_read_buffer_size() 1205 BT_DBG("%s le mtu %d:%d", hdev->name, hdev->le_mtu, hdev->le_pkts); in hci_cc_le_read_buffer_size() 3762 hdev->le_cnt = hdev->le_pkts; in hci_cc_le_read_buffer_size_v2() 3763 hdev->iso_cnt = hdev->iso_pkts; in hci_cc_le_read_buffer_size_v2() 3766 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 …]
|
| A D | mgmt.c | 3329 struct hci_dev *hdev = conn->hdev; in find_pairing() local 4406 if (hdev && ll_privacy_capable(hdev)) { in read_exp_features_info() 4417 if (hdev && (aosp_has_quality_report(hdev) || in read_exp_features_info() 4429 if (hdev && hdev->get_data_path_id) { in read_exp_features_info() 4447 if (hdev && lmp_le_capable(hdev)) { in read_exp_features_info() 4534 if (hdev && use_ll_privacy(hdev) && !hdev_is_powered(hdev)) { in set_zero_key_func() 4561 if (hdev) in set_debug_func() 4754 err = hdev->set_quality_report(hdev, val); in set_quality_report_func() 4913 if (hdev) in set_iso_socket_func() 7009 memcpy(hdev->irk, cp->irk, sizeof(hdev->irk)); in set_privacy() [all …]
|
| /linux/drivers/accel/habanalabs/common/ |
| A D | device.c | 469 hdev = hpriv->hdev; in hpriv_release() 630 struct hl_device *hdev = hpriv->hdev; in hl_device_release_ctrl() local 652 struct hl_device *hdev = hpriv->hdev; in __hl_mmap() local 971 hdev->device_reset_work.hdev = hdev; in device_early_init() 976 hdev->device_release_watchdog_work.hdev = hdev; in device_early_init() 1013 hdev->asic_funcs->early_fini(hdev); in device_early_init() 1054 hdev->asic_funcs->early_fini(hdev); in device_early_fini() 1207 hdev->asic_funcs->late_fini(hdev); in device_late_fini() 1395 rc = hdev->asic_funcs->resume(hdev); in hl_device_resume() 2462 hdev->asic_funcs->sw_fini(hdev); in hl_device_init() [all …]
|
| A D | habanalabs_drv.c | 189 hpriv->hdev = hdev; in hl_device_open() 205 dev_name(hdev->dev), hdev->status[status]); in hl_device_open() 249 hdev->asic_funcs->send_device_activity(hdev, true); in hl_device_open() 302 hpriv->hdev = hdev; in hl_device_open_ctrl() 436 hdev->cdev_idx = hdev->id; in allocate_device_id() 462 hdev->dev = hdev->drm.dev; in create_hdev() 481 hdev->asic_type = get_asic_type(hdev); in create_hdev() 602 if (!hdev) in hl_pci_remove() 644 hdev->asic_funcs->halt_engines(hdev, true, false); in hl_pci_err_detected() 684 if (!hdev) in hl_pci_reset_prepare() [all …]
|
| A D | firmware_if.c | 1507 hdev, in hl_fw_wait_preboot_ready() 1593 hdev->asic_funcs->init_firmware_loader(hdev); in hl_fw_read_preboot_caps() 1877 hdev, in hl_fw_dynamic_wait_for_status() 2568 hdev, in hl_fw_dynamic_wait_for_boot_fit_active() 2596 hdev, in hl_fw_dynamic_wait_for_linux_active() 2820 hdev->tpc_binning, hdev->dram_binning, hdev->edma_binning, in hl_fw_dynamic_init_cpu() 2941 hdev, in hl_fw_static_init_cpu() 2964 hdev, in hl_fw_static_init_cpu() 2990 hdev, in hl_fw_static_init_cpu() 3042 hdev, in hl_fw_static_init_cpu() [all …]
|
| A D | hw_queue.c | 43 struct hl_device *hdev = cs->ctx->hdev; in hl_hw_queue_update_ci() local 245 hdev->asic_funcs->hw_queues_lock(hdev); in hl_hw_queue_send_cb_no_cmpl() 266 hdev->asic_funcs->hw_queues_unlock(hdev); in hl_hw_queue_send_cb_no_cmpl() 281 struct hl_device *hdev = job->cs->ctx->hdev; in ext_queue_schedule_job() local 346 struct hl_device *hdev = job->cs->ctx->hdev; in int_queue_schedule_job() local 367 hdev->asic_funcs->pqe_write(hdev, pi, &bd); in int_queue_schedule_job() 561 struct hl_device *hdev = ctx->hdev; in init_signal_wait_cs() local 641 struct hl_device *hdev = ctx->hdev; in hl_hw_queue_schedule_cs() local 650 hdev->asic_funcs->hw_queues_lock(hdev); in hl_hw_queue_schedule_cs() 806 hdev->asic_funcs->hw_queues_unlock(hdev); in hl_hw_queue_schedule_cs() [all …]
|
| A D | sysfs.c | 21 value = hl_fw_get_frequency(hdev, hdev->asic_prop.clk_pll_index, false); in clk_max_freq_mhz_show() 50 hl_fw_set_frequency(hdev, hdev->asic_prop.clk_pll_index, hdev->asic_prop.max_freq_value); in clk_max_freq_mhz_store() 64 value = hl_fw_get_frequency(hdev, hdev->asic_prop.clk_pll_index, true); in clk_cur_freq_mhz_show() 220 hl_device_reset(hdev, 0); in soft_reset_store() 279 hdev->asic_type); in device_type_show() 304 strscpy(str, hdev->status[hl_device_status(hdev)], HL_STR_MAX); in status_show() 363 hdev->max_power = value; in max_power_store() 389 rc = hdev->asic_funcs->get_eeprom_data(hdev, data, max_size); in eeprom_read_handler() 524 hdev->max_power = hdev->asic_prop.max_power_default; in hl_sysfs_init() 530 dev_err(hdev->dev, in hl_sysfs_init() [all …]
|
| /linux/net/nfc/hci/ |
| 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 …]
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
| A D | hclgevf_main.c | 93 hdev->arq.hdev = hdev; in hclgevf_arq_init() 307 hdev->htqp = devm_kcalloc(&hdev->pdev->dev, hdev->num_tqps, in hclgevf_alloc_tqps() 379 hdev->htqp[i].q.handle = &hdev->nic; in hclgevf_knic_setup() 1547 set_bit(hdev->reset_type, &hdev->reset_pending); in hclgevf_reset_err_handle() 2384 0, hdev->misc_vector.name, hdev); in hclgevf_misc_irq_init() 2404 free_irq(hdev->misc_vector.vector_irq, hdev); in hclgevf_misc_irq_uninit() 2662 hdev->num_nic_msix = hdev->num_roce_msix; in hclgevf_query_vf_resource() 2667 hdev->num_msi = hdev->num_roce_msix + in hclgevf_query_vf_resource() 2674 hdev->num_nic_msix = hdev->num_msi; in hclgevf_query_vf_resource() 3001 hclge_comm_cmd_uninit(hdev->ae_dev, &hdev->hw.hw); in hclgevf_init_hdev() [all …]
|
| 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 …]
|
| /linux/include/net/bluetooth/ |
| A D | hci_sync.h | 15 #define hci_req_sync_lock(hdev) mutex_lock(&hdev->req_lock) argument 16 #define hci_req_sync_unlock(hdev) mutex_unlock(&hdev->req_lock) argument 19 struct hci_dev *hdev; member 65 void hci_cmd_sync_init(struct hci_dev *hdev); 66 void hci_cmd_sync_clear(struct hci_dev *hdev); 91 int hci_update_eir_sync(struct hci_dev *hdev); 138 int hci_update_scan(struct hci_dev *hdev); 147 int hci_reset_sync(struct hci_dev *hdev); 148 int hci_dev_open_sync(struct hci_dev *hdev); 164 int hci_suspend_sync(struct hci_dev *hdev); [all …]
|
| /linux/drivers/bluetooth/ |
| A D | btintel.c | 690 struct hci_dev *hdev; member 872 ctx->hdev = hdev; in btintel_regmap_init() 1048 bt_dev_err(hdev, in btintel_download_firmware_payload() 1655 BT_DBG("%s", hdev->name); in btintel_legacy_rom_setup() 1662 bt_dev_info(hdev, in btintel_legacy_rom_setup() 2744 bt_dev_dbg(hdev, ""); in btintel_bootloader_setup_tlv() 3000 bt_dev_err(hdev, in btintel_setup_combined() 3071 &hdev->quirks); in btintel_setup_combined() 3087 &hdev->quirks); in btintel_setup_combined() 3104 hci_set_hw_info(hdev, in btintel_setup_combined() [all …]
|
| A D | bpa10x.c | 37 struct hci_dev *hdev; member 60 hdev->stat.err_tx++; in bpa10x_tx_complete() 106 hdev->stat.err_rx++; in bpa10x_rx_complete() 303 hdev->stat.cmd_tx++; in bpa10x_send_frame() 312 hdev->stat.acl_tx++; in bpa10x_send_frame() 321 hdev->stat.sco_tx++; in bpa10x_send_frame() 366 struct hci_dev *hdev; in bpa10x_probe() local 384 if (!hdev) in bpa10x_probe() 387 hdev->bus = HCI_USB; in bpa10x_probe() 390 data->hdev = hdev; in bpa10x_probe() [all …]
|
| /linux/drivers/media/platform/qcom/venus/ |
| 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 …]
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| 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() 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() 1717 if (hdev->tm_info.num_tc == 1 && !hdev->tm_info.pfc_en) in hclge_tm_vport_map_update() [all …]
|
| 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 …]
|
| A D | hclge_main.c | 882 hdev->num_msi = hdev->num_nic_msi + hdev->num_roce_msi; in hclge_query_pf_resource() 884 hdev->num_msi = hdev->num_nic_msi; in hclge_query_pf_resource() 1510 hdev->num_tqps = hdev->num_req_vfs + 1; in hclge_init_kdump_kernel_config() 1531 hdev->pfc_max = hdev->tc_max; in hclge_init_tc_config() 1642 hdev->htqp = devm_kcalloc(&hdev->pdev->dev, hdev->num_tqps, in hclge_alloc_tqps() 1860 hdev->num_alloc_vfs = hdev->num_req_vfs; in hclge_alloc_vport() 2499 if (hdev->num_msi < hdev->num_nic_msi + hdev->num_roce_msi) in hclge_init_roce_base_info() 3772 0, hdev->misc_vector.name, hdev); in hclge_misc_irq_init() 8419 hdev->priv_umv_size = hdev->max_umv_size / (hdev->num_alloc_vport + 1); in hclge_init_umv_space() 11737 ret = hclge_comm_cmd_init(hdev->ae_dev, &hdev->hw.hw, &hdev->fw_version, in hclge_init_ae_dev() [all …]
|
| 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() 396 if (hdev->ptp->clock) in hclge_ptp_get_ts_info() 426 ptp->hdev = hdev; in hclge_ptp_create_clock() 454 hdev->ptp = ptp; in hclge_ptp_create_clock() 463 devm_kfree(&hdev->pdev->dev, hdev->ptp); in hclge_ptp_destroy_clock() 464 hdev->ptp = NULL; in hclge_ptp_destroy_clock() 476 if (!hdev->ptp) { in hclge_ptp_init() [all …]
|
| /linux/drivers/crypto/ |
| 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 …]
|
| /linux/drivers/accel/habanalabs/common/pci/ |
| 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 …]
|
| /linux/drivers/accel/habanalabs/goya/ |
| 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 …]
|