Home
last modified time | relevance | path

Searched refs:writew (Results 1 – 25 of 155) sorted by relevance

1234567

/linux-2.4.37.9/drivers/net/tokenring/
Dlanstreamer.c447 writew(readw(streamer_mmio + BCTL) | BCTL_SOFTRESET, streamer_mmio + BCTL); in streamer_reset()
453 writew(readw(streamer_mmio + BCTL) & ~BCTL_SOFTRESET, in streamer_reset()
461 writew(readw(streamer_mmio + BCTL) | (BCTL_RX_FIFO_8 | BCTL_TX_FIFO_8), streamer_mmio + BCTL ); in streamer_reset()
464 writew(readw(streamer_mmio + GPR) | GPR_AUTOSENSE, in streamer_reset()
473 writew(GPR_16MBPS, streamer_mmio + GPR); in streamer_reset()
478 writew(0, streamer_mmio + GPR); in streamer_reset()
504 writew(SISR_MI, streamer_mmio + SISR_MASK_SUM); in streamer_reset()
518 writew(~SISR_SRB_REPLY, streamer_mmio + SISR_RUM); in streamer_reset()
520 writew(~misr, streamer_mmio + MISR_RUM); in streamer_reset()
534 writew(readw(streamer_mmio + LAPWWO), in streamer_reset()
[all …]
D3c359.c227 writew(EEREAD + ee_addr, xl_mmio + MMIO_MACDATA) ; in xl_ee_read()
235 writew(EEREAD + ee_addr, xl_mmio + MMIO_MACDATA) ; in xl_ee_read()
259 writew(EE_ENABLE_WRITE, xl_mmio + MMIO_MACDATA) ; in xl_ee_write()
267 writew(ee_value, xl_mmio + MMIO_MACDATA) ; in xl_ee_write()
271 writew(EEWRITE + ee_addr, xl_mmio + MMIO_MACDATA) ; in xl_ee_write()
403 writew( GLOBAL_RESET, xl_mmio + MMIO_COMMAND ) ; in xl_hw_reset()
448 writew(result_16,xl_mmio + MMIO_MACDATA) ; in xl_hw_reset()
488 writew(start >> 4, xl_mmio + MMIO_MACDATA); in xl_hw_reset()
504 writew(result_16,xl_mmio + MMIO_MACDATA) ; in xl_hw_reset()
519 writew(SETINDENABLE | 0xFFF, xl_mmio + MMIO_COMMAND) ; in xl_hw_reset()
[all …]
/linux-2.4.37.9/drivers/char/
Dmoxa.c1807 writew(0, ip + port); in MoxaDriverPoll()
1810 writew(readw(ofsAddr + HostStat) & ~WakeupTx, ofsAddr + HostStat); in MoxaDriverPoll()
2231 writew(lowwater, ofsAddr + Low_water); in MoxaPortEnable()
2237 writew(readw(ofsAddr + HostStat) | WakeupBreak, ofsAddr + HostStat); in MoxaPortEnable()
2254 writew(0, ofsAddr + HostStat); in MoxaPortDisable()
2564 writew(spage, baseAddr + Control_reg); in MoxaPortWriteData()
2577 writew(tail, ofsAddr + TXwptr); in MoxaPortWriteData()
2592 writew((tail + len) & tx_mask, ofsAddr + TXwptr); in MoxaPortWriteData()
2630 writew(spage, baseAddr + Control_reg); in MoxaPortReadData()
2643 writew(head, ofsAddr + RXrptr); in MoxaPortReadData()
[all …]
Dsc520_wdt.c136 writew(0xAAAA, wdtmrctl); in wdt_timer_ping()
137 writew(0x5555, wdtmrctl); in wdt_timer_ping()
160 writew(0xAAAA, wdtmrctl); in wdt_config()
161 writew(0x5555, wdtmrctl); in wdt_config()
163 writew(0x3333, wdtmrctl); in wdt_config()
164 writew(0xCCCC, wdtmrctl); in wdt_config()
166 writew(writeval, wdtmrctl); in wdt_config()
/linux-2.4.37.9/drivers/net/e100/
De100_eeprom.c162 writew(x, &CSR_EEPROM_CONTROL_FIELD(adapter)); in e100_eeprom_size()
175 writew(x, &CSR_EEPROM_CONTROL_FIELD(adapter)); in e100_eeprom_size()
252 writew(x, &CSR_EEPROM_CONTROL_FIELD(adapter)); in e100_eeprom_read()
298 writew(x, &CSR_EEPROM_CONTROL_FIELD(adapter)); in shift_out_bits()
307 writew(x, &CSR_EEPROM_CONTROL_FIELD(adapter)); in shift_out_bits()
325 writew(*x, &CSR_EEPROM_CONTROL_FIELD(adapter)); in raise_clock()
345 writew(*x, &CSR_EEPROM_CONTROL_FIELD(adapter)); in lower_clock()
400 writew(x, &CSR_EEPROM_CONTROL_FIELD(adapter)); in e100_eeprom_cleanup()
451 writew(x, &CSR_EEPROM_CONTROL_FIELD(adapter)); in e100_eeprom_write_word()
455 writew(x, &CSR_EEPROM_CONTROL_FIELD(adapter)); in e100_eeprom_write_word()
[all …]
/linux-2.4.37.9/drivers/mtd/devices/
Ddoc1000.c145 writew(IF_ERASE_SUSPEND, addr); in suspend_erase()
146 writew(IF_READ_CSR, addr); in suspend_erase()
164 writew(IF_READ_CSR, addr); in resume_erase()
169 writew(IF_CONFIRM, addr); in resume_erase()
202 writew(IF_WRITE, addr); in word_write()
203 writew(word, addr); in word_write()
218 writew(IF_CLEAR_CSR, addr); in reset_block()
221 writew(IF_READ_CSR, addr); in reset_block()
227 writew(IF_READ_CSR, addr); in reset_block()
234 writew(IF_READ_CSR, addr); in check_write()
[all …]
/linux-2.4.37.9/drivers/net/
Dhamachi.c775 writew(0x0400, ioaddr + ANXchngCtrl); /* Enable legacy links. */ in hamachi_init_one()
776 writew(0x08e0, ioaddr + ANAdvertise); /* Set our advertise word. */ in hamachi_init_one()
777 writew(0x1000, ioaddr + ANCtrl); /* Enable negotiation */ in hamachi_init_one()
804 writew(location, ioaddr + EEAddr); in read_eeprom()
827 writew((phy_id<<8) + location, ioaddr + MII_Addr); in mdio_read()
828 writew(0x0001, ioaddr + MII_Cmd); in mdio_read()
844 writew((phy_id<<8) + location, ioaddr + MII_Addr); in mdio_write()
845 writew(value, ioaddr + MII_Wr_Data); in mdio_write()
898 writew(0x0000, ioaddr + FIFOcfg); in hamachi_open()
902 writew(0x0028, ioaddr + FIFOcfg); in hamachi_open()
[all …]
Dether00.c167 writew(value,ETHER_MD_DATA(dev->base_addr)); in ether00_write_phy()
168 writew( ETHER_MD_CA_BUSY_MSK | in ether00_write_phy()
187 writew( ETHER_MD_CA_BUSY_MSK | in ether00_read_phy()
543 writew(0,ETHER_ARC_ADR(dev->base_addr)); in ether00_setup_ethernet_address()
550 writew(4,ETHER_ARC_ADR(dev->base_addr)); in ether00_setup_ethernet_address()
566 writew(ETHER_MAC_CTL_RESET_MSK,ETHER_MAC_CTL(dev->base_addr)); in ether00_reset()
572 writew(ETHER_TX_CTL_TXHALT_MSK,ETHER_TX_CTL(dev->base_addr)); in ether00_reset()
577 writew(ETHER_RX_CTL_RXHALT_MSK,ETHER_RX_CTL(dev->base_addr)); in ether00_reset()
593 writew(1514,ETHER_TXTHRSH(dev->base_addr)); in ether00_reset()
599 writew(1,ETHER_TXPOLLCTR(dev->base_addr)); in ether00_reset()
[all …]
Dsundance.c322 #undef writew
328 #define writew outw macro
715 writew(0x007f, ioaddr + ASICCtrl + 2); in sundance_probe1()
755 writew(0x0200 | (location & 0xff), ioaddr + EECtrl); in eeprom_read()
878 writew(dev->mtu + 18, ioaddr + MaxFrameSize); in netdev_open()
880 writew(dev->mtu + 14, ioaddr + MaxFrameSize); in netdev_open()
893 writew(0, ioaddr + IntrEnable); in netdev_open()
894 writew(0, ioaddr + DownCounter); in netdev_open()
903 writew (StatsEnable | RxEnable | TxEnable, ioaddr + MACCtrl1); in netdev_open()
920 writew(DEFAULT_INTR, ioaddr + IntrEnable); in netdev_open()
[all …]
Dstarfire.c1144 writew(0, ioaddr + PerfFilterTable); in netdev_open()
1145 writew(0, ioaddr + PerfFilterTable + 4); in netdev_open()
1146 writew(0, ioaddr + PerfFilterTable + 8); in netdev_open()
1150 writew(cpu_to_be16(eaddrs[2]), setup_frm); setup_frm += 4; in netdev_open()
1151 writew(cpu_to_be16(eaddrs[1]), setup_frm); setup_frm += 4; in netdev_open()
1152 writew(cpu_to_be16(eaddrs[0]), setup_frm); setup_frm += 8; in netdev_open()
1301 writew(i - 1, dev->base_addr + RxDescQIdx); in init_ring()
1504 writew(np->tx_done, ioaddr + CompletionQConsumerIdx + 2); in intr_handler()
1644 writew(np->rx_done, dev->base_addr + CompletionQConsumerIdx); in netdev_rx()
1664 writew(entry, dev->base_addr + RxDescQIdx); in netdev_rx()
[all …]
Dnatsemi.c955 writew(data, dev->base_addr+BasicControl+(reg<<2)); in mdio_write()
1030 writew(pmatch[i], dev->base_addr + RxFilterData); in natsemi_reset()
1034 writew(sopass[i], dev->base_addr + RxFilterData); in natsemi_reset()
1109 writew(mac, ioaddr + RxFilterData); in netdev_open()
1146 writew(1, dev->base_addr + PGSEL); in do_cable_magic()
1160 writew(TSTDAT_FIXED, dev->base_addr + TSTDAT); in do_cable_magic()
1164 writew(np->dspcfg, dev->base_addr + DSPCFG); in do_cable_magic()
1166 writew(0, dev->base_addr + PGSEL); in do_cable_magic()
1178 writew(1, dev->base_addr + PGSEL); in undo_cable_magic()
1182 writew(np->dspcfg, dev->base_addr + DSPCFG); in undo_cable_magic()
[all …]
Dvia-rhine.c234 #undef writew
240 #define writew outw macro
733 writew(CmdReset, ioaddr + ChipCmd); in via_rhine_init_one()
1055 writew(0x0006, ioaddr + PCIBusConfig); /* Tune configuration??? */ in init_registers()
1072 writew(IntrRxDone | IntrRxErr | IntrRxEmpty| IntrRxOverflow | in init_registers()
1081 writew(np->chip_cmd, ioaddr + ChipCmd); in init_registers()
1137 writew(value, ioaddr + MIIData); in mdio_write()
1149 writew(CmdReset, ioaddr + ChipCmd); in via_rhine_open()
1205 writew(np->chip_cmd, ioaddr + ChipCmd); in via_rhine_check_duplex()
1251 writew(CmdReset, ioaddr + ChipCmd); in via_rhine_tx_timeout()
[all …]
Ddl2k.c95 writew(DEFAULT_INTR, ioaddr + IntEnable)
451 writew (GlobalReset | DMAReset | FIFOReset | NetworkReset | HostReset, in rio_open()
460 writew (MAX_JUMBO+14, ioaddr + MaxFrameSize); in rio_open()
491 writew (np->vlan, ioaddr + VLANId); in rio_open()
515 writew(macctrl, ioaddr + MACCtrl); in rio_open()
584 writew(0, ioaddr + IntEnable); in rio_tx_timeout()
585 writew(0, ioaddr + TFDListPtr0); in rio_tx_timeout()
586 writew(0, ioaddr + TFDListPtr1); in rio_tx_timeout()
592 writew(DEFAULT_INTR, ioaddr + IntEnable); in rio_tx_timeout()
777 writew (int_status, ioaddr + IntStatus); in rio_interrupt()
[all …]
/linux-2.4.37.9/drivers/atm/
Diphase.c288 writew(0xFFFD, dev->seg_reg+MODE_REG_0); in clear_lockup()
299 writew(T_ONLINE, dev->seg_reg+MODE_REG_0); in clear_lockup()
300 writew(~(TRANSMIT_DONE|TCQ_NOT_EMPTY), dev->seg_reg+SEG_MASK_REG); in clear_lockup()
301 writew(TRANSMIT_DONE, dev->seg_reg+SEG_INTR_STATUS_REG); in clear_lockup()
585 writew((CBR_EN | UBR_EN | ABR_EN | (0x23 << 2)), dev->seg_reg+STPARMS); in ia_cbr_setup()
599 writew((UBR_EN | ABR_EN | (0x23 << 2)), iadev->seg_reg+STPARMS); in ia_cbrVc_close()
1065 writew( excpq_rd_ptr, iadev->reass_reg + EXCP_Q_RD_PTR);
1075 writew(desc, iadev->reass_ram+iadev->rfL.fdq_wr);
1079 writew(iadev->rfL.fdq_wr, iadev->reass_reg+FREEQ_WR_PTR);
1111 writew(iadev->rfL.pcq_rd, iadev->reass_reg+PCQ_RD_PTR);
[all …]
/linux-2.4.37.9/drivers/scsi/
Dsata_vsc.c132 writew(tf->feature | (((u16)tf->hob_feature) << 8), ioaddr->feature_addr); in vsc_sata_tf_load()
133 writew(tf->nsect | (((u16)tf->hob_nsect) << 8), ioaddr->nsect_addr); in vsc_sata_tf_load()
134 writew(tf->lbal | (((u16)tf->hob_lbal) << 8), ioaddr->lbal_addr); in vsc_sata_tf_load()
135 writew(tf->lbam | (((u16)tf->hob_lbam) << 8), ioaddr->lbam_addr); in vsc_sata_tf_load()
136 writew(tf->lbah | (((u16)tf->hob_lbah) << 8), ioaddr->lbah_addr); in vsc_sata_tf_load()
138 writew(tf->feature, ioaddr->feature_addr); in vsc_sata_tf_load()
139 writew(tf->nsect, ioaddr->nsect_addr); in vsc_sata_tf_load()
140 writew(tf->lbal, ioaddr->lbal_addr); in vsc_sata_tf_load()
141 writew(tf->lbam, ioaddr->lbam_addr); in vsc_sata_tf_load()
142 writew(tf->lbah, ioaddr->lbah_addr); in vsc_sata_tf_load()
Dsata_svw.c118 writew(tf->feature | (((u16)tf->hob_feature) << 8), ioaddr->feature_addr); in k2_sata_tf_load()
119 writew(tf->nsect | (((u16)tf->hob_nsect) << 8), ioaddr->nsect_addr); in k2_sata_tf_load()
120 writew(tf->lbal | (((u16)tf->hob_lbal) << 8), ioaddr->lbal_addr); in k2_sata_tf_load()
121 writew(tf->lbam | (((u16)tf->hob_lbam) << 8), ioaddr->lbam_addr); in k2_sata_tf_load()
122 writew(tf->lbah | (((u16)tf->hob_lbah) << 8), ioaddr->lbah_addr); in k2_sata_tf_load()
124 writew(tf->feature, ioaddr->feature_addr); in k2_sata_tf_load()
125 writew(tf->nsect, ioaddr->nsect_addr); in k2_sata_tf_load()
126 writew(tf->lbal, ioaddr->lbal_addr); in k2_sata_tf_load()
127 writew(tf->lbam, ioaddr->lbam_addr); in k2_sata_tf_load()
128 writew(tf->lbah, ioaddr->lbah_addr); in k2_sata_tf_load()
/linux-2.4.37.9/arch/mips/vr41xx/common/
Dserial.c104 writew(val, SIUIRSEL_TYPE1); in vr41xx_siu_ifselect()
109 writew(val, SIUIRSEL_TYPE2); in vr41xx_siu_ifselect()
176 writew(INTDSIU, MDSIUINTREG); in vr41xx_dsiu_init()
/linux-2.4.37.9/arch/x86_64/kernel/
Dearly_printk.c27 writew(readw(VGABASE + 2*(MAX_XPOS*k + i)), in early_vga_write()
32 writew(0x720, VGABASE + 2*(MAX_XPOS*j + i)); in early_vga_write()
40 writew(((0x7 << 8) | (unsigned short) c), in early_vga_write()
/linux-2.4.37.9/drivers/net/wan/8253x/
D8253xmcs.c365 writew((unsigned short) 0xffff, (unsigned short *) in mcs_ciminit()
378 writew(0, (unsigned short *) in mcs_ciminit()
471 writew((unsigned short) alloff, (unsigned short *) in mcs_ciminit()
630 writew(datareceiver, (unsigned short*) wraddressreceiver); in aura_sp502_program()
636 writew(datatransmitter, (unsigned short*) wraddresstransmitter); in aura_sp502_program()
/linux-2.4.37.9/drivers/video/
Depson1356fb.c235 writew(valw, fbaddr++); in fbfill()
571 writew(0, &bltreg->mem_addr_offset0); in e1356fb_engine_init()
572 writew(0, &bltreg->width0); in e1356fb_engine_init()
573 writew(0, &bltreg->height0); in e1356fb_engine_init()
574 writew(0, &bltreg->bg_color0); in e1356fb_engine_init()
575 writew(0, &bltreg->fg_color0); in e1356fb_engine_init()
593 writew(blt->bg_color, &bltreg->bg_color0); in doBlt_Write()
599 writew(stride/2, &bltreg->mem_addr_offset0); in doBlt_Write()
605 writew(blt->dst_width-1, &bltreg->width0); in doBlt_Write()
606 writew(blt->dst_height-1, &bltreg->height0); in doBlt_Write()
[all …]
/linux-2.4.37.9/drivers/char/rio/
Dlinux_compat.h30 #define WWORD(p,v) writew(v, &p)
32 #define WINDW(p,v) writew(v, p)
/linux-2.4.37.9/include/asm-sh/
Dio.h265 # define writew(v,a) ({ __raw_writew((v),(a)); mb(); }) macro
304 #ifndef writew
305 # define writew(v,a) _writew((v),(unsigned long)(a)) macro
331 extern void writew(unsigned short b, unsigned long addr);
351 #define isa_writew(w,a) writew(w,isa_port2addr(a))
/linux-2.4.37.9/include/asm-alpha/
Dio.h297 extern void writew(unsigned short b, unsigned long addr);
363 # define writew(v,a) ({ __raw_writew((v),(a)); mb(); }) macro
414 #ifndef writew
415 # define writew(v,a) _writew((v),(unsigned long)(a)) macro
489 #define isa_writew(w,a) writew((w),__ioremap((a),2))
/linux-2.4.37.9/include/asm-parisc/
Dio.h147 #define writew(b,addr) (*(volatile unsigned short *) (addr) = (b)) macro
156 #define writew(b,addr) __raw_writew(cpu_to_le16(b),(unsigned long)(addr)) macro
174 #define isa_writew(b,a) writew((b), EISA_BASE | (a))
/linux-2.4.37.9/include/asm-x86_64/
Dio.h192 #define writew(b,addr) (*(volatile unsigned short *) __io_virt(addr) = (b)) macro
196 #define __raw_writew writew
219 #define isa_writew(w,a) writew(w,__ISA_IO_base + (a))

1234567