| /rk3399_rockchip-uboot/arch/powerpc/cpu/mpc8xx/ |
| H A D | immap.c | 56 printf("\nMSTAT = %04x\n", in_be16(&memctl->memc_mstat)); in do_memcinfo() 58 in_be16(&memctl->memc_mptpr), in_be32(&memctl->memc_mdr)); in do_memcinfo() 139 binary("PA_DIR", in_be16(l++), PA_NBITS); in do_iopinfo() 141 binary("PA_PAR", in_be16(l++), PA_NBITS); in do_iopinfo() 143 binary("PA_ODR", in_be16(l++), PA_NB_ODR); in do_iopinfo() 145 binary("PA_DAT", in_be16(l++), PA_NBITS); in do_iopinfo() 156 binary("PC_DIR", in_be16(l++), PC_NBITS); in do_iopinfo() 157 binary("PD_DIR", in_be16(r++), PD_NBITS); in do_iopinfo() 158 binary("PC_PAR", in_be16(l++), PC_NBITS); in do_iopinfo() 159 binary("PD_PAR", in_be16(r++), PD_NBITS); in do_iopinfo() [all …]
|
| H A D | reginfo.c | 31 printf("\tSWSR\t0x%04X\n", in_be16(&sysconf->sc_swsr)); in print_reginfo() 59 printf("\tmstat\t0x%04X\tmptpr\t0x%04X\n", in_be16(&memctl->memc_mstat), in print_reginfo() 60 in_be16(&memctl->memc_mptpr)); in print_reginfo() 65 in_be16(&timers->sit_tbscr), in_be16(&timers->sit_rtcsc)); in print_reginfo() 66 printf("\tPISCR\t0x%04X\n", in_be16(&timers->sit_piscr)); in print_reginfo()
|
| H A D | cpu_init.c | 181 while (in_be16(&immr->im_cpm.cp_cpcr) & CPM_CR_FLG) in cpu_init_f()
|
| H A D | interrupts.c | 117 vec = in_be16(&immr->im_cpic.cpic_civr); in cpm_interrupt()
|
| /rk3399_rockchip-uboot/arch/powerpc/include/asm/ |
| H A D | iopin_8xx.h | 83 return (in_be16(datp) >> (15 - iopin->pin)) & 1; in iopin_is_high() 91 return (in_be16(datp) >> (15 - iopin->pin)) & 1; in iopin_is_high() 95 return (in_be16(datp) >> (15 - iopin->pin)) & 1; in iopin_is_high() 107 return ((in_be16(datp) >> (15 - iopin->pin)) & 1) ^ 1; in iopin_is_low() 115 return ((in_be16(datp) >> (15 - iopin->pin)) & 1) ^ 1; in iopin_is_low() 119 return ((in_be16(datp) >> (15 - iopin->pin)) & 1) ^ 1; in iopin_is_low() 177 return (in_be16(dirp) >> (15 - iopin->pin)) & 1; in iopin_is_out() 185 return (in_be16(dirp) >> (15 - iopin->pin)) & 1; in iopin_is_out() 189 return (in_be16(dirp) >> (15 - iopin->pin)) & 1; in iopin_is_out() 201 return ((in_be16(dirp) >> (15 - iopin->pin)) & 1) ^ 1; in iopin_is_in() [all …]
|
| H A D | io.h | 53 #define inw(port) in_be16((u16 *)((port)+_IO_BASE)) 196 static inline u16 in_be16(const volatile unsigned short __iomem *addr) in in_be16() function
|
| /rk3399_rockchip-uboot/drivers/serial/ |
| H A D | serial_mpc8xx.c | 155 while (in_be16(&cp->cp_cpcr) & CPM_CR_FLG) /* wait if cp is busy */ in smc_init() 161 while (in_be16(&cp->cp_cpcr) & CPM_CR_FLG) /* wait if cp is busy */ in smc_init() 186 while (in_be16(&rtx->txbd.cbd_sc) & BD_SC_READY) in smc_putc() 207 while (in_be16(&rtx->rxbd.cbd_sc) & BD_SC_EMPTY) in smc_getc() 218 if (rxindex >= in_be16(&rtx->rxbd.cbd_datlen)) { in smc_getc() 234 return !(in_be16(&rtx->rxbd.cbd_sc) & BD_SC_EMPTY); in smc_tstc()
|
| /rk3399_rockchip-uboot/arch/m68k/cpu/mcf5445x/ |
| H A D | speed.c | 77 bootmod_ccr = (in_be16(&ccm->ccr) & CCM_CCR_BOOTMOD) >> 14; in setup_5441x_clocks() 118 if (in_be16(&ccm->misccr2) & 2) /* fsys/4 */ in setup_5441x_clocks() 147 if (((in_be16(&ccm->ccr) & CCM_CCR_360_FBCONFIG_MASK) == 0x00e0) || in setup_5445x_clocks() 148 ((in_be16(&ccm->ccr) & CCM_CCR_360_FBCONFIG_MASK) == 0x0060)) { in setup_5445x_clocks() 227 pcrvalue |= pPllmult[in_be16(&ccm->ccr) & fbpll_mask] << 24; in setup_5445x_clocks() 238 if ((in_be16(&ccm->ccr) & CCM_MISCCR_LIMP) == CCM_MISCCR_LIMP) { in setup_5445x_clocks()
|
| H A D | cpu.c | 42 msk = (in_be16(&ccm->cir) >> 6); in checkcpu() 43 ver = (in_be16(&ccm->cir) & 0x003f); in checkcpu()
|
| /rk3399_rockchip-uboot/arch/m68k/cpu/mcf5227x/ |
| H A D | cpu.c | 39 msk = (in_be16(&ccm->cir) >> 6); in checkcpu() 40 ver = (in_be16(&ccm->cir) & 0x003f); in checkcpu()
|
| H A D | speed.c | 108 if ((in_be16(&ccm->ccr) & CCM_MISCCR_LIMP) == CCM_MISCCR_LIMP) { in get_clocks()
|
| /rk3399_rockchip-uboot/arch/m68k/cpu/mcf532x/ |
| H A D | speed.c | 58 if (in_be16(&ccm->misccr) & CCM_MISCCR_LIMP) { in get_sys_clock() 59 divider = in_be16(&ccm->cdr) & CCM_CDR_LPDIV(0xF); in get_sys_clock() 101 temp = (in_be16(&ccm->cdr) & CCM_CDR_SSIDIV(0xFF)); in clock_limp() 121 while (!(in_be16(&ccm->misccr) & CCM_MISCCR_PLL_LOCK)) in clock_exit_limp()
|
| H A D | cpu.c | 41 msk = (in_be16(&ccm->cir) >> 6); in checkcpu() 42 ver = (in_be16(&ccm->cir) & 0x003f); in checkcpu()
|
| /rk3399_rockchip-uboot/arch/m68k/cpu/mcf523x/ |
| H A D | cpu.c | 39 msk = (in_be16(&ccm->cir) >> 6); in checkcpu() 40 ver = (in_be16(&ccm->cir) & 0x003f); in checkcpu()
|
| /rk3399_rockchip-uboot/drivers/net/ |
| H A D | tsec.c | 249 in_be16(&priv->txbd[priv->tx_idx].status) & TXBD_READY; in tsec_send() 259 status = in_be16(&priv->txbd[priv->tx_idx].status); in tsec_send() 268 in_be16(&priv->txbd[priv->tx_idx].status) & TXBD_READY; in tsec_send() 277 result = in_be16(&priv->txbd[priv->tx_idx].status) & TXBD_STATS; in tsec_send() 288 while (!(in_be16(&priv->rxbd[priv->rx_idx].status) & RXBD_EMPTY)) { in tsec_recv() 289 int length = in_be16(&priv->rxbd[priv->rx_idx].length); in tsec_recv() 290 uint16_t status = in_be16(&priv->rxbd[priv->rx_idx].status); in tsec_recv() 324 if (!(in_be16(&priv->rxbd[priv->rx_idx].status) & RXBD_EMPTY)) { in tsec_recv() 325 int length = in_be16(&priv->rxbd[priv->rx_idx].length); in tsec_recv() 326 uint16_t status = in_be16(&priv->rxbd[priv->rx_idx].status); in tsec_recv() [all …]
|
| H A D | mpc8xx_fec.c | 183 while ((in_be16(&rtx->txbd[txIdx].cbd_sc) & BD_ENET_TX_READY) && in fec_send() 201 while ((in_be16(&rtx->txbd[txIdx].cbd_sc) & BD_ENET_TX_READY) && in fec_send() 210 rc = in_be16(&rtx->txbd[txIdx].cbd_sc) & BD_ENET_TX_STATS; in fec_send() 226 if (in_be16(&rtx->rxbd[rxIdx].cbd_sc) & BD_ENET_RX_EMPTY) { in fec_recv() 231 length = in_be16(&rtx->rxbd[rxIdx].cbd_datlen); in fec_recv() 233 if (!(in_be16(&rtx->rxbd[rxIdx].cbd_sc) & 0x003f)) { in fec_recv()
|
| /rk3399_rockchip-uboot/drivers/spi/ |
| H A D | mpc8xx_spi.c | 155 while (in_be16(&cp->cp_cpcr) & CPM_CR_FLG) in spi_init_f() 160 while (in_be16(&cp->cp_cpcr) & CPM_CR_FLG) in spi_init_f() 325 if ((in_be16(&tbdf->cbd_sc) & BD_SC_READY) == 0) in spi_xfer()
|
| /rk3399_rockchip-uboot/include/ |
| H A D | fsl_sec_mon.h | 23 #define sec_mon_in16(a) in_be16(a)
|
| H A D | fsl_sfp.h | 27 #define sfp_in16(a) in_be16(a)
|
| /rk3399_rockchip-uboot/board/keymile/kmp204x/ |
| H A D | qrio.c | 99 wdmask = in_be16(qrio_base + WDMASK_OFF); in qrio_wdmask() 118 prst = in_be16(qrio_base + PRST_OFF); in qrio_prst()
|
| /rk3399_rockchip-uboot/board/cssi/MCR3000/ |
| H A D | nand.c | 26 pddat = in_be16(&immr->im_ioport.iop_pddat); in nand_hwcontrol()
|
| H A D | MCR3000.c | 125 if ((in_be16(&iop->iop_pcdat) & 0x0004) == 0) in misc_init_r()
|
| /rk3399_rockchip-uboot/arch/m68k/include/asm/ |
| H A D | io.h | 35 #define readw(addr) in_be16((volatile u16 *)(addr)) 57 #define inw(port) in_be16((u16 *)((port)+_IO_BASE)) 177 static inline int in_be16(volatile u16 * addr) in in_be16() function
|
| /rk3399_rockchip-uboot/drivers/qe/ |
| H A D | qe.c | 459 in_be16(&qe_immr->cp.cercr) | QE_CP_CERCR_CIR); in qe_upload_firmware() 598 in_be16(&qe_immr->cp.cercr) | QE_CP_CERCR_CIR); in u_qe_upload_firmware() 666 in_be16(&qe_immrr->cp.cercr) | QE_CP_CERCR_CIR); in u_qe_firmware_resume()
|
| /rk3399_rockchip-uboot/board/esd/vme8349/ |
| H A D | caddy.c | 77 result[0] = in_be16(pci_ptr); in do_caddy()
|