/kernel/linux/linux-5.10/drivers/watchdog/ |
D | coh901327_wdt.c | 92 writew(U300_WDOG_RR_RESTART_VALUE_RESUME, in coh901327_enable() 95 writew(U300_WDOG_IER_WILL_BARK_IRQ_ACK_ENABLE, in coh901327_enable() 106 writew(U300_WDOG_IMR_WILL_BARK_IRQ_ENABLE, virtbase + U300_WDOG_IMR); in coh901327_enable() 108 writew(timeout, virtbase + U300_WDOG_TR); in coh901327_enable() 110 writew(U300_WDOG_FR_FEED_RESTART_TIMER, virtbase + U300_WDOG_FR); in coh901327_enable() 127 writew(0x0000U, virtbase + U300_WDOG_IMR); in coh901327_disable() 131 writew(U300_WDOG_D1R_DISABLE1_DISABLE_TIMER, in coh901327_disable() 133 writew(U300_WDOG_D2R_DISABLE2_DISABLE_TIMER, in coh901327_disable() 136 writew(U300_WDOG_D2R_DISABLE2_DISABLE_TIMER, in coh901327_disable() 161 writew(U300_WDOG_FR_FEED_RESTART_TIMER, in coh901327_ping() [all …]
|
D | rza_wdt.c | 79 writew(WTCSR_MAGIC | 0, priv->base + WTCSR); in rza_wdt_start() 83 writew(WRCSR_CLEAR_WOVF, priv->base + WRCSR); in rza_wdt_start() 87 writew(WRCSR_MAGIC | WRCSR_RSTE, priv->base + WRCSR); in rza_wdt_start() 88 writew(WTCNT_MAGIC | priv->count, priv->base + WTCNT); in rza_wdt_start() 89 writew(WTCSR_MAGIC | WTSCR_WT | WTSCR_TME | in rza_wdt_start() 99 writew(WTCSR_MAGIC | 0, priv->base + WTCSR); in rza_wdt_stop() 108 writew(WTCNT_MAGIC | priv->count, priv->base + WTCNT); in rza_wdt_ping() 128 writew(WTCSR_MAGIC | 0, priv->base + WTCSR); in rza_wdt_restart() 132 writew(WRCSR_CLEAR_WOVF, priv->base + WRCSR); in rza_wdt_restart() 138 writew(WRCSR_MAGIC | WRCSR_RSTE, priv->base + WRCSR); in rza_wdt_restart() [all …]
|
D | sc520_wdt.c | 141 writew(0xAAAA, wdtmrctl); in wdt_timer_ping() 142 writew(0x5555, wdtmrctl); in wdt_timer_ping() 162 writew(0xAAAA, wdtmrctl); in wdt_config() 163 writew(0x5555, wdtmrctl); in wdt_config() 165 writew(0x3333, wdtmrctl); in wdt_config() 166 writew(0xCCCC, wdtmrctl); in wdt_config() 168 writew(writeval, wdtmrctl); in wdt_config()
|
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
D | i2c-wmt.c | 143 writew(0, i2c_dev->base + REG_CDR); in wmt_i2c_write() 145 writew(pmsg->buf[0] & 0xFF, i2c_dev->base + REG_CDR); in wmt_i2c_write() 151 writew(val, i2c_dev->base + REG_CR); in wmt_i2c_write() 155 writew(val, i2c_dev->base + REG_CR); in wmt_i2c_write() 167 writew(tcr_val, i2c_dev->base + REG_TCR); in wmt_i2c_write() 172 writew(val, i2c_dev->base + REG_CR); in wmt_i2c_write() 196 writew(val, i2c_dev->base + REG_CR); in wmt_i2c_write() 202 writew(CR_ENABLE, i2c_dev->base + REG_CR); in wmt_i2c_write() 204 writew(pmsg->buf[xfer_len] & 0xFF, i2c_dev->base + in wmt_i2c_write() 206 writew(CR_CPU_RDY | CR_ENABLE, i2c_dev->base + REG_CR); in wmt_i2c_write() [all …]
|
/kernel/linux/linux-5.10/sound/isa/msnd/ |
D | msnd.c | 46 writew(PCTODSP_BASED(start), base + JQS_wStart); in snd_msnd_init_queue() 47 writew(PCTODSP_OFFSET(size) - 1, base + JQS_wSize); in snd_msnd_init_queue() 48 writew(0, base + JQS_wHead); in snd_msnd_init_queue() 49 writew(0, base + JQS_wTail); in snd_msnd_init_queue() 266 writew(PCTODSP_BASED(offset), pDAQ); in snd_msnd_DARQ() 269 writew(wTmp, chip->DARQ + JQS_wTail); in snd_msnd_DARQ() 318 writew(chip->play_period_bytes, DAQD + DAQDS_wSize); in snd_msnd_DAPQ() 327 writew(PCTODSP_BASED(offset), DAQD + DAQDS_wStart); in snd_msnd_DAPQ() 339 writew(DAPQ_tail, chip->DAPQ + JQS_wTail); in snd_msnd_DAPQ() 365 writew(PCTODSP_OFFSET(0 * DAQDS__size), chip->DAPQ + JQS_wHead); in snd_msnd_play_reset_queue() [all …]
|
/kernel/linux/linux-5.10/arch/arm/mach-spear/ |
D | time.c | 78 writew(CTRL_PRESCALER256, gpt_base + CR(CLKSRC)); in spear_clocksource_init() 84 writew(0xFFFF, gpt_base + LOAD(CLKSRC)); in spear_clocksource_init() 89 writew(val, gpt_base + CR(CLKSRC)); in spear_clocksource_init() 102 writew(val, gpt_base + CR(CLKEVT)); in timer_shutdown() 121 writew(val, gpt_base + CR(CLKEVT)); in spear_set_oneshot() 136 writew(period, gpt_base + LOAD(CLKEVT)); in spear_set_periodic() 141 writew(val, gpt_base + CR(CLKEVT)); in spear_set_periodic() 163 writew(val & ~CTRL_ENABLE, gpt_base + CR(CLKEVT)); in clockevent_next_event() 165 writew(cycles, gpt_base + LOAD(CLKEVT)); in clockevent_next_event() 168 writew(val, gpt_base + CR(CLKEVT)); in clockevent_next_event() [all …]
|
/kernel/linux/linux-5.10/arch/m68k/coldfire/ |
D | nettel.c | 109 writew(1, NETTEL_SMC0_ADDR + SMC91xx_BANKSELECT); in nettel_smc91x_setmac() 110 writew(macp[0], ioaddr + SMC91xx_BASEMAC); in nettel_smc91x_setmac() 111 writew(macp[1], ioaddr + SMC91xx_BASEMAC + 2); in nettel_smc91x_setmac() 112 writew(macp[2], ioaddr + SMC91xx_BASEMAC + 4); in nettel_smc91x_setmac() 125 writew(0x00ec, MCFSIM_PADDR); in nettel_smc91x_init() 127 writew(1, NETTEL_SMC0_ADDR + SMC91xx_BANKSELECT); in nettel_smc91x_init() 128 writew(0x0067, NETTEL_SMC0_ADDR + SMC91xx_BASEADDR); in nettel_smc91x_init() 132 writew(0x1180, MCFSIM_CSCR3); in nettel_smc91x_init()
|
D | m527x.c | 72 writew(par, MCFGPIO_PAR_TIMER); in m527x_qspi_init() 75 writew(0x003e, MCFGPIO_PAR_QSPI); in m527x_qspi_init() 100 writew(par, MCFGPIO_PAR_FECI2C); in m527x_i2c_init() 116 writew(sepmask, MCFGPIO_PAR_UART); in m527x_uarts_init() 133 writew(par | 0xf00, MCFGPIO_PAR_FECI2C); in m527x_fec_init() 139 writew(par | 0xa0, MCFGPIO_PAR_FECI2C); in m527x_fec_init()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/ |
D | altr_tse_pcs.c | 69 writew(val, base + TSE_PCS_CONTROL_REG); in tse_pcs_reset() 91 writew(TSE_PCS_IF_USE_SGMII, base + TSE_PCS_IF_MODE_REG); in tse_pcs_init() 93 writew(TSE_PCS_CTRL_AUTONEG_SGMII, base + TSE_PCS_CONTROL_REG); in tse_pcs_init() 95 writew(TSE_PCS_SGMII_LINK_TIMER_0, base + TSE_PCS_LINK_TIMER_0_REG); in tse_pcs_init() 96 writew(TSE_PCS_SGMII_LINK_TIMER_1, base + TSE_PCS_LINK_TIMER_1_REG); in tse_pcs_init() 100 writew(SGMII_ADAPTER_ENABLE, in tse_pcs_init() 117 writew(SGMII_ADAPTER_ENABLE, in pcs_link_timer_callback() 174 writew(SGMII_ADAPTER_ENABLE, in auto_nego_timer_callback() 179 writew(val, tse_pcs_base + TSE_PCS_CONTROL_REG); in auto_nego_timer_callback() 208 writew(val, tse_pcs_base + TSE_PCS_CONTROL_REG); in tse_pcs_fix_mac_speed() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ |
D | dt3000.c | 232 writew(cmd, dev->mmio + DPR_CMD_MBX); in dt3k_send_cmd() 251 writew(subsys, dev->mmio + DPR_SUBSYS); in dt3k_readsingle() 253 writew(chan, dev->mmio + DPR_PARAMS(0)); in dt3k_readsingle() 254 writew(gain, dev->mmio + DPR_PARAMS(1)); in dt3k_readsingle() 264 writew(subsys, dev->mmio + DPR_SUBSYS); in dt3k_writesingle() 266 writew(chan, dev->mmio + DPR_PARAMS(0)); in dt3k_writesingle() 267 writew(0, dev->mmio + DPR_PARAMS(1)); in dt3k_writesingle() 268 writew(data, dev->mmio + DPR_PARAMS(2)); in dt3k_writesingle() 299 writew(rear, dev->mmio + DPR_AD_BUF_REAR); in dt3k_ai_empty_fifo() 305 writew(DPR_SUBSYS_AI, dev->mmio + DPR_SUBSYS); in dt3k_ai_cancel() [all …]
|
D | icp_multi.c | 121 writew(adc_csr, dev->mmio + ICP_MULTI_ADC_CSR); in icp_multi_ai_insn_read() 125 writew(adc_csr | ICP_MULTI_ADC_CSR_ST, in icp_multi_ai_insn_read() 167 writew(dac_csr, dev->mmio + ICP_MULTI_DAC_CSR); in icp_multi_ao_insn_write() 178 writew(val, dev->mmio + ICP_MULTI_AO); in icp_multi_ao_insn_write() 181 writew(dac_csr | ICP_MULTI_DAC_CSR_ST, in icp_multi_ao_insn_write() 206 writew(s->state, dev->mmio + ICP_MULTI_DO); in icp_multi_do_insn_bits() 218 writew(0, dev->mmio + ICP_MULTI_INT_EN); in icp_multi_reset() 219 writew(ICP_MULTI_INT_MASK, dev->mmio + ICP_MULTI_INT_STAT); in icp_multi_reset() 226 writew(dac_csr, dev->mmio + ICP_MULTI_DAC_CSR); in icp_multi_reset() 229 writew(0, dev->mmio + ICP_MULTI_AO); in icp_multi_reset() [all …]
|
D | me_daq.c | 177 writew(devpriv->ctrl2, dev->mmio + ME_CTRL2_REG); in me_dio_insn_config() 195 writew((s->state & 0xffff), mmio_porta); in me_dio_insn_bits() 197 writew(((s->state >> 16) & 0xffff), mmio_portb); in me_dio_insn_bits() 252 writew(devpriv->ctrl2, dev->mmio + ME_CTRL2_REG); in me_ai_insn_read() 254 writew(0x00, dev->mmio + ME_STATUS_REG); /* clear interrupts */ in me_ai_insn_read() 258 writew(devpriv->ctrl2, dev->mmio + ME_CTRL2_REG); in me_ai_insn_read() 266 writew(val, dev->mmio + ME_AI_FIFO_REG); in me_ai_insn_read() 270 writew(devpriv->ctrl1, dev->mmio + ME_CTRL1_REG); in me_ai_insn_read() 290 writew(devpriv->ctrl1, dev->mmio + ME_CTRL1_REG); in me_ai_insn_read() 308 writew(devpriv->ctrl2, dev->mmio + ME_CTRL2_REG); in me_ao_insn_write() [all …]
|
D | daqboard2000.c | 262 writew(entry & 0x00ff, dev->mmio + DB2K_REG_ACQ_SCAN_LIST_FIFO); in db2k_write_acq_scan_list_entry() 263 writew((entry >> 8) & 0x00ff, in db2k_write_acq_scan_list_entry() 326 writew(DB2K_ACQ_CONTROL_RESET_SCAN_LIST_FIFO | in db2k_ai_insn_read() 337 writew(0, dev->mmio + DB2K_REG_ACQ_PACER_CLOCK_DIV_HIGH); in db2k_ai_insn_read() 351 writew(DB2K_ACQ_CONTROL_SEQ_START_SCAN_LIST, in db2k_ai_insn_read() 359 writew(DB2K_ACQ_CONTROL_ADC_PACER_ENABLE, in db2k_ai_insn_read() 374 writew(DB2K_ACQ_CONTROL_ADC_PACER_DISABLE, in db2k_ai_insn_read() 376 writew(DB2K_ACQ_CONTROL_SEQ_STOP_SCAN_LIST, in db2k_ai_insn_read() 406 writew(val, dev->mmio + DB2K_REG_DAC_SETTING(chan)); in db2k_ao_insn_write() 507 writew(data, dev->mmio + DB2K_REG_CPLD_WDATA); in db2k_write_cpld() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/arm/ |
D | cumana_1.c | 64 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in cumanascsi_pwrite() 65 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in cumanascsi_pwrite() 66 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in cumanascsi_pwrite() 67 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in cumanascsi_pwrite() 68 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in cumanascsi_pwrite() 69 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in cumanascsi_pwrite() 70 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in cumanascsi_pwrite() 71 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in cumanascsi_pwrite()
|
/kernel/linux/linux-5.10/drivers/input/keyboard/ |
D | imx_keypad.c | 95 writew(reg_val, keypad->mmio_base + KPDR); in imx_keypad_scan_matrix() 99 writew(reg_val, keypad->mmio_base + KPCR); in imx_keypad_scan_matrix() 105 writew(reg_val, keypad->mmio_base + KPCR); in imx_keypad_scan_matrix() 114 writew(reg_val, keypad->mmio_base + KPDR); in imx_keypad_scan_matrix() 136 writew(reg_val, keypad->mmio_base + KPDR); in imx_keypad_scan_matrix() 260 writew(reg_val, keypad->mmio_base + KPSR); in imx_keypad_check_for_events() 265 writew(reg_val, keypad->mmio_base + KPSR); in imx_keypad_check_for_events() 278 writew(reg_val, keypad->mmio_base + KPSR); in imx_keypad_check_for_events() 283 writew(reg_val, keypad->mmio_base + KPSR); in imx_keypad_check_for_events() 298 writew(reg_val, keypad->mmio_base + KPSR); in imx_keypad_irq_handler() [all …]
|
/kernel/linux/linux-5.10/drivers/tty/ |
D | moxa.c | 249 writew(arg, ofsAddr + FuncArg); in moxafunc() 250 writew(cmd, ofsAddr + FuncCode); in moxafunc() 260 writew(arg, ofsAddr + FuncArg); in moxafuncret() 261 writew(cmd, ofsAddr + FuncCode); in moxafuncret() 512 writew(len - 7168 - 2, baseAddr + C320bapi_len); in moxa_load_320b() 568 writew(len2, baseAddr + loadlen); in moxa_real_load_code() 569 writew(0, baseAddr + key); in moxa_real_load_code() 578 writew(0, baseAddr + loadlen); in moxa_real_load_code() 579 writew(usum, baseAddr + checksum); in moxa_real_load_code() 580 writew(0, baseAddr + key); in moxa_real_load_code() [all …]
|
D | nozomi.c | 461 writew(__cpu_to_le16(*buf16), ptr); in write_mem32() 478 writew(__cpu_to_le16(*buf16), ptr); in write_mem32() 658 writew(dc->last_ier, dc->reg_ier); in nozomi_read_config_table() 687 writew(MDM_UL | DIAG_DL | MDM_DL, dc->reg_fcr); in nozomi_read_config_table() 702 writew(dc->last_ier, dc->reg_ier); in enable_transmit_ul() 716 writew(dc->last_ier, dc->reg_ier); in disable_transmit_ul() 729 writew(dc->last_ier, dc->reg_ier); in enable_transmit_dl() 743 writew(dc->last_ier, dc->reg_ier); in disable_transmit_dl() 1034 writew(mask1, dc->reg_fcr); in handle_data_dl() 1040 writew(mask2, dc->reg_fcr); in handle_data_dl() [all …]
|
/kernel/linux/linux-5.10/drivers/media/pci/netup_unidvb/ |
D | netup_unidvb_i2c.c | 73 writew(reg & ~TWI_IRQEN, &i2c->regs->twi_ctrl0_stat); in netup_i2c_interrupt() 96 writew(tmp & ~FIFO_IRQEN, &i2c->regs->rx_fifo.stat_ctrl); in netup_i2c_interrupt() 104 writew(tmp & ~FIFO_IRQEN, &i2c->regs->tx_fifo.stat_ctrl); in netup_i2c_interrupt() 123 writew(TWI_SOFT_RESET, &i2c->regs->twi_addr_ctrl1); in netup_i2c_reset() 124 writew(TWI_CLKDIV, &i2c->regs->clkdiv); in netup_i2c_reset() 125 writew(FIFO_RESET, &i2c->regs->tx_fifo.stat_ctrl); in netup_i2c_reset() 126 writew(FIFO_RESET, &i2c->regs->rx_fifo.stat_ctrl); in netup_i2c_reset() 127 writew(0x800, &i2c->regs->tx_fifo.stat_ctrl); in netup_i2c_reset() 128 writew(0x800, &i2c->regs->rx_fifo.stat_ctrl); in netup_i2c_reset() 148 writew(readw(&i2c->regs->tx_fifo.stat_ctrl) | FIFO_IRQEN, in netup_i2c_fifo_tx() [all …]
|
D | netup_unidvb_spi.c | 85 writew(reg | NETUP_SPI_CTRL_IRQ, &spi->regs->control_stat); in netup_spi_interrupt() 87 writew(reg & ~NETUP_SPI_CTRL_IMASK, &spi->regs->control_stat); in netup_spi_interrupt() 105 writew(NETUP_SPI_CTRL_LAST_CS, &spi->regs->control_stat); in netup_spi_transfer() 106 writew(0, &spi->regs->control_stat); in netup_spi_transfer() 129 writew((frag_size & 0x3ff) | in netup_spi_transfer() 195 writew(2, &nspi->regs->clock_divider); in netup_spi_init() 196 writew(NETUP_UNIDVB_IRQ_SPI, ndev->bmmio0 + REG_IMASK_SET); in netup_spi_init() 233 writew(reg | NETUP_SPI_CTRL_IRQ, &spi->regs->control_stat); in netup_spi_release() 235 writew(reg & ~NETUP_SPI_CTRL_IMASK, &spi->regs->control_stat); in netup_spi_release()
|
/kernel/linux/linux-5.10/drivers/pwm/ |
D | pwm-ep93xx.c | 97 writew(period_cycles, base + EP93XX_PWMx_TERM_COUNT); in ep93xx_pwm_config() 98 writew(duty_cycles, base + EP93XX_PWMx_DUTY_CYCLE); in ep93xx_pwm_config() 100 writew(duty_cycles, base + EP93XX_PWMx_DUTY_CYCLE); in ep93xx_pwm_config() 101 writew(period_cycles, base + EP93XX_PWMx_TERM_COUNT); in ep93xx_pwm_config() 128 writew(0x1, ep93xx_pwm->base + EP93XX_PWMx_INVERT); in ep93xx_pwm_polarity() 130 writew(0x0, ep93xx_pwm->base + EP93XX_PWMx_INVERT); in ep93xx_pwm_polarity() 146 writew(0x1, ep93xx_pwm->base + EP93XX_PWMx_ENABLE); in ep93xx_pwm_enable() 155 writew(0x0, ep93xx_pwm->base + EP93XX_PWMx_ENABLE); in ep93xx_pwm_disable()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv50/ |
D | headc57d.c | 138 writew(r + ri * i, mem + 0); in headc57d_olut_load_8() 139 writew(g + gi * i, mem + 2); in headc57d_olut_load_8() 140 writew(b + bi * i, mem + 4); in headc57d_olut_load_8() 147 writew(readw(mem - 8), mem + 0); in headc57d_olut_load_8() 148 writew(readw(mem - 6), mem + 2); in headc57d_olut_load_8() 149 writew(readw(mem - 4), mem + 4); in headc57d_olut_load_8() 159 writew(drm_color_lut_extract(in-> red, 16), mem + 0); in headc57d_olut_load() 160 writew(drm_color_lut_extract(in->green, 16), mem + 2); in headc57d_olut_load() 161 writew(drm_color_lut_extract(in-> blue, 16), mem + 4); in headc57d_olut_load() 167 writew(readw(mem - 8), mem + 0); in headc57d_olut_load() [all …]
|
/kernel/linux/linux-5.10/drivers/tty/serial/ |
D | milbeaut_usio.c | 67 writew(readw(port->membase + MLB_USIO_REG_FCR) & ~MLB_USIO_FCR_FTIE, in mlb_usio_stop_tx() 78 writew(readw(port->membase + MLB_USIO_REG_FCR) & ~MLB_USIO_FCR_FTIE, in mlb_usio_tx_chars() 85 writew(port->x_char, port->membase + MLB_USIO_REG_DR); in mlb_usio_tx_chars() 99 writew(xmit->buf[xmit->tail], port->membase + MLB_USIO_REG_DR); in mlb_usio_tx_chars() 108 writew(readw(port->membase + MLB_USIO_REG_FCR) & ~MLB_USIO_FCR_FDRQ, in mlb_usio_tx_chars() 125 writew(fcr | MLB_USIO_FCR_FTIE, port->membase + MLB_USIO_REG_FCR); in mlb_usio_start_tx() 200 writew(readw(port->membase + MLB_USIO_REG_FCR) | in mlb_usio_rx_chars() 277 writew(0, port->membase + MLB_USIO_REG_FCR); in mlb_usio_startup() 278 writew(MLB_USIO_FCR_FCL1 | MLB_USIO_FCR_FCL2, in mlb_usio_startup() 280 writew(MLB_USIO_FCR_FE1 | MLB_USIO_FCR_FE2 | MLB_USIO_FCR_FRIIE, in mlb_usio_startup() [all …]
|
/kernel/linux/linux-5.10/drivers/spi/ |
D | spi-omap-100k.c | 88 writew(val, spi100k->base + SPI_SETUP1); in spi100k_enable_clock() 99 writew(val, spi100k->base + SPI_SETUP1); in spi100k_disable_clock() 113 writew(data , spi100k->base + SPI_TX_MSB); in spi100k_write_data() 115 writew(SPI_CTRL_SEN(0) | in spi100k_write_data() 138 writew(SPI_CTRL_SEN(0) | in spi100k_read_data() 159 writew(SPI_SETUP1_INT_READ_ENABLE | in spi100k_open() 164 writew(SPI_SETUP2_ACTIVE_EDGE_FALLING | in spi100k_open() 172 writew(0x05fc, spi100k->base + SPI_CTRL); in omap1_spi100k_force_cs() 174 writew(0x05fd, spi100k->base + SPI_CTRL); in omap1_spi100k_force_cs() 249 writew(0x3e , spi100k->base + SPI_SETUP1); in omap1_spi100k_setup_transfer() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/packetengines/ |
D | hamachi.c | 770 writew(0x0400, ioaddr + ANXchngCtrl); /* Enable legacy links. */ in hamachi_init_one() 771 writew(0x08e0, ioaddr + ANAdvertise); /* Set our advertise word. */ in hamachi_init_one() 772 writew(0x1000, ioaddr + ANCtrl); /* Enable negotiation */ in hamachi_init_one() 799 writew(location, ioaddr + EEAddr); in read_eeprom() 823 writew((phy_id<<8) + location, ioaddr + MII_Addr); in mdio_read() 824 writew(0x0001, ioaddr + MII_Cmd); in mdio_read() 841 writew((phy_id<<8) + location, ioaddr + MII_Addr); in mdio_write() 842 writew(value, ioaddr + MII_Wr_Data); in mdio_write() 891 writew(0x0000, ioaddr + FIFOcfg); in hamachi_open() 895 writew(0x0028, ioaddr + FIFOcfg); in hamachi_open() [all …]
|
/kernel/linux/linux-5.10/drivers/pci/controller/ |
D | pci-v3-semi.c | 378 writew(mapaddress, v3->base + V3_LB_MAP1); in v3_map_bus() 392 writew(v3_addr_to_lb_map(v3->pre_bus_addr) | in v3_unmap_bus() 453 writew(status, v3->base + V3_PCI_STAT); in v3_irq() 535 writew(v3_addr_to_lb_map2(io->start - win->offset), in v3_pci_setup_resource() 562 writew(v3_addr_to_lb_map(v3->pre_bus_addr) | in v3_pci_setup_resource() 581 writew(v3_addr_to_lb_map(v3->non_pre_bus_addr) | in v3_pci_setup_resource() 782 writew(V3_SYSTEM_UNLOCK, v3->base + V3_SYSTEM); in v3_pci_probe() 787 writew(val, v3->base + V3_PCI_CMD); in v3_pci_probe() 792 writew(val, v3->base + V3_SYSTEM); in v3_pci_probe() 797 writew(val, v3->base + V3_PCI_CFG); in v3_pci_probe() [all …]
|