/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | devlink_linecard.sh | 64 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)"
|
/kernel/linux/linux-5.10/drivers/firewire/ |
H A D | core-topology.c | 99 static struct fw_node *fw_node_create(u32 sid, int port_count, int color) in fw_node_create() argument 103 node = kzalloc(struct_size(node, ports, port_count), GFP_ATOMIC); in fw_node_create() 112 node->port_count = port_count; in fw_node_create() 140 for (i = 0; i < node->port_count; i++) { in update_hop_count() 176 int i, port_count, child_port_count, phy_id, parent_count, stack_depth; in build_tree() local 191 next_sid = count_ports(sid, &port_count, &child_port_count); in build_tree() 222 node = fw_node_create(q, port_count, card->color); in build_tree() 236 for (i = 0; i < port_count; i++) { in build_tree() 327 for (i = 0; i < node->port_count; in for_each_fw_node() [all...] |
H A D | core.h | 177 u8 port_count; member
|
/kernel/linux/linux-6.6/drivers/firewire/ |
H A D | core-topology.c | 100 static struct fw_node *fw_node_create(u32 sid, int port_count, int color) in fw_node_create() argument 104 node = kzalloc(struct_size(node, ports, port_count), GFP_ATOMIC); in fw_node_create() 113 node->port_count = port_count; in fw_node_create() 141 for (i = 0; i < node->port_count; i++) { in update_hop_count() 177 int i, port_count, child_port_count, phy_id, parent_count, stack_depth; in build_tree() local 192 next_sid = count_ports(sid, &port_count, &child_port_count); in build_tree() 223 node = fw_node_create(q, port_count, card->color); in build_tree() 237 for (i = 0; i < port_count; i++) { in build_tree() 328 for (i = 0; i < node->port_count; in for_each_fw_node() [all...] |
/kernel/linux/linux-6.6/sound/usb/ |
H A D | mixer_scarlett_gen2.c | 379 const int port_count[SCARLETT2_PORT_TYPE_COUNT][SCARLETT2_PORT_DIRNS]; member 456 .port_count = { 504 .port_count = { 556 .port_count = { 634 .port_count = { 680 .port_count = { 742 .port_count = { 812 .port_count = { 871 .port_count = { 928 const int port_count[][SCARLETT2_PORT_DIRN in scarlett2_get_port_start_num() 927 scarlett2_get_port_start_num( const int port_count[][SCARLETT2_PORT_DIRNS], int direction, int port_type) scarlett2_get_port_start_num() argument 1529 scarlett2_mux_src_num_to_id( const int port_count[][SCARLETT2_PORT_DIRNS], int num) scarlett2_mux_src_num_to_id() argument 1547 scarlett2_mux_id_to_num( const int port_count[][SCARLETT2_PORT_DIRNS], int direction, u32 id) scarlett2_mux_id_to_num() argument [all...] |
/kernel/linux/linux-5.10/drivers/tty/serial/ |
H A D | mux.c | 451 int port_count = get_mux_port_count(dev); in mux_probe() local 452 printk(KERN_INFO "Serial mux driver (%d ports) Revision: 0.6\n", port_count); in mux_probe() 454 dev_set_drvdata(&dev->dev, (void *)(long)port_count); in mux_probe() 456 port_count * MUX_LINE_OFFSET, "Mux"); in mux_probe() 468 for(i = 0; i < port_count; ++i, ++port_cnt) { in mux_probe() 502 int port_count = (long)dev_get_drvdata(&dev->dev); in mux_remove() local 509 BUG_ON(i + port_count > port_cnt); in mux_remove() 512 for(j = 0; j < port_count; ++j, ++i) { in mux_remove() 520 release_mem_region(dev->hpa.start + MUX_OFFSET, port_count * MUX_LINE_OFFSET); in mux_remove()
|
/kernel/linux/linux-6.6/drivers/tty/serial/ |
H A D | mux.c | 432 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()
|
/kernel/linux/linux-5.10/drivers/net/netdevsim/ |
H A D | bus.c | 182 nsim_bus_dev_new(unsigned int id, unsigned int port_count); 188 unsigned int port_count; in new_device_store() local 192 err = sscanf(buf, "%u %u", &id, &port_count); in new_device_store() 195 port_count = 1; in new_device_store() 204 pr_err("Format for adding new device is \"id port_count\" (uint uint).\n"); in new_device_store() 215 nsim_bus_dev = nsim_bus_dev_new(id, port_count); in new_device_store() 315 nsim_bus_dev_new(unsigned int id, unsigned int port_count) in nsim_bus_dev_new() argument 330 nsim_bus_dev->port_count = port_count; in nsim_bus_dev_new()
|
H A D | netdevsim.h | 281 unsigned int port_count; member
|
/kernel/linux/linux-6.6/drivers/net/netdevsim/ |
H A D | bus.c | 132 nsim_bus_dev_new(unsigned int id, unsigned int port_count, unsigned int num_queues); 137 unsigned int id, port_count, num_queues; in new_device_store() local 141 err = sscanf(buf, "%u %u %u", &id, &port_count, &num_queues); in new_device_store() 144 port_count = 1; in new_device_store() 156 pr_err("Format for adding new device is \"id port_count num_queues\" (uint uint unit).\n"); in new_device_store() 167 nsim_bus_dev = nsim_bus_dev_new(id, port_count, num_queues); in new_device_store() 268 nsim_bus_dev_new(unsigned int id, unsigned int port_count, unsigned int num_queues) in nsim_bus_dev_new() argument 283 nsim_bus_dev->port_count = port_count; in nsim_bus_dev_new()
|
/kernel/linux/linux-6.6/drivers/net/wwan/t7xx/ |
H A D | t7xx_port_proxy.c | 48 i < (proxy)->port_count; \ 456 unsigned int port_count = ARRAY_SIZE(t7xx_port_conf); in t7xx_proxy_alloc() local 461 port_prox = devm_kzalloc(dev, sizeof(*port_prox) + sizeof(struct t7xx_port) * port_count, in t7xx_proxy_alloc() 469 for (i = 0; i < port_count; i++) in t7xx_proxy_alloc() 472 port_prox->port_count = port_count; in t7xx_proxy_alloc()
|
H A D | t7xx_port_ctrl_msg.c | 130 unsigned int version, port_count, i; in t7xx_port_enum_msg_handler() local 143 port_count = FIELD_GET(PORT_MSG_PRT_CNT, le32_to_cpu(port_msg->info)); in t7xx_port_enum_msg_handler() 144 for (i = 0; i < port_count; i++) { in t7xx_port_enum_msg_handler()
|
H A D | t7xx_port_proxy.h | 35 int port_count; member
|
/kernel/linux/linux-5.10/drivers/infiniband/ulp/opa_vnic/ |
H A D | opa_vnic_netdev.c | 141 u8 i, port_count = 0; in opa_vnic_process_vema_config() local 172 port_num[port_count++] = i; in opa_vnic_process_vema_config() 183 adapter->flow_tbl[i] = port_count ? port_num[i % port_count] : in opa_vnic_process_vema_config()
|
/kernel/linux/linux-6.6/drivers/infiniband/ulp/opa_vnic/ |
H A D | opa_vnic_netdev.c | 140 u8 i, port_count = 0; in opa_vnic_process_vema_config() local 171 port_num[port_count++] = i; in opa_vnic_process_vema_config() 182 adapter->flow_tbl[i] = port_count ? port_num[i % port_count] : in opa_vnic_process_vema_config()
|
/kernel/linux/linux-6.6/drivers/scsi/elx/libefc/ |
H A D | efc_fabric.c | 654 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 = kcalloc(port_count, sizeof(*active_nodes), 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()
|
/kernel/linux/linux-5.10/drivers/tty/ |
H A D | isicom.c | 187 unsigned char port_count; member 414 count = isi_card[card].port_count; in isicom_tx() 540 if (channel + 1 > card->port_count) { in isicom_interrupt() 541 pr_warn("%s(0x%lx): %d(channel) > port_count\n", in isicom_interrupt() 788 for (channel = 0; channel < bp->port_count; channel++, port++) in isicom_setup_board() 844 if (line > ((board * 16) + card->port_count - 1)) in isicom_find_port() 1318 board->port_count = (portcount == 4) ? 4 : 8; in reset_card() 1323 board->port_count = 16; in reset_card() 1576 for (index = 0; index < board->port_count; index++) { in isicom_probe() 1606 for (i = 0; i < board->port_count; in isicom_remove() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/rocker/ |
H A D | rocker.h | 61 unsigned int port_count; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/rocker/ |
H A D | rocker.h | 61 unsigned int port_count; member
|
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/ |
H A D | sdio.c | 1796 u32 port_count; in mwifiex_sdio_card_to_host_mp_aggr() local 1798 for (i = 0, port_count = 0; i < card->max_ports; i++) in mwifiex_sdio_card_to_host_mp_aggr() 1800 port_count++; in mwifiex_sdio_card_to_host_mp_aggr() 1803 * port_count -1", so decrease the count by 1 in mwifiex_sdio_card_to_host_mp_aggr() 1805 port_count--; in mwifiex_sdio_card_to_host_mp_aggr() 1807 (port_count << 8)) + card->mpa_rx.start_port; in mwifiex_sdio_card_to_host_mp_aggr() 2228 u32 port_count; in mwifiex_host_to_card_mp_aggr() local 2231 for (i = 0, port_count = 0; i < card->max_ports; i++) in mwifiex_host_to_card_mp_aggr() 2233 port_count++; in mwifiex_host_to_card_mp_aggr() 2236 * port_count in mwifiex_host_to_card_mp_aggr() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/marvell/mwifiex/ |
H A D | sdio.c | 1831 u32 port_count; in mwifiex_sdio_card_to_host_mp_aggr() local 1833 for (i = 0, port_count = 0; i < card->max_ports; i++) in mwifiex_sdio_card_to_host_mp_aggr() 1835 port_count++; in mwifiex_sdio_card_to_host_mp_aggr() 1838 * port_count -1", so decrease the count by 1 in mwifiex_sdio_card_to_host_mp_aggr() 1840 port_count--; in mwifiex_sdio_card_to_host_mp_aggr() 1842 (port_count << 8)) + card->mpa_rx.start_port; in mwifiex_sdio_card_to_host_mp_aggr() 2263 u32 port_count; in mwifiex_host_to_card_mp_aggr() local 2266 for (i = 0, port_count = 0; i < card->max_ports; i++) in mwifiex_host_to_card_mp_aggr() 2268 port_count++; in mwifiex_host_to_card_mp_aggr() 2271 * port_count in mwifiex_host_to_card_mp_aggr() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera.h | 164 u32 port_count; member
|
/kernel/linux/linux-5.10/drivers/usb/early/ |
H A D | xhci-dbc.c | 369 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_main.c | 779 sparx5->port_count = of_get_child_count(ports); in mchp_sparx5_probe() 781 configs = kcalloc(sparx5->port_count, in mchp_sparx5_probe() 873 for (idx = 0; idx < sparx5->port_count; ++idx) { in mchp_sparx5_probe()
|
/kernel/linux/linux-6.6/drivers/usb/early/ |
H A D | xhci-dbc.c | 369 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()
|