Lines Matching refs:attrs
75 dev->attrs.peer_addr)) { in erdma_enum_and_get_netdev()
144 dev->attrs.irq_num = ret; in erdma_request_vectors()
243 dev->attrs.numa_node = dev_to_node(&pdev->dev); in erdma_probe_dev()
366 dev->attrs.max_cqe = 1 << ERDMA_GET_CAP(MAX_CQE, cap0); in erdma_dev_attrs_init()
367 dev->attrs.max_mr_size = 1ULL << ERDMA_GET_CAP(MAX_MR_SIZE, cap0); in erdma_dev_attrs_init()
368 dev->attrs.max_mw = 1 << ERDMA_GET_CAP(MAX_MW, cap1); in erdma_dev_attrs_init()
369 dev->attrs.max_recv_wr = 1 << ERDMA_GET_CAP(MAX_RECV_WR, cap0); in erdma_dev_attrs_init()
370 dev->attrs.local_dma_key = ERDMA_GET_CAP(DMA_LOCAL_KEY, cap1); in erdma_dev_attrs_init()
371 dev->attrs.cc = ERDMA_GET_CAP(DEFAULT_CC, cap1); in erdma_dev_attrs_init()
372 dev->attrs.max_qp = ERDMA_NQP_PER_QBLOCK * ERDMA_GET_CAP(QBLOCK, cap1); in erdma_dev_attrs_init()
373 dev->attrs.max_mr = dev->attrs.max_qp << 1; in erdma_dev_attrs_init()
374 dev->attrs.max_cq = dev->attrs.max_qp << 1; in erdma_dev_attrs_init()
375 dev->attrs.cap_flags = ERDMA_GET_CAP(FLAGS, cap0); in erdma_dev_attrs_init()
377 dev->attrs.max_send_wr = ERDMA_MAX_SEND_WR; in erdma_dev_attrs_init()
378 dev->attrs.max_ord = ERDMA_MAX_ORD; in erdma_dev_attrs_init()
379 dev->attrs.max_ird = ERDMA_MAX_IRD; in erdma_dev_attrs_init()
380 dev->attrs.max_send_sge = ERDMA_MAX_SEND_SGE; in erdma_dev_attrs_init()
381 dev->attrs.max_recv_sge = ERDMA_MAX_RECV_SGE; in erdma_dev_attrs_init()
382 dev->attrs.max_sge_rd = ERDMA_MAX_SGE_RD; in erdma_dev_attrs_init()
383 dev->attrs.max_pd = ERDMA_MAX_PD; in erdma_dev_attrs_init()
386 dev->res_cb[ERDMA_RES_TYPE_STAG_IDX].max_cap = dev->attrs.max_mr; in erdma_dev_attrs_init()
394 dev->attrs.fw_version = in erdma_dev_attrs_init()
404 if (!(dev->attrs.cap_flags & ERDMA_DEV_CAP_FLAGS_EXTEND_DB)) in erdma_device_config()
515 ibdev->num_comp_vectors = dev->attrs.irq_num - 1; in erdma_ib_device_add()
536 u64_to_ether_addr(mac, dev->attrs.peer_addr); in erdma_ib_device_add()