Home
last modified time | relevance | path

Searched refs:in_8 (Results 1 – 25 of 46) sorted by relevance

12

/drivers/macintosh/
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 …]
Dmacio-adb.c156 out_8(&adb->ctrl.r, in_8(&adb->ctrl.r) | ADB_RST); in macio_adb_reset_bus()
157 while ((in_8(&adb->ctrl.r) & ADB_RST) != 0) { in macio_adb_reset_bus()
159 out_8(&adb->ctrl.r, in_8(&adb->ctrl.r) & ~ADB_RST); in macio_adb_reset_bus()
192 out_8(&adb->ctrl.r, in_8(&adb->ctrl.r) | TAR); in macio_send_request()
215 if (in_8(&adb->intr.r) & TAG) { in macio_adb_interrupt()
230 out_8(&adb->ctrl.r, in_8(&adb->ctrl.r) | TAR); in macio_adb_interrupt()
236 if (in_8(&adb->intr.r) & DFB) { in macio_adb_interrupt()
238 err = in_8(&adb->error.r); in macio_adb_interrupt()
243 req->reply_len = in_8(&adb->dcount.r) & HMB; in macio_adb_interrupt()
245 req->reply[i] = in_8(&adb->data[i].r); in macio_adb_interrupt()
[all …]
Dvia-pmu.c586 out_8(&via2[B], in_8(&via2[B]) | TREQ); in init_pmu()
587 out_8(&via2[DIRB], (in_8(&via2[DIRB]) | TREQ) & ~TACK); in init_pmu()
1195 while ((in_8(&via2[B]) & TACK) == 0) { in wait_for_ack()
1209 out_8(&via1[ACR], in_8(&via1[ACR]) | SR_OUT | SR_EXT); in send_byte()
1211 out_8(&via2[B], in_8(&via2[B]) & ~TREQ); /* assert TREQ */ in send_byte()
1212 (void)in_8(&via2[B]); in send_byte()
1218 out_8(&via1[ACR], (in_8(&via1[ACR]) & ~SR_OUT) | SR_EXT); in recv_byte()
1219 in_8(&via1[SR]); /* resets SR */ in recv_byte()
1220 out_8(&via2[B], in_8(&via2[B]) & ~TREQ); in recv_byte()
1221 (void)in_8(&via2[B]); in recv_byte()
[all …]
/drivers/i2c/busses/
Di2c-ibm_iic.c89 in_8(&iic->cntl), in_8(&iic->mdcntl), in_8(&iic->sts), in dump_iic_regs()
90 in_8(&iic->extsts), in_8(&iic->clkdiv), in_8(&iic->xfrcnt), in dump_iic_regs()
91 in_8(&iic->xtcntlss), in_8(&iic->directcntl)); in dump_iic_regs()
190 dc = in_8(&iic->directcntl); in iic_dev_reset()
199 dc = in_8(&iic->directcntl); in iic_dev_reset()
230 while ((in_8(&iic->directcntl) & mask) != mask){ in iic_dc_wait()
291 res = (in_8(&iic->directcntl) & DIRCNTL_MSDA) ? -EREMOTEIO : 1; in iic_smbus_quick()
329 dev->idx, in_8(&iic->sts), in_8(&iic->extsts)); in iic_handler()
346 if (unlikely(in_8(&iic->sts) & STS_ERR)){ in iic_xfer_result()
348 in_8(&iic->extsts)); in iic_xfer_result()
[all …]
/drivers/video/fbdev/
Dhpfb.c129 while (in_8(fb_regs + BUSY) & fb_bitmask) in topcat_blit()
157 while (in_8(fb_regs + BUSY) & fb_bitmask) in hpfb_fillrect()
177 while (in_8(fb_regs + BUSY) & fb_bitmask) in hpfb_sync()
216 fboff = (in_8(fb_regs + HPFB_FBOMSB) << 8) | in_8(fb_regs + HPFB_FBOLSB); in hpfb_init_one()
218 fb_info.fix.smem_start = (in_8(fb_regs + fboff) << 16); in hpfb_init_one()
241 fb_width = (in_8(fb_regs + HPFB_FBWMSB) << 8) | in_8(fb_regs + HPFB_FBWLSB); in hpfb_init_one()
243 fb_height = (in_8(fb_regs + HPFB_FBHMSB) << 8) | in_8(fb_regs + HPFB_FBHLSB); in hpfb_init_one()
247 hpfb_defined.xres = (in_8(fb_regs + HPFB_DWMSB) << 8) | in_8(fb_regs + HPFB_DWLSB); in hpfb_init_one()
248 hpfb_defined.yres = (in_8(fb_regs + HPFB_DHMSB) << 8) | in_8(fb_regs + HPFB_DHLSB); in hpfb_init_one()
251 hpfb_defined.bits_per_pixel = in_8(fb_regs + HPFB_NUMPLANES); in hpfb_init_one()
[all …]
Dvalkyriefb.c412 sense = ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x70) << 4; in read_valkyrie_sense()
416 sense |= ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x30); in read_valkyrie_sense()
419 sense |= ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x40) >> 3; in read_valkyrie_sense()
423 sense |= ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x60) >> 5; in read_valkyrie_sense()
Dcontrolfb.c62 #undef in_8
66 #define in_8(addr) 0 macro
305 bank2 = (in_8(&p->frame_buffer[0x600000]) == 0xb3) in find_vram_size()
306 && (in_8(&p->frame_buffer[0x600001]) == 0x71); in find_vram_size()
319 bank1 = (in_8(&p->frame_buffer[0]) == 0x5a) in find_vram_size()
320 && (in_8(&p->frame_buffer[1]) == 0xc7); in find_vram_size()
/drivers/rtc/
Drtc-mpc5121.c153 tm->tm_sec = in_8(&regs->second); in mpc5200_rtc_read_time()
154 tm->tm_min = in_8(&regs->minute); in mpc5200_rtc_read_time()
157 if (in_8(&regs->hour) & 0x20) in mpc5200_rtc_read_time()
158 tm->tm_hour = (in_8(&regs->hour) >> 1) + in mpc5200_rtc_read_time()
159 (in_8(&regs->hour) & 1 ? 12 : 0); in mpc5200_rtc_read_time()
161 tm->tm_hour = in_8(&regs->hour); in mpc5200_rtc_read_time()
163 tmp = in_8(&regs->wday_mday); in mpc5200_rtc_read_time()
165 tm->tm_mon = in_8(&regs->month) - 1; in mpc5200_rtc_read_time()
203 alarm->pending = in_8(&regs->alm_status); in mpc5121_rtc_read_alarm()
245 if (in_8(&regs->int_alm)) { in mpc5121_rtc_handler()
[all …]
/drivers/net/can/mscan/
Dmscan.c66 canctl1 = in_8(&regs->canctl1); in mscan_set_mode()
70 if (in_8(&regs->canctl1) & MSCAN_SLPAK) in mscan_set_mode()
96 if (in_8(&regs->canctl1) & MSCAN_INITAK) in mscan_set_mode()
109 canctl1 = in_8(&regs->canctl1); in mscan_set_mode()
113 canctl1 = in_8(&regs->canctl1); in mscan_set_mode()
144 if (in_8(&regs->canmisc) & MSCAN_BOHOLD) in mscan_start()
152 canrflg = in_8(&regs->canrflg); in mscan_start()
172 WARN(!(in_8(&regs->canmisc) & MSCAN_BOHOLD), in mscan_restart()
315 frame->len = can_cc_dlc2len(in_8(&regs->rx.dlr) & 0xf); in mscan_get_rx_frame()
327 frame->data[frame->len - 1] = in_8(data); in mscan_get_rx_frame()
[all …]
/drivers/scsi/
Dmesh.c318 while(in_8(&mr->fifo_count)) in mesh_dump_regs()
319 printk(KERN_DEBUG " fifo data=%.2x\n",in_8(&mr->fifo)); in mesh_dump_regs()
341 (void)in_8(&mr->mesh_id); in mesh_flush_io()
452 if (in_8(&mr->bus_status1) & (BS1_BSY | BS1_SEL)) { in mesh_start_cmd()
461 if ((in_8(&mr->bus_status1) & (BS1_BSY | BS1_SEL)) == 0) in mesh_start_cmd()
463 if (in_8(&mr->interrupt) != 0) { in mesh_start_cmd()
473 if (in_8(&mr->bus_status1) & (BS1_BSY | BS1_SEL)) { in mesh_start_cmd()
501 if (in_8(&mr->interrupt) != 0) { in mesh_start_cmd()
516 if (in_8(&mr->interrupt) != 0) in mesh_start_cmd()
522 if (in_8(&mr->interrupt) == 0 && (in_8(&mr->bus_status1) & BS1_SEL) in mesh_start_cmd()
[all …]
/drivers/usb/host/
Dfhci-dbg.c49 in_8(&regs->usb_usmod), in_8(&regs->usb_usadr), in fhci_dfs_regs_show()
50 in_8(&regs->usb_uscom), in_be16(&regs->usb_usep[0]), in fhci_dfs_regs_show()
52 in_8(&regs->usb_usbs), in_be16(&regs->usb_ussft), in fhci_dfs_regs_show()
Dfhci-hub.c157 mode = in_8(&fhci->regs->usb_usmod); in fhci_port_reset()
170 mode = in_8(&fhci->regs->usb_usmod); in fhci_port_reset()
/drivers/net/ethernet/apple/
Dmace.c172 mp->chipid = (in_8(&mp->mace->chipid_hi) << 8) | in mace_probe()
173 in_8(&mp->mace->chipid_lo); in mace_probe()
327 if (in_8(&mb->biucc) & SWRST) { in mace_reset()
339 i = in_8(&mb->ir); in mace_reset()
356 while ((in_8(&mb->iac) & ADDRCHG) != 0) in mace_reset()
384 while ((in_8(&mb->iac) & ADDRCHG) != 0) in __mace_set_address()
623 while ((in_8(&mb->iac) & ADDRCHG) != 0) in mace_set_multicast()
643 dev->stats.rx_missed_errors += in_8(&mb->mpc); /* reading clears it */ in mace_handle_misc_intrs()
646 dev->stats.rx_length_errors += in_8(&mb->rntpc); /* reading clears it */ in mace_handle_misc_intrs()
670 intr = in_8(&mb->ir); /* read interrupt register */ in mace_interrupt()
[all …]
/drivers/net/ethernet/amd/
Dhplance.c147 dev->dev_addr[i] = ((in_8(va + HPLANCE_NVRAMOFF + i*4 + 1) & 0xF) << 4) in hplance_init()
148 | (in_8(va + HPLANCE_NVRAMOFF + i*4 + 3) & 0xF); in hplance_init()
176 } while ((in_8(lp->base + HPLANCE_STATUS) & LE_ACK) == 0); in hplance_writerap()
185 } while ((in_8(lp->base + HPLANCE_STATUS) & LE_ACK) == 0); in hplance_writerdp()
195 } while ((in_8(lp->base + HPLANCE_STATUS) & LE_ACK) == 0); in hplance_readrdp()
D7990.c70 } while ((in_8(lp->base + HPLANCE_STATUS) & LE_ACK) == 0); in WRITERAP()
77 } while ((in_8(lp->base + HPLANCE_STATUS) & LE_ACK) == 0); in WRITERDP()
85 } while ((in_8(lp->base + HPLANCE_STATUS) & LE_ACK) == 0); in READRDP()
/drivers/spi/
Dspi-ppc4xx.c198 if (in_8(&hw->regs->cdm) != cdm) in spi_ppc4xx_setupxfer()
263 status = in_8(&hw->regs->sr); in spi_ppc4xx_int()
280 lstatus = in_8(&hw->regs->sr); in spi_ppc4xx_int()
289 status = in_8(&hw->regs->sr); in spi_ppc4xx_int()
298 data = in_8(&hw->regs->rxd); in spi_ppc4xx_int()
Dspi-mpc52xx.c324 status = in_8(ms->regs + SPI_STATUS); in mpc52xx_spi_fsm_process()
325 data = in_8(ms->regs + SPI_DATA); in mpc52xx_spi_fsm_process()
407 in_8(regs + SPI_STATUS); in mpc52xx_spi_probe()
410 in_8(regs + SPI_DATA); in mpc52xx_spi_probe()
411 if (in_8(regs + SPI_STATUS) & SPI_STATUS_MODF) { in mpc52xx_spi_probe()
Dspi-mpc512x-psc.c219 data = in_8(&fifo->rxdata_8); in mpc512x_psc_spi_transfer_rxtx()
282 in_8(&fifo->rxdata_8); in mpc512x_psc_spi_transfer_rxtx()
340 in_8(psc_addr(mps, mr2)); in mpc512x_psc_spi_prep_xfer_hw()
/drivers/gpio/
Dgpio-mpc5200.c50 ret = (in_8(&regs->wkup_ival) >> (7 - gpio)) & 1; in mpc52xx_wkup_gpio_get()
161 chip->shadow_gpioe = in_8(&regs->wkup_gpioe); in mpc52xx_wkup_gpiochip_probe()
162 chip->shadow_ddr = in_8(&regs->wkup_ddr); in mpc52xx_wkup_gpiochip_probe()
163 chip->shadow_dvo = in_8(&regs->wkup_dvo); in mpc52xx_wkup_gpiochip_probe()
/drivers/block/
Dswim3.c303 stat = in_8(&sw->status); in swim3_readbit()
377 in_8(&sw->intr); /* clear SEEN_SECTOR bit */ in scan_track()
378 in_8(&sw->error); in scan_track()
398 in_8(&sw->error); in seek_track()
475 in_8(&sw->error); in setup_transfer()
479 in_8(&sw->intr); in setup_transfer()
669 intr = in_8(&sw->intr); in swim3_interrupt()
670 err = (intr & ERROR_INTR)? in_8(&sw->error): 0; in swim3_interrupt()
1097 in_8(&sw->intr); in swim3_mb_event()
1098 in_8(&sw->error); in swim3_mb_event()
/drivers/ata/
Dpata_mpc52xx.c513 if (in_8(&priv->ata_regs->fifo_status) & MPC52xx_ATA_FIFOSTAT_ERROR) in mpc52xx_bmdma_setup()
515 __func__, in_8(&priv->ata_regs->fifo_status)); in mpc52xx_bmdma_setup()
576 if (in_8(&priv->ata_regs->fifo_status) & MPC52xx_ATA_FIFOSTAT_ERROR) in mpc52xx_bmdma_stop()
578 __func__, in_8(&priv->ata_regs->fifo_status)); in mpc52xx_bmdma_stop()
587 if (in_8(&priv->ata_regs->fifo_status) & MPC52xx_ATA_FIFOSTAT_ERROR) { in mpc52xx_bmdma_status()
589 __func__, in_8(&priv->ata_regs->fifo_status)); in mpc52xx_bmdma_status()
/drivers/net/ethernet/8390/
Dhydra.c34 #define ei_inb(port) in_8(port)
36 #define ei_inb_p(port) in_8(port)
Dzorro8390.c39 #define ei_inb(port) in_8(port)
41 #define ei_inb_p(port) in_8(port)
/drivers/tty/serial/
Dmpc52xx_uart.c138 return in_8(&PSC(port)->mpc52xx_psc_ipcr); in mpc52xx_psc_get_ipcr()
166 in_8(&psc->mpc52xx_psc_ipcr); in mpc52xx_psc_enable_ms()
187 return in_8(&PSC(port)->mode); in mpc52xx_psc_get_mr1()
273 return in_8(&PSC(port)->mpc52xx_psc_buffer_8); in mpc52xx_psc_read_char()
513 return in_8(&FIFO_512x(port)->rxdata_8); in mpc512x_psc_read_char()
854 return in_8(&FIFO_5125(port)->rxdata_8); in mpc5125_psc_read_char()
915 return in_8(&PSC_5125(port)->mpc52xx_psc_ipcr); in mpc5125_psc_get_ipcr()
942 in_8(&psc->mpc52xx_psc_ipcr); in mpc5125_psc_enable_ms()
962 return in_8(&PSC_5125(port)->mr1); in mpc5125_psc_get_mr1()
/drivers/mmc/host/
Dsdhci-pltfm.h48 return in_8(host->ioaddr + (reg ^ 0x3)); in sdhci_be32bs_readb()

12