Home
last modified time | relevance | path

Searched refs:in_be16 (Results 1 – 25 of 44) sorted by relevance

12

/Linux-v5.4/drivers/usb/host/
Dfhci-tds.c85 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()
478 td_status = in_be16(&td->status); in fhci_flush_bds()
480 extra_data = in_be16(&td->extra); in fhci_flush_bds()
504 } while (!(in_be16(&td->status) & TD_W)); in fhci_flush_bds()
511 in_be16(&ep->ep_pram_ptr->tx_base)); in fhci_flush_bds()
[all …]
Dfhci-dbg.c50 in_8(&regs->usb_uscom), in_be16(&regs->usb_usep[0]), in fhci_dfs_regs_show()
51 in_be16(&regs->usb_usber), in_be16(&regs->usb_usbmr), in fhci_dfs_regs_show()
52 in_8(&regs->usb_usbs), in_be16(&regs->usb_ussft), in fhci_dfs_regs_show()
53 in_be16(&regs->usb_usfrn), in fhci_dfs_regs_show()
Dfhci-sched.c340 if ((((in_be16(&fhci->pram->frame_num) & 0x07ff) - in rotate_frames()
348 usb->actual_frame->frame_num = in_be16(&fhci->pram->frame_num) & 0x7ff; in rotate_frames()
553 usb_er |= in_be16(&usb->fhci->regs->usb_usber) & in fhci_irq()
554 in_be16(&usb->fhci->regs->usb_usbmr); in fhci_irq()
/Linux-v5.4/drivers/i2c/busses/
Di2c-cpm.c258 in_be16(&tbdf->cbd_sc), in_be16(&rbdf->cbd_sc)); in cpm_i2c_check_message()
260 if (in_be16(&tbdf->cbd_sc) & BD_SC_NAK) { in cpm_i2c_check_message()
264 if (in_be16(&rbdf->cbd_sc) & BD_SC_EMPTY) { in cpm_i2c_check_message()
269 if (in_be16(&rbdf->cbd_sc) & BD_SC_OV) { in cpm_i2c_check_message()
276 in_be16(&tbdf->cbd_sc)); in cpm_i2c_check_message()
278 if (in_be16(&tbdf->cbd_sc) & BD_SC_NAK) { in cpm_i2c_check_message()
282 if (in_be16(&tbdf->cbd_sc) & BD_SC_UN) { in cpm_i2c_check_message()
286 if (in_be16(&tbdf->cbd_sc) & BD_SC_CL) { in cpm_i2c_check_message()
307 out_be16(&i2c_ram->rbptr, in_be16(&i2c_ram->rbase)); in cpm_i2c_xfer()
308 out_be16(&i2c_ram->tbptr, in_be16(&i2c_ram->tbase)); in cpm_i2c_xfer()
[all …]
/Linux-v5.4/arch/powerpc/boot/
Dmpc52xx-psc.c38 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()
Dcpm-serial.c90 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()
Dio.h37 static inline unsigned in_be16(const volatile u16 *addr) in in_be16() function
/Linux-v5.4/drivers/soc/fsl/qe/
Ducc_fast.c36 &uccf->uf_regs->utodr, in_be16(&uccf->uf_regs->utodr)); in ucc_fast_dump_regs()
38 &uccf->uf_regs->udsr, in_be16(&uccf->uf_regs->udsr)); in ucc_fast_dump_regs()
48 &uccf->uf_regs->urfs, in_be16(&uccf->uf_regs->urfs)); in ucc_fast_dump_regs()
50 &uccf->uf_regs->urfet, in_be16(&uccf->uf_regs->urfet)); in ucc_fast_dump_regs()
52 &uccf->uf_regs->urfset, in_be16(&uccf->uf_regs->urfset)); in ucc_fast_dump_regs()
56 &uccf->uf_regs->utfs, in_be16(&uccf->uf_regs->utfs)); in ucc_fast_dump_regs()
58 &uccf->uf_regs->utfet, in_be16(&uccf->uf_regs->utfet)); in ucc_fast_dump_regs()
60 &uccf->uf_regs->utftt, in_be16(&uccf->uf_regs->utftt)); in ucc_fast_dump_regs()
62 &uccf->uf_regs->utpt, in_be16(&uccf->uf_regs->utpt)); in ucc_fast_dump_regs()
/Linux-v5.4/include/linux/fsl/bestcomm/
Dbestcomm_priv.h256 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()
/Linux-v5.4/drivers/tty/serial/cpm_uart/
Dcpm_uart_core.c75 if (in_be16(&bdp->cbd_sc) & BD_SC_READY) in cpm_uart_tx_empty()
78 if (in_be16(&bdp->cbd_sc) & BD_SC_WRAP) { in cpm_uart_tx_empty()
165 if (in_be16(&sccp->scc_sccm) & UART_SCCM_TX) in cpm_uart_start_tx()
256 status = in_be16(&bdp->cbd_sc); in cpm_uart_int_rx()
262 i = in_be16(&bdp->cbd_datlen); in cpm_uart_int_rx()
302 if (in_be16(&bdp->cbd_sc) & BD_SC_WRAP) in cpm_uart_int_rx()
379 events = in_be16(&sccp->scc_scce); in cpm_uart_int()
414 in_be16(&pinfo->smcup->smc_rbase)); in cpm_uart_startup()
416 in_be16(&pinfo->smcup->smc_tbase)); in cpm_uart_startup()
630 prev_mode = in_be16(&smcp->smc_smcmr) & (SMCMR_REN | SMCMR_TEN); in cpm_uart_set_termios()
[all …]
/Linux-v5.4/sound/soc/fsl/
Dmpc5200_psc_ac97.c38 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()
/Linux-v5.4/drivers/tty/serial/
Ducc_uart.c260 if (in_be16(&bdp->status) & BD_SC_READY) in qe_uart_tx_empty()
264 if (in_be16(&bdp->status) & BD_SC_WRAP) in qe_uart_tx_empty()
348 if (in_be16(&bdp->status) & BD_SC_WRAP) in qe_uart_tx_pump()
367 while (!(in_be16(&bdp->status) & BD_SC_READY) && in qe_uart_tx_pump()
384 if (in_be16(&bdp->status) & BD_SC_WRAP) in qe_uart_tx_pump()
417 if (in_be16(&qe_port->uccp->uccm) & UCC_UART_UCCE_TX) in qe_uart_start_tx()
472 status = in_be16(&bdp->status); in qe_uart_int_rx()
479 i = in_be16(&bdp->length); in qe_uart_int_rx()
512 if (in_be16(&bdp->status) & BD_SC_WRAP) in qe_uart_int_rx()
571 events = in_be16(&uccp->ucce); in qe_uart_int()
[all …]
Dmpc52xx_uart.c137 return in_be16(&PSC(port)->mpc52xx_psc_status); in mpc52xx_psc_get_status()
212 return in_be16(&PSC(port)->mpc52xx_psc_status) in mpc52xx_psc_raw_rx_rdy()
218 return in_be16(&PSC(port)->mpc52xx_psc_status) in mpc52xx_psc_raw_tx_rdy()
225 return in_be16(&PSC(port)->mpc52xx_psc_isr) in mpc52xx_psc_rx_rdy()
232 return in_be16(&PSC(port)->mpc52xx_psc_isr) in mpc52xx_psc_tx_rdy()
239 u16 sts = in_be16(&PSC(port)->mpc52xx_psc_status); in mpc52xx_psc_tx_empty()
914 return in_be16(&PSC_5125(port)->mpc52xx_psc_status); in mpc5125_psc_get_status()
/Linux-v5.4/drivers/spi/
Dspi-fsl-cpm.c60 in_be16(&mspi->pram->rbase)); in fsl_spi_cpm_reinit_txrx()
63 in_be16(&mspi->pram->tbase)); in fsl_spi_cpm_reinit_txrx()
185 in_be16(&mspi->rx_bd->cbd_datlen), mspi->count); in fsl_spi_cpm_irq()
187 len = in_be16(&mspi->rx_bd->cbd_datlen); in fsl_spi_cpm_irq()
Dspi-mpc52xx-psc.c101 ccr = in_be16((u16 __iomem *)&psc->ccr); in mpc52xx_psc_spi_activate_cs()
182 recv_at_once = in_be16(&fifo->rfnum); in mpc52xx_psc_spi_transfer_rxtx()
352 if (in_be16(&psc->mpc52xx_psc_isr) & MPC52xx_PSC_IMR_RXRDY) { in mpc52xx_psc_spi_isr()
/Linux-v5.4/arch/m68k/include/asm/
Draw_io.h21 #define in_be16(addr) \ macro
37 #define raw_inw in_be16
40 #define __raw_readw in_be16
Dide.h49 #define readw in_be16
/Linux-v5.4/drivers/usb/gadget/udc/
Dfsl_qe_udc.c148 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()
754 ((in_be16(&udc->ep_param[epnum]->rbptr) - in ep_recycle_rxbds()
755 in_be16(&udc->ep_param[epnum]->rbase)) in ep_recycle_rxbds()
770 if (in_be16(&udc->usb_regs->usb_usber) & USB_E_BSY_MASK) in ep_recycle_rxbds()
1032 ucoffs = (u16)((in_be16(&udc->ep_param[ep->epnum]->rbptr) - in qe_ep_rx()
[all …]
/Linux-v5.4/drivers/video/fbdev/
Dhpfb.c96 while (in_be16(fb_regs + 0x6002) & 0x4) udelay(1); in hpfb_setcolreg()
108 while (in_be16(fb_regs + 0x6002) & 0x4) udelay(1); in hpfb_setcolreg()
226 while (in_be16(fb_regs+0x4800) & 1) in hpfb_init_one()
/Linux-v5.4/arch/powerpc/platforms/8xx/
Dcpm1.c96 cpm_vec = in_be16(&cpic_reg->cpic_civr); in cpm_get_irq()
217 while (in_be16(&cpmp->cp_cpcr) & CPM_CR_FLG); in cpm_reset()
256 if ((in_be16(&cpmp->cp_cpcr) & CPM_CR_FLG) == 0) in cpm_command()
548 cpm1_gc->cpdata = in_be16(&iop->dat); in cpm1_gpio16_save_regs()
559 return !!(in_be16(&iop->dat) & pin_mask); in cpm1_gpio16_get()
/Linux-v5.4/arch/powerpc/include/asm/
Dio.h142 DEF_MMIO_IN_D(in_be16, 16, lhz);
152 DEF_MMIO_IN_X(in_be16, 16, lhbrx);
508 #define __do_readw_be(addr) in_be16(PCI_FIX_ADDR(addr))
839 #define setbits16(_addr, _v) out_be16((_addr), in_be16(_addr) | (_v))
840 #define clrbits16(_addr, _v) out_be16((_addr), in_be16(_addr) & ~(_v))
/Linux-v5.4/arch/microblaze/include/asm/
Dio.h53 #define in_be16(a) __raw_readw(a) macro
/Linux-v5.4/drivers/mmc/host/
Dsdhci-pltfm.h43 return in_be16(host->ioaddr + (reg ^ 0x2)); in sdhci_be32bs_readw()
/Linux-v5.4/drivers/net/ethernet/freescale/
Ducc_geth.c545 hardware_statistics->txcf = in_be16(&ug_regs->txcf); in get_statistics()
620 in_be16(&ugeth->ug_regs->uescr)); in dump_regs()
644 in_be16(&ugeth->ug_regs->txcf)); in dump_regs()
753 in_be16(&ugeth->p_tx_glbl_pram->temoder)); in dump_regs()
829 in_be16(&ugeth->p_rx_glbl_pram->typeorlen)); in dump_regs()
844 in_be16(&ugeth->p_rx_glbl_pram->mrblr)); in dump_regs()
850 in_be16(&ugeth->p_rx_glbl_pram->mflr)); in dump_regs()
853 in_be16(&ugeth->p_rx_glbl_pram->minflr)); in dump_regs()
856 in_be16(&ugeth->p_rx_glbl_pram->maxd1)); in dump_regs()
859 in_be16(&ugeth->p_rx_glbl_pram->maxd2)); in dump_regs()
[all …]
/Linux-v5.4/drivers/net/can/mscan/
Dmscan.c299 can_id = in_be16(&regs->rx.idr1_0); in mscan_get_rx_frame()
302 can_id = ((can_id << 16) | in_be16(&regs->rx.idr3_2)); in mscan_get_rx_frame()
321 *payload++ = in_be16(data); in mscan_get_rx_frame()

12