Home
last modified time | relevance | path

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

12

/linux-6.6.21/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()
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 …]
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-6.6.21/drivers/i2c/busses/
Di2c-cpm.c261 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 …]
/linux-6.6.21/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-6.6.21/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-6.6.21/drivers/tty/serial/
Dcpm_uart.c73 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 …]
Dmpc52xx_uart.c135 return in_be16(&PSC(port)->mpc52xx_psc_status); in mpc52xx_psc_get_status()
210 return in_be16(&PSC(port)->mpc52xx_psc_status) in mpc52xx_psc_raw_rx_rdy()
216 return in_be16(&PSC(port)->mpc52xx_psc_status) in mpc52xx_psc_raw_tx_rdy()
223 return in_be16(&PSC(port)->mpc52xx_psc_isr) in mpc52xx_psc_rx_rdy()
230 return in_be16(&PSC(port)->mpc52xx_psc_isr) in mpc52xx_psc_tx_rdy()
237 u16 sts = in_be16(&PSC(port)->mpc52xx_psc_status); in mpc52xx_psc_tx_empty()
909 return in_be16(&PSC_5125(port)->mpc52xx_psc_status); in mpc5125_psc_get_status()
/linux-6.6.21/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-6.6.21/arch/m68k/include/asm/
Draw_io.h21 #define in_be16(addr) \ macro
37 #define raw_inw in_be16
40 #define __raw_readw in_be16
/linux-6.6.21/drivers/spi/
Dspi-mpc52xx-psc.c90 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()
/linux-6.6.21/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()
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 …]
/linux-6.6.21/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-6.6.21/arch/powerpc/platforms/8xx/
Dcpm1.c64 while (in_be16(&cpmp->cp_cpcr) & CPM_CR_FLG); in cpm_reset()
101 if ((in_be16(&cpmp->cp_cpcr) & CPM_CR_FLG) == 0) in cpm_command()
394 cpm1_gc->cpdata = in_be16(&iop->dat); in cpm1_gpio16_save_regs()
405 return !!(in_be16(&iop->dat) & pin_mask); in cpm1_gpio16_get()
Dcpm1-ic.c59 cpm_vec = in_be16(&data->reg->cpic_civr); in cpm_get_irq()
/linux-6.6.21/arch/microblaze/include/asm/
Dio.h42 #define in_be16(a) __raw_readw(a) macro
/linux-6.6.21/drivers/mmc/host/
Dsdhci-pltfm.h43 return in_be16(host->ioaddr + (reg ^ 0x2)); in sdhci_be32bs_readw()
/linux-6.6.21/arch/powerpc/include/asm/
Dio.h170 DEF_MMIO_IN_D(in_be16, 16, lhz);
180 DEF_MMIO_IN_X(in_be16, 16, lhbrx);
575 #define __do_readw_be(addr) in_be16(PCI_FIX_ADDR(addr))
1021 #define setbits16(_addr, _v) out_be16((_addr), in_be16(_addr) | (_v))
1022 #define clrbits16(_addr, _v) out_be16((_addr), in_be16(_addr) & ~(_v))
/linux-6.6.21/drivers/net/ethernet/freescale/
Ducc_geth.c565 hardware_statistics->txcf = in_be16(&ug_regs->txcf); in get_statistics()
640 in_be16(&ugeth->ug_regs->uescr)); in dump_regs()
664 in_be16(&ugeth->ug_regs->txcf)); in dump_regs()
733 in_be16(&ugeth->p_tx_glbl_pram->temoder)); in dump_regs()
809 in_be16(&ugeth->p_rx_glbl_pram->typeorlen)); in dump_regs()
824 in_be16(&ugeth->p_rx_glbl_pram->mrblr)); in dump_regs()
830 in_be16(&ugeth->p_rx_glbl_pram->mflr)); in dump_regs()
833 in_be16(&ugeth->p_rx_glbl_pram->minflr)); in dump_regs()
836 in_be16(&ugeth->p_rx_glbl_pram->maxd1)); in dump_regs()
839 in_be16(&ugeth->p_rx_glbl_pram->maxd2)); in dump_regs()
[all …]
/linux-6.6.21/drivers/net/can/mscan/
Dmscan.c300 can_id = in_be16(&regs->rx.idr1_0); in mscan_get_rx_frame()
303 can_id = ((can_id << 16) | in_be16(&regs->rx.idr3_2)); in mscan_get_rx_frame()
322 *payload++ = in_be16(data); in mscan_get_rx_frame()
/linux-6.6.21/drivers/net/ethernet/amd/
Dmvme147.c156 return in_be16(lp->base + LANCE_RDP); in m147lance_readrdp()
Dhplance.c196 value = in_be16(lp->base + HPLANCE_REGOFF + LANCE_RDP); in hplance_readrdp()
/linux-6.6.21/arch/powerpc/platforms/52xx/
Dmpc52xx_pm.c50 tmp = in_be16(&gpiow->wkup_itype); in mpc52xx_set_wakeup_gpio()

12