/linux/arch/powerpc/platforms/embedded6xx/ |
H A D | ls_uart.c | 41 out_8(avr_addr + UART_TX, string[i]); in wd_stop() 67 out_8(avr_addr + UART_LCR, cval); /* initialise UART */ in avr_uart_configure() 68 out_8(avr_addr + UART_MCR, 0); in avr_uart_configure() 69 out_8(avr_addr + UART_IER, 0); in avr_uart_configure() 73 out_8(avr_addr + UART_LCR, cval); /* Set character format */ in avr_uart_configure() 75 out_8(avr_addr + UART_LCR, cval | UART_LCR_DLAB); /* set DLAB */ in avr_uart_configure() 76 out_8(avr_addr + UART_DLL, quot & 0xff); /* LS of divisor */ in avr_uart_configure() 77 out_8(avr_addr + UART_DLM, quot >> 8); /* MS of divisor */ in avr_uart_configure() 78 out_8(avr_addr + UART_LCR, cval); /* reset DLAB */ in avr_uart_configure() 79 out_8(avr_addr + UART_FCR, UART_FCR_ENABLE_FIFO); /* enable FIFO */ in avr_uart_configure() [all …]
|
/linux/drivers/macintosh/ |
H A D | macio-adb.c | 113 out_8(&adb->ctrl.r, 0); in macio_init() 114 out_8(&adb->intr.r, 0); in macio_init() 115 out_8(&adb->error.r, 0); in macio_init() 116 out_8(&adb->active_hi.r, 0xff); /* for now, set all devices active */ in macio_init() 117 out_8(&adb->active_lo.r, 0xff); in macio_init() 118 out_8(&adb->autopoll.r, APE); in macio_init() 126 out_8(&adb->intr_enb.r, DFB | TAG); in macio_init() 138 out_8(&adb->active_hi.r, devs >> 8); in macio_adb_autopoll() 139 out_8(&adb->active_lo.r, devs); in macio_adb_autopoll() 140 out_8(&adb->autopoll.r, devs? APE: 0); in macio_adb_autopoll() [all …]
|
H A D | via-cuda.c | 111 out_8(&via[B], in_8(&via[B]) | TIP); in assert_TIP() 113 out_8(&via[B], in_8(&via[B]) & ~TIP); in assert_TIP() 120 out_8(&via[B], in_8(&via[B]) | TIP | TACK); in assert_TIP_and_TACK() 122 out_8(&via[B], in_8(&via[B]) & ~(TIP | TACK)); in assert_TIP_and_TACK() 129 out_8(&via[B], in_8(&via[B]) | TACK); in assert_TACK() 131 out_8(&via[B], in_8(&via[B]) & ~TACK); in assert_TACK() 136 out_8(&via[B], in_8(&via[B]) ^ TACK); in toggle_TACK() 143 out_8(&via[B], in_8(&via[B]) & ~TACK); in negate_TACK() 145 out_8(&via[B], in_8(&via[B]) | TACK); in negate_TACK() 152 out_8(&via[B], in_8(&via[B]) & ~(TIP | TACK)); in negate_TIP_and_TACK() [all …]
|
H A D | via-pmu.c | 354 out_8(&via1[IER], IER_CLR | 0x7f); /* disable all intrs */ in find_via_pmu() 355 out_8(&via1[IFR], 0x7f); /* clear IFR */ in find_via_pmu() 465 out_8(&via1[IER], IER_SET | SR_INT | CB1_INT); in via_pmu_start() 576 out_8(&via2[B], in_8(&via2[B]) | TREQ); in init_pmu() 577 out_8(&via2[DIRB], (in_8(&via2[DIRB]) | TREQ) & ~TACK); in init_pmu() 1201 out_8(&via1[ACR], in_8(&via1[ACR]) | SR_OUT | SR_EXT); in send_byte() 1202 out_8(&via1[SR], x); in send_byte() 1203 out_8(&via2[B], in_8(&via2[B]) & ~TREQ); /* assert TREQ */ in send_byte() 1210 out_8(&via1[ACR], (in_8(&via1[ACR]) & ~SR_OUT) | SR_EXT); in recv_byte() 1212 out_8(&via2[B], in_8(&via2[B]) & ~TREQ); in recv_byte() [all …]
|
/linux/drivers/scsi/ |
H A D | mesh.c | 359 out_8(&mr->exception, 0xff); /* clear all exception bits */ in mesh_init() 360 out_8(&mr->error, 0xff); /* clear all error bits */ in mesh_init() 361 out_8(&mr->sequence, SEQ_RESETMESH); in mesh_init() 364 out_8(&mr->intr_mask, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in mesh_init() 365 out_8(&mr->source_id, ms->host->this_id); in mesh_init() 366 out_8(&mr->sel_timeout, 25); /* 250ms */ in mesh_init() 367 out_8(&mr->sync_params, ASYNC_PARAMS); in mesh_init() 373 out_8(&mr->bus_status1, BS1_RST); /* assert RST */ in mesh_init() 376 out_8(&mr->bus_status1, 0); /* negate RST */ in mesh_init() 384 out_8(&mr->interrupt, 0xff); /* clear all interrupt bits */ in mesh_init() [all …]
|
/linux/drivers/rtc/ |
H A D | rtc-mpc5121.c | 90 out_8(®s->second_set, tm->tm_sec); in mpc5121_rtc_update_smh() 91 out_8(®s->minute_set, tm->tm_min); in mpc5121_rtc_update_smh() 92 out_8(®s->hour_set, tm->tm_hour); in mpc5121_rtc_update_smh() 95 out_8(®s->set_time, 0x1); in mpc5121_rtc_update_smh() 96 out_8(®s->set_time, 0x3); in mpc5121_rtc_update_smh() 97 out_8(®s->set_time, 0x1); in mpc5121_rtc_update_smh() 98 out_8(®s->set_time, 0x0); in mpc5121_rtc_update_smh() 180 out_8(®s->month_set, tm->tm_mon + 1); in mpc5200_rtc_set_time() 181 out_8(®s->weekday_set, tm->tm_wday ? tm->tm_wday : 7); in mpc5200_rtc_set_time() 182 out_8(®s->date_set, tm->tm_mday); in mpc5200_rtc_set_time() [all …]
|
/linux/drivers/video/fbdev/ |
H A D | hpfb.c | 121 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 …]
|
H A D | dnfb.c | 144 out_8(AP_CONTROL_3A, 0x0); in dnfb_blank() 146 out_8(AP_CONTROL_3A, 0x1); in dnfb_blank() 171 out_8(AP_CONTROL_0, in dnfb_copyarea() 181 out_8(AP_CONTROL_0, in dnfb_copyarea() 190 out_8(AP_CONTROL_3A, 0xc | (dest >> 16)); in dnfb_copyarea() 198 out_8(AP_WRITE_ENABLE, start_mask); in dnfb_copyarea() 202 out_8(AP_WRITE_ENABLE, 0); in dnfb_copyarea() 210 out_8(AP_WRITE_ENABLE, start_mask); in dnfb_copyarea() 215 out_8(AP_WRITE_ENABLE, start_mask | end_mask); in dnfb_copyarea() 223 out_8(AP_CONTROL_0, NORMAL_MODE); in dnfb_copyarea() [all …]
|
H A D | valkyriefb.c | 136 out_8(&valkyrie_regs->status.r, 0); in valkyriefb_set_par() 141 out_8(&valkyrie_regs->mode.r, init->mode | 0x80); in valkyriefb_set_par() 142 out_8(&valkyrie_regs->depth.r, par->cmode + 3); in valkyriefb_set_par() 147 out_8(&valkyrie_regs->mode.r, init->mode); in valkyriefb_set_par() 192 out_8(&p->valkyrie_regs->mode.r, init->mode); in valkyriefb_blank() 203 out_8(&p->valkyrie_regs->mode.r, init->mode | 0x40); in valkyriefb_blank() 206 out_8(&p->valkyrie_regs->mode.r, 0x66); in valkyriefb_blank() 227 out_8(&p->cmap_regs->addr, regno); in valkyriefb_setcolreg() 230 out_8(&cmap_regs->lut, red); in valkyriefb_setcolreg() 231 out_8(&cmap_regs->lut, green); in valkyriefb_setcolreg() [all …]
|
/linux/arch/powerpc/platforms/powermac/ |
H A D | nvram.c | 158 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 …]
|
H A D | udbg_scc.c | 28 out_8(sccd, c); in udbg_scc_putc() 124 out_8(sccc, 0x09); /* reset A or B side */ in udbg_scc_init() 125 out_8(sccc, 0xc0); in udbg_scc_init() 131 out_8(sccc, 13); in udbg_scc_init() 133 out_8(sccc, 12); in udbg_scc_init() 148 out_8(sccc, scc_inittab[i]); in udbg_scc_init()
|
H A D | time.c | 192 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()
|
/linux/drivers/block/ |
H A D | swim3.c | 276 out_8(&sw->select, RELAX); in swim3_select() 278 out_8(&sw->control_bis, SELECT); in swim3_select() 280 out_8(&sw->control_bic, SELECT); in swim3_select() 281 out_8(&sw->select, sel & CA_MASK); in swim3_select() 290 out_8(&sw->select, sw->select | LSTRB); in swim3_action() 292 out_8(&sw->select, sw->select & ~LSTRB); in swim3_action() 379 out_8(&sw->intr_enable, SEEN_SECTOR); in scan_track() 380 out_8(&sw->control_bis, DO_ACTION); in scan_track() 400 out_8(&sw->intr_enable, SEEK_DONE); in seek_track() 401 out_8(&sw->control_bis, DO_SEEK); in seek_track() [all …]
|
/linux/drivers/net/can/mscan/ |
H A D | mscan.c | 55 out_8(®s->cantarq, priv->tx_active); in mscan_set_mode() 57 out_8(®s->cantier, 0); in mscan_set_mode() 127 out_8(®s->canrier, 0); in mscan_start() 139 out_8(®s->canmisc, MSCAN_BOHOLD); in mscan_start() 150 out_8(®s->cantier, 0); in mscan_start() 153 out_8(®s->canrier, MSCAN_RX_INTS_ENABLE); in mscan_start() 168 out_8(®s->canmisc, MSCAN_BOHOLD); in mscan_restart() 170 out_8(®s->canrier, MSCAN_RX_INTS_ENABLE); in mscan_restart() 191 out_8(®s->cantier, 0); in mscan_start_xmit() 219 out_8(®s->cantbsel, i); in mscan_start_xmit() [all …]
|
/linux/drivers/net/ethernet/apple/ |
H A D | mace.c | 325 out_8(&mb->biucc, SWRST); in mace_reset() 337 out_8(&mb->imr, 0xff); /* disable all intrs for now */ in mace_reset() 339 out_8(&mb->maccc, 0); /* turn off tx, rx */ in mace_reset() 341 out_8(&mb->biucc, XMTSP_64); in mace_reset() 342 out_8(&mb->utr, RTRD); in mace_reset() 343 out_8(&mb->fifocc, RCVFW_32 | XMTFW_16 | XMTFWU | RCVFWU | XMTBRST); in mace_reset() 344 out_8(&mb->xmtfc, AUTO_PAD_XMIT); /* auto-pad short frames */ in mace_reset() 345 out_8(&mb->rcvfc, 0); in mace_reset() 352 out_8(&mb->iac, LOGADDR); in mace_reset() 354 out_8(&mb->iac, ADDRCHG | LOGADDR); in mace_reset() [all …]
|
/linux/arch/powerpc/platforms/52xx/ |
H A D | mpc52xx_pm.c | 44 out_8(&gpiow->wkup_gpioe, in_8(&gpiow->wkup_gpioe) | (1 << pin)); in mpc52xx_set_wakeup_gpio() 46 out_8(&gpiow->wkup_ddr, in_8(&gpiow->wkup_ddr) & ~(1 << pin)); in mpc52xx_set_wakeup_gpio() 48 out_8(&gpiow->wkup_inten, in_8(&gpiow->wkup_inten) | (1 << pin)); in mpc52xx_set_wakeup_gpio() 55 out_8(&gpiow->wkup_maste, 1); in mpc52xx_set_wakeup_gpio() 140 out_8(&cdm->ccs_sleep_enable, 1); in mpc52xx_pm_enter() 141 out_8(&cdm->osc_sleep_enable, 1); in mpc52xx_pm_enter() 142 out_8(&cdm->ccs_qreq_test, 1); in mpc52xx_pm_enter() 174 out_8(&cdm->ccs_sleep_enable, 0); in mpc52xx_pm_enter() 175 out_8(&cdm->osc_sleep_enable, 0); in mpc52xx_pm_enter()
|
H A D | lite5200_pm.c | 138 out_8(&cdm->ipb_clk_sel, scdm.ipb_clk_sel); in lite5200_restore_regs() 139 out_8(&cdm->pci_clk_sel, scdm.pci_clk_sel); in lite5200_restore_regs() 141 out_8(&cdm->ext_48mhz_en, scdm.ext_48mhz_en); in lite5200_restore_regs() 142 out_8(&cdm->fd_enable, scdm.fd_enable); in lite5200_restore_regs() 147 out_8(&cdm->osc_disable, scdm.osc_disable); in lite5200_restore_regs() 161 out_8(&bes->IntVect1, sbes.IntVect1); in lite5200_restore_regs() 162 out_8(&bes->IntVect2, sbes.IntVect2); in lite5200_restore_regs() 166 out_8(&bes->ipr[i], sbes.ipr[i]); in lite5200_restore_regs()
|
/linux/arch/powerpc/platforms/512x/ |
H A D | mpc5121_ads_cpld.c | 66 out_8(pic_mask, in cpld_mask_irq() 76 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()
|
/linux/sound/soc/fsl/ |
H A D | mpc5200_dma.c | 46 out_8(®s->command, MPC52xx_PSC_RST_ERR_STAT); in psc_dma_status_irq() 152 out_8(®s->command, MPC52xx_PSC_RST_ERR_STAT); in psc_dma_trigger() 259 out_8(&psc_dma->psc_regs->command, 4 << 4); /* reset error */ in psc_dma_close() 377 out_8(&psc_dma->psc_regs->command, MPC52xx_PSC_RST_RX); in mpc5200_audio_dma_create() 379 out_8(&psc_dma->psc_regs->command, MPC52xx_PSC_RST_TX); in mpc5200_audio_dma_create() 381 out_8(&psc_dma->psc_regs->command, MPC52xx_PSC_RST_ERR_STAT); in mpc5200_audio_dma_create() 383 out_8(&psc_dma->psc_regs->command, MPC52xx_PSC_SEL_MODE_REG_1); in mpc5200_audio_dma_create() 389 out_8(&psc_dma->psc_regs->mode, 0); in mpc5200_audio_dma_create() 390 out_8(&psc_dma->psc_regs->mode, 0); in mpc5200_audio_dma_create() 394 out_8(&psc_dma->fifo_regs->rfcntl, 0x4); in mpc5200_audio_dma_create() [all …]
|
/linux/arch/m68k/hp300/ |
H A D | time.c | 105 out_8(CLOCKBASE + CLKCR2, 0x1); /* select CR1 */ in hp300_sched_init() 106 out_8(CLOCKBASE + CLKCR1, 0x1); /* reset */ in hp300_sched_init() 113 out_8(CLOCKBASE + CLKCR2, 0x1); /* select CR1 */ in hp300_sched_init() 114 out_8(CLOCKBASE + CLKCR1, 0x40); /* enable irq */ in hp300_sched_init()
|
/linux/drivers/spi/ |
H A D | spi-mpc512x-psc.c | 180 out_8(&fifo->txdata_8, data); in mpc512x_psc_spi_transfer_rxtx() 335 out_8(psc_addr(mps, mr2), 0x0); in mpc512x_psc_spi_prep_xfer_hw() 338 out_8(psc_addr(mps, command), MPC52xx_PSC_TX_ENABLE | MPC52xx_PSC_RX_ENABLE); in mpc512x_psc_spi_prep_xfer_hw() 351 out_8(psc_addr(mps, command), MPC52xx_PSC_TX_DISABLE | MPC52xx_PSC_RX_DISABLE); in mpc512x_psc_spi_unprep_xfer_hw() 393 out_8(psc_addr(mps, command), MPC52xx_PSC_RST_RX); in mpc512x_psc_spi_port_config() 394 out_8(psc_addr(mps, command), MPC52xx_PSC_RST_TX); in mpc512x_psc_spi_port_config() 395 out_8(psc_addr(mps, command), MPC52xx_PSC_TX_DISABLE | MPC52xx_PSC_RX_DISABLE); in mpc512x_psc_spi_port_config() 424 out_8(psc_addr(mps, ctur), 0x00); in mpc512x_psc_spi_port_config() 425 out_8(psc_addr(mps, ctlr), 0x82); in mpc512x_psc_spi_port_config()
|
H A D | spi-ppc4xx.c | 155 out_8(&hw->regs->txd, data); in spi_ppc4xx_txrx() 156 out_8(&hw->regs->cr, SPI_PPC4XX_CR_STR); in spi_ppc4xx_txrx() 188 out_8(&hw->regs->mode, cs->mode); in spi_ppc4xx_setupxfer() 199 out_8(&hw->regs->cdm, cdm); in spi_ppc4xx_setupxfer() 306 out_8(&hw->regs->txd, data); in spi_ppc4xx_int() 307 out_8(&hw->regs->cr, SPI_PPC4XX_CR_STR); in spi_ppc4xx_int()
|
/linux/drivers/tty/serial/ |
H A D | mpc52xx_uart.c | 129 out_8(&psc->ctur, divisor >> 8); in mpc52xx_set_divisor() 130 out_8(&psc->ctlr, divisor & 0xff); in mpc52xx_set_divisor() 145 out_8(&PSC(port)->command, cmd); in mpc52xx_psc_command() 150 out_8(&PSC(port)->command, MPC52xx_PSC_SEL_MODE_REG_1); in mpc52xx_psc_set_mode() 151 out_8(&PSC(port)->mode, mr1); in mpc52xx_psc_set_mode() 152 out_8(&PSC(port)->mode, mr2); in mpc52xx_psc_set_mode() 158 out_8(&PSC(port)->op1, MPC52xx_PSC_OP_RTS); in mpc52xx_psc_set_rts() 160 out_8(&PSC(port)->op0, MPC52xx_PSC_OP_RTS); in mpc52xx_psc_set_rts() 170 out_8(&psc->mpc52xx_psc_acr, MPC52xx_PSC_IEC_CTS | MPC52xx_PSC_IEC_DCD); in mpc52xx_psc_enable_ms() 188 out_8(&PSC(port)->command, MPC52xx_PSC_SEL_MODE_REG_1); in mpc52xx_psc_get_mr1() [all …]
|
/linux/arch/powerpc/platforms/85xx/ |
H A D | p1022_ds.c | 314 out_8(lbc_lcs0_ba, PX_BRDCFG0); /* BRDCFG0 */ in p1022ds_set_monitor_port() 317 out_8(lbc_lcs1_ba, b); in p1022ds_set_monitor_port() 329 out_8(lbc_lcs0_ba, PX_BRDCFG1); in p1022ds_set_monitor_port() 333 out_8(lbc_lcs1_ba, b); in p1022ds_set_monitor_port() 341 out_8(lbc_lcs0_ba, PX_BRDCFG1); in p1022ds_set_monitor_port() 345 out_8(lbc_lcs1_ba, b); in p1022ds_set_monitor_port()
|
/linux/drivers/tty/serial/8250/ |
H A D | 8250_hp300.c | 140 out_8(pa + DIO_VIRADDRBASE + DCA_IC, DCA_IC_IE); in hp300_setup_serial_console() 190 out_8(d->resource.start + DIO_VIRADDRBASE + DCA_IC, DCA_IC_IE); in hpdca_init_one() 194 out_8(d->resource.start + DIO_VIRADDRBASE + DCA_ID, 0xff); in hpdca_init_one() 295 out_8(d->resource.start + DIO_VIRADDRBASE + DCA_IC, 0); in hpdca_remove_one()
|