Home
last modified time | relevance | path

Searched refs:out_be16 (Results 1 – 25 of 50) sorted by relevance

12

/linux-6.6.21/drivers/video/fbdev/ !
Dhpfb.c98 out_be16(fb_regs + 0x60ba, 0xff); in hpfb_setcolreg()
100 out_be16(fb_regs + 0x60b2, _red); in hpfb_setcolreg()
101 out_be16(fb_regs + 0x60b4, _green); in hpfb_setcolreg()
102 out_be16(fb_regs + 0x60b6, _blue); in hpfb_setcolreg()
103 out_be16(fb_regs + 0x60b8, ~_regno); in hpfb_setcolreg()
104 out_be16(fb_regs + 0x60f0, 0xff); in hpfb_setcolreg()
109 out_be16(fb_regs + 0x60b2, 0); in hpfb_setcolreg()
110 out_be16(fb_regs + 0x60b4, 0); in hpfb_setcolreg()
111 out_be16(fb_regs + 0x60b6, 0); in hpfb_setcolreg()
112 out_be16(fb_regs + 0x60b8, 0); in hpfb_setcolreg()
[all …]
Ddnfb.c258 out_be16(AP_WRITE_ENABLE, 0x0); in dnfb_probe()
262 out_be16(AP_ROP_1, SWAP(0x3)); in dnfb_probe()
/linux-6.6.21/drivers/usb/host/ !
Dfhci-tds.c214 out_be16(&td->status, 0); in fhci_create_ep()
215 out_be16(&td->length, 0); in fhci_create_ep()
216 out_be16(&td->extra, 0); in fhci_create_ep()
220 out_be16(&td->status, TD_W); /* for last TD set Wrap bit */ in fhci_create_ep()
221 out_be16(&td->length, 0); in fhci_create_ep()
248 out_be16(&usb->fhci->regs->usb_usep[0], in fhci_init_ep_registers()
250 out_be16(&usb->fhci->pram->ep_ptr[0], in fhci_init_ep_registers()
260 out_be16(&ep->ep_pram_ptr->rx_buff_len, 1028); in fhci_init_ep_registers()
261 out_be16(&ep->ep_pram_ptr->rx_base, 0); in fhci_init_ep_registers()
262 out_be16(&ep->ep_pram_ptr->tx_base, cpm_muram_offset(ep->td_base)); in fhci_init_ep_registers()
[all …]
Dfhci-hcd.c40 out_be16(&fhci->pram->frame_num, 0); in fhci_start_sof_timer()
42 out_be16(&fhci->regs->usb_ussft, 0); in fhci_start_sof_timer()
90 out_be16(&usb->fhci->regs->usb_usber, 0xffff); in fhci_usb_enable_interrupt()
91 out_be16(&usb->fhci->regs->usb_usbmr, usb->saved_msk); in fhci_usb_enable_interrupt()
111 out_be16(&usb->fhci->regs->usb_usbmr, 0); in fhci_usb_disable_interrupt()
121 out_be16(&usb->fhci->regs->usb_usber, 0xffff); in fhci_usb_enable()
122 out_be16(&usb->fhci->regs->usb_usbmr, usb->saved_msk); in fhci_usb_enable()
276 out_be16(&fhci->pram->frame_num, 0); in fhci_usb_init()
290 out_be16(&usb->fhci->regs->usb_usbmr, 0); in fhci_usb_init()
293 out_be16(&usb->fhci->regs->usb_usber, 0xffff); in fhci_usb_init()
[all …]
Dfhci-hub.c95 out_be16(&usb->fhci->regs->usb_usbmr, usb->saved_msk); in fhci_port_disable()
161 out_be16(&fhci->regs->usb_usbmr, mask & (~USB_E_IDLE_MASK)); in fhci_port_reset()
166 out_be16(&fhci->regs->usb_usbmr, mask); in fhci_port_reset()
Dfhci-sched.c146 out_be16(&usb->fhci->regs->usb_usber, 0xffff); in fhci_flush_all_transmissions()
412 out_be16(&usb->fhci->regs->usb_usbmr, usb->saved_msk); in sof_interrupt()
438 out_be16(&usb->fhci->regs->usb_usbmr, usb->saved_msk); in fhci_device_disconnected_interrupt()
557 out_be16(&usb->fhci->regs->usb_usber, usb_er); in fhci_irq()
571 out_be16(&usb->fhci->regs->usb_usber, in fhci_irq()
609 out_be16(&usb->fhci->regs->usb_usbmr, in fhci_irq()
/linux-6.6.21/arch/powerpc/platforms/8xx/ !
Dmicropatch.c333 out_be16(&cp->cp_rccr, 0); in cpm_load_patch()
346 out_be16(&iip->iic_rpbase, rpbase); in cpm_load_patch()
350 out_be16(&spp->rpbase, (rpbase + sizeof(iic_t) + 31) & ~31); in cpm_load_patch()
356 out_be16(&smp->smc_rpbase, 0x1FC0); in cpm_load_patch()
375 out_be16(&smp->smc_rpbase, 0x1ec0); in cpm_load_patch()
377 out_be16(&smp->smc_rpbase, 0x1fc0); in cpm_load_patch()
380 out_be16(&cp->cp_cpmcr1, patch_params.cpmcr1); in cpm_load_patch()
381 out_be16(&cp->cp_cpmcr2, patch_params.cpmcr2); in cpm_load_patch()
382 out_be16(&cp->cp_cpmcr3, patch_params.cpmcr3); in cpm_load_patch()
383 out_be16(&cp->cp_cpmcr4, patch_params.cpmcr4); in cpm_load_patch()
[all …]
/linux-6.6.21/drivers/tty/serial/ !
Dcpm_uart.c376 out_be16(&sccp->scc_scce, events); in cpm_uart_int()
409 out_be16(&pinfo->smcup->smc_rbptr, in cpm_uart_startup()
411 out_be16(&pinfo->smcup->smc_tbptr, in cpm_uart_startup()
477 out_be16(&pinfo->smcup->smc_brkcr, 0); in cpm_uart_shutdown()
480 out_be16(&pinfo->sccup->scc_brkcr, 0); in cpm_uart_shutdown()
586 out_be16(&pinfo->smcup->smc_mrblr, pinfo->rx_fifosize); in cpm_uart_set_termios()
587 out_be16(&pinfo->smcup->smc_maxidl, maxidl); in cpm_uart_set_termios()
598 out_be16(&smcp->smc_smcmr, smcr_mk_clen(bits - 1) | cval | in cpm_uart_set_termios()
603 out_be16(&pinfo->sccup->scc_genscc.scc_mrblr, pinfo->rx_fifosize); in cpm_uart_set_termios()
604 out_be16(&pinfo->sccup->scc_maxidl, maxidl); in cpm_uart_set_termios()
[all …]
Dmpc52xx_uart.c128 out_be16(&psc->mpc52xx_psc_clock_select, prescaler); in mpc52xx_set_divisor()
173 out_be16(&psc->mpc52xx_psc_imr, port->read_status_mask); in mpc52xx_psc_enable_ms()
183 out_be16(&PSC(port)->mpc52xx_psc_imr, val); in mpc52xx_psc_set_imr()
200 out_be16(&fifo->rfalarm, 0x1ff); in mpc52xx_psc_fifo_init()
202 out_be16(&fifo->tfalarm, 0x80); in mpc52xx_psc_fifo_init()
205 out_be16(&psc->mpc52xx_psc_imr, port->read_status_mask); in mpc52xx_psc_fifo_init()
245 out_be16(&PSC(port)->mpc52xx_psc_imr, port->read_status_mask); in mpc52xx_psc_start_tx()
251 out_be16(&PSC(port)->mpc52xx_psc_imr, port->read_status_mask); in mpc52xx_psc_stop_tx()
257 out_be16(&PSC(port)->mpc52xx_psc_imr, port->read_status_mask); in mpc52xx_psc_stop_rx()
280 out_be16(&PSC(port)->mpc52xx_psc_imr, 0); in mpc52xx_psc_cw_disable_ints()
[all …]
/linux-6.6.21/arch/powerpc/boot/ !
Dcpm-serial.c93 out_be16(cpcr, (op << 8) | cpm_cmd | 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()
140 out_be16(&param->mrblr, 1); in cpm_serial_open()
141 out_be16(&param->maxidl, 0); in cpm_serial_open()
142 out_be16(&param->brkec, 0); in cpm_serial_open()
143 out_be16(&param->brkln, 0); in cpm_serial_open()
144 out_be16(&param->brkcr, 0); in cpm_serial_open()
157 out_be16(&param->rbase, cbd_offset); in cpm_serial_open()
158 out_be16(&param->tbase, cbd_offset + sizeof(struct cpm_bd)); in cpm_serial_open()
[all …]
Dio.h52 static inline void out_be16(volatile u16 *addr, int val) in out_be16() function
/linux-6.6.21/arch/powerpc/platforms/52xx/ !
Dlite5200_pm.c143 out_be16(&cdm->fd_counters, scdm.fd_counters); in lite5200_restore_regs()
149 out_be16(&cdm->mclken_div_psc1, scdm.mclken_div_psc1); in lite5200_restore_regs()
150 out_be16(&cdm->mclken_div_psc2, scdm.mclken_div_psc2); in lite5200_restore_regs()
151 out_be16(&cdm->mclken_div_psc3, scdm.mclken_div_psc3); in lite5200_restore_regs()
152 out_be16(&cdm->mclken_div_psc6, scdm.mclken_div_psc6); in lite5200_restore_regs()
163 out_be16(&bes->PtdCntrl, sbes.PtdCntrl); in lite5200_restore_regs()
181 out_be16(&bes->tcr[i], sbes.tcr[i]); in lite5200_restore_regs()
Dlite5200.c71 out_be16(&cdm->fd_counters, 0x0001); in lite5200_fix_clock_config()
73 out_be16(&cdm->fd_counters, 0x5555); in lite5200_fix_clock_config()
/linux-6.6.21/drivers/i2c/busses/ !
Di2c-cpm.c143 out_be16(&i2c_ram->tbase, (u8 __iomem *)cpm->tbase - DPRAM_BASE); in cpm_reset_i2c_params()
144 out_be16(&i2c_ram->rbase, (u8 __iomem *)cpm->rbase - DPRAM_BASE); in cpm_reset_i2c_params()
154 out_be16(&i2c_ram->mrblr, CPM_MAX_READ); in cpm_reset_i2c_params()
158 out_be16(&i2c_ram->rbptr, 0); in cpm_reset_i2c_params()
159 out_be16(&i2c_ram->rbc, 0); in cpm_reset_i2c_params()
163 out_be16(&i2c_ram->tbptr, 0); in cpm_reset_i2c_params()
164 out_be16(&i2c_ram->tbc, 0); in cpm_reset_i2c_params()
204 out_be16(&tbdf->cbd_datlen, pmsg->len + 1); in cpm_i2c_parse_message()
205 out_be16(&tbdf->cbd_sc, 0); in cpm_i2c_parse_message()
222 out_be16(&rbdf->cbd_datlen, 0); in cpm_i2c_parse_message()
[all …]
/linux-6.6.21/include/linux/fsl/bestcomm/ !
Dbestcomm_priv.h257 out_be16(&bcom_eng->regs->PtdCntrl, regval | 1); in bcom_disable_prefetch()
265 out_be16(&bcom_eng->regs->tcr[task], reg | TASK_ENABLE); in bcom_enable_task()
272 out_be16(&bcom_eng->regs->tcr[task], reg & ~TASK_ENABLE); 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/spi/ !
Dspi-mpc52xx-psc.c96 out_be16((u16 __iomem *)&psc->ccr, ccr); in mpc52xx_psc_spi_activate_cs()
156 out_be16(&fifo->rfalarm, rfalarm); in mpc52xx_psc_spi_transfer_rxtx()
158 out_be16(&psc->mpc52xx_psc_imr, MPC52xx_PSC_IMR_RXRDY); in mpc52xx_psc_spi_transfer_rxtx()
261 out_be16(&psc->mpc52xx_psc_imr, 0); in mpc52xx_psc_spi_port_config()
269 out_be16((u16 __iomem *)&psc->ccr, 0x070F); /* default SPI Clk 1MHz */ in mpc52xx_psc_spi_port_config()
287 out_be16(&psc->mpc52xx_psc_imr, 0); in mpc52xx_psc_spi_isr()
/linux-6.6.21/arch/powerpc/sysdev/ !
Dfsl_gtm.c215 out_be16(tmr->gtpsr, psr); in gtm_set_ref_timer16()
218 out_be16(tmr->gtcnr, 0); in gtm_set_ref_timer16()
219 out_be16(tmr->gtrfr, reference_value); in gtm_set_ref_timer16()
220 out_be16(tmr->gtevr, 0xFFFF); in gtm_set_ref_timer16()
311 out_be16(tmr->gtevr, 0xFFFF); in gtm_stop_timer16()
328 out_be16(tmr->gtevr, events); in gtm_ack_timer16()
/linux-6.6.21/drivers/net/can/mscan/ !
Dmscan.c235 out_be16(&regs->tx.idr3_2, can_id); in mscan_start_xmit()
247 out_be16(&regs->tx.idr1_0, can_id); in mscan_start_xmit()
254 out_be16(data, *payload++); in mscan_start_xmit()
645 out_be16(&regs->canidar1_0, 0); in register_mscandev()
646 out_be16(&regs->canidar3_2, 0); in register_mscandev()
647 out_be16(&regs->canidar5_4, 0); in register_mscandev()
648 out_be16(&regs->canidar7_6, 0); in register_mscandev()
650 out_be16(&regs->canidmr1_0, 0xffff); in register_mscandev()
651 out_be16(&regs->canidmr3_2, 0xffff); in register_mscandev()
652 out_be16(&regs->canidmr5_4, 0xffff); in register_mscandev()
[all …]
/linux-6.6.21/drivers/usb/gadget/udc/ !
Dfsl_qe_udc.c155 out_be16(&udc->usb_regs->usb_usep[epnum], tem_usep); in qe_eprx_stall_change()
172 out_be16(&udc->usb_regs->usb_usep[epnum], tem_usep); in qe_eptx_stall_change()
214 out_be16(&udc->usb_regs->usb_usber, in qe_eprx_normal()
260 out_be16(&udc->ep_param[i]->tbptr, in_be16(&udc->ep_param[i]->tbase)); in qe_ep_flushtxfifo()
262 out_be16(&udc->ep_param[i]->tbcnt, 0); in qe_ep_flushtxfifo()
334 out_be16(&udc->usb_regs->usb_usep[pipe_num], tmpusep); in qe_ep_reset()
368 out_be16(&epparam->rbase, (u16)tmp_addr); in qe_ep_bd_init()
369 out_be16(&epparam->tbase, (u16)(tmp_addr + in qe_ep_bd_init()
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()
[all …]
/linux-6.6.21/sound/soc/fsl/ !
Dmpc5200_dma.c183 out_be16(&regs->isr_imr.imr, psc_dma->imr | imr); in psc_dma_trigger()
258 out_be16(&psc_dma->psc_regs->isr_imr.imr, psc_dma->imr); in psc_dma_close()
375 out_be16(&psc_dma->psc_regs->isr_imr.imr, psc_dma->imr); in mpc5200_audio_dma_create()
393 out_be16(&psc_dma->fifo_regs->rfalarm, 0x100); in mpc5200_audio_dma_create()
395 out_be16(&psc_dma->fifo_regs->tfalarm, 0x100); in mpc5200_audio_dma_create()
/linux-6.6.21/arch/m68k/include/asm/ !
Draw_io.h31 #define out_be16(addr,w) (void)((*(__force volatile u16 *) (unsigned long)(addr)) = (w)) macro
44 #define raw_outw(val,port) out_be16((port),(val))
47 #define __raw_writew(val,addr) out_be16((addr),(val))
/linux-6.6.21/drivers/net/ethernet/amd/ !
Dmvme147.c146 out_be16(lp->base + LANCE_RAP, value); in m147lance_writerap()
151 out_be16(lp->base + LANCE_RDP, value); in m147lance_writerdp()
Dhplance.c177 out_be16(lp->base + HPLANCE_REGOFF + LANCE_RAP, value); in hplance_writerap()
186 out_be16(lp->base + HPLANCE_REGOFF + LANCE_RDP, value); in hplance_writerdp()
D7990.c45 #define WRITERAP(lp, x) out_be16(lp->base + LANCE_RAP, (x))
46 #define WRITERDP(lp, x) out_be16(lp->base + LANCE_RDP, (x))
69 out_be16(lp->base + HPLANCE_REGOFF + LANCE_RAP, value); in WRITERAP()
76 out_be16(lp->base + HPLANCE_REGOFF + LANCE_RDP, value); in WRITERDP()
/linux-6.6.21/drivers/watchdog/ !
Dmpc8xxx_wdt.c76 out_be16(&ddata->base->swsrr, 0x556c); in mpc8xxx_wdt_keepalive()
77 out_be16(&ddata->base->swsrr, 0xaa39); in mpc8xxx_wdt_keepalive()

12