Home
last modified time | relevance | path

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

123

/linux/tools/testing/selftests/net/lib/py/
H A Dnsim.py17 def __init__(self, nsimdev, port_index, ifname, ns=None): argument
22 if match and int(match.groups()[0]) != port_index + 1:
27 self.port_index = port_index
29 self.dfs_dir = "%s/ports/%u/" % (nsimdev.dfs_dir, port_index)
86 for port_index in range(port_count):
87 self.nsims.append(self._make_port(port_index, ifnames[port_index]))
100 def _make_port(self, port_index, ifname): argument
101 return NetdevSim(self, port_index, ifname, self.ns)
135 "%u" % (nsim.port_index, ))
/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()
307 port_agent->phy_valid_port_range[phy_index].min_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()
456 port_agent->phy_valid_port_range[phy_index].min_index = port_index; in sci_apc_agent_validate_phy_configuration()
[all …]
/linux/drivers/firewire/
H A Dpacket-serdes-test.c663 unsigned int port_index; in test_phy_packet_self_id_zero_case0() local
684 for (port_index = 0; port_index < ARRAY_SIZE(port_status); ++port_index) { in test_phy_packet_self_id_zero_case0()
685 port_status[port_index] = in test_phy_packet_self_id_zero_case0()
686 self_id_sequence_get_port_status(expected, ARRAY_SIZE(expected), port_index); in test_phy_packet_self_id_zero_case0()
693 for (port_index = 0; port_index < ARRAY_SIZE(port_status); ++port_index) { in test_phy_packet_self_id_zero_case0()
694 self_id_sequence_set_port_status(quadlets, ARRAY_SIZE(quadlets), port_index, in test_phy_packet_self_id_zero_case0()
695 port_status[port_index]); in test_phy_packet_self_id_zero_case0()
718 unsigned int port_index; in test_phy_packet_self_id_zero_case1() local
739 for (port_index = 0; port_index < ARRAY_SIZE(port_status); ++port_index) { in test_phy_packet_self_id_zero_case1()
740 port_status[port_index] = in test_phy_packet_self_id_zero_case1()
[all …]
H A Dself-id-sequence-helper-test.c82 unsigned int port_index; in test_self_id_sequence_get_port_status() local
90 for (port_index = 0; port_index < port_capacity; ++port_index) { in test_self_id_sequence_get_port_status()
91 port_status[port_index] = in test_self_id_sequence_get_port_status()
92 self_id_sequence_get_port_status(expected, ARRAY_SIZE(expected), port_index); in test_self_id_sequence_get_port_status()
93 self_id_sequence_set_port_status(quadlets, ARRAY_SIZE(quadlets), port_index, in test_self_id_sequence_get_port_status()
94 port_status[port_index]); in test_self_id_sequence_get_port_status()
H A Dcore-topology.c128 unsigned int port_index; in build_tree() local
145 for (port_index = 0; port_index < port_capacity; ++port_index) { in build_tree()
147 port_index); in build_tree()
197 for (port_index = 0; port_index < total_port_count; ++port_index) { in build_tree()
199 port_index); in build_tree()
207 node->color = port_index; in build_tree()
211 node->ports[port_index] = child; in build_tree()
H A Dphy-packet-definitions.h274 const u32 *self_id_sequence, unsigned int quadlet_count, unsigned int port_index) in self_id_sequence_get_port_status() argument
278 index = (port_index + 5) / 8; in self_id_sequence_get_port_status()
279 shift = 16 - ((port_index + 5) % 8) * 2; in self_id_sequence_get_port_status()
288 unsigned int port_index, in self_id_sequence_set_port_status() argument
293 index = (port_index + 5) / 8; in self_id_sequence_set_port_status()
294 shift = 16 - ((port_index + 5) % 8) * 2; in self_id_sequence_set_port_status()
/linux/drivers/infiniband/sw/rdmavt/
H A Dvt.c124 u32 port_index = ibport_num_to_idx(ibdev, port_num); in rvt_query_port() local
126 rvp = rdi->ports[port_index]; in rvt_query_port()
157 u32 port_index = ibport_num_to_idx(ibdev, port_num); in rvt_modify_port() local
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()
[all …]
/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()
/linux/drivers/usb/host/
H A Dxhci-hub.c1712 int max_ports, port_index; in xhci_bus_suspend() local
1742 port_index = max_ports; in xhci_bus_suspend()
1743 while (port_index--) { in xhci_bus_suspend()
1747 t1 = readl(ports[port_index]->addr); in xhci_bus_suspend()
1749 portsc_buf[port_index] = 0; in xhci_bus_suspend()
1761 hcd->self.busnum, port_index + 1); in xhci_bus_suspend()
1780 hcd->self.busnum, port_index + 1); in xhci_bus_suspend()
1783 set_bit(port_index, &bus_state->bus_suspended); in xhci_bus_suspend()
1801 port_index)) in xhci_bus_suspend()
1809 portsc_buf[port_index] = t2; in xhci_bus_suspend()
[all …]
/linux/drivers/net/netdevsim/
H A Ddev.c39 nsim_dev_port_index(enum nsim_dev_port_type type, unsigned int port_index) in nsim_dev_port_index() argument
43 port_index = NSIM_DEV_VF_PORT_INDEX_BASE + port_index; in nsim_dev_port_index()
49 return port_index; in nsim_dev_port_index()
52 static inline unsigned int nsim_dev_port_index_to_vf_index(unsigned int port_index) in nsim_dev_port_index_to_vf_index() argument
54 return port_index - NSIM_DEV_VF_PORT_INDEX_BASE; in nsim_dev_port_index_to_vf_index()
395 unsigned int port_index = nsim_dev_port->port_index; in nsim_dev_port_debugfs_init() local
399 sprintf(port_ddir_name, "%u", port_index); in nsim_dev_port_debugfs_init()
407 unsigned int vf_id = nsim_dev_port_index_to_vf_index(port_index); in nsim_dev_port_debugfs_init()
579 unsigned int port_index);
1180 int vf_id = nsim_dev_port_index_to_vf_index(nsim_dev_port->port_index); in nsim_leaf_tx_share_set()
[all …]
H A Dbus.c69 unsigned int port_index; in new_port_store() local
75 ret = kstrtouint(buf, 0, &port_index); in new_port_store()
79 ret = nsim_drv_port_add(nsim_bus_dev, NSIM_DEV_PORT_TYPE_PF, port_index); in new_port_store()
90 unsigned int port_index; in del_port_store() local
96 ret = kstrtouint(buf, 0, &port_index); in del_port_store()
100 ret = nsim_drv_port_del(nsim_bus_dev, NSIM_DEV_PORT_TYPE_PF, port_index); in del_port_store()
H A Dnetdevsim.h270 unsigned int port_index; member
362 unsigned int port_index);
365 unsigned int port_index);
/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()
/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
101 memcpy(&dev->sriov.demux[port_index].guid_cache[slave_id], in mlx4_ib_update_cache_on_guid_change()
131 int port_index = port - 1; in mlx4_ib_slave_alias_guid_event() local
136 if (dev->sriov.alias_guid.ports_guid[port_index].state_flags & in mlx4_ib_slave_alias_guid_event()
141 alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event()
153 *(__be64 *)&dev->sriov.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()
[all …]
/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()
/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()
/linux/net/devlink/
H A Dport.c28 unsigned int port_index) in devlink_port_get_by_index() argument
30 return xa_load(&devlink->ports, port_index); in devlink_port_get_by_index()
37 u32 port_index = nla_get_u32(attrs[DEVLINK_ATTR_PORT_INDEX]); in devlink_port_get_from_attrs() local
40 devlink_port = devlink_port_get_by_index(devlink, port_index); in devlink_port_get_from_attrs()
578 unsigned long port_index; in devlink_ports_notify() local
580 xa_for_each(&devlink->ports, port_index, devlink_port) in devlink_ports_notify()
621 unsigned long port_index; in devlink_nl_port_get_dump_one() local
624 xa_for_each_start(&devlink->ports, port_index, devlink_port, state->idx) { in devlink_nl_port_get_dump_one()
631 state->idx = port_index; in devlink_nl_port_get_dump_one()
920 new_attrs.port_index = in devlink_nl_port_new_doit()
[all …]
H A Ddevl_internal.h198 unsigned int port_index; member
214 desc->port_index = devlink_port->index; in devlink_nl_obj_desc_port_set()
265 unsigned int port_index);
H A Dparam.c239 unsigned int port_index, in devlink_nl_param_fill() argument
286 if (nla_put_u32(msg, DEVLINK_ATTR_PORT_INDEX, port_index)) in devlink_nl_param_fill()
332 unsigned int port_index, in devlink_param_notify() argument
353 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()
/linux/drivers/usb/dwc3/
H A Ddwc3-qcom.c320 static enum usb_device_speed dwc3_qcom_read_usb2_speed(struct dwc3_qcom *qcom, int port_index) in dwc3_qcom_read_usb2_speed() argument
332 udev = usb_hub_find_child(hcd->self.root_hub, port_index + 1); in dwc3_qcom_read_usb2_speed()
550 static int dwc3_qcom_setup_port_irq(struct platform_device *pdev, int port_index, bool is_multiport) in dwc3_qcom_setup_port_irq() argument
558 irq_name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "dp_hs_phy_%d", port_index + 1); in dwc3_qcom_setup_port_irq()
569 qcom->ports[port_index].dp_hs_phy_irq = irq; in dwc3_qcom_setup_port_irq()
573 irq_name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "dm_hs_phy_%d", port_index + 1); in dwc3_qcom_setup_port_irq()
584 qcom->ports[port_index].dm_hs_phy_irq = irq; in dwc3_qcom_setup_port_irq()
588 irq_name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "ss_phy_%d", port_index + 1); in dwc3_qcom_setup_port_irq()
599 qcom->ports[port_index].ss_phy_irq = irq; in dwc3_qcom_setup_port_irq()
610 qcom->ports[port_index].qusb2_phy_irq = irq; in dwc3_qcom_setup_port_irq()
/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/
H A Ddevlink.c16 unsigned int port_index; member
84 sf->port_index = dl_port_index; in mlx5_sf_alloc()
108 trace_mlx5_sf_free(table->dev, sf->port_index, sf->controller, sf->hw_fn_id); in mlx5_sf_free()
186 trace_mlx5_sf_activate(dev, sf->port_index, sf->controller, sf->hw_fn_id); in mlx5_sf_activate()
202 trace_mlx5_sf_deactivate(dev, sf->port_index, sf->controller, sf->hw_fn_id); in mlx5_sf_deactivate()
256 trace_mlx5_sf_add(dev, sf->port_index, sf->controller, sf->hw_fn_id, new_attr->sfnum); in mlx5_sf_add()
409 trace_mlx5_sf_update_state(table->dev, sf->port_index, sf->controller, in mlx5_sf_vhca_event()
/linux/tools/testing/selftests/drivers/net/netdevsim/
H A Ddevlink_in_netns.sh19 local port_index=$1
22 ".[][\"$DL_HANDLE/$port_index\"].netdev" "-e"
/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()
/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…

123