/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 16 unsigned long val; in alpha_read_fp_reg() local 19 case 0: STT( 0, val); break; in alpha_read_fp_reg() 20 case 1: STT( 1, val); break; in alpha_read_fp_reg() 21 case 2: STT( 2, val); break; in alpha_read_fp_reg() 22 case 3: STT( 3, val); break; in alpha_read_fp_reg() 23 case 4: STT( 4, val); break; in alpha_read_fp_reg() 24 case 5: STT( 5, val); break; in alpha_read_fp_reg() 25 case 6: STT( 6, val); break; in alpha_read_fp_reg() [all …]
|
/linux-2.4.37.9/drivers/net/ |
D | titan_mdio.c | 56 int i, val; in titan_ge_mdio_poll() local 59 val = TITAN_GE_MDIO_READ(TITAN_GE_MDIO_COMMAND); in titan_ge_mdio_poll() 61 if (!(val & 0x8000)) in titan_ge_mdio_poll() 74 unsigned long val; in titan_ge_mdio_setup() local 81 val = TITAN_GE_MDIO_READ(TITAN_GE_SCMB_CLKA); in titan_ge_mdio_setup() 82 val = ( (val & ~(0x03ff)) | (titan_mdio->clka & 0x03ff)); in titan_ge_mdio_setup() 83 TITAN_GE_MDIO_WRITE(TITAN_GE_SCMB_CLKA, val); in titan_ge_mdio_setup() 86 val = TITAN_GE_MDIO_READ(TITAN_GE_MDIO_COMMAND); in titan_ge_mdio_setup() 87 val = ( (val & ~(0x0001)) | (titan_mdio->mdio_spre & 0x0001)); in titan_ge_mdio_setup() 88 TITAN_GE_MDIO_WRITE(TITAN_GE_MDIO_COMMAND, val); in titan_ge_mdio_setup() [all …]
|
/linux-2.4.37.9/include/asm-ppc64/ |
D | eeh.h | 48 unsigned long eeh_check_failure(void *token, unsigned long val); 85 #define EEH_POSSIBLE_IO_ERROR(val, type) \ argument 86 ((val) == (type)~0 && ++eeh_total_mmio_ffs) 87 #define EEH_POSSIBLE_ERROR(addr, vaddr, val, type) \ argument 88 (EEH_POSSIBLE_IO_ERROR(val, type) && (vaddr) != (addr)) 106 u8 val = in_8(vaddr); in eeh_readb() local 107 if (EEH_POSSIBLE_ERROR(addr, vaddr, val, u8)) in eeh_readb() 108 return eeh_check_failure(addr, val); in eeh_readb() 109 return val; in eeh_readb() 111 static inline void eeh_writeb(u8 val, void *addr) { in eeh_writeb() argument [all …]
|
/linux-2.4.37.9/include/asm-mips/ |
D | mipsregs.h | 538 #define write_r10k_perf_cntr(counter,val) \ argument 541 : : "r" (val)); 550 #define write_r10k_perf_cntl(counter,val) \ argument 553 : : "r" (val)); 626 #define __write_ulong_c0_register(reg, sel, val) \ argument 629 __write_32bit_c0_register(reg, sel, val); \ 631 __write_64bit_c0_register(reg, sel, val); \ 658 unsigned long long val; \ 670 : "=r" (val)); \ 679 : "=r" (val)); \ [all …]
|
/linux-2.4.37.9/include/asm-mips64/ |
D | mipsregs.h | 538 #define write_r10k_perf_cntr(counter,val) \ argument 541 : : "r" (val)); 550 #define write_r10k_perf_cntl(counter,val) \ argument 553 : : "r" (val)); 626 #define __write_ulong_c0_register(reg, sel, val) \ argument 629 __write_32bit_c0_register(reg, sel, val); \ 631 __write_64bit_c0_register(reg, sel, val); \ 658 unsigned long long val; \ 670 : "=r" (val)); \ 679 : "=r" (val)); \ [all …]
|
/linux-2.4.37.9/include/asm-alpha/ |
D | compiler.h | 13 #define __kernel_insbl(val, shift) \ 14 (((unsigned long)(val) & 0xfful) << ((shift) * 8)) 15 #define __kernel_inswl(val, shift) \ 16 (((unsigned long)(val) & 0xfffful) << ((shift) * 8)) 17 #define __kernel_insql(val, shift) \ 18 ((unsigned long)(val) << ((shift) * 8)) 20 #define __kernel_insbl(val, shift) \ argument 22 __asm__("insbl %2,%1,%0" : "=r"(__kir) : "rI"(shift), "r"(val)); \ 24 #define __kernel_inswl(val, shift) \ argument 26 __asm__("inswl %2,%1,%0" : "=r"(__kir) : "rI"(shift), "r"(val)); \ [all …]
|
/linux-2.4.37.9/include/asm-sh/ |
D | mc146818rtc.h | 18 #define CMOS_WRITE(val,addr) __CMOS_WRITE(val,addr,b) argument 25 #define CMOS_WRITE(val,addr) secureedge5410_cmos_write(val,addr) argument 27 extern void secureedge5410_cmos_write(unsigned char val, int addr); 32 #define CMOS_WRITE(val,addr) __CMOS_WRITE(val,addr,w) argument 36 unsigned char val=0, rcr1, rcr2, r64cnt, retry; \ 39 val = ctrl_inb(RSECCNT); \ 42 val = ctrl_inb(RSECAR); \ 45 val = ctrl_inb(RMINCNT); \ 48 val = ctrl_inb(RMINAR); \ 51 val = ctrl_inb(RHRCNT); \ [all …]
|
/linux-2.4.37.9/include/asm-arm/arch-riscstation/ |
D | irq.h | 21 unsigned int val, mask; in rpc_mask_irq_ack_a() local 24 val = iomd_readb(IOMD_IRQMASKA); in rpc_mask_irq_ack_a() 25 iomd_writeb(val & ~mask, IOMD_IRQMASKA); in rpc_mask_irq_ack_a() 31 unsigned int val, mask; in rpc_mask_irq_a() local 34 val = iomd_readb(IOMD_IRQMASKA); in rpc_mask_irq_a() 35 iomd_writeb(val & ~mask, IOMD_IRQMASKA); in rpc_mask_irq_a() 40 unsigned int val, mask; in rpc_unmask_irq_a() local 43 val = iomd_readb(IOMD_IRQMASKA); in rpc_unmask_irq_a() 44 iomd_writeb(val | mask, IOMD_IRQMASKA); in rpc_unmask_irq_a() 49 unsigned int val, mask; in rpc_mask_irq_b() local [all …]
|
/linux-2.4.37.9/kernel/ |
D | info.c | 18 struct sysinfo val; in sys_sysinfo() local 20 memset((char *)&val, 0, sizeof(struct sysinfo)); in sys_sysinfo() 23 val.uptime = jiffies / HZ; in sys_sysinfo() 25 val.loads[0] = avenrun[0] << (SI_LOAD_SHIFT - FSHIFT); in sys_sysinfo() 26 val.loads[1] = avenrun[1] << (SI_LOAD_SHIFT - FSHIFT); in sys_sysinfo() 27 val.loads[2] = avenrun[2] << (SI_LOAD_SHIFT - FSHIFT); in sys_sysinfo() 29 val.procs = nr_threads-1; in sys_sysinfo() 32 si_meminfo(&val); in sys_sysinfo() 33 si_swapinfo(&val); in sys_sysinfo() 46 mem_total = val.totalram + val.totalswap; in sys_sysinfo() [all …]
|
/linux-2.4.37.9/include/asm-arm/arch-cl7500/ |
D | irq.h | 36 unsigned int val, mask; in cl7500_mask_irq_ack_a() local 39 val = iomd_readb(IOMD_IRQMASKA); in cl7500_mask_irq_ack_a() 40 iomd_writeb(val & ~mask, IOMD_IRQMASKA); in cl7500_mask_irq_ack_a() 46 unsigned int val, mask; in cl7500_mask_irq_a() local 49 val = iomd_readb(IOMD_IRQMASKA); in cl7500_mask_irq_a() 50 iomd_writeb(val & ~mask, IOMD_IRQMASKA); in cl7500_mask_irq_a() 55 unsigned int val, mask; in cl7500_unmask_irq_a() local 58 val = iomd_readb(IOMD_IRQMASKA); in cl7500_unmask_irq_a() 59 iomd_writeb(val | mask, IOMD_IRQMASKA); in cl7500_unmask_irq_a() 64 unsigned int val, mask; in cl7500_mask_irq_b() local [all …]
|
/linux-2.4.37.9/arch/mips/baget/ |
D | setup.c | 17 #define CACHEABLE_STR(val) ((val) ? "not cached" : "cached") argument 23 unsigned short val, decode = vac_inw(VAC_DECODE_CTRL); in vac_show() local 90 val = vac_inw(regs[i]); in vac_show() 95 region_mode[VAC_REG_MODE(val)], in vac_show() 96 asiz[VAC_REG_ASIZ_VAL(val)], in vac_show() 97 ((val & VAC_REG_WORD) ? "D16" : "D32"), in vac_show() 98 CACHEABLE_STR(val&VAC_A24_A24_CACHINH)); in vac_show() 111 val = vac_inw(VAC_EPROMCS_CTRL); in vac_show() 114 VAC_CTRL_DELAY_DSACKI_VAL(val), in vac_show() 115 state[val & (VAC_CTRL_IORD|VAC_CTRL_IOWR)], in vac_show() [all …]
|
/linux-2.4.37.9/arch/m68k/atari/ |
D | time.c | 57 static void mste_read(struct MSTE_RTC *val) in mste_read() argument 59 #define COPY(v) val->v=(mste_rtc.v & 0xf) in mste_read() 67 } while (val->sec_ones != (mste_rtc.sec_ones & 0xf)); in mste_read() 71 static void mste_write(struct MSTE_RTC *val) in mste_write() argument 73 #define COPY(v) mste_rtc.v=val->v in mste_write() 81 } while (val->sec_ones != (mste_rtc.sec_ones & 0xf)); in mste_write() 92 #define RTC_WRITE(reg,val) \ argument 95 tt_rtc.data = (val); \ 103 struct MSTE_RTC val; in atari_mste_gettod() local 109 mste_read(&val); in atari_mste_gettod() [all …]
|
/linux-2.4.37.9/drivers/video/ |
D | vga.h | 33 #define outb(port, val) do { } while (0) argument 34 #define outw(port, val) do { } while (0) argument 200 static inline void vga_io_w (unsigned short port, unsigned char val) in vga_io_w() argument 202 outb (val, port); in vga_io_w() 206 unsigned char val) in vga_io_w_fast() argument 208 outw (VGA_OUT16VAL (val, reg), port); in vga_io_w_fast() 216 static inline void vga_mm_w (caddr_t regbase, unsigned short port, unsigned char val) in vga_mm_w() argument 218 writeb (val, regbase + port); in vga_mm_w() 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() [all …]
|
/linux-2.4.37.9/drivers/sound/emu10k1/ |
D | mixer.c | 211 emu10k1_writefn0(card, ctl->val[0], ctl->val[1]); in emu10k1_private_mixer() 215 if (ctl->val[1] >= 0x40 || ctl->val[0] > 0xff) { in emu10k1_private_mixer() 220 if ((ctl->val[0] & 0x7ff) > 0x3f) in emu10k1_private_mixer() 221 ctl->val[1] = 0x00; in emu10k1_private_mixer() 223 sblive_writeptr(card, ctl->val[0], ctl->val[1], ctl->val[2]); in emu10k1_private_mixer() 228 ctl->val[2] = emu10k1_readfn0(card, ctl->val[0]); in emu10k1_private_mixer() 236 if (ctl->val[1] >= 0x40 || (ctl->val[0] & 0x7ff) > 0xff) { in emu10k1_private_mixer() 241 if ((ctl->val[0] & 0x7ff) > 0x3f) in emu10k1_private_mixer() 242 ctl->val[1] = 0x00; in emu10k1_private_mixer() 244 ctl->val[2] = sblive_readptr(card, ctl->val[0], ctl->val[1]); in emu10k1_private_mixer() [all …]
|
/linux-2.4.37.9/include/asm-arm/arch-rpc/ |
D | irq.h | 21 unsigned int val, mask; in rpc_mask_irq_ack_a() local 24 val = iomd_readb(IOMD_IRQMASKA); in rpc_mask_irq_ack_a() 25 iomd_writeb(val & ~mask, IOMD_IRQMASKA); in rpc_mask_irq_ack_a() 31 unsigned int val, mask; in rpc_mask_irq_a() local 34 val = iomd_readb(IOMD_IRQMASKA); in rpc_mask_irq_a() 35 iomd_writeb(val & ~mask, IOMD_IRQMASKA); in rpc_mask_irq_a() 40 unsigned int val, mask; in rpc_unmask_irq_a() local 43 val = iomd_readb(IOMD_IRQMASKA); in rpc_unmask_irq_a() 44 iomd_writeb(val | mask, IOMD_IRQMASKA); in rpc_unmask_irq_a() 49 unsigned int val, mask; in rpc_mask_irq_b() local [all …]
|
/linux-2.4.37.9/drivers/net/pcmcia/ |
D | xircom_cb.c | 506 unsigned int val; in initialize_card() local 514 val = inl(card->io_port + CSR0); in initialize_card() 515 val |= 0x01; /* Software reset */ in initialize_card() 516 outl(val, card->io_port + CSR0); in initialize_card() 520 val = inl(card->io_port + CSR0); in initialize_card() 521 val &= ~0x01; /* disable Software reset */ in initialize_card() 522 outl(val, card->io_port + CSR0); in initialize_card() 525 val = 0; /* Value 0x00 is a safe and conservative value in initialize_card() 527 outl(val, card->io_port + CSR0); in initialize_card() 547 unsigned int val; in trigger_transmit() local [all …]
|
/linux-2.4.37.9/arch/sh/kernel/ |
D | rtc-snapgear.c | 55 static void ds1302_sendbits(unsigned int val) in ds1302_sendbits() argument 59 for (i = 8; (i); i--, val >>= 1) { in ds1302_sendbits() 60 set_dp((get_dp() & ~RTC_IODATA) | ((val & 0x1) ? RTC_IODATA : 0)); in ds1302_sendbits() 68 unsigned int val; in ds1302_recvbits() local 71 for (i = 0, val = 0; (i < 8); i++) { in ds1302_recvbits() 72 val |= (((get_dp() & RTC_IODATA) ? 1 : 0) << i); in ds1302_recvbits() 76 return(val); in ds1302_recvbits() 81 unsigned int val; in ds1302_readbyte() local 95 val = ds1302_recvbits(); in ds1302_readbyte() 99 return(val); in ds1302_readbyte() [all …]
|
/linux-2.4.37.9/arch/mips/pmc-sierra/yosemite/ |
D | i2c-yosemite.c | 59 unsigned long val = 0; in titan_i2c_poll() local 62 val = TITAN_I2C_READ(TITAN_I2C_COMMAND); in titan_i2c_poll() 64 if ( !(val & 0x8000)) in titan_i2c_poll() 79 unsigned long reg_val, val; in titan_i2c_xfer() local 143 val = TITAN_I2C_READ(TITAN_I2C_INTERRUPTS); in titan_i2c_xfer() 144 if (val & 0x0020) in titan_i2c_xfer() 147 if (val & 0x0040) in titan_i2c_xfer() 150 if (val & 0x0080) in titan_i2c_xfer() 161 unsigned int val; in titan_i2c_init() local 172 val = TITAN_I2C_READ(TITAN_I2C_SCMB_CLOCK_A); in titan_i2c_init() [all …]
|
/linux-2.4.37.9/arch/arm/mm/ |
D | alignment.c | 170 #define __get8_unaligned_check(ins,val,addr,err) \ argument 183 : "=r" (err), "=&r" (val), "=r" (addr) \ 186 #define __get16_unaligned_check(ins,val,addr) \ argument 189 __get8_unaligned_check(ins,val,a,err); \ 191 val |= v << 8; \ 196 #define get16_unaligned_check(val,addr) \ argument 197 __get16_unaligned_check("ldrb",val,addr) 199 #define get16t_unaligned_check(val,addr) \ argument 200 __get16_unaligned_check("ldrbt",val,addr) 202 #define __get32_unaligned_check(ins,val,addr) \ argument [all …]
|
/linux-2.4.37.9/drivers/net/irda/ |
D | via-ircc.h | 164 #define GetBit(val,bit) val = (unsigned char) ((val>>bit) & 0x1) argument 166 #define SetBit(val,bit) val= (unsigned char ) (val | (0x1 << bit)) argument 168 #define ResetBit(val,bit) val= (unsigned char ) (val & ~(0x1 << bit)) argument 455 #define CRC16(BaseAddr,val) WriteRegBit(BaseAddr,I_CF_L_0,7,val) //0 for 32 CRC argument 462 #define SIRFilter(BaseAddr,val) WriteRegBit(BaseAddr,I_CF_L_0,3,val) argument 463 #define Filter(BaseAddr,val) WriteRegBit(BaseAddr,I_CF_L_0,2,val) argument 464 #define InvertTX(BaseAddr,val) WriteRegBit(BaseAddr,I_CF_L_0,1,val) argument 465 #define InvertRX(BaseAddr,val) WriteRegBit(BaseAddr,I_CF_L_0,0,val) argument 467 #define EnableTX(BaseAddr,val) WriteRegBit(BaseAddr,I_CF_H_0,4,val) argument 468 #define EnableRX(BaseAddr,val) WriteRegBit(BaseAddr,I_CF_H_0,3,val) argument [all …]
|
/linux-2.4.37.9/arch/ppc/boot/common/ |
D | mpc10x_memory.c | 34 #define MPC10X_CFG_read(val, addr, type, op) *val = op((type)(addr)) argument 35 #define MPC10X_CFG_write(val, addr, type, op) op((type *)(addr), (val)) argument 41 type val) \ 46 MPC10X_CFG_##rw(val, cfg_data + (offset & mask), type, op); \ 61 unsigned int *config_addr, *config_data, val; in mpc10x_get_mem_size() local 88 PCI_DEVFN(0,0), offset, &val); in mpc10x_get_mem_size() 89 start = (val >> ((i & 3) << 3)) & 0xff; in mpc10x_get_mem_size() 93 PCI_DEVFN(0,0), offset, &val); in mpc10x_get_mem_size() 94 val = (val >> ((i & 3) << 3)) & 0x03; in mpc10x_get_mem_size() 95 start = (val << 28) | (start << 20); in mpc10x_get_mem_size() [all …]
|
/linux-2.4.37.9/include/asm-arm/arch-arc/ |
D | irq.h | 33 unsigned int val, mask; in arc_mask_irq_ack_a() local 37 val = ioc_readb(IOC_IRQMASKA); in arc_mask_irq_ack_a() 38 ioc_writeb(val & ~mask, IOC_IRQMASKA); in arc_mask_irq_ack_a() 45 unsigned int val, mask; in arc_mask_irq_a() local 49 val = ioc_readb(IOC_IRQMASKA); in arc_mask_irq_a() 50 ioc_writeb(val & ~mask, IOC_IRQMASKA); in arc_mask_irq_a() 56 unsigned int val, mask; in arc_unmask_irq_a() local 60 val = ioc_readb(IOC_IRQMASKA); in arc_unmask_irq_a() 61 ioc_writeb(val | mask, IOC_IRQMASKA); in arc_unmask_irq_a() 67 unsigned int val, mask; in arc_mask_irq_b() local [all …]
|
/linux-2.4.37.9/drivers/sound/ |
D | ics2101.c | 121 int val; in ics2101_mixer_ioctl() local 126 if (get_user(val, (int *)arg)) in ics2101_mixer_ioctl() 133 val = set_volumes(DEV_MIC, val); in ics2101_mixer_ioctl() 137 val = set_volumes(DEV_CD, val); in ics2101_mixer_ioctl() 141 val = set_volumes(DEV_LINE, val); in ics2101_mixer_ioctl() 145 val = set_volumes(DEV_GF1, val); in ics2101_mixer_ioctl() 149 val = set_volumes(DEV_VOL, val); in ics2101_mixer_ioctl() 155 return put_user(val, (int *)arg); in ics2101_mixer_ioctl() 165 val = MIX_DEVS; in ics2101_mixer_ioctl() 169 val = SOUND_MASK_LINE | SOUND_MASK_CD | SOUND_MASK_SYNTH | SOUND_MASK_VOLUME | SOUND_MASK_MIC; in ics2101_mixer_ioctl() [all …]
|
/linux-2.4.37.9/include/asm-ppc/ |
D | byteorder.h | 12 unsigned val; in ld_le16() local 14 __asm__ __volatile__ ("lhbrx %0,0,%1" : "=r" (val) : "r" (addr), "m" (*addr)); in ld_le16() 15 return val; in ld_le16() 18 extern __inline__ void st_le16(volatile unsigned short *addr, const unsigned val) in st_le16() argument 20 __asm__ __volatile__ ("sthbrx %1,0,%2" : "=m" (*addr) : "r" (val), "r" (addr)); in st_le16() 25 unsigned val; in ld_le32() local 27 __asm__ __volatile__ ("lwbrx %0,0,%1" : "=r" (val) : "r" (addr), "m" (*addr)); in ld_le32() 28 return val; in ld_le32() 31 extern __inline__ void st_le32(volatile unsigned *addr, const unsigned val) in st_le32() argument 33 __asm__ __volatile__ ("stwbrx %1,0,%2" : "=m" (*addr) : "r" (val), "r" (addr)); in st_le32() [all …]
|
/linux-2.4.37.9/include/linux/mtd/ |
D | cfi.h | 332 cfi_word val = 0; in cfi_build_cmd() local 336 val = cmd; in cfi_build_cmd() 340 val = cpu_to_cfi16(cmd); in cfi_build_cmd() 343 val = cpu_to_cfi16((cmd << 8) | cmd); in cfi_build_cmd() 348 val = cpu_to_cfi32(cmd); in cfi_build_cmd() 351 val = cpu_to_cfi32((cmd << 16) | cmd); in cfi_build_cmd() 354 val = (cmd << 16) | cmd; in cfi_build_cmd() 355 val = cpu_to_cfi32((val << 8) | val); in cfi_build_cmd() 361 val = cpu_to_cfi64(cmd); in cfi_build_cmd() 364 val = cmd; in cfi_build_cmd() [all …]
|