/drivers/misc/habanalabs/common/ |
D | device.c | 16 enum hl_device_status hl_device_status(struct hl_device *hdev) in hl_device_status() argument 20 if (atomic_read(&hdev->in_reset)) in hl_device_status() 22 else if (hdev->needs_reset) in hl_device_status() 24 else if (hdev->disabled) in hl_device_status() 26 else if (!hdev->init_done) in hl_device_status() 34 bool hl_device_operational(struct hl_device *hdev, in hl_device_operational() argument 39 current_status = hl_device_status(hdev); in hl_device_operational() 60 struct hl_device *hdev; in hpriv_release() local 64 hdev = hpriv->hdev; in hpriv_release() 72 mutex_lock(&hdev->fpriv_list_lock); in hpriv_release() [all …]
|
D | habanalabs_drv.c | 116 struct hl_device *hdev; in hl_device_open() local 121 hdev = idr_find(&hl_devs_idr, iminor(inode)); in hl_device_open() 124 if (!hdev) { in hl_device_open() 134 hpriv->hdev = hdev; in hl_device_open() 146 mutex_lock(&hdev->fpriv_list_lock); in hl_device_open() 148 if (!hl_device_operational(hdev, &status)) { in hl_device_open() 149 dev_err_ratelimited(hdev->dev, in hl_device_open() 151 dev_name(hdev->dev), hdev->status[status]); in hl_device_open() 156 if (hdev->in_debug) { in hl_device_open() 157 dev_err_ratelimited(hdev->dev, in hl_device_open() [all …]
|
D | firmware_if.c | 49 static int hl_request_fw(struct hl_device *hdev, in hl_request_fw() argument 56 rc = request_firmware(firmware_p, fw_name, hdev->dev); in hl_request_fw() 58 dev_err(hdev->dev, "Firmware file %s is not found! (error %d)\n", in hl_request_fw() 65 dev_err(hdev->dev, "Illegal %s firmware size %zu\n", in hl_request_fw() 71 dev_dbg(hdev->dev, "%s firmware size == %zu\n", fw_name, fw_size); in hl_request_fw() 74 dev_err(hdev->dev, in hl_request_fw() 113 static int hl_fw_copy_fw_to_device(struct hl_device *hdev, in hl_fw_copy_fw_to_device() argument 124 dev_err(hdev->dev, in hl_fw_copy_fw_to_device() 147 static int hl_fw_copy_msg_to_device(struct hl_device *hdev, in hl_fw_copy_msg_to_device() argument 158 dev_err(hdev->dev, in hl_fw_copy_msg_to_device() [all …]
|
D | hw_queue.c | 43 struct hl_device *hdev = cs->ctx->hdev; in hl_hw_queue_update_ci() local 47 if (hdev->disabled) in hl_hw_queue_update_ci() 50 q = &hdev->kernel_queues[0]; in hl_hw_queue_update_ci() 53 if (!hdev->asic_prop.max_queues || q->queue_type == QUEUE_TYPE_HW) in hl_hw_queue_update_ci() 61 for (i = 0 ; i < hdev->asic_prop.max_queues ; i++, q++) { in hl_hw_queue_update_ci() 83 void hl_hw_queue_submit_bd(struct hl_device *hdev, struct hl_hw_queue *q, in hl_hw_queue_submit_bd() argument 95 hdev->asic_funcs->ring_doorbell(hdev, q->hw_queue_id, q->pi); in hl_hw_queue_submit_bd() 116 static int ext_queue_sanity_checks(struct hl_device *hdev, in ext_queue_sanity_checks() argument 121 &hdev->completion_queue[q->cq_id].free_slots_cnt; in ext_queue_sanity_checks() 128 dev_dbg(hdev->dev, "Queue %d doesn't have room for %d CBs\n", in ext_queue_sanity_checks() [all …]
|
D | sysfs.c | 12 long hl_get_frequency(struct hl_device *hdev, u32 pll_index, bool curr) in hl_get_frequency() argument 19 rc = get_used_pll_index(hdev, pll_index, &used_pll_idx); in hl_get_frequency() 33 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_get_frequency() 37 dev_err(hdev->dev, in hl_get_frequency() 46 void hl_set_frequency(struct hl_device *hdev, u32 pll_index, u64 freq) in hl_set_frequency() argument 52 rc = get_used_pll_index(hdev, pll_index, &used_pll_idx); in hl_set_frequency() 63 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_set_frequency() 67 dev_err(hdev->dev, in hl_set_frequency() 72 u64 hl_get_max_power(struct hl_device *hdev) in hl_get_max_power() argument 83 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_get_max_power() [all …]
|
D | command_buffer.c | 17 struct hl_device *hdev = ctx->hdev; in cb_map_mem() local 18 struct asic_fixed_properties *prop = &hdev->asic_prop; in cb_map_mem() 26 if (!hdev->supports_cb_mapping) { in cb_map_mem() 27 dev_err_ratelimited(hdev->dev, in cb_map_mem() 32 if (!hdev->mmu_enable) { in cb_map_mem() 33 dev_err_ratelimited(hdev->dev, in cb_map_mem() 46 dev_err(hdev->dev, in cb_map_mem() 74 dev_err(hdev->dev, "Failed to map VA %#llx to CB\n", in cb_map_mem() 83 hdev->asic_funcs->mmu_invalidate_cache(hdev, false, VM_TYPE_USERPTR); in cb_map_mem() 100 hdev->asic_funcs->mmu_invalidate_cache(hdev, true, VM_TYPE_USERPTR); in cb_map_mem() [all …]
|
/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_main.c | 17 static int hclgevf_reset_hdev(struct hclgevf_dev *hdev); 18 static void hclgevf_task_schedule(struct hclgevf_dev *hdev, 108 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_tqps_update_stats() local 121 status = hclgevf_cmd_send(&hdev->hw, &desc, 1); in hclgevf_tqps_update_stats() 123 dev_err(&hdev->pdev->dev, in hclgevf_tqps_update_stats() 135 status = hclgevf_cmd_send(&hdev->hw, &desc, 1); in hclgevf_tqps_update_stats() 137 dev_err(&hdev->pdev->dev, in hclgevf_tqps_update_stats() 203 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_update_stats() local 208 dev_err(&hdev->pdev->dev, in hclgevf_update_stats() 247 static int hclgevf_get_basic_info(struct hclgevf_dev *hdev) in hclgevf_get_basic_info() argument [all …]
|
D | hclgevf_mbx.c | 17 static void hclgevf_reset_mbx_resp_status(struct hclgevf_dev *hdev) in hclgevf_reset_mbx_resp_status() argument 22 hdev->mbx_resp.received_resp = false; in hclgevf_reset_mbx_resp_status() 23 hdev->mbx_resp.origin_mbx_msg = 0; in hclgevf_reset_mbx_resp_status() 24 hdev->mbx_resp.resp_status = 0; in hclgevf_reset_mbx_resp_status() 25 hdev->mbx_resp.match_id++; in hclgevf_reset_mbx_resp_status() 27 if (hdev->mbx_resp.match_id == 0) in hclgevf_reset_mbx_resp_status() 28 hdev->mbx_resp.match_id = HCLGEVF_MBX_MATCH_ID_START; in hclgevf_reset_mbx_resp_status() 29 memset(hdev->mbx_resp.additional_info, 0, HCLGE_MBX_MAX_RESP_DATA_SIZE); in hclgevf_reset_mbx_resp_status() 38 static int hclgevf_get_mbx_resp(struct hclgevf_dev *hdev, u16 code0, u16 code1, in hclgevf_get_mbx_resp() argument 48 dev_err(&hdev->pdev->dev, in hclgevf_get_mbx_resp() [all …]
|
/drivers/bluetooth/ |
D | btintel.c | 35 int btintel_check_bdaddr(struct hci_dev *hdev) in btintel_check_bdaddr() argument 40 skb = __hci_cmd_sync(hdev, HCI_OP_READ_BD_ADDR, 0, NULL, in btintel_check_bdaddr() 44 bt_dev_err(hdev, "Reading Intel device address failed (%d)", in btintel_check_bdaddr() 50 bt_dev_err(hdev, "Intel device address length mismatch"); in btintel_check_bdaddr() 63 bt_dev_err(hdev, "Found Intel default device address (%pMR)", in btintel_check_bdaddr() 65 set_bit(HCI_QUIRK_INVALID_BDADDR, &hdev->quirks); in btintel_check_bdaddr() 74 int btintel_enter_mfg(struct hci_dev *hdev) in btintel_enter_mfg() argument 79 skb = __hci_cmd_sync(hdev, 0xfc11, 2, param, HCI_CMD_TIMEOUT); in btintel_enter_mfg() 81 bt_dev_err(hdev, "Entering manufacturer mode failed (%ld)", in btintel_enter_mfg() 91 int btintel_exit_mfg(struct hci_dev *hdev, bool reset, bool patched) in btintel_exit_mfg() argument [all …]
|
D | btbcm.c | 40 static int btbcm_set_bdaddr_from_efi(struct hci_dev *hdev) in btbcm_set_bdaddr_from_efi() argument 62 ret = btbcm_set_bdaddr(hdev, &bdaddr); in btbcm_set_bdaddr_from_efi() 66 bt_dev_info(hdev, "BCM: Using EFI device address (%pMR)", &bdaddr); in btbcm_set_bdaddr_from_efi() 70 static int btbcm_set_bdaddr_from_efi(struct hci_dev *hdev) in btbcm_set_bdaddr_from_efi() argument 76 int btbcm_check_bdaddr(struct hci_dev *hdev) in btbcm_check_bdaddr() argument 81 skb = __hci_cmd_sync(hdev, HCI_OP_READ_BD_ADDR, 0, NULL, in btbcm_check_bdaddr() 86 bt_dev_err(hdev, "BCM: Reading device address failed (%d)", err); in btbcm_check_bdaddr() 91 bt_dev_err(hdev, "BCM: Device address length mismatch"); in btbcm_check_bdaddr() 130 if (btbcm_set_bdaddr_from_efi(hdev) != 0) { in btbcm_check_bdaddr() 131 bt_dev_info(hdev, "BCM: Using default device address (%pMR)", in btbcm_check_bdaddr() [all …]
|
D | bpa10x.c | 37 struct hci_dev *hdev; member 49 struct hci_dev *hdev = (struct hci_dev *) skb->dev; in bpa10x_tx_complete() local 51 BT_DBG("%s urb %p status %d count %d", hdev->name, in bpa10x_tx_complete() 54 if (!test_bit(HCI_RUNNING, &hdev->flags)) in bpa10x_tx_complete() 58 hdev->stat.byte_tx += urb->transfer_buffer_length; in bpa10x_tx_complete() 60 hdev->stat.err_tx++; in bpa10x_tx_complete() 86 struct hci_dev *hdev = urb->context; in bpa10x_rx_complete() local 87 struct bpa10x_data *data = hci_get_drvdata(hdev); in bpa10x_rx_complete() 90 BT_DBG("%s urb %p status %d count %d", hdev->name, in bpa10x_rx_complete() 93 if (!test_bit(HCI_RUNNING, &hdev->flags)) in bpa10x_rx_complete() [all …]
|
/drivers/crypto/stm32/ |
D | stm32-hash.c | 117 struct stm32_hash_dev *hdev; member 125 struct stm32_hash_dev *hdev; member 196 static inline u32 stm32_hash_read(struct stm32_hash_dev *hdev, u32 offset) in stm32_hash_read() argument 198 return readl_relaxed(hdev->io_base + offset); in stm32_hash_read() 201 static inline void stm32_hash_write(struct stm32_hash_dev *hdev, in stm32_hash_write() argument 204 writel_relaxed(value, hdev->io_base + offset); in stm32_hash_write() 207 static inline int stm32_hash_wait_busy(struct stm32_hash_dev *hdev) in stm32_hash_wait_busy() argument 211 return readl_relaxed_poll_timeout(hdev->io_base + HASH_SR, status, in stm32_hash_wait_busy() 215 static void stm32_hash_set_nblw(struct stm32_hash_dev *hdev, int length) in stm32_hash_set_nblw() argument 219 reg = stm32_hash_read(hdev, HASH_STR); in stm32_hash_set_nblw() [all …]
|
/drivers/media/platform/qcom/venus/ |
D | hfi_venus.c | 138 static void venus_set_state(struct venus_hfi_device *hdev, in venus_set_state() argument 141 mutex_lock(&hdev->lock); in venus_set_state() 142 hdev->state = state; in venus_set_state() 143 mutex_unlock(&hdev->lock); in venus_set_state() 146 static bool venus_is_valid_state(struct venus_hfi_device *hdev) in venus_is_valid_state() argument 148 return hdev->state != VENUS_STATE_DEINIT; in venus_is_valid_state() 151 static void venus_dump_packet(struct venus_hfi_device *hdev, const void *packet) in venus_dump_packet() argument 162 static int venus_write_queue(struct venus_hfi_device *hdev, in venus_write_queue() argument 178 venus_dump_packet(hdev, packet); in venus_write_queue() 236 static int venus_read_queue(struct venus_hfi_device *hdev, in venus_read_queue() argument [all …]
|
/drivers/misc/habanalabs/goya/ |
D | goya_hwmgr.c | 10 void goya_set_pll_profile(struct hl_device *hdev, enum hl_pll_frequency freq) in goya_set_pll_profile() argument 12 struct goya_device *goya = hdev->asic_specific; in goya_set_pll_profile() 16 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() 21 hl_set_frequency(hdev, HL_GOYA_MME_PLL, GOYA_PLL_FREQ_LOW); in goya_set_pll_profile() 22 hl_set_frequency(hdev, HL_GOYA_TPC_PLL, GOYA_PLL_FREQ_LOW); in goya_set_pll_profile() 23 hl_set_frequency(hdev, HL_GOYA_IC_PLL, GOYA_PLL_FREQ_LOW); in goya_set_pll_profile() 26 hl_set_frequency(hdev, HL_GOYA_MME_PLL, goya->mme_clk); in goya_set_pll_profile() 27 hl_set_frequency(hdev, HL_GOYA_TPC_PLL, goya->tpc_clk); in goya_set_pll_profile() [all …]
|
D | goya.c | 355 static int goya_mmu_clear_pgt_range(struct hl_device *hdev); 356 static int goya_mmu_set_dram_default_page(struct hl_device *hdev); 357 static int goya_mmu_add_mappings_for_device_cpu(struct hl_device *hdev); 358 static void goya_mmu_prepare(struct hl_device *hdev, u32 asid); 360 int goya_set_fixed_properties(struct hl_device *hdev) in goya_set_fixed_properties() argument 362 struct asic_fixed_properties *prop = &hdev->asic_prop; in goya_set_fixed_properties() 408 if (hdev->pldm) in goya_set_fixed_properties() 486 static int goya_pci_bars_map(struct hl_device *hdev) in goya_pci_bars_map() argument 492 rc = hl_pci_bars_map(hdev, name, is_wc); in goya_pci_bars_map() 496 hdev->rmmio = hdev->pcie_bar[SRAM_CFG_BAR_ID] + in goya_pci_bars_map() [all …]
|
/drivers/crypto/ |
D | img-hash.c | 85 struct img_hash_dev *hdev; member 112 struct img_hash_dev *hdev; member 149 static inline u32 img_hash_read(struct img_hash_dev *hdev, u32 offset) in img_hash_read() argument 151 return readl_relaxed(hdev->io_base + offset); in img_hash_read() 154 static inline void img_hash_write(struct img_hash_dev *hdev, in img_hash_write() argument 157 writel_relaxed(value, hdev->io_base + offset); in img_hash_write() 160 static inline u32 img_hash_read_result_queue(struct img_hash_dev *hdev) in img_hash_read_result_queue() argument 162 return be32_to_cpu(img_hash_read(hdev, CR_RESULT_QUEUE)); in img_hash_read_result_queue() 165 static void img_hash_start(struct img_hash_dev *hdev, bool dma) in img_hash_start() argument 167 struct img_hash_request_ctx *ctx = ahash_request_ctx(hdev->req); in img_hash_start() [all …]
|
/drivers/misc/habanalabs/common/pci/ |
D | pci.c | 30 int hl_pci_bars_map(struct hl_device *hdev, const char * const name[3], in hl_pci_bars_map() argument 33 struct pci_dev *pdev = hdev->pdev; in hl_pci_bars_map() 38 dev_err(hdev->dev, "Cannot obtain PCI resources\n"); in hl_pci_bars_map() 44 hdev->pcie_bar[bar] = is_wc[i] ? in hl_pci_bars_map() 47 if (!hdev->pcie_bar[bar]) { in hl_pci_bars_map() 48 dev_err(hdev->dev, "pci_ioremap%s_bar failed for %s\n", in hl_pci_bars_map() 60 if (hdev->pcie_bar[bar]) in hl_pci_bars_map() 61 iounmap(hdev->pcie_bar[bar]); in hl_pci_bars_map() 75 static void hl_pci_bars_unmap(struct hl_device *hdev) in hl_pci_bars_unmap() argument 77 struct pci_dev *pdev = hdev->pdev; in hl_pci_bars_unmap() [all …]
|
/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_tm.c | 138 static void hclge_pfc_stats_get(struct hclge_dev *hdev, bool tx, u64 *stats) in hclge_pfc_stats_get() argument 149 stats[i] = HCLGE_STATS_READ(&hdev->mac_stats, offset[i]); in hclge_pfc_stats_get() 152 void hclge_pfc_rx_stats_get(struct hclge_dev *hdev, u64 *stats) in hclge_pfc_rx_stats_get() argument 154 hclge_pfc_stats_get(hdev, false, stats); in hclge_pfc_rx_stats_get() 157 void hclge_pfc_tx_stats_get(struct hclge_dev *hdev, u64 *stats) in hclge_pfc_tx_stats_get() argument 159 hclge_pfc_stats_get(hdev, true, stats); in hclge_pfc_tx_stats_get() 162 int hclge_mac_pause_en_cfg(struct hclge_dev *hdev, bool tx, bool rx) in hclge_mac_pause_en_cfg() argument 171 return hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_mac_pause_en_cfg() 174 int hclge_pfc_pause_en_cfg(struct hclge_dev *hdev, u8 tx_rx_bitmap, in hclge_pfc_pause_en_cfg() argument 185 return hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_pfc_pause_en_cfg() [all …]
|
D | hclge_main.c | 58 static int hclge_set_mac_mtu(struct hclge_dev *hdev, int new_mps); 59 static int hclge_init_vlan_config(struct hclge_dev *hdev); 60 static void hclge_sync_vlan_filter(struct hclge_dev *hdev); 63 static void hclge_rfs_filter_expire(struct hclge_dev *hdev); 64 static int hclge_clear_arfs_rules(struct hclge_dev *hdev); 67 static int hclge_set_default_loopback(struct hclge_dev *hdev); 69 static void hclge_sync_mac_table(struct hclge_dev *hdev); 70 static void hclge_restore_hw_table(struct hclge_dev *hdev); 71 static void hclge_sync_promisc_mode(struct hclge_dev *hdev); 72 static void hclge_sync_fd_table(struct hclge_dev *hdev); [all …]
|
D | hclge_dcb.c | 11 static int hclge_ieee_ets_to_tm_info(struct hclge_dev *hdev, in hclge_ieee_ets_to_tm_info() argument 19 hdev->tm_info.tc_info[i].tc_sch_mode = in hclge_ieee_ets_to_tm_info() 21 hdev->tm_info.pg_info[0].tc_dwrr[i] = 0; in hclge_ieee_ets_to_tm_info() 24 hdev->tm_info.tc_info[i].tc_sch_mode = in hclge_ieee_ets_to_tm_info() 26 hdev->tm_info.pg_info[0].tc_dwrr[i] = in hclge_ieee_ets_to_tm_info() 39 hclge_tm_prio_tc_info_update(hdev, ets->prio_tc); in hclge_ieee_ets_to_tm_info() 44 static void hclge_tm_info_to_ieee_ets(struct hclge_dev *hdev, in hclge_tm_info_to_ieee_ets() argument 51 ets->ets_cap = hdev->tc_max; in hclge_tm_info_to_ieee_ets() 54 ets->prio_tc[i] = hdev->tm_info.prio_tc[i]; in hclge_tm_info_to_ieee_ets() 55 if (i < hdev->tm_info.num_tc) in hclge_tm_info_to_ieee_ets() [all …]
|
D | hclge_ptp.c | 8 static int hclge_ptp_get_cycle(struct hclge_dev *hdev) in hclge_ptp_get_cycle() argument 10 struct hclge_ptp *ptp = hdev->ptp; in hclge_ptp_get_cycle() 12 ptp->cycle.quo = readl(hdev->ptp->io_base + HCLGE_PTP_CYCLE_QUO_REG) & in hclge_ptp_get_cycle() 14 ptp->cycle.numer = readl(hdev->ptp->io_base + HCLGE_PTP_CYCLE_NUM_REG); in hclge_ptp_get_cycle() 15 ptp->cycle.den = readl(hdev->ptp->io_base + HCLGE_PTP_CYCLE_DEN_REG); in hclge_ptp_get_cycle() 18 dev_err(&hdev->pdev->dev, "invalid ptp cycle denominator!\n"); in hclge_ptp_get_cycle() 27 struct hclge_dev *hdev = hclge_ptp_get_hdev(ptp); in hclge_ptp_adjfreq() local 28 struct hclge_ptp_cycle *cycle = &hdev->ptp->cycle; in hclge_ptp_adjfreq() 55 spin_lock_irqsave(&hdev->ptp->lock, flags); in hclge_ptp_adjfreq() 57 hdev->ptp->io_base + HCLGE_PTP_CYCLE_QUO_REG); in hclge_ptp_adjfreq() [all …]
|
/drivers/misc/habanalabs/gaudi/ |
D | gaudi.c | 464 static int gaudi_mmu_update_asid_hop0_addr(struct hl_device *hdev, u32 asid, 466 static int gaudi_send_job_on_qman0(struct hl_device *hdev, 468 static int gaudi_memset_device_memory(struct hl_device *hdev, u64 addr, 470 static int gaudi_memset_registers(struct hl_device *hdev, u64 reg_base, 472 static int gaudi_run_tpc_kernel(struct hl_device *hdev, u64 tpc_kernel, 474 static int gaudi_mmu_clear_pgt_range(struct hl_device *hdev); 475 static int gaudi_cpucp_info_get(struct hl_device *hdev); 476 static void gaudi_disable_clock_gating(struct hl_device *hdev); 477 static void gaudi_mmu_prepare(struct hl_device *hdev, u32 asid); 478 static u32 gaudi_gen_signal_cb(struct hl_device *hdev, void *data, u16 sob_id, [all …]
|
/drivers/hid/ |
D | hid-lenovo.c | 46 struct hid_device *hdev; member 73 static int lenovo_led_set_tp10ubkbd(struct hid_device *hdev, u8 led_code, in lenovo_led_set_tp10ubkbd() argument 76 struct lenovo_drvdata *data = hid_get_drvdata(hdev); in lenovo_led_set_tp10ubkbd() 84 ret = hid_hw_raw_request(hdev, data->led_report[0], data->led_report, 3, in lenovo_led_set_tp10ubkbd() 88 hid_err(hdev, "Set LED output report error: %d\n", ret); in lenovo_led_set_tp10ubkbd() 105 lenovo_led_set_tp10ubkbd(data->hdev, TP10UBKBD_FN_LOCK_LED, in lenovo_tp10ubkbd_sync_fn_lock() 118 static __u8 *lenovo_report_fixup(struct hid_device *hdev, __u8 *rdesc, in lenovo_report_fixup() argument 121 switch (hdev->product) { in lenovo_report_fixup() 138 static int lenovo_input_mapping_tpkbd(struct hid_device *hdev, in lenovo_input_mapping_tpkbd() argument 144 hid_set_drvdata(hdev, (void *)1); in lenovo_input_mapping_tpkbd() [all …]
|
D | hid-rmi.c | 95 struct hid_device *hdev; member 105 static int rmi_write_report(struct hid_device *hdev, u8 *report, int len); 121 static int rmi_set_page(struct hid_device *hdev, u8 page) in rmi_set_page() argument 123 struct rmi_data *data = hid_get_drvdata(hdev); in rmi_set_page() 131 retval = rmi_write_report(hdev, data->writeReport, in rmi_set_page() 134 dev_err(&hdev->dev, in rmi_set_page() 143 static int rmi_set_mode(struct hid_device *hdev, u8 mode) in rmi_set_mode() argument 153 ret = hid_hw_raw_request(hdev, RMI_SET_RMI_MODE_REPORT_ID, buf, in rmi_set_mode() 157 dev_err(&hdev->dev, "unable to set rmi mode to %d (%d)\n", mode, in rmi_set_mode() 165 static int rmi_write_report(struct hid_device *hdev, u8 *report, int len) in rmi_write_report() argument [all …]
|
/drivers/misc/habanalabs/common/mmu/ |
D | mmu.c | 12 bool hl_is_dram_va(struct hl_device *hdev, u64 virt_addr) in hl_is_dram_va() argument 14 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_is_dram_va() 27 int hl_mmu_init(struct hl_device *hdev) in hl_mmu_init() argument 31 if (!hdev->mmu_enable) in hl_mmu_init() 34 if (hdev->mmu_func[MMU_DR_PGT].init != NULL) { in hl_mmu_init() 35 rc = hdev->mmu_func[MMU_DR_PGT].init(hdev); in hl_mmu_init() 40 if (hdev->mmu_func[MMU_HR_PGT].init != NULL) in hl_mmu_init() 41 rc = hdev->mmu_func[MMU_HR_PGT].init(hdev); in hl_mmu_init() 56 void hl_mmu_fini(struct hl_device *hdev) in hl_mmu_fini() argument 58 if (!hdev->mmu_enable) in hl_mmu_fini() [all …]
|