Home
last modified time | relevance | path

Searched refs:max_elements (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/infiniband/hw/bng_re/
H A Dbng_res.h16 #define HWQ_CMP(idx, hwq) ((idx) & ((hwq)->max_elements - 1))
17 #define HWQ_FREE_SLOTS(hwq) (hwq->max_elements - \
20 & (hwq->max_elements - 1)))
119 u32 max_elements; member
187 static inline void bng_re_hwq_incr_cons(u32 max_elements, u32 *cons, u32 cnt, in bng_re_hwq_incr_cons() argument
192 if (*cons >= max_elements) { in bng_re_hwq_incr_cons()
193 *cons %= max_elements; in bng_re_hwq_incr_cons()
H A Dbng_res.c112 if (!hwq->max_elements) in bng_re_free_hwq()
121 hwq->max_elements = 0; in bng_re_free_hwq()
264 hwq->max_elements = hwq->depth; in bng_re_alloc_init_hwq()
H A Dbng_fw.c101 rcfw->crsqe_tbl = kcalloc(cmdq->hwq.max_elements, in bng_re_alloc_fw_channel()
262 bng_re_hwq_incr_cons(hwq->max_elements, &hwq->cons, in bng_re_service_creq()
/linux/drivers/infiniband/hw/bnxt_re/
H A Dqplib_fp.c280 bnxt_qplib_hwq_incr_cons(hwq->max_elements, &hwq->cons, in clean_nq()
391 bnxt_qplib_hwq_incr_cons(hwq->max_elements, &hwq->cons, in bnxt_qplib_service_nq()
412 nq->budget = nq->hwq.max_elements; in bnxt_re_synchronize_nq()
585 if (nq->hwq.max_elements) { in bnxt_qplib_free_nq()
587 nq->hwq.max_elements = 0; in bnxt_qplib_free_nq()
598 if (!nq->hwq.max_elements || in bnxt_qplib_alloc_nq()
599 nq->hwq.max_elements > BNXT_QPLIB_NQE_MAX_CNT) in bnxt_qplib_alloc_nq()
600 nq->hwq.max_elements = BNXT_QPLIB_NQE_MAX_CNT; in bnxt_qplib_alloc_nq()
606 hwq_attr.depth = nq->hwq.max_elements; in bnxt_qplib_alloc_nq()
671 req.srq_size = cpu_to_le16((u16)srq->hwq.max_elements); in bnxt_qplib_create_srq()
[all …]
H A Dqplib_sp.c506 if (mrw->hwq.max_elements) in bnxt_qplib_free_mrw()
571 if (mrw->hwq.max_elements) { in bnxt_qplib_dereg_mrw()
599 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr()
662 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr()
H A Dmain.c1092 if (rdma_nl_put_driver_u32(msg, "max_elements", mr_hwq->max_elements)) in bnxt_re_fill_res_mr_entry()
1153 if (rdma_nl_put_driver_u32(msg, "max_elements", cq_hwq->max_elements)) in bnxt_re_fill_res_cq_entry()
1845 nq->hwq.max_elements = BNXT_QPLIB_NQE_MAX_CNT; in bnxt_re_alloc_res()
/linux/tools/testing/selftests/kvm/lib/
H A Dkvm_util.c2237 size_t max_elements) in read_stat_data() argument
2239 size_t nr_elements = min_t(ssize_t, desc->size, max_elements); in read_stat_data()
2244 TEST_ASSERT(max_elements, "Zero elements requested for stat '%s'", desc->name); in read_stat_data()
2257 uint64_t *data, size_t max_elements) in kvm_get_stat() argument
2276 read_stat_data(stats->fd, &stats->header, desc, data, max_elements); in kvm_get_stat()
/linux/tools/testing/selftests/kvm/include/
H A Dkvm_util.h591 size_t max_elements);
594 uint64_t *data, size_t max_elements);
/linux/drivers/s390/net/
H A Dqeth_core.h499 u8 max_elements; member