Home
last modified time | relevance | path

Searched refs:dparms (Results 1 – 15 of 15) sorted by relevance

/Linux-v4.19/drivers/infiniband/hw/hfi1/
Dverbs.c1392 memset(&rdi->dparms.props, 0, sizeof(rdi->dparms.props)); in hfi1_fill_device_attr()
1394 rdi->dparms.props.fw_ver = ((u64)(dc8051_ver_maj(ver)) << 32) | in hfi1_fill_device_attr()
1398 rdi->dparms.props.device_cap_flags = IB_DEVICE_BAD_PKEY_CNTR | in hfi1_fill_device_attr()
1404 rdi->dparms.props.page_size_cap = PAGE_SIZE; in hfi1_fill_device_attr()
1405 rdi->dparms.props.vendor_id = dd->oui1 << 16 | dd->oui2 << 8 | dd->oui3; in hfi1_fill_device_attr()
1406 rdi->dparms.props.vendor_part_id = dd->pcidev->device; in hfi1_fill_device_attr()
1407 rdi->dparms.props.hw_ver = dd->minrev; in hfi1_fill_device_attr()
1408 rdi->dparms.props.sys_image_guid = ib_hfi1_sys_image_guid; in hfi1_fill_device_attr()
1409 rdi->dparms.props.max_mr_size = U64_MAX; in hfi1_fill_device_attr()
1410 rdi->dparms.props.max_fast_reg_page_list_len = UINT_MAX; in hfi1_fill_device_attr()
[all …]
Dqp.c624 priv = kzalloc_node(sizeof(*priv), GFP_KERNEL, rdi->dparms.node); in qp_priv_alloc()
631 rdi->dparms.node); in qp_priv_alloc()
/Linux-v4.19/drivers/infiniband/hw/qib/
Dqib_verbs.c1475 memset(&rdi->dparms.props, 0, sizeof(rdi->dparms.props)); in qib_fill_device_attr()
1477 rdi->dparms.props.max_pd = ib_qib_max_pds; in qib_fill_device_attr()
1478 rdi->dparms.props.max_ah = ib_qib_max_ahs; in qib_fill_device_attr()
1479 rdi->dparms.props.device_cap_flags = IB_DEVICE_BAD_PKEY_CNTR | in qib_fill_device_attr()
1483 rdi->dparms.props.page_size_cap = PAGE_SIZE; in qib_fill_device_attr()
1484 rdi->dparms.props.vendor_id = in qib_fill_device_attr()
1486 rdi->dparms.props.vendor_part_id = dd->deviceid; in qib_fill_device_attr()
1487 rdi->dparms.props.hw_ver = dd->minrev; in qib_fill_device_attr()
1488 rdi->dparms.props.sys_image_guid = ib_qib_sys_image_guid; in qib_fill_device_attr()
1489 rdi->dparms.props.max_mr_size = ~0ULL; in qib_fill_device_attr()
[all …]
/Linux-v4.19/drivers/infiniband/sw/rdmavt/
Dsrq.c88 srq_init_attr->attr.max_sge > dev->dparms.props.max_srq_sge || in rvt_create_srq()
90 srq_init_attr->attr.max_wr > dev->dparms.props.max_srq_wr) in rvt_create_srq()
93 srq = kzalloc_node(sizeof(*srq), GFP_KERNEL, dev->dparms.node); in rvt_create_srq()
107 dev->dparms.node); in rvt_create_srq()
144 if (dev->n_srqs_allocated == dev->dparms.props.max_srq) { in rvt_create_srq()
194 if ((attr->max_wr > dev->dparms.props.max_srq_wr) || in rvt_modify_srq()
205 dev->dparms.node); in rvt_modify_srq()
Dqp.c148 if (!(rdi->dparms.qpn_res_end >= rdi->dparms.qpn_res_start)) in init_qpn_table()
153 qpt->last = rdi->dparms.qpn_start; in init_qpn_table()
154 qpt->incr = rdi->dparms.qpn_inc << rdi->dparms.qos_shift; in init_qpn_table()
164 qpt->nmaps = rdi->dparms.qpn_res_start / RVT_BITS_PER_PAGE; in init_qpn_table()
167 offset = rdi->dparms.qpn_res_start & RVT_BITS_PER_PAGE_MASK; in init_qpn_table()
173 rdi->dparms.qpn_res_start, rdi->dparms.qpn_res_end); in init_qpn_table()
174 for (i = rdi->dparms.qpn_res_start; i <= rdi->dparms.qpn_res_end; i++) { in init_qpn_table()
217 if (!rdi->dparms.qp_table_size) in rvt_driver_qp_init()
233 rdi->dparms.node); in rvt_driver_qp_init()
238 rdi->qp_dev->qp_table_size = rdi->dparms.qp_table_size; in rvt_driver_qp_init()
[all …]
Dmad.c109 for (p = 0; p < rdi->dparms.nports; p++) { in rvt_create_mad_agents()
129 for (p = 0; p < rdi->dparms.nports; p++) { in rvt_create_mad_agents()
155 for (p = 0; p < rdi->dparms.nports; p++) { in rvt_free_mad_agents()
Dcq.c195 if (entries < 1 || entries > rdi->dparms.props.max_cqe) in rvt_create_cq()
204 cq = kzalloc_node(sizeof(*cq), GFP_KERNEL, rdi->dparms.node); in rvt_create_cq()
222 vzalloc_node(sz, rdi->dparms.node); in rvt_create_cq()
250 if (rdi->n_cqs_allocated == rdi->dparms.props.max_cq) { in rvt_create_cq()
276 cpumask_first(cpumask_of_node(rdi->dparms.node)); in rvt_create_cq()
374 if (cqe < 1 || cqe > rdi->dparms.props.max_cqe) in rvt_resize_cq()
387 vzalloc_node(sz, rdi->dparms.node); in rvt_resize_cq()
Dmr.c66 unsigned int lkey_table_size = rdi->dparms.lkey_table_size; in rvt_driver_mr_init()
84 rdi->dparms.lkey_table_size = RVT_MAX_LKEY_TABLE_BITS; in rvt_driver_mr_init()
85 lkey_table_size = rdi->dparms.lkey_table_size; in rvt_driver_mr_init()
91 vmalloc_node(lk_tab_size, rdi->dparms.node); in rvt_driver_mr_init()
144 dev->dparms.node); in rvt_init_mregion()
221 mr->lkey = (r << (32 - dev->dparms.lkey_table_size)) | in rvt_alloc_lkey()
222 ((((1 << (24 - dev->dparms.lkey_table_size)) - 1) & rkt->gen) in rvt_alloc_lkey()
266 r = lkey >> (32 - dev->dparms.lkey_table_size); in rvt_free_lkey()
701 rkt->table[(rkey >> (32 - dev->dparms.lkey_table_size))]); in rvt_invalidate_rkey()
Dmcast.c234 rdi->dparms.props.max_mcast_qp_attach) { in rvt_mcast_add()
247 if (rdi->n_mcast_grps_allocated == rdi->dparms.props.max_mcast_grp) { in rvt_mcast_add()
439 for (i = 0; i < rdi->dparms.nports; i++) in rvt_mcast_tree_empty()
Dpd.c82 if (dev->n_pds_allocated == dev->dparms.props.max_pd) { in rvt_alloc_pd()
Dvt.h96 if ((port_index < 0) || (port_index >= rdi->dparms.nports)) in ibport_num_to_idx()
Dah.c114 if (dev->n_ahs_allocated == dev->dparms.props.max_ah) { in rvt_create_ah()
Dvt.c132 *props = rdi->dparms.props; in rvt_query_device()
334 immutable->core_cap_flags = rdi->dparms.core_cap_flags; in rvt_get_port_immutable()
342 immutable->max_mad_size = rdi->dparms.max_mad_size; in rvt_get_port_immutable()
Dmmap.c165 ip = kmalloc_node(sizeof(*ip), GFP_KERNEL, rdi->dparms.node); in rvt_create_mmap_info()
/Linux-v4.19/include/rdma/
Drdma_vt.h369 struct rvt_driver_params dparms; member
470 return rdi->dparms.npkeys; in rvt_get_npkeys()
479 return rdi->dparms.max_rdma_atomic + 1; in rvt_max_atomic()