Home
last modified time | relevance | path

Searched refs:aq (Results 1 – 25 of 46) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/s390/crypto/
Dap_queue.c19 static void __ap_flush_queue(struct ap_queue *aq);
30 static int ap_queue_enable_irq(struct ap_queue *aq, void *ind) in ap_queue_enable_irq() argument
37 status = ap_aqic(aq->qid, qirqctrl, ind); in ap_queue_enable_irq()
47 AP_QID_CARD(aq->qid), in ap_queue_enable_irq()
48 AP_QID_QUEUE(aq->qid)); in ap_queue_enable_irq()
122 static enum ap_sm_wait ap_sm_nop(struct ap_queue *aq) in ap_sm_nop() argument
134 static struct ap_queue_status ap_sm_recv(struct ap_queue *aq) in ap_sm_recv() argument
140 status = ap_dqap(aq->qid, &aq->reply->psmid, in ap_sm_recv()
141 aq->reply->msg, aq->reply->len); in ap_sm_recv()
144 aq->queue_count = max_t(int, 0, aq->queue_count - 1); in ap_sm_recv()
[all …]
Dzcrypt_cex2c.c181 static int zcrypt_cex2c_rng_supported(struct ap_queue *aq) in zcrypt_cex2c_rng_supported() argument
210 msg->cprbx.domain = AP_QID_QUEUE(aq->qid); in zcrypt_cex2c_rng_supported()
212 rc = ap_send(aq->qid, 0x0102030405060708ULL, ap_msg.msg, ap_msg.len); in zcrypt_cex2c_rng_supported()
219 rc = ap_recv(aq->qid, &psmid, ap_msg.msg, 4096); in zcrypt_cex2c_rng_supported()
337 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_cex2c_queue_probe() local
344 zq->queue = aq; in zcrypt_cex2c_queue_probe()
347 ap_rapq(aq->qid); in zcrypt_cex2c_queue_probe()
348 rc = zcrypt_cex2c_rng_supported(aq); in zcrypt_cex2c_queue_probe()
359 ap_queue_init_state(aq); in zcrypt_cex2c_queue_probe()
360 ap_queue_init_reply(aq, &zq->reply); in zcrypt_cex2c_queue_probe()
[all …]
Dap_card.c81 struct ap_queue *aq; in request_count_store() local
85 hash_for_each(ap_queues, bkt, aq, hnode) in request_count_store()
86 if (ac == aq->card) in request_count_store()
87 aq->total_request_count = 0; in request_count_store()
100 struct ap_queue *aq; in requestq_count_show() local
106 hash_for_each(ap_queues, bkt, aq, hnode) in requestq_count_show()
107 if (ac == aq->card) in requestq_count_show()
108 reqq_cnt += aq->requestq_count; in requestq_count_show()
119 struct ap_queue *aq; in pendingq_count_show() local
125 hash_for_each(ap_queues, bkt, aq, hnode) in pendingq_count_show()
[all …]
Dap_bus.c393 struct ap_queue *aq = from_timer(aq, t, timeout); in ap_request_timeout() local
395 spin_lock_bh(&aq->lock); in ap_request_timeout()
396 ap_wait(ap_sm_event(aq, AP_SM_EVENT_TIMEOUT)); in ap_request_timeout()
397 spin_unlock_bh(&aq->lock); in ap_request_timeout()
431 struct ap_queue *aq; in ap_tasklet_fn() local
442 hash_for_each(ap_queues, bkt, aq, hnode) { in ap_tasklet_fn()
443 spin_lock_bh(&aq->lock); in ap_tasklet_fn()
444 wait = min(wait, ap_sm_event_loop(aq, AP_SM_EVENT_POLL)); in ap_tasklet_fn()
445 spin_unlock_bh(&aq->lock); in ap_tasklet_fn()
455 struct ap_queue *aq; in ap_pending_requests() local
[all …]
Dzcrypt_cex2a.c154 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_cex2a_queue_probe() local
173 zq->queue = aq; in zcrypt_cex2a_queue_probe()
176 ap_queue_init_state(aq); in zcrypt_cex2a_queue_probe()
177 ap_queue_init_reply(aq, &zq->reply); in zcrypt_cex2a_queue_probe()
178 aq->request_timeout = CEX2A_CLEANUP_TIME, in zcrypt_cex2a_queue_probe()
179 aq->private = zq; in zcrypt_cex2a_queue_probe()
182 aq->private = NULL; in zcrypt_cex2a_queue_probe()
195 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_cex2a_queue_remove() local
196 struct zcrypt_queue *zq = aq->private; in zcrypt_cex2a_queue_remove()
Dap_bus.h266 enum ap_sm_wait ap_sm_event(struct ap_queue *aq, enum ap_sm_event event);
267 enum ap_sm_wait ap_sm_event_loop(struct ap_queue *aq, enum ap_sm_event event);
269 int ap_queue_message(struct ap_queue *aq, struct ap_message *ap_msg);
270 void ap_cancel_message(struct ap_queue *aq, struct ap_message *ap_msg);
271 void ap_flush_queue(struct ap_queue *aq);
281 void ap_queue_init_reply(struct ap_queue *aq, struct ap_message *ap_msg);
283 void ap_queue_prepare_remove(struct ap_queue *aq);
284 void ap_queue_remove(struct ap_queue *aq);
285 void ap_queue_init_state(struct ap_queue *aq);
Dzcrypt_queue.c43 struct ap_queue *aq = to_ap_queue(dev); in online_show() local
44 struct zcrypt_queue *zq = aq->private; in online_show()
45 int online = aq->config && zq->online ? 1 : 0; in online_show()
54 struct ap_queue *aq = to_ap_queue(dev); in online_store() local
55 struct zcrypt_queue *zq = aq->private; in online_store()
62 if (online && (!aq->config || !aq->card->config)) in online_store()
Dzcrypt_cex4.c603 struct ap_queue *aq = to_ap_queue(&ap_dev->device); in zcrypt_cex4_queue_probe() local
607 if (ap_test_bit(&aq->card->functions, AP_FUNC_ACCEL)) { in zcrypt_cex4_queue_probe()
613 } else if (ap_test_bit(&aq->card->functions, AP_FUNC_COPRO)) { in zcrypt_cex4_queue_probe()
619 } else if (ap_test_bit(&aq->card->functions, AP_FUNC_EP11)) { in zcrypt_cex4_queue_probe()
629 zq->queue = aq; in zcrypt_cex4_queue_probe()
632 ap_queue_init_state(aq); in zcrypt_cex4_queue_probe()
633 ap_queue_init_reply(aq, &zq->reply); in zcrypt_cex4_queue_probe()
634 aq->request_timeout = CEX4_CLEANUP_TIME, in zcrypt_cex4_queue_probe()
635 aq->private = zq; in zcrypt_cex4_queue_probe()
638 aq->private = NULL; in zcrypt_cex4_queue_probe()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
Di40e_adminq.c22 hw->aq.asq.tail = I40E_VF_ATQT1; in i40e_adminq_init_regs()
23 hw->aq.asq.head = I40E_VF_ATQH1; in i40e_adminq_init_regs()
24 hw->aq.asq.len = I40E_VF_ATQLEN1; in i40e_adminq_init_regs()
25 hw->aq.asq.bal = I40E_VF_ATQBAL1; in i40e_adminq_init_regs()
26 hw->aq.asq.bah = I40E_VF_ATQBAH1; in i40e_adminq_init_regs()
27 hw->aq.arq.tail = I40E_VF_ARQT1; in i40e_adminq_init_regs()
28 hw->aq.arq.head = I40E_VF_ARQH1; in i40e_adminq_init_regs()
29 hw->aq.arq.len = I40E_VF_ARQLEN1; in i40e_adminq_init_regs()
30 hw->aq.arq.bal = I40E_VF_ARQBAL1; in i40e_adminq_init_regs()
31 hw->aq.arq.bah = I40E_VF_ARQBAH1; in i40e_adminq_init_regs()
[all …]
Di40e_nvm.c76 access, time_left, ret_code, hw->aq.asq_last_status); in i40e_acquire_nvm()
98 time_left, ret_code, hw->aq.asq_last_status); in i40e_acquire_nvm()
126 (total_delay < hw->aq.asq_cmd_timeout)) { in i40e_release_nvm()
873 mutex_lock(&hw->aq.arq_mutex); in i40e_nvmupd_command()
911 mutex_unlock(&hw->aq.arq_mutex); in i40e_nvmupd_command()
939 hw->aq.asq_last_status); in i40e_nvmupd_state_init()
950 hw->aq.asq_last_status); in i40e_nvmupd_state_init()
964 hw->aq.asq_last_status); in i40e_nvmupd_state_init()
981 hw->aq.asq_last_status); in i40e_nvmupd_state_init()
998 hw->aq.asq_last_status); in i40e_nvmupd_state_init()
[all …]
Di40e_dcb.c787 if (hw->aq.asq_last_status == I40E_AQ_RC_ENOENT) in i40e_get_ieee_dcb_config()
808 (((hw->aq.fw_maj_ver == 4) && (hw->aq.fw_min_ver < 33)) || in i40e_get_dcb_config()
809 (hw->aq.fw_maj_ver < 4))) in i40e_get_dcb_config()
814 ((hw->aq.fw_maj_ver == 4) && (hw->aq.fw_min_ver == 33))) { in i40e_get_dcb_config()
839 if (hw->aq.asq_last_status == I40E_AQ_RC_ENOENT) in i40e_get_dcb_config()
856 if (hw->aq.asq_last_status == I40E_AQ_RC_ENOENT) in i40e_get_dcb_config()
Di40e_main.c1700 i40e_aq_str(hw, hw->aq.asq_last_status)); in i40e_set_mac()
1732 i40e_aq_str(hw, hw->aq.asq_last_status)); in i40e_config_rss_aq()
1744 i40e_aq_str(hw, hw->aq.asq_last_status)); in i40e_config_rss_aq()
2228 aq_err = hw->aq.asq_last_status; in i40e_aqc_del_filters()
2262 aq_err = hw->aq.asq_last_status; in i40e_aqc_add_filters()
2322 i40e_aq_str(hw, hw->aq.asq_last_status), in i40e_aqc_broadcast_filter()
2364 i40e_aq_str(hw, hw->aq.asq_last_status)); in i40e_set_promiscuous()
2376 i40e_aq_str(hw, hw->aq.asq_last_status)); in i40e_set_promiscuous()
2386 i40e_aq_str(hw, hw->aq.asq_last_status)); in i40e_set_promiscuous()
2501 filter_list_len = hw->aq.asq_buf_size / in i40e_sync_vsi_filters()
[all …]
Di40e_client.c310 cdev->lan_info.fw_maj_ver = pf->hw.aq.fw_maj_ver; in i40e_client_add_instance()
311 cdev->lan_info.fw_min_ver = pf->hw.aq.fw_min_ver; in i40e_client_add_instance()
312 cdev->lan_info.fw_build = pf->hw.aq.fw_build; in i40e_client_add_instance()
562 err, hw->aq.asq_last_status); in i40e_client_virtchnl_send()
704 pf->hw.aq.asq_last_status)); in i40e_client_update_vsi_ctxt()
732 pf->hw.aq.asq_last_status)); in i40e_client_update_vsi_ctxt()
Di40e_debugfs.c506 ring = &(hw->aq.asq); in i40e_dbg_dump_aq_desc()
519 ring = &(hw->aq.arq); in i40e_dbg_dump_aq_desc()
1062 pf->hw.aq.asq_last_status); in i40e_dbg_command_write()
1175 ret, pf->hw.aq.asq_last_status); in i40e_dbg_command_write()
1315 desc->opcode, pf->hw.aq.asq_last_status); in i40e_dbg_command_write()
1376 desc->opcode, pf->hw.aq.asq_last_status); in i40e_dbg_command_write()
1408 pf->hw.aq.asq_last_status); in i40e_dbg_command_write()
1419 __func__, pf->hw.aq.asq_last_status); in i40e_dbg_command_write()
1437 __func__, pf->hw.aq.asq_last_status); in i40e_dbg_command_write()
1445 pf->hw.aq.asq_last_status); in i40e_dbg_command_write()
[all …]
Di40e_common.c341 if (hw->aq.asq.len) in i40e_check_asq_alive()
342 return !!(rd32(hw, hw->aq.asq.len) & in i40e_check_asq_alive()
1598 switch (hw->aq.asq_last_status) { in i40e_aq_get_phy_capabilities()
1612 } while ((hw->aq.asq_last_status == I40E_AQ_RC_EAGAIN) && in i40e_aq_get_phy_capabilities()
1620 hw->aq.api_maj_ver == I40E_FW_API_VERSION_MAJOR && in i40e_aq_get_phy_capabilities()
1621 hw->aq.api_min_ver >= I40E_MINOR_VER_GET_LINK_INFO_XL710) { in i40e_aq_get_phy_capabilities()
1892 (hw->aq.fw_maj_ver < 4 || (hw->aq.fw_maj_ver == 4 && in i40e_aq_get_link_info()
1893 hw->aq.fw_min_ver < 40)) && hw_link_info->phy_type == 0xE) in i40e_aq_get_link_info()
1977 static bool i40e_is_aq_api_ver_ge(struct i40e_adminq_info *aq, u16 maj, in i40e_is_aq_api_ver_ge() argument
1980 return (aq->api_maj_ver > maj || in i40e_is_aq_api_ver_ge()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/iavf/
Diavf_adminq.c19 hw->aq.asq.tail = IAVF_VF_ATQT1; in iavf_adminq_init_regs()
20 hw->aq.asq.head = IAVF_VF_ATQH1; in iavf_adminq_init_regs()
21 hw->aq.asq.len = IAVF_VF_ATQLEN1; in iavf_adminq_init_regs()
22 hw->aq.asq.bal = IAVF_VF_ATQBAL1; in iavf_adminq_init_regs()
23 hw->aq.asq.bah = IAVF_VF_ATQBAH1; in iavf_adminq_init_regs()
24 hw->aq.arq.tail = IAVF_VF_ARQT1; in iavf_adminq_init_regs()
25 hw->aq.arq.head = IAVF_VF_ARQH1; in iavf_adminq_init_regs()
26 hw->aq.arq.len = IAVF_VF_ARQLEN1; in iavf_adminq_init_regs()
27 hw->aq.arq.bal = IAVF_VF_ARQBAL1; in iavf_adminq_init_regs()
28 hw->aq.arq.bah = IAVF_VF_ARQBAH1; in iavf_adminq_init_regs()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/efa/
Defa_com.c123 struct efa_com_admin_queue *aq = &edev->aq; in efa_com_admin_init_sq() local
124 struct efa_com_admin_sq *sq = &aq->sq; in efa_com_admin_init_sq()
125 u16 size = aq->depth * sizeof(*sq->entries); in efa_com_admin_init_sq()
131 dma_alloc_coherent(aq->dmadev, size, &sq->dma_addr, GFP_KERNEL); in efa_com_admin_init_sq()
149 EFA_SET(&aq_caps, EFA_REGS_AQ_CAPS_AQ_DEPTH, aq->depth); in efa_com_admin_init_sq()
160 struct efa_com_admin_queue *aq = &edev->aq; in efa_com_admin_init_cq() local
161 struct efa_com_admin_cq *cq = &aq->cq; in efa_com_admin_init_cq()
162 u16 size = aq->depth * sizeof(*cq->entries); in efa_com_admin_init_cq()
168 dma_alloc_coherent(aq->dmadev, size, &cq->dma_addr, GFP_KERNEL); in efa_com_admin_init_cq()
183 EFA_SET(&acq_caps, EFA_REGS_ACQ_CAPS_ACQ_DEPTH, aq->depth); in efa_com_admin_init_cq()
[all …]
Defa_com_cmd.c21 struct efa_com_admin_queue *aq = &edev->aq; in efa_com_create_qp() local
41 err = efa_com_cmd_exec(aq, in efa_com_create_qp()
66 struct efa_com_admin_queue *aq = &edev->aq; in efa_com_modify_qp() local
81 err = efa_com_cmd_exec(aq, in efa_com_modify_qp()
101 struct efa_com_admin_queue *aq = &edev->aq; in efa_com_query_qp() local
109 err = efa_com_cmd_exec(aq, in efa_com_query_qp()
135 struct efa_com_admin_queue *aq = &edev->aq; in efa_com_destroy_qp() local
141 err = efa_com_cmd_exec(aq, in efa_com_destroy_qp()
162 struct efa_com_admin_queue *aq = &edev->aq; in efa_com_create_cq() local
177 err = efa_com_cmd_exec(aq, in efa_com_create_cq()
[all …]
Defa_com.h104 struct efa_com_admin_queue aq; member
137 int efa_com_cmd_exec(struct efa_com_admin_queue *aq,
/kernel/linux/linux-5.10/drivers/spi/
Datmel-quadspi.c225 static u32 atmel_qspi_read(struct atmel_qspi *aq, u32 offset) in atmel_qspi_read() argument
227 u32 value = readl_relaxed(aq->regs + offset); in atmel_qspi_read()
232 dev_vdbg(&aq->pdev->dev, "read 0x%08x from %s\n", value, in atmel_qspi_read()
239 static void atmel_qspi_write(u32 value, struct atmel_qspi *aq, u32 offset) in atmel_qspi_write() argument
244 dev_vdbg(&aq->pdev->dev, "write 0x%08x into %s\n", value, in atmel_qspi_write()
248 writel_relaxed(value, aq->regs + offset); in atmel_qspi_write()
300 static int atmel_qspi_set_cfg(struct atmel_qspi *aq, in atmel_qspi_set_cfg() argument
383 if (aq->mr != QSPI_MR_SMM) { in atmel_qspi_set_cfg()
384 atmel_qspi_write(QSPI_MR_SMM, aq, QSPI_MR); in atmel_qspi_set_cfg()
385 aq->mr = QSPI_MR_SMM; in atmel_qspi_set_cfg()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_common.c273 struct nix_aq_enq_req *aq; in otx2_set_rss_table() local
279 aq = otx2_mbox_alloc_msg_nix_aq_enq(mbox); in otx2_set_rss_table()
280 if (!aq) { in otx2_set_rss_table()
289 aq = otx2_mbox_alloc_msg_nix_aq_enq(mbox); in otx2_set_rss_table()
290 if (!aq) { in otx2_set_rss_table()
296 aq->rss.rq = rss->ind_tbl[idx]; in otx2_set_rss_table()
299 aq->qidx = idx; in otx2_set_rss_table()
300 aq->ctype = NIX_AQ_CTYPE_RSS; in otx2_set_rss_table()
301 aq->op = NIX_AQ_INSTOP_INIT; in otx2_set_rss_table()
707 struct nix_aq_enq_req *aq; in otx2_rq_init() local
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_npa.c21 struct admin_queue *aq = block->aq; in npa_aq_enqueue_wait() local
26 result = (struct npa_aq_res_s *)aq->res->base; in npa_aq_enqueue_wait()
32 memcpy((void *)(aq->inst->base + (head * aq->inst->entry_sz)), in npa_aq_enqueue_wait()
33 (void *)inst, aq->inst->entry_sz); in npa_aq_enqueue_wait()
63 struct admin_queue *aq; in rvu_npa_aq_enq_inst() local
77 aq = block->aq; in rvu_npa_aq_enq_inst()
78 if (!aq) { in rvu_npa_aq_enq_inst()
95 inst.res_addr = (u64)aq->res->iova; in rvu_npa_aq_enq_inst()
100 spin_lock(&aq->lock); in rvu_npa_aq_enq_inst()
103 memset(aq->res->base, 0, aq->res->entry_sz); in rvu_npa_aq_enq_inst()
[all …]
Drvu_nix.c592 struct admin_queue *aq = block->aq; in nix_aq_enqueue_wait() local
597 result = (struct nix_aq_res_s *)aq->res->base; in nix_aq_enqueue_wait()
603 memcpy((void *)(aq->inst->base + (head * aq->inst->entry_sz)), in nix_aq_enqueue_wait()
604 (void *)inst, aq->inst->entry_sz); in nix_aq_enqueue_wait()
634 struct admin_queue *aq; in rvu_nix_aq_enq_inst() local
645 aq = block->aq; in rvu_nix_aq_enq_inst()
646 if (!aq) { in rvu_nix_aq_enq_inst()
719 inst.res_addr = (u64)aq->res->iova; in rvu_nix_aq_enq_inst()
724 spin_lock(&aq->lock); in rvu_nix_aq_enq_inst()
727 memset(aq->res->base, 0, aq->res->entry_sz); in rvu_nix_aq_enq_inst()
[all …]
/kernel/linux/linux-5.10/lib/
Dkasprintf.c19 va_list aq; in kvasprintf() local
21 va_copy(aq, ap); in kvasprintf()
22 first = vsnprintf(NULL, 0, fmt, aq); in kvasprintf()
23 va_end(aq); in kvasprintf()
Dtest_printf.c42 va_list aq; in do_test() local
48 va_copy(aq, ap); in do_test()
49 ret = vsnprintf(test_buffer, bufsize, fmt, aq); in do_test()
50 va_end(aq); in do_test()

12