/kernel/linux/linux-5.10/drivers/ata/ |
H A D | pata_jmicron.c | 50 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()
|
H A D | libahci.c | 427 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() 501 if (hpriv->force_port_map && port_map != hpriv->force_port_map) { in ahci_save_initial_config() 502 dev_info(dev, "forcing port_map 0x%x -> 0x%x\n", in ahci_save_initial_config() 503 port_map, hpriv->force_port_map); in ahci_save_initial_config() 504 port_map = hpriv->force_port_map; in ahci_save_initial_config() 505 hpriv->saved_port_map = port_map; in ahci_save_initial_config() 509 dev_warn(dev, "masking port_map 0x%x -> 0x%x\n", in ahci_save_initial_config() 510 port_map, in ahci_save_initial_config() 511 port_map in ahci_save_initial_config() [all...] |
H A D | ahci.c | 1464 * port_map may hold a value of 0x00. 1466 * Overriding CAP.NP to 0x02 and the port_map to 0x7 will reveal all 3 ports 1488 hpriv->port_map = 0x7; in acer_sa5_271_workaround() 1516 irq_masked = irq_stat & hpriv->port_map; in ahci_thunderx_irq_handler() 1667 * port_map is determined from PORTS_IMPL PCI register which is in ahci_intel_pcs_quirk() 1675 if ((tmp16 & hpriv->port_map) != hpriv->port_map) { in ahci_intel_pcs_quirk() 1676 tmp16 |= hpriv->port_map; in ahci_intel_pcs_quirk() 1874 * both CAP.NP and port_map. in ahci_init_one() 1876 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in ahci_init_one() [all...] |
H A D | acard-ahci.c | 412 * both CAP.NP and port_map. in acard_ahci_init_one() 414 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()
|
H A D | libahci_platform.c | 618 * both CAP.NP and port_map. in ahci_platform_init_host() 620 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in ahci_platform_init_host() 648 if (!(hpriv->port_map & (1 << i))) in ahci_platform_init_host()
|
H A D | sata_highbank.c | 519 * both CAP.NP and port_map. in ahci_highbank_probe() 521 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in ahci_highbank_probe() 549 if (!(hpriv->port_map & (1 << i))) in ahci_highbank_probe()
|
H A D | ahci.h | 336 u32 port_map; /* port map to use */ member 339 u32 saved_port_map; /* saved initial port_map */
|
/kernel/linux/linux-5.10/drivers/ide/ |
H A D | jmicron.c | 37 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()
|
/kernel/linux/linux-6.6/drivers/ata/ |
H A D | pata_jmicron.c | 50 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()
|
H A D | libahci.c | 450 unsigned long port_map; in ahci_save_initial_config() local 535 port_map = readl(mmio + HOST_PORTS_IMPL); in ahci_save_initial_config() 536 if (hpriv->saved_port_map && port_map != hpriv->saved_port_map) { in ahci_save_initial_config() 537 dev_info(dev, "forcing port_map 0x%lx -> 0x%x\n", in ahci_save_initial_config() 538 port_map, hpriv->saved_port_map); in ahci_save_initial_config() 539 port_map = hpriv->saved_port_map; in ahci_save_initial_config() 541 hpriv->saved_port_map = port_map; in ahci_save_initial_config() 545 dev_warn(dev, "masking port_map 0x%lx -> 0x%lx\n", in ahci_save_initial_config() 546 port_map, in ahci_save_initial_config() 547 port_map in ahci_save_initial_config() 622 unsigned long port_map = hpriv->port_map; ahci_restore_initial_config() local [all...] |
H A D | ahci_dwc.c | 184 unsigned long port_map = hpriv->saved_port_map | hpriv->mask_port_map; in ahci_dwc_check_cap() local 208 for_each_set_bit(i, &port_map, AHCI_MAX_PORTS) { in ahci_dwc_check_cap() 343 unsigned long port_map = hpriv->port_map; in ahci_dwc_reinit_host() local 359 for_each_set_bit(i, &port_map, AHCI_MAX_PORTS) { in ahci_dwc_reinit_host()
|
H A D | ahci.c | 1488 * port_map may hold a value of 0x00. 1490 * Overriding CAP.NP to 0x02 and the port_map to 0x7 will reveal all 3 ports 1512 hpriv->port_map = 0x7; in acer_sa5_271_workaround() 1540 irq_masked = irq_stat & hpriv->port_map; in ahci_thunderx_irq_handler() 1688 * port_map is determined from PORTS_IMPL PCI register which is in ahci_intel_pcs_quirk() 1696 if ((tmp16 & hpriv->port_map) != hpriv->port_map) { in ahci_intel_pcs_quirk() 1697 tmp16 |= hpriv->port_map; in ahci_intel_pcs_quirk() 1893 * both CAP.NP and port_map. in ahci_init_one() 1895 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in ahci_init_one() [all...] |
H A D | acard-ahci.c | 406 * both CAP.NP and port_map. in acard_ahci_init_one() 408 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in acard_ahci_init_one() 432 if (!(hpriv->port_map & (1 << i))) in acard_ahci_init_one()
|
H A D | libahci_platform.c | 716 * both CAP.NP and port_map. in ahci_platform_init_host() 718 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in ahci_platform_init_host() 746 if (!(hpriv->port_map & (1 << i))) in ahci_platform_init_host()
|
H A D | sata_highbank.c | 517 * both CAP.NP and port_map. in ahci_highbank_probe() 519 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/ |
H A D | mvneta_bm.h | 127 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() 168 u8 port_map) {} in mvneta_bm_bufs_free() 163 mvneta_bm_pool_destroy(struct mvneta_bm *priv, struct mvneta_bm_pool *bm_pool, u8 port_map) mvneta_bm_pool_destroy() argument 166 mvneta_bm_bufs_free(struct mvneta_bm *priv, struct mvneta_bm_pool *bm_pool, u8 port_map) mvneta_bm_bufs_free() argument
|
H A D | mvneta_bm.c | 166 new_pool->port_map != 1 << port_id) { in mvneta_bm_pool_use() 218 u8 port_map) in mvneta_bm_bufs_free() 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() 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() 217 mvneta_bm_bufs_free(struct mvneta_bm *priv, struct mvneta_bm_pool *bm_pool, u8 port_map) mvneta_bm_bufs_free() argument 258 mvneta_bm_pool_destroy(struct mvneta_bm *priv, struct mvneta_bm_pool *bm_pool, u8 port_map) mvneta_bm_pool_destroy() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/ |
H A D | mvneta_bm.h | 127 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() 168 u8 port_map) {} in mvneta_bm_bufs_free() 163 mvneta_bm_pool_destroy(struct mvneta_bm *priv, struct mvneta_bm_pool *bm_pool, u8 port_map) mvneta_bm_pool_destroy() argument 166 mvneta_bm_bufs_free(struct mvneta_bm *priv, struct mvneta_bm_pool *bm_pool, u8 port_map) mvneta_bm_bufs_free() argument
|
H A D | mvneta_bm.c | 166 new_pool->port_map != 1 << port_id) { in mvneta_bm_pool_use() 218 u8 port_map) in mvneta_bm_bufs_free() 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() 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() 217 mvneta_bm_bufs_free(struct mvneta_bm *priv, struct mvneta_bm_pool *bm_pool, u8 port_map) mvneta_bm_bufs_free() argument 258 mvneta_bm_pool_destroy(struct mvneta_bm *priv, struct mvneta_bm_pool *bm_pool, u8 port_map) mvneta_bm_pool_destroy() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/dsa/ |
H A D | lan9303-core.c | 509 if (entr->port_map == 0) in lan9303_alr_cache_find_free() 650 /* Set a static ALR entry. Delete entry if port_map is zero */ 652 u8 port_map, bool stp_override) in lan9303_alr_set_entry() 656 dev_dbg(chip->dev, "%s(%pM, %d)\n", __func__, mac, port_map); in lan9303_alr_set_entry() 658 if (port_map) in lan9303_alr_set_entry() 664 alr_port = portmap_2_alrport[port_map & 7]; in lan9303_alr_set_entry() 696 entr->port_map |= BIT(port); in lan9303_alr_add_port() 698 lan9303_alr_set_entry(chip, mac, entr->port_map, stp_override); in lan9303_alr_add_port() 714 entr->port_map &= ~BIT(port); in lan9303_alr_del_port() 715 if (entr->port_map in lan9303_alr_del_port() 651 lan9303_alr_set_entry(struct lan9303 *chip, const u8 *mac, u8 port_map, bool stp_override) lan9303_alr_set_entry() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/dsa/ |
H A D | lan9303-core.c | 529 if (entr->port_map == 0) in lan9303_alr_cache_find_free() 670 /* Set a static ALR entry. Delete entry if port_map is zero */ 672 u8 port_map, bool stp_override) in lan9303_alr_set_entry() 676 dev_dbg(chip->dev, "%s(%pM, %d)\n", __func__, mac, port_map); in lan9303_alr_set_entry() 678 if (port_map) in lan9303_alr_set_entry() 684 alr_port = portmap_2_alrport[port_map & 7]; in lan9303_alr_set_entry() 716 entr->port_map |= BIT(port); in lan9303_alr_add_port() 718 lan9303_alr_set_entry(chip, mac, entr->port_map, stp_override); in lan9303_alr_add_port() 734 entr->port_map &= ~BIT(port); in lan9303_alr_del_port() 735 if (entr->port_map in lan9303_alr_del_port() 671 lan9303_alr_set_entry(struct lan9303 *chip, const u8 *mac, u8 port_map, bool stp_override) lan9303_alr_set_entry() argument [all...] |
/kernel/linux/linux-5.10/include/linux/dsa/ |
H A D | lan9303.h | 16 u8 port_map; /* Bitmap of ports. Zero if unused entry */ member
|
/kernel/linux/linux-6.6/include/linux/dsa/ |
H A D | lan9303.h | 16 u8 port_map; /* Bitmap of ports. Zero if unused entry */ member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/mvpp2/ |
H A D | mvpp2_main.c | 1227 port->pool_long->port_map |= BIT(port->id); in mvpp2_swf_bm_pool_init_shared() 1240 port->pool_short->port_map |= BIT(port->id); in mvpp2_swf_bm_pool_init_shared() 1262 bm_pool->port_map |= BIT(port->id); in mvpp2_swf_bm_pool_init_percpu() 1272 bm_pool->port_map |= BIT(port->id); in mvpp2_swf_bm_pool_init_percpu() 1342 port->pool_long->port_map &= ~BIT(port->id); in mvpp2_bm_update_mtu() 1347 port->pool_short->port_map &= ~BIT(port->id); in mvpp2_bm_update_mtu() 7141 unsigned long port_map; in mvpp22_rx_fifo_init() local 7148 port_map = priv->port_map & ~BIT(MVPP2_LOOPBACK_PORT_INDEX); in mvpp22_rx_fifo_init() 7151 for_each_clear_bit(port, &port_map, MVPP2_LOOPBACK_PORT_INDE in mvpp22_rx_fifo_init() 7247 unsigned long port_map; mvpp22_tx_fifo_init() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/mvpp2/ |
H A D | mvpp2_prs.c | 706 unsigned int port_map) in mvpp2_prs_vlan_add() 769 mvpp2_prs_tcam_port_map_set(&pe, port_map); in mvpp2_prs_vlan_add() 825 unsigned int port_map) in mvpp2_prs_double_vlan_add() 890 mvpp2_prs_tcam_port_map_set(&pe, port_map); in mvpp2_prs_double_vlan_add() 705 mvpp2_prs_vlan_add(struct mvpp2 *priv, unsigned short tpid, int ai, unsigned int port_map) mvpp2_prs_vlan_add() argument 823 mvpp2_prs_double_vlan_add(struct mvpp2 *priv, unsigned short tpid1, unsigned short tpid2, unsigned int port_map) mvpp2_prs_double_vlan_add() argument
|