/linux-master/net/ethtool/ |
H A D | tunnels.c | 87 struct nlattr *ports, *table, *entry; local 94 ports = nla_nest_start(skb, ETHTOOL_A_TUNNEL_INFO_UDP_PORTS); 95 if (!ports) 152 nla_nest_end(skb, ports); 161 nla_nest_cancel(skb, ports);
|
/linux-master/arch/um/drivers/ |
H A D | port_kern.c | 126 static LIST_HEAD(ports); 135 list_for_each(ele, &ports) { 166 list_for_each(ele, &ports) { 200 list_add(&port->list, &ports); 296 list_for_each(ele, &ports) {
|
/linux-master/drivers/platform/chrome/ |
H A D | cros_typec_switch.c | 33 struct cros_typec_port *ports[EC_USB_PD_MAX_PORTS]; member in struct:cros_typec_switch_data 173 if (!sdata->ports[i]) 175 typec_retimer_unregister(sdata->ports[i]->retimer); 176 typec_mux_unregister(sdata->ports[i]->mode_switch); 252 sdata->ports[index] = port;
|
/linux-master/include/net/ |
H A D | flow.h | 51 } ports; member in union:flowi_uli 85 #define fl4_sport uli.ports.sport 86 #define fl4_dport uli.ports.dport 145 #define fl6_sport uli.ports.sport 146 #define fl6_dport uli.ports.dport
|
/linux-master/net/netfilter/ipvs/ |
H A D | ip_vs_sh.c | 279 __be16 _ports[2], *ports; local 283 * bytes, let's just grab the ports. Fortunately they're in the 290 ports = skb_header_pointer(skb, iph->len, sizeof(_ports), 292 if (unlikely(!ports)) 296 return ports[0]; 298 return ports[1];
|
/linux-master/drivers/phy/tegra/ |
H A D | xusb.c | 454 struct device_node *ports, *np; local 457 ports = of_get_child_by_name(padctl->dev->of_node, "ports"); 458 if (!ports) 463 of_node_put(ports); 466 np = of_get_child_by_name(ports, name); 468 of_node_put(ports); 484 list_for_each_entry(port, &padctl->ports, list) { 790 * USB2 ports don't require additional properties, but if the port is 807 usb2->base.ops = padctl->soc->ports [all...] |
/linux-master/net/dsa/ |
H A D | dsa.c | 109 list_for_each_entry(dp, &dst->ports, list) 121 list_for_each_entry(dp, &dst->ports, list) 188 list_for_each_entry(dp, &dst->ports, list) { 223 INIT_LIST_HEAD(&dst->ports); 280 list_for_each_entry(dp, &dst->ports, list) 345 list_for_each_entry(dp, &dst->ports, list) { 360 list_for_each_entry(dp, &dst->ports, list) 381 /* Assign the default CPU port (the first one in the tree) to all ports of the 394 list_for_each_entry(dp, &dst->ports, list) { 423 /* Perform initial assignment of CPU ports t 1267 struct device_node *ports, *port; local [all...] |
/linux-master/drivers/platform/x86/ |
H A D | uv_sysfs.c | 115 struct uv_port **ports; member in struct:uv_hub 375 sz = hub_buf[j].ports * sizeof(*port_buf[j]); 390 uv_hubs[j]->ports = kcalloc(hub_buf[j].ports, 391 sizeof(*uv_hubs[j]->ports), GFP_KERNEL); 392 if (!uv_hubs[j]->ports) { 399 for (k = 0; k < hub_buf[j].ports; k++) { 400 uv_hubs[j]->ports[k] = kzalloc(sizeof(*uv_hubs[j]->ports[k]), GFP_KERNEL); 401 if (!uv_hubs[j]->ports[ [all...] |
/linux-master/drivers/scsi/ |
H A D | fdomain_isa.c | 30 static unsigned short ports[] = { 0x140, 0x150, 0x160, 0x170 }; variable 31 #define PORT_COUNT ARRAY_SIZE(ports) 123 } else /* scan supported I/O ports */ 124 base = ports[ndev - ADDRESS_COUNT];
|
/linux-master/drivers/soc/qcom/ |
H A D | pmic_glink_altmode.c | 104 struct pmic_glink_altmode_port ports[PMIC_GLINK_MAX_PORTS]; member in struct:pmic_glink_altmode 288 if (port >= ARRAY_SIZE(altmode->ports) || !altmode->ports[port].altmode) { 293 alt_port = &altmode->ports[port]; 331 if (port >= ARRAY_SIZE(altmode->ports) || !altmode->ports[port].altmode) { 336 alt_port = &altmode->ports[port]; 441 if (port >= ARRAY_SIZE(altmode->ports)) { 446 if (altmode->ports[port].altmode) { 452 alt_port = &altmode->ports[por [all...] |
/linux-master/drivers/net/ethernet/cisco/enic/ |
H A D | enic_clsf.c | 40 data.u.ipv4.src_port = ntohs(keys->ports.src); 41 data.u.ipv4.dst_port = ntohs(keys->ports.dst); 164 tpos->keys.ports.ports == k->ports.ports &&
|
/linux-master/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_netdev.c | 294 if (sparx5->ports[portno]) { 295 err = register_netdev(sparx5->ports[portno]->ndev); 302 sparx5_port_inj_timer_setup(sparx5->ports[portno]); 313 port = sparx5->ports[portno]; 331 if (sparx5->ports[portno]) 332 unregister_netdev(sparx5->ports[portno]->ndev);
|
/linux-master/drivers/usb/core/ |
H A D | ledtrig-usbport.c | 18 struct list_head ports; member in struct:usbport_trig_data 48 list_for_each_entry(port, &usbport_data->ports, list) { 118 .name = "ports", 123 * Adding & removing ports 223 list_add_tail(&port->list, &usbport_data->ports); 265 list_for_each_entry_safe(port, tmp, &usbport_data->ports, list) { 312 /* List of ports */ 313 INIT_LIST_HEAD(&usbport_data->ports); 336 list_for_each_entry_safe(port, tmp, &usbport_data->ports, list) {
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | xdp_synproxy.c | 73 fprintf(stderr, "Usage: %s [--iface <iface>|--prog <prog_id>] [--mss4 <mss ipv4> --mss6 <mss ipv6> --wscale <wscale> --ttl <ttl>] [--ports <port1>,<port2>,...] [--single] [--tc]\n", 92 __u64 *tcpipopts, char **ports, bool *single, bool *tc) 102 { "ports", required_argument, NULL, 'p' }, 117 *ports = NULL; 159 *ports = optarg; 367 char *ports; local 372 parse_options(argc, argv, &ifindex, &prog_id, &tcpipopts, &ports, 396 if (ports) { 399 char *p = ports; 401 fprintf(stderr, "Replacing allowed ports\ 91 parse_options(int argc, char *argv[], unsigned int *ifindex, __u32 *prog_id, __u64 *tcpipopts, char **ports, bool *single, bool *tc) argument [all...] |
/linux-master/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_xdp.c | 114 if (!lan966x->ports[p]) 117 if (lan966x_xdp_port_present(lan966x->ports[p]))
|
/linux-master/arch/mips/alchemy/common/ |
H A D | platform.c | 106 struct plat_serial8250_port *ports; local 118 ports = kcalloc(s, (c + 1), GFP_KERNEL); 119 if (!ports) { 123 memcpy(ports, au1x00_uart_data[ctype], s * c); 124 au1xx0_uart_device.dev.platform_data = ports; 128 ports[s].uartclk = uartclk; 129 if (au_platform_setup(&ports[s]) < 0) { 130 kfree(ports);
|
/linux-master/drivers/net/ethernet/mscc/ |
H A D | ocelot.h | 56 * For a switch with 9 user ports, there are 512 possible port masks, but the 62 unsigned long ports; member in struct:ocelot_pgid 73 u16 ports; member in struct:ocelot_multicast
|
/linux-master/drivers/gpu/drm/nouveau/include/nvkm/engine/ |
H A D | falcon.h | 41 u8 ports; member in struct:nvkm_falcon::__anon136 48 u8 ports; member in struct:nvkm_falcon::__anon137
|
/linux-master/drivers/gpu/drm/i915/ |
H A D | vlv_sideband.h | 28 void vlv_iosf_sb_get(struct drm_i915_private *i915, unsigned long ports); 29 void vlv_iosf_sb_put(struct drm_i915_private *i915, unsigned long ports);
|
/linux-master/drivers/gpu/drm/i915/display/ |
H A D | intel_dsi.h | 54 /* bit mask of ports (vlv dsi) or phys (icl dsi) being driven */ 56 u16 ports; /* VLV DSI */ member in union:intel_dsi::__anon400 159 return enc_to_intel_dsi(encoder)->ports;
|
/linux-master/sound/drivers/ |
H A D | mtpav.c | 32 * - hwports is between 1 and 8, which specifies the number of hardware ports. 33 * The three global ports, computer, adat and broadcast ports, are created 34 * always after h/w and remote ports. 66 static int hwports = MTPAV_MAX_PORTS; /* use hardware ports 1-8 */ 77 MODULE_PARM_DESC(hwports, "Hardware ports # for MotuMTPAV MIDI."); 132 int num_ports; /* number of hw ports (1-8) */ 133 struct mtpav_port ports[NUMPORTS]; /* all ports including computer, adat and bc */ member in struct:mtpav 143 * possible hardware ports (selecte [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | minimal.c | 35 struct mlxsw_m_port **ports; member in struct:mlxsw_m 227 return mlxsw_m->ports[local_port]; 284 mlxsw_m->ports[local_port] = mlxsw_m_port; 295 mlxsw_m->ports[local_port] = NULL; 305 struct mlxsw_m_port *mlxsw_m_port = mlxsw_m->ports[local_port]; 308 mlxsw_m->ports[local_port] = NULL; 386 mlxsw_m->ports = kcalloc(max_ports, sizeof(*mlxsw_m->ports), 388 if (!mlxsw_m->ports) 422 kfree(mlxsw_m->ports); [all...] |
/linux-master/drivers/xen/ |
H A D | privcmd.c | 1118 struct ioreq_port ports[] __counted_by(vcpus); 1176 struct ioreq_port *ports = kioreq->ports; local 1184 unbind_from_irqhandler(irq_from_evtchn(ports[i].port), &ports[i]); local 1196 unsigned int *ports; local 1201 size = struct_size(kioreq, ports, ioeventfd->vcpus); 1226 ports = memdup_array_user(u64_to_user_ptr(ioeventfd->ports), 1227 kioreq->vcpus, sizeof(*ports)); [all...] |
/linux-master/drivers/gpio/ |
H A D | gpio-tegra186.c | 83 const struct tegra_gpio_port *ports; member in struct:tegra_gpio_soc 116 const struct tegra_gpio_port *port = &gpio->soc->ports[i]; 451 pin += gpio->soc->ports[j].pins; 483 offset += gpio->soc->ports[i].pins; 637 const struct tegra_gpio_port *port = &gpio->soc->ports[i]; 644 /* skip ports that are not associated with this bank */ 688 offset += gpio->soc->ports[i].pins; 732 if (offset < gpio->soc->ports[i].pins) 735 offset -= gpio->soc->ports[i].pins; 755 const struct tegra_gpio_port *port = &gpio->soc->ports[ [all...] |
/linux-master/net/openvswitch/ |
H A D | dp_notify.c | 47 hlist_for_each_entry_safe(vport, n, &dp->ports[i], dp_hash_node) {
|