Searched refs:port_index (Results 1 - 25 of 55) sorted by last modified time

123

/linux-master/tools/testing/selftests/net/lib/py/
H A Dnsim.py16 def __init__(self, nsimdev, port_index, ifname, ns=None):
18 # check if the name matches the port_index.
21 if match and int(match.groups()[0]) != port_index + 1:
26 self.port_index = port_index
28 self.dfs_dir = "%s/ports/%u/" % (nsimdev.dfs_dir, port_index)
34 self.nsimdev.dfs_write(f'ports/{self.port_index}/' + path, val)
85 for port_index in range(port_count):
86 self.nsims.append(self._make_port(port_index, ifnames[port_index]))
[all...]
/linux-master/tools/testing/selftests/net/
H A Dbpf_offload.py350 def _make_port(self, port_index, ifname):
351 return BpfNetdevSim(self, port_index, ifname, self.ns)
376 def __init__(self, nsimdev, port_index, ifname, ns=None):
377 super().__init__(nsimdev, port_index, ifname, ns=ns)
379 self.dfs_dir = "%s/ports/%u/" % (nsimdev.dfs_dir, port_index)
/linux-master/net/devlink/
H A Dport.c28 unsigned int port_index)
30 return xa_load(&devlink->ports, port_index);
37 u32 port_index = nla_get_u32(attrs[DEVLINK_ATTR_PORT_INDEX]); local
40 devlink_port = devlink_port_get_by_index(devlink, port_index);
578 unsigned long port_index; local
580 xa_for_each(&devlink->ports, port_index, devlink_port)
621 unsigned long port_index; local
624 xa_for_each_start(&devlink->ports, port_index, devlink_port, state->idx) {
631 state->idx = port_index;
920 new_attrs.port_index
27 devlink_port_get_by_index(struct devlink *devlink, unsigned int port_index) argument
1063 devl_port_register_with_ops(struct devlink *devlink, struct devlink_port *devlink_port, unsigned int port_index, const struct devlink_port_ops *ops) argument
1109 devlink_port_register_with_ops(struct devlink *devlink, struct devlink_port *devlink_port, unsigned int port_index, const struct devlink_port_ops *ops) argument
1456 devlink_port_rel_notify_cb(struct devlink *devlink, u32 port_index) argument
1466 devlink_port_rel_cleanup_cb(struct devlink *devlink, u32 port_index, u32 rel_index) argument
[all...]
H A Dparam.c239 unsigned int port_index,
286 if (nla_put_u32(msg, DEVLINK_ATTR_PORT_INDEX, port_index))
332 unsigned int port_index,
353 err = devlink_nl_param_fill(msg, devlink, port_index, param_item, cmd,
530 unsigned int port_index,
580 devlink_param_notify(devlink, port_index, param_item, cmd);
238 devlink_nl_param_fill(struct sk_buff *msg, struct devlink *devlink, unsigned int port_index, struct devlink_param_item *param_item, enum devlink_command cmd, u32 portid, u32 seq, int flags) argument
331 devlink_param_notify(struct devlink *devlink, unsigned int port_index, struct devlink_param_item *param_item, enum devlink_command cmd) argument
529 __devlink_nl_cmd_param_set_doit(struct devlink *devlink, unsigned int port_index, struct xarray *params, struct genl_info *info, enum devlink_command cmd) argument
H A Dnetlink.c77 flt->port_index = nla_get_u32(attrs[DEVLINK_ATTR_PORT_INDEX]);
110 desc->port_index != flt->port_index)
H A Dregion.c552 unsigned long port_index; local
573 xa_for_each(&devlink->ports, port_index, port) {
/linux-master/include/net/
H A Ddevlink.h158 unsigned int port_index; member in struct:devlink_port_new_attrs
1679 unsigned int port_index,
1684 unsigned int port_index)
1687 port_index, NULL);
1692 unsigned int port_index,
1697 unsigned int port_index)
1700 port_index, NULL);
1682 devl_port_register(struct devlink *devlink, struct devlink_port *devlink_port, unsigned int port_index) argument
1695 devlink_port_register(struct devlink *devlink, struct devlink_port *devlink_port, unsigned int port_index) argument
/linux-master/drivers/net/netdevsim/
H A Dnetdevsim.h270 unsigned int port_index; member in struct:nsim_dev_port
362 unsigned int port_index);
365 unsigned int port_index);
H A Dbus.c69 unsigned int port_index; local
75 ret = kstrtouint(buf, 0, &port_index);
79 ret = nsim_drv_port_add(nsim_bus_dev, NSIM_DEV_PORT_TYPE_PF, port_index);
90 unsigned int port_index; local
96 ret = kstrtouint(buf, 0, &port_index);
100 ret = nsim_drv_port_del(nsim_bus_dev, NSIM_DEV_PORT_TYPE_PF, port_index);
H A Ddev.c39 nsim_dev_port_index(enum nsim_dev_port_type type, unsigned int port_index) argument
43 port_index = NSIM_DEV_VF_PORT_INDEX_BASE + port_index;
49 return port_index;
52 static inline unsigned int nsim_dev_port_index_to_vf_index(unsigned int port_index) argument
54 return port_index - NSIM_DEV_VF_PORT_INDEX_BASE;
395 unsigned int port_index = nsim_dev_port->port_index; local
399 sprintf(port_ddir_name, "%u", port_index);
407 unsigned int vf_id = nsim_dev_port_index_to_vf_index(port_index);
1352 __nsim_dev_port_add(struct nsim_dev *nsim_dev, enum nsim_dev_port_type type, unsigned int port_index) argument
1689 __nsim_dev_port_lookup(struct nsim_dev *nsim_dev, enum nsim_dev_port_type type, unsigned int port_index) argument
1701 nsim_drv_port_add(struct nsim_bus_dev *nsim_bus_dev, enum nsim_dev_port_type type, unsigned int port_index) argument
1716 nsim_drv_port_del(struct nsim_bus_dev *nsim_bus_dev, enum nsim_dev_port_type type, unsigned int port_index) argument
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum.c4313 u16 lag_id, u8 port_index)
4319 lag_id, port_index);
4515 u8 port_index; local
4523 err = mlxsw_sp_port_lag_index_get(mlxsw_sp, lag_id, &port_index);
4532 err = mlxsw_sp_lag_col_port_add(mlxsw_sp_port, lag_id, port_index);
4536 mlxsw_core_lag_mapping_set(mlxsw_sp->core, lag_id, port_index,
4312 mlxsw_sp_lag_col_port_add(struct mlxsw_sp_port *mlxsw_sp_port, u16 lag_id, u8 port_index) argument
H A Dreg.h1455 MLXSW_ITEM32(reg, slcor, port_index, 0x04, 0, 10);
1469 u8 port_index)
1473 mlxsw_reg_slcor_port_index_set(payload, port_index);
1467 mlxsw_reg_slcor_port_add_pack(char *payload, u16 local_port, u16 lag_id, u8 port_index) argument
H A Dcore.c84 u16 *mapping; /* lag_id+port_index to local_port mapping */
2999 u16 lag_id, u8 port_index)
3002 port_index;
3006 u16 lag_id, u8 port_index, u16 local_port)
3009 lag_id, port_index);
3016 u16 lag_id, u8 port_index)
3019 lag_id, port_index);
2998 mlxsw_core_lag_mapping_index(struct mlxsw_core *mlxsw_core, u16 lag_id, u8 port_index) argument
3005 mlxsw_core_lag_mapping_set(struct mlxsw_core *mlxsw_core, u16 lag_id, u8 port_index, u16 local_port) argument
3015 mlxsw_core_lag_mapping_get(struct mlxsw_core *mlxsw_core, u16 lag_id, u8 port_index) argument
H A Dspectrum.h477 mlxsw_sp_port_lagged_get(struct mlxsw_sp *mlxsw_sp, u16 lag_id, u8 port_index) argument
483 lag_id, port_index);
/linux-master/drivers/firewire/
H A Dohci.c1820 static int get_status_for_port(struct fw_ohci *ohci, int port_index) argument
1825 reg = write_phy_reg(ohci, 7, port_index);
H A Dcore-topology.c92 static int get_port_type(u32 *sid, int port_index) argument
96 index = (port_index + 5) / 8;
97 shift = 16 - ((port_index + 5) & 7) * 2;
/linux-master/drivers/staging/vc04_services/vchiq-mmal/
H A Dmmal-vchiq.c789 m.u.port_info_set.port_index = port->index;
876 port->index = rmsg->u.port_info_get_reply.port_index;
/linux-master/drivers/usb/host/
H A Dxhci.c852 int port_index; local
865 port_index = xhci->usb2_rhub.num_ports;
867 while (port_index--) {
868 portsc = readl(ports[port_index]->addr);
873 port_index = xhci->usb3_rhub.num_ports;
875 while (port_index--) {
876 portsc = readl(ports[port_index]->addr);
H A Dxhci-mem.c2132 int port_index = 0; local
2147 xhci->hw_ports[i].hcd_portnum = port_index;
2148 rhub->ports[port_index] = &xhci->hw_ports[i];
2149 port_index++;
2150 if (port_index == rhub->num_ports)
H A Dxhci-hub.c1676 int max_ports, port_index; local
1706 port_index = max_ports;
1707 while (port_index--) {
1711 t1 = readl(ports[port_index]->addr);
1713 portsc_buf[port_index] = 0;
1725 hcd->self.busnum, port_index + 1);
1744 hcd->self.busnum, port_index + 1);
1747 set_bit(port_index, &bus_state->bus_suspended);
1765 port_index))
1773 portsc_buf[port_index]
1834 int max_ports, port_index; local
[all...]
/linux-master/drivers/soundwire/
H A Dstream.c902 int port_index)
904 p_rt->ch_mask = port_config[port_index].ch_mask;
905 p_rt->num = port_config[port_index].num;
900 sdw_port_config(struct sdw_port_runtime *p_rt, const struct sdw_port_config *port_config, int port_index) argument
/linux-master/drivers/acpi/
H A Dmipi-disco-img.c487 unsigned int port_index)
498 swnodes->nodes[ACPI_DEVICE_SWNODE_PORT(port_index)] =
572 swnodes->nodes[ACPI_DEVICE_SWNODE_EP(port_index)] =
573 SOFTWARE_NODE("endpoint@0", swnodes->ports[port_index].ep_props,
574 &swnodes->nodes[ACPI_DEVICE_SWNODE_PORT(port_index)]);
483 init_csi2_port(struct acpi_device *adev, struct acpi_device_software_nodes *swnodes, struct acpi_device_software_node_port *port, struct fwnode_handle *port_fwnode, unsigned int port_index) argument
/linux-master/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_mactable.c241 u16 vid, u16 port_index)
252 mact_entry->port = port_index;
258 u16 vid, u16 port_index)
267 mact_entry->port == port_index) {
239 alloc_mact_entry(struct sparx5 *sparx5, const unsigned char *mac, u16 vid, u16 port_index) argument
256 find_mact_entry(struct sparx5 *sparx5, const unsigned char *mac, u16 vid, u16 port_index) argument
/linux-master/drivers/gpu/drm/i915/gvt/
H A Dhandlers.c1168 int port_index = OFFSET_TO_DP_AUX_PORT(offset);
1173 if (!dpy_is_valid_port(port_index)) {
1182 && offset != _REG_SKL_DP_AUX_CH_CTL(port_index)) {
1186 offset != _REG_HSW_DP_AUX_CH_CTL(port_index)) {
1197 port = &display->ports[port_index];
1326 intel_gvt_i2c_handle_aux_ch_write(vgpu, port_index, offset, p_data);
1166 int port_index = OFFSET_TO_DP_AUX_PORT(offset); local
/linux-master/drivers/pinctrl/renesas/
H A Dpinctrl-rzv2m.c431 u32 port_index = RZV2M_GPIO_PORT_GET_INDEX(cfg); local
438 if (port_index != RZV2M_GPIO_PORT_GET_INDEX(data))

Completed in 384 milliseconds

123