Lines Matching refs:caps

103 	int dmfs = dev->caps.steering_mode == MLX4_STEERING_MODE_DEVICE_MANAGED;  in check_flow_steering_support()
112 (dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_DMFS_IPOIB)) && in check_flow_steering_support()
114 (dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_FS_EN)); in check_flow_steering_support()
160 props->fw_ver = dev->dev->caps.fw_ver; in mlx4_ib_query_device()
166 if (dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_BAD_PKEY_CNTR) in mlx4_ib_query_device()
168 if (dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_BAD_QKEY_CNTR) in mlx4_ib_query_device()
170 if (dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_APM && have_ib_ports) in mlx4_ib_query_device()
172 if (dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_UD_AV_PORT) in mlx4_ib_query_device()
174 if (dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_IPOIB_CSUM) in mlx4_ib_query_device()
176 if (dev->dev->caps.max_gso_sz && in mlx4_ib_query_device()
178 (dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_BLH)) in mlx4_ib_query_device()
180 if (dev->dev->caps.bmme_flags & MLX4_BMME_FLAG_RESERVED_LKEY) in mlx4_ib_query_device()
182 if ((dev->dev->caps.bmme_flags & MLX4_BMME_FLAG_LOCAL_INV) && in mlx4_ib_query_device()
183 (dev->dev->caps.bmme_flags & MLX4_BMME_FLAG_REMOTE_INV) && in mlx4_ib_query_device()
184 (dev->dev->caps.bmme_flags & MLX4_BMME_FLAG_FAST_REG_WR)) in mlx4_ib_query_device()
186 if (dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_XRC) in mlx4_ib_query_device()
188 if (dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_MEM_WINDOW) in mlx4_ib_query_device()
190 if (dev->dev->caps.bmme_flags & MLX4_BMME_FLAG_TYPE_2_WIN) { in mlx4_ib_query_device()
191 if (dev->dev->caps.bmme_flags & MLX4_BMME_FLAG_WIN_TYPE_2B) in mlx4_ib_query_device()
206 props->page_size_cap = dev->dev->caps.page_size_cap; in mlx4_ib_query_device()
208 props->max_qp_wr = dev->dev->caps.max_wqes - MLX4_IB_SQ_MAX_SPARE; in mlx4_ib_query_device()
209 props->max_sge = min(dev->dev->caps.max_sq_sg, in mlx4_ib_query_device()
210 dev->dev->caps.max_rq_sg); in mlx4_ib_query_device()
212 props->max_cqe = dev->dev->caps.max_cqes; in mlx4_ib_query_device()
214 props->max_pd = dev->dev->caps.num_pds - dev->dev->caps.reserved_pds; in mlx4_ib_query_device()
215 props->max_qp_rd_atom = dev->dev->caps.max_qp_dest_rdma; in mlx4_ib_query_device()
216 props->max_qp_init_rd_atom = dev->dev->caps.max_qp_init_rdma; in mlx4_ib_query_device()
219 props->max_srq_wr = dev->dev->caps.max_srq_wqes - 1; in mlx4_ib_query_device()
220 props->max_srq_sge = dev->dev->caps.max_srq_sge; in mlx4_ib_query_device()
222 props->local_ca_ack_delay = dev->dev->caps.local_ca_ack_delay; in mlx4_ib_query_device()
223 props->atomic_cap = dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_ATOMIC ? in mlx4_ib_query_device()
226 props->max_pkeys = dev->dev->caps.pkey_table_len[1]; in mlx4_ib_query_device()
227 props->max_mcast_grp = dev->dev->caps.num_mgms + dev->dev->caps.num_amgms; in mlx4_ib_query_device()
228 props->max_mcast_qp_attach = dev->dev->caps.num_qp_per_mgm; in mlx4_ib_query_device()
231 props->max_map_per_fmr = dev->dev->caps.max_fmr_maps; in mlx4_ib_query_device()
245 return dev->caps.port_mask[port_num] == MLX4_PORT_TYPE_IB ? in mlx4_ib_port_link_layer()
286 props->gid_tbl_len = to_mdev(ibdev)->dev->caps.gid_table_len[port]; in ib_link_query_port()
287 props->max_msg_sz = to_mdev(ibdev)->dev->caps.max_msg_sz; in ib_link_query_port()
288 props->pkey_tbl_len = to_mdev(ibdev)->dev->caps.pkey_table_len[port]; in ib_link_query_port()
370 props->gid_tbl_len = mdev->dev->caps.gid_table_len[port]; in eth_link_query_port()
371 props->max_msg_sz = mdev->dev->caps.max_msg_sz; in eth_link_query_port()
602 u8 is_eth = mdev->dev->caps.port_type[port] == MLX4_PORT_TYPE_ETH; in mlx4_ib_modify_port()
645 resp_v3.qp_tab_size = dev->dev->caps.num_qps; in mlx4_ib_alloc_ucontext()
646 resp_v3.bf_reg_size = dev->dev->caps.bf_reg_size; in mlx4_ib_alloc_ucontext()
647 resp_v3.bf_regs_per_page = dev->dev->caps.bf_regs_per_page; in mlx4_ib_alloc_ucontext()
649 resp.dev_caps = dev->dev->caps.userspace_caps; in mlx4_ib_alloc_ucontext()
650 resp.qp_tab_size = dev->dev->caps.num_qps; in mlx4_ib_alloc_ucontext()
651 resp.bf_reg_size = dev->dev->caps.bf_reg_size; in mlx4_ib_alloc_ucontext()
652 resp.bf_regs_per_page = dev->dev->caps.bf_regs_per_page; in mlx4_ib_alloc_ucontext()
653 resp.cqe_size = dev->dev->caps.cqe_size; in mlx4_ib_alloc_ucontext()
707 } else if (vma->vm_pgoff == 1 && dev->dev->caps.bf_reg_size != 0) { in mlx4_ib_mmap()
712 dev->dev->caps.num_uars, in mlx4_ib_mmap()
763 if (!(to_mdev(ibdev)->dev->caps.flags & MLX4_DEV_CAP_FLAG_XRC)) in mlx4_ib_alloc_xrcd()
1125 if (dev->caps.tunnel_offload_mode != MLX4_TUNNEL_OFFLOAD_MODE_VXLAN || in mlx4_ib_tunnel_steer_add()
1126 dev->caps.dmfs_high_steer_mode == MLX4_STEERING_DMFS_A0_STATIC) in mlx4_ib_tunnel_steer_add()
1276 if (mdev->dev->caps.steering_mode == in mlx4_ib_mcg_attach()
1355 if (mdev->dev->caps.steering_mode == in mlx4_ib_mcg_detach()
1458 return sprintf(buf, "%d.%d.%d\n", (int) (dev->dev->caps.fw_ver >> 32), in show_fw_ver()
1459 (int) (dev->dev->caps.fw_ver >> 16) & 0xffff, in show_fw_ver()
1460 (int) dev->dev->caps.fw_ver & 0xffff); in show_fw_ver()
1594 max_gids = dev->dev->caps.gid_table_len[port]; in update_gid_table()
1690 for (port = 1; port <= ibdev->dev->caps.num_ports; ++port) in mlx4_ib_addr_event()
1713 for (port = 1; port <= ibdev->dev->caps.num_ports; ++port) in mlx4_ib_get_dev_port()
1720 if ((port == 0) || (port > ibdev->dev->caps.num_ports)) in mlx4_ib_get_dev_port()
1829 if ((port == 0) || (port > ibdev->dev->caps.num_ports)) in mlx4_ib_get_dev_addr()
2018 for (port = 1; port <= ibdev->dev->caps.num_ports; ++port) { in init_pkeys()
2032 for (port = 1; port <= ibdev->dev->caps.num_ports; ++port) { in init_pkeys()
2051 if (dev->caps.comp_pool == 0 || in mlx4_ib_alloc_eqs()
2052 dev->caps.num_ports > dev->caps.comp_pool) in mlx4_ib_alloc_eqs()
2055 eq_per_port = dev->caps.comp_pool / dev->caps.num_ports; in mlx4_ib_alloc_eqs()
2062 total_eqs = dev->caps.num_comp_vectors + added_eqs; in mlx4_ib_alloc_eqs()
2081 (eq % dev->caps.num_comp_vectors); in mlx4_ib_alloc_eqs()
2088 for (i = 0, eq = added_eqs; i < dev->caps.num_comp_vectors; i++) in mlx4_ib_alloc_eqs()
2104 ibdev->ib_dev.num_comp_vectors = dev->caps.num_comp_vectors; in mlx4_ib_free_eqs()
2109 if (ibdev->eq_table[i] <= dev->caps.num_comp_vectors) in mlx4_ib_free_eqs()
2164 ibdev->ib_dev.local_dma_lkey = dev->caps.reserved_lkey; in mlx4_ib_add()
2168 ibdev->ib_dev.num_comp_vectors = dev->caps.num_comp_vectors; in mlx4_ib_add()
2171 if (dev->caps.userspace_caps) in mlx4_ib_add()
2252 if (dev->caps.flags & MLX4_DEV_CAP_FLAG_MEM_WINDOW || in mlx4_ib_add()
2253 dev->caps.bmme_flags & MLX4_BMME_FLAG_TYPE_2_WIN) { in mlx4_ib_add()
2263 if (dev->caps.flags & MLX4_DEV_CAP_FLAG_XRC) { in mlx4_ib_add()
2342 for (j = 1; j <= ibdev->dev->caps.num_ports; j++) in mlx4_ib_add()
2343 atomic64_set(&iboe->mac[j - 1], ibdev->dev->caps.def_mac[j]); in mlx4_ib_add()
2354 if (dev->caps.flags & MLX4_DEV_CAP_FLAG_IBOE) { in mlx4_ib_add()
2589 ports = bitmap_weight(actv_ports.ports, dev->caps.num_ports); in do_slave_init()
2590 first_port = find_first_bit(actv_ports.ports, dev->caps.num_ports); in do_slave_init()
2602 for (i = 0; i < dev->caps.num_ports; i++) { in do_slave_init()