Lines Matching refs:depth
128 u16 size = aq->depth * sizeof(*sq->entries); in efa_com_admin_init_sq()
152 EFA_SET(&aq_caps, EFA_REGS_AQ_CAPS_AQ_DEPTH, aq->depth); in efa_com_admin_init_sq()
165 u16 size = aq->depth * sizeof(*cq->entries); in efa_com_admin_init_cq()
186 EFA_SET(&acq_caps, EFA_REGS_ACQ_CAPS_ACQ_DEPTH, aq->depth); in efa_com_admin_init_cq()
217 aenq->depth = EFA_ASYNC_QUEUE_DEPTH; in efa_com_admin_init_aenq()
227 EFA_SET(&aenq_caps, EFA_REGS_AENQ_CAPS_AENQ_DEPTH, aenq->depth); in efa_com_admin_init_aenq()
270 u16 ctx_id = cmd_id & (aq->depth - 1); in efa_com_put_comp_ctx()
280 u16 ctx_id = cmd_id & (aq->depth - 1); in efa_com_get_comp_ctx()
312 queue_size_mask = aq->depth - 1; in __efa_com_submit_admin_cmd()
357 size_t pool_size = aq->depth * sizeof(*aq->comp_ctx_pool); in efa_com_init_comp_ctxt()
358 size_t size = aq->depth * sizeof(struct efa_comp_ctx); in efa_com_init_comp_ctxt()
370 for (i = 0; i < aq->depth; i++) { in efa_com_init_comp_ctxt()
441 queue_size_mask = aq->depth - 1; in efa_com_handle_admin_completion()
460 if (ci == aq->depth) { in efa_com_handle_admin_completion()
672 size = aq->depth * sizeof(*sq->entries); in efa_com_admin_destroy()
675 size = aq->depth * sizeof(*cq->entries); in efa_com_admin_destroy()
678 size = aenq->depth * sizeof(*aenq->entries); in efa_com_admin_destroy()
738 aq->depth = EFA_ADMIN_QUEUE_DEPTH; in efa_com_admin_init()
744 sema_init(&aq->avail_cmds, aq->depth); in efa_com_admin_init()
781 dma_free_coherent(edev->dmadev, aq->depth * sizeof(*aq->cq.entries), in efa_com_admin_init()
784 dma_free_coherent(edev->dmadev, aq->depth * sizeof(*aq->sq.entries), in efa_com_admin_init()
842 ci = aenq->cc & (aenq->depth - 1); in efa_com_aenq_intr_handler()
865 if (ci == aenq->depth) { in efa_com_aenq_intr_handler()
1105 cmd.depth = params->depth; in efa_com_create_eq()
1168 ci = eeq->cc & (eeq->depth - 1); in efa_com_eq_comp_intr_handler()
1186 if (ci == eeq->depth) { in efa_com_eq_comp_intr_handler()
1206 dma_free_coherent(edev->dmadev, eeq->depth * sizeof(*eeq->eqes), in efa_com_eq_destroy()
1211 efa_eqe_handler cb, u16 depth, u8 msix_vec) in efa_com_eq_init() argument
1217 params.depth = depth; in efa_com_eq_init()
1224 params.depth * sizeof(*eeq->eqes), in efa_com_eq_init()
1237 eeq->depth = params.depth; in efa_com_eq_init()
1244 dma_free_coherent(edev->dmadev, params.depth * sizeof(*eeq->eqes), in efa_com_eq_init()