Home
last modified time | relevance | path

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

12345678

/linux-6.1.9/drivers/staging/vt6655/ !
Dmac.c45 iowrite8(reg_value | bit_mask, iobase + reg_offset); in vt6655_mac_reg_bits_on()
61 iowrite8(reg_value & ~(bit_mask), iobase + reg_offset); in vt6655_mac_reg_bits_off()
78 iowrite8(reg_value, iobase + MAC_REG_STICKHW); in vt6655_mac_clear_stck_ds()
123 iowrite8(retry_limit, io_base + MAC_REG_SRT); in vt6655_mac_set_short_retry_limit()
145 iowrite8(byRetryLimit, io_base + MAC_REG_LRT); in MACvSetLongRetryLimit()
168 iowrite8((ioread8(io_base + MAC_REG_TEST) & 0x3f) | loopback_mode, io_base + MAC_REG_TEST); in vt6655_mac_set_loopback_mode()
233 iowrite8(*(cxt_buf + MAC_REG_CFG), io_base + MAC_REG_CFG); in vt6655_mac_restore_context()
271 iowrite8(0x01, io_base + MAC_REG_HOSTCR); in MACbSoftwareReset()
504 iowrite8(PME_OVR, io_base + MAC_REG_PMC1); in MACvInitialize()
511 iowrite8(TFTCTL_TSFCNTRST, io_base + MAC_REG_TFTCTL); in MACvInitialize()
[all …]
Dsrom.c70 iowrite8(byOrg & (~I2MCFG_NORETRY), iobase + MAC_REG_I2MCFG); in SROMbyReadEmbedded()
72 iowrite8(EEP_I2C_DEV_ID, iobase + MAC_REG_I2MTGID); in SROMbyReadEmbedded()
73 iowrite8(byContntOffset, iobase + MAC_REG_I2MTGAD); in SROMbyReadEmbedded()
76 iowrite8(I2MCSR_EEMR, iobase + MAC_REG_I2MCSR); in SROMbyReadEmbedded()
90 iowrite8(byOrg, iobase + MAC_REG_I2MCFG); in SROMbyReadEmbedded()
/linux-6.1.9/drivers/gpio/ !
Dgpio-ws16c48.c91 iowrite8(ws16c48gpio->out_state[port], ws16c48gpio->reg->port + port); in ws16c48_gpio_direction_input()
113 iowrite8(ws16c48gpio->out_state[port], ws16c48gpio->reg->port + port); in ws16c48_gpio_direction_output()
186 iowrite8(ws16c48gpio->out_state[port], ws16c48gpio->reg->port + port); in ws16c48_gpio_set()
215 iowrite8(ws16c48gpio->out_state[index], port_addr); in ws16c48_gpio_set_multiple()
240 iowrite8(0x80, &ws16c48gpio->reg->page_lock); in ws16c48_irq_ack()
243 iowrite8(port_state & ~mask, ws16c48gpio->reg->pol_enab_int_id + port); in ws16c48_irq_ack()
244 iowrite8(port_state | mask, ws16c48gpio->reg->pol_enab_int_id + port); in ws16c48_irq_ack()
247 iowrite8(0xC0, &ws16c48gpio->reg->page_lock); in ws16c48_irq_ack()
273 iowrite8(0x80, &ws16c48gpio->reg->page_lock); in ws16c48_irq_mask()
276 iowrite8(port_state, ws16c48gpio->reg->pol_enab_int_id + port); in ws16c48_irq_mask()
[all …]
Dgpio-104-idio-16.c144 iowrite8(idio16gpio->out_state >> 8, &idio16gpio->reg->out8_15); in idio_16_gpio_set()
146 iowrite8(idio16gpio->out_state, &idio16gpio->reg->out0_7); in idio_16_gpio_set()
163 iowrite8(idio16gpio->out_state, &idio16gpio->reg->out0_7); in idio_16_gpio_set_multiple()
165 iowrite8(idio16gpio->out_state >> 8, &idio16gpio->reg->out8_15); in idio_16_gpio_set_multiple()
187 iowrite8(0, &idio16gpio->reg->irq_ctl); in idio_16_irq_mask()
244 iowrite8(0, &idio16gpio->reg->in0_7); in idio_16_irq_handler()
264 iowrite8(0, &idio16gpio->reg->irq_ctl); in idio_16_irq_init_hw()
265 iowrite8(0, &idio16gpio->reg->in0_7); in idio_16_irq_init_hw()
Dgpio-pci-idio-16.c150 iowrite8(out_state, base); in idio_16_gpio_set()
180 iowrite8(out_state, port_addr); in idio_16_gpio_set_multiple()
202 iowrite8(0, &idio16gpio->reg->irq_ctl); in idio_16_irq_mask()
268 iowrite8(0, &idio16gpio->reg->in0_7); in idio_16_irq_handler()
288 iowrite8(0, &idio16gpio->reg->irq_ctl); in idio_16_irq_init_hw()
289 iowrite8(0, &idio16gpio->reg->in0_7); in idio_16_irq_init_hw()
322 iowrite8(0, &idio16gpio->reg->filter_ctl); in idio_16_probe()
Dgpio-pcie-idio-24.c177 iowrite8(ctl_state, &idio24gpio->reg->ctl); in idio_24_gpio_direction_input()
199 iowrite8(ctl_state, &idio24gpio->reg->ctl); in idio_24_gpio_direction_output()
315 iowrite8(out_state, base); in idio_24_gpio_set()
360 iowrite8(out_state, ports[index]); in idio_24_gpio_set_multiple()
362 iowrite8(out_state, &idio24gpio->reg->ttl_out0_7); in idio_24_gpio_set_multiple()
395 iowrite8(cos_enable_state, &idio24gpio->reg->cos_enable); in idio_24_irq_mask()
424 iowrite8(cos_enable_state, &idio24gpio->reg->cos_enable); in idio_24_irq_unmask()
549 iowrite8(0, &idio24gpio->reg->soft_reset); in idio_24_probe()
554 iowrite8((INTCSR_INTERNAL_PCI_WIRE | INTCSR_LOCAL_INPUT) >> 8, in idio_24_probe()
/linux-6.1.9/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()
420 iowrite8(tf->feature, ioaddr->feature_addr); in via_tf_load()
421 iowrite8(tf->nsect, ioaddr->nsect_addr); in via_tf_load()
[all …]
Dpata_hpt3x2n.c276 iowrite8(0x80, bmdma+0x73); in hpt3x2n_set_clock()
277 iowrite8(0x80, bmdma+0x77); in hpt3x2n_set_clock()
280 iowrite8(source, bmdma+0x7B); in hpt3x2n_set_clock()
281 iowrite8(0xC0, bmdma+0x79); in hpt3x2n_set_clock()
284 iowrite8(ioread8(bmdma+0x70) | 0x32, bmdma+0x70); in hpt3x2n_set_clock()
285 iowrite8(ioread8(bmdma+0x74) | 0x32, bmdma+0x74); in hpt3x2n_set_clock()
288 iowrite8(0x00, bmdma+0x79); in hpt3x2n_set_clock()
291 iowrite8(0x00, bmdma+0x73); in hpt3x2n_set_clock()
292 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.c41 iowrite8(tf->command, ap->ioaddr.command_addr); in pdc202xx_exec_command()
190 iowrite8(ioread8(clock) | sel66, clock); in pdc2026x_bmdma_start()
192 iowrite8(ioread8(clock) & ~sel66, clock); in pdc2026x_bmdma_start()
240 iowrite8(ioread8(clock) & ~sel66, clock); in pdc2026x_bmdma_stop()
244 iowrite8(ioread8(clock) & ~sel66, clock); in pdc2026x_bmdma_stop()
269 iowrite8(burst | 0x01, bmdma + 0x1f); in pdc2026x_port_start()
Dpata_legacy.c403 iowrite8(recover << 4 | active, ap->ioaddr.device_addr); in ht6560a_set_piomode()
437 iowrite8(recover << 4 | active, ap->ioaddr.device_addr); in ht6560b_set_piomode()
497 iowrite8(3, ap->ioaddr.nsect_addr); in opti82c611a_set_piomode()
521 iowrite8(rc, ap->ioaddr.lbal_addr); in opti82c611a_set_piomode()
524 iowrite8(active << 4 | recover, ap->ioaddr.error_addr); in opti82c611a_set_piomode()
532 iowrite8(rc, ap->ioaddr.device_addr); in opti82c611a_set_piomode()
535 iowrite8(active << 4 | recover, ap->ioaddr.data_addr); in opti82c611a_set_piomode()
541 iowrite8(rc, ap->ioaddr.lbal_addr); in opti82c611a_set_piomode()
544 iowrite8(0x83, ap->ioaddr.nsect_addr); in opti82c611a_set_piomode()
576 iowrite8(3, ap->ioaddr.nsect_addr); in opti82c46x_set_piomode()
[all …]
/linux-6.1.9/drivers/i2c/busses/ !
Di2c-npcm7xx.c349 iowrite8(i2cctl3, bus->reg + NPCM_I2CCTL3); in npcm_i2c_select_bank()
371 iowrite8(data, bus->reg + NPCM_I2CSDA); in npcm_i2c_wr_byte()
417 iowrite8(0, bus->reg + npcm_i2caddr[i]); in npcm_i2c_disable()
423 iowrite8(i2cctl2, bus->reg + NPCM_I2CCTL2); in npcm_i2c_disable()
433 iowrite8(i2cctl2, bus->reg + NPCM_I2CCTL2); in npcm_i2c_enable()
445 iowrite8(val, bus->reg + NPCM_I2CCST3); in npcm_i2c_eob_int()
453 iowrite8(val, bus->reg + NPCM_I2CCTL1); in npcm_i2c_eob_int()
488 iowrite8(val, bus->reg + NPCM_I2CFIF_CTS); in npcm_i2c_clear_fifo_int()
497 iowrite8(val, bus->reg + NPCM_I2CTXF_STS); in npcm_i2c_clear_tx_fifo()
506 iowrite8(val, bus->reg + NPCM_I2CRXF_STS); in npcm_i2c_clear_rx_fifo()
[all …]
/linux-6.1.9/drivers/counter/ !
D104-quad-8.c175 iowrite8(QUAD8_CTR_RLD | QUAD8_RLD_RESET_BP | QUAD8_RLD_CNTR_OUT, in quad8_count_read()
201 iowrite8(QUAD8_CTR_RLD | QUAD8_RLD_RESET_BP, &chan->control); in quad8_count_write()
205 iowrite8(val >> (8 * i), &chan->data); in quad8_count_write()
208 iowrite8(QUAD8_CTR_RLD | QUAD8_RLD_PRESET_CNTR, &chan->control); in quad8_count_write()
211 iowrite8(QUAD8_CTR_RLD | QUAD8_RLD_RESET_BP, &chan->control); in quad8_count_write()
216 iowrite8(val >> (8 * i), &chan->data); in quad8_count_write()
219 iowrite8(QUAD8_CTR_RLD | QUAD8_RLD_RESET_FLAGS, &chan->control); in quad8_count_write()
221 iowrite8(QUAD8_CTR_RLD | QUAD8_RLD_RESET_E, &chan->control); in quad8_count_write()
305 iowrite8(QUAD8_CTR_IDR | idr_cfg, control); in quad8_function_write()
331 iowrite8(QUAD8_CTR_CMR | mode_cfg, control); in quad8_function_write()
[all …]
/linux-6.1.9/drivers/ipack/devices/ !
Dipoctal.c62 iowrite8(CR_DISABLE_RX | CR_DISABLE_TX, &channel->regs->w.cr); in ipoctal_reset_channel()
64 iowrite8(CR_CMD_RESET_RX, &channel->regs->w.cr); in ipoctal_reset_channel()
65 iowrite8(CR_CMD_RESET_TX, &channel->regs->w.cr); in ipoctal_reset_channel()
66 iowrite8(CR_CMD_RESET_ERR_STATUS, &channel->regs->w.cr); in ipoctal_reset_channel()
67 iowrite8(CR_CMD_RESET_MR, &channel->regs->w.cr); in ipoctal_reset_channel()
80 iowrite8(CR_ENABLE_RX, &channel->regs->w.cr); in ipoctal_port_activate()
170 iowrite8(CR_CMD_RESET_ERR_STATUS, &channel->regs->w.cr); in ipoctal_irq_rx()
213 iowrite8(value, &channel->regs->w.thr); in ipoctal_irq_tx()
231 iowrite8(CR_CMD_RESET_BREAK_CHANGE, &channel->regs->w.cr); in ipoctal_irq_channel()
234 iowrite8(CR_DISABLE_TX, &channel->regs->w.cr); in ipoctal_irq_channel()
[all …]
/linux-6.1.9/drivers/media/pci/cobalt/ !
Dcobalt-i2c.c118 iowrite8(data[i], &regs->txr_rxr); in cobalt_tx_bytes()
135 iowrite8(cmd, &regs->cr_sr); in cobalt_tx_bytes()
194 iowrite8(cmd, &regs->cr_sr); in cobalt_rx_bytes()
323 iowrite8(M00018_CTR_BITMAP_EN_MSK, &regs->cr_sr); in cobalt_i2c_init()
324 iowrite8(0, &regs->ctr); in cobalt_i2c_init()
325 iowrite8(0, &regs->cr_sr); in cobalt_i2c_init()
340 iowrite8(0, &regs->ctr); in cobalt_i2c_init()
341 iowrite8(0, &regs->cr_sr); in cobalt_i2c_init()
344 iowrite8(prescale & 0xff, &regs->prerlo); in cobalt_i2c_init()
345 iowrite8((prescale >> 8) & 0xff, &regs->prerhi); in cobalt_i2c_init()
[all …]
/linux-6.1.9/drivers/net/ethernet/via/ !
Dvia-rhine.c481 #define BYTE_REG_BITS_ON(x, p) do { iowrite8((ioread8((p))|(x)), (p)); } while (0)
489 #define BYTE_REG_BITS_OFF(x, p) do { iowrite8(ioread8((p)) & (~(x)), (p)); } while (0)
493 #define BYTE_REG_BITS_SET(x, m, p) do { iowrite8((ioread8((p)) & (~(m)))|(x), (p)); } while (0)
566 iowrite8(mask >> 16, ioaddr + IntrStatus2); in rhine_ack_events()
582 iowrite8(ioread8(ioaddr + StickyHW) & 0xFC, ioaddr + StickyHW); in rhine_power_init()
585 iowrite8(0x80, ioaddr + WOLcgClr); in rhine_power_init()
588 iowrite8(0xFF, ioaddr + WOLcrClr); in rhine_power_init()
591 iowrite8(0x03, ioaddr + WOLcrClr1); in rhine_power_init()
599 iowrite8(0xFF, ioaddr + PwrcsrClr); in rhine_power_init()
601 iowrite8(0x03, ioaddr + PwrcsrClr1); in rhine_power_init()
[all …]
/linux-6.1.9/arch/arm/mach-shmobile/ !
Dsetup-r8a7740.c58 iowrite8(0xff, intc_msk_base + 0x0); in r8a7740_init_irq_of()
59 iowrite8(0xff, intc_msk_base + 0x4); in r8a7740_init_irq_of()
60 iowrite8(0xff, intc_msk_base + 0x8); in r8a7740_init_irq_of()
61 iowrite8(0xff, intc_msk_base + 0xc); in r8a7740_init_irq_of()
/linux-6.1.9/drivers/iio/addac/ !
Dstx104.c118 iowrite8(chan->channel | (chan->channel << 4), &reg->achan); in stx104_read_raw()
123 iowrite8(0, &reg->ssr_ad); in stx104_read_raw()
159 iowrite8(0, &priv->reg->acfg); in stx104_write_raw()
162 iowrite8(1, &priv->reg->acfg); in stx104_write_raw()
165 iowrite8(2, &priv->reg->acfg); in stx104_write_raw()
168 iowrite8(3, &priv->reg->acfg); in stx104_write_raw()
281 iowrite8(stx104gpio->out_state, stx104gpio->base); in stx104_gpio_set()
308 iowrite8(stx104gpio->out_state, stx104gpio->base); in stx104_gpio_set_multiple()
355 iowrite8(0, &priv->reg->acr); in stx104_probe()
358 iowrite8(0, &priv->reg->acfg); in stx104_probe()
/linux-6.1.9/drivers/char/tpm/ !
Dtpm_tis_synquacer.c70 iowrite8(*value++, phy->iobase + addr); in tpm_tis_synquacer_write_bytes()
79 iowrite8(value[3], phy->iobase + addr + 3); in tpm_tis_synquacer_write_bytes()
80 iowrite8(value[2], phy->iobase + addr + 2); in tpm_tis_synquacer_write_bytes()
81 iowrite8(value[1], phy->iobase + addr + 1); in tpm_tis_synquacer_write_bytes()
82 iowrite8(value[0], phy->iobase + addr); in tpm_tis_synquacer_write_bytes()
/linux-6.1.9/drivers/hwmon/ !
Dnpcm750-pwm-fan.c290 iowrite8(reg_int | (NPCM7XX_FAN_TIEN_TAIEN | in npcm7xx_fan_start_capture()
299 iowrite8(reg_mode, NPCM7XX_FAN_REG_TCKC(data->fan_base, in npcm7xx_fan_start_capture()
303 iowrite8(reg_int | (NPCM7XX_FAN_TIEN_TBIEN | in npcm7xx_fan_start_capture()
313 iowrite8(reg_mode, in npcm7xx_fan_start_capture()
339 iowrite8(NPCM7XX_FAN_TICLR_CLEAR_ALL, in npcm7xx_fan_polling()
377 iowrite8(flag_clear, NPCM7XX_FAN_REG_TICLR(data->fan_base, fan)); in npcm7xx_fan_compute()
412 iowrite8((reg_int & ~flag_int), in npcm7xx_fan_compute()
417 iowrite8((reg_mode & ~flag_mode), in npcm7xx_fan_compute()
454 iowrite8((reg_int & ~flag_int), in npcm7xx_check_cmp()
458 iowrite8(flag_clear, in npcm7xx_check_cmp()
[all …]
/linux-6.1.9/drivers/net/ethernet/engleder/ !
Dtsnep_tc.c333 iowrite8(TSNEP_GC_DISABLE, adapter->addr + TSNEP_GC); in tsnep_taprio()
365 iowrite8(TSNEP_GC_ENABLE_TIMEOUT, adapter->addr + TSNEP_GC); in tsnep_taprio()
376 iowrite8(TSNEP_GC_ENABLE_A, adapter->addr + TSNEP_GC); in tsnep_taprio()
378 iowrite8(TSNEP_GC_ENABLE_B, adapter->addr + TSNEP_GC); in tsnep_taprio()
386 iowrite8(TSNEP_GC_ENABLE_A, adapter->addr + TSNEP_GC); in tsnep_taprio()
425 iowrite8(TSNEP_GC_DISABLE, adapter->addr + TSNEP_GC); in tsnep_tc_init()
440 iowrite8(TSNEP_GC_DISABLE, adapter->addr + TSNEP_GC); in tsnep_tc_cleanup()
/linux-6.1.9/drivers/gpu/drm/tiny/ !
Dcirrus.c84 iowrite8(reg, cirrus->mmio + SEQ_INDEX); in rreg_seq()
90 iowrite8(reg, cirrus->mmio + SEQ_INDEX); in wreg_seq()
91 iowrite8(val, cirrus->mmio + SEQ_DATA); in wreg_seq()
99 iowrite8(reg, cirrus->mmio + CRT_INDEX); in rreg_crt()
105 iowrite8(reg, cirrus->mmio + CRT_INDEX); in wreg_crt()
106 iowrite8(val, cirrus->mmio + CRT_DATA); in wreg_crt()
114 iowrite8(reg, cirrus->mmio + GFX_INDEX); in wreg_gfx()
115 iowrite8(val, cirrus->mmio + GFX_DATA); in wreg_gfx()
126 iowrite8(val, cirrus->mmio + VGA_DAC_MASK); in wreg_hdr()
/linux-6.1.9/drivers/net/can/softing/ !
Dsofting_fw.c26 iowrite8(vector >> 8, &card->dpram[DPRAM_FCT_HOST + 1]); in _softing_fct_cmd()
27 iowrite8(vector, &card->dpram[DPRAM_FCT_HOST]); in _softing_fct_cmd()
287 iowrite8(1, &card->dpram[DPRAM_COMMAND + 12]); in softing_load_app_fw()
304 iowrite8(1, &card->dpram[DPRAM_COMMAND + 6]); in softing_load_app_fw()
322 iowrite8(0, &card->dpram[DPRAM_RESET_RX_FIFO]); in softing_reset_chip()
323 iowrite8(0, &card->dpram[DPRAM_RESET_RX_FIFO+1]); in softing_reset_chip()
324 iowrite8(1, &card->dpram[DPRAM_RESET]); in softing_reset_chip()
325 iowrite8(0, &card->dpram[DPRAM_RESET+1]); in softing_reset_chip()
611 iowrite8(0, &card->dpram[DPRAM_INFO_BUSSTATE]); in softing_startstop()
612 iowrite8(0, &card->dpram[DPRAM_INFO_BUSSTATE2]); in softing_startstop()
[all …]

12345678