| /Linux-v5.4/drivers/misc/habanalabs/ |
| 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 49 hdev = hpriv->hdev; in hpriv_release() 58 mutex_lock(&hdev->fpriv_list_lock); in hpriv_release() 60 hdev->compute_ctx = NULL; in hpriv_release() 61 mutex_unlock(&hdev->fpriv_list_lock); in hpriv_release() [all …]
|
| D | habanalabs_drv.c | 84 struct hl_device *hdev; in hl_device_open() local 89 hdev = idr_find(&hl_devs_idr, iminor(inode)); in hl_device_open() 92 if (!hdev) { in hl_device_open() 102 hpriv->hdev = hdev; in hl_device_open() 114 mutex_lock(&hdev->fpriv_list_lock); in hl_device_open() 116 if (hl_device_disabled_or_in_reset(hdev)) { in hl_device_open() 117 dev_err_ratelimited(hdev->dev, in hl_device_open() 119 dev_name(hdev->dev)); in hl_device_open() 124 if (hdev->in_debug) { in hl_device_open() 125 dev_err_ratelimited(hdev->dev, in hl_device_open() [all …]
|
| D | pci.c | 25 int hl_pci_bars_map(struct hl_device *hdev, const char * const name[3], in hl_pci_bars_map() argument 28 struct pci_dev *pdev = hdev->pdev; in hl_pci_bars_map() 33 dev_err(hdev->dev, "Cannot obtain PCI resources\n"); in hl_pci_bars_map() 39 hdev->pcie_bar[bar] = is_wc[i] ? in hl_pci_bars_map() 42 if (!hdev->pcie_bar[bar]) { in hl_pci_bars_map() 43 dev_err(hdev->dev, "pci_ioremap%s_bar failed for %s\n", in hl_pci_bars_map() 55 if (hdev->pcie_bar[bar]) in hl_pci_bars_map() 56 iounmap(hdev->pcie_bar[bar]); in hl_pci_bars_map() 70 static void hl_pci_bars_unmap(struct hl_device *hdev) in hl_pci_bars_unmap() argument 72 struct pci_dev *pdev = hdev->pdev; in hl_pci_bars_unmap() [all …]
|
| D | hw_queue.c | 39 struct hl_device *hdev = cs->ctx->hdev; in hl_int_hw_queue_update_ci() local 43 hdev->asic_funcs->hw_queues_lock(hdev); in hl_int_hw_queue_update_ci() 45 if (hdev->disabled) in hl_int_hw_queue_update_ci() 48 q = &hdev->kernel_queues[0]; in hl_int_hw_queue_update_ci() 57 hdev->asic_funcs->hw_queues_unlock(hdev); in hl_int_hw_queue_update_ci() 76 static void ext_queue_submit_bd(struct hl_device *hdev, struct hl_hw_queue *q, in ext_queue_submit_bd() argument 88 hdev->asic_funcs->ring_doorbell(hdev, q->hw_queue_id, q->pi); in ext_queue_submit_bd() 109 static int ext_queue_sanity_checks(struct hl_device *hdev, in ext_queue_sanity_checks() argument 114 &hdev->completion_queue[q->hw_queue_id].free_slots_cnt; in ext_queue_sanity_checks() 121 dev_dbg(hdev->dev, "Queue %d doesn't have room for %d CBs\n", in ext_queue_sanity_checks() [all …]
|
| D | firmware_if.c | 22 int hl_fw_push_fw_to_device(struct hl_device *hdev, const char *fw_name, in hl_fw_push_fw_to_device() argument 30 rc = request_firmware(&fw, fw_name, hdev->dev); in hl_fw_push_fw_to_device() 32 dev_err(hdev->dev, "Firmware file %s is not found!\n", fw_name); in hl_fw_push_fw_to_device() 38 dev_err(hdev->dev, "Illegal %s firmware size %zu\n", in hl_fw_push_fw_to_device() 44 dev_dbg(hdev->dev, "%s firmware size == %zu\n", fw_name, fw_size); in hl_fw_push_fw_to_device() 55 int hl_fw_send_pci_access_msg(struct hl_device *hdev, u32 opcode) in hl_fw_send_pci_access_msg() argument 61 return hdev->asic_funcs->send_cpu_message(hdev, (u32 *) &pkt, in hl_fw_send_pci_access_msg() 65 int hl_fw_send_cpu_message(struct hl_device *hdev, u32 hw_queue_id, u32 *msg, in hl_fw_send_cpu_message() argument 73 pkt = hdev->asic_funcs->cpu_accessible_dma_pool_alloc(hdev, len, in hl_fw_send_cpu_message() 76 dev_err(hdev->dev, in hl_fw_send_cpu_message() [all …]
|
| D | command_buffer.c | 14 static void cb_fini(struct hl_device *hdev, struct hl_cb *cb) in cb_fini() argument 16 hdev->asic_funcs->asic_dma_free_coherent(hdev, cb->size, in cb_fini() 22 static void cb_do_release(struct hl_device *hdev, struct hl_cb *cb) in cb_do_release() argument 25 spin_lock(&hdev->cb_pool_lock); in cb_do_release() 26 list_add(&cb->pool_list, &hdev->cb_pool); in cb_do_release() 27 spin_unlock(&hdev->cb_pool_lock); in cb_do_release() 29 cb_fini(hdev, cb); in cb_do_release() 35 struct hl_device *hdev; in cb_release() local 39 hdev = cb->hdev; in cb_release() 43 cb_do_release(hdev, cb); in cb_release() [all …]
|
| /Linux-v5.4/net/bluetooth/ |
| D | hci_debugfs.c | 36 struct hci_dev *hdev = file->private_data; \ 39 buf[0] = test_bit(__quirk, &hdev->quirks) ? 'Y' : 'N'; \ 49 struct hci_dev *hdev = file->private_data; \ 53 if (test_bit(HCI_UP, &hdev->flags)) \ 60 if (enable == test_bit(__quirk, &hdev->quirks)) \ 63 change_bit(__quirk, &hdev->quirks); \ 78 struct hci_dev *hdev = f->private; \ 80 hci_dev_lock(hdev); \ 81 seq_printf(f, "%s\n", hdev->__field ? : ""); \ 82 hci_dev_unlock(hdev); \ [all …]
|
| D | hci_core.c | 66 struct hci_dev *hdev = file->private_data; in dut_mode_read() local 69 buf[0] = hci_dev_test_flag(hdev, HCI_DUT_MODE) ? 'Y' : 'N'; in dut_mode_read() 78 struct hci_dev *hdev = file->private_data; in dut_mode_write() local 83 if (!test_bit(HCI_UP, &hdev->flags)) in dut_mode_write() 90 if (enable == hci_dev_test_flag(hdev, HCI_DUT_MODE)) in dut_mode_write() 93 hci_req_sync_lock(hdev); in dut_mode_write() 95 skb = __hci_cmd_sync(hdev, HCI_OP_ENABLE_DUT_MODE, 0, NULL, in dut_mode_write() 98 skb = __hci_cmd_sync(hdev, HCI_OP_RESET, 0, NULL, in dut_mode_write() 100 hci_req_sync_unlock(hdev); in dut_mode_write() 107 hci_dev_change_flag(hdev, HCI_DUT_MODE); in dut_mode_write() [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 | hci_event.c | 44 static void hci_cc_inquiry_cancel(struct hci_dev *hdev, struct sk_buff *skb) in hci_cc_inquiry_cancel() argument 48 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_inquiry_cancel() 53 clear_bit(HCI_INQUIRY, &hdev->flags); in hci_cc_inquiry_cancel() 55 wake_up_bit(&hdev->flags, HCI_INQUIRY); in hci_cc_inquiry_cancel() 57 hci_dev_lock(hdev); in hci_cc_inquiry_cancel() 61 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN) || in hci_cc_inquiry_cancel() 62 hdev->le_scan_type != LE_SCAN_ACTIVE) in hci_cc_inquiry_cancel() 63 hci_discovery_set_state(hdev, DISCOVERY_STOPPED); in hci_cc_inquiry_cancel() 64 hci_dev_unlock(hdev); in hci_cc_inquiry_cancel() 66 hci_conn_check_pending(hdev); in hci_cc_inquiry_cancel() [all …]
|
| D | mgmt.c | 250 static int mgmt_index_event(u16 event, struct hci_dev *hdev, void *data, in mgmt_index_event() argument 253 return mgmt_send_event(event, hdev, HCI_CHANNEL_CONTROL, data, len, in mgmt_index_event() 257 static int mgmt_limited_event(u16 event, struct hci_dev *hdev, void *data, in mgmt_limited_event() argument 260 return mgmt_send_event(event, hdev, HCI_CHANNEL_CONTROL, data, len, in mgmt_limited_event() 264 static int mgmt_event(u16 event, struct hci_dev *hdev, void *data, u16 len, in mgmt_event() argument 267 return mgmt_send_event(event, hdev, HCI_CHANNEL_CONTROL, data, len, in mgmt_event() 287 static int read_version(struct sock *sk, struct hci_dev *hdev, void *data, in read_version() argument 300 static int read_commands(struct sock *sk, struct hci_dev *hdev, void *data, in read_commands() argument 352 static int read_index_list(struct sock *sk, struct hci_dev *hdev, void *data, in read_index_list() argument 412 static int read_unconf_index_list(struct sock *sk, struct hci_dev *hdev, in read_unconf_index_list() argument [all …]
|
| /Linux-v5.4/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.4/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
| D | hclgevf_main.c | 16 static int hclgevf_reset_hdev(struct hclgevf_dev *hdev); 101 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_tqps_update_stats() local 114 status = hclgevf_cmd_send(&hdev->hw, &desc, 1); in hclgevf_tqps_update_stats() 116 dev_err(&hdev->pdev->dev, in hclgevf_tqps_update_stats() 128 status = hclgevf_cmd_send(&hdev->hw, &desc, 1); in hclgevf_tqps_update_stats() 130 dev_err(&hdev->pdev->dev, in hclgevf_tqps_update_stats() 196 struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle); in hclgevf_update_stats() local 201 dev_err(&hdev->pdev->dev, in hclgevf_update_stats() 230 static int hclgevf_get_tc_info(struct hclgevf_dev *hdev) in hclgevf_get_tc_info() argument 235 status = hclgevf_send_mbx_msg(hdev, HCLGE_MBX_GET_TCINFO, 0, NULL, 0, in hclgevf_get_tc_info() [all …]
|
| D | hclgevf_mbx.c | 8 static void hclgevf_reset_mbx_resp_status(struct hclgevf_dev *hdev) in hclgevf_reset_mbx_resp_status() argument 13 hdev->mbx_resp.received_resp = false; in hclgevf_reset_mbx_resp_status() 14 hdev->mbx_resp.origin_mbx_msg = 0; in hclgevf_reset_mbx_resp_status() 15 hdev->mbx_resp.resp_status = 0; in hclgevf_reset_mbx_resp_status() 16 memset(hdev->mbx_resp.additional_info, 0, HCLGE_MBX_MAX_RESP_DATA_SIZE); in hclgevf_reset_mbx_resp_status() 25 static int hclgevf_get_mbx_resp(struct hclgevf_dev *hdev, u16 code0, u16 code1, in hclgevf_get_mbx_resp() argument 35 dev_err(&hdev->pdev->dev, in hclgevf_get_mbx_resp() 42 while ((!hdev->mbx_resp.received_resp) && (i < HCLGEVF_MAX_TRY_TIMES)) { in hclgevf_get_mbx_resp() 43 if (test_bit(HCLGEVF_STATE_CMD_DISABLE, &hdev->state)) in hclgevf_get_mbx_resp() 51 dev_err(&hdev->pdev->dev, in hclgevf_get_mbx_resp() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| D | hclge_tm.c | 115 static int hclge_pfc_stats_get(struct hclge_dev *hdev, in hclge_pfc_stats_get() argument 132 ret = hclge_cmd_send(&hdev->hw, desc, HCLGE_TM_PFC_PKT_GET_CMD_NUM); in hclge_pfc_stats_get() 151 int hclge_pfc_rx_stats_get(struct hclge_dev *hdev, u64 *stats) in hclge_pfc_rx_stats_get() argument 153 return hclge_pfc_stats_get(hdev, HCLGE_OPC_QUERY_PFC_RX_PKT_CNT, stats); in hclge_pfc_rx_stats_get() 156 int hclge_pfc_tx_stats_get(struct hclge_dev *hdev, u64 *stats) in hclge_pfc_tx_stats_get() argument 158 return hclge_pfc_stats_get(hdev, HCLGE_OPC_QUERY_PFC_TX_PKT_CNT, stats); in hclge_pfc_tx_stats_get() 161 int hclge_mac_pause_en_cfg(struct hclge_dev *hdev, bool tx, bool rx) in hclge_mac_pause_en_cfg() argument 170 return hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_mac_pause_en_cfg() 173 static int hclge_pfc_pause_en_cfg(struct hclge_dev *hdev, u8 tx_rx_bitmap, in hclge_pfc_pause_en_cfg() argument 184 return hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_pfc_pause_en_cfg() [all …]
|
| D | hclge_dcb.c | 10 static int hclge_ieee_ets_to_tm_info(struct hclge_dev *hdev, in hclge_ieee_ets_to_tm_info() argument 18 hdev->tm_info.tc_info[i].tc_sch_mode = in hclge_ieee_ets_to_tm_info() 20 hdev->tm_info.pg_info[0].tc_dwrr[i] = 0; in hclge_ieee_ets_to_tm_info() 23 hdev->tm_info.tc_info[i].tc_sch_mode = in hclge_ieee_ets_to_tm_info() 25 hdev->tm_info.pg_info[0].tc_dwrr[i] = in hclge_ieee_ets_to_tm_info() 38 hclge_tm_prio_tc_info_update(hdev, ets->prio_tc); in hclge_ieee_ets_to_tm_info() 43 static void hclge_tm_info_to_ieee_ets(struct hclge_dev *hdev, in hclge_tm_info_to_ieee_ets() argument 50 ets->ets_cap = hdev->tc_max; in hclge_tm_info_to_ieee_ets() 53 ets->prio_tc[i] = hdev->tm_info.prio_tc[i]; in hclge_tm_info_to_ieee_ets() 54 ets->tc_tx_bw[i] = hdev->tm_info.pg_info[0].tc_dwrr[i]; in hclge_tm_info_to_ieee_ets() [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 int hclge_set_umv_space(struct hclge_dev *hdev, u16 space_size, 65 static void hclge_rfs_filter_expire(struct hclge_dev *hdev); 69 static int hclge_set_default_loopback(struct hclge_dev *hdev); 414 static int hclge_mac_update_stats_defective(struct hclge_dev *hdev) in hclge_mac_update_stats_defective() argument 418 u64 *data = (u64 *)(&hdev->hw_stats.mac_stats); in hclge_mac_update_stats_defective() 425 ret = hclge_cmd_send(&hdev->hw, desc, HCLGE_MAC_CMD_NUM); in hclge_mac_update_stats_defective() 427 dev_err(&hdev->pdev->dev, in hclge_mac_update_stats_defective() [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 83 ret = hclge_query_bd_num_cmd_send(hdev, desc); in hclge_dbg_get_dfx_bd_num() 85 dev_err(&hdev->pdev->dev, in hclge_dbg_get_dfx_bd_num() 95 static int hclge_dbg_cmd_send(struct hclge_dev *hdev, in hclge_dbg_cmd_send() argument 112 ret = hclge_cmd_send(&hdev->hw, desc_src, bd_num); in hclge_dbg_cmd_send() 114 dev_err(&hdev->pdev->dev, in hclge_dbg_cmd_send() 119 static void hclge_dbg_dump_reg_common(struct hclge_dev *hdev, in hclge_dbg_dump_reg_common() argument 141 bd_num = hclge_dbg_get_dfx_bd_num(hdev, reg_msg->offset); in hclge_dbg_dump_reg_common() 143 dev_err(&hdev->pdev->dev, "get cmd(%d) bd num(%d) failed\n", in hclge_dbg_dump_reg_common() 151 dev_err(&hdev->pdev->dev, "call kzalloc failed\n"); in hclge_dbg_dump_reg_common() [all …]
|
| /Linux-v5.4/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.4/drivers/crypto/stm32/ |
| D | stm32-hash.c | 115 struct stm32_hash_dev *hdev; member 123 struct stm32_hash_dev *hdev; member 194 static inline u32 stm32_hash_read(struct stm32_hash_dev *hdev, u32 offset) in stm32_hash_read() argument 196 return readl_relaxed(hdev->io_base + offset); in stm32_hash_read() 199 static inline void stm32_hash_write(struct stm32_hash_dev *hdev, in stm32_hash_write() argument 202 writel_relaxed(value, hdev->io_base + offset); in stm32_hash_write() 205 static inline int stm32_hash_wait_busy(struct stm32_hash_dev *hdev) in stm32_hash_wait_busy() argument 209 return readl_relaxed_poll_timeout(hdev->io_base + HASH_SR, status, in stm32_hash_wait_busy() 213 static void stm32_hash_set_nblw(struct stm32_hash_dev *hdev, int length) in stm32_hash_set_nblw() argument 217 reg = stm32_hash_read(hdev, HASH_STR); in stm32_hash_set_nblw() [all …]
|
| /Linux-v5.4/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 …]
|
| D | goya.c | 327 static int goya_mmu_clear_pgt_range(struct hl_device *hdev); 328 static int goya_mmu_set_dram_default_page(struct hl_device *hdev); 329 static int goya_mmu_add_mappings_for_device_cpu(struct hl_device *hdev); 330 static void goya_mmu_prepare(struct hl_device *hdev, u32 asid); 332 void goya_get_fixed_properties(struct hl_device *hdev) in goya_get_fixed_properties() argument 334 struct asic_fixed_properties *prop = &hdev->asic_prop; in goya_get_fixed_properties() 371 if (hdev->pldm) in goya_get_fixed_properties() 407 static int goya_pci_bars_map(struct hl_device *hdev) in goya_pci_bars_map() argument 413 rc = hl_pci_bars_map(hdev, name, is_wc); in goya_pci_bars_map() 417 hdev->rmmio = hdev->pcie_bar[SRAM_CFG_BAR_ID] + in goya_pci_bars_map() [all …]
|
| /Linux-v5.4/drivers/crypto/ |
| D | img-hash.c | 83 struct img_hash_dev *hdev; member 110 struct img_hash_dev *hdev; member 147 static inline u32 img_hash_read(struct img_hash_dev *hdev, u32 offset) in img_hash_read() argument 149 return readl_relaxed(hdev->io_base + offset); in img_hash_read() 152 static inline void img_hash_write(struct img_hash_dev *hdev, in img_hash_write() argument 155 writel_relaxed(value, hdev->io_base + offset); in img_hash_write() 158 static inline u32 img_hash_read_result_queue(struct img_hash_dev *hdev) in img_hash_read_result_queue() argument 160 return be32_to_cpu(img_hash_read(hdev, CR_RESULT_QUEUE)); in img_hash_read_result_queue() 163 static void img_hash_start(struct img_hash_dev *hdev, bool dma) in img_hash_start() argument 165 struct img_hash_request_ctx *ctx = ahash_request_ctx(hdev->req); in img_hash_start() [all …]
|
| /Linux-v5.4/drivers/bluetooth/ |
| D | btbcm.c | 29 int btbcm_check_bdaddr(struct hci_dev *hdev) in btbcm_check_bdaddr() argument 34 skb = __hci_cmd_sync(hdev, HCI_OP_READ_BD_ADDR, 0, NULL, in btbcm_check_bdaddr() 38 bt_dev_err(hdev, "BCM: Reading device address failed (%d)", err); in btbcm_check_bdaddr() 43 bt_dev_err(hdev, "BCM: Device address length mismatch"); in btbcm_check_bdaddr() 80 bt_dev_info(hdev, "BCM: Using default device address (%pMR)", in btbcm_check_bdaddr() 82 set_bit(HCI_QUIRK_INVALID_BDADDR, &hdev->quirks); in btbcm_check_bdaddr() 91 int btbcm_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr) in btbcm_set_bdaddr() argument 96 skb = __hci_cmd_sync(hdev, 0xfc01, 6, bdaddr, HCI_INIT_TIMEOUT); in btbcm_set_bdaddr() 99 bt_dev_err(hdev, "BCM: Change address command failed (%d)", err); in btbcm_set_bdaddr() 108 int btbcm_patchram(struct hci_dev *hdev, const struct firmware *fw) in btbcm_patchram() argument [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 …]
|