Home
last modified time | relevance | path

Searched refs:SET_VAL (Results 1 – 16 of 16) sorted by relevance

/openbmc/linux/drivers/net/ethernet/apm/xgene/
H A Dxgene_enet_cle.c17 *reg = SET_VAL(SB_IPFRAG, frag) | in xgene_cle_sband_to_hw()
18 SET_VAL(SB_IPPROT, type) | in xgene_cle_sband_to_hw()
19 SET_VAL(SB_IPVER, ver) | in xgene_cle_sband_to_hw()
20 SET_VAL(SB_HDRLEN, len); in xgene_cle_sband_to_hw()
28 *idt_reg = SET_VAL(IDT_DSTQID, dstqid) | in xgene_cle_idt_to_hw()
29 SET_VAL(IDT_FPSEL1, fpsel) | in xgene_cle_idt_to_hw()
30 SET_VAL(IDT_NFPSEL1, nfpsel); in xgene_cle_idt_to_hw()
32 *idt_reg = SET_VAL(IDT_DSTQID, dstqid) | in xgene_cle_idt_to_hw()
33 SET_VAL(IDT_FPSEL, fpsel) | in xgene_cle_idt_to_hw()
34 SET_VAL(IDT_NFPSEL, nfpsel); in xgene_cle_idt_to_hw()
[all …]
H A Dxgene_enet_ring2.c18 ring_cfg[0] |= SET_VAL(X2_INTLINE, ring->id & RING_BUFNUM_MASK); in xgene_enet_ring_init()
21 ring_cfg[0] |= SET_VAL(X2_CFGCRID, 2); in xgene_enet_ring_init()
24 ring_cfg[2] |= QCOHERENT | SET_VAL(RINGADDRL, addr); in xgene_enet_ring_init()
27 ring_cfg[3] |= SET_VAL(RINGSIZE, ring->cfgsize) in xgene_enet_ring_init()
29 | SET_VAL(RINGADDRH, addr); in xgene_enet_ring_init()
30 ring_cfg[4] |= SET_VAL(X2_SELTHRSH, 1); in xgene_enet_ring_init()
42 ring_cfg[4] |= SET_VAL(X2_RINGTYPE, val); in xgene_enet_ring_set_type()
44 ring_cfg[3] |= SET_VAL(RINGMODE, BUFPOOL_MODE); in xgene_enet_ring_set_type()
52 ring_cfg[4] |= SET_VAL(X2_RECOMTIMEOUT, 0x7); in xgene_enet_ring_set_recombbuf()
163 data = SET_VAL(X2_INTLINE, ring->id & RING_BUFNUM_MASK) | in xgene_enet_wr_cmd()
H A Dxgene_enet_main.c33 SET_VAL(FPQNUM, buf_pool->dst_ring_num) | in xgene_enet_init_bufpool()
34 SET_VAL(STASH, 3)); in xgene_enet_init_bufpool()
104 raw_desc->m1 = cpu_to_le64(SET_VAL(DATAADDR, dma_addr) | in xgene_enet_refill_pagepool()
105 SET_VAL(BUFDATALEN, hw_len) | in xgene_enet_refill_pagepool()
155 raw_desc->m1 = cpu_to_le64(SET_VAL(DATAADDR, dma_addr) | in xgene_enet_refill_bufpool()
156 SET_VAL(BUFDATALEN, bufdatalen) | in xgene_enet_refill_bufpool()
360 *hopinfo |= SET_BIT(ET) | SET_VAL(MSS, mss_index); in xgene_enet_work_msg()
368 *hopinfo |= SET_VAL(TCPHDR, l4hlen) | in xgene_enet_work_msg()
369 SET_VAL(IPHDR, l3hlen) | in xgene_enet_work_msg()
370 SET_VAL(ETHHDR, ethhdr) | in xgene_enet_work_msg()
[all …]
H A Dxgene_enet_xgmac.c231 data = SET_VAL(TSO_MSS1, data >> TSO_MSS1_POS) | in xgene_xgmac_set_mss()
232 SET_VAL(TSO_MSS0, mss); in xgene_xgmac_set_mss()
234 data = SET_VAL(TSO_MSS1, mss) | SET_VAL(TSO_MSS0, data); in xgene_xgmac_set_mss()
/openbmc/linux/drivers/net/mdio/
H A Dmdio-xgene.c84 data = SET_VAL(PHY_ADDR, phy_id) | SET_VAL(REG_ADDR, reg); in xgene_mdio_rgmii_read()
110 val = SET_VAL(PHY_ADDR, phy_id) | SET_VAL(REG_ADDR, reg); in xgene_mdio_rgmii_write()
216 val = SET_VAL(HSTPHYADX, phy_id) | SET_VAL(HSTREGADX, reg) | in xgene_xfi_mdio_write()
217 SET_VAL(HSTMIIMWRDAT, data); in xgene_xfi_mdio_write()
220 val = HSTLDCMD | SET_VAL(HSTMIIMCMD, MIIM_CMD_LEGACY_WRITE); in xgene_xfi_mdio_write()
239 val = SET_VAL(HSTPHYADX, phy_id) | SET_VAL(HSTREGADX, reg); in xgene_xfi_mdio_read()
242 val = HSTLDCMD | SET_VAL(HSTMIIMCMD, MIIM_CMD_LEGACY_READ); in xgene_xfi_mdio_read()
/openbmc/linux/drivers/net/wireless/ath/carl9170/
H A Dphy.c461 SET_VAL(AR9170_PHY_SETTLING_SWITCH, val, m->switchSettling); in carl9170_init_phy_from_eeprom()
467 SET_VAL(AR9170_PHY_DESIRED_SZ_PGA, val, m->pgaDesiredSize); in carl9170_init_phy_from_eeprom()
468 SET_VAL(AR9170_PHY_DESIRED_SZ_ADC, val, m->adcDesiredSize); in carl9170_init_phy_from_eeprom()
473 SET_VAL(AR9170_PHY_RF_CTL4_TX_END_XPAB_OFF, val, m->txEndToXpaOff); in carl9170_init_phy_from_eeprom()
474 SET_VAL(AR9170_PHY_RF_CTL4_TX_END_XPAA_OFF, val, m->txEndToXpaOff); in carl9170_init_phy_from_eeprom()
475 SET_VAL(AR9170_PHY_RF_CTL4_FRAME_XPAB_ON, val, m->txFrameToXpaOn); in carl9170_init_phy_from_eeprom()
476 SET_VAL(AR9170_PHY_RF_CTL4_FRAME_XPAA_ON, val, m->txFrameToXpaOn); in carl9170_init_phy_from_eeprom()
481 SET_VAL(AR9170_PHY_RF_CTL3_TX_END_TO_A2_RX_ON, val, m->txEndToRxOn); in carl9170_init_phy_from_eeprom()
491 SET_VAL(AR9170_PHY_RXGAIN_TXRX_ATTEN, val, m->txRxAttenCh[0]); in carl9170_init_phy_from_eeprom()
497 SET_VAL(AR9170_PHY_RXGAIN_TXRX_ATTEN, val, m->txRxAttenCh[1]); in carl9170_init_phy_from_eeprom()
[all …]
H A Dmac.c416 SET_VAL(AR9170_MAC_BCN_DTIM, v, in carl9170_set_beacon_timers()
434 SET_VAL(AR9170_MAC_BCN_DTIM, v, in carl9170_set_beacon_timers()
459 SET_VAL(AR9170_MAC_BCN_PERIOD, v, ar->global_beacon_int); in carl9170_set_beacon_timers()
460 SET_VAL(AR9170_MAC_PRETBTT, pretbtt, ar->global_pretbtt); in carl9170_set_beacon_timers()
461 SET_VAL(AR9170_MAC_PRETBTT2, pretbtt, ar->global_pretbtt); in carl9170_set_beacon_timers()
H A Dtx.c786 SET_VAL(AR9170_TX_PHY_MCS, phyrate, txrate->idx); in carl9170_tx_physet()
945 SET_VAL(CARL9170_TX_SUPER_RI_TRIES, txc->s.ri[i], in carl9170_tx_apply_rateset()
1002 SET_VAL(CARL9170_TX_SUPER_MISC_QUEUE, txc->s.misc, hw_queue); in carl9170_tx_prepare()
1005 SET_VAL(CARL9170_TX_SUPER_MISC_VIF_ID, txc->s.misc, cvif->id); in carl9170_tx_prepare()
1063 SET_VAL(CARL9170_TX_SUPER_AMPDU_DENSITY, in carl9170_tx_prepare()
1066 SET_VAL(CARL9170_TX_SUPER_AMPDU_FACTOR, in carl9170_tx_prepare()
1284 SET_VAL(CARL9170_TX_SUPER_MISC_QUEUE, q, in carl9170_tx_drop()
1589 SET_VAL(AR9170_MAC_BCN_HT1_PWR_CTRL, *ht1, 7); in carl9170_tx_beacon_physet()
1590 SET_VAL(AR9170_MAC_BCN_HT1_TPC, *ht1, power); in carl9170_tx_beacon_physet()
1591 SET_VAL(AR9170_MAC_BCN_HT1_CHAIN_MASK, *ht1, chains); in carl9170_tx_beacon_physet()
[all …]
H A Dhw.h872 #define SET_VAL(reg, value, newvalue) \ macro
/openbmc/openbmc/meta-facebook/meta-bletchley/recipes-phosphor/initrdscripts/phosphor-static-norootfs-init/
H A D99-platform-init11 SET_VAL=$((FMC_WDT2_CTRL_VAL & 0xFFFFFFFE))
12 /sbin/devmem 0x1e620064 32 "$SET_VAL"
/openbmc/openbmc/meta-facebook/meta-ventura/recipes-phosphor/initrdscripts/phosphor-static-norootfs-init/
H A D99-platform-init11 SET_VAL=$((FMC_WDT2_CTRL_VAL & 0xFFFFFFFE))
12 /sbin/devmem 0x1e620064 32 "$SET_VAL"
/openbmc/openbmc/meta-facebook/meta-harma/recipes-phosphor/initrdscripts/phosphor-static-norootfs-init/
H A D99-platform-init12 SET_VAL=$((FMC_WDT2_CTRL_VAL & 0xFFFFFFFE))
13 /sbin/devmem 0x1e620064 32 "$SET_VAL"
/openbmc/openbmc/meta-facebook/meta-catalina/recipes-phosphor/initrdscripts/phosphor-static-norootfs-init/
H A D99-platform-init41 SET_VAL=$((FMC_WDT2_CTRL_VAL & 0xFFFFFFFE))
42 /sbin/devmem 0x1e620064 32 "$SET_VAL"
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/initrdscripts/phosphor-static-norootfs-init/
H A D99-platform-init17 SET_VAL=$((FMC_WDT2_CTRL_VAL & 0xFFFFFFFE))
18 /sbin/devmem 0x1e620064 32 "$SET_VAL"
/openbmc/openbmc/meta-facebook/meta-minerva/recipes-phosphor/initrdscripts/phosphor-static-norootfs-init/
H A D99-platform-init11 SET_VAL=$((FMC_WDT2_CTRL_VAL & 0xFFFFFFFE))
12 /sbin/devmem 0x1e620064 32 "$SET_VAL"
/openbmc/linux/include/linux/mdio/
H A Dmdio-xgene.h108 #define SET_VAL(field, val) \ macro