Lines Matching refs:num_ports
327 find_first_bit(actv_ports.ports, dev->caps.num_ports); in mlx4_QUERY_FUNC_CAP_wrapper()
376 bitmap_weight(actv_ports.ports, dev->caps.num_ports), in mlx4_QUERY_FUNC_CAP_wrapper()
377 dev->caps.num_ports); in mlx4_QUERY_FUNC_CAP_wrapper()
483 func_cap->num_ports = field; in mlx4_QUERY_FUNC_CAP()
556 if (gen_or_port > dev->caps.num_ports) { in mlx4_QUERY_FUNC_CAP()
798 dev_cap->num_ports = field & 0xf; in mlx4_QUERY_DEV_CAP()
980 for (i = 1; i <= dev_cap->num_ports; i++) { in mlx4_QUERY_DEV_CAP()
1170 first_port = find_first_bit(actv_ports.ports, dev->caps.num_ports); in mlx4_QUERY_DEV_CAP_wrapper()
1173 bitmap_weight(actv_ports.ports, dev->caps.num_ports); in mlx4_QUERY_DEV_CAP_wrapper()
1180 for (; slave_port < dev->caps.num_ports; ++slave_port) in mlx4_QUERY_DEV_CAP_wrapper()
1189 field |= bitmap_weight(actv_ports.ports, dev->caps.num_ports) & 0x0F; in mlx4_QUERY_DEV_CAP_wrapper()
2426 for (port = 1; port <= dev->caps.num_ports; port++) { in mlx4_get_phys_port_id()
2856 for (i = 1; i <= dev->caps.num_ports; ++i) in mlx4_replace_zero_macs()