/Linux-v5.10/drivers/misc/habanalabs/common/ |
D | device.c | 19 bool hl_device_disabled_or_in_reset(struct hl_device *hdev) in hl_device_disabled_or_in_reset() argument 21 if ((hdev->disabled) || (atomic_read(&hdev->in_reset))) in hl_device_disabled_or_in_reset() 27 enum hl_device_status hl_device_status(struct hl_device *hdev) in hl_device_status() argument 31 if (hdev->disabled) in hl_device_status() 33 else if (atomic_read(&hdev->in_reset)) in hl_device_status() 44 struct hl_device *hdev; in hpriv_release() local 48 hdev = hpriv->hdev; in hpriv_release() 56 mutex_lock(&hdev->fpriv_list_lock); in hpriv_release() 58 hdev->compute_ctx = NULL; in hpriv_release() 59 mutex_unlock(&hdev->fpriv_list_lock); in hpriv_release() [all …]
|
D | firmware_if.c | 28 int hl_fw_load_fw_to_device(struct hl_device *hdev, const char *fw_name, in hl_fw_load_fw_to_device() argument 36 rc = request_firmware(&fw, fw_name, hdev->dev); in hl_fw_load_fw_to_device() 38 dev_err(hdev->dev, "Firmware file %s is not found!\n", fw_name); in hl_fw_load_fw_to_device() 44 dev_err(hdev->dev, "Illegal %s firmware size %zu\n", in hl_fw_load_fw_to_device() 50 dev_dbg(hdev->dev, "%s firmware size == %zu\n", fw_name, fw_size); in hl_fw_load_fw_to_device() 53 dev_err(hdev->dev, in hl_fw_load_fw_to_device() 69 int hl_fw_send_pci_access_msg(struct hl_device *hdev, u32 opcode) in hl_fw_send_pci_access_msg() argument 75 return hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, in hl_fw_send_pci_access_msg() 79 int hl_fw_send_cpu_message(struct hl_device *hdev, u32 hw_queue_id, u32 *msg, in hl_fw_send_cpu_message() argument 87 pkt = hdev->asic_funcs->cpu_accessible_dma_pool_alloc(hdev, len, in hl_fw_send_cpu_message() [all …]
|
D | habanalabs_drv.c | 90 struct hl_device *hdev; in hl_device_open() local 95 hdev = idr_find(&hl_devs_idr, iminor(inode)); in hl_device_open() 98 if (!hdev) { in hl_device_open() 108 hpriv->hdev = hdev; in hl_device_open() 120 mutex_lock(&hdev->fpriv_list_lock); in hl_device_open() 122 if (hl_device_disabled_or_in_reset(hdev)) { in hl_device_open() 123 dev_err_ratelimited(hdev->dev, in hl_device_open() 125 dev_name(hdev->dev)); in hl_device_open() 130 if (hdev->in_debug) { in hl_device_open() 131 dev_err_ratelimited(hdev->dev, in hl_device_open() [all …]
|
D | hw_queue.c | 43 struct hl_device *hdev = cs->ctx->hdev; in hl_int_hw_queue_update_ci() local 47 if (hdev->disabled) in hl_int_hw_queue_update_ci() 50 q = &hdev->kernel_queues[0]; in hl_int_hw_queue_update_ci() 51 for (i = 0 ; i < hdev->asic_prop.max_queues ; i++, q++) { in hl_int_hw_queue_update_ci() 73 static void ext_and_hw_queue_submit_bd(struct hl_device *hdev, in ext_and_hw_queue_submit_bd() argument 85 hdev->asic_funcs->ring_doorbell(hdev, q->hw_queue_id, q->pi); in ext_and_hw_queue_submit_bd() 106 static int ext_queue_sanity_checks(struct hl_device *hdev, in ext_queue_sanity_checks() argument 111 &hdev->completion_queue[q->cq_id].free_slots_cnt; in ext_queue_sanity_checks() 118 dev_dbg(hdev->dev, "Queue %d doesn't have room for %d CBs\n", in ext_queue_sanity_checks() 132 dev_dbg(hdev->dev, "No space for %d on CQ %d\n", in ext_queue_sanity_checks() [all …]
|
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 …]
|
D | mmu.c | 12 static bool is_dram_va(struct hl_device *hdev, u64 virt_addr) in is_dram_va() argument 14 struct asic_fixed_properties *prop = &hdev->asic_prop; in is_dram_va() 31 int hl_mmu_init(struct hl_device *hdev) in hl_mmu_init() argument 33 if (hdev->mmu_enable) in hl_mmu_init() 34 return hdev->mmu_func.init(hdev); in hl_mmu_init() 49 void hl_mmu_fini(struct hl_device *hdev) in hl_mmu_fini() argument 51 if (hdev->mmu_enable) in hl_mmu_fini() 52 hdev->mmu_func.fini(hdev); in hl_mmu_fini() 65 struct hl_device *hdev = ctx->hdev; in hl_mmu_ctx_init() local 67 if (hdev->mmu_enable) in hl_mmu_ctx_init() [all …]
|
D | sysfs.c | 12 long hl_get_frequency(struct hl_device *hdev, u32 pll_index, bool curr) in hl_get_frequency() argument 28 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_get_frequency() 32 dev_err(hdev->dev, in hl_get_frequency() 41 void hl_set_frequency(struct hl_device *hdev, u32 pll_index, u64 freq) in hl_set_frequency() argument 53 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_set_frequency() 57 dev_err(hdev->dev, in hl_set_frequency() 62 u64 hl_get_max_power(struct hl_device *hdev) in hl_get_max_power() argument 73 rc = hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, sizeof(pkt), in hl_get_max_power() 77 dev_err(hdev->dev, "Failed to get max power, error %d\n", rc); in hl_get_max_power() 84 void hl_set_max_power(struct hl_device *hdev) in hl_set_max_power() argument [all …]
|
D | command_buffer.c | 18 struct hl_device *hdev = ctx->hdev; in cb_map_mem() local 19 struct asic_fixed_properties *prop = &hdev->asic_prop; in cb_map_mem() 27 if (!hdev->supports_cb_mapping) { in cb_map_mem() 28 dev_err_ratelimited(hdev->dev, in cb_map_mem() 33 if (!hdev->mmu_enable) { in cb_map_mem() 34 dev_err_ratelimited(hdev->dev, in cb_map_mem() 47 dev_err(hdev->dev, in cb_map_mem() 75 dev_err(hdev->dev, "Failed to map VA %#llx to CB\n", in cb_map_mem() 84 hdev->asic_funcs->mmu_invalidate_cache(hdev, false, VM_TYPE_USERPTR); in cb_map_mem() 101 hdev->asic_funcs->mmu_invalidate_cache(hdev, true, VM_TYPE_USERPTR); in cb_map_mem() [all …]
|
/Linux-v5.10/net/bluetooth/ |
D | hci_debugfs.c | 37 struct hci_dev *hdev = file->private_data; \ 40 buf[0] = test_bit(__quirk, &hdev->quirks) ? 'Y' : 'N'; \ 50 struct hci_dev *hdev = file->private_data; \ 54 if (test_bit(HCI_UP, &hdev->flags)) \ 61 if (enable == test_bit(__quirk, &hdev->quirks)) \ 64 change_bit(__quirk, &hdev->quirks); \ 79 struct hci_dev *hdev = f->private; \ 81 hci_dev_lock(hdev); \ 82 seq_printf(f, "%s\n", hdev->__field ? : ""); \ 83 hci_dev_unlock(hdev); \ [all …]
|
D | hci_core.c | 68 struct hci_dev *hdev = file->private_data; in dut_mode_read() local 71 buf[0] = hci_dev_test_flag(hdev, HCI_DUT_MODE) ? 'Y' : 'N'; in dut_mode_read() 80 struct hci_dev *hdev = file->private_data; in dut_mode_write() local 85 if (!test_bit(HCI_UP, &hdev->flags)) in dut_mode_write() 92 if (enable == hci_dev_test_flag(hdev, HCI_DUT_MODE)) in dut_mode_write() 95 hci_req_sync_lock(hdev); in dut_mode_write() 97 skb = __hci_cmd_sync(hdev, HCI_OP_ENABLE_DUT_MODE, 0, NULL, in dut_mode_write() 100 skb = __hci_cmd_sync(hdev, HCI_OP_RESET, 0, NULL, in dut_mode_write() 102 hci_req_sync_unlock(hdev); in dut_mode_write() 109 hci_dev_change_flag(hdev, HCI_DUT_MODE); in dut_mode_write() [all …]
|
D | hci_event.c | 45 static void hci_cc_inquiry_cancel(struct hci_dev *hdev, struct sk_buff *skb, in hci_cc_inquiry_cancel() argument 50 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_inquiry_cancel() 59 if (status == 0x0c && !test_bit(HCI_INQUIRY, &hdev->flags)) { in hci_cc_inquiry_cancel() 60 bt_dev_warn(hdev, "Ignoring error of Inquiry Cancel command"); in hci_cc_inquiry_cancel() 69 clear_bit(HCI_INQUIRY, &hdev->flags); in hci_cc_inquiry_cancel() 71 wake_up_bit(&hdev->flags, HCI_INQUIRY); in hci_cc_inquiry_cancel() 73 hci_dev_lock(hdev); in hci_cc_inquiry_cancel() 77 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN) || in hci_cc_inquiry_cancel() 78 hdev->le_scan_type != LE_SCAN_ACTIVE) in hci_cc_inquiry_cancel() 79 hci_discovery_set_state(hdev, DISCOVERY_STOPPED); in hci_cc_inquiry_cancel() [all …]
|
D | hci_request.c | 37 void hci_req_init(struct hci_request *req, struct hci_dev *hdev) in hci_req_init() argument 40 req->hdev = hdev; in hci_req_init() 49 bool hci_req_status_pend(struct hci_dev *hdev) in hci_req_status_pend() argument 51 return hdev->req_status == HCI_REQ_PEND; in hci_req_status_pend() 57 struct hci_dev *hdev = req->hdev; in req_run() local 83 spin_lock_irqsave(&hdev->cmd_q.lock, flags); in req_run() 84 skb_queue_splice_tail(&req->cmd_q, &hdev->cmd_q); in req_run() 85 spin_unlock_irqrestore(&hdev->cmd_q.lock, flags); in req_run() 87 queue_work(hdev->workqueue, &hdev->cmd_work); in req_run() 102 static void hci_req_sync_complete(struct hci_dev *hdev, u8 result, u16 opcode, in hci_req_sync_complete() argument [all …]
|
D | mgmt.c | 278 static int mgmt_index_event(u16 event, struct hci_dev *hdev, void *data, in mgmt_index_event() argument 281 return mgmt_send_event(event, hdev, HCI_CHANNEL_CONTROL, data, len, in mgmt_index_event() 285 static int mgmt_limited_event(u16 event, struct hci_dev *hdev, void *data, in mgmt_limited_event() argument 288 return mgmt_send_event(event, hdev, HCI_CHANNEL_CONTROL, data, len, in mgmt_limited_event() 292 static int mgmt_event(u16 event, struct hci_dev *hdev, void *data, u16 len, in mgmt_event() argument 295 return mgmt_send_event(event, hdev, HCI_CHANNEL_CONTROL, data, len, in mgmt_event() 315 static int read_version(struct sock *sk, struct hci_dev *hdev, void *data, in read_version() argument 320 bt_dev_dbg(hdev, "sock %p", sk); in read_version() 328 static int read_commands(struct sock *sk, struct hci_dev *hdev, void *data, in read_commands() argument 336 bt_dev_dbg(hdev, "sock %p", sk); in read_commands() [all …]
|
/Linux-v5.10/net/nfc/hci/ |
D | core.c | 37 void nfc_hci_reset_pipes(struct nfc_hci_dev *hdev) in nfc_hci_reset_pipes() argument 42 hdev->pipes[i].gate = NFC_HCI_INVALID_GATE; in nfc_hci_reset_pipes() 43 hdev->pipes[i].dest_host = NFC_HCI_INVALID_HOST; in nfc_hci_reset_pipes() 45 memset(hdev->gate2pipe, NFC_HCI_INVALID_PIPE, sizeof(hdev->gate2pipe)); in nfc_hci_reset_pipes() 49 void nfc_hci_reset_pipes_per_host(struct nfc_hci_dev *hdev, u8 host) in nfc_hci_reset_pipes_per_host() argument 54 if (hdev->pipes[i].dest_host != host) in nfc_hci_reset_pipes_per_host() 57 hdev->pipes[i].gate = NFC_HCI_INVALID_GATE; in nfc_hci_reset_pipes_per_host() 58 hdev->pipes[i].dest_host = NFC_HCI_INVALID_HOST; in nfc_hci_reset_pipes_per_host() 65 struct nfc_hci_dev *hdev = container_of(work, struct nfc_hci_dev, in nfc_hci_msg_tx_work() local 71 mutex_lock(&hdev->msg_tx_mutex); in nfc_hci_msg_tx_work() [all …]
|
/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_main.c | 16 static int hclgevf_reset_hdev(struct hclgevf_dev *hdev); 104 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_tqps_update_stats() local 117 status = hclgevf_cmd_send(&hdev->hw, &desc, 1); in hclgevf_tqps_update_stats() 119 dev_err(&hdev->pdev->dev, in hclgevf_tqps_update_stats() 131 status = hclgevf_cmd_send(&hdev->hw, &desc, 1); in hclgevf_tqps_update_stats() 133 dev_err(&hdev->pdev->dev, in hclgevf_tqps_update_stats() 199 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_update_stats() local 204 dev_err(&hdev->pdev->dev, in hclgevf_update_stats() 243 static int hclgevf_get_tc_info(struct hclgevf_dev *hdev) in hclgevf_get_tc_info() argument 250 status = hclgevf_send_mbx_msg(hdev, &send_msg, true, &resp_msg, in hclgevf_get_tc_info() [all …]
|
D | hclgevf_mbx.c | 16 static void hclgevf_reset_mbx_resp_status(struct hclgevf_dev *hdev) in hclgevf_reset_mbx_resp_status() argument 21 hdev->mbx_resp.received_resp = false; in hclgevf_reset_mbx_resp_status() 22 hdev->mbx_resp.origin_mbx_msg = 0; in hclgevf_reset_mbx_resp_status() 23 hdev->mbx_resp.resp_status = 0; in hclgevf_reset_mbx_resp_status() 24 memset(hdev->mbx_resp.additional_info, 0, HCLGE_MBX_MAX_RESP_DATA_SIZE); in hclgevf_reset_mbx_resp_status() 33 static int hclgevf_get_mbx_resp(struct hclgevf_dev *hdev, u16 code0, u16 code1, in hclgevf_get_mbx_resp() argument 43 dev_err(&hdev->pdev->dev, in hclgevf_get_mbx_resp() 50 while ((!hdev->mbx_resp.received_resp) && (i < HCLGEVF_MAX_TRY_TIMES)) { in hclgevf_get_mbx_resp() 51 if (test_bit(HCLGEVF_STATE_CMD_DISABLE, &hdev->state)) in hclgevf_get_mbx_resp() 59 dev_err(&hdev->pdev->dev, in hclgevf_get_mbx_resp() [all …]
|
/Linux-v5.10/drivers/media/platform/qcom/venus/ |
D | hfi_venus.c | 139 static void venus_set_state(struct venus_hfi_device *hdev, in venus_set_state() argument 142 mutex_lock(&hdev->lock); in venus_set_state() 143 hdev->state = state; in venus_set_state() 144 mutex_unlock(&hdev->lock); in venus_set_state() 147 static bool venus_is_valid_state(struct venus_hfi_device *hdev) in venus_is_valid_state() argument 149 return hdev->state != VENUS_STATE_DEINIT; in venus_is_valid_state() 152 static void venus_dump_packet(struct venus_hfi_device *hdev, const void *packet) in venus_dump_packet() argument 163 static int venus_write_queue(struct venus_hfi_device *hdev, in venus_write_queue() argument 179 venus_dump_packet(hdev, packet); in venus_write_queue() 232 static int venus_read_queue(struct venus_hfi_device *hdev, in venus_read_queue() argument [all …]
|
/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_tm.c | 114 static int hclge_pfc_stats_get(struct hclge_dev *hdev, in hclge_pfc_stats_get() argument 131 ret = hclge_cmd_send(&hdev->hw, desc, HCLGE_TM_PFC_PKT_GET_CMD_NUM); in hclge_pfc_stats_get() 150 int hclge_pfc_rx_stats_get(struct hclge_dev *hdev, u64 *stats) in hclge_pfc_rx_stats_get() argument 152 return hclge_pfc_stats_get(hdev, HCLGE_OPC_QUERY_PFC_RX_PKT_CNT, stats); in hclge_pfc_rx_stats_get() 155 int hclge_pfc_tx_stats_get(struct hclge_dev *hdev, u64 *stats) in hclge_pfc_tx_stats_get() argument 157 return hclge_pfc_stats_get(hdev, HCLGE_OPC_QUERY_PFC_TX_PKT_CNT, stats); in hclge_pfc_tx_stats_get() 160 int hclge_mac_pause_en_cfg(struct hclge_dev *hdev, bool tx, bool rx) in hclge_mac_pause_en_cfg() argument 169 return hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_mac_pause_en_cfg() 172 static int hclge_pfc_pause_en_cfg(struct hclge_dev *hdev, u8 tx_rx_bitmap, in hclge_pfc_pause_en_cfg() argument 183 return hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_pfc_pause_en_cfg() [all …]
|
D | hclge_dcb.c | 12 static int hclge_ieee_ets_to_tm_info(struct hclge_dev *hdev, in hclge_ieee_ets_to_tm_info() argument 20 hdev->tm_info.tc_info[i].tc_sch_mode = in hclge_ieee_ets_to_tm_info() 22 hdev->tm_info.pg_info[0].tc_dwrr[i] = 0; in hclge_ieee_ets_to_tm_info() 25 hdev->tm_info.tc_info[i].tc_sch_mode = in hclge_ieee_ets_to_tm_info() 27 hdev->tm_info.pg_info[0].tc_dwrr[i] = in hclge_ieee_ets_to_tm_info() 40 hclge_tm_prio_tc_info_update(hdev, ets->prio_tc); in hclge_ieee_ets_to_tm_info() 45 static void hclge_tm_info_to_ieee_ets(struct hclge_dev *hdev, in hclge_tm_info_to_ieee_ets() argument 52 ets->ets_cap = hdev->tc_max; in hclge_tm_info_to_ieee_ets() 55 ets->prio_tc[i] = hdev->tm_info.prio_tc[i]; in hclge_tm_info_to_ieee_ets() 56 ets->tc_tx_bw[i] = hdev->tm_info.pg_info[0].tc_dwrr[i]; in hclge_tm_info_to_ieee_ets() [all …]
|
D | hclge_debugfs.c | 74 static int hclge_dbg_get_dfx_bd_num(struct hclge_dev *hdev, int offset) in hclge_dbg_get_dfx_bd_num() argument 81 ret = hclge_query_bd_num_cmd_send(hdev, desc); in hclge_dbg_get_dfx_bd_num() 83 dev_err(&hdev->pdev->dev, in hclge_dbg_get_dfx_bd_num() 93 static int hclge_dbg_cmd_send(struct hclge_dev *hdev, in hclge_dbg_cmd_send() argument 110 ret = hclge_cmd_send(&hdev->hw, desc_src, bd_num); in hclge_dbg_cmd_send() 112 dev_err(&hdev->pdev->dev, in hclge_dbg_cmd_send() 117 static void hclge_dbg_dump_reg_common(struct hclge_dev *hdev, in hclge_dbg_dump_reg_common() argument 139 bd_num = hclge_dbg_get_dfx_bd_num(hdev, reg_msg->offset); in hclge_dbg_dump_reg_common() 141 dev_err(&hdev->pdev->dev, "get cmd(%d) bd num(%d) failed\n", in hclge_dbg_dump_reg_common() 152 ret = hclge_dbg_cmd_send(hdev, desc, index, bd_num, reg_msg->cmd); in hclge_dbg_dump_reg_common() [all …]
|
D | hclge_main.c | 60 static int hclge_set_mac_mtu(struct hclge_dev *hdev, int new_mps); 61 static int hclge_init_vlan_config(struct hclge_dev *hdev); 62 static void hclge_sync_vlan_filter(struct hclge_dev *hdev); 65 static void hclge_rfs_filter_expire(struct hclge_dev *hdev); 69 static int hclge_set_default_loopback(struct hclge_dev *hdev); 71 static void hclge_sync_mac_table(struct hclge_dev *hdev); 72 static void hclge_restore_hw_table(struct hclge_dev *hdev); 73 static void hclge_sync_promisc_mode(struct hclge_dev *hdev); 420 static int hclge_mac_update_stats_defective(struct hclge_dev *hdev) in hclge_mac_update_stats_defective() argument 424 u64 *data = (u64 *)(&hdev->mac_stats); in hclge_mac_update_stats_defective() [all …]
|
/Linux-v5.10/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, MME_PLL, hdev->high_pll); in goya_set_pll_profile() 17 hl_set_frequency(hdev, TPC_PLL, hdev->high_pll); in goya_set_pll_profile() 18 hl_set_frequency(hdev, IC_PLL, hdev->high_pll); in goya_set_pll_profile() 21 hl_set_frequency(hdev, MME_PLL, GOYA_PLL_FREQ_LOW); in goya_set_pll_profile() 22 hl_set_frequency(hdev, TPC_PLL, GOYA_PLL_FREQ_LOW); in goya_set_pll_profile() 23 hl_set_frequency(hdev, IC_PLL, GOYA_PLL_FREQ_LOW); in goya_set_pll_profile() 26 hl_set_frequency(hdev, MME_PLL, goya->mme_clk); in goya_set_pll_profile() 27 hl_set_frequency(hdev, TPC_PLL, goya->tpc_clk); in goya_set_pll_profile() [all …]
|
/Linux-v5.10/drivers/crypto/stm32/ |
D | stm32-hash.c | 116 struct stm32_hash_dev *hdev; member 124 struct stm32_hash_dev *hdev; member 195 static inline u32 stm32_hash_read(struct stm32_hash_dev *hdev, u32 offset) in stm32_hash_read() argument 197 return readl_relaxed(hdev->io_base + offset); in stm32_hash_read() 200 static inline void stm32_hash_write(struct stm32_hash_dev *hdev, in stm32_hash_write() argument 203 writel_relaxed(value, hdev->io_base + offset); in stm32_hash_write() 206 static inline int stm32_hash_wait_busy(struct stm32_hash_dev *hdev) in stm32_hash_wait_busy() argument 210 return readl_relaxed_poll_timeout(hdev->io_base + HASH_SR, status, in stm32_hash_wait_busy() 214 static void stm32_hash_set_nblw(struct stm32_hash_dev *hdev, int length) in stm32_hash_set_nblw() argument 218 reg = stm32_hash_read(hdev, HASH_STR); in stm32_hash_set_nblw() [all …]
|
/Linux-v5.10/drivers/crypto/ |
D | img-hash.c | 84 struct img_hash_dev *hdev; member 111 struct img_hash_dev *hdev; member 148 static inline u32 img_hash_read(struct img_hash_dev *hdev, u32 offset) in img_hash_read() argument 150 return readl_relaxed(hdev->io_base + offset); in img_hash_read() 153 static inline void img_hash_write(struct img_hash_dev *hdev, in img_hash_write() argument 156 writel_relaxed(value, hdev->io_base + offset); in img_hash_write() 159 static inline u32 img_hash_read_result_queue(struct img_hash_dev *hdev) in img_hash_read_result_queue() argument 161 return be32_to_cpu(img_hash_read(hdev, CR_RESULT_QUEUE)); in img_hash_read_result_queue() 164 static void img_hash_start(struct img_hash_dev *hdev, bool dma) in img_hash_start() argument 166 struct img_hash_request_ctx *ctx = ahash_request_ctx(hdev->req); in img_hash_start() [all …]
|
/Linux-v5.10/drivers/hid/ |
D | hid-lenovo.c | 43 struct hid_device *hdev; member 65 static void lenovo_led_set_tp10ubkbd(struct hid_device *hdev, u8 led_code, in lenovo_led_set_tp10ubkbd() argument 68 struct lenovo_drvdata *data = hid_get_drvdata(hdev); in lenovo_led_set_tp10ubkbd() 76 ret = hid_hw_raw_request(hdev, data->led_report[0], data->led_report, 3, in lenovo_led_set_tp10ubkbd() 79 hid_err(hdev, "Set LED output report error: %d\n", ret); in lenovo_led_set_tp10ubkbd() 89 lenovo_led_set_tp10ubkbd(data->hdev, TP10UBKBD_FN_LOCK_LED, in lenovo_tp10ubkbd_sync_fn_lock() 102 static __u8 *lenovo_report_fixup(struct hid_device *hdev, __u8 *rdesc, in lenovo_report_fixup() argument 105 switch (hdev->product) { in lenovo_report_fixup() 122 static int lenovo_input_mapping_tpkbd(struct hid_device *hdev, in lenovo_input_mapping_tpkbd() argument 128 hid_set_drvdata(hdev, (void *)1); in lenovo_input_mapping_tpkbd() [all …]
|