Home
last modified time | relevance | path

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

12

/drivers/net/ethernet/mellanox/mlx5/core/sf/diag/
Dsf_tracepoint.h16 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 …]
/drivers/scsi/isci/
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 …]
Dport.h204 u8 port_index,
/drivers/infiniband/sw/rdmavt/
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 …]
/drivers/usb/host/
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()
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 …]
Dxhci-mem.c2148 int port_index = 0; in xhci_create_rhub_port_array() local
2163 xhci->hw_ports[i].hcd_portnum = port_index; in xhci_create_rhub_port_array()
2164 rhub->ports[port_index] = &xhci->hw_ports[i]; in xhci_create_rhub_port_array()
2165 port_index++; in xhci_create_rhub_port_array()
2166 if (port_index == rhub->num_ports) in xhci_create_rhub_port_array()
Dxhci.c843 int port_index; in xhci_pending_portevent() local
856 port_index = xhci->usb2_rhub.num_ports; in xhci_pending_portevent()
858 while (port_index--) { in xhci_pending_portevent()
859 portsc = readl(ports[port_index]->addr); in xhci_pending_portevent()
864 port_index = xhci->usb3_rhub.num_ports; in xhci_pending_portevent()
866 while (port_index--) { in xhci_pending_portevent()
867 portsc = readl(ports[port_index]->addr); in xhci_pending_portevent()
2505 unsigned int port_index = virt_dev->real_port - 1; in xhci_check_bw_table() local
2512 xhci->rh_bw[port_index].num_active_tts; in xhci_check_bw_table()
/drivers/net/netdevsim/
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);
1177 int vf_id = nsim_dev_port_index_to_vf_index(nsim_dev_port->port_index); in nsim_leaf_tx_share_set()
[all …]
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()
Dnetdevsim.h257 unsigned int port_index; member
349 unsigned int port_index);
352 unsigned int port_index);
/drivers/infiniband/hw/mlx4/
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 …]
/drivers/net/ethernet/mellanox/mlx5/core/sf/
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 …]
/drivers/net/team/
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()
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()
Dteam_mode_loadbalance.c121 int port_index = team_num_to_port_index(team, hash); in lb_hash_select_tx_port() local
123 return team_get_port_by_index_rcu(team, port_index); in lb_hash_select_tx_port()
/drivers/net/ethernet/microchip/lan966x/
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()
/drivers/w1/masters/
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()
/drivers/usb/chipidea/
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()
/drivers/net/ethernet/microchip/sparx5/
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()
/drivers/staging/octeon/
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()
/drivers/net/ethernet/hisilicon/hns/
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()
/drivers/staging/vc04_services/vchiq-mmal/
Dmmal-msg.h160 u32 port_index; /* port indexed in query */ member
173 u32 port_index; /* port indexed in query */ member
/drivers/firewire/
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()
/drivers/media/platform/qcom/venus/
Dhfi_helper.h952 u32 port_index; member
1141 u32 port_index; member
1255 u32 port_index; member
/drivers/net/ethernet/mellanox/mlxsw/
Dcore.h248 u16 lag_id, u8 port_index, u16 local_port);
250 u16 lag_id, u8 port_index);

12