Home
last modified time | relevance | path

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

123

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/diag/
H 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 …]
/openbmc/linux/drivers/scsi/isci/
H 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 …]
/openbmc/linux/tools/net/ynl/generated/
H A Ddevlink-user.h155 __u32 port_index; member
189 req->port_index = port_index; in devlink_port_get_req_set_port_index()
201 __u32 port_index; member
260 __u32 port_index; member
534 __u32 port_index; member
572 req->port_index = port_index; in devlink_sb_port_pool_get_req_set_port_index()
720 req->port_index = port_index; in devlink_sb_tc_pool_bind_get_req_set_port_index()
992 req->port_index = port_index; in devlink_region_get_req_set_port_index()
1203 req->port_index = port_index; in devlink_health_reporter_get_req_set_port_index()
1286 req->port_index = port_index; in devlink_health_reporter_get_req_dump_set_port_index()
[all …]
H A Ddevlink-user.c624 dst->_present.port_index = 1; in devlink_port_get_rsp_parse()
648 if (req->_present.port_index) in devlink_port_get()
704 dst->_present.port_index = 1; in devlink_port_get_rsp_dump_parse()
1105 dst->_present.port_index = 1; in devlink_sb_port_pool_get_rsp_parse()
1140 if (req->_present.port_index) in devlink_sb_port_pool_get()
1267 dst->_present.port_index = 1; in devlink_sb_tc_pool_bind_get_rsp_parse()
1307 if (req->_present.port_index) in devlink_sb_tc_pool_bind_get()
1622 if (req->_present.port_index) in devlink_region_get()
2023 if (req->_present.port_index) in devlink_health_reporter_get()
2082 if (req->_present.port_index) in devlink_health_reporter_get_dump()
[all …]
/openbmc/linux/drivers/infiniband/sw/rdmavt/
H 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 …]
/openbmc/linux/include/linux/
H A Dif_team.h246 int port_index) in team_port_index_hash() argument
248 return &team->en_port_hlist[port_index & (TEAM_PORT_HASHENTRIES - 1)]; in team_port_index_hash()
252 int port_index) in team_get_port_by_index() argument
255 struct hlist_head *head = team_port_index_hash(team, port_index); in team_get_port_by_index()
258 if (port->index == port_index) in team_get_port_by_index()
273 int port_index) in team_get_port_by_index_rcu() argument
276 struct hlist_head *head = team_port_index_hash(team, port_index); in team_get_port_by_index_rcu()
279 if (port->index == port_index) in team_get_port_by_index_rcu()
/openbmc/linux/drivers/net/team/
H A Dteam_mode_random.c17 int port_index; in rnd_transmit() local
19 port_index = get_random_u32_below(team->en_port_count); in rnd_transmit()
20 port = team_get_port_by_index_rcu(team, port_index); in rnd_transmit()
H A Dteam_mode_roundrobin.c26 int port_index; in rr_transmit() local
28 port_index = team_num_to_port_index(team, in rr_transmit()
30 port = team_get_port_by_index_rcu(team, port_index); in rr_transmit()
/openbmc/linux/drivers/usb/host/
H A Dxhci-hub.c1718 int max_ports, port_index; in xhci_bus_suspend() local
1748 port_index = max_ports; in xhci_bus_suspend()
1749 while (port_index--) { in xhci_bus_suspend()
1807 port_index)) in xhci_bus_suspend()
1819 port_index = max_ports; in xhci_bus_suspend()
1820 while (port_index--) { in xhci_bus_suspend()
1827 port_index + 1); in xhci_bus_suspend()
1834 writel(portsc_buf[port_index], ports[port_index]->addr); in xhci_bus_suspend()
1912 port_index = max_ports; in xhci_bus_resume()
1913 while (port_index--) { in xhci_bus_resume()
[all …]
/openbmc/linux/drivers/net/netdevsim/
H 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()
395 unsigned int port_index = nsim_dev_port->port_index; in nsim_dev_port_debugfs_init() local
579 unsigned int port_index);
1369 nsim_dev_port->port_index = nsim_dev_port_index(type, port_index); in __nsim_dev_port_add()
1379 attrs.pci_vf.vf = port_index; in __nsim_dev_port_add()
1385 nsim_dev_port->port_index); in __nsim_dev_port_add()
1697 port_index = nsim_dev_port_index(type, port_index); in __nsim_dev_port_lookup()
1699 if (nsim_dev_port->port_index == port_index) in __nsim_dev_port_lookup()
1705 unsigned int port_index) in nsim_drv_port_add() argument
[all …]
H A Dbus.c65 unsigned int port_index; in new_port_store() local
71 ret = kstrtouint(buf, 0, &port_index); in new_port_store()
75 ret = nsim_drv_port_add(nsim_bus_dev, NSIM_DEV_PORT_TYPE_PF, port_index); in new_port_store()
86 unsigned int port_index; in del_port_store() local
92 ret = kstrtouint(buf, 0, &port_index); in del_port_store()
96 ret = nsim_drv_port_del(nsim_bus_dev, NSIM_DEV_PORT_TYPE_PF, port_index); in del_port_store()
H A Dnetdevsim.h257 unsigned int port_index; member
349 unsigned int port_index);
352 unsigned int port_index);
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/
H A Ddevlink.c16 unsigned int port_index; member
34 mlx5_sf_lookup_by_index(struct mlx5_sf_table *table, unsigned int port_index) in mlx5_sf_lookup_by_index() argument
36 return xa_load(&table->port_indices, port_index); in mlx5_sf_lookup_by_index()
54 return xa_insert(&table->port_indices, sf->port_index, sf, GFP_KERNEL); in mlx5_sf_id_insert()
59 xa_erase(&table->port_indices, sf->port_index); in mlx5_sf_id_erase()
91 sf->port_index = dl_port_index; in mlx5_sf_alloc()
116 trace_mlx5_sf_free(table->dev, sf->port_index, sf->controller, sf->hw_fn_id); in mlx5_sf_free()
214 trace_mlx5_sf_activate(dev, sf->port_index, sf->controller, sf->hw_fn_id); in mlx5_sf_activate()
230 trace_mlx5_sf_deactivate(dev, sf->port_index, sf->controller, sf->hw_fn_id); in mlx5_sf_deactivate()
300 trace_mlx5_sf_add(dev, sf->port_index, sf->controller, sf->hw_fn_id, new_attr->sfnum); in mlx5_sf_add()
[all …]
/openbmc/linux/drivers/infiniband/hw/mlx4/
H A Dalias_GUID.c80 u32 port_index = port_num - 1; in mlx4_ib_update_cache_on_guid_change() local
131 int port_index = port - 1; in mlx4_ib_slave_alias_guid_event() local
141 alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event()
156 dev->sriov.alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event()
159 dev->sriov.alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event()
163 dev->sriov.alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event()
165 dev->sriov.alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event()
173 mlx4_ib_init_alias_guid_work(dev, port_index); in mlx4_ib_slave_alias_guid_event()
293 u8 port_index ; in aliasguid_query_handler() local
305 port_index = cb_ctx->port - 1; in aliasguid_query_handler()
[all …]
/openbmc/linux/drivers/w1/masters/
H A Dmatrox_w1.c44 void __iomem *port_index; member
70 writeb(reg, dev->port_index); in matrox_w1_read_reg()
79 writeb(reg, dev->port_index); in matrox_w1_write_reg()
145 dev->port_index = dev->base_addr + MATROX_PORT_INDEX_OFFSET; in matrox_w1_probe()
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_mac.c23 u16 port_index; member
215 mac_entry->port_index = port->chip_port; in lan966x_mac_alloc_entry()
223 u16 vid, u16 port_index) in lan966x_mac_find_entry() argument
231 mac_entry->port_index == port_index) { in lan966x_mac_find_entry()
345 if (mac_entry->port_index == src->chip_port && in lan966x_mac_lag_replace_port_entry()
354 mac_entry->port_index = dst->chip_port; in lan966x_mac_lag_replace_port_entry()
368 if (mac_entry->port_index == src->chip_port && in lan966x_mac_lag_remove_port_entry()
458 mac_entry->port_index == dest_idx) { in lan966x_mac_irq_process()
479 port = lan966x->ports[mac_entry->port_index]; in lan966x_mac_irq_process()
/openbmc/linux/tools/testing/selftests/drivers/net/netdevsim/
H A Ddevlink_in_netns.sh19 local port_index=$1
22 ".[][\"$DL_HANDLE/$port_index\"].netdev" "-e"
/openbmc/linux/net/devlink/
H A Dport.c27 unsigned int port_index) in devlink_port_get_by_index() argument
29 return xa_load(&devlink->ports, port_index); in devlink_port_get_by_index()
529 unsigned long port_index; in devlink_ports_notify() local
531 xa_for_each(&devlink->ports, port_index, devlink_port) in devlink_ports_notify()
572 unsigned long port_index; in devlink_nl_port_get_dump_one() local
582 state->idx = port_index; in devlink_nl_port_get_dump_one()
859 new_attrs.port_index = in devlink_nl_cmd_port_new_doit()
1004 unsigned int port_index, in devl_port_register_with_ops() argument
1015 devlink_port->index = port_index; in devl_port_register_with_ops()
1050 unsigned int port_index, in devlink_port_register_with_ops() argument
[all …]
H A Dparam.c238 unsigned int port_index, in devlink_nl_param_fill() argument
285 if (nla_put_u32(msg, DEVLINK_ATTR_PORT_INDEX, port_index)) in devlink_nl_param_fill()
331 unsigned int port_index, in devlink_param_notify() argument
352 err = devlink_nl_param_fill(msg, devlink, port_index, param_item, cmd, in devlink_param_notify()
530 unsigned int port_index, in __devlink_nl_cmd_param_set_doit() argument
580 devlink_param_notify(devlink, port_index, param_item, cmd); in __devlink_nl_cmd_param_set_doit()
/openbmc/linux/drivers/usb/chipidea/
H A Dhost.c252 u32 temp, port_index; in ci_ehci_hub_control() local
259 port_index = wIndex & 0xff; in ci_ehci_hub_control()
260 port_index -= (port_index > 0); in ci_ehci_hub_control()
261 status_reg = &ehci->regs->port_status[port_index]; in ci_ehci_hub_control()
306 set_bit(port_index, &ehci->suspended_ports); in ci_ehci_hub_control()
/openbmc/linux/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/
H A Dtracepoints.rst159 …devlink-9363 [031] ..... 24610.188722: mlx5_sf_add: (0000:06:00.0) port_index=32768 controller=…
166 …devlink-9830 [038] ..... 26300.404749: mlx5_sf_free: (0000:06:00.0) port_index=32768 controller…
173 …devlink-29841 [008] ..... 3669.635095: mlx5_sf_activate: (0000:08:00.0) port_index=32768 contro…
180 …devlink-29994 [008] ..... 4015.969467: mlx5_sf_deactivate: (0000:08:00.0) port_index=32768 cont…
208 …kworker/u20:3-29490 [009] ..... 4141.453530: mlx5_sf_update_state: (0000:08:00.0) port_index=32…
/openbmc/linux/include/rdma/
H 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);
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_mactable.c241 u16 vid, u16 port_index) in alloc_mact_entry() argument
252 mact_entry->port = port_index; in alloc_mact_entry()
258 u16 vid, u16 port_index) in find_mact_entry() argument
267 mact_entry->port == port_index) { in find_mact_entry()
/openbmc/linux/drivers/staging/vc04_services/vchiq-mmal/
H A Dmmal-msg.h160 u32 port_index; /* port indexed in query */ member
173 u32 port_index; /* port indexed in query */ member
/openbmc/linux/drivers/staging/octeon/
H 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()

123