Searched refs:max_elements (Results 1 – 9 of 9) sorted by relevance
| /linux/drivers/infiniband/hw/bng_re/ |
| H A D | bng_res.h | 16 #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 D | bng_res.c | 112 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 D | bng_fw.c | 101 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 D | qplib_fp.c | 280 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 D | qplib_sp.c | 506 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 D | main.c | 1092 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 D | kvm_util.c | 2237 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 D | kvm_util.h | 591 size_t max_elements); 594 uint64_t *data, size_t max_elements);
|
| /linux/drivers/s390/net/ |
| H A D | qeth_core.h | 499 u8 max_elements; member
|