/linux-2.4.37.9/include/asm-parisc/ |
D | asmregs.h | 24 rp: .reg %r2 25 arg3: .reg %r23 26 arg2: .reg %r24 27 arg1: .reg %r25 28 arg0: .reg %r26 29 dp: .reg %r27 30 ret0: .reg %r28 31 ret1: .reg %r29 32 sl: .reg %r29 33 sp: .reg %r30 [all …]
|
/linux-2.4.37.9/drivers/video/riva/ |
D | nvreg.h | 44 #define DEVICE_ACCESS(device,reg) \ argument 45 nvCONTROL[(NV_##device##_##reg)/4] 47 #define DEVICE_WRITE(device,reg,value) DEVICE_ACCESS(device,reg)=(value) argument 48 #define DEVICE_READ(device,reg) DEVICE_ACCESS(device,reg) argument 49 #define DEVICE_PRINT(device,reg) \ argument 50 ErrorF("NV_"#device"_"#reg"=#%08lx\n",DEVICE_ACCESS(device,reg)) 56 #define PDAC_Write(reg,value) DEVICE_WRITE(PDAC,reg,value) argument 57 #define PDAC_Read(reg) DEVICE_READ(PDAC,reg) argument 58 #define PDAC_Print(reg) DEVICE_PRINT(PDAC,reg) argument 63 #define PFB_Write(reg,value) DEVICE_WRITE(PFB,reg,value) argument [all …]
|
/linux-2.4.37.9/drivers/video/ |
D | vga.h | 205 static inline void vga_io_w_fast (unsigned short port, unsigned char reg, in vga_io_w_fast() argument 208 outw (VGA_OUT16VAL (val, reg), port); in vga_io_w_fast() 222 unsigned char reg, unsigned char val) in vga_mm_w_fast() argument 224 writew (VGA_OUT16VAL (val, reg), regbase + port); in vga_mm_w_fast() 245 unsigned char reg, unsigned char val) in vga_w_fast() argument 248 vga_mm_w_fast (regbase, port, reg, val); in vga_w_fast() 250 vga_io_w_fast (port, reg, val); in vga_w_fast() 258 static inline unsigned char vga_rcrt (caddr_t regbase, unsigned char reg) in vga_rcrt() argument 260 vga_w (regbase, VGA_CRT_IC, reg); in vga_rcrt() 264 static inline void vga_wcrt (caddr_t regbase, unsigned char reg, unsigned char val) in vga_wcrt() argument [all …]
|
/linux-2.4.37.9/include/asm-sparc/ |
D | kgdb.h | 54 #define SAVE_KGDB_GLOBALS(reg) \ argument 55 std %g0, [%reg + STACKFRAME_SZ + KGDB_G0]; \ 56 std %g2, [%reg + STACKFRAME_SZ + KGDB_G2]; \ 57 std %g4, [%reg + STACKFRAME_SZ + KGDB_G4]; \ 58 std %g6, [%reg + STACKFRAME_SZ + KGDB_G6]; 60 #define SAVE_KGDB_INS(reg) \ argument 61 std %i0, [%reg + STACKFRAME_SZ + KGDB_I0]; \ 62 std %i2, [%reg + STACKFRAME_SZ + KGDB_I2]; \ 63 std %i4, [%reg + STACKFRAME_SZ + KGDB_I4]; \ 64 std %i6, [%reg + STACKFRAME_SZ + KGDB_I6]; [all …]
|
D | asmmacro.h | 13 #define GET_PROCESSOR4M_ID(reg) \ argument 14 rd %tbr, %reg; \ 15 srl %reg, 12, %reg; \ 16 and %reg, 3, %reg; 18 #define GET_PROCESSOR4D_ID(reg) \ argument 19 lda [%g0] ASI_M_VIKING_TMP1, %reg; 22 #define GET_PROCESSOR_ID(reg) \ argument 23 sethi %hi(___b_smp_processor_id), %reg; \ 24 sethi %hi(boot_cpu_id), %reg; \ 25 ldub [%reg + %lo(boot_cpu_id)], %reg; [all …]
|
/linux-2.4.37.9/drivers/net/e1000/ |
D | e1000_osdep.h | 84 #define E1000_WRITE_REG(a, reg, value) ( \ argument 86 (((a)->mac_type >= e1000_82543) ? E1000_##reg : E1000_82542_##reg)))) 88 #define E1000_READ_REG(a, reg) ( \ argument 90 (((a)->mac_type >= e1000_82543) ? E1000_##reg : E1000_82542_##reg))) 92 #define E1000_WRITE_REG_ARRAY(a, reg, offset, value) ( \ argument 94 (((a)->mac_type >= e1000_82543) ? E1000_##reg : E1000_82542_##reg) + \ 97 #define E1000_READ_REG_ARRAY(a, reg, offset) ( \ argument 99 (((a)->mac_type >= e1000_82543) ? E1000_##reg : E1000_82542_##reg) + \ 105 #define E1000_WRITE_REG_ARRAY_WORD(a, reg, offset, value) ( \ argument 107 (((a)->mac_type >= e1000_82543) ? E1000_##reg : E1000_82542_##reg) + \ [all …]
|
/linux-2.4.37.9/drivers/scsi/ |
D | dtc.h | 80 #define DTC_address(reg) (base + DTC_5380_OFFSET + reg) argument 82 #define dbNCR5380_read(reg) \ argument 83 (rval=isa_readb(DTC_address(reg)), \ 85 , (reg), (int)DTC_address(reg), rval)), rval ) ) 87 #define dbNCR5380_write(reg, value) do { \ argument 89 (value), (reg), (int)DTC_address(reg)); \ 90 isa_writeb(value, DTC_address(reg));} while(0) 94 #define NCR5380_read(reg) (isa_readb(DTC_address(reg))) argument 95 #define NCR5380_write(reg, value) (isa_writeb(value, DTC_address(reg))) argument 97 #define NCR5380_read(reg) (isa_readb(DTC_address(reg))) argument [all …]
|
D | nsp32_io.h | 119 unsigned int reg) in nsp32_index_read1() argument 121 outb(reg, base + INDEX_REG); in nsp32_index_read1() 126 unsigned int reg, in nsp32_index_write1() argument 129 outb(reg, base + INDEX_REG ); in nsp32_index_write1() 134 unsigned int reg) in nsp32_index_read2() argument 136 outb(reg, base + INDEX_REG); in nsp32_index_read2() 141 unsigned int reg, in nsp32_index_write2() argument 144 outb(reg, base + INDEX_REG ); in nsp32_index_write2() 149 unsigned int reg) in nsp32_index_read4() argument 153 outb(reg, base + INDEX_REG); in nsp32_index_read4() [all …]
|
/linux-2.4.37.9/arch/mips/pci/ |
D | ops-nile4.c | 13 #define LO(reg) (reg / 4) argument 14 #define HI(reg) (reg / 4 + 1) argument 21 struct pci_dev *dev, unsigned char reg, u32 *data) in nile4_pcibios_config_access() argument 36 vrc_pciregs[(0x200+reg) >> 2] = *data; in nile4_pcibios_config_access() 38 *data = vrc_pciregs[(0x200+reg) >> 2]; in nile4_pcibios_config_access() 56 (PCI_FUNC(dev_fn) << 8) | (reg & ~3)); in nile4_pcibios_config_access() 59 (reg & ~3); in nile4_pcibios_config_access() 82 static int nile4_pcibios_read_config_byte(struct pci_dev *dev, int reg, u8 *val) in nile4_pcibios_read_config_byte() argument 89 err = nile4_pcibios_config_access(PCI_ACCESS_READ, dev, reg, &data); in nile4_pcibios_read_config_byte() 95 *val = (data >> ((reg & 3) << 3)) & 0xff; in nile4_pcibios_read_config_byte() [all …]
|
/linux-2.4.37.9/include/asm-arm/arch-l7200/ |
D | pmu.h | 41 #define GET_TRANSOP(reg) ((reg >> 25) & 0x03) /* Bits 26-25 */ argument 42 #define GET_OSCEN(reg) ((reg >> 16) & 0x01) argument 43 #define GET_OSCMUX(reg) ((reg >> 15) & 0x01) argument 44 #define GET_PLLMUL(reg) ((reg >> 9) & 0x3f) /* Bits 14-9 */ argument 45 #define GET_PLLEN(reg) ((reg >> 8) & 0x01) argument 46 #define GET_PLLMUX(reg) ((reg >> 7) & 0x01) argument 47 #define GET_BCLK_DIV(reg) ((reg >> 3) & 0x03) /* Bits 4-3 */ argument 48 #define GET_SDRB_SEL(reg) ((reg >> 2) & 0x01) argument 49 #define GET_SDRF_SEL(reg) ((reg >> 1) & 0x01) argument 50 #define GET_FASTBUS(reg) (reg & 0x1) argument
|
/linux-2.4.37.9/drivers/char/drm/ |
D | gamma_drv.h | 74 #define GAMMA_OFF(reg) \ argument 75 ((reg < 0x1000) \ 76 ? reg \ 77 : ((reg < 0x10000) \ 78 ? (reg - 0x1000) \ 79 : ((reg < 0x11000) \ 80 ? (reg - 0x10000) \ 81 : (reg - 0x11000)))) 83 #define GAMMA_BASE(reg) ((unsigned long) \ argument 84 ((reg < 0x1000) ? dev_priv->mmio0->handle : \ [all …]
|
/linux-2.4.37.9/include/asm-cris/ |
D | sv_addr_ag.h | 28 #define IO_MASK(reg, field) IO_MASK_ (reg##_, field##_) argument 34 #define IO_STATE(reg, field, state) IO_STATE_ (reg##_, field##_, _##state) argument 40 #define IO_EXTRACT(reg, field, val) IO_EXTRACT_ (reg##_, field##_, val) argument 46 #define IO_STATE_VALUE(reg, field, state) \ argument 47 IO_STATE_VALUE_ (reg##_, field##_, _##state) 52 #define IO_FIELD(reg, field, val) IO_FIELD_ (reg##_, field##_, val) argument 57 #define IO_BITNR(reg, field) IO_BITNR_ (reg##_, field##_) argument 61 #define IO_WIDTH(reg, field) IO_WIDTH_ (reg##_, field##_) argument 67 #define IO_RD(reg) (*(volatile u32*)(reg)) argument 68 #define IO_RD_B(reg) (*(volatile u8*)(reg)) argument [all …]
|
/linux-2.4.37.9/arch/ia64/sn/io/sn2/pcibr/ |
D | pcibr_config.c | 149 unsigned reg) in pcibr_config_addr() argument 172 pciio_bus = PCI_TYPE1_BUS(reg); in pcibr_config_addr() 173 pciio_slot = PCI_TYPE1_SLOT(reg); in pcibr_config_addr() 174 pciio_func = PCI_TYPE1_FUNC(reg); in pcibr_config_addr() 188 pciio_slot = PCI_TYPE1_SLOT(reg); in pcibr_config_addr() 192 pciio_func = PCI_TYPE1_FUNC(reg); in pcibr_config_addr() 207 unsigned reg, in pcibr_config_get() argument 210 return do_pcibr_config_get(pcibr_config_addr(conn, reg), in pcibr_config_get() 211 PCI_TYPE1_REG(reg), size); in pcibr_config_get() 216 unsigned reg, in do_pcibr_config_get() argument [all …]
|
/linux-2.4.37.9/arch/ppc/platforms/ |
D | gemini_setup.c | 86 unsigned char reg, rev; in gemini_show_cpuinfo() local 90 reg = readb(GEMINI_FEAT); in gemini_show_cpuinfo() 91 family = gemini_board_families[((reg>>4) & 0xf)]; in gemini_show_cpuinfo() 92 if (((reg>>4) & 0xf) > gemini_board_count) in gemini_show_cpuinfo() 95 reg = readb(GEMINI_BREV); in gemini_show_cpuinfo() 96 type = (reg>>4) & 0xf; in gemini_show_cpuinfo() 97 rev = reg & 0xf; in gemini_show_cpuinfo() 99 reg = readb(GEMINI_BECO); in gemini_show_cpuinfo() 102 family, type, (rev + 'A'), (reg & 0xf)); in gemini_show_cpuinfo() 110 seq_printf(m, ", rev %c, eco %d\n", (rev + 'A'), (reg & 0xf)); in gemini_show_cpuinfo() [all …]
|
D | gemini_pci.c | 20 unsigned long reg; in gemini_pcibios_read_config_byte() local 21 reg = grackle_read(pci_config_addr(dev->bus->number, dev->devfn, in gemini_pcibios_read_config_byte() 23 *val = ((reg >> ((offset & 0x3) << 3)) & 0xff); in gemini_pcibios_read_config_byte() 30 unsigned long reg; in gemini_pcibios_read_config_word() local 31 reg = grackle_read(pci_config_addr(dev->bus->number, dev->devfn, in gemini_pcibios_read_config_word() 33 *val = ((reg >> ((offset & 0x3) << 3)) & 0xffff); in gemini_pcibios_read_config_word() 48 unsigned long reg; in gemini_pcibios_write_config_byte() local 53 reg = grackle_read(addr); in gemini_pcibios_write_config_byte() 54 reg = (reg & ~(0xff << (shifts << 3))) | (val << (shifts << 3)); in gemini_pcibios_write_config_byte() 55 grackle_write(addr, reg ); in gemini_pcibios_write_config_byte() [all …]
|
/linux-2.4.37.9/drivers/usb/ |
D | uss720.c | 61 unsigned char reg[7]; /* USB registers */ member 66 static int get_1284_register(struct parport *pp, unsigned char reg, unsigned char *val) in get_1284_register() argument 77 …rol_msg(usbdev, usb_rcvctrlpipe(usbdev,0), 3, 0xc0, ((unsigned int)reg) << 8, 0, priv->reg, 7, HZ); in get_1284_register() 80 (unsigned int)reg, ret); in get_1284_register() 85 (unsigned int)reg, (unsigned int)priv->reg[0], (unsigned int)priv->reg[1], in get_1284_register() 86 (unsigned int)priv->reg[2], (unsigned int)priv->reg[3], (unsigned int)priv->reg[4], in get_1284_register() 87 (unsigned int)priv->reg[5], (unsigned int)priv->reg[6]); in get_1284_register() 90 if (priv->reg[2] & priv->reg[1] & 0x10) in get_1284_register() 95 *val = priv->reg[(reg >= 9) ? 0 : regindex[reg]]; in get_1284_register() 99 static int set_1284_register(struct parport *pp, unsigned char reg, unsigned char val) in set_1284_register() argument [all …]
|
/linux-2.4.37.9/arch/alpha/lib/ |
D | fpreg.c | 8 #define STT(reg,val) asm volatile ("ftoit $f"#reg",%0" : "=r"(val)); argument 10 #define STT(reg,val) asm volatile ("stt $f"#reg",%0" : "=m"(val)); argument 14 alpha_read_fp_reg (unsigned long reg) in alpha_read_fp_reg() argument 18 switch (reg) { in alpha_read_fp_reg() 56 #define LDT(reg,val) asm volatile ("itoft %0,$f"#reg : : "r"(val)); argument 58 #define LDT(reg,val) asm volatile ("ldt $f"#reg",%0" : : "m"(val)); argument 62 alpha_write_fp_reg (unsigned long reg, unsigned long val) in alpha_write_fp_reg() argument 64 switch (reg) { in alpha_write_fp_reg() 101 #define STS(reg,val) asm volatile ("ftois $f"#reg",%0" : "=r"(val)); argument 103 #define STS(reg,val) asm volatile ("sts $f"#reg",%0" : "=m"(val)); argument [all …]
|
/linux-2.4.37.9/drivers/pcmcia/ |
D | i82092.c | 251 static unsigned char indirect_read(int socket, unsigned short reg) in indirect_read() argument 257 reg += socket * 0x40; in indirect_read() 259 outb(reg,port); in indirect_read() 265 static unsigned short indirect_read16(int socket, unsigned short reg) in indirect_read16() argument 271 reg = reg + socket * 0x40; in indirect_read16() 273 outb(reg,port); in indirect_read16() 275 reg++; in indirect_read16() 276 outb(reg,port); in indirect_read16() 282 static void indirect_write(int socket, unsigned short reg, unsigned char value) in indirect_write() argument 287 reg = reg + socket * 0x40; in indirect_write() [all …]
|
D | m8xx_pcmcia.c | 256 u_int reg = 0; in voltage_set() local 260 case 33: reg |= BCSR1_PCVCTL4; break; in voltage_set() 261 case 50: reg |= BCSR1_PCVCTL5; break; in voltage_set() 270 reg |= BCSR1_PCVCTL6; in voltage_set() 275 reg |= BCSR1_PCVCTL7; in voltage_set() 289 *((uint *)RPX_CSR_ADDR) |= reg; in voltage_set() 309 uint reg = 0; in voltage_set() local 313 case 33: reg |= BCSR1_PCCVCC0; break; in voltage_set() 314 case 50: reg |= BCSR1_PCCVCC1; break; in voltage_set() 323 reg |= BCSR1_PCCVPP1; in voltage_set() [all …]
|
/linux-2.4.37.9/arch/x86_64/kernel/ |
D | msr.c | 46 static inline int wrmsr_eio(u32 reg, u32 eax, u32 edx) in wrmsr_eio() argument 62 : "a" (eax), "d" (edx), "c" (reg), "i" (-EIO), "0" (0)); in wrmsr_eio() 67 static inline int rdmsr_eio(u32 reg, u32 *eax, u32 *edx) in rdmsr_eio() argument 83 : "c" (reg), "i" (-EIO), "0" (0)); in rdmsr_eio() 93 u32 reg; member 102 cmd->err = wrmsr_eio(cmd->reg, cmd->data[0], cmd->data[1]); in msr_smp_wrmsr() 110 cmd->err = rdmsr_eio(cmd->reg, &cmd->data[0], &cmd->data[1]); in msr_smp_rdmsr() 113 static inline int do_wrmsr(int cpu, u32 reg, u32 eax, u32 edx) in do_wrmsr() argument 118 return wrmsr_eio(reg, eax, edx); in do_wrmsr() 121 cmd.reg = reg; in do_wrmsr() [all …]
|
/linux-2.4.37.9/arch/i386/kernel/ |
D | msr.c | 46 static inline int wrmsr_eio(u32 reg, u32 eax, u32 edx) in wrmsr_eio() argument 62 : "a" (eax), "d" (edx), "c" (reg), "i" (-EIO), "0" (0)); in wrmsr_eio() 67 static inline int rdmsr_eio(u32 reg, u32 *eax, u32 *edx) in rdmsr_eio() argument 83 : "c" (reg), "i" (-EIO), "0" (0)); in rdmsr_eio() 93 u32 reg; member 102 cmd->err = wrmsr_eio(cmd->reg, cmd->data[0], cmd->data[1]); in msr_smp_wrmsr() 110 cmd->err = rdmsr_eio(cmd->reg, &cmd->data[0], &cmd->data[1]); in msr_smp_rdmsr() 113 static inline int do_wrmsr(int cpu, u32 reg, u32 eax, u32 edx) in do_wrmsr() argument 118 return wrmsr_eio(reg, eax, edx); in do_wrmsr() 121 cmd.reg = reg; in do_wrmsr() [all …]
|
/linux-2.4.37.9/include/linux/mtd/ |
D | doc2000.h | 47 #define ReadDOC_(adr, reg) ((unsigned char)(*(__u32 *)(((unsigned long)adr)+((reg)<<2)))) argument 48 #define WriteDOC_(d, adr, reg) do{ *(__u32 *)(((unsigned long)adr)+((reg)<<2)) = (__u32)d; wmb();}… argument 51 #define ReadDOC_(adr, reg) ((unsigned char)(*(__u16 *)(((unsigned long)adr)+((reg)<<1)))) argument 52 #define WriteDOC_(d, adr, reg) do{ *(__u16 *)(((unsigned long)adr)+((reg)<<1)) = (__u16)d; wmb();}… argument 55 #define ReadDOC_(adr, reg) readb(((unsigned long)adr) + (reg)) argument 56 #define WriteDOC_(d, adr, reg) writeb(d, ((unsigned long)adr) + (reg)) argument 66 #define ReadDOC(adr, reg) ReadDOC_(adr,DoC_##reg) argument 67 #define WriteDOC(d, adr, reg) WriteDOC_(d,adr,DoC_##reg) argument
|
/linux-2.4.37.9/drivers/media/video/ |
D | zr36067.c | 711 u32 reg; in zr36057_adjust_vfe() local 715 reg = btread(ZR36057_VFEHCR); in zr36057_adjust_vfe() 716 if (reg & (1 << 10)) { in zr36057_adjust_vfe() 717 reg += ((1 << 10) | 1); in zr36057_adjust_vfe() 719 btwrite(reg, ZR36057_VFEHCR); in zr36057_adjust_vfe() 728 reg = btread(ZR36057_VFEHCR); in zr36057_adjust_vfe() 729 if (!(reg & (1 << 10))) { in zr36057_adjust_vfe() 730 reg -= ((1 << 10) | 1); in zr36057_adjust_vfe() 732 btwrite(reg, ZR36057_VFEHCR); in zr36057_adjust_vfe() 750 u32 reg; in zr36057_set_vfe() local [all …]
|
/linux-2.4.37.9/arch/sh64/kernel/ |
D | irq_intc.c | 133 unsigned long reg; in enable_intc_irq() local 140 reg = INTC_INTENB_0; in enable_intc_irq() 143 reg = INTC_INTENB_1; in enable_intc_irq() 147 ctrl_outl(bitmask, reg); in enable_intc_irq() 152 unsigned long reg; in disable_intc_irq() local 156 reg = INTC_INTDSB_0; in disable_intc_irq() 159 reg = INTC_INTDSB_1; in disable_intc_irq() 163 ctrl_outl(bitmask, reg); in disable_intc_irq() 197 unsigned long reg; in init_IRQ() local 219 for (reg = INTC_INTPRI_0, i = 0; i < INTC_INTPRI_PREGS; i++, reg += 8) in init_IRQ() [all …]
|
/linux-2.4.37.9/drivers/sound/emu10k1/ |
D | hwaccess.c | 136 void emu10k1_writefn0(struct emu10k1_card *card, u32 reg, u32 data) in emu10k1_writefn0() argument 140 if (reg & 0xff000000) { in emu10k1_writefn0() 144 size = (reg >> 24) & 0x3f; in emu10k1_writefn0() 145 offset = (reg >> 16) & 0x1f; in emu10k1_writefn0() 148 reg &= 0x7f; in emu10k1_writefn0() 151 data |= inl(card->iobase + reg) & ~mask; in emu10k1_writefn0() 152 outl(data, card->iobase + reg); in emu10k1_writefn0() 156 outl(data, card->iobase + reg); in emu10k1_writefn0() 163 u32 emu10k1_readfn0(struct emu10k1_card * card, u32 reg) in emu10k1_readfn0() argument 168 if (reg & 0xff000000) { in emu10k1_readfn0() [all …]
|