Home
last modified time | relevance | path

Searched refs:iowrite8 (Results 1 – 25 of 117) sorted by relevance

12345

/linux-3.4.99/drivers/ata/
Dpata_ninja32.c64 iowrite8(pio_timing[adev->pio_mode - XFER_PIO_0], in ninja32_set_piomode()
74 iowrite8(0xd6, ap->ioaddr.bmdma_addr + 0x1f); in ninja32_dev_select()
94 iowrite8(0x05, base + 0x01); /* Enable interrupt lines */ in ninja32_program()
95 iowrite8(0xBE, base + 0x02); /* Burst, ?? setup */ in ninja32_program()
96 iowrite8(0x01, base + 0x03); /* Unknown */ in ninja32_program()
97 iowrite8(0x20, base + 0x04); /* WAIT0 */ in ninja32_program()
98 iowrite8(0x8f, base + 0x05); /* Unknown */ in ninja32_program()
99 iowrite8(0xa4, base + 0x1c); /* Unknown */ in ninja32_program()
100 iowrite8(0x83, base + 0x1d); /* BMDMA control: WAIT0 */ in ninja32_program()
Dpata_optidma.c84 iowrite8(3, regio + 2); in optidma_unlock()
99 iowrite8(0x83, regio + 2); in optidma_lock()
166 iowrite8(adev->devno, regio + MISC_REG); in optidma_mode_setup()
169 iowrite8(data_rec_timing[pci_clock][pio], regio + READ_REG); in optidma_mode_setup()
170 iowrite8(data_rec_timing[pci_clock][pio], regio + WRITE_REG); in optidma_mode_setup()
172 iowrite8(dma_data_rec_timing[pci_clock][dma], regio + READ_REG); in optidma_mode_setup()
173 iowrite8(dma_data_rec_timing[pci_clock][dma], regio + WRITE_REG); in optidma_mode_setup()
176 iowrite8(addr | adev->devno, regio + MISC_REG); in optidma_mode_setup()
179 iowrite8(0x85, regio + CNTRL_REG); in optidma_mode_setup()
Dpata_via.c398 iowrite8(tf->ctl, ioaddr->ctl_addr); in via_tf_load()
405 iowrite8(tf->device, ioaddr->device_addr); in via_tf_load()
408 iowrite8(vp->cached_device, ioaddr->device_addr); in via_tf_load()
412 iowrite8(tf->hob_feature, ioaddr->feature_addr); in via_tf_load()
413 iowrite8(tf->hob_nsect, ioaddr->nsect_addr); in via_tf_load()
414 iowrite8(tf->hob_lbal, ioaddr->lbal_addr); in via_tf_load()
415 iowrite8(tf->hob_lbam, ioaddr->lbam_addr); in via_tf_load()
416 iowrite8(tf->hob_lbah, ioaddr->lbah_addr); in via_tf_load()
426 iowrite8(tf->feature, ioaddr->feature_addr); in via_tf_load()
427 iowrite8(tf->nsect, ioaddr->nsect_addr); in via_tf_load()
[all …]
Dpata_hpt3x2n.c281 iowrite8(0x80, bmdma+0x73); in hpt3x2n_set_clock()
282 iowrite8(0x80, bmdma+0x77); in hpt3x2n_set_clock()
285 iowrite8(source, bmdma+0x7B); in hpt3x2n_set_clock()
286 iowrite8(0xC0, bmdma+0x79); in hpt3x2n_set_clock()
289 iowrite8(ioread8(bmdma+0x70) | 0x32, bmdma+0x70); in hpt3x2n_set_clock()
290 iowrite8(ioread8(bmdma+0x74) | 0x32, bmdma+0x74); in hpt3x2n_set_clock()
293 iowrite8(0x00, bmdma+0x79); in hpt3x2n_set_clock()
296 iowrite8(0x00, bmdma+0x73); in hpt3x2n_set_clock()
297 iowrite8(0x00, bmdma+0x77); in hpt3x2n_set_clock()
Dpata_opti.c88 iowrite8(3, regio + 2); in opti_write_reg()
91 iowrite8(val, regio + reg); in opti_write_reg()
94 iowrite8(0x83, regio + 2); in opti_write_reg()
125 iowrite8(0xff, regio + 5); in opti_set_piomode()
Dpata_pdc202xx_old.c43 iowrite8(tf->command, ap->ioaddr.command_addr); in pdc202xx_exec_command()
192 iowrite8(ioread8(clock) | sel66, clock); in pdc2026x_bmdma_start()
194 iowrite8(ioread8(clock) & ~sel66, clock); in pdc2026x_bmdma_start()
242 iowrite8(ioread8(clock) & ~sel66, clock); in pdc2026x_bmdma_stop()
246 iowrite8(ioread8(clock) & ~sel66, clock); in pdc2026x_bmdma_stop()
271 iowrite8(burst | 0x01, bmdma + 0x1f); in pdc2026x_port_start()
Dpata_legacy.c377 iowrite8(recover << 4 | active, ap->ioaddr.device_addr); in ht6560a_set_piomode()
411 iowrite8(recover << 4 | active, ap->ioaddr.device_addr); in ht6560b_set_piomode()
471 iowrite8(3, ap->ioaddr.nsect_addr); in opti82c611a_set_piomode()
495 iowrite8(rc, ap->ioaddr.lbal_addr); in opti82c611a_set_piomode()
498 iowrite8(active << 4 | recover, ap->ioaddr.error_addr); in opti82c611a_set_piomode()
506 iowrite8(rc, ap->ioaddr.device_addr); in opti82c611a_set_piomode()
509 iowrite8(active << 4 | recover, ap->ioaddr.data_addr); in opti82c611a_set_piomode()
515 iowrite8(rc, ap->ioaddr.lbal_addr); in opti82c611a_set_piomode()
518 iowrite8(0x83, ap->ioaddr.nsect_addr); in opti82c611a_set_piomode()
550 iowrite8(3, ap->ioaddr.nsect_addr); in opti82c46x_set_piomode()
[all …]
Dlibata-sff.c301 iowrite8(ctl, ap->ioaddr.ctl_addr); in ata_sff_set_devctl()
327 iowrite8(tmp, ap->ioaddr.device_addr); in ata_sff_dev_select()
420 iowrite8(tf->ctl, ioaddr->ctl_addr); in ata_sff_tf_load()
427 iowrite8(tf->hob_feature, ioaddr->feature_addr); in ata_sff_tf_load()
428 iowrite8(tf->hob_nsect, ioaddr->nsect_addr); in ata_sff_tf_load()
429 iowrite8(tf->hob_lbal, ioaddr->lbal_addr); in ata_sff_tf_load()
430 iowrite8(tf->hob_lbam, ioaddr->lbam_addr); in ata_sff_tf_load()
431 iowrite8(tf->hob_lbah, ioaddr->lbah_addr); in ata_sff_tf_load()
441 iowrite8(tf->feature, ioaddr->feature_addr); in ata_sff_tf_load()
442 iowrite8(tf->nsect, ioaddr->nsect_addr); in ata_sff_tf_load()
[all …]
Dpata_atp867x.c150 iowrite8(b, dp->dma_mode); in atp867x_set_dmamode()
238 iowrite8(b, dp->dma_mode); in atp867x_set_piomode()
244 iowrite8(b, dp->slave_piospd); in atp867x_set_piomode()
246 iowrite8(b, dp->mstr_piospd); in atp867x_set_piomode()
251 iowrite8(b, dp->eightb_piospd); in atp867x_set_piomode()
406 iowrite8(v, ATP867X_IOBASE(ap) + 0x28); in atp867x_fixup()
415 iowrite8(v, ATP867X_SYS_INFO(ap)); in atp867x_fixup()
Dpata_ns87415.c139 iowrite8(dmactl, ap->ioaddr.bmdma_addr + ATA_DMA_CMD); in ns87415_bmdma_setup()
188 iowrite8((ioread8(mmio + ATA_DMA_CMD) | ATA_DMA_INTR | ATA_DMA_ERR), in ns87415_irq_clear()
277 iowrite8(tf->ctl | ATA_HOB, ioaddr->ctl_addr); in ns87560_tf_read()
283 iowrite8(tf->ctl, ioaddr->ctl_addr); in ns87560_tf_read()
Dpata_at32.c249 iowrite8(d1, info->alt_addr + (0x06 << 1)); in pata_at32_debug_bus()
250 iowrite8(d2, info->alt_addr + (0x06 << 1)); in pata_at32_debug_bus()
253 iowrite8(d1, info->ide_addr + (i << 1)); in pata_at32_debug_bus()
254 iowrite8(d2, info->ide_addr + (i << 1)); in pata_at32_debug_bus()
/linux-3.4.99/drivers/net/ethernet/via/
Dvia-rhine.c469 #define BYTE_REG_BITS_ON(x, p) do { iowrite8((ioread8((p))|(x)), (p)); } while (0)
477 #define BYTE_REG_BITS_OFF(x, p) do { iowrite8(ioread8((p)) & (~(x)), (p)); } while (0)
481 #define BYTE_REG_BITS_SET(x, m, p) do { iowrite8((ioread8((p)) & (~(m)))|(x), (p)); } while (0)
551 iowrite8(mask >> 16, ioaddr + IntrStatus2); in rhine_ack_events()
568 iowrite8(ioread8(ioaddr + StickyHW) & 0xFC, ioaddr + StickyHW); in rhine_power_init()
571 iowrite8(0x80, ioaddr + WOLcgClr); in rhine_power_init()
574 iowrite8(0xFF, ioaddr + WOLcrClr); in rhine_power_init()
577 iowrite8(0x03, ioaddr + WOLcrClr1); in rhine_power_init()
585 iowrite8(0xFF, ioaddr + PwrcsrClr); in rhine_power_init()
587 iowrite8(0x03, ioaddr + PwrcsrClr1); in rhine_power_init()
[all …]
/linux-3.4.99/drivers/net/can/softing/
Dsofting_fw.c38 iowrite8(vector >> 8, &card->dpram[DPRAM_FCT_HOST + 1]); in _softing_fct_cmd()
39 iowrite8(vector, &card->dpram[DPRAM_FCT_HOST]); in _softing_fct_cmd()
298 iowrite8(1, &card->dpram[DPRAM_COMMAND + 12]); in softing_load_app_fw()
315 iowrite8(1, &card->dpram[DPRAM_COMMAND + 6]); in softing_load_app_fw()
333 iowrite8(0, &card->dpram[DPRAM_RESET_RX_FIFO]); in softing_reset_chip()
334 iowrite8(0, &card->dpram[DPRAM_RESET_RX_FIFO+1]); in softing_reset_chip()
335 iowrite8(1, &card->dpram[DPRAM_RESET]); in softing_reset_chip()
336 iowrite8(0, &card->dpram[DPRAM_RESET+1]); in softing_reset_chip()
621 iowrite8(0, &card->dpram[DPRAM_INFO_BUSSTATE]); in softing_startstop()
622 iowrite8(0, &card->dpram[DPRAM_INFO_BUSSTATE2]); in softing_startstop()
[all …]
/linux-3.4.99/arch/powerpc/sysdev/
Dpmi.c246 iowrite8(msg.data0, data->pmi_reg + PMI_WRITE_DATA0); in pmi_send_message()
247 iowrite8(msg.data1, data->pmi_reg + PMI_WRITE_DATA1); in pmi_send_message()
248 iowrite8(msg.data2, data->pmi_reg + PMI_WRITE_DATA2); in pmi_send_message()
249 iowrite8(msg.type, data->pmi_reg + PMI_WRITE_TYPE); in pmi_send_message()
/linux-3.4.99/drivers/tty/serial/
Dtimbuart.c87 iowrite8(ctl, port->membase + TIMBUART_CTRL); in timbuart_flush_buffer()
116 iowrite8(xmit->buf[xmit->tail], in timbuart_tx_chars()
172 iowrite8(ctl, port->membase + TIMBUART_CTRL); in timbuart_handle_rx_port()
227 iowrite8(TIMBUART_CTRL_RTS, port->membase + TIMBUART_CTRL); in timbuart_set_mctrl()
229 iowrite8(0, port->membase + TIMBUART_CTRL); in timbuart_set_mctrl()
264 iowrite8(TIMBUART_CTRL_FLSHRX, port->membase + TIMBUART_CTRL); in timbuart_startup()
317 iowrite8((u8)bindex, port->membase + TIMBUART_BAUDRATE); in timbuart_set_termios()
Dpch_uart.c348 iowrite8(PCH_UART_LCR_DLAB, priv->membase + UART_LCR); in port_show_regs()
353 iowrite8(lcr, priv->membase + UART_LCR); in port_show_regs()
405 iowrite8(ier, priv->membase + UART_IER); in pch_uart_hal_enable_interrupt()
413 iowrite8(ier, priv->membase + UART_IER); in pch_uart_hal_disable_interrupt()
453 iowrite8(PCH_UART_LCR_DLAB, priv->membase + UART_LCR); in pch_uart_hal_set_line()
454 iowrite8(dll, priv->membase + PCH_UART_DLL); in pch_uart_hal_set_line()
455 iowrite8(dlm, priv->membase + PCH_UART_DLM); in pch_uart_hal_set_line()
456 iowrite8(lcr, priv->membase + UART_LCR); in pch_uart_hal_set_line()
470 iowrite8(PCH_UART_FCR_FIFOE | priv->fcr, priv->membase + UART_FCR); in pch_uart_hal_fifo_reset()
471 iowrite8(PCH_UART_FCR_FIFOE | priv->fcr | flag, in pch_uart_hal_fifo_reset()
[all …]
/linux-3.4.99/sound/isa/galaxy/
Dgalaxy.c104 iowrite8(1, port + DSP_PORT_RESET); in dsp_reset()
106 iowrite8(0, port + DSP_PORT_RESET); in dsp_reset()
123 iowrite8(cmd, port + DSP_PORT_COMMAND); in dsp_command()
174 iowrite8(wss_config, wss_port + WSS_PORT_CONFIG); in wss_set_config()
443 iowrite8(tmp | 0x80, galaxy->config_port + CONFIG_PORT_SET); in galaxy_set_config()
445 iowrite8(config, galaxy->config_port + i); in galaxy_set_config()
448 iowrite8(tmp & 0x7f, galaxy->config_port + CONFIG_PORT_SET); in galaxy_set_config()
/linux-3.4.99/drivers/net/can/sja1000/
Dsja1000_platform.c46 iowrite8(val, priv->reg_base + reg); in sp_write_reg8()
56 iowrite8(val, priv->reg_base + reg * 2); in sp_write_reg16()
66 iowrite8(val, priv->reg_base + reg * 4); in sp_write_reg32()
/linux-3.4.99/drivers/mfd/
Dtc6393xb.c316 iowrite8(fer, tc6393xb->scr + SCR_FER); in tc6393xb_lcd_set_power()
665 iowrite8(0, tc6393xb->scr + SCR_FER); in tc6393xb_probe()
673 iowrite8(0, tc6393xb->scr + SCR_IRR); in tc6393xb_probe()
674 iowrite8(0xbf, tc6393xb->scr + SCR_IMR); in tc6393xb_probe()
806 iowrite8(tc6393xb->suspend_state.fer, tc6393xb->scr + SCR_FER); in tc6393xb_resume()
813 iowrite8(0, tc6393xb->scr + SCR_IRR); in tc6393xb_resume()
814 iowrite8(0xbf, tc6393xb->scr + SCR_IMR); in tc6393xb_resume()
817 iowrite8(tc6393xb->suspend_state.gpo_dsr[i], in tc6393xb_resume()
819 iowrite8(tc6393xb->suspend_state.gpo_doecr[i], in tc6393xb_resume()
821 iowrite8(tc6393xb->suspend_state.gpi_bcr[i], in tc6393xb_resume()
/linux-3.4.99/drivers/char/tpm/
Dtpm_tis.c116 iowrite8(TPM_ACCESS_ACTIVE_LOCALITY, in release_locality()
128 iowrite8(TPM_ACCESS_REQUEST_USE, in request_locality()
169 iowrite8(TPM_STS_COMMAND_READY, in tpm_tis_ready()
289 iowrite8(buf[count], chip->vendor.iobase + in tpm_tis_send_data()
304 iowrite8(buf[count], in tpm_tis_send_data()
337 iowrite8(TPM_STS_GO, in tpm_tis_send()
622 iowrite8(i, chip->vendor.iobase + in tpm_tis_init()
669 iowrite8(chip->vendor.irq, in tpm_tis_init()
714 iowrite8(chip->vendor.irq, chip->vendor.iobase + in tpm_tis_reenable_interrupts()
/linux-3.4.99/arch/alpha/kernel/
Dio.c37 void iowrite8(u8 b, void __iomem *addr) in iowrite8() function
39 IO_CONCAT(__IO_PREFIX,iowrite8)(b, addr); in iowrite8()
58 EXPORT_SYMBOL(iowrite8);
79 iowrite8(b, ioport_map(port, 1)); in outb()
332 iowrite8(*src++, port); in iowrite8_rep()
/linux-3.4.99/arch/powerpc/kernel/
Diomap.c43 void iowrite8(u8 val, void __iomem *addr) in iowrite8() function
63 EXPORT_SYMBOL(iowrite8);
/linux-3.4.99/arch/sh/kernel/
Diomap.c44 void iowrite8(u8 val, void __iomem *addr) in iowrite8() function
48 EXPORT_SYMBOL(iowrite8);
/linux-3.4.99/drivers/net/can/
Djanz-ican3.c269 iowrite8(page, &mod->dpmctrl->window_address); in ican3_set_page()
317 iowrite8(locl, mod->dpm + MSYNC_LOCL); in ican3_old_recv_msg()
357 iowrite8(locl, mod->dpm + MSYNC_LOCL); in ican3_old_send_msg()
1216 iowrite8(1 << mod->num, &mod->ctrl->int_enable); in ican3_napi()
1237 iowrite8(1 << mod->num, &mod->ctrl->int_disable); in ican3_irq()
1257 iowrite8(1 << mod->num, &mod->ctrl->int_disable); in ican3_reset_module()
1266 iowrite8(0x00, &mod->dpmctrl->hwreset); in ican3_reset_module()
1303 iowrite8(1 << mod->num, &mod->ctrl->int_enable); in ican3_startup_module()
1451 iowrite8(0x01, &mod->dpmctrl->interrupt); in ican3_xmit()
1733 iowrite8(1 << mod->num, &mod->ctrl->int_disable); in ican3_probe()
[all …]
/linux-3.4.99/drivers/i2c/busses/
Di2c-pca-platform.c64 iowrite8(val, i2c->reg_base + reg); in i2c_pca_pf_writebyte8()
70 iowrite8(val, i2c->reg_base + reg * 2); in i2c_pca_pf_writebyte16()
76 iowrite8(val, i2c->reg_base + reg * 4); in i2c_pca_pf_writebyte32()

12345