| /linux/drivers/thunderbolt/ |
| H A D | test.c | 54 size = (sw->config.max_port_number + 1) * sizeof(*sw->ports); in alloc_switch() 55 sw->ports = kunit_kzalloc(test, size, GFP_KERNEL); in alloc_switch() 56 if (!sw->ports) in alloc_switch() 60 sw->ports[i].sw = sw; in alloc_switch() 61 sw->ports[i].port = i; in alloc_switch() 62 sw->ports[i].config.port_number = i; in alloc_switch() 64 kunit_ida_init(test, &sw->ports[i].in_hopids); in alloc_switch() 65 kunit_ida_init(test, &sw->ports[i].out_hopids); in alloc_switch() 83 sw->ports[0].config.type = TB_TYPE_PORT; in alloc_host() 84 sw->ports[0].config.max_in_hop_id = 7; in alloc_host() [all …]
|
| /linux/drivers/net/ethernet/microchip/lan966x/ |
| H A D | lan966x_mdb.c | 11 u16 ports; member 18 u16 ports; member 97 mac[1] = mdb_entry->ports >> 8; in lan966x_mdb_encode_mac() 98 mac[2] = mdb_entry->ports & 0xff; in lan966x_mdb_encode_mac() 100 mac[0] = mdb_entry->ports >> 8; in lan966x_mdb_encode_mac() 101 mac[1] = mdb_entry->ports & 0xff; in lan966x_mdb_encode_mac() 128 mdb_entry->ports |= BIT(port->chip_port); in lan966x_mdb_ip_add() 148 u16 ports; in lan966x_mdb_ip_del() local 154 ports = mdb_entry->ports; in lan966x_mdb_ip_del() 163 ports &= ~BIT(port->chip_port); in lan966x_mdb_ip_del() [all …]
|
| /linux/arch/arm64/boot/dts/hisilicon/ |
| H A D | hi3660-coresight.dtsi | 22 out-ports { 40 out-ports { 58 out-ports { 76 out-ports { 92 out-ports { 101 in-ports { 141 in-ports { 150 out-ports { 169 out-ports { 187 out-ports { [all …]
|
| H A D | hi6220-coresight.dtsi | 19 out-ports { 28 in-ports { 44 in-ports { 53 out-ports { 68 in-ports { 77 out-ports { 105 in-ports { 121 in-ports { 137 out-ports { 146 in-ports { [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | xdp_flowtable.c | 45 static bool xdp_flowtable_offload_check_tcp_state(void *ports, void *data_end, in xdp_flowtable_offload_check_tcp_state() argument 49 struct tcphdr *tcph = ports; in xdp_flowtable_offload_check_tcp_state() 76 struct flow_ports___local *ports; in xdp_flowtable_do_lookup() local 86 ports = (struct flow_ports___local *)(iph + 1); in xdp_flowtable_do_lookup() 87 if (ports + 1 > data_end) in xdp_flowtable_do_lookup() 94 if (!xdp_flowtable_offload_check_tcp_state(ports, data_end, in xdp_flowtable_do_lookup() 104 tuple.sport = ports->source; in xdp_flowtable_do_lookup() 105 tuple.dport = ports->dest; in xdp_flowtable_do_lookup() 113 ports = (struct flow_ports___local *)(ip6h + 1); in xdp_flowtable_do_lookup() 114 if (ports + 1 > data_end) in xdp_flowtable_do_lookup() [all …]
|
| H A D | sock_iter_batch.c | 27 volatile const __u16 ports[2]; variable 52 if (sk->sk_num == ports[0]) in iter_tcp_soreuse() 54 else if (sk->sk_num == ports[1]) in iter_tcp_soreuse() 56 else if (!ports[0] && !ports[1]) in iter_tcp_soreuse() 115 if (sk->sk_num == ports[0]) in iter_udp_soreuse() 117 else if (sk->sk_num == ports[1]) in iter_udp_soreuse() 119 else if (!ports[0] && !ports[1]) in iter_udp_soreuse()
|
| /linux/tools/testing/selftests/drivers/net/mlxsw/ |
| H A D | sharedbuffer_configuration.py | 249 def get_tcbinds(ports, verify_existence=False): argument 252 for port in ports: 264 def do_check_tcbind(ports, tcbinds, vp): argument 266 pre_tcbinds = get_tcbinds(ports) 272 post_tcbinds = get_tcbinds(ports) 290 def check_tcbind(dlname, ports, pools): argument 291 tcbinds = get_tcbinds(ports, verify_existence=True) 298 do_check_tcbind(ports, tcbinds, RandomValuePicker(pools)) 301 do_check_tcbind(ports, tcbinds, record_vp) 321 def get_portpools(ports, verify_existence=False): argument [all …]
|
| /linux/arch/arm/boot/dts/hisilicon/ |
| H A D | hip04.dtsi | 277 in-ports { 292 in-ports { 307 in-ports { 322 in-ports { 337 in-ports { 352 out-ports { 356 /* replicator output ports */ 372 in-ports { 387 out-ports { 391 /* replicator output ports */ [all …]
|
| /linux/drivers/firewire/ |
| H A D | core-topology.c | 30 node = kzalloc_flex(*node, ports, port_count, GFP_ATOMIC); in fw_node_create() 69 if (node->ports[i] == NULL) in update_hop_count() 72 if (node->ports[i]->max_hops > max_child_hops) in update_hop_count() 73 max_child_hops = node->ports[i]->max_hops; in update_hop_count() 75 if (node->ports[i]->max_depth > depths[0]) { in update_hop_count() 77 depths[0] = node->ports[i]->max_depth; in update_hop_count() 78 } else if (node->ports[i]->max_depth > depths[1]) in update_hop_count() 79 depths[1] = node->ports[i]->max_depth; in update_hop_count() 211 node->ports[port_index] = child; in build_tree() 213 child->ports[child->color] = node; in build_tree() [all …]
|
| /linux/drivers/bus/ |
| H A D | arm-cci.c | 113 static struct cci_ace_port *ports; variable 169 ace_match = ports[i].type == type; in __cci_ace_get_port() 170 if (ace_match && cci_portn == ports[i].dn) in __cci_ace_get_port() 235 void __iomem *base = ports[port].base; in cci_port_control() 417 if (port >= nb_cci_ports || ports[port].type == ACE_INVALID_PORT) in __cci_control_port_by_index() 425 if (ports[port].type == ACE_PORT) in __cci_control_port_by_index() 454 ports = kzalloc_objs(*ports, nb_cci_ports); in cci_probe_ports() 455 if (!ports) in cci_probe_ports() 482 ports[i].base = ioremap(res.start, resource_size(&res)); in cci_probe_ports() 483 ports[i].phys = res.start; in cci_probe_ports() [all …]
|
| /linux/drivers/usb/host/ |
| H A D | xen-hcd.c | 72 struct rhport_status ports[XENUSB_MAX_PORTNR]; member 153 if (info->ports[port].status & USB_PORT_STAT_POWER) { in xenhcd_set_connect_state() 156 info->ports[port].status &= in xenhcd_set_connect_state() 164 info->ports[port].status |= USB_PORT_STAT_CONNECTION; in xenhcd_set_connect_state() 165 info->ports[port].status |= USB_PORT_STAT_LOW_SPEED; in xenhcd_set_connect_state() 168 info->ports[port].status |= USB_PORT_STAT_CONNECTION; in xenhcd_set_connect_state() 171 info->ports[port].status |= USB_PORT_STAT_CONNECTION; in xenhcd_set_connect_state() 172 info->ports[port].status |= USB_PORT_STAT_HIGH_SPEED; in xenhcd_set_connect_state() 177 info->ports[port].status |= (USB_PORT_STAT_C_CONNECTION << 16); in xenhcd_set_connect_state() 207 info->ports[port].c_connection = true; in xenhcd_rhport_connect() [all …]
|
| H A D | xhci-hub.c | 257 struct usb_hub_descriptor *desc, int ports) in xhci_common_hub_descriptor() argument 263 desc->bNbrPorts = ports; in xhci_common_hub_descriptor() 282 int ports; in xhci_usb2_hub_descriptor() local 290 ports = rhub->num_ports; in xhci_usb2_hub_descriptor() 291 xhci_common_hub_descriptor(xhci, desc, ports); in xhci_usb2_hub_descriptor() 293 temp = 1 + (ports / 8); in xhci_usb2_hub_descriptor() 301 for (i = 0; i < ports; i++) { in xhci_usb2_hub_descriptor() 302 portsc = xhci_portsc_readl(rhub->ports[i]); in xhci_usb2_hub_descriptor() 328 for (i = 0; i < (ports + 1 + 7) / 8; i++) in xhci_usb2_hub_descriptor() 337 int ports; in xhci_usb3_hub_descriptor() local [all …]
|
| /linux/sound/core/seq/ |
| H A D | seq_midi.c | 55 struct seq_midisynth *ports[SNDRV_RAWMIDI_DEVICES]; member 274 unsigned int p, ports; in snd_seq_midisynth_probe() local 296 ports = output_count; in snd_seq_midisynth_probe() 297 if (ports < input_count) in snd_seq_midisynth_probe() 298 ports = input_count; in snd_seq_midisynth_probe() 299 if (ports == 0) in snd_seq_midisynth_probe() 301 if (ports > (256 / SNDRV_RAWMIDI_DEVICES)) in snd_seq_midisynth_probe() 302 ports = 256 / SNDRV_RAWMIDI_DEVICES; in snd_seq_midisynth_probe() 321 msynth = kzalloc_objs(struct seq_midisynth, ports); in snd_seq_midisynth_probe() 328 for (p = 0; p < ports; p++) { in snd_seq_midisynth_probe() [all …]
|
| /linux/Documentation/ABI/stable/ |
| H A D | sysfs-class-infiniband | 39 What: /sys/class/infiniband/<device>/ports/<port-num>/lid 40 What: /sys/class/infiniband/<device>/ports/<port-num>/rate 41 What: /sys/class/infiniband/<device>/ports/<port-num>/lid_mask_count 42 What: /sys/class/infiniband/<device>/ports/<port-num>/sm_sl 43 What: /sys/class/infiniband/<device>/ports/<port-num>/sm_lid 44 What: /sys/class/infiniband/<device>/ports/<port-num>/state 45 What: /sys/class/infiniband/<device>/ports/<port-num>/phys_state 46 What: /sys/class/infiniband/<device>/ports/<port-num>/cap_mask 77 What: /sys/class/infiniband/<device>/ports/<port-num>/link_layer 85 What: /sys/class/infiniband/<device>/ports/<port-num>/counters/symbol_error [all …]
|
| /linux/Documentation/leds/ |
| H A D | ledtrig-usbport.rst | 9 It requires selecting USB ports that should be observed. All available ones are 10 listed as separated entries in a "ports" subdirectory. Selecting is handled by 13 Please note that this trigger allows selecting multiple USB ports for a single 18 1) Device with single USB LED and few physical ports 29 only one LED user will most likely want to assign ports from all 3 hubs. 43 echo 1 > ports/usb1-port1 44 echo 1 > ports/usb2-port1 45 cat ports/usb1-port1 46 echo 0 > ports/usb1-port1
|
| /linux/arch/arm64/boot/dts/apple/ |
| H A D | t6022-j180d.dts | 74 ports { 106 ports { 140 ports { 172 ports { 217 ports { 249 ports { 271 ports { 292 ports { 313 ports { 334 ports { [all …]
|
| H A D | t600x-j375.dtsi | 66 ports { 98 ports { 130 ports { 162 ports { 184 ports { 205 ports { 226 ports { 247 ports { 269 ports { 290 ports { [all …]
|
| /linux/drivers/infiniband/core/ |
| H A D | cma_configfs.c | 54 struct cma_dev_port_group *ports; member 202 struct cma_dev_port_group *ports; in make_cma_ports() local 213 ports = kzalloc_objs(*cma_dev_group->ports, ports_num); in make_cma_ports() 215 if (!ports) in make_cma_ports() 221 ports[i].port_num = i + 1; in make_cma_ports() 223 ports[i].cma_dev_group = cma_dev_group; in make_cma_ports() 224 config_group_init_type_name(&ports[i].group, in make_cma_ports() 227 configfs_add_default_group(&ports[i].group, in make_cma_ports() 231 cma_dev_group->ports = ports; in make_cma_ports() 254 kfree(cma_dev_group->ports); in release_cma_ports_group() [all …]
|
| /linux/arch/arm64/boot/dts/sprd/ |
| H A D | sc9863a.dtsi | 193 out-ports { 201 in-ports { 217 in-ports { 233 out-ports { 242 in-ports { 282 out-ports { 291 in-ports { 307 out-ports { 316 in-ports { 332 out-ports { [all …]
|
| H A D | sc9860.dtsi | 244 out-ports { 252 in-ports { 280 in-ports { 297 out-ports { 312 out-ports { 321 in-ports { 360 out-ports { 369 in-ports { 409 out-ports { 418 in-ports { [all …]
|
| H A D | sc9836.dtsi | 52 in-ports { 67 out-ports { 75 in-ports { 113 /* Other input ports aren't connected to anyone */ 124 out-ports { 140 out-ports { 156 out-ports { 172 out-ports { 188 out-ports {
|
| /linux/drivers/net/netdevsim/ |
| H A D | udp_tunnels.c | 22 if (ns->udp_ports.ports[table][entry]) { in nsim_udp_tunnel_set_port() 26 ns->udp_ports.ports[table][entry] = in nsim_udp_tunnel_set_port() 50 if (val == ns->udp_ports.ports[table][entry]) { in nsim_udp_tunnel_unset_port() 51 ns->udp_ports.ports[table][entry] = 0; in nsim_udp_tunnel_unset_port() 54 val, ns->udp_ports.ports[table][entry]); in nsim_udp_tunnel_unset_port() 78 ns->udp_ports.ports[table][i] = in nsim_udp_tunnel_sync_table() 111 memset(ns->udp_ports.ports, 0, sizeof(ns->udp_ports.__ports)); in nsim_udp_tunnels_info_reset_write() 138 ns->udp_ports.ports = ns->udp_ports.__ports; in nsim_udp_tunnels_info_create() 140 ns->udp_ports.ports = nsim_dev->udp_ports.__ports; in nsim_udp_tunnels_info_create() 148 ns->udp_ports.dfs_ports[0].array = ns->udp_ports.ports[0]; in nsim_udp_tunnels_info_create() [all …]
|
| /linux/arch/alpha/kernel/ |
| H A D | err_marvel.c | 820 if (!io7->ports[i].enabled) in marvel_find_io7_with_error() 822 err_sum |= io7->ports[i].csrs->POx_ERR_SUM.csr; in marvel_find_io7_with_error() 857 io7_ioport_csrs *csrs = io7->ports[i].csrs; in marvel_find_io7_with_error() 859 if (!io7->ports[i].enabled) in marvel_find_io7_with_error() 862 io->ports[i].pox_err_sum = csrs->POx_ERR_SUM.csr; in marvel_find_io7_with_error() 863 io->ports[i].pox_tlb_err = csrs->POx_TLB_ERR.csr; in marvel_find_io7_with_error() 864 io->ports[i].pox_spl_cmplt = csrs->POx_SPL_COMPLT.csr; in marvel_find_io7_with_error() 865 io->ports[i].pox_trans_sum = csrs->POx_TRANS_SUM.csr; in marvel_find_io7_with_error() 866 io->ports[i].pox_first_err = csrs->POx_FIRST_ERR.csr; in marvel_find_io7_with_error() 867 io->ports[i].pox_mult_err = csrs->POx_MULT_ERR.csr; in marvel_find_io7_with_error() [all …]
|
| /linux/Documentation/devicetree/bindings/pinctrl/ |
| H A D | abilis,tb10x-iomux.txt | 25 - GPIO ports: gpioa, gpiob, gpioc, gpiod, gpioe, gpiof, gpiog, 27 - Serial TS input ports: mis0, mis1, mis2, mis3, mis4, mis5, mis6, mis7 28 - Parallel TS input ports: mip1, mip3, mip5, mip7 29 - Serial TS output ports: mos0, mos1, mos2, mos3 33 - Smart card ports: stc0, stc1 34 - UART ports: uart0, uart1 35 - SPI ports: spi1, spi3 38 All other ports of the chip are not multiplexed and thus not managed by this 45 The named pin groups of GPIO ports can be used to define GPIO ranges as
|
| /linux/drivers/net/wan/ |
| H A D | pci200syn.c | 85 port_t ports[2]; member 88 #define get_port(card, port) (&(card)->ports[port]) 233 if (card->ports[i].card) in pci200_pci_remove_one() 234 unregister_hdlc_device(card->ports[i].netdev); in pci200_pci_remove_one() 248 if (card->ports[0].netdev) in pci200_pci_remove_one() 249 free_netdev(card->ports[0].netdev); in pci200_pci_remove_one() 250 if (card->ports[1].netdev) in pci200_pci_remove_one() 251 free_netdev(card->ports[1].netdev); in pci200_pci_remove_one() 291 card->ports[0].netdev = alloc_hdlcdev(&card->ports[0]); in pci200_pci_init_one() 292 card->ports[1].netdev = alloc_hdlcdev(&card->ports[1]); in pci200_pci_init_one() [all …]
|