/linux/tools/testing/selftests/net/lib/py/ |
H A D | nsim.py | 17 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 D | port_config.c | 249 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 D | packet-serdes-test.c | 663 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 D | self-id-sequence-helper-test.c | 82 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 D | core-topology.c | 128 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 D | phy-packet-definitions.h | 274 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 D | vt.c | 124 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 D | if_team.h | 246 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/net/netdevsim/ |
H A D | dev.c | 39 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 D | bus.c | 69 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 D | netdevsim.h | 270 unsigned int port_index; member 362 unsigned int port_index); 365 unsigned int port_index);
|
/linux/drivers/infiniband/hw/mlx4/ |
H A D | alias_GUID.c | 80 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/team/ |
H A D | team_mode_random.c | 17 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 D | team_mode_roundrobin.c | 26 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/net/ethernet/microchip/lan966x/ |
H A D | lan966x_mac.c | 23 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 D | matrox_w1.c | 44 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 D | port.c | 28 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 D | param.c | 239 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()
|
H A D | netlink.c | 77 flt->port_index = nla_get_u32(attrs[DEVLINK_ATTR_PORT_INDEX]); in devlink_nl_notify_filter_set_doit() 110 desc->port_index != flt->port_index) in devlink_obj_desc_match()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
H A D | devlink.c | 16 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/drivers/usb/chipidea/ |
H A D | host.c | 252 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/tools/testing/selftests/drivers/net/netdevsim/ |
H A D | devlink_in_netns.sh | 19 local port_index=$1 22 ".[][\"$DL_HANDLE/$port_index\"].netdev" "-e"
|
/linux/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/ |
H A D | tracepoints.rst | 159 …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…
|
/linux/drivers/acpi/ |
H A D | mipi-disco-img.c | 487 unsigned int port_index) in init_csi2_port() argument 498 swnodes->nodes[ACPI_DEVICE_SWNODE_PORT(port_index)] = in init_csi2_port() 572 swnodes->nodes[ACPI_DEVICE_SWNODE_EP(port_index)] = in init_csi2_port() 573 SOFTWARE_NODE("endpoint@0", swnodes->ports[port_index].ep_props, in init_csi2_port() 574 &swnodes->nodes[ACPI_DEVICE_SWNODE_PORT(port_index)]); in init_csi2_port()
|
/linux/include/rdma/ |
H A D | rdma_vt.h | 505 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);
|