Home
last modified time | relevance | path

Searched refs:port_count (Results 1 – 25 of 39) sorted by relevance

12

/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Ddevlink_linecard.sh64 local port_count=$1; shift
68 [ $current == $port_count ]
81 local port_count=$2
84 busywait "$timeout" until_lc_port_count_is "$port_count" lc_port_count_get "$lc"
191 local port_count
193 port_count=$(lc_wait_until_port_count_is $lc $expected_port_count \
195 [ $port_count != 0 ]
197 [ $port_count == $expected_port_count ]
198 check_err $? "Unexpected port count linecard $lc (got $port_count, expected $expected_port_count)"
/linux/tools/testing/selftests/net/lib/py/
H A Dnsim.py53 def __init__(self, port_count=1, queue_count=1, ns=None): argument
63 self.ctrl_write("new_device", "%u %u %u" % (addr, port_count, queue_count))
74 self.wait_for_netdevs(port_count)
86 for port_index in range(port_count):
112 def wait_for_netdevs(self, port_count): argument
121 if len(ifnames) == port_count:
/linux/drivers/tty/serial/
H A Dmux.c432 int port_count = get_mux_port_count(dev); in mux_probe() local
433 printk(KERN_INFO "Serial mux driver (%d ports) Revision: 0.6\n", port_count); in mux_probe()
435 dev_set_drvdata(&dev->dev, (void *)(long)port_count); in mux_probe()
437 port_count * MUX_LINE_OFFSET, "Mux"); in mux_probe()
449 for(i = 0; i < port_count; ++i, ++port_cnt) { in mux_probe()
477 int port_count = (long)dev_get_drvdata(&dev->dev); in mux_remove() local
484 BUG_ON(i + port_count > port_cnt); in mux_remove()
487 for(j = 0; j < port_count; ++j, ++i) { in mux_remove()
495 release_mem_region(dev->hpa.start + MUX_OFFSET, port_count * MUX_LINE_OFFSET); in mux_remove()
/linux/drivers/acpi/
H A Dmipi-disco-img.c55 u32 port_count; member
119 csi2->port_count = 1; in acpi_mipi_add_crs_csi2()
201 size_t port_count = csi2->port_count; in alloc_crs_csi2_swnodes() local
214 port_count, &alloc_size) || in alloc_crs_csi2_swnodes()
221 port_count); in alloc_crs_csi2_swnodes()
230 swnodes->nodes = (struct software_node *)(swnodes->ports + port_count); in alloc_crs_csi2_swnodes()
232 2 * port_count); in alloc_crs_csi2_swnodes()
233 swnodes->num_ports = port_count; in alloc_crs_csi2_swnodes()
235 for (i = 0; i < 2 * port_count + 1; i++) in alloc_crs_csi2_swnodes()
240 for (i = 0; i < port_count; i++) in alloc_crs_csi2_swnodes()
[all …]
/linux/drivers/net/netdevsim/
H A Dbus.c156 nsim_bus_dev_new(unsigned int id, unsigned int port_count, unsigned int num_queues);
161 unsigned int id, port_count, num_queues; in new_device_store() local
165 err = sscanf(buf, "%u %u %u", &id, &port_count, &num_queues); in new_device_store()
168 port_count = 1; in new_device_store()
191 nsim_bus_dev = nsim_bus_dev_new(id, port_count, num_queues); in new_device_store()
447 nsim_bus_dev_new(unsigned int id, unsigned int port_count, unsigned int num_queues) in nsim_bus_dev_new() argument
462 nsim_bus_dev->port_count = port_count; in nsim_bus_dev_new()
H A Ddev.c1490 unsigned int port_count) in nsim_dev_port_add_all() argument
1494 for (i = 0; i < port_count; i++) { in nsim_dev_port_add_all()
1547 err = nsim_dev_port_add_all(nsim_dev, nsim_bus_dev->port_count); in nsim_dev_reload_create()
1656 err = nsim_dev_port_add_all(nsim_dev, nsim_bus_dev->port_count); in nsim_drv_probe()
H A Dnetdevsim.h478 unsigned int port_count; member
/linux/drivers/net/wwan/t7xx/
H A Dt7xx_port_ctrl_msg.c131 unsigned int version, port_count, i; in t7xx_port_enum_msg_handler() local
150 port_count = FIELD_GET(PORT_MSG_PRT_CNT, le32_to_cpu(port_msg->info)); in t7xx_port_enum_msg_handler()
152 if (msg_len < struct_size(port_msg, data, port_count)) { in t7xx_port_enum_msg_handler()
154 struct_size(port_msg, data, port_count), msg_len); in t7xx_port_enum_msg_handler()
158 for (i = 0; i < port_count; i++) { in t7xx_port_enum_msg_handler()
H A Dt7xx_port_proxy.c49 i < (proxy)->port_count; \
560 u32 port_count; in t7xx_port_proxy_set_cfg() local
567 port_count = ARRAY_SIZE(t7xx_early_port_conf); in t7xx_port_proxy_set_cfg()
570 port_count = ARRAY_SIZE(t7xx_port_conf); in t7xx_port_proxy_set_cfg()
573 for (i = 0; i < port_count; i++) in t7xx_port_proxy_set_cfg()
577 port_prox->port_count = port_count; in t7xx_port_proxy_set_cfg()
H A Dt7xx_port_proxy.h41 int port_count; member
/linux/drivers/media/cec/platform/cros-ec/
H A Dcros-ec-cec.c399 if (response.port_count == 0) { in cros_ec_cec_get_num_ports()
405 if (response.port_count > EC_CEC_MAX_PORTS) { in cros_ec_cec_get_num_ports()
407 "EC reports too many ports: %d\n", response.port_count); in cros_ec_cec_get_num_ports()
411 cros_ec_cec->num_ports = response.port_count; in cros_ec_cec_get_num_ports()
/linux/sound/usb/
H A Dmixer_scarlett2.c1389 const int port_count[SCARLETT2_PORT_TYPE_COUNT][SCARLETT2_PORT_DIRNS];
1545 .port_count = {
1600 .port_count = {
1658 .port_count = {
1742 .port_count = {
1794 .port_count = {
1876 .port_count = {
1970 .port_count = {
2035 .port_count = {
2082 .port_count
1207 const int port_count[SCARLETT2_PORT_TYPE_COUNT][SCARLETT2_PORT_DIRNS]; global() member
2973 const int (*port_count)[SCARLETT2_PORT_DIRNS] = info->port_count; scarlett2_usb_populate_mux() local
3112 const int (*port_count)[SCARLETT2_PORT_DIRNS] = info->port_count; scarlett2_usb_set_mux() local
7135 const int (*port_count)[SCARLETT2_PORT_DIRNS] = info->port_count; scarlett2_mux_src_enum_ctl_info() local
7236 const int (*port_count)[SCARLETT2_PORT_DIRNS] = info->port_count; scarlett2_add_mux_enums() local
8218 const int (*port_count)[SCARLETT2_PORT_DIRNS] = info->port_count; scarlett2_count_io() local
[all...]
/linux/drivers/scsi/elx/libefc/
H A Defc_fabric.c654 u32 port_id = 0, port_count, plist_count; in efc_process_gidpt_payload() local
682 port_count = 0; in efc_process_gidpt_payload()
684 port_count++; in efc_process_gidpt_payload()
688 active_nodes = kzalloc_objs(*active_nodes, port_count, GFP_ATOMIC); in efc_process_gidpt_payload()
714 for (j = 0; j < port_count; j++) { in efc_process_gidpt_payload()
726 for (i = 0; i < port_count; i++) { in efc_process_gidpt_payload()
/linux/drivers/net/wireless/nxp/nxpwifi/
H A Dsdio.c1135 u32 port_count; in nxpwifi_sdio_card_to_host_mp_aggr() local
1139 for (i = 0, port_count = 0; i < card->max_ports; i++) in nxpwifi_sdio_card_to_host_mp_aggr()
1141 port_count++; in nxpwifi_sdio_card_to_host_mp_aggr()
1147 port_count--; in nxpwifi_sdio_card_to_host_mp_aggr()
1149 (port_count << 8)) + card->mpa_rx.start_port; in nxpwifi_sdio_card_to_host_mp_aggr()
1465 u32 port_count; in nxpwifi_host_to_card_mp_aggr() local
1468 for (i = 0, port_count = 0; i < card->max_ports; i++) in nxpwifi_host_to_card_mp_aggr()
1470 port_count++; in nxpwifi_host_to_card_mp_aggr()
1476 port_count--; in nxpwifi_host_to_card_mp_aggr()
1478 (port_count << 8)) + card->mpa_tx.start_port; in nxpwifi_host_to_card_mp_aggr()
/linux/drivers/net/wireless/marvell/mwifiex/
H A Dsdio.c1841 u32 port_count; in mwifiex_sdio_card_to_host_mp_aggr() local
1843 for (i = 0, port_count = 0; i < card->max_ports; i++) in mwifiex_sdio_card_to_host_mp_aggr()
1845 port_count++; in mwifiex_sdio_card_to_host_mp_aggr()
1850 port_count--; in mwifiex_sdio_card_to_host_mp_aggr()
1852 (port_count << 8)) + card->mpa_rx.start_port; in mwifiex_sdio_card_to_host_mp_aggr()
2273 u32 port_count; in mwifiex_host_to_card_mp_aggr() local
2276 for (i = 0, port_count = 0; i < card->max_ports; i++) in mwifiex_host_to_card_mp_aggr()
2278 port_count++; in mwifiex_host_to_card_mp_aggr()
2283 port_count--; in mwifiex_host_to_card_mp_aggr()
2285 (port_count << 8)) + card->mpa_tx.start_port; in mwifiex_host_to_card_mp_aggr()
/linux/drivers/net/ethernet/rocker/
H A Drocker.h61 unsigned int port_count; member
H A Drocker_ofdpa.c1431 unsigned int port_count = ofdpa->rocker->port_count; in ofdpa_port_vlan_flood_group() local
1438 group_ids = kcalloc(port_count, sizeof(u32), GFP_KERNEL); in ofdpa_port_vlan_flood_group()
1447 for (i = 0; i < port_count; i++) { in ofdpa_port_vlan_flood_group()
1477 unsigned int port_count = ofdpa->rocker->port_count; in ofdpa_port_vlan_l2_groups() local
1506 for (i = 0; i < port_count; i++) { in ofdpa_port_vlan_l2_groups()
/linux/drivers/usb/cdns3/
H A Dcdnsp-mem.c1125 u32 temp, port_offset, port_count; in cdnsp_add_in_port() local
1134 port_count = CDNSP_EXT_PORT_COUNT(temp); in cdnsp_add_in_port()
1141 if (port_count == 2) in cdnsp_add_in_port()
1144 if (port_count == 1 && pdev->usb2_port.exist) in cdnsp_add_in_port()
1148 trace_cdnsp_port_info(addr, port_offset, port_count, port->maj_rev); in cdnsp_add_in_port()
/linux/drivers/scsi/qla2xxx/
H A Dqla_edif_bsg.h133 uint8_t port_count; member
/linux/drivers/net/ethernet/broadcom/bnge/
H A Dbnge.h209 u8 port_count; member
/linux/drivers/power/supply/
H A Dcros_usbpd-charger.c127 if (resp.port_count > EC_USB_PD_MAX_PORTS) { in cros_usbpd_charger_get_num_ports()
132 return resp.port_count; in cros_usbpd_charger_get_num_ports()
H A Dcros_peripheral_charger.c120 return rsp.port_count; in cros_pchg_port_count()
/linux/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_debugfs.c497 for (i = 0; i < priv->port_count; i++) { in mvpp2_dbgfs_flow_entry_init()
721 for (i = 0; i < priv->port_count; i++) { in mvpp2_dbgfs_init()
/linux/drivers/usb/early/
H A Dxhci-dbc.c369 u32 val, port_offset, port_count; in xdbc_reset_debug_port() local
383 port_count = XHCI_EXT_PORT_COUNT(val); in xdbc_reset_debug_port()
385 xdbc_do_reset_debug_port(port_offset, port_count); in xdbc_reset_debug_port()
/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera.h299 u32 port_count; member

12