Home
last modified time | relevance | path

Searched refs:ports (Results 1 – 200 of 714) sorted by relevance

1234

/linux-4.1.27/drivers/thunderbolt/
Dswitch.c264 if (tb_is_upstream_port(&sw->ports[next_port])) in get_switch_at_route()
266 if (!sw->ports[next_port].remote) in get_switch_at_route()
268 return get_switch_at_route(sw->ports[next_port].remote->sw, in get_switch_at_route()
319 if (tb_is_upstream_port(&sw->ports[i])) in tb_switch_free()
321 if (sw->ports[i].remote) in tb_switch_free()
322 tb_switch_free(sw->ports[i].remote->sw); in tb_switch_free()
323 sw->ports[i].remote = NULL; in tb_switch_free()
329 kfree(sw->ports); in tb_switch_free()
382 sw->ports = kcalloc(sw->config.max_port_number + 1, sizeof(*sw->ports), in tb_switch_alloc()
384 if (!sw->ports) in tb_switch_alloc()
[all …]
Deeprom.c300 &port->sw->ports[entry->dual_link_port_nr]; in tb_drom_parse_port_entry()
313 port = &sw->ports[header->index]; in tb_drom_parse_entry()
382 sw->ports[1].link_nr = 0; in tb_drom_read()
383 sw->ports[2].link_nr = 1; in tb_drom_read()
384 sw->ports[1].dual_link_port = &sw->ports[2]; in tb_drom_read()
385 sw->ports[2].dual_link_port = &sw->ports[1]; in tb_drom_read()
387 sw->ports[3].link_nr = 0; in tb_drom_read()
388 sw->ports[4].link_nr = 1; in tb_drom_read()
389 sw->ports[3].dual_link_port = &sw->ports[4]; in tb_drom_read()
390 sw->ports[4].dual_link_port = &sw->ports[3]; in tb_drom_read()
Dtb.c28 tb_scan_port(&sw->ports[i]); in tb_scan_switch()
83 struct tb_port *port = &sw->ports[i]; in tb_free_unplugged_children()
105 if (sw->ports[i].config.type == TB_TYPE_PCIE_UP) in tb_find_pci_up_port()
106 return &sw->ports[i]; in tb_find_pci_up_port()
120 if (tb_is_upstream_port(&sw->ports[i])) in tb_find_unused_down_port()
122 if (sw->ports[i].config.type != TB_TYPE_PCIE_DOWN) in tb_find_unused_down_port()
124 cap = tb_find_cap(&sw->ports[i], TB_CFG_PORT, TB_CAP_PCIE); in tb_find_unused_down_port()
127 res = tb_port_read(&sw->ports[i], &data, TB_CFG_PORT, cap, 1); in tb_find_unused_down_port()
132 return &sw->ports[i]; in tb_find_unused_down_port()
154 if (tb_is_upstream_port(&tb->root_switch->ports[i])) in tb_activate_pcie_devices()
[all …]
/linux-4.1.27/drivers/video/fbdev/omap2/dss/
Ddss-of.c35 struct device_node *ports; in omapdss_of_get_next_port() local
40 ports = of_get_child_by_name(parent, "ports"); in omapdss_of_get_next_port()
41 if (ports) in omapdss_of_get_next_port()
42 parent = ports; in omapdss_of_get_next_port()
47 of_node_put(ports); in omapdss_of_get_next_port()
49 struct device_node *ports; in omapdss_of_get_next_port() local
51 ports = of_get_parent(prev); in omapdss_of_get_next_port()
52 if (!ports) in omapdss_of_get_next_port()
56 port = of_get_next_child(ports, prev); in omapdss_of_get_next_port()
58 of_node_put(ports); in omapdss_of_get_next_port()
Ddss.c74 const enum omap_display_type *ports; member
823 .ports = omap2plus_ports,
832 .ports = omap34xx_ports,
841 .ports = omap2plus_ports,
850 .ports = omap2plus_ports,
859 .ports = omap2plus_ports,
868 .ports = omap2plus_ports,
877 .ports = dra7xx_ports,
962 port_type = dss.feat->ports[reg]; in dss_init_ports()
1006 port_type = dss.feat->ports[reg]; in dss_uninit_ports()
/linux-4.1.27/drivers/firewire/
Dcore-topology.c115 node = kzalloc(sizeof(*node) + port_count * sizeof(node->ports[0]), in fw_node_create()
154 if (node->ports[i] == NULL) in update_hop_count()
157 if (node->ports[i]->max_hops > max_child_hops) in update_hop_count()
158 max_child_hops = node->ports[i]->max_hops; in update_hop_count()
160 if (node->ports[i]->max_depth > depths[0]) { in update_hop_count()
162 depths[0] = node->ports[i]->max_depth; in update_hop_count()
163 } else if (node->ports[i]->max_depth > depths[1]) in update_hop_count()
164 depths[1] = node->ports[i]->max_depth; in update_hop_count()
267 node->ports[i] = child; in build_tree()
272 child->ports[child->color] = node; in build_tree()
[all …]
/linux-4.1.27/arch/cris/arch-v32/kernel/
Ddebugport.c25 struct dbg_port ports[] = variable
73 &ports[0];
75 &ports[1];
77 &ports[2];
79 &ports[3];
81 &ports[4];
89 &ports[0];
91 &ports[1];
93 &ports[2];
95 &ports[3];
[all …]
/linux-4.1.27/sound/core/seq/
Dseq_midi.c68 struct seq_midisynth *ports[SNDRV_RAWMIDI_DEVICES]; member
285 unsigned int p, ports; in snd_seq_midisynth_probe() local
305 ports = output_count; in snd_seq_midisynth_probe()
306 if (ports < input_count) in snd_seq_midisynth_probe()
307 ports = input_count; in snd_seq_midisynth_probe()
308 if (ports == 0) { in snd_seq_midisynth_probe()
312 if (ports > (256 / SNDRV_RAWMIDI_DEVICES)) in snd_seq_midisynth_probe()
313 ports = 256 / SNDRV_RAWMIDI_DEVICES; in snd_seq_midisynth_probe()
337 msynth = kcalloc(ports, sizeof(struct seq_midisynth), GFP_KERNEL); in snd_seq_midisynth_probe()
342 for (p = 0; p < ports; p++) { in snd_seq_midisynth_probe()
[all …]
Dseq_dummy.c67 static int ports = 1; variable
70 module_param(ports, int, 0444);
71 MODULE_PARM_DESC(ports, "number of ports to be created");
169 if (ports < 1) { in register_client()
170 pr_err("ALSA: seq_dummy: invalid number of ports %d\n", ports); in register_client()
181 for (i = 0; i < ports; i++) { in register_client()
/linux-4.1.27/Documentation/devicetree/bindings/pinctrl/
Dabilis,tb10x-iomux.txt25 - 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-4.1.27/drivers/scsi/
Dg_NCR5380.c256 unsigned int *ports; in generic_NCR5380_detect() local
327 ports = NULL; in generic_NCR5380_detect()
337 ports = ncr_53c400a_ports; in generic_NCR5380_detect()
341 ports = dtc_3181e_ports; in generic_NCR5380_detect()
346 if (ports) { in generic_NCR5380_detect()
358 for (i = 0; ports[i]; i++) { in generic_NCR5380_detect()
359 if (!request_region(ports[i], 16, "ncr53c80")) in generic_NCR5380_detect()
361 if (overrides[current_override].NCR5380_map_name == ports[i]) in generic_NCR5380_detect()
363 release_region(ports[i], 16); in generic_NCR5380_detect()
365 for (i = 0; ports[i]; i++) { in generic_NCR5380_detect()
[all …]
DNCR53c406a.c219 static unsigned short ports[] = { 0x230, 0x330, 0x280, 0x290, 0x330, 0x340, 0x300, 0x310, 0x348, 0x… variable
220 #define PORT_COUNT ARRAY_SIZE(ports)
487 if (!request_region(ports[i], 0x10, "NCR53c406a")) { in NCR53c406a_detect()
488 DEB(printk("NCR53c406a: port 0x%x in use\n", ports[i])); in NCR53c406a_detect()
490 VDEB(printk("NCR53c406a: port 0x%x available\n", ports[i])); in NCR53c406a_detect()
491 outb(C5_IMG, ports[i] + 0x0d); /* reg set 1 */ in NCR53c406a_detect()
492 …if ((inb(ports[i] + 0x0e) ^ inb(ports[i] + 0x0e)) == 7 && (inb(ports[i] + 0x0e) ^ inb(ports[i] + 0… in NCR53c406a_detect()
493 port_base = ports[i]; in NCR53c406a_detect()
498 release_region(ports[i], 0x10); in NCR53c406a_detect()
631 if (ports[i] == ints[1]) { in NCR53c406a_setup()
Daha152x.c2935 static unsigned short ports[] = { 0x340, 0x140 }; variable
3032 for (i = 0; i < ARRAY_SIZE(ports) && (setup->io_port != ports[i]); i++) in checksetup()
3035 if (i == ARRAY_SIZE(ports)) in checksetup()
3279 for (i = 0; i < ARRAY_SIZE(ports) && setup_count < 2; i++) { in aha152x_init()
3280 if ((setup_count == 1) && (setup[0].io_port == ports[i])) in aha152x_init()
3283 if (!request_region(ports[i], IO_RANGE, "aha152x")) { in aha152x_init()
3284 printk(KERN_ERR "aha152x: io port 0x%x busy.\n", ports[i]); in aha152x_init()
3288 if (aha152x_porttest(ports[i])) { in aha152x_init()
3292 (GETPORT(ports[i] + O_PORTA) << 8) + GETPORT(ports[i] + O_PORTB); in aha152x_init()
3293 } else if (tc1550_porttest(ports[i])) { in aha152x_init()
[all …]
/linux-4.1.27/arch/alpha/kernel/
Derr_marvel.c819 if (!io7->ports[i].enabled) in marvel_find_io7_with_error()
821 err_sum |= io7->ports[i].csrs->POx_ERR_SUM.csr; in marvel_find_io7_with_error()
856 io7_ioport_csrs *csrs = io7->ports[i].csrs; in marvel_find_io7_with_error()
858 if (!io7->ports[i].enabled) in marvel_find_io7_with_error()
861 io->ports[i].pox_err_sum = csrs->POx_ERR_SUM.csr; in marvel_find_io7_with_error()
862 io->ports[i].pox_tlb_err = csrs->POx_TLB_ERR.csr; in marvel_find_io7_with_error()
863 io->ports[i].pox_spl_cmplt = csrs->POx_SPL_COMPLT.csr; in marvel_find_io7_with_error()
864 io->ports[i].pox_trans_sum = csrs->POx_TRANS_SUM.csr; in marvel_find_io7_with_error()
865 io->ports[i].pox_first_err = csrs->POx_FIRST_ERR.csr; in marvel_find_io7_with_error()
866 io->ports[i].pox_mult_err = csrs->POx_MULT_ERR.csr; in marvel_find_io7_with_error()
[all …]
Dcore_marvel.c125 io7->ports[h].io7 = io7; in alloc_io7()
126 io7->ports[h].port = h; in alloc_io7()
127 io7->ports[h].enabled = 0; /* default to disabled */ in alloc_io7()
205 struct io7_port *io7_port = &io7->ports[port]; in io7_init_hose()
349 io7->ports[i].enabled = 1; in marvel_init_io7()
399 hose = io7->ports[port].hose; in marvel_find_console_vga_hose()
1080 if (!io7->ports[IO7_AGP_PORT].enabled) in marvel_agp_info()
1083 h = io7->ports[IO7_AGP_PORT].hose; in marvel_agp_info()
/linux-4.1.27/net/netfilter/
Dnf_conntrack_sane.c41 static u_int16_t ports[MAX_PORTS]; variable
43 module_param_array(ports, ushort, &ports_c, 0400);
183 sane[i][j].tuple.src.l3num, ports[i]); in nf_conntrack_sane_fini()
200 ports[ports_c++] = SANE_PORT; in nf_conntrack_sane_init()
209 sane[i][j].tuple.src.u.tcp.port = htons(ports[i]); in nf_conntrack_sane_init()
214 if (ports[i] == SANE_PORT) in nf_conntrack_sane_init()
217 sprintf(sane[i][j].name, "sane-%d", ports[i]); in nf_conntrack_sane_init()
221 sane[i][j].tuple.src.l3num, ports[i]); in nf_conntrack_sane_init()
226 sane[i][j].tuple.src.l3num, ports[i]); in nf_conntrack_sane_init()
Dnf_conntrack_tftp.c28 static unsigned short ports[MAX_PORTS]; variable
30 module_param_array(ports, ushort, &ports_c, 0400);
31 MODULE_PARM_DESC(ports, "Port numbers of TFTP servers");
120 ports[ports_c++] = TFTP_PORT; in nf_conntrack_tftp_init()
129 tftp[i][j].tuple.src.u.udp.port = htons(ports[i]); in nf_conntrack_tftp_init()
134 if (ports[i] == TFTP_PORT) in nf_conntrack_tftp_init()
143 tftp[i][j].tuple.src.l3num, ports[i]); in nf_conntrack_tftp_init()
Dnf_conntrack_irc.c27 static unsigned short ports[MAX_PORTS]; variable
49 module_param_array(ports, ushort, &ports_c, 0400);
50 MODULE_PARM_DESC(ports, "port numbers of IRC servers");
253 ports[ports_c++] = IRC_PORT; in nf_conntrack_irc_init()
257 irc[i].tuple.src.u.tcp.port = htons(ports[i]); in nf_conntrack_irc_init()
263 if (ports[i] == IRC_PORT) in nf_conntrack_irc_init()
272 irc[i].tuple.src.l3num, ports[i]); in nf_conntrack_irc_init()
Dxt_socket.c49 __be16 *ports, _ports[2]; in extract_icmp4_fields() local
77 ports = skb_header_pointer(skb, outside_hdrlen + in extract_icmp4_fields()
81 if (ports == NULL) in extract_icmp4_fields()
88 *lport = ports[0]; in extract_icmp4_fields()
90 *rport = ports[1]; in extract_icmp4_fields()
269 __be16 *ports, _ports[2]; in extract_icmp6_fields() local
298 ports = skb_header_pointer(skb, inside_hdrlen, in extract_icmp6_fields()
300 if (ports == NULL) in extract_icmp6_fields()
307 *lport = ports[0]; in extract_icmp6_fields()
309 *rport = ports[1]; in extract_icmp6_fields()
Dnf_conntrack_ftp.c42 static u_int16_t ports[MAX_PORTS]; variable
44 module_param_array(ports, ushort, &ports_c, 0400);
591 ftp[i][j].tuple.src.l3num, ports[i]); in nf_conntrack_ftp_fini()
608 ports[ports_c++] = FTP_PORT; in nf_conntrack_ftp_init()
617 ftp[i][j].tuple.src.u.tcp.port = htons(ports[i]); in nf_conntrack_ftp_init()
623 if (ports[i] == FTP_PORT) in nf_conntrack_ftp_init()
626 sprintf(ftp[i][j].name, "ftp-%d", ports[i]); in nf_conntrack_ftp_init()
630 ftp[i][j].tuple.src.l3num, ports[i]); in nf_conntrack_ftp_init()
635 ftp[i][j].tuple.src.l3num, ports[i]); in nf_conntrack_ftp_init()
Dxt_multiport.c38 s = minfo->ports[i]; in ports_match_v1()
42 e = minfo->ports[++i]; in ports_match_v1()
Dxt_hashlimit.c522 __be16 _ports[2], *ports; in hashlimit_init_dst() local
575 ports = skb_header_pointer(skb, protoff + poff, sizeof(_ports), in hashlimit_init_dst()
579 ports = _ports; in hashlimit_init_dst()
581 if (!ports) in hashlimit_init_dst()
584 dst->src_port = ports[0]; in hashlimit_init_dst()
586 dst->dst_port = ports[1]; in hashlimit_init_dst()
/linux-4.1.27/drivers/net/wan/
Dpci200syn.c94 port_t ports[2]; member
98 #define get_port(card, port) (&card->ports[port])
248 if (card->ports[i].card) in pci200_pci_remove_one()
249 unregister_hdlc_device(card->ports[i].netdev); in pci200_pci_remove_one()
263 if (card->ports[0].netdev) in pci200_pci_remove_one()
264 free_netdev(card->ports[0].netdev); in pci200_pci_remove_one()
265 if (card->ports[1].netdev) in pci200_pci_remove_one()
266 free_netdev(card->ports[1].netdev); in pci200_pci_remove_one()
306 card->ports[0].netdev = alloc_hdlcdev(&card->ports[0]); in pci200_pci_init_one()
307 card->ports[1].netdev = alloc_hdlcdev(&card->ports[1]); in pci200_pci_init_one()
[all …]
Dn2.c126 port_t ports[2]; member
147 #define get_port(card, port) ((card)->ports[port].valid ? \
148 &(card)->ports[port] : NULL)
308 if (card->ports[cnt].card) { in n2_destroy_card()
309 struct net_device *dev = port_to_dev(&card->ports[cnt]); in n2_destroy_card()
323 if (card->ports[0].dev) in n2_destroy_card()
324 free_netdev(card->ports[0].dev); in n2_destroy_card()
325 if (card->ports[1].dev) in n2_destroy_card()
326 free_netdev(card->ports[1].dev); in n2_destroy_card()
364 card->ports[0].dev = alloc_hdlcdev(&card->ports[0]); in n2_run()
[all …]
Dwanxl.c84 struct port ports[0]; /* 1 - 4 port structures follow */ member
206 struct port *port = &card->ports[desc->stat & in wanxl_rx_intr()
260 wanxl_tx_intr(&card->ports[i]); in wanxl_intr()
262 wanxl_cable_intr(&card->ports[i]); in wanxl_intr()
518 unregister_hdlc_device(card->ports[i].dev); in wanxl_pci_remove_one()
519 free_netdev(card->ports[i].dev); in wanxl_pci_remove_one()
569 int i, ports, alloc_size; in wanxl_pci_init_one() local
599 case PCI_DEVICE_ID_SBE_WANXL100: ports = 1; break; in wanxl_pci_init_one()
600 case PCI_DEVICE_ID_SBE_WANXL200: ports = 2; break; in wanxl_pci_init_one()
601 default: ports = 4; in wanxl_pci_init_one()
[all …]
Dpc300too.c110 port_t ports[2]; member
115 (&(card)->ports[port]) : (NULL))
269 if (card->ports[i].card) in pc300_pci_remove_one()
270 unregister_hdlc_device(card->ports[i].netdev); in pc300_pci_remove_one()
284 if (card->ports[0].netdev) in pc300_pci_remove_one()
285 free_netdev(card->ports[0].netdev); in pc300_pci_remove_one()
286 if (card->ports[1].netdev) in pc300_pci_remove_one()
287 free_netdev(card->ports[1].netdev); in pc300_pci_remove_one()
372 if (!(card->ports[i].netdev = alloc_hdlcdev(&card->ports[i]))) { in pc300_pci_init_one()
445 port_t *port = &card->ports[i]; in pc300_pci_init_one()
Dfarsync.c461 struct fst_port_info ports[FST_MAX_PORTS]; member
1339 for (pi = 0, port = card->ports; pi < card->nports; pi++, port++) { in do_bottom_half_tx()
1438 for (pi = 0, port = card->ports; pi < card->nports; pi++, port++) { in do_bottom_half_rx()
1559 port = &card->ports[event & 0x03]; in fst_intr()
2377 err = register_hdlc_device(card->ports[i].dev); in fst_init_card()
2382 unregister_hdlc_device(card->ports[i].dev); in fst_init_card()
2388 port_to_dev(&card->ports[0])->name, in fst_init_card()
2389 port_to_dev(&card->ports[card->nports - 1])->name, in fst_init_card()
2495 struct net_device *dev = alloc_hdlcdev(&card->ports[i]); in fst_add_one()
2499 free_netdev(card->ports[i].dev); in fst_add_one()
[all …]
/linux-4.1.27/sound/oss/
Dad1848.h14 int ad1848_init(char *name, struct resource *ports, int irq, int dma_playback,
18 int ad1848_detect (struct resource *ports, int *flags, int *osp);
21 void attach_ms_sound(struct address_info * hw_config, struct resource *ports, struct module * owner…
23 int probe_ms_sound(struct address_info *hw_config, struct resource *ports);
Dtrix.c128 struct resource *ports; in init_trix_wss() local
179 ports = request_region(hw_config->io_base + 4, 4, "ad1848"); in init_trix_wss()
180 if (!ports) { in init_trix_wss()
217 ret = ad1848_detect(ports, NULL, hw_config->osp); in init_trix_wss()
248 hw_config->slots[0] = ad1848_init("AudioTrix Pro", ports, in init_trix_wss()
Dpss.c742 struct resource *ports; in probe_pss_mpu() local
748 ports = request_region(hw_config->io_base, 2, "mpu401"); in probe_pss_mpu()
750 if (!ports) { in probe_pss_mpu()
781 if (!probe_mpu401(hw_config, ports)) in probe_pss_mpu()
1034 struct resource *ports; in probe_pss_mss() local
1044 ports = request_region(hw_config->io_base + 4, 4, "ad1848"); in probe_pss_mss()
1045 if (!ports) { in probe_pss_mss()
1075 if (!probe_ms_sound(hw_config, ports)) in probe_pss_mss()
1092 attach_ms_sound(hw_config, ports, THIS_MODULE); /* Slot 0 */ in probe_pss_mss()
Dad1848.c1533 int ad1848_detect(struct resource *ports, int *ad_flags, int *osp) in ad1848_detect() argument
1543 int io_base = ports->start; in ad1848_detect()
1942 int ad1848_init (char *name, struct resource *ports, int irq, int dma_playback, in ad1848_init() argument
1977 rename_region(ports, devc->name); in ad1848_init()
2505 int probe_ms_sound(struct address_info *hw_config, struct resource *ports) in probe_ms_sound() argument
2514 return ad1848_detect(ports, NULL, hw_config->osp); in probe_ms_sound()
2540 if (!(ret = ad1848_detect(ports, NULL, hw_config->osp))) in probe_ms_sound()
2553 if (!(ret = ad1848_detect(ports, NULL, hw_config->osp))) in probe_ms_sound()
2588 return ad1848_detect(ports, NULL, hw_config->osp); in probe_ms_sound()
2591 void attach_ms_sound(struct address_info *hw_config, struct resource *ports, struct module *owner) in attach_ms_sound() argument
[all …]
Dmpu401.h9 int probe_mpu401(struct address_info *hw_config, struct resource *ports);
/linux-4.1.27/drivers/gpio/
Dgpio-dwapb.c81 struct dwapb_gpio_port *ports; member
94 struct bgpio_chip *bgc = &gpio->ports[0].bgc; in dwapb_read()
103 struct bgpio_chip *bgc = &gpio->ports[0].bgc; in dwapb_write()
122 if (gpio_get_value(gpio->ports[0].bgc.gc.base + offs)) in dwapb_toggle_trigger()
165 struct bgpio_chip *bgc = &gpio->ports[0].bgc; in dwapb_irq_enable()
180 struct bgpio_chip *bgc = &gpio->ports[0].bgc; in dwapb_irq_disable()
195 struct bgpio_chip *bgc = &gpio->ports[0].bgc; in dwapb_irq_reqres()
209 struct bgpio_chip *bgc = &gpio->ports[0].bgc; in dwapb_irq_relres()
218 struct bgpio_chip *bgc = &gpio->ports[0].bgc; in dwapb_irq_set_type()
377 struct dwapb_gpio_port *port = &gpio->ports[0]; in dwapb_irq_teardown()
[all …]
Dgpio-it8761e.c33 static u8 ports[2] = { 0x2e, 0x4e }; variable
173 for (i = 0; i < ARRAY_SIZE(ports); i++) { in it8761e_gpio_init()
175 enter_conf_mode(ports[i]); in it8761e_gpio_init()
177 id = (read_reg(CHIP_ID_HIGH_BYTE, ports[i]) << 8) + in it8761e_gpio_init()
178 read_reg(CHIP_ID_LOW_BYTE, ports[i]); in it8761e_gpio_init()
180 exit_conf_mode(ports[i]); in it8761e_gpio_init()
184 port = ports[i]; in it8761e_gpio_init()
/linux-4.1.27/drivers/input/serio/
Dps2mult.c40 struct ps2mult_port ports[PS2MULT_NUM_PORTS]; member
145 serio->port_data = &psm->ports[i]; in ps2mult_create_port()
147 psm->ports[i].serio = serio; in ps2mult_create_port()
161 ps2mult_select_port(psm, &psm->ports[PS2MULT_KBD_PORT]); in ps2mult_reset()
183 psm->ports[i].sel = ps2mult_controls[i]; in ps2mult_connect()
189 psm->in_port = psm->out_port = &psm->ports[PS2MULT_KBD_PORT]; in ps2mult_connect()
199 struct serio *s = psm->ports[i].serio; in ps2mult_connect()
209 kfree(psm->ports[i].serio); in ps2mult_connect()
275 psm->in_port = &psm->ports[PS2MULT_KBD_PORT]; in ps2mult_interrupt()
280 psm->in_port = &psm->ports[PS2MULT_MOUSE_PORT]; in ps2mult_interrupt()
DKconfig122 This driver provides support for the PS/2 ports on PA-RISC machines
162 keyboard and mice ports.
172 PS/2 ports.
188 tristate "Raw access to serio ports"
190 Say Y here if you want to have raw access to serio ports, such as
191 AUX ports on i8042 keyboard controller. Each serio port that is
216 Say Y here if you have Altera University Program PS/2 ports.
/linux-4.1.27/arch/cris/arch-v10/drivers/
Dsync_serial.c193 static struct sync_port ports[] = { variable
260 ports[0].enabled = 0; in etrax_sync_serial_init()
261 ports[1].enabled = 0; in etrax_sync_serial_init()
300 ports[0].enabled = 1; in etrax_sync_serial_init()
304 ports[0].use_dma = 1; in etrax_sync_serial_init()
306 ports[0].use_dma = 0; in etrax_sync_serial_init()
312 ports[1].enabled = 1; in etrax_sync_serial_init()
316 ports[1].use_dma = 1; in etrax_sync_serial_init()
318 ports[1].use_dma = 0; in etrax_sync_serial_init()
346 struct sync_port *port = &ports[portnbr]; in initialize_port()
[all …]
/linux-4.1.27/drivers/staging/fwserial/
DKconfig16 int "Maximum number of serial ports supported"
19 Set this to the maximum number of serial ports you want the
23 int "Maximum number of serial ports supported per adapter"
27 Set this to the maximum number of serial ports each firewire
28 adapter supports. The actual number of serial ports registered
Dfwserial.c859 serial->ports[j]->index = i; in fwtty_ports_add()
860 port_table[i] = serial->ports[j]; in fwtty_ports_add()
873 struct fwtty_port **ports = serial->ports; in fwserial_destroy() local
874 int j, i = ports[0]->index; in fwserial_destroy()
880 port_table_corrupt |= port_table[i] != ports[j]; in fwserial_destroy()
882 i, port_table[i], j, ports[j]); in fwserial_destroy()
889 fw_core_remove_address_handler(&ports[j]->rx_handler); in fwserial_destroy()
890 tty_port_destroy(&ports[j]->port); in fwserial_destroy()
891 kfree(ports[j]); in fwserial_destroy()
1498 port = fwtty_port_get(serial->ports[i]->index); in fwtty_debugfs_stats_show()
[all …]
/linux-4.1.27/drivers/net/arcnet/
Dcom90xx.c119 int ports[(0x3f0 - 0x200) / 16 + 1] = in com90xx_probe() local
146 ports[numports++] = io; in com90xx_probe()
149 ports[numports++] = count; in com90xx_probe()
160 for (port = &ports[0]; port - ports < numports; port++) { in com90xx_probe()
175 *port-- = ports[--numports]; in com90xx_probe()
183 *port-- = ports[--numports]; in com90xx_probe()
205 for (port = &ports[0]; port < ports + numports; port++) { in com90xx_probe()
280 for (port = &ports[0]; port < ports + numports; port++) in com90xx_probe()
309 for (port = &ports[0]; port < ports + numports; port++) { in com90xx_probe()
328 *port-- = ports[--numports]; in com90xx_probe()
[all …]
/linux-4.1.27/drivers/rtc/
Drtc-cmos.c648 cmos_do_probe(struct device *dev, struct resource *ports, int rtc_irq) in cmos_do_probe() argument
660 if (!ports) in cmos_do_probe()
669 ports = request_region(ports->start, resource_size(ports), in cmos_do_probe()
672 ports = request_mem_region(ports->start, resource_size(ports), in cmos_do_probe()
674 if (!ports) { in cmos_do_probe()
680 cmos_rtc.iomem = ports; in cmos_do_probe()
697 if (can_bank2 && ports->end > (ports->start + 1)) in cmos_do_probe()
738 rename_region(ports, dev_name(&cmos_rtc.rtc->dev)); in cmos_do_probe()
822 release_region(ports->start, resource_size(ports)); in cmos_do_probe()
824 release_mem_region(ports->start, resource_size(ports)); in cmos_do_probe()
[all …]
/linux-4.1.27/drivers/ata/
Dpata_sil680.c387 host->ports[0]->ioaddr.bmdma_addr = mmio_base + 0x00; in sil680_init_one()
388 host->ports[0]->ioaddr.cmd_addr = mmio_base + 0x80; in sil680_init_one()
389 host->ports[0]->ioaddr.ctl_addr = mmio_base + 0x8a; in sil680_init_one()
390 host->ports[0]->ioaddr.altstatus_addr = mmio_base + 0x8a; in sil680_init_one()
391 ata_sff_std_ports(&host->ports[0]->ioaddr); in sil680_init_one()
392 host->ports[1]->ioaddr.bmdma_addr = mmio_base + 0x08; in sil680_init_one()
393 host->ports[1]->ioaddr.cmd_addr = mmio_base + 0xc0; in sil680_init_one()
394 host->ports[1]->ioaddr.ctl_addr = mmio_base + 0xca; in sil680_init_one()
395 host->ports[1]->ioaddr.altstatus_addr = mmio_base + 0xca; in sil680_init_one()
396 ata_sff_std_ports(&host->ports[1]->ioaddr); in sil680_init_one()
Dpata_cs5520.c186 ioaddr = &host->ports[0]->ioaddr; in cs5520_init_one()
193 ata_port_desc(host->ports[0], in cs5520_init_one()
195 ata_port_pbar_desc(host->ports[0], 4, 0, "bmdma"); in cs5520_init_one()
197 ioaddr = &host->ports[1]->ioaddr; in cs5520_init_one()
204 ata_port_desc(host->ports[1], in cs5520_init_one()
206 ata_port_pbar_desc(host->ports[1], 4, 8, "bmdma"); in cs5520_init_one()
216 struct ata_port *ap = host->ports[i]; in cs5520_init_one()
Dsata_uli.c192 ioaddr = &host->ports[2]->ioaddr; in uli_init_one()
201 ata_port_desc(host->ports[2], in uli_init_one()
207 ioaddr = &host->ports[3]->ioaddr; in uli_init_one()
216 ata_port_desc(host->ports[2], in uli_init_one()
Dsata_sis.c286 struct ata_port *ap = host->ports[i]; in sis_init_one()
304 host->ports[0]->ioaddr.scr_addr = mmio; in sis_init_one()
305 host->ports[1]->ioaddr.scr_addr = mmio + port2_start; in sis_init_one()
Dsata_nv.c737 port0 = ap->host->ports[0]->private_data; in nv_adma_slave_config()
738 port1 = ap->host->ports[1]->private_data; in nv_adma_slave_config()
739 sdev0 = ap->host->ports[0]->link.device[0].sdev; in nv_adma_slave_config()
740 sdev1 = ap->host->ports[1]->link.device[0].sdev; in nv_adma_slave_config()
913 struct ata_port *ap = host->ports[i]; in nv_adma_interrupt()
1029 struct nv_adma_port_priv *pp = host->ports[0]->private_data; in nv_adma_interrupt()
1031 pp = host->ports[1]->private_data; in nv_adma_interrupt()
1107 pp = ap->host->ports[0]->private_data; in nv_adma_irq_clear()
1109 pp = ap->host->ports[1]->private_data; in nv_adma_irq_clear()
1324 nv_adma_setup_port(host->ports[i]); in nv_adma_host_init()
[all …]
Dsata_via.c475 host->ports[0]->ioaddr.scr_addr = svia_scr_addr(host->iomap[5], 0); in vt6420_prepare_host()
476 host->ports[1]->ioaddr.scr_addr = svia_scr_addr(host->iomap[5], 1); in vt6420_prepare_host()
503 vt6421_init_addrs(host->ports[i]); in vt6421_prepare_host()
534 ata_slave_link_init(host->ports[i]); in vt8251_prepare_host()
Data_piix.c1454 struct ata_link *link0 = &host->ports[0]->link; in piix_init_sidpr()
1467 if (!(host->ports[0]->flags & PIIX_FLAG_SIDPR)) in piix_init_sidpr()
1503 struct ata_port *ap = host->ports[i]; in piix_init_sidpr()
1729 if (host->ports[0]->ops == &piix_sidpr_sata_ops) in piix_init_one()
1749 host->ports[0]->mwdma_mask = 0; in piix_init_one()
1750 host->ports[0]->udma_mask = 0; in piix_init_one()
1751 host->ports[1]->mwdma_mask = 0; in piix_init_one()
1752 host->ports[1]->udma_mask = 0; in piix_init_one()
/linux-4.1.27/Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/qe/
Dpar_io.txt3 This node configures Parallel I/O ports for CPUs with QE support.
5 device that using parallel I/O ports, a child node should be created.
12 - num-ports : number of Parallel I/O ports
20 num-ports = <7>;
/linux-4.1.27/arch/arm/mach-omap2/
Di2c.c113 int ports = 0; in omap_i2c_nr_ports() local
116 ports = 2; in omap_i2c_nr_ports()
118 ports = 3; in omap_i2c_nr_ports()
120 ports = 4; in omap_i2c_nr_ports()
121 return ports; in omap_i2c_nr_ports()
/linux-4.1.27/Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/
Dgpio.txt4 On CPM1 devices, all ports are using slightly different register layouts.
5 Ports A, C and D are 16bit ports and Ports B and E are 32bit ports.
7 On CPM2 devices, all ports are 32bit ports and use a common register layout.
/linux-4.1.27/drivers/media/pci/saa7164/
Dsaa7164-core.c621 struct saa7164_port *porta = &dev->ports[SAA7164_PORT_TS1]; in saa7164_irq()
622 struct saa7164_port *portb = &dev->ports[SAA7164_PORT_TS2]; in saa7164_irq()
623 struct saa7164_port *portc = &dev->ports[SAA7164_PORT_ENC1]; in saa7164_irq()
624 struct saa7164_port *portd = &dev->ports[SAA7164_PORT_ENC2]; in saa7164_irq()
625 struct saa7164_port *porte = &dev->ports[SAA7164_PORT_VBI1]; in saa7164_irq()
626 struct saa7164_port *portf = &dev->ports[SAA7164_PORT_VBI2]; in saa7164_irq()
914 port = &dev->ports[portnr]; in saa7164_port_init()
1309 if (saa7164_dvb_register(&dev->ports[SAA7164_PORT_TS1]) < 0) { in saa7164_initdev()
1317 if (saa7164_dvb_register(&dev->ports[SAA7164_PORT_TS2]) < 0) { in saa7164_initdev()
1325 if (saa7164_encoder_register(&dev->ports[SAA7164_PORT_ENC1]) < 0) { in saa7164_initdev()
[all …]
Dsaa7164-api.c762 p = &dev->ports[SAA7164_PORT_ENC1]; in saa7164_api_initialize_dif()
764 p = &dev->ports[SAA7164_PORT_ENC2]; in saa7164_api_initialize_dif()
769 p = &dev->ports[SAA7164_PORT_ENC1]; in saa7164_api_initialize_dif()
771 p = &dev->ports[SAA7164_PORT_ENC2]; in saa7164_api_initialize_dif()
1085 tsport = &dev->ports[SAA7164_PORT_TS1]; in saa7164_api_dump_subdevs()
1087 tsport = &dev->ports[SAA7164_PORT_TS2]; in saa7164_api_dump_subdevs()
1097 encport = &dev->ports[SAA7164_PORT_ENC1]; in saa7164_api_dump_subdevs()
1099 encport = &dev->ports[SAA7164_PORT_ENC2]; in saa7164_api_dump_subdevs()
1109 vbiport = &dev->ports[SAA7164_PORT_VBI1]; in saa7164_api_dump_subdevs()
1111 vbiport = &dev->ports[SAA7164_PORT_VBI2]; in saa7164_api_dump_subdevs()
[all …]
/linux-4.1.27/include/linux/platform_data/
Dusb-ohci-s3c2410.h31 void (*report_oc)(struct s3c2410_hcd_info *, int ports);
34 static void inline s3c2410_usb_report_oc(struct s3c2410_hcd_info *info, int ports) in s3c2410_usb_report_oc() argument
37 (info->report_oc)(info, ports); in s3c2410_usb_report_oc()
Datmel.h54 u8 ports; /* number of ports on root hub */ member
/linux-4.1.27/drivers/net/team/
DKconfig21 Basic mode where packets are transmitted always by all suitable ports.
23 All added ports are setup to have team's device address.
35 All added ports are setup to have team's device address.
47 All added ports are setup to have team's device address.
56 Only one port is active at a time and the rest of ports are used
59 Mac addresses of ports are not modified. Userspace is responsible
/linux-4.1.27/include/net/
Dflow.h39 } ports; member
75 #define fl4_sport uli.ports.sport
76 #define fl4_dport uli.ports.dport
129 #define fl6_sport uli.ports.sport
130 #define fl6_dport uli.ports.dport
149 #define fld_sport uli.ports.sport
150 #define fld_dport uli.ports.dport
Dinet6_hashtables.h37 const u32 ports = (((u32)lport) << 16) | (__force u32)fport; in __inet6_ehashfn() local
38 return jhash_3words(lhash, fhash, ports, initval); in __inet6_ehashfn()
Ddsa.h166 struct net_device *ports[DSA_MAX_PORTS]; member
176 return ds->phys_port_mask & (1 << p) && ds->ports[p]; in dsa_is_port_initialized()
Dflow_keys.h22 __be32 ports; member
/linux-4.1.27/Documentation/devicetree/bindings/ata/
Dmarvell.txt7 - nr-ports : Number of SATA ports in use.
21 nr-ports = <2>;
Dahci-platform.txt33 - ports-implemented : Mask that indicates which ports that the HBA supports
/linux-4.1.27/Documentation/infiniband/
Dsysfs.txt10 In addition, there is a "ports" subdirectory, with one subdirectory
14 /sys/class/infiniband/mthca0/ports/1
15 /sys/class/infiniband/mthca0/ports/2
18 0; no subdirectory is created for normal switch ports)
56 ports/1/pkeys/10 contains the value at index 10 in port 1's P_Key
/linux-4.1.27/drivers/gpu/drm/i915/
Dintel_dsi.c306 for_each_dsi_port(port, intel_dsi->ports) { in intel_dsi_port_enable()
311 if (intel_dsi->ports == ((1 << PORT_A) | (1 << PORT_C))) { in intel_dsi_port_enable()
332 for_each_dsi_port(port, intel_dsi->ports) { in intel_dsi_port_disable()
358 for_each_dsi_port(port, intel_dsi->ports) { in intel_dsi_device_ready()
389 for_each_dsi_port(port, intel_dsi->ports) in intel_dsi_enable()
393 for_each_dsi_port(port, intel_dsi->ports) in intel_dsi_enable()
399 for_each_dsi_port(port, intel_dsi->ports) in intel_dsi_enable()
439 for_each_dsi_port(port, intel_dsi->ports) in intel_dsi_pre_enable()
466 for_each_dsi_port(port, intel_dsi->ports) in intel_dsi_pre_disable()
483 for_each_dsi_port(port, intel_dsi->ports) in intel_dsi_disable()
[all …]
/linux-4.1.27/drivers/ssb/
Ddriver_extif.c55 int ssb_extif_serial_init(struct ssb_extif *extif, struct ssb_serial_port *ports) in ssb_extif_serial_init() argument
70 if (serial_exists(uart_regs) && ports) { in ssb_extif_serial_init()
74 ports[i].regs = uart_regs; in ssb_extif_serial_init()
75 ports[i].irq = 2; in ssb_extif_serial_init()
76 ports[i].baud_base = 13500000; in ssb_extif_serial_init()
77 ports[i].reg_shift = 0; in ssb_extif_serial_init()
Ddriver_chipcommon.c602 struct ssb_serial_port *ports) in ssb_chipco_serial_init() argument
689 ports[i].regs = uart_regs; in ssb_chipco_serial_init()
690 ports[i].irq = irq; in ssb_chipco_serial_init()
691 ports[i].baud_base = baud_base; in ssb_chipco_serial_init()
692 ports[i].reg_shift = 0; in ssb_chipco_serial_init()
/linux-4.1.27/arch/arm/boot/dts/
Dhip04.dtsi350 ports {
354 /* replicator output ports */
386 ports {
390 /* replicator output ports */
422 ports {
426 /* replicator output ports */
458 ports {
462 /* replicator output ports */
494 ports {
507 /* funnel input ports */
[all …]
Dr8a7779-marzen.dts76 ports {
108 ports {
141 ports {
Dkirkwood-ns2.dts19 nr-ports = <1>;
Dkirkwood-is2.dts19 nr-ports = <1>;
Dat91-ariag25.dts127 * Change to "okay" if you need additional serial ports
161 num-ports = <3>;
Darmada-388.dtsi42 * SATA ports. So we can reuse the dtsi of the Armada 385, override the pinctrl
44 * the 2 other ports.
Dkirkwood-ns2lite.dts19 nr-ports = <1>;
Dkirkwood-ns2max.dts19 nr-ports = <2>;
Dkirkwood-sheevaplug-esata.dts20 nr-ports = <2>;
Dkirkwood-ns2mini.dts20 nr-ports = <1>;
Devk-pro3.dts50 num-ports = <2>;
/linux-4.1.27/drivers/tty/
Dpty.c376 struct tty_port *ports[2]; in pty_common_install() local
384 ports[0] = kmalloc(sizeof **ports, GFP_KERNEL); in pty_common_install()
385 ports[1] = kmalloc(sizeof **ports, GFP_KERNEL); in pty_common_install()
386 if (!ports[0] || !ports[1]) in pty_common_install()
426 tty_port_init(ports[0]); in pty_common_install()
427 tty_port_init(ports[1]); in pty_common_install()
428 tty_buffer_set_limit(ports[0], 8192); in pty_common_install()
429 tty_buffer_set_limit(ports[1], 8192); in pty_common_install()
430 o_tty->port = ports[0]; in pty_common_install()
431 tty->port = ports[1]; in pty_common_install()
[all …]
Dmxser.c275 struct mxser_port ports[MXSER_PORTS_PER_BOARD]; member
1012 info = &mxser_boards[line / MXSER_PORTS_PER_BOARD].ports[line % MXSER_PORTS_PER_BOARD]; in mxser_open()
1504 if (mxser_boards[i].ports[j].ioaddr) in mxser_ioctl_special()
1517 ip = &mxser_boards[i].ports[j]; in mxser_ioctl_special()
1564 ip = &mxser_boards[i].ports[j]; in mxser_ioctl_special()
2248 port = &brd->ports[i]; in mxser_interrupt()
2358 brd->vector >= brd->ports[0].ioaddr && in mxser_overlapping_vector()
2359 brd->vector < brd->ports[0].ioaddr + 8 * brd->info->nports; in mxser_overlapping_vector()
2378 release_region(brd->ports[0].ioaddr, 8 * brd->info->nports); in mxser_release_ISA_res()
2390 brd->ports[0].max_baud); in mxser_initbrd()
[all …]
Dmoxa.c112 struct moxa_port *ports; member
321 p = moxa_boards[i].ports; in moxa_ioctl()
350 p = moxa_boards[i].ports; in moxa_ioctl()
676 port = brd->ports; in moxa_load_code()
694 port = brd->ports; in moxa_load_code()
841 brd->ports = kcalloc(MAX_PORTS_PER_BOARD, sizeof(*brd->ports), in moxa_init_board()
843 if (brd->ports == NULL) { in moxa_init_board()
849 for (i = 0, p = brd->ports; i < MAX_PORTS_PER_BOARD; i++, p++) { in moxa_init_board()
893 tty_port_register_device(&brd->ports[i].port, moxaDriver, in moxa_init_board()
899 tty_port_destroy(&brd->ports[i].port); in moxa_init_board()
[all …]
Dmips_ejtag_fdc.c150 struct mips_ejtag_fdc_tty_port ports[NUM_TTY_CHANNELS]; member
427 dport = &priv->ports[chan]; in mips_ejtag_fdc_put_chan()
523 dport = &priv->ports[priv->xmit_next]; in mips_ejtag_fdc_put()
573 dport = &priv->ports[channel]; in mips_ejtag_fdc_handle()
768 tty->driver_data = &priv->ports[tty->index]; in mips_ejtag_fdc_tty_install()
769 return tty_port_install(&priv->ports[tty->index].port, driver, tty); in mips_ejtag_fdc_tty_install()
938 dport = &priv->ports[nport]; in mips_ejtag_fdc_tty_probe()
1041 dport = &priv->ports[nport]; in mips_ejtag_fdc_tty_probe()
1073 dport = &priv->ports[nport]; in mips_ejtag_fdc_tty_remove()
/linux-4.1.27/Documentation/devicetree/bindings/serial/
Dsamsung_uart.txt9 - "samsung,s3c2410-uart" - compatible with ports present on S3C2410 SoC,
10 - "samsung,s3c2412-uart" - compatible with ports present on S3C2412 SoC,
11 - "samsung,s3c2440-uart" - compatible with ports present on S3C2440 SoC,
12 - "samsung,s3c6400-uart" - compatible with ports present on S3C6400 SoC,
13 - "samsung,s5pv210-uart" - compatible with ports present on S5PV210 SoC.
/linux-4.1.27/Documentation/hwmon/
Dit877 Addresses scanned: from Super I/O config space (8 I/O ports)
11 Addresses scanned: from Super I/O config space (8 I/O ports)
15 Addresses scanned: from Super I/O config space (8 I/O ports)
19 Addresses scanned: from Super I/O config space (8 I/O ports)
23 Addresses scanned: from Super I/O config space (8 I/O ports)
27 Addresses scanned: from Super I/O config space (8 I/O ports)
31 Addresses scanned: from Super I/O config space (8 I/O ports)
35 Addresses scanned: from Super I/O config space (8 I/O ports)
39 Addresses scanned: from Super I/O config space (8 I/O ports)
43 Addresses scanned: from Super I/O config space (8 I/O ports)
[all …]
/linux-4.1.27/arch/cris/arch-v10/kernel/
Ddebugport.c41 struct dbg_port ports[]= variable
107 &ports[0];
109 &ports[1];
111 &ports[2];
113 &ports[3];
120 &ports[0];
122 &ports[1];
124 &ports[2];
126 &ports[3];
384 port = &ports[co->index]; in console_setup()
/linux-4.1.27/drivers/tty/serial/8250/
D8250_acorn.c37 int ports[MAX_PORTS]; member
77 info->ports[i] = serial8250_register_8250_port(&uart); in serial_card_probe()
91 if (info->ports[i] > 0) in serial_card_remove()
92 serial8250_unregister_port(info->ports[i]); in serial_card_remove()
DKconfig11 serial ports. The standard answer is Y. People who might say N
21 non-standard serial ports, since the configuration information will
33 modems and similar devices connecting to the standard serial ports.
116 Note that serial ports on NetMos 9835 Multi-I/O cards are handled
139 int "Maximum number of 8250/16550 serial ports"
143 Set this to the number of serial ports you want the driver
144 to support. This includes any ports discovered via ACPI or
145 PCI enumeration and any ports that may be added at run-time
149 int "Number of 8250/16550 serial ports to register at runtime"
154 Set this to the maximum number of serial ports you want
[all …]
/linux-4.1.27/drivers/usb/gadget/function/
Du_serial.c125 } ports[MAX_U_SERIAL_PORTS]; variable
727 mutex_lock(&ports[port_num].lock); in gs_open()
728 port = ports[port_num].port; in gs_open()
750 mutex_unlock(&ports[port_num].lock); in gs_open()
1032 mutex_lock(&ports[port_num].lock); in gs_port_alloc()
1033 if (ports[port_num].port) { in gs_port_alloc()
1057 ports[port_num].port = port; in gs_port_alloc()
1059 mutex_unlock(&ports[port_num].lock); in gs_port_alloc()
1087 mutex_lock(&ports[port_num].lock); in gserial_free_line()
1088 if (WARN_ON(!ports[port_num].port)) { in gserial_free_line()
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/usb/
Dusb3503.txt10 - disabled-ports: Should specify the ports unused.
13 Do not describe this property if all ports have to be enabled.
32 disabled-ports = <2 3>;
Datmel-usb.txt8 - num-ports: Number of ports.
18 num-ports = <2>;
/linux-4.1.27/Documentation/devicetree/bindings/
Dgraph.txt14 have multiple specifiable ports, each of which can be linked to one or more
15 ports of other devices.
23 Here the ports describe data interfaces, and the links between them are
27 Organisation of ports and endpoints
66 All 'port' nodes can be grouped under an optional 'ports' node, which
73 ports {
95 containing ports.
/linux-4.1.27/drivers/net/wireless/mwifiex/
Dsdio.h117 a->mpa_tx.ports |= (1<<(a->mpa_tx.pkt_cnt)); \
119 a->mpa_tx.ports |= (1<<(a->mpa_tx.pkt_cnt+1+ \
133 a->mpa_tx.ports = 0; \
152 a->mpa_rx.ports = 0; \
162 u32 ports; member
173 u32 ports; member
584 card->mpa_rx.ports |= (1 << port); in mp_rx_aggr_setup()
587 card->mpa_rx.ports |= 1 << (card->mpa_rx.pkt_cnt); in mp_rx_aggr_setup()
589 card->mpa_rx.ports |= 1 << (card->mpa_rx.pkt_cnt + 1); in mp_rx_aggr_setup()
/linux-4.1.27/drivers/bus/
Darm-cci.c1066 static struct cci_ace_port *ports; variable
1122 ace_match = ports[i].type == type; in __cci_ace_get_port()
1123 if (ace_match && cci_portn == ports[i].dn) in __cci_ace_get_port()
1188 void __iomem *base = ports[port].base; in cci_port_control()
1372 if (port >= nb_cci_ports || ports[port].type == ACE_INVALID_PORT) in __cci_control_port_by_index()
1380 if (ports[port].type == ACE_PORT) in __cci_control_port_by_index()
1409 ports = kcalloc(nb_cci_ports, sizeof(*ports), GFP_KERNEL); in cci_probe_ports()
1410 if (!ports) in cci_probe_ports()
1437 ports[i].base = ioremap(res.start, resource_size(&res)); in cci_probe_ports()
1438 ports[i].phys = res.start; in cci_probe_ports()
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/powerpc/fsl/
Dfman.txt18 Due to the fact that the FMan is an aggregation of sub-engines (ports, MACs,
151 The Frame Manager (FMan) supports several types of hardware ports:
163 - "fsl,fman-v2-port-oh" for FManV2 OH ports
164 - "fsl,fman-v2-port-rx" for FManV2 RX ports
165 - "fsl,fman-v2-port-tx" for FManV2 TX ports
166 - "fsl,fman-v3-port-oh" for FManV3 OH ports
167 - "fsl,fman-v3-port-rx" for FManV3 RX ports
168 - "fsl,fman-v3-port-tx" for FManV3 TX ports
180 FMan memory map). The first 4 KB in the FMan hardware ports
183 ports.
[all …]
/linux-4.1.27/net/core/
Dflow_dissector.c51 __be32 *ports, _ports; in __skb_flow_get_ports() local
53 ports = __skb_header_pointer(skb, thoff + poff, in __skb_flow_get_ports()
55 if (ports) in __skb_flow_get_ports()
56 return *ports; in __skb_flow_get_ports()
141 flow->ports = flow_label; in __skb_flow_dissect()
264 flow->ports = __skb_flow_get_ports(skb, nhoff, ip_proto, in __skb_flow_dissect()
297 (__force u32)keys->ports); in __flow_hash_from_keys()
323 if (keys.ports) in __skb_get_hash()
/linux-4.1.27/Documentation/sound/alsa/
Demu10k1-jack.txt29 This will give you 16 input ports and 16 output ports.
31 The 16 output ports map onto the 16 FX buses (or the first 16 of 64, for the
35 The 16 input ports are connected to the 16 physical inputs. Contrary to
45 the second and third input ports are wired to the center/LFE output. You will
49 ports to FXBUS2 (multitrack recording input) and EXTOUT (physical output)
Dserial-u16550.txt29 Usage example for Roland SoundCanvas with 4 MIDI ports:
58 Out 3, and midiCnD8 to Out 4. Thus midiCnD15 sends the data to all 4 ports.
59 As a special case, midiCnD0 also sends to all ports, since it is not useful
60 to send the data to no ports. M/B mode has extra overhead to select the MIDI
/linux-4.1.27/include/uapi/linux/netfilter/
Dxt_multiport.h18 __u16 ports[XT_MULTI_PORTS]; /* Ports */ member
24 __u16 ports[XT_MULTI_PORTS]; /* Ports */ member
/linux-4.1.27/sound/drivers/
Dmtpav.c150 struct mtpav_port ports[NUMPORTS]; /* all ports including computer, adat and bc */ member
326 struct mtpav_port *portp = &mtp_card->ports[substream->number]; in snd_mtpav_output_write()
356 struct mtpav_port *portp = &mtp_card->ports[substream->number]; in snd_mtpav_input_open()
374 struct mtpav_port *portp = &mtp_card->ports[substream->number]; in snd_mtpav_input_close()
392 struct mtpav_port *portp = &mtp_card->ports[substream->number]; in snd_mtpav_input_trigger()
420 struct mtpav_port *portp = &chip->ports[p]; in snd_mtpav_output_timer()
445 struct mtpav_port *portp = &mtp_card->ports[substream->number]; in snd_mtpav_output_open()
461 struct mtpav_port *portp = &mtp_card->ports[substream->number]; in snd_mtpav_output_close()
477 struct mtpav_port *portp = &mtp_card->ports[substream->number]; in snd_mtpav_output_trigger()
509 portp = &mcrd->ports[mcrd->inmidiport]; in snd_mtpav_inmidi_process()
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/drm/imx/
Dfsl-imx-drm.txt9 - ports: Should contain a list of phandles pointing to display interface ports
16 ports = <&ipu_di0>;
35 ports 2 and 3 should correspond to DI0 and DI1, respectively.
/linux-4.1.27/drivers/tty/serial/
Drp2.c193 struct rp2_uart_port *ports; member
205 #define RP_CAP(ports, smpte) (((ports) << 8) | ((smpte) << 0)) argument
208 int *ports, int *smpte) in rp2_decode_cap() argument
210 *ports = id->driver_data >> 8; in rp2_decode_cap()
496 rp2_ch_interrupt(&card->ports[ch]); in rp2_asic_interrupt()
666 uart_remove_one_port(&rp2_uart_driver, &card->ports[i].port); in rp2_remove_ports()
685 struct rp2_uart_port *rp = &card->ports[i]; in rp2_fw_cb()
744 struct rp2_uart_port *ports; in rp2_probe() local
780 ports = devm_kzalloc(&pdev->dev, sizeof(*ports) * card->n_ports, in rp2_probe()
782 if (!ports) in rp2_probe()
[all …]
DKconfig147 properly when DMA is enabled. Make sure that ports where
247 provide all of these ports, depending on how the serial port
263 Select the number of available UART ports for the Samsung S3C
281 Allow selection of the S3C24XX on-board serial ports for use as
298 provide all of these ports, depending on how the serial port
320 provide all of these ports, depending on how the serial port
377 for serial ports in newer DECstation systems. These include the
444 can enable its onboard serial ports by enabling this option.
507 This driver supports the built-in serial ports of the Blackfin family
625 This driver supports the Zilog8530 serial ports found on many Sparc
[all …]
Dbcm63xx_uart.c38 static struct uart_port ports[BCM63XX_NR_UARTS]; variable
704 port = &ports[co->index]; in bcm_console_write()
742 port = &ports[co->index]; in bcm_console_setup()
822 port = &ports[pdev->id]; in bcm_uart_probe()
857 ports[pdev->id].membase = NULL; in bcm_uart_probe()
871 ports[pdev->id].membase = NULL; in bcm_uart_remove()
/linux-4.1.27/Documentation/devicetree/bindings/arm/
Dcoresight.txt30 * port or ports: The representation of the component's port
41 * port or ports: same as above.
95 ports {
99 /* replicator output ports */
131 ports {
144 /* funnel input ports */
/linux-4.1.27/arch/um/drivers/
Dport_kern.c126 static LIST_HEAD(ports);
135 list_for_each(ele, &ports) { in port_work_proc()
167 list_for_each(ele, &ports) { in port_data()
201 list_add(&port->list, &ports); in port_data()
297 list_for_each(ele, &ports) { in free_port()
/linux-4.1.27/net/netfilter/ipvs/
Dip_vs_ftp.c56 static unsigned short ports[IP_VS_APP_MAX_PORTS] = {21, 0}; variable
57 module_param_array(ports, ushort, &ports_count, 0444);
58 MODULE_PARM_DESC(ports, "Ports to monitor for FTP control commands");
455 if (!ports[i]) in __ip_vs_ftp_init()
457 ret = register_ip_vs_app_inc(net, app, app->protocol, ports[i]); in __ip_vs_ftp_init()
461 app->name, i, ports[i]); in __ip_vs_ftp_init()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
Dbase.c161 list_add_tail(&port->head, &i2c->ports); in nvkm_i2c_port_create_()
190 list_for_each_entry(port, &i2c->ports, head) { in nvkm_i2c_find()
203 list_for_each_entry(port, &i2c->ports, head) { in nvkm_i2c_find_type()
369 list_for_each_entry(port, &i2c->ports, head) { in nvkm_i2c_intr()
406 list_for_each_entry(port, &i2c->ports, head) { in _nvkm_i2c_fini()
419 list_for_each_entry_continue_reverse(port, &i2c->ports, head) { in _nvkm_i2c_fini()
435 list_for_each_entry(port, &i2c->ports, head) { in _nvkm_i2c_init()
444 list_for_each_entry_continue_reverse(port, &i2c->ports, head) { in _nvkm_i2c_init()
459 list_for_each_entry_safe(port, temp, &i2c->ports, head) { in _nvkm_i2c_dtor()
536 INIT_LIST_HEAD(&i2c->ports); in nvkm_i2c_create_()
/linux-4.1.27/Documentation/ABI/testing/
Dconfigfs-usb-gadget-midi11 in_ports - number of MIDI input ports
12 out_ports - number of MIDI output ports
Dsysfs-bus-coresight-devices-funnel5 Description: (RW) Enables the slave ports and defines the hold time of the
6 slave ports.
/linux-4.1.27/drivers/gpu/drm/exynos/
Dexynos_drm_dpi.c199 struct device_node *ports, *port; in of_graph_get_port_by_reg() local
201 ports = of_get_child_by_name(parent, "ports"); in of_graph_get_port_by_reg()
202 if (ports) in of_graph_get_port_by_reg()
203 parent = ports; in of_graph_get_port_by_reg()
207 of_node_put(ports); in of_graph_get_port_by_reg()
/linux-4.1.27/arch/mips/alchemy/common/
Dplatform.c106 struct plat_serial8250_port *ports; in alchemy_setup_uarts() local
118 ports = kzalloc(s * (c + 1), GFP_KERNEL); in alchemy_setup_uarts()
119 if (!ports) { in alchemy_setup_uarts()
123 memcpy(ports, au1x00_uart_data[ctype], s * c); in alchemy_setup_uarts()
124 au1xx0_uart_device.dev.platform_data = ports; in alchemy_setup_uarts()
128 ports[s].uartclk = uartclk; in alchemy_setup_uarts()
/linux-4.1.27/net/ipv6/
Dinet6_hashtables.c61 const __portpair ports = INET_COMBINED_PORTS(sport, hnum); in __inet6_lookup_established() local
75 if (!INET6_MATCH(sk, net, saddr, daddr, ports, dif)) in __inet6_lookup_established()
80 if (unlikely(!INET6_MATCH(sk, net, saddr, daddr, ports, dif))) { in __inet6_lookup_established()
201 const __portpair ports = INET_COMBINED_PORTS(inet->inet_dport, lport); in __inet6_check_established() local
218 if (likely(INET6_MATCH(sk2, net, saddr, daddr, ports, dif))) { in __inet6_check_established()
Dxfrm6_policy.c177 __be16 *ports; in _decode_session6() local
180 ports = (__be16 *)(nh + offset); in _decode_session6()
181 fl6->fl6_sport = ports[!!reverse]; in _decode_session6()
182 fl6->fl6_dport = ports[!reverse]; in _decode_session6()
/linux-4.1.27/Documentation/devicetree/bindings/video/
Drockchip-drm.txt10 - ports: Should contain a list of phandles pointing to display interface port
18 ports = <&vopl_out>, <&vopb_out>;
Dti,omap-dss.txt28 video ports is described in Documentation/devicetree/bindings/graph.txt,
29 and the properties for the ports and endpoints for each encoder are
32 The video ports are used to describe the connections to external hardware, like
106 ports {
151 ports {
Dthine,thc63lvdm83d17 The THC63LVDM83D has two video ports. Their connections are modeled using the
30 ports {
Dadi,adv7123.txt17 The ADV7123 has two video ports. Their connections are modeled using the OF
30 ports {
Ddw_hdmi-rockchip.txt11 - ports: contain a port node with endpoint definitions as defined in
32 ports {
Dti,tfp410.txt21 ports {
Dti,opa362.txt17 ports {
Dti,tpd12s015.txt24 ports {
Drenesas,du.txt36 The connections to the DU output video ports are modeled using the OF graph
68 ports {
Dadi,adv7511.txt48 The ADV7511 has two video ports. Their connections are modelled using the OF
70 ports {
/linux-4.1.27/sound/usb/
Dmidi.c163 } ports[0x10]; member
175 } ports[0x10]; member
229 struct usbmidi_in_port *port = &ep->ports[portidx]; in snd_usbmidi_input_data()
445 struct usbmidi_in_port *port = &ep->ports[cable]; in snd_usbmidi_maudio_broken_running_status_input()
660 struct usbmidi_out_port *port = &ep->ports[p]; in snd_usbmidi_standard_output()
742 struct snd_rawmidi_substream *substream = ep->ports[0].substream; in snd_usbmidi_akai_output()
744 if (!ep->ports[0].active) in snd_usbmidi_akai_output()
755 ep->ports[0].active = 0; in snd_usbmidi_akai_output()
790 ep->ports[0].active = 0; in snd_usbmidi_akai_output()
823 if (!ep->ports[0].active) in snd_usbmidi_novation_output()
[all …]
/linux-4.1.27/drivers/bcma/
Dscan.c281 u8 ports[2], wrappers[2]; in bcma_get_next_core() local
299 ports[0] = (cib & SCAN_CIB_NMP) >> SCAN_CIB_NMP_SHIFT; in bcma_get_next_core()
300 ports[1] = (cib & SCAN_CIB_NSP) >> SCAN_CIB_NSP_SHIFT; in bcma_get_next_core()
307 (ports[1] == 0)) { in bcma_get_next_core()
347 for (i = 0; i < ports[0]; i++) { in bcma_get_next_core()
372 for (i = 0; i < ports[1]; i++) { in bcma_get_next_core()
407 u8 hack = (ports[1] == 1) ? 0 : 1; in bcma_get_next_core()
Ddriver_chipcommon.c324 struct bcma_serial_port *ports = cc->serial_ports; in bcma_chipco_serial_init() local
355 ports[i].regs = cc->core->io_addr + BCMA_CC_UART0_DATA + in bcma_chipco_serial_init()
357 ports[i].irq = irq; in bcma_chipco_serial_init()
358 ports[i].baud_base = baud_base; in bcma_chipco_serial_init()
359 ports[i].reg_shift = 0; in bcma_chipco_serial_init()
/linux-4.1.27/drivers/usb/core/
Dport.c333 peer = peer_hub->ports[port1 - 1]; in match_location()
350 struct usb_port *port_dev = hub->ports[port1 - 1], *peer; in find_and_link_peer()
381 upstream = parent_hub->ports[hdev->portnum - 1]; in find_and_link_peer()
396 peer = peer_hub->ports[port1 - 1]; in find_and_link_peer()
416 hub->ports[port1 - 1] = port_dev; in usb_hub_create_port_device()
480 struct usb_port *port_dev = hub->ports[port1 - 1]; in usb_hub_remove_port_device()
Dhub.c435 struct usb_port *port_dev = hub->ports[port1 - 1]; in set_port_led()
917 dev_dbg(&hub->ports[port1 - 1]->dev, in hub_usb3_port_disable()
940 dev_warn(&hub->ports[port1 - 1]->dev, in hub_usb3_port_disable()
948 struct usb_port *port_dev = hub->ports[port1 - 1]; in hub_port_disable()
973 dev_dbg(&hub->ports[port1 - 1]->dev, "logical disconnect\n"); in hub_port_logical_disconnect()
1128 struct usb_port *port_dev = hub->ports[port1 - 1]; in hub_activate()
1309 if (hub->ports[i]->child) in hub_quiesce()
1310 usb_disconnect(&hub->ports[i]->child); in hub_quiesce()
1327 pm_runtime_barrier(&hub->ports[i]->dev); in hub_pm_barrier_for_all_ports()
1408 hub->ports = kzalloc(maxchild * sizeof(struct usb_port *), GFP_KERNEL); in hub_configure()
[all …]
/linux-4.1.27/arch/cris/arch-v32/drivers/
Dsync_serial.c263 static struct sync_port ports[] = { variable
292 #define NBR_PORTS ARRAY_SIZE(ports)
329 struct sync_port *port = &ports[portnbr]; in initialize_port()
442 if (dev < 0 || dev >= NBR_PORTS || !ports[dev].enabled) { in sync_serial_open()
446 port = &ports[dev]; in sync_serial_open()
546 if (dev < 0 || dev >= NBR_PORTS || !ports[dev].enabled) { in sync_serial_release()
550 port = &ports[dev]; in sync_serial_release()
567 port = &ports[dev]; in sync_serial_poll()
613 if (dev < 0 || dev >= NBR_PORTS || !ports[dev].enabled) { in __sync_serial_read()
617 port = &ports[dev]; in __sync_serial_read()
[all …]
/linux-4.1.27/drivers/usb/host/
Dehci-hub.c613 int ports, i, retval = 1; in ehci_hub_status_data() local
619 ports = HCS_N_PORTS (ehci->hcs_params); in ehci_hub_status_data()
620 if (ports > 7) { in ehci_hub_status_data()
651 for (i = 0; i < ports; i++) { in ehci_hub_status_data()
691 int ports = HCS_N_PORTS (ehci->hcs_params); in ehci_hub_descriptor() local
698 desc->bNbrPorts = ports; in ehci_hub_descriptor()
699 temp = 1 + (ports / 8); in ehci_hub_descriptor()
869 int ports = HCS_N_PORTS (ehci->hcs_params); in ehci_hub_control() local
898 if (!wIndex || wIndex > ports) in ehci_hub_control()
986 if (!wIndex || wIndex > ports) in ehci_hub_control()
[all …]
Dxhci-hub.c54 struct usb_hub_descriptor *desc, int ports) in xhci_common_hub_descriptor() argument
61 desc->bNbrPorts = ports; in xhci_common_hub_descriptor()
80 int ports; in xhci_usb2_hub_descriptor() local
86 ports = xhci->num_usb2_ports; in xhci_usb2_hub_descriptor()
88 xhci_common_hub_descriptor(xhci, desc, ports); in xhci_usb2_hub_descriptor()
90 temp = 1 + (ports / 8); in xhci_usb2_hub_descriptor()
97 for (i = 0; i < ports; i++) { in xhci_usb2_hub_descriptor()
124 for (i = 0; i < (ports + 1 + 7) / 8; i++) in xhci_usb2_hub_descriptor()
133 int ports; in xhci_usb3_hub_descriptor() local
138 ports = xhci->num_usb3_ports; in xhci_usb3_hub_descriptor()
[all …]
Dohci-at91.c193 ohci->num_ports = board->ports; in usb_hcd_at91_probe()
448 u32 ports; in ohci_at91_of_init() local
465 if (!of_property_read_u32(np, "num-ports", &ports)) in ohci_at91_of_init()
466 pdata->ports = ports; in ohci_at91_of_init()
512 if (i >= pdata->ports) { in ohci_hcd_at91_drv_probe()
/linux-4.1.27/drivers/pinctrl/
Dpinctrl-tb10x.c500 struct tb10x_port ports[TB10X_PORTS]; member
509 if (state->ports[port].count) in tb10x_pinctrl_set_config()
512 state->ports[port].mode = mode; in tb10x_pinctrl_set_config()
651 } else if (state->ports[port].count in tb10x_gpio_request_enable()
652 && (state->ports[port].mode == mode)) { in tb10x_gpio_request_enable()
716 if (state->ports[grp->port].count in tb10x_pctl_set_mux()
717 && (state->ports[grp->port].mode != grp->mode)) { in tb10x_pctl_set_mux()
734 state->ports[grp->port].count++; in tb10x_pctl_set_mux()
796 state->ports[i].mode = tb10x_pinctrl_get_config(state, i); in tb10x_pinctrl_probe()
Dpinctrl-coh901.c71 struct u300_gpio_port ports[U300_GPIO_NUM_PORTS]; member
451 struct u300_gpio_port *port = &gpio->ports[d->hwirq >> 3]; in u300_gpio_irq_type()
488 struct u300_gpio_port *port = &gpio->ports[d->hwirq >> 3]; in u300_gpio_irq_enable()
527 struct u300_gpio_port *port = &gpio->ports[irq - chip->base]; in u300_gpio_irq_handler()
722 struct u300_gpio_port *port = &gpio->ports[portno]; in u300_gpio_probe()
/linux-4.1.27/drivers/gpu/drm/
Ddrm_dp_mst_topology.c379 repmsg->u.link_addr.ports[i].input_port = 1; in drm_dp_sideband_parse_link_address()
381 repmsg->u.link_addr.ports[i].peer_device_type = (raw->msg[idx] >> 4) & 0x7; in drm_dp_sideband_parse_link_address()
382 repmsg->u.link_addr.ports[i].port_number = (raw->msg[idx] & 0xf); in drm_dp_sideband_parse_link_address()
387 repmsg->u.link_addr.ports[i].mcs = (raw->msg[idx] >> 7) & 0x1; in drm_dp_sideband_parse_link_address()
388 repmsg->u.link_addr.ports[i].ddps = (raw->msg[idx] >> 6) & 0x1; in drm_dp_sideband_parse_link_address()
389 if (repmsg->u.link_addr.ports[i].input_port == 0) in drm_dp_sideband_parse_link_address()
390 repmsg->u.link_addr.ports[i].legacy_device_plug_status = (raw->msg[idx] >> 5) & 0x1; in drm_dp_sideband_parse_link_address()
394 if (repmsg->u.link_addr.ports[i].input_port == 0) { in drm_dp_sideband_parse_link_address()
395 repmsg->u.link_addr.ports[i].dpcd_revision = (raw->msg[idx]); in drm_dp_sideband_parse_link_address()
399 memcpy(repmsg->u.link_addr.ports[i].peer_guid, &raw->msg[idx], 16); in drm_dp_sideband_parse_link_address()
[all …]
/linux-4.1.27/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c218 csk->cdev->ports[csk->port_id], in send_act_open_req()
242 csk->cdev->ports[csk->port_id], in send_act_open_req()
260 cxgb4_l2t_send(csk->cdev->ports[csk->port_id], skb, csk->l2t); in send_act_open_req()
312 csk->cdev->ports[csk->port_id], in send_act_open_req6()
335 csk->cdev->ports[csk->port_id], in send_act_open_req6()
347 cxgb4_l2t_send(csk->cdev->ports[csk->port_id], skb, csk->l2t); in send_act_open_req6()
381 cxgb4_ofld_send(csk->cdev->ports[csk->port_id], skb); in abort_arp_failure()
416 cxgb4_l2t_send(csk->cdev->ports[csk->port_id], skb, csk->l2t); in send_abort_req()
433 cxgb4_ofld_send(csk->cdev->ports[csk->port_id], skb); in send_abort_rpl()
463 cxgb4_ofld_send(csk->cdev->ports[csk->port_id], skb); in send_rx_credits()
[all …]
/linux-4.1.27/drivers/rapidio/
DKconfig20 for Input ports and Output ports should be disabled. When
22 ports for Input/Output direction to allow other traffic
/linux-4.1.27/drivers/staging/speakup/
DTODO12 ports. Currently, we communicate directly with the hardware
13 ports. This however conflicts with the standard serial port drivers,
15 such as PCI-based serial ports. Also, there is not a way we can
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Dport.c549 max_port_p_one = find_first_bit(actv_ports.ports, dev->caps.num_ports) + in mlx4_get_slave_num_gids()
550 bitmap_weight(actv_ports.ports, dev->caps.num_ports) + 1; in mlx4_get_slave_num_gids()
555 bitmap_zero(exclusive_ports.ports, dev->caps.num_ports); in mlx4_get_slave_num_gids()
556 set_bit(i - 1, exclusive_ports.ports); in mlx4_get_slave_num_gids()
586 max_port_p_one = find_first_bit(actv_ports.ports, dev->caps.num_ports) + in mlx4_get_base_gid_ix()
587 bitmap_weight(actv_ports.ports, dev->caps.num_ports) + 1; in mlx4_get_base_gid_ix()
592 bitmap_zero(exclusive_ports.ports, dev->caps.num_ports); in mlx4_get_base_gid_ix()
593 set_bit(i - 1, exclusive_ports.ports); in mlx4_get_base_gid_ix()
659 if (test_bit(i, actv_ports.ports)) { in mlx4_reset_roce_gids()
675 if (test_bit(i, actv_ports.ports)) { in mlx4_reset_roce_gids()
[all …]
Dcmd.c1975 int min_port = find_first_bit(actv_ports.ports, in mlx4_master_activate_admin_state()
1978 bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports); in mlx4_master_activate_admin_state()
1981 if (!test_bit(port - 1, actv_ports.ports)) in mlx4_master_activate_admin_state()
2027 int min_port = find_first_bit(actv_ports.ports, in mlx4_master_deactivate_admin_state()
2030 bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports); in mlx4_master_deactivate_admin_state()
2034 if (!test_bit(port - 1, actv_ports.ports)) in mlx4_master_deactivate_admin_state()
2699 bitmap_zero(actv_ports.ports, MLX4_MAX_PORTS); in mlx4_get_active_ports()
2702 bitmap_fill(actv_ports.ports, dev->caps.num_ports); in mlx4_get_active_ports()
2710 bitmap_set(actv_ports.ports, dev->dev_vfs[vf].min_port - 1, in mlx4_get_active_ports()
2722 unsigned m = bitmap_weight(actv_ports.ports, dev->caps.num_ports); in mlx4_slave_convert_port()
[all …]
/linux-4.1.27/Documentation/arm/Samsung-S3C24XX/
DUSB-Host.txt44 register, so if both ports are to be used for the host, then it is
60 The ports are numbered 0 and 1.
76 an port. The ports argument is a bitmask of 1 bit per port,
/linux-4.1.27/net/hsr/
Dhsr_main.h158 struct list_head ports; member
170 list_for_each_entry_rcu((port), &(hsr)->ports, port_list)
/linux-4.1.27/Documentation/devicetree/bindings/media/xilinx/
Dxlnx,video.txt22 - ports: Video port, using the DT bindings defined in ../video-interfaces.txt.
36 ports {
Dxlnx,v-tpg.txt34 synthesized with two ports and forbidden when synthesized with one port.
46 ports {
/linux-4.1.27/Documentation/devicetree/bindings/media/
Dsamsung-fimc.txt38 ports A and B into high impedance state, especially the CAMCLK clock output
93 'parallel-ports' node
97 input ports. It includes camera A and camera B inputs. 'reg' property in the
109 I2C0) nodes and linked to a port node in the csis or the parallel-ports node,
173 /* parallel camera ports */
174 parallel-ports {
/linux-4.1.27/arch/ia64/sn/kernel/sn2/
Dsn_hwperf.c277 sz = op->ports * sizeof(struct sn_hwperf_port_info); in sn_hwperf_get_nearest_node_objdata()
288 for (router=NULL, j=0; j < op->ports; j++) { in sn_hwperf_get_nearest_node_objdata()
311 sz = router->ports * sizeof(struct sn_hwperf_port_info); in sn_hwperf_get_nearest_node_objdata()
320 for (j=0; j < router->ports; j++) { in sn_hwperf_get_nearest_node_objdata()
492 if (obj->ports) { in sn_topology_show()
496 sz = obj->ports * sizeof(struct sn_hwperf_port_info); in sn_topology_show()
506 ordinal += p->ports; in sn_topology_show()
508 for (pt = 0; pt < obj->ports; pt++) { in sn_topology_show()
/linux-4.1.27/net/dsa/
Dtag_brcm.c139 if (source_port >= DSA_MAX_PORTS || ds->ports[source_port] == NULL) in brcm_tag_rcv()
152 skb->dev = ds->ports[source_port]; in brcm_tag_rcv()
Dtag_trailer.c91 if (source_port >= DSA_MAX_PORTS || ds->ports[source_port] == NULL) in trailer_rcv()
96 skb->dev = ds->ports[source_port]; in trailer_rcv()
Dtag_dsa.c119 if (source_port >= DSA_MAX_PORTS || ds->ports[source_port] == NULL) in dsa_rcv()
168 skb->dev = ds->ports[source_port]; in dsa_rcv()
Dtag_edsa.c132 if (source_port >= DSA_MAX_PORTS || ds->ports[source_port] == NULL) in edsa_rcv()
187 skb->dev = ds->ports[source_port]; in edsa_rcv()
/linux-4.1.27/Documentation/devicetree/bindings/mfd/
Domap-usb-host.txt11 - num-ports: number of USB ports. Usually this is automatically detected
13 this property. A maximum of 3 ports are supported at the moment.
/linux-4.1.27/drivers/net/ethernet/sfc/
Drx.c846 const __be16 *ports; in efx_filter_rfs() local
895 ports = (const __be16 *)(skb->data + nhoff + 4 * ip->ihl); in efx_filter_rfs()
905 ports = (const __be16 *)(ip6 + 1); in efx_filter_rfs()
908 spec.rem_port = ports[0]; in efx_filter_rfs()
909 spec.loc_port = ports[1]; in efx_filter_rfs()
924 spec.rem_host, ntohs(ports[0]), spec.loc_host, in efx_filter_rfs()
925 ntohs(ports[1]), rxq_index, flow_id, rc); in efx_filter_rfs()
930 spec.rem_host, ntohs(ports[0]), spec.loc_host, in efx_filter_rfs()
931 ntohs(ports[1]), rxq_index, flow_id, rc); in efx_filter_rfs()
/linux-4.1.27/Documentation/networking/
DPLIP.txt14 parallel ports to appear as a IP network interface.
62 share parallel ports between PLIP and other services.
118 bi-directional parallel ports, rather than output-only ``printer''
119 ports. This allows byte-wide transfers and avoids reconstructing
158 bi-directional parallel ports, rather than output-only ``printer''
159 ports. This allows byte-wide transfers, and avoids reconstructing
161 ``printer'' (as opposed to ``parallel'') ports or when the machine
/linux-4.1.27/Documentation/
Dbt8xxgpio.txt16 The bt8xx chip does have 24 digital GPIO ports.
17 These ports are accessible via 24 pins on the SMD chip package.
Dparport-lowlevel.txt71 driver and the parport subsystem: acquiring a list of available ports,
118 In order to be notified about parallel ports when they are detected,
120 immediately be notified of all ports that have already been detected,
124 a pointer to a function to handle new ports, and a pointer to a
125 function to handle ports going away due to a low-level driver
242 This tells parport not to notify the device driver of new ports or of
243 ports going away. Registered devices belonging to that driver are NOT
264 parport_enumerate - retrieve a list of parallel ports (DEPRECATED)
275 Retrieve the first of a list of valid parallel ports for this machine.
276 Successive parallel ports can be found using the 'struct parport
[all …]
Dparport.txt29 to tell the parport code that you want three PC-style ports, one at
144 meaning for some ports.
193 specific ports. Normally this happens automatically; if the lp driver
217 only for those ports that seem to have printers attached.
221 it will avoid any ports that seem to be in use by other devices.
/linux-4.1.27/Documentation/usb/
Dpower-management.txt546 capability to disable power to ports under some conditions. Power is
555 VBUS may be maintained in the case where a hub gangs multiple ports into
556 a shared power well causing power to remain until all ports in the gang
557 are turned off. VBUS may also be maintained by hub ports configured for
597 hub interface driver is unbound, control of its child ports is lost and all
620 In addition to these files some ports may have a 'peer' link to a port on
621 another hub. The expectation is that all superspeed ports have a
627 Distinct from 'companion ports', or 'ehci/xhci shared switchover ports'
628 peer ports are simply the hi-speed and superspeed interface pins that
629 are combined into a single usb3 connector. Peer ports share the same
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/net/
Dmarvell-pp2.txt16 The ethernet ports are represented by subnodes. At least one port is
22 - port-id: should be '0' or '1' for ethernet ports, and '2' for the
Dbrcm,bcm7445-switch-v4.0.txt30 - brcm,num-rgmii-ports: specify the maximum number of RGMII interfaces supported
61 brcm,num-rgmii-ports = <2>;
Dcavium-pip.txt5 several interfaces, and each interface may have several ports. These
6 ports might be an individual Ethernet PHY.
/linux-4.1.27/arch/arm/plat-pxa/
DKconfig6 Enable support for PXA2xx SSP ports
/linux-4.1.27/Documentation/cris/
DREADME43 * four serial-ports (up to 6 Mbit/s)
44 * two synchronous serial-ports for multimedia codec's etc.
48 * two parallel-ports
49 * two generic 8-bit ports
62 including multiple high speed serial ports and an integrated USB 1.1 PHY.
/linux-4.1.27/drivers/parport/
DKconfig21 create a mini network by connecting the parallel ports of two local
48 parallel ports. PA-RISC owners should only say Y here if they
61 serial ports. You should say Y or M here. If you say M, the module
86 tristate "Support for PCMCIA management for PC-style ports"
90 ports. If unsure, say N.
DTODO-parport18 4. A better PLIP (make use of bidirectional/ECP/EPP ports).
/linux-4.1.27/arch/cris/arch-v32/mach-a3/
DKconfig57 LED's at the general ports, these bits are used for all kinds of
77 LED's at the general ports, these bits are used for all kinds of
97 LED's at the general ports, these bits are used for all kinds of
/linux-4.1.27/Documentation/serial/
Dn_gsm.txt63 4- create the devices corresponding to the "virtual" serial ports (take care,
73 5- use these devices as plain serial ports.
78 6- first close all virtual ports before closing the physical port.
Drocket.txt11 high-speed serial ports or modems. This driver supports up to a combination
26 The RocketPort ISA board requires I/O ports to be configured by the DIP
57 The RocketPort/RocketModem serial ports installed by this driver are assigned
60 installed in the system, the mapping of port names to serial ports is displayed
68 In order to use the ports, their device names (nodes) must be created with mknod.
/linux-4.1.27/drivers/ide/
Dide-cs.c145 hwif = host->ports[0]; in idecs_register()
240 'a' + host->ports[0]->index * 2, in ide_config()
258 ide_hwif_t *hwif = host->ports[0]; in ide_release()
Dali14xx.c55 static const int ports[ALI_NUM_PORTS] __initconst = variable
157 basePort = ports[i]; in findPort()
/linux-4.1.27/Documentation/arm/SA1100/
Dserial_UART16 > 204 char Low-density serial ports
21 > 205 char Low-density serial ports (alternate device)
/linux-4.1.27/Documentation/m68k/
DREADME.buddha80 IDE ports to the Zorro bus. This mechanism
98 The IDE ports issue an INT2. You can read the level of the
99 IRQ-lines of the IDE-ports by reading from the three (two
107 The IDE ports are fed by the address lines A2 to A4, just as
108 the Amiga 1200 and Amiga 4000 IDE ports are. This way
116 If you're using the mirrored registers of the IDE-ports with
/linux-4.1.27/include/linux/ssb/
Dssb_driver_extif.h189 struct ssb_serial_port *ports);
252 struct ssb_serial_port *ports) in ssb_extif_serial_init() argument
/linux-4.1.27/Documentation/devicetree/bindings/pci/
Dxilinx-pcie.txt4 - #address-cells: Address representation for root ports, set to <3>
5 - #size-cells: Size representation for root ports, set to <2>
Dnvidia,tegra20-pcie.txt21 - #address-cells: Address representation for root ports (must be 3)
28 - #size-cells: Size representation for root ports (must be 2)
29 - ranges: Describes the translation of addresses for root ports and standard
110 Root ports are defined as subnodes of the PCIe controller node.
123 - Both root ports use 2 lanes.
/linux-4.1.27/drivers/scsi/isci/
Dport_config.c134 struct isci_port *iport = &ihost->ports[i]; in sci_port_configuration_agent_find_port()
257 phy_mask = ihost->oem_parameters.ports[port_index].phy_mask; in sci_mpc_agent_validate_phy_configuration()
310 sci_port_add_phy(&ihost->ports[port_index], in sci_mpc_agent_validate_phy_configuration()
510 iport = &ihost->ports[port_index]; in sci_apc_agent_configure_ports()
/linux-4.1.27/include/xen/interface/
Dsched.h61 GUEST_HANDLE(evtchn_port_t) ports;
/linux-4.1.27/drivers/pci/host/
Dpci-mvebu.c101 struct mvebu_pcie_port *ports; member
623 struct mvebu_pcie_port *port = &pcie->ports[i]; in mvebu_pcie_find_port()
744 struct mvebu_pcie_port *port = &pcie->ports[i]; in mvebu_pcie_setup()
910 struct mvebu_pcie_port *port = pcie->ports + i; in mvebu_pcie_suspend()
924 struct mvebu_pcie_port *port = pcie->ports + i; in mvebu_pcie_resume()
980 pcie->ports = devm_kzalloc(&pdev->dev, i * in mvebu_pcie_probe()
983 if (!pcie->ports) in mvebu_pcie_probe()
988 struct mvebu_pcie_port *port = &pcie->ports[i]; in mvebu_pcie_probe()
/linux-4.1.27/arch/cris/arch-v32/mach-fs/
DKconfig95 LED's at the general ports, these bits are used for all kinds of
117 LED's at the general ports, these bits are used for all kinds of
139 LED's at the general ports, these bits are used for all kinds of
161 LED's at the general ports, these bits are used for all kinds of
183 LED's at the general ports, these bits are used for all kinds of
/linux-4.1.27/Documentation/devicetree/bindings/gpio/
Dgpio-stericsson-coh901.txt7 - interrupts: the 0...n interrupts assigned to the different GPIO ports/banks.
/linux-4.1.27/drivers/staging/ozwpan/
Dozhcd.c138 struct oz_port ports[OZ_NB_PORTS]; member
251 if (ozhcd->ports[i].bus_addr == bus_addr) in oz_get_port_from_addr()
638 struct oz_port *port = &ozhcd->ports[i]; in oz_hcd_pd_arrived()
652 hport = &ozhcd->ports[i]; in oz_hcd_pd_arrived()
693 (port == &ozhcd->ports[ozhcd->conn_port])) { in oz_hcd_pd_departed()
1402 port = &ozhcd->ports[port_ix]; in oz_process_ep0_urb()
1445 ozhcd->ports[ozhcd->conn_port].bus_addr = in oz_process_ep0_urb()
1756 port = &ozhcd->ports[port_ix]; in oz_hcd_urb_enqueue()
1893 if (ozhcd->ports[i].flags & OZ_PORT_F_CHANGED) { in oz_hcd_hub_status_data()
1895 ozhcd->ports[i].flags &= ~OZ_PORT_F_CHANGED; in oz_hcd_hub_status_data()
[all …]
/linux-4.1.27/drivers/net/plip/
DKconfig18 ports (the connectors at the computers with 25 holes) are connected
21 bidirectional parallel ports only, which can transmit 8 bits at a
/linux-4.1.27/Documentation/sound/oss/
DPSS-updates7 ability to enable both the builtin CDROM and joystick ports.
44 value will only attept to configure the CDROM and joystick ports. This
58 sharing resources (io ports, IRQ's, DMA's) between different ISA cards. This
82 # System using the PSS sound card just for its CDROM and joystick ports.
/linux-4.1.27/net/ipv4/
Dinet_hashtables.c289 const __portpair ports = INET_COMBINED_PORTS(sport, hnum); in __inet_lookup_established() local
305 saddr, daddr, ports, dif))) { in __inet_lookup_established()
309 saddr, daddr, ports, dif))) { in __inet_lookup_established()
342 const __portpair ports = INET_COMBINED_PORTS(inet->inet_dport, lport); in __inet_check_established() local
360 saddr, daddr, ports, dif))) { in __inet_check_established()
Dxfrm4_policy.c125 __be16 *ports = (__be16 *)xprth; in _decode_session4() local
127 fl4->fl4_sport = ports[!!reverse]; in _decode_session4()
128 fl4->fl4_dport = ports[!reverse]; in _decode_session4()
/linux-4.1.27/net/ipv4/netfilter/
Dipt_CLUSTERIP.c252 const u_int16_t *ports; in clusterip_hashfn() local
255 ports = skb_header_pointer(skb, iph->ihl * 4 + poff, 4, _ports); in clusterip_hashfn()
256 if (ports) { in clusterip_hashfn()
257 sport = ports[0]; in clusterip_hashfn()
258 dport = ports[1]; in clusterip_hashfn()
/linux-4.1.27/drivers/infiniband/hw/cxgb4/
Dprovider.c300 memcpy(&(gid->raw[0]), dev->rdev.lldi.ports[port-1]->dev_addr, 6); in c4iw_query_gid()
313 memcpy(&props->sys_image_guid, dev->rdev.lldi.ports[0]->dev_addr, 6); in c4iw_query_device()
349 netdev = dev->rdev.lldi.ports[port-1]; in c4iw_query_port()
423 struct net_device *lldev = c4iw_dev->rdev.lldi.ports[0]; in show_hca()
474 BUG_ON(!dev->rdev.lldi.ports[0]); in c4iw_register_device()
477 memcpy(&dev->ibdev.node_guid, dev->rdev.lldi.ports[0]->dev_addr, 6); in c4iw_register_device()
/linux-4.1.27/Documentation/input/
Djoystick-parport.txt18 that, PCs usually lack the right ports to connect these devices to. Parallel
45 The main problem with PC parallel ports is that they don't have +5V power
60 ports that can't give much current through the data pins. If this is your
139 for joystick ports. They were all digital, and all used D-Cannon 9 pin
307 since this doesn't work reliably on all parallel ports, the turbografx.c driver
461 Should you want to use more than one of parallel ports at once, you can use
463 more parallel ports.
481 Caveat here: This driver only works on bidirectional parallel ports. If
483 Old parallel ports may not have this feature.
513 interface ports 1-7 have. For a standard multisystem joystick, this is 1.
/linux-4.1.27/drivers/staging/octeon/
DKconfig7 This driver supports the builtin ethernet ports on Cavium
/linux-4.1.27/include/uapi/linux/
Dif_bonding.h113 __u16 ports; member
/linux-4.1.27/arch/tile/kernel/
Dpci_gx.c220 if (!pcie_ports[trio_index].ports[mac].allow_rc && in tile_pcie_open()
221 !pcie_ports[trio_index].ports[mac].allow_ep) in tile_pcie_open()
242 pcie_ports[trio_index].ports[mac].allow_ep = 1; in tile_pcie_open()
468 pcie_ports[i].ports[j].allow_rc) { in tile_pci_init()
469 if (!pcie_ports[i].ports[j].allow_ep || in tile_pci_init()
472 } else if (pcie_ports[i].ports[j].allow_rc && in tile_pci_init()
753 if (pcie_ports[trio_index].ports[mac].removable) { in pcibios_init()
/linux-4.1.27/samples/bpf/
Dsockex2_kern.c21 __be32 ports; member
178 flow->ports = load_word(skb, nhoff); in flow_dissector()
/linux-4.1.27/drivers/media/platform/xilinx/
Dxilinx-tpg.c715 struct device_node *ports; in xtpg_parse_of() local
720 ports = of_get_child_by_name(node, "ports"); in xtpg_parse_of()
721 if (ports == NULL) in xtpg_parse_of()
722 ports = node; in xtpg_parse_of()
724 for_each_child_of_node(ports, port) { in xtpg_parse_of()
Dxilinx-vipp.c467 struct device_node *ports; in xvip_graph_dma_init() local
471 ports = of_get_child_by_name(xdev->dev->of_node, "ports"); in xvip_graph_dma_init()
472 if (ports == NULL) { in xvip_graph_dma_init()
477 for_each_child_of_node(ports, port) { in xvip_graph_dma_init()
/linux-4.1.27/net/bridge/
Dbr_mdb.c79 for (pp = &mp->ports; in br_mdb_fill_info()
337 for (pp = &mp->ports; in br_mdb_add_group()
443 for (pp = &mp->ports; in __br_mdb_del()
458 if (!mp->ports && !mp->mglist && in __br_mdb_del()
/linux-4.1.27/drivers/scsi/cxgbi/
Dlibcxgbi.c136 cdev->ports = (struct net_device **)(cdev + 1); in cxgbi_device_register()
137 cdev->hbas = (struct cxgbi_hba **)(((char*)cdev->ports) + nports * in cxgbi_device_register()
162 cdev, cdev->nports, cdev->nports ? cdev->ports[0]->name : ""); in cxgbi_device_unregister()
229 if (ndev == cdev->ports[i]) { in cxgbi_device_find_by_netdev()
261 if (ndev == cdev->ports[i]) { in cxgbi_device_find_by_netdev_rcu()
295 if (!memcmp(ndev->dev_addr, cdev->ports[i]->dev_addr, in cxgbi_device_find_by_mac()
347 cdev, i, cdev->ports[i]->name); in cxgbi_hbas_add()
360 chba->ndev = cdev->ports[i]; in cxgbi_hbas_add()
365 cdev, i, cdev->ports[i]->name, chba); in cxgbi_hbas_add()
371 cdev, i, cdev->ports[i]->name); in cxgbi_hbas_add()
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/drm/i2c/
Dtda998x.txt17 - video-ports: 24 bits value which defines how the video controller
/linux-4.1.27/drivers/net/fddi/
DKconfig37 (MMIO) as appropriate instead of programmed I/O ports (PIO).
40 adapters. TURBOchannel does not have the concept of I/O ports,
/linux-4.1.27/Documentation/devicetree/bindings/video/bridge/
Dps8622.txt24 ports {
/linux-4.1.27/drivers/net/ppp/
DKconfig26 the next option, "PPP support for async serial ports". For PPP over
153 tristate "PPP support for async serial ports"
158 asynchronous serial ports, such as COM1 or COM2 on a PC. If you use
167 tristate "PPP support for sync tty ports"
/linux-4.1.27/drivers/hwmon/
Dsmsc47m1.c653 const u8 *ports; in smsc47m1_handle_resources() local
658 ports = ports_m1; in smsc47m1_handle_resources()
662 ports = ports_m2; in smsc47m1_handle_resources()
668 unsigned short start = address + ports[i]; in smsc47m1_handle_resources()
669 unsigned short len = ports[i + 1]; in smsc47m1_handle_resources()
/linux-4.1.27/arch/cris/arch-v32/
DKconfig199 LED's at the general ports, these bits are used for all kinds of
221 LED's at the general ports, these bits are used for all kinds of
243 LED's at the general ports, these bits are used for all kinds of
265 LED's at the general ports, these bits are used for all kinds of
287 LED's at the general ports, these bits are used for all kinds of

1234