/linux-4.4.14/drivers/net/team/ |
H A D | team_mode_random.c | 21 int port_index; rnd_transmit() local 23 port_index = prandom_u32_max(team->en_port_count); rnd_transmit() 24 port = team_get_port_by_index_rcu(team, port_index); rnd_transmit()
|
H A D | team_mode_roundrobin.c | 31 int port_index; rr_transmit() local 33 port_index = team_num_to_port_index(team, rr_transmit() 35 port = team_get_port_by_index_rcu(team, port_index); rr_transmit()
|
H A D | team_mode_loadbalance.c | 115 int port_index = team_num_to_port_index(team, hash); lb_hash_select_tx_port() local 117 return team_get_port_by_index_rcu(team, port_index); lb_hash_select_tx_port()
|
/linux-4.4.14/include/linux/ |
H A D | if_team.h | 229 int port_index) team_port_index_hash() 231 return &team->en_port_hlist[port_index & (TEAM_PORT_HASHENTRIES - 1)]; team_port_index_hash() 235 int port_index) team_get_port_by_index() 238 struct hlist_head *head = team_port_index_hash(team, port_index); team_get_port_by_index() 241 if (port->index == port_index) team_get_port_by_index() 256 int port_index) team_get_port_by_index_rcu() 259 struct hlist_head *head = team_port_index_hash(team, port_index); team_get_port_by_index_rcu() 262 if (port->index == port_index) team_get_port_by_index_rcu() 228 team_port_index_hash(struct team *team, int port_index) team_port_index_hash() argument 234 team_get_port_by_index(struct team *team, int port_index) team_get_port_by_index() argument 255 team_get_port_by_index_rcu(struct team *team, int port_index) team_get_port_by_index_rcu() argument
|
/linux-4.4.14/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_ae_adapt.c | 41 int port_index; hns_ae_map_eport_to_dport() local 44 port_index = port_id + DSAF_SERVICE_PORT_NUM_PER_DSAF; hns_ae_map_eport_to_dport() 46 port_index = port_id - DSAF_DEBUG_NW_NUM; hns_ae_map_eport_to_dport() 48 return port_index; hns_ae_map_eport_to_dport() 63 if (vf_cb->port_index < DSAF_SERVICE_PORT_NUM_PER_DSAF) { hns_get_ppe_cb() 64 ppe_index = vf_cb->port_index; hns_get_ppe_cb() 69 vf_cb->port_index - DSAF_SERVICE_PORT_NUM_PER_DSAF + 1; hns_get_ppe_cb() 171 vf_cb->port_index = port_idx; hns_ae_get_handle() 321 vf_cb->port_index - DSAF_SERVICE_PORT_NUM_PER_DSAF + 1; hns_ae_reset() 499 port = vf_cb->port_index; hns_ae_update_stats() 594 hns_dsaf_get_stats(vf_cb->dsaf_dev, p, vf_cb->port_index); hns_ae_get_stats() 610 port = vf_cb->port_index; hns_ae_get_strings() 701 rcb_com_idx = hns_dsaf_get_comm_idx_by_port(vf_cb->port_index); hns_ae_get_regs() 714 hns_dsaf_get_regs(vf_cb->dsaf_dev, vf_cb->port_index, p); hns_ae_get_regs()
|
H A D | hns_dsaf_main.h | 184 u8 port_index; member in struct:hnae_vf_cb
|
H A D | hns_dsaf_rcb.c | 111 hns_ae_get_vf_cb(q->handle)->port_index); hns_rcb_reset_ring_hw()
|
/linux-4.4.14/net/dsa/ |
H A D | dsa.c | 594 int chip_index, int port_index, dsa_of_setup_routing_table() 630 cd->rtable[link_sw_addr] = port_index; dsa_of_setup_routing_table() 637 int chip_index, int port_index, dsa_of_probe_links() 652 port_index, link); dsa_of_probe_links() 663 int port_index; dsa_of_free_platform_data() local 666 port_index = 0; dsa_of_free_platform_data() 667 while (port_index < DSA_MAX_PORTS) { dsa_of_free_platform_data() 668 kfree(pd->chip[i].port_names[port_index]); dsa_of_free_platform_data() 669 port_index++; dsa_of_free_platform_data() 689 int chip_index, port_index; dsa_of_probe() local 775 port_index = be32_to_cpup(port_reg); for_each_available_child_of_node() 776 if (port_index >= DSA_MAX_PORTS) for_each_available_child_of_node() 783 cd->port_dn[port_index] = port; for_each_available_child_of_node() 785 cd->port_names[port_index] = kstrdup(port_name, for_each_available_child_of_node() 787 if (!cd->port_names[port_index]) { for_each_available_child_of_node() 793 port_index, port, port_name); for_each_available_child_of_node() 592 dsa_of_setup_routing_table(struct dsa_platform_data *pd, struct dsa_chip_data *cd, int chip_index, int port_index, struct device_node *link) dsa_of_setup_routing_table() argument 635 dsa_of_probe_links(struct dsa_platform_data *pd, struct dsa_chip_data *cd, int chip_index, int port_index, struct device_node *port, const char *port_name) dsa_of_probe_links() argument
|
/linux-4.4.14/drivers/w1/masters/ |
H A D | matrox_w1.c | 81 void __iomem *port_index; member in struct:matrox_device 110 writeb(reg, dev->port_index); matrox_w1_read_reg() 119 writeb(reg, dev->port_index); matrox_w1_write_reg() 193 dev->port_index = dev->base_addr + MATROX_PORT_INDEX_OFFSET; matrox_w1_probe()
|
/linux-4.4.14/drivers/usb/host/ |
H A D | xhci-hub.c | 1279 int max_ports, port_index; xhci_bus_suspend() local 1298 port_index = max_ports; xhci_bus_suspend() 1300 while (port_index--) { xhci_bus_suspend() 1305 t1 = readl(port_array[port_index]); xhci_bus_suspend() 1309 xhci_dbg(xhci, "port %d not suspended\n", port_index); xhci_bus_suspend() 1311 port_index + 1); xhci_bus_suspend() 1319 set_bit(port_index, &bus_state->bus_suspended); xhci_bus_suspend() 1338 writel(t2, port_array[port_index]); xhci_bus_suspend() 1349 int max_ports, port_index; xhci_bus_resume() local 1376 port_index = max_ports; xhci_bus_resume() 1377 while (port_index--) { xhci_bus_resume() 1382 temp = readl(port_array[port_index]); xhci_bus_resume() 1387 if (test_bit(port_index, &bus_state->bus_suspended) && xhci_bus_resume() 1389 set_bit(port_index, &port_was_suspended); xhci_bus_resume() 1392 port_index, XDEV_RESUME); xhci_bus_resume() 1396 writel(temp, port_array[port_index]); xhci_bus_resume() 1405 port_index = max_ports; xhci_bus_resume() 1406 while (port_index--) { xhci_bus_resume() 1407 if (!(port_was_suspended & BIT(port_index))) xhci_bus_resume() 1410 xhci_test_and_clear_bit(xhci, port_array, port_index, PORT_PLC); xhci_bus_resume() 1411 xhci_set_link_state(xhci, port_array, port_index, XDEV_U0); xhci_bus_resume() 1414 port_index = max_ports; xhci_bus_resume() 1415 while (port_index--) { xhci_bus_resume() 1416 if (!(port_was_suspended & BIT(port_index))) xhci_bus_resume() 1419 sret = xhci_handshake(port_array[port_index], PORT_PLC, xhci_bus_resume() 1423 port_index); xhci_bus_resume() 1424 xhci_test_and_clear_bit(xhci, port_array, port_index, PORT_PLC); xhci_bus_resume() 1425 slot_id = xhci_find_slot_id_by_port(hcd, xhci, port_index + 1); xhci_bus_resume()
|
H A D | u132-hcd.c | 2645 static int u132_roothub_portreset(struct u132 *u132, int port_index) u132_roothub_portreset() argument 2660 roothub.portstatus[port_index], &portstat); u132_roothub_portreset() 2673 roothub.portstatus[port_index], u132_roothub_portreset() 2681 retval = u132_write_pcimem(u132, roothub.portstatus[port_index], u132_roothub_portreset() 2700 int port_index = wIndex - 1; u132_roothub_setportfeature() local 2701 struct u132_port *port = &u132->port[port_index]; u132_roothub_setportfeature() 2706 roothub.portstatus[port_index], RH_PS_PSS); u132_roothub_setportfeature() 2709 roothub.portstatus[port_index], RH_PS_PPS); u132_roothub_setportfeature() 2711 return u132_roothub_portreset(u132, port_index); u132_roothub_setportfeature() 2724 int port_index = wIndex - 1; u132_roothub_clearportfeature() local 2726 struct u132_port *port = &u132->port[port_index]; u132_roothub_clearportfeature() 2761 return u132_write_pcimem(u132, roothub.portstatus[port_index], u132_roothub_clearportfeature()
|
H A D | xhci-mem.c | 2202 int i, j, port_index; xhci_setup_port_arrays() local 2306 port_index = 0; xhci_setup_port_arrays() 2313 xhci->usb2_ports[port_index] = xhci_setup_port_arrays() 2319 xhci->usb2_ports[port_index]); xhci_setup_port_arrays() 2320 port_index++; xhci_setup_port_arrays() 2321 if (port_index == xhci->num_usb2_ports) xhci_setup_port_arrays() 2331 port_index = 0; xhci_setup_port_arrays() 2334 xhci->usb3_ports[port_index] = xhci_setup_port_arrays() 2340 xhci->usb3_ports[port_index]); xhci_setup_port_arrays() 2341 port_index++; xhci_setup_port_arrays() 2342 if (port_index == xhci->num_usb3_ports) xhci_setup_port_arrays()
|
H A D | xhci.c | 855 int port_index; xhci_disable_port_wake_on_bits() local 863 port_index = xhci->num_usb3_ports; xhci_disable_port_wake_on_bits() 865 while (port_index--) { xhci_disable_port_wake_on_bits() 866 t1 = readl(port_array[port_index]); xhci_disable_port_wake_on_bits() 870 writel(t2, port_array[port_index]); xhci_disable_port_wake_on_bits() 874 port_index = xhci->num_usb2_ports; xhci_disable_port_wake_on_bits() 876 while (port_index--) { xhci_disable_port_wake_on_bits() 877 t1 = readl(port_array[port_index]); xhci_disable_port_wake_on_bits() 881 writel(t2, port_array[port_index]); xhci_disable_port_wake_on_bits() 2332 unsigned int port_index = virt_dev->real_port - 1; xhci_check_bw_table() local 2339 xhci->rh_bw[port_index].num_active_tts; xhci_check_bw_table()
|
/linux-4.4.14/drivers/infiniband/hw/mlx4/ |
H A D | alias_GUID.c | 81 int port_index = port_num - 1; mlx4_ib_update_cache_on_guid_change() local 102 memcpy(&dev->sriov.demux[port_index].guid_cache[slave_id], mlx4_ib_update_cache_on_guid_change() 132 int port_index = port - 1; mlx4_ib_slave_alias_guid_event() local 137 if (dev->sriov.alias_guid.ports_guid[port_index].state_flags & mlx4_ib_slave_alias_guid_event() 142 alias_guid.ports_guid[port_index]. mlx4_ib_slave_alias_guid_event() 154 *(__be64 *)&dev->sriov.alias_guid.ports_guid[port_index]. mlx4_ib_slave_alias_guid_event() 157 dev->sriov.alias_guid.ports_guid[port_index]. mlx4_ib_slave_alias_guid_event() 160 dev->sriov.alias_guid.ports_guid[port_index]. mlx4_ib_slave_alias_guid_event() 164 dev->sriov.alias_guid.ports_guid[port_index]. mlx4_ib_slave_alias_guid_event() 166 dev->sriov.alias_guid.ports_guid[port_index]. mlx4_ib_slave_alias_guid_event() 174 mlx4_ib_init_alias_guid_work(dev, port_index); mlx4_ib_slave_alias_guid_event() 294 u8 port_index ; aliasguid_query_handler() local 306 port_index = cb_ctx->port - 1; aliasguid_query_handler() 307 rec = &dev->sriov.alias_guid.ports_guid[port_index]. aliasguid_query_handler() 327 rec = &dev->sriov.alias_guid.ports_guid[port_index]. aliasguid_query_handler() 437 get_low_record_time_index(dev, port_index, &resched_delay_sec); aliasguid_query_handler() 438 queue_delayed_work(dev->sriov.alias_guid.ports_guid[port_index].wq, aliasguid_query_handler() 439 &dev->sriov.alias_guid.ports_guid[port_index]. aliasguid_query_handler()
|
/linux-4.4.14/drivers/scsi/isci/ |
H A D | port_config.c | 249 u8 port_index; sci_mpc_agent_validate_phy_configuration() local 256 for (port_index = 0; port_index < SCI_MAX_PORTS; port_index++) { sci_mpc_agent_validate_phy_configuration() 257 phy_mask = ihost->oem_parameters.ports[port_index].phy_mask; sci_mpc_agent_validate_phy_configuration() 279 port_agent->phy_valid_port_range[phy_index].min_index = port_index; sci_mpc_agent_validate_phy_configuration() 282 if (phy_index != port_index) { sci_mpc_agent_validate_phy_configuration() 307 port_agent->phy_valid_port_range[phy_index].min_index = port_index; sci_mpc_agent_validate_phy_configuration() 310 sci_port_add_phy(&ihost->ports[port_index], sci_mpc_agent_validate_phy_configuration() 437 u8 port_index; sci_apc_agent_validate_phy_configuration() local 444 port_index = phy_index; sci_apc_agent_validate_phy_configuration() 456 port_agent->phy_valid_port_range[phy_index].min_index = port_index; sci_apc_agent_validate_phy_configuration() 487 u8 port_index; sci_apc_agent_configure_ports() local 506 for (port_index = port_agent->phy_valid_port_range[iphy->phy_index].min_index; sci_apc_agent_configure_ports() 507 port_index <= port_agent->phy_valid_port_range[iphy->phy_index].max_index; sci_apc_agent_configure_ports() 508 port_index++) { sci_apc_agent_configure_ports() 510 iport = &ihost->ports[port_index]; sci_apc_agent_configure_ports()
|
H A D | port.h | 204 u8 port_index,
|
/linux-4.4.14/drivers/firewire/ |
H A D | core-topology.c | 102 static int get_port_type(u32 *sid, int port_index) get_port_type() argument 106 index = (port_index + 5) / 8; get_port_type() 107 shift = 16 - ((port_index + 5) & 7) * 2; get_port_type()
|
H A D | ohci.c | 1775 static int get_status_for_port(struct fw_ohci *ohci, int port_index) get_status_for_port() argument 1780 reg = write_phy_reg(ohci, 7, port_index); get_status_for_port()
|
/linux-4.4.14/drivers/staging/octeon/ |
H A D | ethernet.c | 759 int port_index; cvm_oct_probe() local 761 for (port_index = 0, cvm_oct_probe() 764 port_index++, port++) { cvm_oct_probe() 778 port_index); cvm_oct_probe()
|
/linux-4.4.14/sound/core/seq/ |
H A D | seq_ports.h | 105 struct snd_seq_client_port *snd_seq_create_port(struct snd_seq_client *client, int port_index);
|
/linux-4.4.14/arch/powerpc/sysdev/ |
H A D | fsl_rio.c | 436 const u32 *dt_range, *cell, *port_index; fsl_rio_setup() local 571 port_index = of_get_property(np, "cell-index", NULL); fsl_rio_setup() 572 if (!port_index) { fsl_rio_setup() 609 i = *port_index - 1; fsl_rio_setup()
|
/linux-4.4.14/drivers/scsi/lpfc/ |
H A D | lpfc_debugfs.h | 349 "host_index:%d, port_index:%d]\n", lpfc_debug_dump_q()
|
/linux-4.4.14/drivers/usb/wusbcore/ |
H A D | devconnect.c | 351 * @port_index: zero based port number
|
/linux-4.4.14/drivers/target/ |
H A D | target_core_stat.c | 689 CONFIGFS_ATTR_RO(target_stat_tgt_port_, port_index);
|