Home
last modified time | relevance | path

Searched refs:ports (Results 1 – 25 of 529) sorted by relevance

12345678910>>...22

/linux-3.4.99/arch/cris/arch-v32/kernel/
Ddebugport.c23 struct dbg_port ports[] = variable
70 &ports[0];
72 &ports[1];
74 &ports[2];
76 &ports[3];
78 &ports[4];
86 &ports[0];
88 &ports[1];
90 &ports[2];
92 &ports[3];
[all …]
/linux-3.4.99/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-3.4.99/sound/core/seq/
Dseq_midi.c68 struct seq_midisynth *ports[SNDRV_RAWMIDI_DEVICES]; member
285 unsigned int p, ports; in snd_seq_midisynth_register_port() local
305 ports = output_count; in snd_seq_midisynth_register_port()
306 if (ports < input_count) in snd_seq_midisynth_register_port()
307 ports = input_count; in snd_seq_midisynth_register_port()
308 if (ports == 0) { in snd_seq_midisynth_register_port()
312 if (ports > (256 / SNDRV_RAWMIDI_DEVICES)) in snd_seq_midisynth_register_port()
313 ports = 256 / SNDRV_RAWMIDI_DEVICES; in snd_seq_midisynth_register_port()
337 msynth = kcalloc(ports, sizeof(struct seq_midisynth), GFP_KERNEL); in snd_seq_midisynth_register_port()
342 for (p = 0; p < ports; p++) { in snd_seq_midisynth_register_port()
[all …]
/linux-3.4.99/arch/arm/plat-omap/
Di2c.c82 int ports = 0; in omap_i2c_nr_ports() local
85 ports = 1; in omap_i2c_nr_ports()
87 ports = 2; in omap_i2c_nr_ports()
89 ports = 3; in omap_i2c_nr_ports()
91 ports = 4; in omap_i2c_nr_ports()
93 return ports; in omap_i2c_nr_ports()
217 int ports; in omap_i2c_bus_setup() local
220 ports = omap_i2c_nr_ports(); in omap_i2c_bus_setup()
222 if (ints[0] < 2 || ints[1] < 1 || ints[1] > ports) in omap_i2c_bus_setup()
/linux-3.4.99/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 …]
/linux-3.4.99/net/netfilter/
Dnf_conntrack_sane.c41 static u_int16_t ports[MAX_PORTS]; variable
43 module_param_array(ports, ushort, &ports_c, 0400);
182 sane[i][j].tuple.src.l3num, ports[i]); in nf_conntrack_sane_fini()
200 ports[ports_c++] = SANE_PORT; in nf_conntrack_sane_init()
208 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(tmpname, "sane-%d", ports[i]); in nf_conntrack_sane_init()
222 sane[i][j].tuple.src.l3num, ports[i]); in nf_conntrack_sane_init()
227 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");
118 ports[ports_c++] = TFTP_PORT; in nf_conntrack_tftp_init()
127 tftp[i][j].tuple.src.u.udp.port = htons(ports[i]); in nf_conntrack_tftp_init()
133 if (ports[i] == TFTP_PORT) in nf_conntrack_tftp_init()
143 tftp[i][j].tuple.src.l3num, ports[i]); in nf_conntrack_tftp_init()
Dxt_socket.c58 __be16 *ports, _ports[2]; in extract_icmp4_fields() local
86 ports = skb_header_pointer(skb, outside_hdrlen + in extract_icmp4_fields()
90 if (ports == NULL) in extract_icmp4_fields()
97 *lport = ports[0]; in extract_icmp4_fields()
99 *rport = ports[1]; in extract_icmp4_fields()
215 __be16 *ports, _ports[2]; in extract_icmp6_fields() local
242 ports = skb_header_pointer(skb, inside_hdrlen, in extract_icmp6_fields()
244 if (ports == NULL) in extract_icmp6_fields()
251 *lport = ports[0]; in extract_icmp6_fields()
253 *rport = ports[1]; in extract_icmp6_fields()
/linux-3.4.99/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()
264 if (card->ports[0].netdev) in pci200_pci_remove_one()
265 free_netdev(card->ports[0].netdev); in pci200_pci_remove_one()
266 if (card->ports[1].netdev) in pci200_pci_remove_one()
267 free_netdev(card->ports[1].netdev); in pci200_pci_remove_one()
307 card->ports[0].netdev = alloc_hdlcdev(&card->ports[0]); in pci200_pci_init_one()
308 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 port_t ports[0]; /* 1 - 4 port_t structures follow */ member
206 port_t *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()
570 int i, ports, alloc_size; in wanxl_pci_init_one() local
600 case PCI_DEVICE_ID_SBE_WANXL100: ports = 1; break; in wanxl_pci_init_one()
601 case PCI_DEVICE_ID_SBE_WANXL200: ports = 2; break; in wanxl_pci_init_one()
602 default: ports = 4; in wanxl_pci_init_one()
[all …]
/linux-3.4.99/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);
/linux-3.4.99/arch/cris/arch-v10/drivers/
Dsync_serial.c192 static struct sync_port ports[] = { variable
259 ports[0].enabled = 0; in etrax_sync_serial_init()
260 ports[1].enabled = 0; in etrax_sync_serial_init()
299 ports[0].enabled = 1; in etrax_sync_serial_init()
303 ports[0].use_dma = 1; in etrax_sync_serial_init()
305 ports[0].use_dma = 0; in etrax_sync_serial_init()
311 ports[1].enabled = 1; in etrax_sync_serial_init()
315 ports[1].use_dma = 1; in etrax_sync_serial_init()
317 ports[1].use_dma = 0; in etrax_sync_serial_init()
345 struct sync_port *port = &ports[portnbr]; in initialize_port()
[all …]
/linux-3.4.99/drivers/ide/
Dscc_pata.c211 struct scc_ports *ports = ide_get_hwifdata(hwif); in scc_set_pio_mode() local
212 unsigned long ctl_base = ports->ctl; in scc_set_pio_mode()
243 struct scc_ports *ports = ide_get_hwifdata(hwif); in scc_set_dma_mode() local
244 unsigned long ctl_base = ports->ctl; in scc_set_dma_mode()
560 struct scc_ports *ports = pci_get_drvdata(dev); in scc_ide_setup_pci_device() local
567 hw.io_ports_array[i] = ports->dma + 0x20 + i * 4; in scc_ide_setup_pci_device()
575 ports->host = host; in scc_ide_setup_pci_device()
598 struct scc_ports *ports; in init_setup_scc() local
609 ports = pci_get_drvdata(dev); in init_setup_scc()
610 ctl_base = ports->ctl; in init_setup_scc()
[all …]
/linux-3.4.99/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-3.4.99/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()
/linux-3.4.99/drivers/net/wireless/mwifiex/
Dsdio.h191 a->mpa_tx.ports |= (1<<(a->mpa_tx.pkt_cnt)); \
193 a->mpa_tx.ports |= (1<<(a->mpa_tx.pkt_cnt+1+(MAX_PORT - \
212 a->mpa_tx.ports = 0; \
239 a->mpa_rx.ports |= (1<<(a->mpa_rx.pkt_cnt)); \
241 a->mpa_rx.ports |= (1<<(a->mpa_rx.pkt_cnt+1)); \
251 a->mpa_rx.ports = 0; \
262 u16 ports; member
273 u16 ports; member
/linux-3.4.99/drivers/gpio/
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-3.4.99/drivers/scsi/
Dg_NCR5380.c288 unsigned int *ports; in generic_NCR5380_detect() local
359 ports = NULL; in generic_NCR5380_detect()
369 ports = ncr_53c400a_ports; in generic_NCR5380_detect()
373 ports = dtc_3181e_ports; in generic_NCR5380_detect()
378 if (ports) { in generic_NCR5380_detect()
390 for (i = 0; ports[i]; i++) { in generic_NCR5380_detect()
391 if (!request_region(ports[i], 16, "ncr53c80")) in generic_NCR5380_detect()
393 if (overrides[current_override].NCR5380_map_name == ports[i]) in generic_NCR5380_detect()
395 release_region(ports[i], 16); in generic_NCR5380_detect()
397 for (i = 0; ports[i]; i++) { in generic_NCR5380_detect()
[all …]
/linux-3.4.99/drivers/ata/
Dpata_sil680.c389 host->ports[0]->ioaddr.bmdma_addr = mmio_base + 0x00; in sil680_init_one()
390 host->ports[0]->ioaddr.cmd_addr = mmio_base + 0x80; in sil680_init_one()
391 host->ports[0]->ioaddr.ctl_addr = mmio_base + 0x8a; in sil680_init_one()
392 host->ports[0]->ioaddr.altstatus_addr = mmio_base + 0x8a; in sil680_init_one()
393 ata_sff_std_ports(&host->ports[0]->ioaddr); in sil680_init_one()
394 host->ports[1]->ioaddr.bmdma_addr = mmio_base + 0x08; in sil680_init_one()
395 host->ports[1]->ioaddr.cmd_addr = mmio_base + 0xc0; in sil680_init_one()
396 host->ports[1]->ioaddr.ctl_addr = mmio_base + 0xca; in sil680_init_one()
397 host->ports[1]->ioaddr.altstatus_addr = mmio_base + 0xca; in sil680_init_one()
398 ata_sff_std_ports(&host->ports[1]->ioaddr); in sil680_init_one()
/linux-3.4.99/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()
/linux-3.4.99/drivers/media/video/saa7164/
Dsaa7164-core.c642 struct saa7164_port *porta = &dev->ports[SAA7164_PORT_TS1]; in saa7164_irq()
643 struct saa7164_port *portb = &dev->ports[SAA7164_PORT_TS2]; in saa7164_irq()
644 struct saa7164_port *portc = &dev->ports[SAA7164_PORT_ENC1]; in saa7164_irq()
645 struct saa7164_port *portd = &dev->ports[SAA7164_PORT_ENC2]; in saa7164_irq()
646 struct saa7164_port *porte = &dev->ports[SAA7164_PORT_VBI1]; in saa7164_irq()
647 struct saa7164_port *portf = &dev->ports[SAA7164_PORT_VBI2]; in saa7164_irq()
953 port = &dev->ports[portnr]; in saa7164_port_init()
1342 if (saa7164_dvb_register(&dev->ports[SAA7164_PORT_TS1]) < 0) { in saa7164_initdev()
1350 if (saa7164_dvb_register(&dev->ports[SAA7164_PORT_TS2]) < 0) { in saa7164_initdev()
1358 if (saa7164_encoder_register(&dev->ports[SAA7164_PORT_ENC1]) < 0) { in saa7164_initdev()
[all …]
/linux-3.4.99/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-3.4.99/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-3.4.99/arch/cris/arch-v32/drivers/
Dsync_serial.c214 static struct sync_port ports[]= variable
242 #define NBR_PORTS ARRAY_SIZE(ports)
257 ports[0].enabled = 0; in etrax_sync_serial_init()
259 ports[1].enabled = 0; in etrax_sync_serial_init()
275 ports[0].enabled = 1; in etrax_sync_serial_init()
285 ports[1].enabled = 1; in etrax_sync_serial_init()
300 struct sync_port *port = &ports[portnbr]; in initialize_port()
442 if (dev < 0 || dev >= NBR_PORTS || !ports[dev].enabled) in sync_serial_open()
448 port = &ports[dev]; in sync_serial_open()
459 if (port == &ports[0]) { in sync_serial_open()
[all …]

12345678910>>...22