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
230 ret = __mlx4_ib_query_port(&device->ib_dev, port_num, &attr, 1); in add_port_entries()
234 port = &device->iov_ports[port_num - 1]; in add_port_entries()
236 port->num = port_num; in add_port_entries()
250 sprintf(buff, "%d", port_num); in add_port_entries()
349 port_num, ret); in add_port_entries()
375 u8 port_num; member
449 if (p->dev->pkeys.virt2phys_pkey[p->slave][p->port_num - 1][tab_attr->index] >= in show_port_pkey()
450 (p->dev->dev->caps.pkey_table_len[p->port_num])) in show_port_pkey()
455 [p->port_num - 1][tab_attr->index]); in show_port_pkey()
472 idx = p->dev->dev->phys_caps.pkey_phys_table_len[p->port_num] - 1; in store_port_pkey()
474 idx >= p->dev->dev->caps.pkey_table_len[p->port_num] || in store_port_pkey()
478 p->dev->pkeys.virt2phys_pkey[p->slave][p->port_num - 1] in store_port_pkey()
480 mlx4_sync_pkey_table(p->dev->dev, p->slave, p->port_num, in store_port_pkey()
482 err = mlx4_gen_pkey_eqe(p->dev->dev, p->slave, p->port_num); in store_port_pkey()
485 " port %d, index %d\n", p->slave, p->port_num, idx); in store_port_pkey()
550 if (mlx4_vf_smi_enabled(p->dev->dev, p->slave, p->port_num)) in sysfs_show_smi_enabled()
566 if (mlx4_vf_get_enable_smi_admin(p->dev->dev, p->slave, p->port_num)) in sysfs_show_enable_smi_admin()
586 if (mlx4_vf_set_enable_smi_admin(p->dev->dev, p->slave, p->port_num, enable)) in sysfs_store_enable_smi_admin()
593 int is_eth = rdma_port_get_link_layer(&p->dev->ib_dev, p->port_num) == in add_vf_smi_entries()
628 int is_eth = rdma_port_get_link_layer(&p->dev->ib_dev, p->port_num) == in remove_vf_smi_entries()
638 static int add_port(struct mlx4_ib_dev *dev, int port_num, int slave) in add_port() argument
643 int is_eth = rdma_port_get_link_layer(&dev->ib_dev, port_num) == in add_port()
651 p->port_num = port_num; in add_port()
656 "%d", port_num); in add_port()
664 dev->dev->caps.pkey_table_len[port_num]); in add_port()
697 for (i = 0; i < dev->dev->caps.pkey_table_len[port_num]; ++i) in add_port()