Home
last modified time | relevance | path

Searched refs:port_index (Results 1 – 25 of 50) sorted by relevance

12

/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/diag/
A Dsf_tracepoint.h16 unsigned int port_index,
22 __field(unsigned int, port_index)
28 __entry->port_index = port_index;
40 unsigned int port_index,
50 __entry->port_index = port_index;
108 u32 port_index,
117 __entry->port_index = port_index;
128 u32 port_index,
136 u32 port_index,
144 unsigned int port_index,
[all …]
/linux/drivers/scsi/isci/
A Dport_config.c249 u8 port_index; in sci_mpc_agent_validate_phy_configuration() local
256 for (port_index = 0; port_index < SCI_MAX_PORTS; port_index++) { in sci_mpc_agent_validate_phy_configuration()
257 phy_mask = ihost->oem_parameters.ports[port_index].phy_mask; in sci_mpc_agent_validate_phy_configuration()
279 port_agent->phy_valid_port_range[phy_index].min_index = port_index; in sci_mpc_agent_validate_phy_configuration()
282 if (phy_index != port_index) { in sci_mpc_agent_validate_phy_configuration()
310 sci_port_add_phy(&ihost->ports[port_index], in sci_mpc_agent_validate_phy_configuration()
437 u8 port_index; in sci_apc_agent_validate_phy_configuration() local
444 port_index = phy_index; in sci_apc_agent_validate_phy_configuration()
487 u8 port_index; in sci_apc_agent_configure_ports() local
508 port_index++) { in sci_apc_agent_configure_ports()
[all …]
/linux/drivers/infiniband/sw/rdmavt/
A Dvt.c126 rvp = rdi->ports[port_index]; in rvt_query_port()
159 rvp = rdi->ports[port_index]; in rvt_modify_port()
197 u32 port_index; in rvt_query_pkey() local
199 port_index = ibport_num_to_idx(ibdev, port_num); in rvt_query_pkey()
204 *pkey = rvt_get_pkey(rdi, port_index, index); in rvt_query_pkey()
222 u32 port_index; in rvt_query_gid() local
229 port_index = ibport_num_to_idx(ibdev, port_num); in rvt_query_gid()
232 rvp = rdi->ports[port_index]; in rvt_query_gid()
611 int port_index, u16 *pkey_table) in rvt_init_port() argument
614 rdi->ports[port_index] = port; in rvt_init_port()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/
A Ddevlink.c16 unsigned int port_index; member
35 mlx5_sf_lookup_by_index(struct mlx5_sf_table *table, unsigned int port_index) in mlx5_sf_lookup_by_index() argument
37 return xa_load(&table->port_indices, port_index); in mlx5_sf_lookup_by_index()
55 return xa_insert(&table->port_indices, sf->port_index, sf, GFP_KERNEL); in mlx5_sf_id_insert()
60 xa_erase(&table->port_indices, sf->port_index); in mlx5_sf_id_erase()
92 sf->port_index = dl_port_index; in mlx5_sf_alloc()
117 trace_mlx5_sf_free(table->dev, sf->port_index, sf->controller, sf->hw_fn_id); in mlx5_sf_free()
215 trace_mlx5_sf_activate(dev, sf->port_index, sf->controller, sf->hw_fn_id); in mlx5_sf_activate()
300 *new_port_index = sf->port_index; in mlx5_sf_add()
397 sf = mlx5_sf_lookup_by_index(table, port_index); in mlx5_devlink_sf_port_del()
[all …]
A Dsf.h25 int mlx5_devlink_sf_port_del(struct devlink *devlink, unsigned int port_index,
/linux/include/linux/
A Dif_team.h243 int port_index) in team_port_index_hash() argument
245 return &team->en_port_hlist[port_index & (TEAM_PORT_HASHENTRIES - 1)]; in team_port_index_hash()
249 int port_index) in team_get_port_by_index() argument
252 struct hlist_head *head = team_port_index_hash(team, port_index); in team_get_port_by_index()
255 if (port->index == port_index) in team_get_port_by_index()
270 int port_index) in team_get_port_by_index_rcu() argument
273 struct hlist_head *head = team_port_index_hash(team, port_index); in team_get_port_by_index_rcu()
276 if (port->index == port_index) in team_get_port_by_index_rcu()
/linux/drivers/usb/host/
A Dxhci-hub.c1685 int max_ports, port_index; in xhci_bus_suspend() local
1715 port_index = max_ports; in xhci_bus_suspend()
1716 while (port_index--) { in xhci_bus_suspend()
1774 port_index)) in xhci_bus_suspend()
1786 port_index = max_ports; in xhci_bus_suspend()
1787 while (port_index--) { in xhci_bus_suspend()
1794 port_index + 1); in xhci_bus_suspend()
1801 writel(portsc_buf[port_index], ports[port_index]->addr); in xhci_bus_suspend()
1879 port_index = max_ports; in xhci_bus_resume()
1880 while (port_index--) { in xhci_bus_resume()
[all …]
/linux/drivers/infiniband/hw/mlx4/
A Dalias_GUID.c81 u32 port_index = port_num - 1; in mlx4_ib_update_cache_on_guid_change() local
132 int port_index = port - 1; in mlx4_ib_slave_alias_guid_event() local
142 alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event()
157 dev->sriov.alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event()
160 dev->sriov.alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event()
164 dev->sriov.alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event()
166 dev->sriov.alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event()
174 mlx4_ib_init_alias_guid_work(dev, port_index); in mlx4_ib_slave_alias_guid_event()
294 u8 port_index ; in aliasguid_query_handler() local
306 port_index = cb_ctx->port - 1; in aliasguid_query_handler()
[all …]
/linux/drivers/net/netdevsim/
A Ddev.c43 port_index = NSIM_DEV_VF_PORT_INDEX_BASE + port_index; in nsim_dev_port_index()
49 return port_index; in nsim_dev_port_index()
394 unsigned int port_index = nsim_dev_port->port_index; in nsim_dev_port_debugfs_init() local
1355 unsigned int port_index) in __nsim_dev_port_add() argument
1368 nsim_dev_port->port_index = nsim_dev_port_index(type, port_index); in __nsim_dev_port_add()
1378 attrs.pci_vf.vf = port_index; in __nsim_dev_port_add()
1679 unsigned int port_index) in __nsim_dev_port_lookup() argument
1683 port_index = nsim_dev_port_index(type, port_index); in __nsim_dev_port_lookup()
1685 if (nsim_dev_port->port_index == port_index) in __nsim_dev_port_lookup()
1691 unsigned int port_index) in nsim_drv_port_add() argument
[all …]
A Dbus.c65 unsigned int port_index; in new_port_store() local
71 ret = kstrtouint(buf, 0, &port_index); in new_port_store()
83 ret = nsim_drv_port_add(nsim_bus_dev, NSIM_DEV_PORT_TYPE_PF, port_index); in new_port_store()
95 unsigned int port_index; in del_port_store() local
101 ret = kstrtouint(buf, 0, &port_index); in del_port_store()
113 ret = nsim_drv_port_del(nsim_bus_dev, NSIM_DEV_PORT_TYPE_PF, port_index); in del_port_store()
A Dnetdevsim.h212 unsigned int port_index; member
305 unsigned int port_index);
308 unsigned int port_index);
/linux/drivers/net/team/
A Dteam_mode_random.c17 int port_index; in rnd_transmit() local
19 port_index = prandom_u32_max(team->en_port_count); in rnd_transmit()
20 port = team_get_port_by_index_rcu(team, port_index); in rnd_transmit()
A Dteam_mode_roundrobin.c27 int port_index; in rr_transmit() local
29 port_index = team_num_to_port_index(team, in rr_transmit()
31 port = team_get_port_by_index_rcu(team, port_index); in rr_transmit()
/linux/drivers/w1/masters/
A Dmatrox_w1.c45 void __iomem *port_index; member
71 writeb(reg, dev->port_index); in matrox_w1_read_reg()
80 writeb(reg, dev->port_index); in matrox_w1_write_reg()
151 dev->port_index = dev->base_addr + MATROX_PORT_INDEX_OFFSET; in matrox_w1_probe()
/linux/drivers/net/ethernet/netronome/nfp/
A Dnfp_devlink.c29 nfp_devlink_fill_eth_port_from_id(struct nfp_pf *pf, unsigned int port_index, in nfp_devlink_fill_eth_port_from_id() argument
34 port = nfp_port_from_id(pf, NFP_PORT_PHYS_PORT, port_index); in nfp_devlink_fill_eth_port_from_id()
65 nfp_devlink_port_split(struct devlink *devlink, unsigned int port_index, in nfp_devlink_port_split() argument
76 ret = nfp_devlink_fill_eth_port_from_id(pf, port_index, &eth_port); in nfp_devlink_port_split()
99 nfp_devlink_port_unsplit(struct devlink *devlink, unsigned int port_index, in nfp_devlink_port_unsplit() argument
110 ret = nfp_devlink_fill_eth_port_from_id(pf, port_index, &eth_port); in nfp_devlink_port_unsplit()
/linux/drivers/usb/chipidea/
A Dhost.c245 u32 temp, port_index; in ci_ehci_hub_control() local
252 port_index = wIndex & 0xff; in ci_ehci_hub_control()
253 port_index -= (port_index > 0); in ci_ehci_hub_control()
254 status_reg = &ehci->regs->port_status[port_index]; in ci_ehci_hub_control()
299 set_bit(port_index, &ehci->suspended_ports); in ci_ehci_hub_control()
/linux/tools/testing/selftests/drivers/net/netdevsim/
A Ddevlink_in_netns.sh19 local port_index=$1
22 ".[][\"$DL_HANDLE/$port_index\"].netdev" "-e"
/linux/drivers/net/ethernet/microchip/sparx5/
A Dsparx5_mactable.c240 u16 vid, u16 port_index) in alloc_mact_entry() argument
251 mact_entry->port = port_index; in alloc_mact_entry()
257 u16 vid, u16 port_index) in find_mact_entry() argument
266 mact_entry->port == port_index) { in find_mact_entry()
/linux/include/rdma/
A Drdma_vt.h505 int port_index, in rvt_get_pkey() argument
511 return rdi->ports[port_index]->pkey_table[index]; in rvt_get_pkey()
520 int port_index, u16 *pkey_table);
/linux/drivers/staging/octeon/
A Dethernet.c805 int port_index; in cvm_oct_probe() local
807 for (port_index = 0, in cvm_oct_probe()
810 port_index++, port++) { in cvm_oct_probe()
825 port_index); in cvm_oct_probe()
885 port_index); in cvm_oct_probe()
/linux/drivers/net/ethernet/hisilicon/hns/
A Dhns_ae_adapt.c35 ppe_index = vf_cb->port_index; in hns_get_ppe_cb()
121 vf_cb->port_index = port_id; in hns_ae_get_handle()
635 port = vf_cb->port_index; in hns_ae_update_stats()
730 hns_dsaf_get_stats(vf_cb->dsaf_dev, p, vf_cb->port_index); in hns_ae_get_stats()
747 port = vf_cb->port_index; in hns_ae_get_strings()
858 hns_dsaf_get_regs(vf_cb->dsaf_dev, vf_cb->port_index, p); in hns_ae_get_regs()
/linux/drivers/staging/vc04_services/vchiq-mmal/
A Dmmal-msg.h160 u32 port_index; /* port indexed in query */ member
173 u32 port_index; /* port indexed in query */ member
/linux/arch/powerpc/sysdev/
A Dfsl_rio.c443 const u32 *dt_range, *cell, *port_index; in fsl_rio_setup() local
579 port_index = of_get_property(np, "cell-index", NULL); in fsl_rio_setup()
580 if (!port_index) { in fsl_rio_setup()
623 i = *port_index - 1; in fsl_rio_setup()
/linux/tools/testing/selftests/bpf/
A Dtest_offload.py376 for port_index in range(port_count):
377 self.nsims.append(NetdevSim(self, port_index, ifnames[port_index]))
422 "%u" % (nsim.port_index, ))
429 def __init__(self, nsimdev, port_index, ifname): argument
434 if match and int(match.groups()[0]) != port_index + 1:
438 self.port_index = port_index
440 self.dfs_dir = "%s/ports/%u/" % (nsimdev.dfs_dir, port_index)
/linux/drivers/firewire/
A Dcore-topology.c91 static int get_port_type(u32 *sid, int port_index) in get_port_type() argument
95 index = (port_index + 5) / 8; in get_port_type()
96 shift = 16 - ((port_index + 5) & 7) * 2; in get_port_type()

Completed in 63 milliseconds

12