Lines Matching refs:port_num
200 int add_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num, in add_sysfs_port_mcg_attr() argument
203 struct mlx4_ib_iov_port *port = &device->iov_ports[port_num - 1]; in add_sysfs_port_mcg_attr()
213 void del_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num, in del_sysfs_port_mcg_attr() argument
216 struct mlx4_ib_iov_port *port = &device->iov_ports[port_num - 1]; in del_sysfs_port_mcg_attr()
221 static int add_port_entries(struct mlx4_ib_dev *device, int port_num) in add_port_entries() argument
231 ret = __mlx4_ib_query_port(&device->ib_dev, port_num, &attr, 1); in add_port_entries()
235 port = &device->iov_ports[port_num - 1]; in add_port_entries()
237 port->num = port_num; in add_port_entries()
251 sprintf(buff, "%d", port_num); in add_port_entries()
350 port_num, ret); in add_port_entries()
372 u8 port_num; member
446 if (p->dev->pkeys.virt2phys_pkey[p->slave][p->port_num - 1][tab_attr->index] >= in show_port_pkey()
447 (p->dev->dev->caps.pkey_table_len[p->port_num])) in show_port_pkey()
452 [p->port_num - 1][tab_attr->index]); in show_port_pkey()
469 idx = p->dev->dev->phys_caps.pkey_phys_table_len[p->port_num] - 1; in store_port_pkey()
471 idx >= p->dev->dev->caps.pkey_table_len[p->port_num] || in store_port_pkey()
475 p->dev->pkeys.virt2phys_pkey[p->slave][p->port_num - 1] in store_port_pkey()
477 mlx4_sync_pkey_table(p->dev->dev, p->slave, p->port_num, in store_port_pkey()
479 err = mlx4_gen_pkey_eqe(p->dev->dev, p->slave, p->port_num); in store_port_pkey()
482 " port %d, index %d\n", p->slave, p->port_num, idx); in store_port_pkey()
547 if (mlx4_vf_smi_enabled(p->dev->dev, p->slave, p->port_num)) in sysfs_show_smi_enabled()
563 if (mlx4_vf_get_enable_smi_admin(p->dev->dev, p->slave, p->port_num)) in sysfs_show_enable_smi_admin()
583 if (mlx4_vf_set_enable_smi_admin(p->dev->dev, p->slave, p->port_num, enable)) in sysfs_store_enable_smi_admin()
590 int is_eth = rdma_port_get_link_layer(&p->dev->ib_dev, p->port_num) == in add_vf_smi_entries()
625 int is_eth = rdma_port_get_link_layer(&p->dev->ib_dev, p->port_num) == in remove_vf_smi_entries()
635 static int add_port(struct mlx4_ib_dev *dev, int port_num, int slave) in add_port() argument
640 int is_eth = rdma_port_get_link_layer(&dev->ib_dev, port_num) == in add_port()
648 p->port_num = port_num; in add_port()
653 "%d", port_num); in add_port()
661 dev->dev->caps.pkey_table_len[port_num]); in add_port()
694 for (i = 0; i < dev->dev->caps.pkey_table_len[port_num]; ++i) in add_port()