• Home
  • Raw
  • Download

Lines Matching refs:port_num

202 int add_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num,  in add_sysfs_port_mcg_attr()  argument
205 struct mlx4_ib_iov_port *port = &device->iov_ports[port_num - 1]; in add_sysfs_port_mcg_attr()
215 void del_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num, in del_sysfs_port_mcg_attr() argument
218 struct mlx4_ib_iov_port *port = &device->iov_ports[port_num - 1]; in del_sysfs_port_mcg_attr()
223 static int add_port_entries(struct mlx4_ib_dev *device, int port_num) in add_port_entries() argument
233 ret = __mlx4_ib_query_port(&device->ib_dev, port_num, &attr, 1); in add_port_entries()
237 port = &device->iov_ports[port_num - 1]; in add_port_entries()
239 port->num = port_num; in add_port_entries()
253 sprintf(buff, "%d", port_num); in add_port_entries()
352 port_num, ret); in add_port_entries()
374 u8 port_num; member
447 u8 key = m->virt2phys_pkey[p->slave][p->port_num - 1][tab_attr->index]; in show_port_pkey()
449 if (key >= p->dev->dev->caps.pkey_table_len[p->port_num]) in show_port_pkey()
467 idx = p->dev->dev->phys_caps.pkey_phys_table_len[p->port_num] - 1; in store_port_pkey()
469 idx >= p->dev->dev->caps.pkey_table_len[p->port_num] || in store_port_pkey()
473 p->dev->pkeys.virt2phys_pkey[p->slave][p->port_num - 1] in store_port_pkey()
475 mlx4_sync_pkey_table(p->dev->dev, p->slave, p->port_num, in store_port_pkey()
477 err = mlx4_gen_pkey_eqe(p->dev->dev, p->slave, p->port_num); in store_port_pkey()
480 " port %d, index %d\n", p->slave, p->port_num, idx); in store_port_pkey()
546 p->port_num)); in sysfs_show_smi_enabled()
558 p->port_num)); in sysfs_show_enable_smi_admin()
573 if (mlx4_vf_set_enable_smi_admin(p->dev->dev, p->slave, p->port_num, enable)) in sysfs_store_enable_smi_admin()
580 int is_eth = rdma_port_get_link_layer(&p->dev->ib_dev, p->port_num) == in add_vf_smi_entries()
615 int is_eth = rdma_port_get_link_layer(&p->dev->ib_dev, p->port_num) == in remove_vf_smi_entries()
625 static int add_port(struct mlx4_ib_dev *dev, int port_num, int slave) in add_port() argument
630 int is_eth = rdma_port_get_link_layer(&dev->ib_dev, port_num) == in add_port()
638 p->port_num = port_num; in add_port()
643 "%d", port_num); in add_port()
651 dev->dev->caps.pkey_table_len[port_num]); in add_port()
684 for (i = 0; i < dev->dev->caps.pkey_table_len[port_num]; ++i) in add_port()