Home
last modified time | relevance | path

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

12345678910>>...12

/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 …]
/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 …]
/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()
[all …]
/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()
/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()
373 if (!(card->ports[i].netdev = alloc_hdlcdev(&card->ports[i]))) { in pc300_pci_init_one()
446 port_t *port = &card->ports[i]; in pc300_pci_init_one()
/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 …]
/drivers/net/arcnet/
Dcom90xx.c100 int ports[(0x3f0 - 0x200) / 16 + 1] = { 0 }; in com90xx_probe() local
127 ports[numports++] = io; in com90xx_probe()
130 ports[numports++] = count; in com90xx_probe()
141 for (port = &ports[0]; port - ports < numports; port++) { in com90xx_probe()
158 *port-- = ports[--numports]; in com90xx_probe()
167 *port-- = ports[--numports]; in com90xx_probe()
191 for (port = &ports[0]; port < ports + numports; port++) { in com90xx_probe()
271 for (port = &ports[0]; port < ports + numports; port++) in com90xx_probe()
300 for (port = &ports[0]; port < ports + numports; port++) { in com90xx_probe()
321 *port-- = ports[--numports]; in com90xx_probe()
[all …]
/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()
/drivers/rtc/
Drtc-cmos.c596 cmos_do_probe(struct device *dev, struct resource *ports, int rtc_irq) in cmos_do_probe() argument
608 if (!ports) in cmos_do_probe()
617 ports = request_region(ports->start, resource_size(ports), in cmos_do_probe()
620 ports = request_mem_region(ports->start, resource_size(ports), in cmos_do_probe()
622 if (!ports) { in cmos_do_probe()
628 cmos_rtc.iomem = ports; in cmos_do_probe()
645 if (can_bank2 && ports->end > (ports->start + 1)) in cmos_do_probe()
686 rename_region(ports, dev_name(&cmos_rtc.rtc->dev)); in cmos_do_probe()
770 release_region(ports->start, resource_size(ports)); in cmos_do_probe()
772 release_mem_region(ports->start, resource_size(ports)); in cmos_do_probe()
[all …]
/drivers/media/pci/saa7164/
Dsaa7164-core.c637 porta = &dev->ports[SAA7164_PORT_TS1]; in saa7164_irq()
638 portb = &dev->ports[SAA7164_PORT_TS2]; in saa7164_irq()
639 portc = &dev->ports[SAA7164_PORT_ENC1]; in saa7164_irq()
640 portd = &dev->ports[SAA7164_PORT_ENC2]; in saa7164_irq()
641 porte = &dev->ports[SAA7164_PORT_VBI1]; in saa7164_irq()
642 portf = &dev->ports[SAA7164_PORT_VBI2]; in saa7164_irq()
921 port = &dev->ports[portnr]; in saa7164_port_init()
1358 if (saa7164_dvb_register(&dev->ports[SAA7164_PORT_TS1]) < 0) { in saa7164_initdev()
1366 if (saa7164_dvb_register(&dev->ports[SAA7164_PORT_TS2]) < 0) { in saa7164_initdev()
1374 if (saa7164_encoder_register(&dev->ports[SAA7164_PORT_ENC1]) < 0) { in saa7164_initdev()
[all …]
/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()
/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
/drivers/usb/gadget/function/
Du_serial.c126 } ports[MAX_U_SERIAL_PORTS]; variable
735 mutex_lock(&ports[port_num].lock); in gs_open()
736 port = ports[port_num].port; in gs_open()
758 mutex_unlock(&ports[port_num].lock); in gs_open()
1039 mutex_lock(&ports[port_num].lock); in gs_port_alloc()
1040 if (ports[port_num].port) { in gs_port_alloc()
1065 ports[port_num].port = port; in gs_port_alloc()
1067 mutex_unlock(&ports[port_num].lock); in gs_port_alloc()
1095 mutex_lock(&ports[port_num].lock); in gserial_free_line()
1096 if (WARN_ON(!ports[port_num].port)) { in gserial_free_line()
[all …]
/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
/drivers/gpu/drm/i915/
Dintel_dsi.c295 for_each_dsi_port(port, intel_dsi->ports) { in bxt_dsi_device_ready()
342 for_each_dsi_port(port, intel_dsi->ports) { in vlv_dsi_device_ready()
391 for_each_dsi_port(port, intel_dsi->ports) { in intel_dsi_port_enable()
400 if (intel_dsi->ports == ((1 << PORT_A) | (1 << PORT_C))) { in intel_dsi_port_enable()
422 for_each_dsi_port(port, intel_dsi->ports) { in intel_dsi_port_disable()
442 for_each_dsi_port(port, intel_dsi->ports) in intel_dsi_enable()
446 for_each_dsi_port(port, intel_dsi->ports) in intel_dsi_enable()
452 for_each_dsi_port(port, intel_dsi->ports) in intel_dsi_enable()
503 for_each_dsi_port(port, intel_dsi->ports) in intel_dsi_pre_enable()
532 for_each_dsi_port(port, intel_dsi->ports) in intel_dsi_pre_disable()
[all …]
/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()
/drivers/tty/
Dpty.c379 struct tty_port *ports[2]; in pty_common_install() local
387 ports[0] = kmalloc(sizeof **ports, GFP_KERNEL); in pty_common_install()
388 ports[1] = kmalloc(sizeof **ports, GFP_KERNEL); in pty_common_install()
389 if (!ports[0] || !ports[1]) in pty_common_install()
429 tty_port_init(ports[0]); in pty_common_install()
430 tty_port_init(ports[1]); in pty_common_install()
431 tty_buffer_set_limit(ports[0], 8192); in pty_common_install()
432 tty_buffer_set_limit(ports[1], 8192); in pty_common_install()
433 o_tty->port = ports[0]; in pty_common_install()
434 tty->port = ports[1]; in pty_common_install()
[all …]
/drivers/tty/serial/8250/
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 …]

12345678910>>...12