/openbmc/u-boot/arch/powerpc/cpu/mpc8xx/ |
H A D | immap.c | 55 printf("\nMSTAT = %04x\n", in_be16(&memctl->memc_mstat)); in do_memcinfo() 57 in_be16(&memctl->memc_mptpr), in_be32(&memctl->memc_mdr)); in do_memcinfo() 138 binary("PA_DIR", in_be16(l++), PA_NBITS); in do_iopinfo() 140 binary("PA_PAR", in_be16(l++), PA_NBITS); in do_iopinfo() 142 binary("PA_ODR", in_be16(l++), PA_NB_ODR); in do_iopinfo() 144 binary("PA_DAT", in_be16(l++), PA_NBITS); in do_iopinfo() 155 binary("PC_DIR", in_be16(l++), PC_NBITS); in do_iopinfo() 156 binary("PD_DIR", in_be16(r++), PD_NBITS); in do_iopinfo() 157 binary("PC_PAR", in_be16(l++), PC_NBITS); in do_iopinfo() 158 binary("PD_PAR", in_be16(r++), PD_NBITS); in do_iopinfo() [all …]
|
/openbmc/u-boot/arch/powerpc/include/asm/ |
H A D | iopin_8xx.h | 81 return (in_be16(datp) >> (15 - iopin->pin)) & 1; in iopin_is_high() 89 return (in_be16(datp) >> (15 - iopin->pin)) & 1; in iopin_is_high() 93 return (in_be16(datp) >> (15 - iopin->pin)) & 1; in iopin_is_high() 105 return ((in_be16(datp) >> (15 - iopin->pin)) & 1) ^ 1; in iopin_is_low() 113 return ((in_be16(datp) >> (15 - iopin->pin)) & 1) ^ 1; in iopin_is_low() 117 return ((in_be16(datp) >> (15 - iopin->pin)) & 1) ^ 1; in iopin_is_low() 175 return (in_be16(dirp) >> (15 - iopin->pin)) & 1; in iopin_is_out() 183 return (in_be16(dirp) >> (15 - iopin->pin)) & 1; in iopin_is_out() 187 return (in_be16(dirp) >> (15 - iopin->pin)) & 1; in iopin_is_out() 199 return ((in_be16(dirp) >> (15 - iopin->pin)) & 1) ^ 1; in iopin_is_in() [all …]
|
/openbmc/linux/drivers/usb/host/ |
H A D | fhci-tds.c | 85 u16 td_status = in_be16(&ep->empty_td->status); in fhci_push_dummy_bd() 294 td_status = in_be16(&td->status); in fhci_td_transaction_confirm() 295 td_length = in_be16(&td->length); in fhci_td_transaction_confirm() 297 extra_data = in_be16(&td->extra); in fhci_td_transaction_confirm() 393 td_status = in_be16(&td->status); in fhci_host_transaction() 395 if (td_status & TD_R && in_be16(&td->length)) { in fhci_host_transaction() 476 td_status = in_be16(&td->status); in fhci_flush_bds() 478 in_be16(&td->extra); in fhci_flush_bds() 502 } while (!(in_be16(&td->status) & TD_W)); in fhci_flush_bds() 509 in_be16(&ep->ep_pram_ptr->tx_base)); in fhci_flush_bds() [all …]
|
H A D | fhci-dbg.c | 50 in_8(®s->usb_uscom), in_be16(®s->usb_usep[0]), in fhci_dfs_regs_show() 51 in_be16(®s->usb_usber), in_be16(®s->usb_usbmr), in fhci_dfs_regs_show() 52 in_8(®s->usb_usbs), in_be16(®s->usb_ussft), in fhci_dfs_regs_show() 53 in_be16(®s->usb_usfrn), in fhci_dfs_regs_show()
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-cpm.c | 261 in_be16(&tbdf->cbd_sc), in_be16(&rbdf->cbd_sc)); in cpm_i2c_check_message() 263 if (in_be16(&tbdf->cbd_sc) & BD_SC_NAK) { in cpm_i2c_check_message() 267 if (in_be16(&rbdf->cbd_sc) & BD_SC_EMPTY) { in cpm_i2c_check_message() 272 if (in_be16(&rbdf->cbd_sc) & BD_SC_OV) { in cpm_i2c_check_message() 279 in_be16(&tbdf->cbd_sc)); in cpm_i2c_check_message() 281 if (in_be16(&tbdf->cbd_sc) & BD_SC_NAK) { in cpm_i2c_check_message() 285 if (in_be16(&tbdf->cbd_sc) & BD_SC_UN) { in cpm_i2c_check_message() 289 if (in_be16(&tbdf->cbd_sc) & BD_SC_CL) { in cpm_i2c_check_message() 310 out_be16(&i2c_ram->rbptr, in_be16(&i2c_ram->rbase)); in cpm_i2c_xfer() 311 out_be16(&i2c_ram->tbptr, in_be16(&i2c_ram->tbase)); in cpm_i2c_xfer() [all …]
|
/openbmc/linux/arch/powerpc/boot/ |
H A D | mpc52xx-psc.c | 38 while (!(in_be16(psc + MPC52xx_PSC_SR) & MPC52xx_PSC_SR_TXRDY)) ; in psc_putc() 44 return (in_be16(psc + MPC52xx_PSC_SR) & MPC52xx_PSC_SR_RXRDY) != 0; in psc_tstc() 49 while (!(in_be16(psc + MPC52xx_PSC_SR) & MPC52xx_PSC_SR_RXRDY)) ; in psc_getc()
|
H A D | cpm-serial.c | 90 while (in_be16(cpcr) & 1) in cpm1_cmd() 95 while (in_be16(cpcr) & 1) in cpm1_cmd() 113 out_be16(&smc->smcmr, in_be16(&smc->smcmr) & ~3); in smc_disable_port() 124 out_be16(&smc->smcmr, in_be16(&smc->smcmr) | 3); in smc_enable_port()
|
/openbmc/u-boot/drivers/serial/ |
H A D | serial_mpc8xx.c | 157 while (in_be16(&cp->cp_cpcr) & CPM_CR_FLG) /* wait if cp is busy */ in serial_mpc8xx_probe() 163 while (in_be16(&cp->cp_cpcr) & CPM_CR_FLG) /* wait if cp is busy */ in serial_mpc8xx_probe() 188 while (in_be16(&rtx->txbd.cbd_sc) & BD_SC_READY) in serial_mpc8xx_putc() 205 while (in_be16(&rtx->rxbd.cbd_sc) & BD_SC_EMPTY) in serial_mpc8xx_getc() 216 if (rxindex >= in_be16(&rtx->rxbd.cbd_datlen)) { in serial_mpc8xx_getc() 235 return !(in_be16(&rtx->rxbd.cbd_sc) & BD_SC_EMPTY); in serial_mpc8xx_pending()
|
/openbmc/u-boot/arch/m68k/cpu/mcf5445x/ |
H A D | speed.c | 76 bootmod_ccr = (in_be16(&ccm->ccr) & CCM_CCR_BOOTMOD) >> 14; in setup_5441x_clocks() 117 if (in_be16(&ccm->misccr2) & 2) /* fsys/4 */ in setup_5441x_clocks() 148 if (((in_be16(&ccm->ccr) & CCM_CCR_360_FBCONFIG_MASK) == 0x00e0) || in setup_5445x_clocks() 149 ((in_be16(&ccm->ccr) & CCM_CCR_360_FBCONFIG_MASK) == 0x0060)) { in setup_5445x_clocks() 228 pcrvalue |= pPllmult[in_be16(&ccm->ccr) & fbpll_mask] << 24; in setup_5445x_clocks() 239 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 print_cpuinfo() 43 ver = (in_be16(&ccm->cir) & 0x003f); in print_cpuinfo()
|
/openbmc/linux/include/linux/fsl/bestcomm/ |
H A D | bestcomm_priv.h | 256 regval = in_be16(&bcom_eng->regs->PtdCntrl); in bcom_disable_prefetch() 264 reg = in_be16(&bcom_eng->regs->tcr[task]); in bcom_enable_task() 271 u16 reg = in_be16(&bcom_eng->regs->tcr[task]); in bcom_disable_task() 338 out_be16(tcr, (in_be16(tcr) & ~0xff) | 0x00c0 | next_task); in bcom_set_task_auto_start() 345 out_be16(tcr, (in_be16(tcr) & ~0x1f00) | ((initiator & 0x1f) << 8)); in bcom_set_tcr_initiator()
|
/openbmc/u-boot/arch/m68k/cpu/mcf532x/ |
H A D | speed.c | 57 if (in_be16(&ccm->misccr) & CCM_MISCCR_LIMP) { in get_sys_clock() 58 divider = in_be16(&ccm->cdr) & CCM_CDR_LPDIV(0xF); in get_sys_clock() 100 temp = (in_be16(&ccm->cdr) & CCM_CDR_SSIDIV(0xFF)); in clock_limp() 120 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 print_cpuinfo() 42 ver = (in_be16(&ccm->cir) & 0x003f); in print_cpuinfo()
|
/openbmc/linux/drivers/tty/serial/ |
H A D | cpm_uart.c | 73 if (in_be16(&bdp->cbd_sc) & BD_SC_READY) in cpm_uart_tx_empty() 76 if (in_be16(&bdp->cbd_sc) & BD_SC_WRAP) { in cpm_uart_tx_empty() 163 if (in_be16(&sccp->scc_sccm) & UART_SCCM_TX) in cpm_uart_start_tx() 254 status = in_be16(&bdp->cbd_sc); in cpm_uart_int_rx() 260 i = in_be16(&bdp->cbd_datlen); in cpm_uart_int_rx() 300 if (in_be16(&bdp->cbd_sc) & BD_SC_WRAP) in cpm_uart_int_rx() 375 events = in_be16(&sccp->scc_scce); in cpm_uart_int() 410 in_be16(&pinfo->smcup->smc_rbase)); in cpm_uart_startup() 412 in_be16(&pinfo->smcup->smc_tbase)); in cpm_uart_startup() 593 prev_mode = in_be16(&smcp->smc_smcmr) & (SMCMR_REN | SMCMR_TEN); in cpm_uart_set_termios() [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | tsec.c | 268 in_be16(&priv->txbd[priv->tx_idx].status) & TXBD_READY; in tsec_send() 278 status = in_be16(&priv->txbd[priv->tx_idx].status); in tsec_send() 287 in_be16(&priv->txbd[priv->tx_idx].status) & TXBD_READY; in tsec_send() 296 result = in_be16(&priv->txbd[priv->tx_idx].status) & TXBD_STATS; in tsec_send() 307 while (!(in_be16(&priv->rxbd[priv->rx_idx].status) & RXBD_EMPTY)) { in tsec_recv() 308 int length = in_be16(&priv->rxbd[priv->rx_idx].length); in tsec_recv() 309 u16 status = in_be16(&priv->rxbd[priv->rx_idx].status); in tsec_recv() 343 if (!(in_be16(&priv->rxbd[priv->rx_idx].status) & RXBD_EMPTY)) { in tsec_recv() 344 int length = in_be16(&priv->rxbd[priv->rx_idx].length); in tsec_recv() 345 u16 status = in_be16(&priv->rxbd[priv->rx_idx].status); in tsec_recv() [all …]
|
H A D | mpc8xx_fec.c | 182 while ((in_be16(&rtx->txbd[txIdx].cbd_sc) & BD_ENET_TX_READY) && in fec_send() 200 while ((in_be16(&rtx->txbd[txIdx].cbd_sc) & BD_ENET_TX_READY) && in fec_send() 209 rc = in_be16(&rtx->txbd[txIdx].cbd_sc) & BD_ENET_TX_STATS; in fec_send() 225 if (in_be16(&rtx->rxbd[rxIdx].cbd_sc) & BD_ENET_RX_EMPTY) { in fec_recv() 230 length = in_be16(&rtx->rxbd[rxIdx].cbd_datlen); in fec_recv() 232 if (!(in_be16(&rtx->rxbd[rxIdx].cbd_sc) & 0x003f)) { in fec_recv()
|
/openbmc/u-boot/arch/m68k/cpu/mcf5227x/ |
H A D | cpu.c | 39 msk = (in_be16(&ccm->cir) >> 6); in print_cpuinfo() 40 ver = (in_be16(&ccm->cir) & 0x003f); in print_cpuinfo()
|
/openbmc/u-boot/drivers/spi/ |
H A D | mpc8xx_spi.c | 109 while (in_be16(&cp->cp_cpcr) & CPM_CR_FLG) in mpc8xx_spi_probe() 114 while (in_be16(&cp->cp_cpcr) & CPM_CR_FLG) in mpc8xx_spi_probe() 188 if ((in_be16(&tbdf->cbd_sc) & BD_SC_READY) == 0) in mpc8xx_spi_xfer()
|
/openbmc/linux/sound/soc/fsl/ |
H A D | mpc5200_psc_ac97.c | 38 status = spin_event_timeout(!(in_be16(&psc_dma->psc_regs->sr_csr.status) & in psc_ac97_read() 53 status = spin_event_timeout((in_be16(&psc_dma->psc_regs->sr_csr.status) & in psc_ac97_read() 57 in_be16(&psc_dma->psc_regs->sr_csr.status)); in psc_ac97_read() 82 status = spin_event_timeout(!(in_be16(&psc_dma->psc_regs->sr_csr.status) & in psc_ac97_write()
|
/openbmc/u-boot/arch/m68k/cpu/mcf523x/ |
H A D | cpu.c | 39 msk = (in_be16(&ccm->cir) >> 6); in print_cpuinfo() 40 ver = (in_be16(&ccm->cir) & 0x003f); in print_cpuinfo()
|
/openbmc/linux/arch/m68k/include/asm/ |
H A D | raw_io.h | 21 #define in_be16(addr) \ macro 37 #define raw_inw in_be16 40 #define __raw_readw in_be16
|
/openbmc/u-boot/arch/m68k/include/asm/ |
H A D | io.h | 34 #define readw(addr) in_be16((volatile u16 *)(addr)) 56 #define inw(port) in_be16((u16 *)((port)+_IO_BASE)) 176 static inline int in_be16(volatile u16 * addr) in in_be16() function
|
/openbmc/linux/drivers/spi/ |
H A D | spi-mpc52xx-psc.c | 90 ccr = in_be16((u16 __iomem *)&psc->ccr); in mpc52xx_psc_spi_activate_cs() 160 recv_at_once = in_be16(&fifo->rfnum); in mpc52xx_psc_spi_transfer_rxtx() 286 if (in_be16(&psc->mpc52xx_psc_isr) & MPC52xx_PSC_IMR_RXRDY) { in mpc52xx_psc_spi_isr()
|
/openbmc/u-boot/board/keymile/kmp204x/ |
H A D | qrio.c | 98 wdmask = in_be16(qrio_base + WDMASK_OFF); in qrio_wdmask() 117 prst = in_be16(qrio_base + PRST_OFF); in qrio_prst()
|
/openbmc/linux/drivers/usb/gadget/udc/ |
H A D | fsl_qe_udc.c | 148 tem_usep = in_be16(&udc->usb_regs->usb_usep[epnum]); in qe_eprx_stall_change() 165 tem_usep = in_be16(&udc->usb_regs->usb_usep[epnum]); in qe_eptx_stall_change() 260 out_be16(&udc->ep_param[i]->tbptr, in_be16(&udc->ep_param[i]->tbase)); in qe_ep_flushtxfifo() 317 tmpusep = in_be16(&udc->usb_regs->usb_usep[pipe_num]); in qe_ep_reset() 372 out_be16(&epparam->rbptr, in_be16(&epparam->rbase)); in qe_ep_bd_init() 373 out_be16(&epparam->tbptr, in_be16(&epparam->tbase)); in qe_ep_bd_init() 760 ((in_be16(&udc->ep_param[epnum]->rbptr) - in ep_recycle_rxbds() 761 in_be16(&udc->ep_param[epnum]->rbase)) in ep_recycle_rxbds() 776 if (in_be16(&udc->usb_regs->usb_usber) & USB_E_BSY_MASK) in ep_recycle_rxbds() 1038 ucoffs = (u16)((in_be16(&udc->ep_param[ep->epnum]->rbptr) - in qe_ep_rx() [all …]
|