Home
last modified time | relevance | path

Searched refs:port_map (Results 1 – 18 of 18) sorted by relevance

/drivers/ide/
Djmicron.c37 port_type port_map[2]; in jmicron_cable_detect() local
45 port_map[0] = PORT_SATA; in jmicron_cable_detect()
46 port_map[1] = PORT_PATA0; in jmicron_cable_detect()
48 port_map[0] = PORT_SATA; in jmicron_cable_detect()
49 port_map[1] = PORT_SATA; in jmicron_cable_detect()
56 port_map[0] = PORT_PATA1; in jmicron_cable_detect()
67 switch (port_map[port]) { in jmicron_cable_detect()
/drivers/ata/
Dpata_jmicron.c50 port_type port_map[2]; in jmicron_pre_reset() local
61 port_map[0] = PORT_SATA; in jmicron_pre_reset()
62 port_map[1] = PORT_PATA0; in jmicron_pre_reset()
64 port_map[0] = PORT_SATA; in jmicron_pre_reset()
65 port_map[1] = PORT_SATA; in jmicron_pre_reset()
72 port_map[0] = PORT_PATA1; in jmicron_pre_reset()
83 switch (port_map[port]) { in jmicron_pre_reset()
Dlibahci.c427 u32 cap, cap2, vers, port_map; in ahci_save_initial_config() local
437 hpriv->saved_port_map = port_map = readl(mmio + HOST_PORTS_IMPL); in ahci_save_initial_config()
496 if (hpriv->force_port_map && port_map != hpriv->force_port_map) { in ahci_save_initial_config()
498 port_map, hpriv->force_port_map); in ahci_save_initial_config()
499 port_map = hpriv->force_port_map; in ahci_save_initial_config()
500 hpriv->saved_port_map = port_map; in ahci_save_initial_config()
505 port_map, in ahci_save_initial_config()
506 port_map & hpriv->mask_port_map); in ahci_save_initial_config()
507 port_map &= hpriv->mask_port_map; in ahci_save_initial_config()
511 if (port_map) { in ahci_save_initial_config()
[all …]
Dahci.c1429 hpriv->port_map = 0x7; in acer_sa5_271_workaround()
1458 irq_masked = irq_stat & hpriv->port_map; in ahci_thunderx_irq_handler()
1617 if ((tmp16 & hpriv->port_map) != hpriv->port_map) { in ahci_intel_pcs_quirk()
1618 tmp16 |= hpriv->port_map; in ahci_intel_pcs_quirk()
1800 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in ahci_init_one()
1835 if (!(hpriv->port_map & (1 << i))) in ahci_init_one()
Dacard-ahci.c414 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in acard_ahci_init_one()
438 if (!(hpriv->port_map & (1 << i))) in acard_ahci_init_one()
Dlibahci_platform.c611 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in ahci_platform_init_host()
639 if (!(hpriv->port_map & (1 << i))) in ahci_platform_init_host()
Dsata_highbank.c519 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in ahci_highbank_probe()
547 if (!(hpriv->port_map & (1 << i))) in ahci_highbank_probe()
Dahci.h332 u32 port_map; /* port map to use */ member
Dahci_xgene.c601 irq_masked = irq_stat & hpriv->port_map; in xgene_ahci_irq_intr()
/drivers/net/ethernet/marvell/
Dmvneta_bm.h127 u8 port_map; member
138 struct mvneta_bm_pool *bm_pool, u8 port_map);
140 u8 port_map);
165 u8 port_map) {} in mvneta_bm_pool_destroy() argument
168 u8 port_map) {} in mvneta_bm_bufs_free() argument
Dmvneta_bm.c166 new_pool->port_map != 1 << port_id) { in mvneta_bm_pool_use()
218 u8 port_map) in mvneta_bm_bufs_free() argument
222 bm_pool->port_map &= ~port_map; in mvneta_bm_bufs_free()
223 if (bm_pool->port_map) in mvneta_bm_bufs_free()
259 struct mvneta_bm_pool *bm_pool, u8 port_map) in mvneta_bm_pool_destroy() argument
262 bm_pool->port_map &= ~port_map; in mvneta_bm_pool_destroy()
263 if (bm_pool->port_map) in mvneta_bm_pool_destroy()
268 mvneta_bm_bufs_free(priv, bm_pool, port_map); in mvneta_bm_pool_destroy()
Dmvneta.c1073 pp->pool_long->port_map |= 1 << pp->id; in mvneta_bm_port_init()
1093 pp->pool_short->port_map |= 1 << pp->id; in mvneta_bm_port_init()
/drivers/net/dsa/
Dlan9303-core.c509 if (entr->port_map == 0) in lan9303_alr_cache_find_free()
646 u8 port_map, bool stp_override) in lan9303_alr_set_entry() argument
650 dev_dbg(chip->dev, "%s(%pM, %d)\n", __func__, mac, port_map); in lan9303_alr_set_entry()
652 if (port_map) in lan9303_alr_set_entry()
658 alr_port = portmap_2_alrport[port_map & 7]; in lan9303_alr_set_entry()
690 entr->port_map |= BIT(port); in lan9303_alr_add_port()
692 lan9303_alr_set_entry(chip, mac, entr->port_map, stp_override); in lan9303_alr_add_port()
708 entr->port_map &= ~BIT(port); in lan9303_alr_del_port()
709 if (entr->port_map == 0) /* zero means its free again */ in lan9303_alr_del_port()
711 lan9303_alr_set_entry(chip, mac, entr->port_map, entr->stp_override); in lan9303_alr_del_port()
/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_prs.c674 unsigned int port_map) in mvpp2_prs_vlan_add() argument
737 mvpp2_prs_tcam_port_map_set(&pe, port_map); in mvpp2_prs_vlan_add()
793 unsigned int port_map) in mvpp2_prs_double_vlan_add() argument
858 mvpp2_prs_tcam_port_map_set(&pe, port_map); in mvpp2_prs_double_vlan_add()
Dmvpp2_main.c881 port->pool_long->port_map |= BIT(port->id); in mvpp2_swf_bm_pool_init_shared()
894 port->pool_short->port_map |= BIT(port->id); in mvpp2_swf_bm_pool_init_shared()
916 port->priv->bm_pools[i].port_map |= BIT(port->id); in mvpp2_swf_bm_pool_init_percpu()
926 port->priv->bm_pools[i + port->nrxqs].port_map |= BIT(port->id); in mvpp2_swf_bm_pool_init_percpu()
987 port->pool_long->port_map &= ~BIT(port->id); in mvpp2_bm_update_mtu()
992 port->pool_short->port_map &= ~BIT(port->id); in mvpp2_bm_update_mtu()
Dmvpp2.h1188 u32 port_map; member
/drivers/net/ethernet/mellanox/mlx4/
Den_netdev.c2979 struct mlx4_port_map port_map; member
2997 err = mlx4_port_map_set(dev, &bond->port_map); in mlx4_en_bond_work()
3000 bond->port_map.port1, in mlx4_en_bond_work()
3001 bond->port_map.port2, in mlx4_en_bond_work()
3025 bond->port_map.port1 = v2p_p1; in mlx4_en_queue_bond_work()
3026 bond->port_map.port2 = v2p_p2; in mlx4_en_queue_bond_work()
/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_main.c3052 const u32 port_map[DSAF_ROCE_CREDIT_CHN][DSAF_ROCE_CHAN_MODE_NUM] = { in hns_dsaf_roce_reset() local
3116 port_map[i][DSAF_ROCE_6PORT_MODE]); in hns_dsaf_roce_reset()