Home
last modified time | relevance | path

Searched refs:numports (Results 1 – 10 of 10) sorted by relevance

/openbmc/linux/drivers/net/arcnet/
H A Dcom90xx.c103 int numports, numshmems, *port; in com90xx_probe() local
125 numports = numshmems = 0; in com90xx_probe()
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()
180 if (!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()
[all …]
/openbmc/linux/drivers/extcon/
H A Dextcon-usbc-cros-ec.c389 int numports, ret; in extcon_cros_ec_probe() local
411 numports = cros_ec_pd_get_num_ports(info); in extcon_cros_ec_probe()
412 if (numports < 0) { in extcon_cros_ec_probe()
414 numports); in extcon_cros_ec_probe()
415 return numports; in extcon_cros_ec_probe()
418 if (info->port_id >= numports) { in extcon_cros_ec_probe()
419 dev_err(dev, "This system only supports %d ports\n", numports); in extcon_cros_ec_probe()
/openbmc/qemu/hw/misc/
H A Diotkit-secctl.c271 for (i = 0; i < ppc->numports; i++) { in iotkit_secctl_update_ppc_ap()
287 ppc->ns = value & MAKE_64BIT_MASK(0, ppc->numports); in iotkit_secctl_ppc_ns_write()
288 for (i = 0; i < ppc->numports; i++) { in iotkit_secctl_ppc_ns_write()
296 ppc->sp = value & MAKE_64BIT_MASK(0, ppc->numports); in iotkit_secctl_ppc_sp_write()
302 ppc->nsp = value & MAKE_64BIT_MASK(0, ppc->numports); in iotkit_secctl_ppc_nsp_write()
665 int numports, in iotkit_secctl_init_ppc() argument
671 ppc->numports = numports; in iotkit_secctl_init_ppc()
676 qdev_init_gpio_out_named(dev, ppc->nonsec, gpioname, numports); in iotkit_secctl_init_ppc()
679 qdev_init_gpio_out_named(dev, ppc->ap, gpioname, numports); in iotkit_secctl_init_ppc()
/openbmc/linux/drivers/parport/
H A Dparport_serial.c76 int numports; member
106 par->numports = 1; in netmos_parallel_init()
113 par->numports = (dev->subsystem_device & 0xf0) >> 4; in netmos_parallel_init()
114 if (par->numports > ARRAY_SIZE(par->addr)) in netmos_parallel_init()
115 par->numports = ARRAY_SIZE(par->addr); in netmos_parallel_init()
650 for (n = 0; n < card->numports; n++) { in parport_register()
660 ARRAY_SIZE(priv->port), card->numports); in parport_register()
H A Dparport_pc.c2669 int numports; member
2893 for (n = 0; n < cards[i].numports; n++) { in parport_pc_pci_probe()
/openbmc/qemu/include/hw/misc/
H A Diotkit-secctl.h89 int numports; member
/openbmc/qemu/hw/usb/
H A Dhcd-xhci.h211 uint32_t numports; member
H A Dhcd-xhci.c2064 if (port < 1 || port > xhci->numports) { in xhci_lookup_uport()
2438 dma_memory_set(xhci->as, ctx + 1, 80, xhci->numports, in xhci_get_port_bandwidth()
2710 for (i = 0; i < xhci->numports; i++) { in xhci_reset()
3329 xhci->numports = xhci->numports_2 + xhci->numports_3; in usb_xhci_init()
3406 for (i = 0; i < xhci->numports; i++) { in usb_xhci_realize()
3437 for (i = 0; i < xhci->numports; i++) { in usb_xhci_unrealize()
3582 VMSTATE_STRUCT_VARRAY_UINT32(ports, XHCIState, numports, 1,
/openbmc/linux/drivers/tty/
H A Dmoxa.c466 static unsigned int numports[MAX_BOARDS]; variable
480 module_param_array(numports, uint, NULL, 0);
481 MODULE_PARM_DESC(numports, "numports (ignored for C218)");
1372 numports[i]; in moxa_init()
/openbmc/linux/drivers/media/pci/ddbridge/
H A Dddbridge-core.c2048 int i, numports, err_ports = 0, ret = 0; in ddb_ports_attach() local
2059 numports = dev->port_num; in ddb_ports_attach()
2068 numports--; in ddb_ports_attach()
2073 if (err_ports == numports) { in ddb_ports_attach()
2079 err_ports, numports); in ddb_ports_attach()