Home
last modified time | relevance | path

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

12

/drivers/infiniband/sw/rdmavt/
Dvt.c161 int port_index = ibport_num_to_idx(ibdev, port_num); in rvt_query_port() local
163 if (port_index < 0) in rvt_query_port()
166 rvp = rdi->ports[port_index]; in rvt_query_port()
197 int port_index = ibport_num_to_idx(ibdev, port_num); in rvt_modify_port() local
199 if (port_index < 0) in rvt_modify_port()
202 rvp = rdi->ports[port_index]; in rvt_modify_port()
240 int port_index; in rvt_query_pkey() local
242 port_index = ibport_num_to_idx(ibdev, port_num); in rvt_query_pkey()
243 if (port_index < 0) in rvt_query_pkey()
249 *pkey = rvt_get_pkey(rdi, port_index, index); in rvt_query_pkey()
[all …]
Dvt.h102 int port_index; in ibport_num_to_idx() local
104 port_index = port_num - 1; /* IB ports start at 1 our arrays at 0 */ in ibport_num_to_idx()
105 if ((port_index < 0) || (port_index >= rdi->dparms.nports)) in ibport_num_to_idx()
108 return port_index; in ibport_num_to_idx()
/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()
436 u8 port_index; in sci_apc_agent_validate_phy_configuration() local
443 port_index = phy_index; in sci_apc_agent_validate_phy_configuration()
455 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/usb/host/
Dxhci-hub.c1536 int max_ports, port_index; in xhci_bus_suspend() local
1565 port_index = max_ports; in xhci_bus_suspend()
1566 while (port_index--) { in xhci_bus_suspend()
1570 t1 = readl(ports[port_index]->addr); in xhci_bus_suspend()
1572 portsc_buf[port_index] = 0; in xhci_bus_suspend()
1584 port_index); in xhci_bus_suspend()
1595 xhci_dbg(xhci, "port %d not suspended\n", port_index); in xhci_bus_suspend()
1598 set_bit(port_index, &bus_state->bus_suspended); in xhci_bus_suspend()
1616 port_index)) in xhci_bus_suspend()
1624 portsc_buf[port_index] = t2; in xhci_bus_suspend()
[all …]
Dxhci.c889 int port_index; in xhci_disable_port_wake_on_bits() local
896 port_index = xhci->usb3_rhub.num_ports; in xhci_disable_port_wake_on_bits()
898 while (port_index--) { in xhci_disable_port_wake_on_bits()
899 t1 = readl(ports[port_index]->addr); in xhci_disable_port_wake_on_bits()
904 writel(t2, ports[port_index]->addr); in xhci_disable_port_wake_on_bits()
907 port_index + 1, portsc, t2); in xhci_disable_port_wake_on_bits()
912 port_index = xhci->usb2_rhub.num_ports; in xhci_disable_port_wake_on_bits()
914 while (port_index--) { in xhci_disable_port_wake_on_bits()
915 t1 = readl(ports[port_index]->addr); in xhci_disable_port_wake_on_bits()
920 writel(t2, ports[port_index]->addr); in xhci_disable_port_wake_on_bits()
[all …]
Du132-hcd.c2635 static int u132_roothub_portreset(struct u132 *u132, int port_index) in u132_roothub_portreset() argument
2650 roothub.portstatus[port_index], &portstat); in u132_roothub_portreset()
2663 roothub.portstatus[port_index], in u132_roothub_portreset()
2671 retval = u132_write_pcimem(u132, roothub.portstatus[port_index], in u132_roothub_portreset()
2690 int port_index = wIndex - 1; in u132_roothub_setportfeature() local
2691 struct u132_port *port = &u132->port[port_index]; in u132_roothub_setportfeature()
2696 roothub.portstatus[port_index], RH_PS_PSS); in u132_roothub_setportfeature()
2699 roothub.portstatus[port_index], RH_PS_PPS); in u132_roothub_setportfeature()
2701 return u132_roothub_portreset(u132, port_index); in u132_roothub_setportfeature()
2714 int port_index = wIndex - 1; in u132_roothub_clearportfeature() local
[all …]
Dxhci-mem.c2224 int port_index = 0; in xhci_create_rhub_port_array() local
2236 xhci->hw_ports[i].hcd_portnum = port_index; in xhci_create_rhub_port_array()
2237 rhub->ports[port_index] = &xhci->hw_ports[i]; in xhci_create_rhub_port_array()
2238 port_index++; in xhci_create_rhub_port_array()
2239 if (port_index == rhub->num_ports) in xhci_create_rhub_port_array()
/drivers/infiniband/hw/mlx4/
Dalias_GUID.c81 int port_index = port_num - 1; in mlx4_ib_update_cache_on_guid_change() local
102 memcpy(&dev->sriov.demux[port_index].guid_cache[slave_id], in mlx4_ib_update_cache_on_guid_change()
132 int port_index = port - 1; in mlx4_ib_slave_alias_guid_event() local
137 if (dev->sriov.alias_guid.ports_guid[port_index].state_flags & in mlx4_ib_slave_alias_guid_event()
142 alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event()
154 *(__be64 *)&dev->sriov.alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event()
157 dev->sriov.alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event()
160 dev->sriov.alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event()
164 dev->sriov.alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event()
166 dev->sriov.alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event()
[all …]
/drivers/net/netdevsim/
Ddev.c108 sprintf(port_ddir_name, "%u", nsim_dev_port->port_index); in nsim_dev_port_debugfs_init()
750 unsigned int port_index) in __nsim_dev_port_add() argument
759 nsim_dev_port->port_index = port_index; in __nsim_dev_port_add()
763 port_index + 1, 0, 0, in __nsim_dev_port_add()
767 port_index); in __nsim_dev_port_add()
854 __nsim_dev_port_lookup(struct nsim_dev *nsim_dev, unsigned int port_index) in __nsim_dev_port_lookup() argument
859 if (nsim_dev_port->port_index == port_index) in __nsim_dev_port_lookup()
865 unsigned int port_index) in nsim_dev_port_add() argument
871 if (__nsim_dev_port_lookup(nsim_dev, port_index)) in nsim_dev_port_add()
874 err = __nsim_dev_port_add(nsim_dev, port_index); in nsim_dev_port_add()
[all …]
Dbus.c99 unsigned int port_index; in new_port_store() local
102 ret = kstrtouint(buf, 0, &port_index); in new_port_store()
105 ret = nsim_dev_port_add(nsim_bus_dev, port_index); in new_port_store()
116 unsigned int port_index; in del_port_store() local
119 ret = kstrtouint(buf, 0, &port_index); in del_port_store()
122 ret = nsim_dev_port_del(nsim_bus_dev, port_index); in del_port_store()
Dnetdevsim.h140 unsigned int port_index; member
172 unsigned int port_index);
174 unsigned int port_index);
/drivers/net/team/
Dteam_mode_random.c17 int port_index; in rnd_transmit() local
19 port_index = prandom_u32_max(team->en_port_count); in rnd_transmit()
20 port = team_get_port_by_index_rcu(team, port_index); in rnd_transmit()
Dteam_mode_roundrobin.c27 int port_index; in rr_transmit() local
29 port_index = team_num_to_port_index(team, in rr_transmit()
31 port = team_get_port_by_index_rcu(team, port_index); in rr_transmit()
Dteam_mode_loadbalance.c125 int port_index = team_num_to_port_index(team, hash); in lb_hash_select_tx_port() local
127 return team_get_port_by_index_rcu(team, port_index); in lb_hash_select_tx_port()
/drivers/w1/masters/
Dmatrox_w1.c45 void __iomem *port_index; member
71 writeb(reg, dev->port_index); in matrox_w1_read_reg()
80 writeb(reg, dev->port_index); in matrox_w1_write_reg()
151 dev->port_index = dev->base_addr + MATROX_PORT_INDEX_OFFSET; in matrox_w1_probe()
/drivers/net/ethernet/netronome/nfp/
Dnfp_devlink.c29 nfp_devlink_fill_eth_port_from_id(struct nfp_pf *pf, unsigned int port_index, in nfp_devlink_fill_eth_port_from_id() argument
34 port = nfp_port_from_id(pf, NFP_PORT_PHYS_PORT, port_index); in nfp_devlink_fill_eth_port_from_id()
65 nfp_devlink_port_split(struct devlink *devlink, unsigned int port_index, in nfp_devlink_port_split() argument
79 ret = nfp_devlink_fill_eth_port_from_id(pf, port_index, &eth_port); in nfp_devlink_port_split()
102 nfp_devlink_port_unsplit(struct devlink *devlink, unsigned int port_index, in nfp_devlink_port_unsplit() argument
113 ret = nfp_devlink_fill_eth_port_from_id(pf, port_index, &eth_port); in nfp_devlink_port_unsplit()
/drivers/net/ethernet/mellanox/mlxsw/
Dcore.c740 unsigned int port_index, in mlxsw_devlink_port_split() argument
746 if (port_index >= mlxsw_core->max_ports) { in mlxsw_devlink_port_split()
752 return mlxsw_core->driver->port_split(mlxsw_core, port_index, count, in mlxsw_devlink_port_split()
757 unsigned int port_index, in mlxsw_devlink_port_unsplit() argument
762 if (port_index >= mlxsw_core->max_ports) { in mlxsw_devlink_port_unsplit()
768 return mlxsw_core->driver->port_unsplit(mlxsw_core, port_index, in mlxsw_devlink_port_unsplit()
1817 u16 lag_id, u8 port_index) in mlxsw_core_lag_mapping_index() argument
1820 port_index; in mlxsw_core_lag_mapping_index()
1824 u16 lag_id, u8 port_index, u8 local_port) in mlxsw_core_lag_mapping_set() argument
1827 lag_id, port_index); in mlxsw_core_lag_mapping_set()
[all …]
Dcore.h167 u16 lag_id, u8 port_index, u8 local_port);
169 u16 lag_id, u8 port_index);
/drivers/staging/octeon/
Dethernet.c813 int port_index; in cvm_oct_probe() local
815 for (port_index = 0, in cvm_oct_probe()
818 port_index++, port++) { in cvm_oct_probe()
833 port_index); in cvm_oct_probe()
893 port_index); in cvm_oct_probe()
/drivers/staging/vc04_services/bcm2835-camera/
Dmmal-msg.h160 u32 port_index; /* port indexed in query */ member
173 u32 port_index; /* port indexed in query */ member
/drivers/net/ethernet/hisilicon/hns/
Dhns_ae_adapt.c37 ppe_index = vf_cb->port_index; in hns_get_ppe_cb()
124 vf_cb->port_index = port_id; in hns_ae_get_handle()
658 port = vf_cb->port_index; in hns_ae_update_stats()
753 hns_dsaf_get_stats(vf_cb->dsaf_dev, p, vf_cb->port_index); in hns_ae_get_stats()
770 port = vf_cb->port_index; in hns_ae_get_strings()
881 hns_dsaf_get_regs(vf_cb->dsaf_dev, vf_cb->port_index, p); in hns_ae_get_regs()
/drivers/firewire/
Dcore-topology.c90 static int get_port_type(u32 *sid, int port_index) in get_port_type() argument
94 index = (port_index + 5) / 8; in get_port_type()
95 shift = 16 - ((port_index + 5) & 7) * 2; in get_port_type()
/drivers/media/platform/qcom/venus/
Dhfi_helper.h816 u32 port_index; member
995 u32 port_index; member
1064 u32 port_index; member
/drivers/soundwire/
Dstream.c1175 int port_index) in sdw_port_alloc() argument
1183 p_rt->ch_mask = port_config[port_index].ch_mask; in sdw_port_alloc()
1184 p_rt->num = port_config[port_index].num; in sdw_port_alloc()

12