Home
last modified time | relevance | path

Searched refs:dev_attr (Results 1 – 2 of 2) sorted by relevance

/net/rds/
Dib.c125 struct ib_device_attr *dev_attr; in rds_ib_add_one() local
131 dev_attr = kmalloc(sizeof *dev_attr, GFP_KERNEL); in rds_ib_add_one()
132 if (!dev_attr) in rds_ib_add_one()
135 if (ib_query_device(device, dev_attr)) { in rds_ib_add_one()
149 rds_ibdev->max_wrs = dev_attr->max_qp_wr; in rds_ib_add_one()
150 rds_ibdev->max_sge = min(dev_attr->max_sge, RDS_IB_MAX_SGE); in rds_ib_add_one()
152 rds_ibdev->fmr_max_remaps = dev_attr->max_map_per_fmr?: 32; in rds_ib_add_one()
153 rds_ibdev->max_fmrs = dev_attr->max_fmr ? in rds_ib_add_one()
154 min_t(unsigned int, dev_attr->max_fmr, fmr_pool_size) : in rds_ib_add_one()
157 rds_ibdev->max_initiator_depth = dev_attr->max_qp_init_rd_atom; in rds_ib_add_one()
[all …]
Diw.c63 struct ib_device_attr *dev_attr; in rds_iw_add_one() local
69 dev_attr = kmalloc(sizeof *dev_attr, GFP_KERNEL); in rds_iw_add_one()
70 if (!dev_attr) in rds_iw_add_one()
73 if (ib_query_device(device, dev_attr)) { in rds_iw_add_one()
84 rds_iwdev->dma_local_lkey = !!(dev_attr->device_cap_flags & IB_DEVICE_LOCAL_DMA_LKEY); in rds_iw_add_one()
85 rds_iwdev->max_wrs = dev_attr->max_qp_wr; in rds_iw_add_one()
86 rds_iwdev->max_sge = min(dev_attr->max_sge, RDS_IW_MAX_SGE); in rds_iw_add_one()
125 kfree(dev_attr); in rds_iw_add_one()