Home
last modified time | relevance | path

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

12

/openbmc/u-boot/arch/x86/cpu/ivybridge/
H A Dsata.c18 static void common_sata_init(struct udevice *dev, unsigned int port_map) in common_sata_init() argument
30 reg16 |= port_map; in common_sata_init()
34 port_map &= 0xff; in common_sata_init()
40 unsigned int port_map, speed_support, port_tx; in bd82x6x_sata_init() local
50 port_map = fdtdec_get_int(blob, node, "intel,sata-port-map", 0); in bd82x6x_sata_init()
71 common_sata_init(dev, 0x8000 | port_map); in bd82x6x_sata_init()
87 writel(port_map, abar + 0x0c); in bd82x6x_sata_init()
121 common_sata_init(dev, port_map); in bd82x6x_sata_init()
151 common_sata_init(dev, port_map); in bd82x6x_sata_init()
194 unsigned port_map; in bd82x6x_sata_enable() local
[all …]
/openbmc/linux/drivers/ata/
H A 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()
H A Dahci_dwc.c184 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 Dlibahci.c450 unsigned long port_map; in ahci_save_initial_config() local
539 port_map = hpriv->saved_port_map; in ahci_save_initial_config()
541 hpriv->saved_port_map = port_map; in ahci_save_initial_config()
546 port_map, in ahci_save_initial_config()
548 port_map &= hpriv->mask_port_map; in ahci_save_initial_config()
552 if (port_map) { in ahci_save_initial_config()
556 if (port_map & (1 << i)) in ahci_save_initial_config()
566 port_map = 0; in ahci_save_initial_config()
597 hpriv->port_map = port_map; in ahci_save_initial_config()
622 unsigned long port_map = hpriv->port_map; in ahci_restore_initial_config() local
[all …]
H A Dacard-ahci.c408 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 Dahci.c1592 hpriv->port_map = 0x7; in acer_sa5_271_workaround()
1620 irq_masked = irq_stat & hpriv->port_map; in ahci_thunderx_irq_handler()
1776 if ((tmp16 & hpriv->port_map) != hpriv->port_map) { in ahci_intel_pcs_quirk()
1777 tmp16 |= hpriv->port_map; in ahci_intel_pcs_quirk()
1975 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in ahci_init_one()
2021 if (!(hpriv->port_map & (1 << i))) in ahci_init_one()
H A Dlibahci_platform.c718 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 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()
H A Dahci.h339 u32 port_map; /* port map to use */ member
H A Dahci_xgene.c598 irq_masked = irq_stat & hpriv->port_map; in xgene_ahci_irq_intr()
/openbmc/u-boot/arch/x86/cpu/broadwell/
H A Dsata.c19 int port_map; member
57 reg16 |= 0x8000 | plat->port_map; in broadwell_sata_init()
75 reg32 |= (plat->port_map ^ 0xf) << 24; in broadwell_sata_init()
90 writel(plat->port_map, abar + 0x0c); in broadwell_sata_init()
102 if (!(plat->port_map & (1 << port))) in broadwell_sata_init()
112 if ((plat->port_map & ((1 << 3)|(1 << 2))) == 0) in broadwell_sata_init()
115 if ((plat->port_map & ((1 << 1)|(1 << 0))) == 0) in broadwell_sata_init()
223 map |= (plat->port_map ^ 0x3f) << 8; in broadwell_sata_enable()
239 plat->port_map = fdtdec_get_int(blob, node, "intel,sata-port-map", 0); in broadwell_sata_ofdata_to_platdata()
/openbmc/linux/drivers/net/ethernet/marvell/
H A 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
H A 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()
/openbmc/u-boot/board/highbank/
H A Dahci.c143 u32 port_map; in cphy_disable_overrides() local
145 port_map = readl(0xffe08000 + HOST_PORTS_IMPL); in cphy_disable_overrides()
147 if (port_map & (1 << i)) in cphy_disable_overrides()
/openbmc/linux/drivers/net/dsa/
H A Dlan9303-core.c530 if (entr->port_map == 0) in lan9303_alr_cache_find_free()
673 u8 port_map, bool stp_override) in lan9303_alr_set_entry() argument
677 dev_dbg(chip->dev, "%s(%pM, %d)\n", __func__, mac, port_map); in lan9303_alr_set_entry()
679 if (port_map) in lan9303_alr_set_entry()
685 alr_port = portmap_2_alrport[port_map & 7]; in lan9303_alr_set_entry()
717 entr->port_map |= BIT(port); in lan9303_alr_add_port()
719 lan9303_alr_set_entry(chip, mac, entr->port_map, stp_override); in lan9303_alr_add_port()
735 entr->port_map &= ~BIT(port); in lan9303_alr_del_port()
736 if (entr->port_map == 0) /* zero means its free again */ in lan9303_alr_del_port()
738 lan9303_alr_set_entry(chip, mac, entr->port_map, entr->stp_override); in lan9303_alr_del_port()
/openbmc/linux/include/linux/dsa/
H A Dlan9303.h16 u8 port_map; /* Bitmap of ports. Zero if unused entry */ member
/openbmc/u-boot/drivers/ata/
H A Dahci.c190 u32 port_map; in ahci_host_init() local
226 uc_priv->port_map = readl(mmio + HOST_PORTS_IMPL); in ahci_host_init()
227 port_map = uc_priv->port_map; in ahci_host_init()
231 uc_priv->cap, uc_priv->port_map, uc_priv->n_ports); in ahci_host_init()
239 if (!(port_map & (1 << i))) in ahci_host_init()
372 impl = uc_priv->port_map; in ahci_print_info()
H A Ddwc_ahsata.c153 uc_priv->port_map = readl(&host_mmio->pi); in ahci_host_init()
159 uc_priv->cap, uc_priv->port_map, uc_priv->n_ports); in ahci_host_init()
278 impl = uc_priv->port_map; in ahci_print_info()
/openbmc/u-boot/include/
H A Dahci.h174 u32 port_map; /* cache of HOST_PORTS_IMPL reg */ member
/openbmc/linux/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_main.c1227 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()
7144 unsigned long port_map; in mvpp22_rx_fifo_init() local
7151 port_map = priv->port_map & ~BIT(MVPP2_LOOPBACK_PORT_INDEX); in mvpp22_rx_fifo_init()
7250 unsigned long port_map; in mvpp22_tx_fifo_init() local
7257 port_map = priv->port_map & ~BIT(MVPP2_LOOPBACK_PORT_INDEX); in mvpp22_tx_fifo_init()
[all …]
H A Dmvpp2.h1058 unsigned long port_map; member
1516 u32 port_map; member
H A Dmvpp2_prs.c703 unsigned int port_map) in mvpp2_prs_vlan_add() argument
766 mvpp2_prs_tcam_port_map_set(&pe, port_map); in mvpp2_prs_vlan_add()
822 unsigned int port_map) in mvpp2_prs_double_vlan_add() argument
887 mvpp2_prs_tcam_port_map_set(&pe, port_map); in mvpp2_prs_double_vlan_add()
/openbmc/linux/sound/pci/hda/
H A Dpatch_hdmi.c191 const int *port_map; member
2844 if (pin_nid == spec->port_map[i]) in intel_pin2port()
2865 return spec->port_map[port]; in intel_port2pin()
3081 const int *port_map, int port_num, int dev_num, in intel_hsw_common_init() argument
3093 spec->port_map = port_map; in intel_hsw_common_init()
H A Dpatch_ca0132.c2885 unsigned int *port_map) in dsp_allocate_router_ports() argument
2914 *port_map = res; in dsp_allocate_router_ports()
2944 unsigned int rate_multi, unsigned int *port_map) in dsp_allocate_ports() argument
2956 rate_multi, 0, port_map); in dsp_allocate_ports()
2965 unsigned int *port_map) in dsp_allocate_ports_format() argument
2980 return dsp_allocate_ports(codec, num_chans, rate_multi, port_map); in dsp_allocate_ports_format()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dmain.c1523 struct mlx4_port_map port_map; member
1538 err = mlx4_port_map_set(bond->dev, &bond->port_map); in mlx4_bond_work()
1542 bond->port_map.port1, in mlx4_bond_work()
1543 bond->port_map.port2, err); in mlx4_bond_work()
1567 bond->port_map.port1 = v2p_p1; in mlx4_queue_bond_work()
1568 bond->port_map.port2 = v2p_p2; in mlx4_queue_bond_work()

12