Home
last modified time | relevance | path

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

12345678910>>...19

/drivers/thunderbolt/
Dtest.c54 size = (sw->config.max_port_number + 1) * sizeof(*sw->ports); in alloc_switch()
55 sw->ports = kunit_kzalloc(test, size, GFP_KERNEL); in alloc_switch()
56 if (!sw->ports) in alloc_switch()
60 sw->ports[i].sw = sw; in alloc_switch()
61 sw->ports[i].port = i; in alloc_switch()
62 sw->ports[i].config.port_number = i; in alloc_switch()
64 kunit_ida_init(test, &sw->ports[i].in_hopids); in alloc_switch()
65 kunit_ida_init(test, &sw->ports[i].out_hopids); in alloc_switch()
83 sw->ports[0].config.type = TB_TYPE_PORT; in alloc_host()
84 sw->ports[0].config.max_in_hop_id = 7; in alloc_host()
[all …]
/drivers/usb/host/
Dxhci-hub.c170 struct usb_hub_descriptor *desc, int ports) in xhci_common_hub_descriptor() argument
176 desc->bNbrPorts = ports; in xhci_common_hub_descriptor()
195 int ports; in xhci_usb2_hub_descriptor() local
203 ports = rhub->num_ports; in xhci_usb2_hub_descriptor()
204 xhci_common_hub_descriptor(xhci, desc, ports); in xhci_usb2_hub_descriptor()
206 temp = 1 + (ports / 8); in xhci_usb2_hub_descriptor()
214 for (i = 0; i < ports; i++) { in xhci_usb2_hub_descriptor()
215 portsc = readl(rhub->ports[i]->addr); in xhci_usb2_hub_descriptor()
241 for (i = 0; i < (ports + 1 + 7) / 8; i++) in xhci_usb2_hub_descriptor()
250 int ports; in xhci_usb3_hub_descriptor() local
[all …]
/drivers/video/fbdev/omap2/omapfb/dss/
Ddss-of.c28 struct device_node *ports; in omapdss_of_get_next_port() local
33 ports = of_get_child_by_name(parent, "ports"); in omapdss_of_get_next_port()
34 if (ports) in omapdss_of_get_next_port()
35 parent = ports; in omapdss_of_get_next_port()
40 of_node_put(ports); in omapdss_of_get_next_port()
42 struct device_node *ports; in omapdss_of_get_next_port() local
44 ports = of_get_parent(prev); in omapdss_of_get_next_port()
45 if (!ports) in omapdss_of_get_next_port()
49 port = of_get_next_child(ports, prev); in omapdss_of_get_next_port()
51 of_node_put(ports); in omapdss_of_get_next_port()
[all …]
/drivers/firewire/
Dcore-topology.c103 node = kzalloc(struct_size(node, ports, port_count), GFP_ATOMIC); in fw_node_create()
141 if (node->ports[i] == NULL) in update_hop_count()
144 if (node->ports[i]->max_hops > max_child_hops) in update_hop_count()
145 max_child_hops = node->ports[i]->max_hops; in update_hop_count()
147 if (node->ports[i]->max_depth > depths[0]) { in update_hop_count()
149 depths[0] = node->ports[i]->max_depth; in update_hop_count()
150 } else if (node->ports[i]->max_depth > depths[1]) in update_hop_count()
151 depths[1] = node->ports[i]->max_depth; in update_hop_count()
254 node->ports[i] = child; in build_tree()
259 child->ports[child->color] = node; in build_tree()
[all …]
/drivers/bus/
Darm-cci.c113 static struct cci_ace_port *ports; variable
169 ace_match = ports[i].type == type; in __cci_ace_get_port()
170 if (ace_match && cci_portn == ports[i].dn) in __cci_ace_get_port()
235 void __iomem *base = ports[port].base; in cci_port_control()
417 if (port >= nb_cci_ports || ports[port].type == ACE_INVALID_PORT) in __cci_control_port_by_index()
425 if (ports[port].type == ACE_PORT) in __cci_control_port_by_index()
454 ports = kcalloc(nb_cci_ports, sizeof(*ports), GFP_KERNEL); in cci_probe_ports()
455 if (!ports) in cci_probe_ports()
482 ports[i].base = ioremap(res.start, resource_size(&res)); in cci_probe_ports()
483 ports[i].phys = res.start; in cci_probe_ports()
[all …]
/drivers/infiniband/core/
Dcma_configfs.c55 struct cma_dev_port_group *ports; member
206 struct cma_dev_port_group *ports; in make_cma_ports() local
215 ports = kcalloc(ports_num, sizeof(*cma_dev_group->ports), in make_cma_ports()
218 if (!ports) { in make_cma_ports()
226 ports[i].port_num = i + 1; in make_cma_ports()
228 ports[i].cma_dev_group = cma_dev_group; in make_cma_ports()
229 config_group_init_type_name(&ports[i].group, in make_cma_ports()
232 configfs_add_default_group(&ports[i].group, in make_cma_ports()
236 cma_dev_group->ports = ports; in make_cma_ports()
240 kfree(ports); in make_cma_ports()
[all …]
/drivers/net/netdevsim/
Dudp_tunnels.c25 if (ns->udp_ports.ports[table][entry]) { in nsim_udp_tunnel_set_port()
29 ns->udp_ports.ports[table][entry] = in nsim_udp_tunnel_set_port()
55 if (val == ns->udp_ports.ports[table][entry]) { in nsim_udp_tunnel_unset_port()
56 ns->udp_ports.ports[table][entry] = 0; in nsim_udp_tunnel_unset_port()
59 val, ns->udp_ports.ports[table][entry]); in nsim_udp_tunnel_unset_port()
83 ns->udp_ports.ports[table][i] = in nsim_udp_tunnel_sync_table()
115 memset(ns->udp_ports.ports, 0, sizeof(ns->udp_ports.__ports)); in nsim_udp_tunnels_info_reset_write()
143 ns->udp_ports.ports = ns->udp_ports.__ports; in nsim_udp_tunnels_info_create()
145 ns->udp_ports.ports = nsim_dev->udp_ports.__ports; in nsim_udp_tunnels_info_create()
151 ns->udp_ports.dfs_ports[0].array = ns->udp_ports.ports[0]; in nsim_udp_tunnels_info_create()
[all …]
/drivers/net/wan/
Dpci200syn.c90 port_t ports[2]; member
94 #define get_port(card, port) (&card->ports[port])
244 if (card->ports[i].card) in pci200_pci_remove_one()
245 unregister_hdlc_device(card->ports[i].netdev); in pci200_pci_remove_one()
259 if (card->ports[0].netdev) in pci200_pci_remove_one()
260 free_netdev(card->ports[0].netdev); in pci200_pci_remove_one()
261 if (card->ports[1].netdev) in pci200_pci_remove_one()
262 free_netdev(card->ports[1].netdev); in pci200_pci_remove_one()
301 card->ports[0].netdev = alloc_hdlcdev(&card->ports[0]); in pci200_pci_init_one()
302 card->ports[1].netdev = alloc_hdlcdev(&card->ports[1]); in pci200_pci_init_one()
[all …]
Dn2.c123 port_t ports[2]; member
144 #define get_port(card, port) ((card)->ports[port].valid ? \
145 &(card)->ports[port] : NULL)
305 if (card->ports[cnt].card) { in n2_destroy_card()
306 struct net_device *dev = port_to_dev(&card->ports[cnt]); in n2_destroy_card()
320 if (card->ports[0].dev) in n2_destroy_card()
321 free_netdev(card->ports[0].dev); in n2_destroy_card()
322 if (card->ports[1].dev) in n2_destroy_card()
323 free_netdev(card->ports[1].dev); in n2_destroy_card()
360 card->ports[0].dev = alloc_hdlcdev(&card->ports[0]); in n2_run()
[all …]
Dwanxl.c81 struct port ports[]; /* 1 - 4 port structures follow */ member
203 struct port *port = &card->ports[desc->stat & in wanxl_rx_intr()
258 wanxl_tx_intr(&card->ports[i]); in wanxl_intr()
260 wanxl_cable_intr(&card->ports[i]); in wanxl_intr()
516 unregister_hdlc_device(card->ports[i].dev); in wanxl_pci_remove_one()
517 free_netdev(card->ports[i].dev); in wanxl_pci_remove_one()
566 int i, ports; in wanxl_pci_init_one() local
597 case PCI_DEVICE_ID_SBE_WANXL100: ports = 1; break; in wanxl_pci_init_one()
598 case PCI_DEVICE_ID_SBE_WANXL200: ports = 2; break; in wanxl_pci_init_one()
599 default: ports = 4; in wanxl_pci_init_one()
[all …]
/drivers/platform/chrome/
Dcros_ec_typec.c60 struct cros_typec_port *ports[EC_USB_PD_MAX_PORTS]; member
148 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_add_partner()
172 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_remove_partner()
191 if (!typec->ports[i]) in cros_unregister_ports()
194 usb_role_switch_put(typec->ports[i]->role_sw); in cros_unregister_ports()
195 typec_switch_put(typec->ports[i]->ori_sw); in cros_unregister_ports()
196 typec_mux_put(typec->ports[i]->mux); in cros_unregister_ports()
197 typec_unregister_port(typec->ports[i]->port); in cros_unregister_ports()
208 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_register_port_altmodes()
272 typec->ports[port_num] = cros_port; in cros_typec_init_ports()
[all …]
/drivers/gpu/drm/rcar-du/
Drcar_du_encoder.c29 struct device_node *ports; in rcar_du_encoder_count_ports() local
33 ports = of_get_child_by_name(node, "ports"); in rcar_du_encoder_count_ports()
34 if (!ports) in rcar_du_encoder_count_ports()
35 ports = of_node_get(node); in rcar_du_encoder_count_ports()
37 for_each_child_of_node(ports, port) { in rcar_du_encoder_count_ports()
42 of_node_put(ports); in rcar_du_encoder_count_ports()
/drivers/input/serio/
Dps2mult.c37 struct ps2mult_port ports[PS2MULT_NUM_PORTS]; member
142 serio->port_data = &psm->ports[i]; in ps2mult_create_port()
144 psm->ports[i].serio = serio; in ps2mult_create_port()
158 ps2mult_select_port(psm, &psm->ports[PS2MULT_KBD_PORT]); in ps2mult_reset()
180 psm->ports[i].sel = ps2mult_controls[i]; in ps2mult_connect()
186 psm->in_port = psm->out_port = &psm->ports[PS2MULT_KBD_PORT]; in ps2mult_connect()
196 struct serio *s = psm->ports[i].serio; in ps2mult_connect()
206 kfree(psm->ports[i].serio); in ps2mult_connect()
272 psm->in_port = &psm->ports[PS2MULT_KBD_PORT]; in ps2mult_interrupt()
277 psm->in_port = &psm->ports[PS2MULT_MOUSE_PORT]; in ps2mult_interrupt()
/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/media/pci/saa7164/
Dsaa7164-core.c621 porta = &dev->ports[SAA7164_PORT_TS1]; in saa7164_irq()
622 portb = &dev->ports[SAA7164_PORT_TS2]; in saa7164_irq()
623 portc = &dev->ports[SAA7164_PORT_ENC1]; in saa7164_irq()
624 portd = &dev->ports[SAA7164_PORT_ENC2]; in saa7164_irq()
625 porte = &dev->ports[SAA7164_PORT_VBI1]; in saa7164_irq()
626 portf = &dev->ports[SAA7164_PORT_VBI2]; in saa7164_irq()
899 port = &dev->ports[portnr]; in saa7164_port_init()
1376 if (saa7164_dvb_register(&dev->ports[SAA7164_PORT_TS1]) < 0) { in saa7164_initdev()
1383 if (saa7164_dvb_register(&dev->ports[SAA7164_PORT_TS2]) < 0) { in saa7164_initdev()
1390 if (saa7164_encoder_register(&dev->ports[SAA7164_PORT_ENC1]) < 0) { in saa7164_initdev()
[all …]
/drivers/ata/
Dpata_sil680.c384 host->ports[0]->ioaddr.bmdma_addr = mmio_base + 0x00; in sil680_init_one()
385 host->ports[0]->ioaddr.cmd_addr = mmio_base + 0x80; in sil680_init_one()
386 host->ports[0]->ioaddr.ctl_addr = mmio_base + 0x8a; in sil680_init_one()
387 host->ports[0]->ioaddr.altstatus_addr = mmio_base + 0x8a; in sil680_init_one()
388 ata_sff_std_ports(&host->ports[0]->ioaddr); in sil680_init_one()
389 host->ports[1]->ioaddr.bmdma_addr = mmio_base + 0x08; in sil680_init_one()
390 host->ports[1]->ioaddr.cmd_addr = mmio_base + 0xc0; in sil680_init_one()
391 host->ports[1]->ioaddr.ctl_addr = mmio_base + 0xca; in sil680_init_one()
392 host->ports[1]->ioaddr.altstatus_addr = mmio_base + 0xca; in sil680_init_one()
393 ata_sff_std_ports(&host->ports[1]->ioaddr); in sil680_init_one()
Dpata_cs5520.c173 ioaddr = &host->ports[0]->ioaddr; in cs5520_init_one()
180 ata_port_desc(host->ports[0], in cs5520_init_one()
182 ata_port_pbar_desc(host->ports[0], 4, 0, "bmdma"); in cs5520_init_one()
184 ioaddr = &host->ports[1]->ioaddr; in cs5520_init_one()
191 ata_port_desc(host->ports[1], in cs5520_init_one()
193 ata_port_pbar_desc(host->ports[1], 4, 8, "bmdma"); in cs5520_init_one()
203 struct ata_port *ap = host->ports[i]; in cs5520_init_one()
/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_nsp_eth.c181 table->max_index = max(table->max_index, table->ports[i].index); in nfp_eth_calc_port_geometry()
184 if (table->ports[i].label_port != in nfp_eth_calc_port_geometry()
185 table->ports[j].label_port) in nfp_eth_calc_port_geometry()
187 table->ports[i].port_lanes += table->ports[j].lanes; in nfp_eth_calc_port_geometry()
191 if (table->ports[i].label_subport == in nfp_eth_calc_port_geometry()
192 table->ports[j].label_subport) in nfp_eth_calc_port_geometry()
195 table->ports[i].label_port, in nfp_eth_calc_port_geometry()
196 table->ports[i].label_subport); in nfp_eth_calc_port_geometry()
198 table->ports[i].is_split = true; in nfp_eth_calc_port_geometry()
275 table = kzalloc(struct_size(table, ports, cnt), GFP_KERNEL); in __nfp_eth_read_ports()
[all …]
/drivers/staging/fwserial/
DKconfig17 int "Maximum number of serial ports supported"
20 Set this to the maximum number of serial ports you want the
24 int "Maximum number of serial ports supported per adapter"
28 Set this to the maximum number of serial ports each firewire
29 adapter supports. The actual number of serial ports registered
/drivers/char/ipmi/
Dipmi_si_hardcode.c21 static unsigned int ports[SI_MAX_PARMS]; variable
44 module_param_hw_array(ports, uint, ioport, &num_ports, 0);
45 MODULE_PARM_DESC(ports, "Sets the port address of each interface, the"
140 if (i < num_ports && ports[i]) in ipmi_hardcode_init()
141 ipmi_hardcode_init_one(si_type[i], i, ports[i], in ipmi_hardcode_init()
165 if (ports[i] == addr) in ipmi_si_hardcode_match()
/drivers/gpu/drm/i915/display/
Dicl_dsi.c87 for_each_dsi_port(port, intel_dsi->ports) { in wait_for_cmds_dispatched_to_panel()
94 for_each_dsi_port(port, intel_dsi->ports) { in wait_for_cmds_dispatched_to_panel()
105 for_each_dsi_port(port, intel_dsi->ports) { in wait_for_cmds_dispatched_to_panel()
111 for_each_dsi_port(port, intel_dsi->ports) { in wait_for_cmds_dispatched_to_panel()
341 for_each_dsi_port(port, intel_dsi->ports) { in gen11_dsi_program_esc_clk_div()
347 for_each_dsi_port(port, intel_dsi->ports) { in gen11_dsi_program_esc_clk_div()
359 for_each_dsi_port(port, intel_dsi->ports) { in get_dsi_io_power_domains()
376 for_each_dsi_port(port, intel_dsi->ports) { in gen11_dsi_enable_io_power()
510 for_each_dsi_port(port, intel_dsi->ports) { in gen11_dsi_enable_ddi_buffer()
534 for_each_dsi_port(port, intel_dsi->ports) { in gen11_dsi_setup_dphy_timings()
[all …]
/drivers/slimbus/
Dstream.c209 if (rt->ports) { in slim_stream_prepare()
215 rt->ports = kcalloc(num_ports, sizeof(*port), GFP_KERNEL); in slim_stream_prepare()
216 if (!rt->ports) in slim_stream_prepare()
241 port = &rt->ports[i]; in slim_stream_prepare()
363 stream->ports[i].ch.state = SLIM_CH_STATE_ACTIVE; in slim_stream_enable()
374 struct slim_port *port = &stream->ports[i]; in slim_stream_enable()
381 struct slim_port *port = &stream->ports[i]; in slim_stream_enable()
418 slim_deactivate_remove_channel(stream, &stream->ports[i]); in slim_stream_disable()
442 slim_disconnect_port(stream, &stream->ports[i]); in slim_stream_unprepare()
444 kfree(stream->ports); in slim_stream_unprepare()
[all …]
/drivers/net/dsa/
Ddsa_loop.c93 memcpy(ps->ports[i].mib, dsa_loop_mibs, in dsa_loop_setup()
125 ps->ports[port].mib[i].name, ETH_GSTRING_LEN); in dsa_loop_get_strings()
135 data[i] = ps->ports[port].mib[i].val; in dsa_loop_get_ethtool_stats()
146 ps->ports[port].mib[DSA_LOOP_PHY_READ_ERR].val++; in dsa_loop_phy_read()
148 ps->ports[port].mib[DSA_LOOP_PHY_READ_OK].val++; in dsa_loop_phy_read()
162 ps->ports[port].mib[DSA_LOOP_PHY_WRITE_ERR].val++; in dsa_loop_phy_write()
164 ps->ports[port].mib[DSA_LOOP_PHY_WRITE_OK].val++; in dsa_loop_phy_write()
248 ps->ports[port].pvid = vid; in dsa_loop_port_vlan_add()
258 u16 vid, pvid = ps->ports[port].pvid; in dsa_loop_port_vlan_del()
276 ps->ports[port].pvid = pvid; in dsa_loop_port_vlan_del()
[all …]
/drivers/usb/gadget/function/
Du_serial.c136 } ports[MAX_U_SERIAL_PORTS]; variable
597 mutex_lock(&ports[port_num].lock); in gs_open()
598 port = ports[port_num].port; in gs_open()
656 mutex_unlock(&ports[port_num].lock); in gs_open()
1083 mutex_lock(&ports[port_num].lock); in gserial_set_console()
1084 port = ports[port_num].port; in gserial_set_console()
1096 mutex_unlock(&ports[port_num].lock); in gserial_set_console()
1107 mutex_lock(&ports[port_num].lock); in gserial_get_console()
1108 port = ports[port_num].port; in gserial_get_console()
1115 mutex_unlock(&ports[port_num].lock); in gserial_get_console()
[all …]
/drivers/net/wireless/marvell/mwifiex/
Dsdio.h121 a->mpa_tx.ports |= (1<<(a->mpa_tx.pkt_cnt)); \
123 a->mpa_tx.ports |= (1<<(a->mpa_tx.pkt_cnt+1+ \
137 a->mpa_tx.ports = 0; \
156 a->mpa_rx.ports = 0; \
166 u32 ports; member
177 u32 ports; member
375 card->mpa_rx.ports |= (1 << port); in mp_rx_aggr_setup()
378 card->mpa_rx.ports |= 1 << (card->mpa_rx.pkt_cnt); in mp_rx_aggr_setup()
380 card->mpa_rx.ports |= 1 << (card->mpa_rx.pkt_cnt + 1); in mp_rx_aggr_setup()

12345678910>>...19