Lines Matching refs:caps
97 int dmfs = dev->caps.steering_mode == MLX4_STEERING_MODE_DEVICE_MANAGED; in check_flow_steering_support()
106 (dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_DMFS_IPOIB)) && in check_flow_steering_support()
108 (dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_FS_EN)); in check_flow_steering_support()
406 props->fw_ver = dev->dev->caps.fw_ver; in mlx4_ib_query_device()
412 if (dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_BAD_PKEY_CNTR) in mlx4_ib_query_device()
414 if (dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_BAD_QKEY_CNTR) in mlx4_ib_query_device()
416 if (dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_APM && have_ib_ports) in mlx4_ib_query_device()
418 if (dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_UD_AV_PORT) in mlx4_ib_query_device()
420 if (dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_IPOIB_CSUM) in mlx4_ib_query_device()
422 if (dev->dev->caps.max_gso_sz && in mlx4_ib_query_device()
424 (dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_BLH)) in mlx4_ib_query_device()
426 if (dev->dev->caps.bmme_flags & MLX4_BMME_FLAG_RESERVED_LKEY) in mlx4_ib_query_device()
428 if ((dev->dev->caps.bmme_flags & MLX4_BMME_FLAG_LOCAL_INV) && in mlx4_ib_query_device()
429 (dev->dev->caps.bmme_flags & MLX4_BMME_FLAG_REMOTE_INV) && in mlx4_ib_query_device()
430 (dev->dev->caps.bmme_flags & MLX4_BMME_FLAG_FAST_REG_WR)) in mlx4_ib_query_device()
432 if (dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_XRC) in mlx4_ib_query_device()
434 if (dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_MEM_WINDOW) in mlx4_ib_query_device()
436 if (dev->dev->caps.bmme_flags & MLX4_BMME_FLAG_TYPE_2_WIN) { in mlx4_ib_query_device()
437 if (dev->dev->caps.bmme_flags & MLX4_BMME_FLAG_WIN_TYPE_2B) in mlx4_ib_query_device()
454 props->page_size_cap = dev->dev->caps.page_size_cap; in mlx4_ib_query_device()
456 props->max_qp_wr = dev->dev->caps.max_wqes - MLX4_IB_SQ_MAX_SPARE; in mlx4_ib_query_device()
457 props->max_sge = min(dev->dev->caps.max_sq_sg, in mlx4_ib_query_device()
458 dev->dev->caps.max_rq_sg); in mlx4_ib_query_device()
461 props->max_cqe = dev->dev->caps.max_cqes; in mlx4_ib_query_device()
463 props->max_pd = dev->dev->caps.num_pds - dev->dev->caps.reserved_pds; in mlx4_ib_query_device()
464 props->max_qp_rd_atom = dev->dev->caps.max_qp_dest_rdma; in mlx4_ib_query_device()
465 props->max_qp_init_rd_atom = dev->dev->caps.max_qp_init_rdma; in mlx4_ib_query_device()
468 props->max_srq_wr = dev->dev->caps.max_srq_wqes - 1; in mlx4_ib_query_device()
469 props->max_srq_sge = dev->dev->caps.max_srq_sge; in mlx4_ib_query_device()
471 props->local_ca_ack_delay = dev->dev->caps.local_ca_ack_delay; in mlx4_ib_query_device()
472 props->atomic_cap = dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_ATOMIC ? in mlx4_ib_query_device()
475 props->max_pkeys = dev->dev->caps.pkey_table_len[1]; in mlx4_ib_query_device()
476 props->max_mcast_grp = dev->dev->caps.num_mgms + dev->dev->caps.num_amgms; in mlx4_ib_query_device()
477 props->max_mcast_qp_attach = dev->dev->caps.num_qp_per_mgm; in mlx4_ib_query_device()
480 props->max_map_per_fmr = dev->dev->caps.max_fmr_maps; in mlx4_ib_query_device()
481 props->hca_core_clock = dev->dev->caps.hca_core_clock * 1000UL; in mlx4_ib_query_device()
512 return dev->caps.port_mask[port_num] == MLX4_PORT_TYPE_IB ? in mlx4_ib_port_link_layer()
553 props->gid_tbl_len = to_mdev(ibdev)->dev->caps.gid_table_len[port]; in ib_link_query_port()
554 props->max_msg_sz = to_mdev(ibdev)->dev->caps.max_msg_sz; in ib_link_query_port()
555 props->pkey_tbl_len = to_mdev(ibdev)->dev->caps.pkey_table_len[port]; in ib_link_query_port()
639 props->gid_tbl_len = mdev->dev->caps.gid_table_len[port]; in eth_link_query_port()
640 props->max_msg_sz = mdev->dev->caps.max_msg_sz; in eth_link_query_port()
874 u8 is_eth = mdev->dev->caps.port_type[port] == MLX4_PORT_TYPE_ETH; in mlx4_ib_modify_port()
917 resp_v3.qp_tab_size = dev->dev->caps.num_qps; in mlx4_ib_alloc_ucontext()
918 resp_v3.bf_reg_size = dev->dev->caps.bf_reg_size; in mlx4_ib_alloc_ucontext()
919 resp_v3.bf_regs_per_page = dev->dev->caps.bf_regs_per_page; in mlx4_ib_alloc_ucontext()
921 resp.dev_caps = dev->dev->caps.userspace_caps; in mlx4_ib_alloc_ucontext()
922 resp.qp_tab_size = dev->dev->caps.num_qps; in mlx4_ib_alloc_ucontext()
923 resp.bf_reg_size = dev->dev->caps.bf_reg_size; in mlx4_ib_alloc_ucontext()
924 resp.bf_regs_per_page = dev->dev->caps.bf_regs_per_page; in mlx4_ib_alloc_ucontext()
925 resp.cqe_size = dev->dev->caps.cqe_size; in mlx4_ib_alloc_ucontext()
1102 } else if (vma->vm_pgoff == 1 && dev->dev->caps.bf_reg_size != 0) { in mlx4_ib_mmap()
1111 dev->dev->caps.num_uars, in mlx4_ib_mmap()
1191 if (!(to_mdev(ibdev)->dev->caps.flags & MLX4_DEV_CAP_FLAG_XRC)) in mlx4_ib_alloc_xrcd()
1571 if (dev->caps.tunnel_offload_mode != MLX4_TUNNEL_OFFLOAD_MODE_VXLAN || in mlx4_ib_tunnel_steer_add()
1572 dev->caps.dmfs_high_steer_mode == MLX4_STEERING_DMFS_A0_STATIC) in mlx4_ib_tunnel_steer_add()
1723 if (mdev->dev->caps.steering_mode == in mlx4_ib_mcg_attach()
1802 if (mdev->dev->caps.steering_mode == in mlx4_ib_mcg_detach()
1905 return sprintf(buf, "%d.%d.%d\n", (int) (dev->dev->caps.fw_ver >> 32), in show_fw_ver()
1906 (int) (dev->dev->caps.fw_ver >> 16) & 0xffff, in show_fw_ver()
1907 (int) dev->dev->caps.fw_ver & 0xffff); in show_fw_ver()
2052 for (port = 1; port <= ibdev->dev->caps.num_ports; ++port) { in init_pkeys()
2066 for (port = 1; port <= ibdev->dev->caps.num_ports; ++port) { in init_pkeys()
2080 ibdev->eq_table = kcalloc(dev->caps.num_comp_vectors, in mlx4_ib_alloc_eqs()
2085 for (i = 1; i <= dev->caps.num_ports; i++) { in mlx4_ib_alloc_eqs()
2099 for (i = eq; i < dev->caps.num_comp_vectors; in mlx4_ib_alloc_eqs()
2199 ibdev->ib_dev.local_dma_lkey = dev->caps.reserved_lkey; in mlx4_ib_add()
2203 ibdev->ib_dev.num_comp_vectors = dev->caps.num_comp_vectors; in mlx4_ib_add()
2209 if (dev->caps.userspace_caps) in mlx4_ib_add()
2291 if (dev->caps.flags & MLX4_DEV_CAP_FLAG_MEM_WINDOW || in mlx4_ib_add()
2292 dev->caps.bmme_flags & MLX4_BMME_FLAG_TYPE_2_WIN) { in mlx4_ib_add()
2302 if (dev->caps.flags & MLX4_DEV_CAP_FLAG_XRC) { in mlx4_ib_add()
2412 if (dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_DMFS_IPOIB) { in mlx4_ib_add()
2427 for (j = 1; j <= ibdev->dev->caps.num_ports; j++) in mlx4_ib_add()
2428 atomic64_set(&iboe->mac[j - 1], ibdev->dev->caps.def_mac[j]); in mlx4_ib_add()
2439 if (dev->caps.flags & MLX4_DEV_CAP_FLAG_IBOE) { in mlx4_ib_add()
2626 ports = bitmap_weight(actv_ports.ports, dev->caps.num_ports); in do_slave_init()
2627 first_port = find_first_bit(actv_ports.ports, dev->caps.num_ports); in do_slave_init()