/openbmc/linux/drivers/net/ethernet/microsoft/mana/ |
H A D | hw_channel.c | 403 hwc_cq->queue_depth = q_depth; in mana_hwc_create_cq() 434 dma_buf->num_reqs = q_depth; in mana_hwc_alloc_dma_buf() 448 for (i = 0; i < q_depth; i++) { in mana_hwc_alloc_dma_buf() 488 enum gdma_queue_type q_type, u16 q_depth, in mana_hwc_create_wq() argument 517 hwc_wq->queue_depth = q_depth; in mana_hwc_create_wq() 602 for (i = 0; i < q_depth; i++) { in mana_hwc_test_channel() 613 for (i = 0; i < q_depth; ++i) in mana_hwc_test_channel() 646 *q_depth = hwc->hwc_init_q_depth_max; in mana_hwc_establish_channel() 668 err = mana_hwc_init_inflight_msg(hwc, q_depth); in mana_hwc_init_queues() 675 err = mana_hwc_create_cq(hwc, q_depth * 2, in mana_hwc_init_queues() [all …]
|
/openbmc/linux/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_hw_wq.c | 504 u16 wqebb_size, u32 wq_page_size, u16 q_depth, in hinic_wq_allocate() argument 523 if (q_depth & (q_depth - 1)) { in hinic_wq_allocate() 547 wq->q_depth = q_depth; in hinic_wq_allocate() 564 atomic_set(&wq->delta, q_depth); in hinic_wq_allocate() 565 wq->mask = q_depth - 1; in hinic_wq_allocate() 602 u16 q_depth, u16 max_wqe_size) in hinic_wqs_cmdq_alloc() argument 620 if (q_depth & (q_depth - 1)) { in hinic_wqs_cmdq_alloc() 650 wq[i].q_depth = q_depth; in hinic_wqs_cmdq_alloc() 668 atomic_set(&wq[i].delta, q_depth); in hinic_wqs_cmdq_alloc() 669 wq[i].mask = q_depth - 1; in hinic_wqs_cmdq_alloc() [all …]
|
H A D | hinic_hw_wq.h | 30 u16 q_depth; member 80 u16 q_depth, u16 max_wqe_size); 91 u16 wqebb_size, u32 wq_page_size, u16 q_depth,
|
H A D | hinic_hw_qp.c | 224 skb_arr_size = wq->q_depth * sizeof(*sq->saved_skb); in alloc_sq_skb_arr() 252 skb_arr_size = wq->q_depth * sizeof(*rq->saved_skb); in alloc_rq_skb_arr() 324 cqe_size = wq->q_depth * sizeof(*rq->cqe); in alloc_rq_cqe() 329 cqe_dma_size = wq->q_depth * sizeof(*rq->cqe_dma); in alloc_rq_cqe() 334 for (i = 0; i < wq->q_depth; i++) { in alloc_rq_cqe() 367 for (i = 0; i < wq->q_depth; i++) in free_rq_cqe()
|
H A D | hinic_hw_cmdq.c | 363 if (next_prod_idx >= wq->q_depth) { in cmdq_sync_cmd_direct_resp() 365 next_prod_idx -= wq->q_depth; in cmdq_sync_cmd_direct_resp() 442 if (next_prod_idx >= wq->q_depth) { in cmdq_set_arm_bit() 444 next_prod_idx -= wq->q_depth; in cmdq_set_arm_bit() 749 cmdq->done = vzalloc(array_size(sizeof(*cmdq->done), wq->q_depth)); in init_cmdq() 754 wq->q_depth)); in init_cmdq()
|
/openbmc/linux/drivers/net/ethernet/amazon/ena/ |
H A D | ena_eth_com.h | 84 return io_sq->q_depth - 1 - cnt; in ena_com_free_q_entries() 182 need_update = unreported_comp > (io_cq->q_depth / ENA_COMP_HEAD_THRESH); in ena_com_update_dev_comp_head() 220 if (unlikely((io_cq->head & (io_cq->q_depth - 1)) == 0)) in ena_com_cq_inc_head() 231 masked_head = io_cq->head & (io_cq->q_depth - 1); in ena_com_tx_comp_req_id_get() 249 if (unlikely(*req_id >= io_cq->q_depth)) { in ena_com_tx_comp_req_id_get()
|
H A D | ena_eth_com.c | 15 head_masked = io_cq->head & (io_cq->q_depth - 1); in ena_com_get_next_rx_cdesc() 40 tail_masked = io_sq->tail & (io_sq->q_depth - 1); in get_sq_desc_regular_queue() 55 dst_tail_mask = io_sq->tail & (io_sq->q_depth - 1); in ena_com_write_bounce_buffer_to_dev() 83 if (unlikely((io_sq->tail & (io_sq->q_depth - 1)) == 0)) in ena_com_write_bounce_buffer_to_dev() 217 if (unlikely((io_sq->tail & (io_sq->q_depth - 1)) == 0)) in ena_com_sq_update_tail() 226 idx &= (io_cq->q_depth - 1); in ena_com_rx_cdesc_idx_to_ptr() 254 head_masked = io_cq->head & (io_cq->q_depth - 1); in ena_com_cdesc_rx_pkt_get() 538 u16 q_depth = io_cq->q_depth; in ena_com_rx_pkt() local 566 if (unlikely(ena_buf[i].req_id >= q_depth)) in ena_com_rx_pkt()
|
H A D | ena_com.c | 144 aenq->head = aenq->q_depth; in ena_com_admin_init_aenq() 183 command_id, admin_queue->q_depth); in get_comp_ctxt() 216 queue_size_mask = admin_queue->q_depth - 1; in __ena_com_submit_admin_cmd() 222 if (cnt >= admin_queue->q_depth) { in __ena_com_submit_admin_cmd() 276 for (i = 0; i < admin_queue->q_depth; i++) { in ena_com_init_comp_ctxt() 1209 create_cmd.sq_depth = io_sq->q_depth; in ena_com_create_io_sq() 1356 create_cmd.cq_depth = io_cq->q_depth; in ena_com_create_io_cq() 1489 u16 depth = ena_dev->aenq.q_depth; in ena_com_admin_aenq_enable() 1644 size = ADMIN_AENQ_SIZE(aenq->q_depth); in ena_com_admin_destroy() 1826 io_cq->q_depth = ctx->queue_size; in ena_com_create_io_queue() [all …]
|
H A D | ena_com.h | 130 u16 q_depth; member 174 u16 q_depth; member 223 u16 q_depth; member 253 u16 q_depth; member
|
/openbmc/u-boot/drivers/nvme/ |
H A D | nvme.c | 39 u16 q_depth; member 152 if (++tail == nvmeq->q_depth) in nvme_submit_cmd() 187 if (++head == nvmeq->q_depth) { in nvme_submit_sync_cmd() 201 if (++head == nvmeq->q_depth) { in nvme_submit_sync_cmd() 242 nvmeq->q_depth = depth; in nvme_alloc_queue() 323 memset((void *)nvmeq->cqes, 0, NVME_CQ_SIZE(nvmeq->q_depth)); in nvme_init_queue() 325 (ulong)nvmeq->cqes + NVME_CQ_SIZE(nvmeq->q_depth)); in nvme_init_queue() 363 aqa = nvmeq->q_depth - 1; in nvme_configure_admin_queue() 404 c.create_cq.qsize = cpu_to_le16(nvmeq->q_depth - 1); in nvme_alloc_cq() 421 c.create_sq.qsize = cpu_to_le16(nvmeq->q_depth - 1); in nvme_alloc_sq() [all …]
|
/openbmc/linux/drivers/net/ethernet/brocade/bna/ |
H A D | bnad.c | 91 u32 q_depth, u32 index) in bnad_tx_buff_unmap() argument 114 BNA_QE_INDX_INC(index, q_depth); in bnad_tx_buff_unmap() 126 BNA_QE_INDX_INC(index, q_depth); in bnad_tx_buff_unmap() 174 q_depth = tcb->q_depth; in bnad_txcmpl_process() 341 u32 alloced, prod, q_depth; in bnad_rxq_refill_page() local 350 q_depth = rcb->q_depth; in bnad_rxq_refill_page() 397 BNA_QE_INDX_INC(prod, q_depth); in bnad_rxq_refill_page() 424 q_depth = rcb->q_depth; in bnad_rxq_refill_skb() 453 BNA_QE_INDX_INC(prod, q_depth); in bnad_rxq_refill_skb() 2917 u32 prod, q_depth, vect_id; in bnad_start_xmit() local [all …]
|
H A D | bna_types.h | 428 u32 q_depth; member 559 u32 q_depth; member 575 int q_depth; member 623 u32 q_depth; member
|
H A D | bfa_msgq.c | 516 msgq_cfg->cmdq.q_depth = htons(msgq->cmdq.depth); in bfa_msgq_init() 518 msgq_cfg->rspq.q_depth = htons(msgq->rspq.depth); in bfa_msgq_init()
|
/openbmc/linux/drivers/nvme/host/ |
H A D | pci.c | 130 u32 q_depth; member 199 u32 q_depth; member 1479 int q_depth = dev->q_depth; in nvme_cmb_qdepth() local 1494 if (q_depth < 64) in nvme_cmb_qdepth() 1498 return q_depth; in nvme_cmb_qdepth() 1535 nvmeq->q_depth = depth; in nvme_alloc_queue() 1759 aqa = nvmeq->q_depth - 1; in nvme_pci_configure_admin_queue() 2308 dev->q_depth = result; in nvme_setup_io_queues() 2530 dev->q_depth = 2; in nvme_pci_enable() 2534 dev->q_depth = 64; in nvme_pci_enable() [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/octeon_ep/ |
H A D | octep_ctrl_mbox.c | 228 u32 pi, ci, r_sz, buf_sz, q_depth; in octep_ctrl_mbox_recv() local 240 q_depth = octep_ctrl_mbox_circq_depth(pi, ci, q->sz); in octep_ctrl_mbox_recv() 241 if (q_depth < mbox_hdr_sz) { in octep_ctrl_mbox_recv()
|
/openbmc/linux/drivers/crypto/hisilicon/sec2/ |
H A D | sec_crypto.c | 310 u16 q_depth = res->depth; in sec_alloc_civ_resource() local 318 for (i = 1; i < q_depth; i++) { in sec_alloc_civ_resource() 335 u16 q_depth = res->depth; in sec_alloc_aiv_resource() local 343 for (i = 1; i < q_depth; i++) { in sec_alloc_aiv_resource() 360 u16 q_depth = res->depth; in sec_alloc_mac_resource() local 368 for (i = 1; i < q_depth; i++) { in sec_alloc_mac_resource() 397 u16 q_depth = res->depth; in sec_alloc_pbuf_resource() local 398 int size = SEC_PBUF_PAGE_NUM(q_depth); in sec_alloc_pbuf_resource() 419 if (k == q_depth) in sec_alloc_pbuf_resource() 490 u16 q_depth = qp_ctx->qp->sq_depth; in sec_alloc_qp_ctx_resource() local [all …]
|
/openbmc/linux/drivers/scsi/bfa/ |
H A D | bfi.h | 538 #define BFI_MSGQ_FULL(_q) (((_q->pi + 1) % _q->q_depth) == _q->ci) 540 #define BFI_MSGQ_UPDATE_CI(_q) (_q->ci = (_q->ci + 1) % _q->q_depth) 541 #define BFI_MSGQ_UPDATE_PI(_q) (_q->pi = (_q->pi + 1) % _q->q_depth) 544 #define BFI_MSGQ_FREE_CNT(_q) ((_q->ci - _q->pi - 1) & (_q->q_depth - 1)) 585 u16 q_depth; /* Total num of entries in the queue */ member
|
/openbmc/linux/drivers/net/ethernet/fungible/funcore/ |
H A D | fun_dev.h | 69 unsigned int q_depth; /* max queue depth supported by device */ member
|
H A D | fun_queue.c | 89 if (sq_depth > fdev->q_depth) in fun_sq_create() 138 if (cq_depth > fdev->q_depth) in fun_cq_create()
|
H A D | fun_dev.c | 786 fdev->q_depth = NVME_CAP_MQES(fdev->cap_reg) + 1; in fun_dev_enable() 816 fdev->q_depth, fdev->db_stride, fdev->max_qid, in fun_dev_enable()
|
/openbmc/linux/drivers/crypto/hisilicon/zip/ |
H A D | zip_crypto.c | 605 u16 q_depth = ctx->qp_ctx[0].qp->sq_depth; in hisi_zip_create_req_q() local 611 req_q->size = q_depth; in hisi_zip_create_req_q() 657 u16 q_depth = ctx->qp_ctx[0].qp->sq_depth; in hisi_zip_create_sgl_pool() local 665 tmp->sgl_pool = hisi_acc_create_sgl_pool(dev, q_depth << 1, in hisi_zip_create_sgl_pool()
|
/openbmc/linux/net/mac80211/ |
H A D | debugfs_sta.c | 258 u32 q_depth[IEEE80211_NUM_ACS]; in sta_aql_read() local 271 q_depth[ac] = atomic_read(&sta->airtime[ac].aql_tx_pending); in sta_aql_read() 277 q_depth[0], q_depth[1], q_depth[2], q_depth[3], in sta_aql_read()
|
/openbmc/linux/drivers/block/ |
H A D | ublk_drv.c | 129 int q_depth; member 720 return round_up(ubq->q_depth * sizeof(struct ublksrv_io_desc), in ublk_queue_cmd_buf_size() 1459 for (i = 0; i < ubq->q_depth; i++) { in ublk_abort_queue() 1511 return ubq->nr_io_ready == ubq->q_depth; in ublk_queue_ready() 1518 for (i = 0; i < ubq->q_depth; i++) { in ublk_cancel_queue() 1723 if (tag >= ubq->q_depth) in __ublk_ch_uring_cmd() 1914 if (tag >= ubq->q_depth) in ublk_check_and_get_req() 2002 ubq->q_depth = ub->dev_info.queue_depth; in ublk_init_queue() 2625 for (i = 0; i < ubq->q_depth; i++) { in ublk_queue_reinit()
|
/openbmc/linux/drivers/scsi/mpi3mr/ |
H A D | mpi3mr_os.c | 970 int q_depth) in mpi3mr_change_queue_depth() argument 977 q_depth = 1; in mpi3mr_change_queue_depth() 978 if (q_depth > shost->can_queue) in mpi3mr_change_queue_depth() 979 q_depth = shost->can_queue; in mpi3mr_change_queue_depth() 980 else if (!q_depth) in mpi3mr_change_queue_depth() 981 q_depth = MPI3MR_DEFAULT_SDEV_QD; in mpi3mr_change_queue_depth() 1272 tg->fw_qd = tgtdev->q_depth; in mpi3mr_update_tgtdev() 1273 tg->modified_qd = tgtdev->q_depth; in mpi3mr_update_tgtdev() 1855 u16 *q_depth = (u16 *)data; in mpi3mr_update_sdev_qd() local 1857 scsi_change_queue_depth(sdev, (int)*q_depth); in mpi3mr_update_sdev_qd() [all …]
|
/openbmc/linux/drivers/crypto/hisilicon/ |
H A D | debugfs.c | 257 u32 *e_id, u32 *q_id, u16 q_depth) in q_dump_param_parse() argument 283 if (ret || *e_id >= q_depth) { in q_dump_param_parse() 284 dev_err(dev, "Please input sqe num (0-%u)", q_depth - 1); in q_dump_param_parse()
|