| /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() 1188 hdev->asic_funcs->late_fini(hdev); in device_late_fini() 1376 rc = hdev->asic_funcs->resume(hdev); in hl_device_resume() 2443 hdev->asic_funcs->sw_fini(hdev); in hl_device_init() [all …]
|
| A D | habanalabs_drv.c | 188 hpriv->hdev = hdev; in hl_device_open() 204 dev_name(hdev->dev), hdev->status[status]); in hl_device_open() 248 hdev->asic_funcs->send_device_activity(hdev, true); in hl_device_open() 301 hpriv->hdev = hdev; in hl_device_open_ctrl() 434 hdev->cdev_idx = hdev->id; in allocate_device_id() 460 hdev->dev = hdev->drm.dev; in create_hdev() 479 hdev->asic_type = get_asic_type(hdev); in create_hdev() 600 if (!hdev) in hl_pci_remove() 642 hdev->asic_funcs->halt_engines(hdev, true, false); in hl_pci_err_detected() 682 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 …]
|
| A D | command_buffer.c | 19 struct hl_device *hdev = ctx->hdev; in cb_map_mem() local 70 struct hl_device *hdev = ctx->hdev; in cb_unmap_mem() local 99 cb_fini(hdev, cb); in cb_do_release() 217 cb->hdev = cb_args->hdev; in hl_cb_mmap_mem_alloc() 254 return cb->hdev->asic_funcs->mmap(cb->hdev, vma, cb->kernel_address, in hl_cb_mmap() 271 .hdev = hdev, in hl_cb_create() 367 struct hl_device *hdev = hpriv->hdev; in hl_cb_ioctl() local 451 rc = hl_cb_create(hdev, &hdev->kernel_mem_mgr, hdev->kernel_ctx, cb_size, in hl_cb_kernel_create() 484 cb = hl_cb_alloc(hdev, hdev->asic_prop.cb_pool_cb_size, in hl_cb_pool_init() 512 struct hl_device *hdev = ctx->hdev; in hl_cb_va_pool_init() local [all …]
|
| /drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
| A D | hclgevf_main.c | 93 hdev->arq.hdev = hdev; in hclgevf_arq_init() 305 hdev->htqp = devm_kcalloc(&hdev->pdev->dev, hdev->num_tqps, in hclgevf_alloc_tqps() 377 hdev->htqp[i].q.handle = &hdev->nic; in hclgevf_knic_setup() 1568 hclgevf_set_reset_pending(hdev, hdev->reset_type); in hclgevf_reset_err_handle() 2423 0, hdev->misc_vector.name, hdev); in hclgevf_misc_irq_init() 2443 free_irq(hdev->misc_vector.vector_irq, hdev); in hclgevf_misc_irq_uninit() 2701 hdev->num_nic_msix = hdev->num_roce_msix; in hclgevf_query_vf_resource() 2706 hdev->num_msi = hdev->num_roce_msix + in hclgevf_query_vf_resource() 2713 hdev->num_nic_msix = hdev->num_msi; in hclgevf_query_vf_resource() 3039 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 …]
|
| /drivers/bluetooth/ |
| A D | btintel.c | 697 struct hci_dev *hdev; member 879 ctx->hdev = hdev; in btintel_regmap_init() 1055 bt_dev_err(hdev, in btintel_download_firmware_payload() 1265 if (hdev->bus == HCI_PCI) in btintel_reset_to_bootloader() 1676 bt_dev_info(hdev, in btintel_legacy_rom_setup() 3141 bt_dev_dbg(hdev, ""); in btintel_bootloader_setup_tlv() 3408 bt_dev_err(hdev, in btintel_setup_combined() 3478 hci_set_quirk(hdev, in btintel_setup_combined() 3494 hci_set_quirk(hdev, in btintel_setup_combined() 3512 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 …]
|
| A D | btbcm.c | 63 ret = btbcm_set_bdaddr(hdev, &bdaddr); in btbcm_set_bdaddr_from_efi() 480 skb = btbcm_read_local_name(hdev); in btbcm_print_local_name() 584 err = btbcm_reset(hdev); in btbcm_initialize() 600 err = btbcm_read_info(hdev); in btbcm_initialize() 610 err = btbcm_print_local_name(hdev); in btbcm_initialize() 632 if (hdev->bus == HCI_USB) { in btbcm_initialize() 680 err = btbcm_patchram(hdev, fw); in btbcm_initialize() 707 btbcm_check_bdaddr(hdev); in btbcm_finalize() 737 err = btbcm_reset(hdev); in btbcm_setup_apple() 750 skb = btbcm_read_usb_product(hdev); in btbcm_setup_apple() [all …]
|
| /drivers/media/platform/qcom/venus/ |
| A D | hfi_venus.c | 476 if (IS_IRIS2(hdev->core) || IS_IRIS2_1(hdev->core)) { in venus_boot_core() 504 if (IS_IRIS2(hdev->core) || IS_IRIS2_1(hdev->core)) { in venus_boot_core() 572 if (IS_IRIS2(hdev->core) || IS_IRIS2_1(hdev->core)) { in venus_halt_axi() 777 venus_free(hdev, &hdev->ifaceq_table); in venus_interface_queues_release() 778 venus_free(hdev, &hdev->sfr); in venus_interface_queues_release() 780 memset(hdev->queues, 0, sizeof(hdev->queues)); in venus_interface_queues_release() 782 memset(&hdev->sfr, 0, sizeof(hdev->sfr)); in venus_interface_queues_release() 1481 if (!hdev->power_enabled || hdev->suspended) in venus_suspend_1xx() 1538 if (IS_IRIS2(hdev->core) || IS_IRIS2_1(hdev->core)) in venus_cpu_and_video_core_idle() 1580 if (!hdev->power_enabled || hdev->suspended) in venus_suspend_3xx() [all …]
|
| /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_main.c | 873 hdev->num_msi = hdev->num_nic_msi + hdev->num_roce_msi; in hclge_query_pf_resource() 875 hdev->num_msi = hdev->num_nic_msi; in hclge_query_pf_resource() 1501 hdev->num_tqps = hdev->num_req_vfs + 1; in hclge_init_kdump_kernel_config() 1522 hdev->pfc_max = hdev->tc_max; in hclge_init_tc_config() 1633 hdev->htqp = devm_kcalloc(&hdev->pdev->dev, hdev->num_tqps, in hclge_alloc_tqps() 1851 hdev->num_alloc_vfs = hdev->num_req_vfs; in hclge_alloc_vport() 2490 if (hdev->num_msi < hdev->num_nic_msi + hdev->num_roce_msi) in hclge_init_roce_base_info() 4587 (hdev, &hdev->default_reset_request)) in hclge_misc_err_recovery() 8435 hdev->priv_umv_size = hdev->max_umv_size / (hdev->num_alloc_vport + 1); in hclge_init_umv_space() 11759 ret = hclge_comm_cmd_init(hdev->ae_dev, &hdev->hw.hw, &hdev->fw_version, in hclge_init_ae_dev() [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_ptp.c | 90 hdev->ptp->last_tx_seqid = readl(hdev->ptp->io_base + in hclge_ptp_clean_tx_hwts() 95 hdev->ptp->tx_cleaned++; in hclge_ptp_clean_tx_hwts() 115 if (!hdev->ptp || !test_bit(HCLGE_PTP_FLAG_RX_EN, &hdev->ptp->flags)) in hclge_ptp_get_rx_hwts() 129 hdev->ptp->rx_cnt++; in hclge_ptp_get_rx_hwts() 400 if (hdev->ptp->clock) in hclge_ptp_get_ts_info() 430 ptp->hdev = hdev; in hclge_ptp_create_clock() 448 hdev->ptp = ptp; in hclge_ptp_create_clock() 468 devm_kfree(&hdev->pdev->dev, hdev->ptp); in hclge_ptp_destroy_clock() 469 hdev->ptp = NULL; in hclge_ptp_destroy_clock() 481 if (!hdev->ptp) { in hclge_ptp_init() [all …]
|
| /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() 533 hdev->req = req; in img_hash_handle_queue() 639 hdev = tmp; in img_hash_digest() 642 tctx->hdev = hdev; in img_hash_digest() 645 hdev = tctx->hdev; in img_hash_digest() 649 ctx->hdev = hdev; in img_hash_digest() [all …]
|
| /drivers/soc/hisilicon/ |
| A D | kunpeng_hccs.c | 432 hdev->chips = devm_kzalloc(hdev->dev, in hccs_query_chip_info_on_platform() 449 chip->hdev = hdev; in hccs_query_chip_info_on_platform() 741 hdev->type_name_maps = devm_kcalloc(hdev->dev, hdev->used_type_num, in hccs_init_type_name_maps() 943 struct hccs_dev *hdev = port->die->chip->hdev; in cur_lane_num_show() local 961 struct hccs_dev *hdev = port->die->chip->hdev; in link_fsm_show() local 1050 struct hccs_dev *hdev = die->chip->hdev; in all_linked_on_die_show() local 1070 struct hccs_dev *hdev = die->chip->hdev; in linked_full_lane_on_die_show() local 1090 struct hccs_dev *hdev = die->chip->hdev; in crc_err_cnt_sum_on_die_show() local 1122 struct hccs_dev *hdev = chip->hdev; in all_linked_on_chip_show() local 1153 struct hccs_dev *hdev = chip->hdev; in linked_full_lane_on_chip_show() local [all …]
|
| /drivers/accel/habanalabs/goya/ |
| A D | goya.c | 518 hdev->rmmio = hdev->pcie_bar[SRAM_CFG_BAR_ID] + in goya_pci_bars_map() 672 hdev->asic_funcs->hw_fini(hdev, true, false); in goya_early_init() 837 struct hl_device *hdev = goya_work->hdev; in goya_set_freq_to_low_job() local 1040 goya->goya_work->hdev = hdev; in goya_sw_init() 1220 hdev, in goya_stop_queue() 1233 hdev, in goya_stop_queue() 1370 hdev, in goya_init_cpu_queues() 1476 hdev, in _goya_tpc_mbist_workaround() 2646 hdev, in goya_mmu_update_asid_hop0_addr() 3990 rc = hl_cb_create(hdev, &hdev->kernel_mem_mgr, hdev->kernel_ctx, in goya_parse_cb_mmu() [all …]
|
| 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 …]
|
| /drivers/hid/ |
| A D | hid-lenovo.c | 56 struct hid_device *hdev; member 156 switch (hdev->product) { in lenovo_report_fixup() 469 switch (hdev->product) { in lenovo_input_mapping() 525 switch (hdev->product) { in lenovo_send_cmd_cptkbd() 601 switch (hdev->product) { in attr_fn_lock_store() 859 switch (hdev->product) { in lenovo_event() 1145 switch (hdev->product) { in lenovo_led_brightness_set() 1329 data->hdev = hdev; in lenovo_probe_tp10ubkbd() 1368 ret = hid_parse(hdev); in lenovo_probe() 1407 hid_hw_stop(hdev); in lenovo_probe() [all …]
|
| A D | hid-rmi.c | 134 dev_err(&hdev->dev, in rmi_set_page() 192 struct hid_device *hdev = data->hdev; in rmi_hid_read_block() local 220 dev_err(&hdev->dev, in rmi_hid_read_block() 263 struct hid_device *hdev = data->hdev; in rmi_hid_write_block() local 283 dev_err(&hdev->dev, in rmi_hid_write_block() 482 hid_hw_close(hdev); in rmi_post_resume() 489 struct hid_device *hdev = data->hdev; in rmi_hid_reset() local 535 hid_hw_close(hdev); in rmi_input_configured() 656 data->hdev = hdev; in rmi_probe() 692 hid_dbg(hdev, in rmi_probe() [all …]
|
| /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 …]
|
| /drivers/accel/habanalabs/gaudi/ |
| A D | gaudi.c | 720 hdev->rmmio = hdev->pcie_bar[CFG_BAR_ID] + in gaudi_pci_bars_map() 1128 struct hl_device *hdev = hw_sob_group->hdev; in gaudi_sob_group_hw_reset() local 1142 struct hl_device *hdev = hw_sob_group->hdev; in gaudi_sob_group_reset_error() local 1183 prop->hw_sob_group[i].hdev = hdev; in gaudi_collective_init() 1323 hdev = ctx->hdev; in gaudi_collective_wait_init_cs() 5349 rc = hl_cb_create(hdev, &hdev->kernel_mem_mgr, hdev->kernel_ctx, in gaudi_parse_cb_mmu() 5425 rc = hl_cb_create(hdev, &hdev->kernel_mem_mgr, hdev->kernel_ctx, in gaudi_parse_cb_no_mmu() 5933 hdev->asic_funcs->hw_queues_lock(hdev); in gaudi_debugfs_read_dma() 6015 hdev->asic_funcs->hw_queues_unlock(hdev); in gaudi_debugfs_read_dma() 6850 hdev->asic_funcs->hw_queues_lock(hdev); in gaudi_handle_last_pqes_on_err() [all …]
|
| /drivers/accel/habanalabs/common/mmu/ |
| A D | mmu.c | 69 hdev->mmu_func[MMU_DR_PGT].fini(hdev); in hl_mmu_init() 90 hdev->mmu_func[MMU_DR_PGT].fini(hdev); in hl_mmu_fini() 93 hdev->mmu_func[MMU_HR_PGT].fini(hdev); in hl_mmu_fini() 108 struct hl_device *hdev = ctx->hdev; in hl_mmu_ctx_init() local 130 hdev->mmu_func[MMU_DR_PGT].fini(hdev); in hl_mmu_ctx_init() 147 struct hl_device *hdev = ctx->hdev; in hl_mmu_ctx_fini() local 229 struct hl_device *hdev = ctx->hdev; in hl_mmu_unmap_page() local 297 struct hl_device *hdev = ctx->hdev; in hl_mmu_map_page() local 385 struct hl_device *hdev = ctx->hdev; in hl_mmu_map_contiguous() local 445 struct hl_device *hdev = ctx->hdev; in hl_mmu_unmap_contiguous() local [all …]
|