/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/sf/diag/ |
D | sf_tracepoint.h | 16 unsigned int port_index, 20 TP_ARGS(dev, port_index, controller, hw_fn_id, sfnum), 22 __field(unsigned int, port_index) 28 __entry->port_index = port_index; 34 __get_str(devname), __entry->port_index, __entry->controller, 40 unsigned int port_index, 43 TP_ARGS(dev, port_index, controller, hw_fn_id), 45 __field(unsigned int, port_index) 50 __entry->port_index = port_index; 55 __get_str(devname), __entry->port_index, __entry->controller, [all …]
|
/linux-6.6.21/drivers/scsi/isci/ |
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-6.6.21/tools/net/ynl/generated/ |
D | devlink-user.h | 150 __u32 port_index:1; member 155 __u32 port_index; member 186 __u32 port_index) in devlink_port_get_req_set_port_index() argument 188 req->_present.port_index = 1; in devlink_port_get_req_set_port_index() 189 req->port_index = port_index; in devlink_port_get_req_set_port_index() 196 __u32 port_index:1; member 201 __u32 port_index; member 255 __u32 port_index:1; member 260 __u32 port_index; member 527 __u32 port_index:1; member [all …]
|
D | devlink-user.c | 624 dst->_present.port_index = 1; in devlink_port_get_rsp_parse() 625 dst->port_index = mnl_attr_get_u32(attr); in devlink_port_get_rsp_parse() 648 if (req->_present.port_index) in devlink_port_get() 649 mnl_attr_put_u32(nlh, DEVLINK_ATTR_PORT_INDEX, req->port_index); in devlink_port_get() 704 dst->_present.port_index = 1; in devlink_port_get_rsp_dump_parse() 705 dst->port_index = mnl_attr_get_u32(attr); in devlink_port_get_rsp_dump_parse() 1105 dst->_present.port_index = 1; in devlink_sb_port_pool_get_rsp_parse() 1106 dst->port_index = mnl_attr_get_u32(attr); in devlink_sb_port_pool_get_rsp_parse() 1140 if (req->_present.port_index) in devlink_sb_port_pool_get() 1141 mnl_attr_put_u32(nlh, DEVLINK_ATTR_PORT_INDEX, req->port_index); in devlink_sb_port_pool_get() [all …]
|
/linux-6.6.21/drivers/infiniband/sw/rdmavt/ |
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-6.6.21/include/linux/ |
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-6.6.21/drivers/usb/host/ |
D | xhci-hub.c | 1718 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() 1753 t1 = readl(ports[port_index]->addr); in xhci_bus_suspend() 1755 portsc_buf[port_index] = 0; in xhci_bus_suspend() 1767 hcd->self.busnum, port_index + 1); in xhci_bus_suspend() 1786 hcd->self.busnum, port_index + 1); in xhci_bus_suspend() 1789 set_bit(port_index, &bus_state->bus_suspended); in xhci_bus_suspend() 1807 port_index)) in xhci_bus_suspend() 1815 portsc_buf[port_index] = t2; in xhci_bus_suspend() [all …]
|
/linux-6.6.21/drivers/net/team/ |
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()
|
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-6.6.21/drivers/net/netdevsim/ |
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); 1177 int vf_id = nsim_dev_port_index_to_vf_index(nsim_dev_port->port_index); in nsim_leaf_tx_share_set() [all …]
|
D | bus.c | 65 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()
|
D | netdevsim.h | 257 unsigned int port_index; member 349 unsigned int port_index); 352 unsigned int port_index);
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
D | devlink.c | 16 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 …]
|
/linux-6.6.21/drivers/infiniband/hw/mlx4/ |
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-6.6.21/drivers/net/ethernet/microchip/lan966x/ |
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-6.6.21/drivers/w1/masters/ |
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-6.6.21/net/devlink/ |
D | port.c | 27 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() 36 u32 port_index = nla_get_u32(attrs[DEVLINK_ATTR_PORT_INDEX]); in devlink_port_get_from_attrs() local 39 devlink_port = devlink_port_get_by_index(devlink, port_index); in devlink_port_get_from_attrs() 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 575 xa_for_each_start(&devlink->ports, port_index, devlink_port, state->idx) { in devlink_nl_port_get_dump_one() 582 state->idx = port_index; in devlink_nl_port_get_dump_one() 859 new_attrs.port_index = in devlink_nl_cmd_port_new_doit() [all …]
|
D | param.c | 238 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()
|
/linux-6.6.21/tools/testing/selftests/drivers/net/netdevsim/ |
D | devlink_in_netns.sh | 19 local port_index=$1 22 ".[][\"$DL_HANDLE/$port_index\"].netdev" "-e"
|
/linux-6.6.21/drivers/usb/chipidea/ |
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-6.6.21/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/ |
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-6.6.21/include/rdma/ |
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);
|
/linux-6.6.21/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_mactable.c | 241 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()
|
/linux-6.6.21/drivers/staging/vc04_services/vchiq-mmal/ |
D | mmal-msg.h | 160 u32 port_index; /* port indexed in query */ member 173 u32 port_index; /* port indexed in query */ member
|
/linux-6.6.21/drivers/staging/octeon/ |
D | ethernet.c | 805 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()
|