Home
last modified time | relevance | path

Searched refs:out_8 (Results 1 – 25 of 114) sorted by relevance

12345

/kernel/linux/linux-5.10/arch/powerpc/platforms/embedded6xx/
Dls_uart.c40 out_8(avr_addr + UART_TX, string[i]); in wd_stop()
66 out_8(avr_addr + UART_LCR, cval); /* initialise UART */ in avr_uart_configure()
67 out_8(avr_addr + UART_MCR, 0); in avr_uart_configure()
68 out_8(avr_addr + UART_IER, 0); in avr_uart_configure()
72 out_8(avr_addr + UART_LCR, cval); /* Set character format */ in avr_uart_configure()
74 out_8(avr_addr + UART_LCR, cval | UART_LCR_DLAB); /* set DLAB */ in avr_uart_configure()
75 out_8(avr_addr + UART_DLL, quot & 0xff); /* LS of divisor */ in avr_uart_configure()
76 out_8(avr_addr + UART_DLM, quot >> 8); /* MS of divisor */ in avr_uart_configure()
77 out_8(avr_addr + UART_LCR, cval); /* reset DLAB */ in avr_uart_configure()
78 out_8(avr_addr + UART_FCR, UART_FCR_ENABLE_FIFO); /* enable FIFO */ in avr_uart_configure()
[all …]
/kernel/linux/linux-5.10/drivers/macintosh/
Dmacio-adb.c114 out_8(&adb->ctrl.r, 0); in macio_init()
115 out_8(&adb->intr.r, 0); in macio_init()
116 out_8(&adb->error.r, 0); in macio_init()
117 out_8(&adb->active_hi.r, 0xff); /* for now, set all devices active */ in macio_init()
118 out_8(&adb->active_lo.r, 0xff); in macio_init()
119 out_8(&adb->autopoll.r, APE); in macio_init()
127 out_8(&adb->intr_enb.r, DFB | TAG); in macio_init()
139 out_8(&adb->active_hi.r, devs >> 8); in macio_adb_autopoll()
140 out_8(&adb->active_lo.r, devs); in macio_adb_autopoll()
141 out_8(&adb->autopoll.r, devs? APE: 0); in macio_adb_autopoll()
[all …]
Dvia-cuda.c108 out_8(&via[B], in_8(&via[B]) | TIP); in assert_TIP()
110 out_8(&via[B], in_8(&via[B]) & ~TIP); in assert_TIP()
117 out_8(&via[B], in_8(&via[B]) | TIP | TACK); in assert_TIP_and_TACK()
119 out_8(&via[B], in_8(&via[B]) & ~(TIP | TACK)); in assert_TIP_and_TACK()
126 out_8(&via[B], in_8(&via[B]) | TACK); in assert_TACK()
128 out_8(&via[B], in_8(&via[B]) & ~TACK); in assert_TACK()
133 out_8(&via[B], in_8(&via[B]) ^ TACK); in toggle_TACK()
140 out_8(&via[B], in_8(&via[B]) & ~TACK); in negate_TACK()
142 out_8(&via[B], in_8(&via[B]) | TACK); in negate_TACK()
149 out_8(&via[B], in_8(&via[B]) & ~(TIP | TACK)); in negate_TIP_and_TACK()
[all …]
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-ibm_iic.c126 out_8(&dev->vaddr->intmsk, enable ? INTRMSK_EIMTC : 0); in iic_interrupt_mode()
139 out_8(&iic->lmadr, 0); in iic_dev_init()
140 out_8(&iic->hmadr, 0); in iic_dev_init()
143 out_8(&iic->lsadr, 0); in iic_dev_init()
144 out_8(&iic->hsadr, 0); in iic_dev_init()
147 out_8(&iic->sts, STS_SCMP | STS_IRQA); in iic_dev_init()
148 out_8(&iic->extsts, EXTSTS_IRQP | EXTSTS_IRQD | EXTSTS_LA in iic_dev_init()
152 out_8(&iic->clkdiv, dev->clckdiv); in iic_dev_init()
155 out_8(&iic->xfrcnt, 0); in iic_dev_init()
158 out_8(&iic->xtcntlss, XTCNTLSS_SRC | XTCNTLSS_SRS | XTCNTLSS_SWC in iic_dev_init()
[all …]
Di2c-cpm.c129 out_8(&i2c_reg->i2cer, i); in cpm_i2c_interrupt()
147 out_8(&i2c_ram->tfcr, I2C_EB); in cpm_reset_i2c_params()
148 out_8(&i2c_ram->rfcr, I2C_EB); in cpm_reset_i2c_params()
150 out_8(&i2c_ram->tfcr, I2C_EB_CPM2); in cpm_reset_i2c_params()
151 out_8(&i2c_ram->rfcr, I2C_EB_CPM2); in cpm_reset_i2c_params()
177 out_8(&i2c_reg->i2cmr, 0x00); /* Disable all interrupts */ in cpm_i2c_force_close()
178 out_8(&i2c_reg->i2cer, 0xff); in cpm_i2c_force_close()
324 out_8(&cpm->i2c_reg->i2com, I2COM_MASTER); in cpm_i2c_xfer()
338 out_8(&i2c_reg->i2cmr, I2CER_TXE | I2CER_TXB | I2CER_RXB); in cpm_i2c_xfer()
339 out_8(&i2c_reg->i2cer, 0xff); /* Clear interrupt status */ in cpm_i2c_xfer()
[all …]
/kernel/linux/linux-5.10/drivers/rtc/
Drtc-mpc5121.c92 out_8(&regs->second_set, tm->tm_sec); in mpc5121_rtc_update_smh()
93 out_8(&regs->minute_set, tm->tm_min); in mpc5121_rtc_update_smh()
94 out_8(&regs->hour_set, tm->tm_hour); in mpc5121_rtc_update_smh()
97 out_8(&regs->set_time, 0x1); in mpc5121_rtc_update_smh()
98 out_8(&regs->set_time, 0x3); in mpc5121_rtc_update_smh()
99 out_8(&regs->set_time, 0x1); in mpc5121_rtc_update_smh()
100 out_8(&regs->set_time, 0x0); in mpc5121_rtc_update_smh()
182 out_8(&regs->month_set, tm->tm_mon + 1); in mpc5200_rtc_set_time()
183 out_8(&regs->weekday_set, tm->tm_wday ? tm->tm_wday : 7); in mpc5200_rtc_set_time()
184 out_8(&regs->date_set, tm->tm_mday); in mpc5200_rtc_set_time()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/
Dmesh.c368 out_8(&mr->exception, 0xff); /* clear all exception bits */ in mesh_init()
369 out_8(&mr->error, 0xff); /* clear all error bits */ in mesh_init()
370 out_8(&mr->sequence, SEQ_RESETMESH); in mesh_init()
373 out_8(&mr->intr_mask, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in mesh_init()
374 out_8(&mr->source_id, ms->host->this_id); in mesh_init()
375 out_8(&mr->sel_timeout, 25); /* 250ms */ in mesh_init()
376 out_8(&mr->sync_params, ASYNC_PARAMS); in mesh_init()
382 out_8(&mr->bus_status1, BS1_RST); /* assert RST */ in mesh_init()
385 out_8(&mr->bus_status1, 0); /* negate RST */ in mesh_init()
393 out_8(&mr->interrupt, 0xff); /* clear all interrupt bits */ in mesh_init()
[all …]
/kernel/linux/linux-5.10/drivers/video/fbdev/
Dhpfb.c121 out_8(fb_regs + TC_NBLANK, (blank ? 0x00 : fb_bitmask)); in hpfb_blank()
132 out_8(fb_regs + TC_FBEN, fb_bitmask); in topcat_blit()
134 out_8(fb_regs + TC_WEN, fb_bitmask); in topcat_blit()
135 out_8(fb_regs + WMRR, rr); in topcat_blit()
143 out_8(fb_regs + WMOVE, fb_bitmask); in topcat_blit()
161 out_8(fb_regs + TC_WEN, fb_bitmask & clr); in hpfb_fillrect()
162 out_8(fb_regs + WMRR, (region->rop == ROP_COPY ? RR_SET : RR_INVERT)); in hpfb_fillrect()
165 out_8(fb_regs + TC_WEN, fb_bitmask & ~clr); in hpfb_fillrect()
166 out_8(fb_regs + WMRR, (region->rop == ROP_COPY ? RR_CLEAR : RR_NOOP)); in hpfb_fillrect()
180 out_8(fb_regs + TC_WEN, fb_bitmask); in hpfb_sync()
[all …]
Ddnfb.c142 out_8(AP_CONTROL_3A, 0x0); in dnfb_blank()
144 out_8(AP_CONTROL_3A, 0x1); in dnfb_blank()
169 out_8(AP_CONTROL_0, in dnfb_copyarea()
179 out_8(AP_CONTROL_0, in dnfb_copyarea()
188 out_8(AP_CONTROL_3A, 0xc | (dest >> 16)); in dnfb_copyarea()
196 out_8(AP_WRITE_ENABLE, start_mask); in dnfb_copyarea()
200 out_8(AP_WRITE_ENABLE, 0); in dnfb_copyarea()
208 out_8(AP_WRITE_ENABLE, start_mask); in dnfb_copyarea()
213 out_8(AP_WRITE_ENABLE, start_mask | end_mask); in dnfb_copyarea()
221 out_8(AP_CONTROL_0, NORMAL_MODE); in dnfb_copyarea()
[all …]
Dvalkyriefb.c143 out_8(&valkyrie_regs->status.r, 0); in valkyriefb_set_par()
148 out_8(&valkyrie_regs->mode.r, init->mode | 0x80); in valkyriefb_set_par()
149 out_8(&valkyrie_regs->depth.r, par->cmode + 3); in valkyriefb_set_par()
154 out_8(&valkyrie_regs->mode.r, init->mode); in valkyriefb_set_par()
199 out_8(&p->valkyrie_regs->mode.r, init->mode); in valkyriefb_blank()
210 out_8(&p->valkyrie_regs->mode.r, init->mode | 0x40); in valkyriefb_blank()
213 out_8(&p->valkyrie_regs->mode.r, 0x66); in valkyriefb_blank()
234 out_8(&p->cmap_regs->addr, regno); in valkyriefb_setcolreg()
237 out_8(&cmap_regs->lut, red); in valkyriefb_setcolreg()
238 out_8(&cmap_regs->lut, green); in valkyriefb_setcolreg()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/platforms/powermac/
Dnvram.c158 out_8(&nvram_data[(addr & (NVRAM_SIZE - 1)) * nvram_mult], val); in direct_nvram_write_byte()
168 out_8(nvram_addr, addr >> 5); in indirect_nvram_read_byte()
180 out_8(nvram_addr, addr >> 5); in indirect_nvram_write_byte()
181 out_8(&nvram_data[(addr & 0x1f) << 4], val); in indirect_nvram_write_byte()
289 out_8(base, SM_FLASH_CMD_ERASE_SETUP); in sm_erase_bank()
290 out_8(base, SM_FLASH_CMD_ERASE_CONFIRM); in sm_erase_bank()
297 out_8(base, SM_FLASH_CMD_READ_STATUS); in sm_erase_bank()
301 out_8(base, SM_FLASH_CMD_CLEAR_STATUS); in sm_erase_bank()
302 out_8(base, SM_FLASH_CMD_RESET); in sm_erase_bank()
321 out_8(base+i, SM_FLASH_CMD_WRITE_SETUP); in sm_write_bank()
[all …]
Dudbg_scc.c28 out_8(sccd, c); in udbg_scc_putc()
120 out_8(sccc, 0x09); /* reset A or B side */ in udbg_scc_init()
121 out_8(sccc, 0xc0); in udbg_scc_init()
127 out_8(sccc, 13); in udbg_scc_init()
129 out_8(sccc, 12); in udbg_scc_init()
144 out_8(sccc, scc_inittab[i]); in udbg_scc_init()
Dtime.c192 out_8(&via[ACR], (via[ACR] & ~T1MODE) | T1MODE_CONT); in via_calibrate_decr()
194 out_8(&via[T1CH], 2); in via_calibrate_decr()
196 out_8(&via[T1LL], count); in via_calibrate_decr()
197 out_8(&via[T1LH], count >> 8); in via_calibrate_decr()
/kernel/linux/linux-5.10/drivers/net/can/mscan/
Dmscan.c61 out_8(&regs->cantarq, priv->tx_active); in mscan_set_mode()
63 out_8(&regs->cantier, 0); in mscan_set_mode()
133 out_8(&regs->canrier, 0); in mscan_start()
145 out_8(&regs->canmisc, MSCAN_BOHOLD); in mscan_start()
156 out_8(&regs->cantier, 0); in mscan_start()
159 out_8(&regs->canrier, MSCAN_RX_INTS_ENABLE); in mscan_start()
174 out_8(&regs->canmisc, MSCAN_BOHOLD); in mscan_restart()
176 out_8(&regs->canrier, MSCAN_RX_INTS_ENABLE); in mscan_restart()
197 out_8(&regs->cantier, 0); in mscan_start_xmit()
225 out_8(&regs->cantbsel, i); in mscan_start_xmit()
[all …]
/kernel/linux/linux-5.10/drivers/block/
Dswim3.c277 out_8(&sw->select, RELAX); in swim3_select()
279 out_8(&sw->control_bis, SELECT); in swim3_select()
281 out_8(&sw->control_bic, SELECT); in swim3_select()
282 out_8(&sw->select, sel & CA_MASK); in swim3_select()
291 out_8(&sw->select, sw->select | LSTRB); in swim3_action()
293 out_8(&sw->select, sw->select & ~LSTRB); in swim3_action()
380 out_8(&sw->intr_enable, SEEN_SECTOR); in scan_track()
381 out_8(&sw->control_bis, DO_ACTION); in scan_track()
401 out_8(&sw->intr_enable, SEEK_DONE); in seek_track()
402 out_8(&sw->control_bis, DO_SEEK); in seek_track()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/platforms/52xx/
Dmpc52xx_pm.c42 out_8(&gpiow->wkup_gpioe, in_8(&gpiow->wkup_gpioe) | (1 << pin)); in mpc52xx_set_wakeup_gpio()
44 out_8(&gpiow->wkup_ddr, in_8(&gpiow->wkup_ddr) & ~(1 << pin)); in mpc52xx_set_wakeup_gpio()
46 out_8(&gpiow->wkup_inten, in_8(&gpiow->wkup_inten) | (1 << pin)); in mpc52xx_set_wakeup_gpio()
53 out_8(&gpiow->wkup_maste, 1); in mpc52xx_set_wakeup_gpio()
138 out_8(&cdm->ccs_sleep_enable, 1); in mpc52xx_pm_enter()
139 out_8(&cdm->osc_sleep_enable, 1); in mpc52xx_pm_enter()
140 out_8(&cdm->ccs_qreq_test, 1); in mpc52xx_pm_enter()
172 out_8(&cdm->ccs_sleep_enable, 0); in mpc52xx_pm_enter()
173 out_8(&cdm->osc_sleep_enable, 0); in mpc52xx_pm_enter()
Dlite5200_pm.c139 out_8(&cdm->ipb_clk_sel, scdm.ipb_clk_sel); in lite5200_restore_regs()
140 out_8(&cdm->pci_clk_sel, scdm.pci_clk_sel); in lite5200_restore_regs()
142 out_8(&cdm->ext_48mhz_en, scdm.ext_48mhz_en); in lite5200_restore_regs()
143 out_8(&cdm->fd_enable, scdm.fd_enable); in lite5200_restore_regs()
148 out_8(&cdm->osc_disable, scdm.osc_disable); in lite5200_restore_regs()
162 out_8(&bes->IntVect1, sbes.IntVect1); in lite5200_restore_regs()
163 out_8(&bes->IntVect2, sbes.IntVect2); in lite5200_restore_regs()
167 out_8(&bes->ipr[i], sbes.ipr[i]); in lite5200_restore_regs()
/kernel/linux/linux-5.10/drivers/net/ethernet/apple/
Dmace.c326 out_8(&mb->biucc, SWRST); in mace_reset()
338 out_8(&mb->imr, 0xff); /* disable all intrs for now */ in mace_reset()
340 out_8(&mb->maccc, 0); /* turn off tx, rx */ in mace_reset()
342 out_8(&mb->biucc, XMTSP_64); in mace_reset()
343 out_8(&mb->utr, RTRD); in mace_reset()
344 out_8(&mb->fifocc, RCVFW_32 | XMTFW_16 | XMTFWU | RCVFWU | XMTBRST); in mace_reset()
345 out_8(&mb->xmtfc, AUTO_PAD_XMIT); /* auto-pad short frames */ in mace_reset()
346 out_8(&mb->rcvfc, 0); in mace_reset()
353 out_8(&mb->iac, LOGADDR); in mace_reset()
355 out_8(&mb->iac, ADDRCHG | LOGADDR); in mace_reset()
[all …]
/kernel/linux/linux-5.10/drivers/spi/
Dspi-mpc52xx-psc.c145 out_8(&psc->command, MPC52xx_PSC_TX_ENABLE | MPC52xx_PSC_RX_ENABLE); in mpc52xx_psc_spi_transfer_rxtx()
160 out_8(&psc->ircr2, 0x01); in mpc52xx_psc_spi_transfer_rxtx()
163 out_8(&psc->mpc52xx_psc_buffer_8, tx_buf[sb]); in mpc52xx_psc_spi_transfer_rxtx()
165 out_8(&psc->mpc52xx_psc_buffer_8, 0); in mpc52xx_psc_spi_transfer_rxtx()
173 out_8(&psc->command, MPC52xx_PSC_SEL_MODE_REG_1); in mpc52xx_psc_spi_transfer_rxtx()
175 out_8(&psc->mode, 0); in mpc52xx_psc_spi_transfer_rxtx()
177 out_8(&psc->mode, MPC52xx_PSC_MODE_FFULL); in mpc52xx_psc_spi_transfer_rxtx()
195 out_8(&psc->command, MPC52xx_PSC_TX_DISABLE | MPC52xx_PSC_RX_DISABLE); in mpc52xx_psc_spi_transfer_rxtx()
321 out_8(&psc->command, MPC52xx_PSC_RST_RX); in mpc52xx_psc_spi_port_config()
322 out_8(&psc->command, MPC52xx_PSC_RST_TX); in mpc52xx_psc_spi_port_config()
[all …]
Dspi-mpc52xx.c103 out_8(ms->regs + SPI_PORTDATA, value ? 0 : 0x08); in mpc52xx_spi_chipsel()
125 out_8(ms->regs + SPI_DATA, *ms->tx_buf++); in mpc52xx_spi_start_transfer()
127 out_8(ms->regs + SPI_DATA, 0); in mpc52xx_spi_start_transfer()
170 out_8(ms->regs + SPI_CTRL1, ctrl1); in mpc52xx_spi_fsmstate_idle()
189 out_8(ms->regs + SPI_BRR, sppr << 4 | spr); /* Set speed */ in mpc52xx_spi_fsmstate_idle()
229 out_8(ms->regs + SPI_DATA, data); /* try again */ in mpc52xx_spi_fsmstate_transfer()
259 out_8(ms->regs + SPI_DATA, *ms->tx_buf++); in mpc52xx_spi_fsmstate_transfer()
261 out_8(ms->regs + SPI_DATA, 0); in mpc52xx_spi_fsmstate_transfer()
396 out_8(regs + SPI_CTRL1, ctrl1); in mpc52xx_spi_probe()
397 out_8(regs + SPI_CTRL2, 0x0); in mpc52xx_spi_probe()
[all …]
/kernel/linux/linux-5.10/drivers/tty/serial/cpm_uart/
Dcpm_uart_cpm1.h21 out_8(&sup->scc_genscc.scc_rfcr, SMC_EB); in cpm_set_scc_fcr()
22 out_8(&sup->scc_genscc.scc_tfcr, SMC_EB); in cpm_set_scc_fcr()
27 out_8(&up->smc_rfcr, SMC_EB); in cpm_set_smc_fcr()
28 out_8(&up->smc_tfcr, SMC_EB); in cpm_set_smc_fcr()
Dcpm_uart_cpm2.h21 out_8(&sup->scc_genscc.scc_rfcr, CPMFCR_GBL | CPMFCR_EB); in cpm_set_scc_fcr()
22 out_8(&sup->scc_genscc.scc_tfcr, CPMFCR_GBL | CPMFCR_EB); in cpm_set_scc_fcr()
27 out_8(&up->smc_rfcr, CPMFCR_GBL | CPMFCR_EB); in cpm_set_smc_fcr()
28 out_8(&up->smc_tfcr, CPMFCR_GBL | CPMFCR_EB); in cpm_set_smc_fcr()
/kernel/linux/linux-5.10/arch/m68k/hp300/
Dtime.c103 out_8(CLOCKBASE + CLKCR2, 0x1); /* select CR1 */ in hp300_sched_init()
104 out_8(CLOCKBASE + CLKCR1, 0x1); /* reset */ in hp300_sched_init()
111 out_8(CLOCKBASE + CLKCR2, 0x1); /* select CR1 */ in hp300_sched_init()
112 out_8(CLOCKBASE + CLKCR1, 0x40); /* enable irq */ in hp300_sched_init()
/kernel/linux/linux-5.10/arch/powerpc/platforms/512x/
Dmpc5121_ads_cpld.c63 out_8(pic_mask, in cpld_mask_irq()
73 out_8(pic_mask, in cpld_unmask_irq()
184 out_8(&cpld_regs->route, 0xfd); in mpc5121_ads_cpld_pic_init()
185 out_8(&cpld_regs->pci_mask, 0xff); in mpc5121_ads_cpld_pic_init()
187 out_8(&cpld_regs->misc_mask, ~(MISC_IGNORE)); in mpc5121_ads_cpld_pic_init()
/kernel/linux/linux-5.10/sound/soc/fsl/
Dmpc5200_dma.c46 out_8(&regs->command, MPC52xx_PSC_RST_ERR_STAT); in psc_dma_status_irq()
156 out_8(&regs->command, MPC52xx_PSC_RST_ERR_STAT); in psc_dma_trigger()
263 out_8(&psc_dma->psc_regs->command, 4 << 4); /* reset error */ in psc_dma_close()
433 out_8(&psc_dma->psc_regs->command, MPC52xx_PSC_RST_RX); in mpc5200_audio_dma_create()
435 out_8(&psc_dma->psc_regs->command, MPC52xx_PSC_RST_TX); in mpc5200_audio_dma_create()
437 out_8(&psc_dma->psc_regs->command, MPC52xx_PSC_RST_ERR_STAT); in mpc5200_audio_dma_create()
439 out_8(&psc_dma->psc_regs->command, MPC52xx_PSC_SEL_MODE_REG_1); in mpc5200_audio_dma_create()
445 out_8(&psc_dma->psc_regs->mode, 0); in mpc5200_audio_dma_create()
446 out_8(&psc_dma->psc_regs->mode, 0); in mpc5200_audio_dma_create()
450 out_8(&psc_dma->fifo_regs->rfcntl, 0x4); in mpc5200_audio_dma_create()
[all …]

12345