tag | line | file | source code |
addr | 67 | drivers/FPU-emu/fpu_proto.h | struct address *addr, |
addr | 70 | drivers/FPU-emu/fpu_proto.h | struct address *addr, |
addr | 114 | drivers/FPU-emu/fpu_proto.h | extern int reg_load_extended(long double *addr, FPU_REG *loaded_data); |
addr | 215 | drivers/FPU-emu/get_address.c | struct address *addr, |
addr | 232 | drivers/FPU-emu/get_address.c | addr->selector = FPU_DS; /* Default, for 32 bit non-segmented mode. */ |
addr | 254 | drivers/FPU-emu/get_address.c | addr->offset = address; |
addr | 261 | drivers/FPU-emu/get_address.c | addr->offset = address; |
addr | 287 | drivers/FPU-emu/get_address.c | addr->offset = address; |
addr | 295 | drivers/FPU-emu/get_address.c | (unsigned short *)&(addr->selector)); |
addr | 300 | drivers/FPU-emu/get_address.c | (unsigned short *)&(addr->selector), address); |
addr | 311 | drivers/FPU-emu/get_address.c | struct address *addr, |
addr | 327 | drivers/FPU-emu/get_address.c | addr->selector = FPU_DS; /* Default, for 32 bit non-segmented mode. */ |
addr | 403 | drivers/FPU-emu/get_address.c | addr->offset = address; |
addr | 411 | drivers/FPU-emu/get_address.c | (unsigned short *)&(addr->selector)); |
addr | 416 | drivers/FPU-emu/get_address.c | (unsigned short *)&(addr->selector), address); |
addr | 2733 | drivers/block/floppy.c | #define CMOS_READ(addr) ({ \ |
addr | 2734 | drivers/block/floppy.c | outb_p(addr,0x70); \ |
addr | 52 | drivers/block/hd.c | static inline unsigned char CMOS_READ(unsigned char addr) |
addr | 54 | drivers/block/hd.c | outb_p(addr,0x70); |
addr | 34 | drivers/block/ramdisk.c | char *addr; |
addr | 38 | drivers/block/ramdisk.c | addr = rd_start + (CURRENT->sector << 9); |
addr | 42 | drivers/block/ramdisk.c | (addr+len > rd_start+rd_length)) { |
addr | 47 | drivers/block/ramdisk.c | (void ) memcpy(addr, |
addr | 52 | drivers/block/ramdisk.c | addr, |
addr | 2684 | drivers/block/sbpcd.c | block=msf2lba(&read_audio.addr.msf.minute); |
addr | 2686 | drivers/block/sbpcd.c | block=read_audio.addr.lba; |
addr | 3458 | drivers/block/sbpcd.c | int addr[2]={1, CDROM_PORT}; |
addr | 3487 | drivers/block/sbpcd.c | addr[1]=autoprobe[port_index]; |
addr | 3488 | drivers/block/sbpcd.c | if (check_region(addr[1],4)) continue; |
addr | 3493 | drivers/block/sbpcd.c | sbpcd_setup(type, addr); |
addr | 61 | drivers/net/3c503.c | int *addr, addrs[] = { 0xddffe, 0xd9ffe, 0xcdffe, 0xc9ffe, 0}; |
addr | 69 | drivers/net/3c503.c | for (addr = addrs; *addr; addr++) { |
addr | 71 | drivers/net/3c503.c | unsigned int base_bits = *(unsigned char *)*addr; |
addr | 1375 | drivers/net/3c505.c | static int elp_sense(int addr) |
addr | 1378 | drivers/net/3c505.c | byte orig_HCR=INB(addr+PORT_CONTROL), |
addr | 1379 | drivers/net/3c505.c | orig_HSR=INB(addr+PORT_STATUS); |
addr | 1389 | drivers/net/3c505.c | if ((INB(addr+PORT_STATUS) & ASF_PCB_MASK) != ASF_PCB_END) |
addr | 1394 | drivers/net/3c505.c | OUTB(orig_HCR & ~CONTROL_DIR,addr+PORT_CONTROL); |
addr | 1398 | drivers/net/3c505.c | if (INB(addr+PORT_STATUS) & STATUS_DIR) { |
addr | 1399 | drivers/net/3c505.c | OUTB(orig_HCR,addr+PORT_CONTROL); |
addr | 1404 | drivers/net/3c505.c | OUTB(orig_HCR | CONTROL_DIR,addr+PORT_CONTROL); |
addr | 1408 | drivers/net/3c505.c | if (!(INB(addr+PORT_STATUS) & STATUS_DIR)) { |
addr | 1409 | drivers/net/3c505.c | OUTB(orig_HCR,addr+PORT_CONTROL); |
addr | 1424 | drivers/net/3c505.c | int idx=0, addr; |
addr | 1428 | drivers/net/3c505.c | if ( (addr=dev->base_addr) ) { /* dev->base_addr == 0 ==> plain autodetect */ |
addr | 1430 | drivers/net/3c505.c | printk(search_msg, dev->name, addr); |
addr | 1431 | drivers/net/3c505.c | if (elp_sense(addr) == 0) |
addr | 1435 | drivers/net/3c505.c | return addr; |
addr | 1438 | drivers/net/3c505.c | } else while ( (addr=addr_list[idx++]) ) { |
addr | 1440 | drivers/net/3c505.c | printk(search_msg, dev->name, addr); |
addr | 1441 | drivers/net/3c505.c | if (elp_sense(addr) == 0) { |
addr | 1444 | drivers/net/3c505.c | return addr; |
addr | 89 | drivers/net/3c509.c | static void update_stats(int addr, struct device *dev); |
addr | 40 | drivers/net/apricot.c | #define check_region(addr, size) 0 |
addr | 41 | drivers/net/apricot.c | #define snarf_region(addr, size) do ; while(0) |
addr | 112 | drivers/net/atp.c | #define kfree_skbmem(addr, size) kfree_s(addr,size); |
addr | 297 | drivers/net/de600.c | #define de600_setup_address(addr,type) ( \ |
addr | 298 | drivers/net/de600.c | outb_p((((addr) << 4) & 0xf0) | type , DATA_PORT), \ |
addr | 299 | drivers/net/de600.c | outb_p(( (addr) & 0xf0) | type | HI_NIBBLE, DATA_PORT), \ |
addr | 300 | drivers/net/de600.c | outb_p((((addr) >> 4) & 0xf0) | type , DATA_PORT), \ |
addr | 301 | drivers/net/de600.c | outb_p((((addr) >> 8) & 0xf0) | type | HI_NIBBLE, DATA_PORT)) |
addr | 228 | drivers/net/hp.c | int addr = (high << 8) + low; |
addr | 230 | drivers/net/hp.c | if (((ring_offset + xfer_count) & 0xff) != (addr & 0xff)) |
addr | 232 | drivers/net/hp.c | dev->name, ring_offset + xfer_count, addr); |
addr | 286 | drivers/net/hp.c | int addr = (high << 8) + low; |
addr | 287 | drivers/net/hp.c | if ((start_page << 8) + count != addr) |
addr | 289 | drivers/net/hp.c | dev->name, (start_page << 8) + count, addr); |
addr | 317 | drivers/net/ne.c | int addr, tries = 20; |
addr | 323 | drivers/net/ne.c | addr = (high << 8) + low; |
addr | 330 | drivers/net/ne.c | dev->name, ring_offset + xfer_count, addr); |
addr | 392 | drivers/net/ne.c | int addr, tries = 20; |
addr | 398 | drivers/net/ne.c | addr = (high << 8) + low; |
addr | 399 | drivers/net/ne.c | if ((start_page << 8) + count == addr) |
addr | 405 | drivers/net/ne.c | dev->name, (start_page << 8) + count, addr); |
addr | 120 | drivers/net/ppp.c | static void ppp_add_arp(unsigned long addr, struct sk_buff *skb, |
addr | 1833 | drivers/net/ppp.c | ppp_add_arp(unsigned long addr, struct sk_buff *skb, struct device *dev) |
addr | 923 | drivers/net/slip.c | int sl_set_mac_address(struct device *dev, void *addr) |
addr | 925 | drivers/net/slip.c | int err=verify_area(VERIFY_READ,addr,7); |
addr | 928 | drivers/net/slip.c | memcpy_fromfs(dev->dev_addr,addr,7); /* addr is an AX.25 shifted ASCII mac address */ |
addr | 932 | drivers/net/slip.c | static int sl_set_dev_mac_address(struct device *dev, void *addr) |
addr | 934 | drivers/net/slip.c | memcpy(dev->dev_addr,addr,7); |
addr | 89 | drivers/net/smc-ultra.c | unsigned char num_pages, irqreg, addr, reg4 = inb(ioaddr + 4) & 0x7f; |
addr | 111 | drivers/net/smc-ultra.c | addr = inb(ioaddr + 0xb); |
addr | 145 | drivers/net/smc-ultra.c | dev->mem_start = ((addr & 0x0f) << 13) + addr_tbl[(addr >> 6) & 3] ; |
addr | 146 | drivers/net/smc-ultra.c | num_pages = num_pages_tbl[(addr >> 4) & 3]; |
addr | 368 | drivers/net/znet.c | unsigned addr = inb(dma_port); |
addr | 369 | drivers/net/znet.c | addr |= inb(dma_port) << 8; |
addr | 370 | drivers/net/znet.c | addr <<= 1; |
addr | 371 | drivers/net/znet.c | if (((int)zn.tx_cur & 0x1ffff) != addr) |
addr | 373 | drivers/net/znet.c | (int)zn.tx_cur & 0xffff, addr); |
addr | 374 | drivers/net/znet.c | zn.tx_cur = (ushort *)(((int)zn.tx_cur & 0xfe0000) | addr); |
addr | 689 | drivers/net/znet.c | unsigned addr = inb(dma_port); |
addr | 690 | drivers/net/znet.c | addr |= inb(dma_port) << 8; |
addr | 691 | drivers/net/znet.c | printk("Addr: %04x cnt:%3x...", addr<<1, get_dma_residue(zn.tx_dma)); |
addr | 1947 | drivers/scsi/53c7,8xx.c | memcpy ((void *) bp->addr, (void *) bp->old, sizeof(bp->old)); |
addr | 1978 | drivers/scsi/53c7,8xx.c | bp->addr, bp->old[0], bp->old[1]); |
addr | 1982 | drivers/scsi/53c7,8xx.c | sprintf(buf + len, "%08x\n", * (long *) bp->addr); |
addr | 527 | drivers/scsi/ultrastor.c | unsigned short addr = (i << 12) | ULTRASTOR_24F_PORT; |
addr | 529 | drivers/scsi/ultrastor.c | if (inb(addr) != US24F_PRODUCT_ID_0 && |
addr | 530 | drivers/scsi/ultrastor.c | inb(addr+1) != US24F_PRODUCT_ID_1 && |
addr | 531 | drivers/scsi/ultrastor.c | inb(addr+2) != US24F_PRODUCT_ID_2) |
addr | 534 | drivers/scsi/ultrastor.c | config.revision = inb(addr+3); |
addr | 536 | drivers/scsi/ultrastor.c | if (! (inb(addr+4) & 1)) |
addr | 546 | drivers/scsi/ultrastor.c | config_1 = inb(addr + 5); |
addr | 574 | drivers/scsi/ultrastor.c | config.port_address = addr; |
addr | 575 | drivers/scsi/ultrastor.c | config.doorbell_address = addr + 12; |
addr | 576 | drivers/scsi/ultrastor.c | config.ogm_address = addr + 0x17; |
addr | 577 | drivers/scsi/ultrastor.c | config.icm_address = addr + 0x1C; |
addr | 578 | drivers/scsi/ultrastor.c | config_2 = inb(addr + 7); |
addr | 604 | drivers/scsi/ultrastor.c | outb(0, addr + 0x16); |
addr | 605 | drivers/scsi/ultrastor.c | outb(0, addr + 0x1B); |
addr | 609 | drivers/scsi/ultrastor.c | outb(ultrastor_bus_reset ? 0xc2 : 0x82, LCL_DOORBELL_MASK(addr+12)); |
addr | 610 | drivers/scsi/ultrastor.c | outb(0x02, SYS_DOORBELL_MASK(addr+12)); |
addr | 156 | drivers/sound/dev_table.h | int (*load_patch) (int dev, int format, snd_rw_buf *addr, |
addr | 164 | drivers/sound/gus_wave.c | static void gus_poke (long addr, unsigned char data); |
addr | 207 | drivers/sound/gus_wave.c | gus_poke (long addr, unsigned char data) |
addr | 213 | drivers/sound/gus_wave.c | OUTB (addr & 0xff, u_DataLo); |
addr | 214 | drivers/sound/gus_wave.c | OUTB ((addr >> 8) & 0xff, u_DataHi); |
addr | 217 | drivers/sound/gus_wave.c | OUTB ((addr >> 16) & 0xff, u_DataHi); |
addr | 223 | drivers/sound/gus_wave.c | gus_peek (long addr) |
addr | 230 | drivers/sound/gus_wave.c | OUTB (addr & 0xff, u_DataLo); |
addr | 231 | drivers/sound/gus_wave.c | OUTB ((addr >> 8) & 0xff, u_DataHi); |
addr | 234 | drivers/sound/gus_wave.c | OUTB ((addr >> 16) & 0xff, u_DataHi); |
addr | 1472 | drivers/sound/gus_wave.c | guswave_load_patch (int dev, int format, snd_rw_buf * addr, |
addr | 1508 | drivers/sound/gus_wave.c | COPY_FROM_USER (&((char *) &patch)[offs], addr, offs, sizeof_patch - offs); |
addr | 1631 | drivers/sound/gus_wave.c | GET_BYTE_FROM_USER (data, addr, sizeof_patch + i); |
addr | 1650 | drivers/sound/gus_wave.c | addr, sizeof_patch + src_offs, |
addr | 297 | drivers/sound/midi_synth.c | midi_synth_load_patch (int dev, int format, snd_rw_buf * addr, |
addr | 329 | drivers/sound/midi_synth.c | COPY_FROM_USER (&((char *) &sysex)[offs], addr, offs, sizeof (struct sysex_info) - offs); |
addr | 347 | drivers/sound/midi_synth.c | GET_BYTE_FROM_USER (data, addr, sizeof (struct sysex_info) + i); |
addr | 10 | drivers/sound/midi_synth.h | int midi_synth_load_patch (int dev, int format, snd_rw_buf * addr, |
addr | 88 | drivers/sound/opl3.c | static void opl3_command (int io_addr, unsigned int addr, unsigned int val); |
addr | 783 | drivers/sound/opl3.c | opl3_command (int io_addr, unsigned int addr, unsigned int val) |
addr | 792 | drivers/sound/opl3.c | OUTB ((unsigned char) (addr & 0xff), io_addr); /* |
addr | 892 | drivers/sound/opl3.c | opl3_load_patch (int dev, int format, snd_rw_buf * addr, |
addr | 903 | drivers/sound/opl3.c | COPY_FROM_USER (&((char *) &ins)[offs], (char *) addr, offs, sizeof (ins) - offs); |
addr | 60 | drivers/sound/os.h | #define GET_BYTE_FROM_USER(target, addr, offs) target = get_fs_byte(&((addr)[offs])) |
addr | 61 | drivers/sound/os.h | #define GET_SHORT_FROM_USER(target, addr, offs) target = get_fs_word(&((addr)[offs])) |
addr | 62 | drivers/sound/os.h | #define GET_WORD_FROM_USER(target, addr, offs) target = get_fs_long((long*)&((addr)[offs])) |
addr | 63 | drivers/sound/os.h | #define PUT_WORD_TO_USER(addr, offs, data) put_fs_long(data, (long*)&((addr)[offs])) |
addr | 121 | drivers/sound/os.h | #define KERNEL_FREE(addr) kfree(addr) |
addr | 149 | drivers/sound/pss.c | pss_setaddr (int addr, int configAddr) |
addr | 155 | drivers/sound/pss.c | val |= (addr << 4); |
addr | 102 | drivers/sound/sound_calls.h | int snd_ioctl_return(int *addr, int value); |
addr | 51 | drivers/sound/sound_timer.c | timer_command (unsigned int addr, unsigned int val) |
addr | 55 | drivers/sound/sound_timer.c | OUTB ((unsigned char) (addr & 0xff), select_addr); |
addr | 44 | drivers/sound/soundcard.c | snd_ioctl_return (int *addr, int value) |
addr | 49 | drivers/sound/soundcard.c | PUT_WORD_TO_USER (addr, 0, value); |
addr | 274 | drivers/sound/soundcard.c | valid_dma_page (unsigned long addr, unsigned long dev_buffsize, unsigned long dma_pagesize) |
addr | 276 | drivers/sound/soundcard.c | if (((addr & (dma_pagesize - 1)) + dev_buffsize) <= dma_pagesize) |
addr | 141 | fs/exec.c | #define DUMP_WRITE(addr,nr) \ |
addr | 142 | fs/exec.c | while (file.f_op->write(inode,&file,(char *)(addr),(nr)) != (nr)) goto close_coredump |
addr | 465 | fs/exec.c | char * addr, unsigned long count) |
addr | 490 | fs/exec.c | result = verify_area(VERIFY_WRITE, addr, count); |
addr | 494 | fs/exec.c | result = file.f_op->read(inode, &file, addr, count); |
addr | 40 | fs/ext/freelists.c | #define clear_block(addr) \ |
addr | 45 | fs/ext/freelists.c | :"a" (0),"c" (BLOCK_SIZE/4),"D" ((long) (addr)):"cx","di") |
addr | 235 | fs/hpfs/hpfs_fs.c | static int zerop(void *addr, unsigned len); |
addr | 529 | fs/hpfs/hpfs_fs.c | static int zerop(void *addr, unsigned len) |
addr | 531 | fs/hpfs/hpfs_fs.c | unsigned char *p = addr; |
addr | 17 | fs/minix/bitmap.c | #define clear_block(addr) \ |
addr | 22 | fs/minix/bitmap.c | :"a" (0),"c" (BLOCK_SIZE/4),"D" ((long) (addr)):"cx","di") |
addr | 24 | fs/minix/bitmap.c | #define find_first_zero(addr) ({ \ |
addr | 36 | fs/minix/bitmap.c | :"=c" (__res):"0" (0),"S" (addr):"ax","dx","si"); \ |
addr | 212 | fs/proc/array.c | unsigned long addr; |
addr | 219 | fs/proc/array.c | addr = get_phys_addr(p, start); |
addr | 220 | fs/proc/array.c | if (!addr) |
addr | 223 | fs/proc/array.c | c = *(char *) addr; |
addr | 230 | fs/proc/array.c | addr++; |
addr | 234 | fs/proc/array.c | } while (addr & ~PAGE_MASK); |
addr | 27 | fs/proc/mem.c | unsigned long addr, pid, cr3; |
addr | 44 | fs/proc/mem.c | addr = file->f_pos; |
addr | 49 | fs/proc/mem.c | pte = *PAGE_DIR_OFFSET(cr3,addr); |
addr | 53 | fs/proc/mem.c | pte += PAGE_PTR(addr); |
addr | 58 | fs/proc/mem.c | page += addr & ~PAGE_MASK; |
addr | 59 | fs/proc/mem.c | i = PAGE_SIZE-(addr & ~PAGE_MASK); |
addr | 63 | fs/proc/mem.c | addr += i; |
addr | 67 | fs/proc/mem.c | file->f_pos = addr; |
addr | 75 | fs/proc/mem.c | unsigned long addr, pid, cr3; |
addr | 82 | fs/proc/mem.c | addr = file->f_pos; |
addr | 97 | fs/proc/mem.c | pte = *PAGE_DIR_OFFSET(cr3,addr); |
addr | 101 | fs/proc/mem.c | pte += PAGE_PTR(addr); |
addr | 106 | fs/proc/mem.c | do_wp_page(0,addr,current,0); |
addr | 110 | fs/proc/mem.c | page += addr & ~PAGE_MASK; |
addr | 111 | fs/proc/mem.c | i = PAGE_SIZE-(addr & ~PAGE_MASK); |
addr | 115 | fs/proc/mem.c | addr += i; |
addr | 119 | fs/proc/mem.c | file->f_pos = addr; |
addr | 24 | fs/xiafs/bitmap.c | #define clear_bit(nr,addr) ({\ |
addr | 27 | fs/xiafs/bitmap.c | "=q" (res):"r" (nr),"m" (*(addr))); \ |
addr | 81 | ibcs/binfmt_coff.c | int clear_memory (unsigned long addr, unsigned long size) |
addr | 85 | ibcs/binfmt_coff.c | size = (PAGE_SIZE - (addr & ~PAGE_MASK)) & ~PAGE_MASK; |
addr | 95 | ibcs/binfmt_coff.c | (void *) addr, size); |
addr | 102 | ibcs/binfmt_coff.c | put_fs_byte (0, addr++); |
addr | 19 | include/asm-generic/bitops.h | extern __inline__ int set_bit(int nr,int * addr) |
addr | 23 | include/asm-generic/bitops.h | addr += nr >> 5; |
addr | 26 | include/asm-generic/bitops.h | retval = (mask & *addr) != 0; |
addr | 27 | include/asm-generic/bitops.h | *addr |= mask; |
addr | 32 | include/asm-generic/bitops.h | extern __inline__ int clear_bit(int nr, int * addr) |
addr | 36 | include/asm-generic/bitops.h | addr += nr >> 5; |
addr | 39 | include/asm-generic/bitops.h | retval = (mask & *addr) != 0; |
addr | 40 | include/asm-generic/bitops.h | *addr &= ~mask; |
addr | 45 | include/asm-generic/bitops.h | extern __inline__ int test_bit(int nr, int * addr) |
addr | 49 | include/asm-generic/bitops.h | addr += nr >> 5; |
addr | 51 | include/asm-generic/bitops.h | return ((mask & *addr) != 0); |
addr | 20 | include/asm-i386/bitops.h | #define ADDR (*(struct __dummy *) addr) |
addr | 22 | include/asm-i386/bitops.h | extern __inline__ int set_bit(int nr, void * addr) |
addr | 32 | include/asm-i386/bitops.h | extern __inline__ int clear_bit(int nr, void * addr) |
addr | 42 | include/asm-i386/bitops.h | extern __inline__ int change_bit(int nr, void * addr) |
addr | 56 | include/asm-i386/bitops.h | extern __inline__ int test_bit(int nr, void * addr) |
addr | 69 | include/asm-i386/bitops.h | extern inline int find_first_zero_bit(void * addr, unsigned size) |
addr | 90 | include/asm-i386/bitops.h | :"c" ((size + 31) >> 5), "D" (addr), "b" (addr) |
addr | 95 | include/asm-i386/bitops.h | extern inline int find_next_zero_bit (void * addr, int size, int offset) |
addr | 97 | include/asm-i386/bitops.h | unsigned long * p = ((unsigned long *) addr) + (offset >> 5); |
addr | 119 | include/asm-i386/bitops.h | res = find_first_zero_bit (p, size - 32 * (p - (unsigned long *) addr)); |
addr | 69 | include/asm-i386/io.h | extern inline void ins##s(unsigned short port, void * addr, unsigned long count) \ |
addr | 71 | include/asm-i386/io.h | : "=D" (addr), "=c" (count) : "d" (port),"0" (addr),"1" (count)); } |
addr | 74 | include/asm-i386/io.h | extern inline void outs##s(unsigned short port, const void * addr, unsigned long count) \ |
addr | 76 | include/asm-i386/io.h | : "=S" (addr), "=c" (count) : "d" (port),"0" (addr),"1" (count)); } |
addr | 4 | include/asm-i386/segment.h | static inline unsigned char get_user_byte(const char * addr) |
addr | 8 | include/asm-i386/segment.h | __asm__ ("movb %%fs:%1,%0":"=q" (_v):"m" (*addr)); |
addr | 12 | include/asm-i386/segment.h | #define get_fs_byte(addr) get_user_byte((char *)(addr)) |
addr | 14 | include/asm-i386/segment.h | static inline unsigned short get_user_word(const short *addr) |
addr | 18 | include/asm-i386/segment.h | __asm__ ("movw %%fs:%1,%0":"=r" (_v):"m" (*addr)); |
addr | 22 | include/asm-i386/segment.h | #define get_fs_word(addr) get_user_word((short *)(addr)) |
addr | 24 | include/asm-i386/segment.h | static inline unsigned long get_user_long(const int *addr) |
addr | 28 | include/asm-i386/segment.h | __asm__ ("movl %%fs:%1,%0":"=r" (_v):"m" (*addr)); \ |
addr | 32 | include/asm-i386/segment.h | #define get_fs_long(addr) get_user_long((int *)(addr)) |
addr | 34 | include/asm-i386/segment.h | static inline void put_user_byte(char val,char *addr) |
addr | 36 | include/asm-i386/segment.h | __asm__ ("movb %0,%%fs:%1": /* no outputs */ :"iq" (val),"m" (*addr)); |
addr | 39 | include/asm-i386/segment.h | #define put_fs_byte(x,addr) put_user_byte((x),(char *)(addr)) |
addr | 41 | include/asm-i386/segment.h | static inline void put_user_word(short val,short * addr) |
addr | 43 | include/asm-i386/segment.h | __asm__ ("movw %0,%%fs:%1": /* no outputs */ :"ir" (val),"m" (*addr)); |
addr | 46 | include/asm-i386/segment.h | #define put_fs_word(x,addr) put_user_word((x),(short *)(addr)) |
addr | 48 | include/asm-i386/segment.h | static inline void put_user_long(unsigned long val,int * addr) |
addr | 50 | include/asm-i386/segment.h | __asm__ ("movl %0,%%fs:%1": /* no outputs */ :"ir" (val),"m" (*addr)); |
addr | 53 | include/asm-i386/segment.h | #define put_fs_long(x,addr) put_user_long((x),(int *)(addr)) |
addr | 491 | include/asm-i386/string.h | extern inline char * memscan(void * addr, unsigned char c, int size) |
addr | 494 | include/asm-i386/string.h | return addr; |
addr | 500 | include/asm-i386/string.h | : "=D" (addr), "=c" (size) |
addr | 501 | include/asm-i386/string.h | : "0" (addr), "1" (size), "a" (c)); |
addr | 502 | include/asm-i386/string.h | return addr; |
addr | 55 | include/asm-i386/system.h | #define _set_gate(gate_addr,type,dpl,addr) \ |
addr | 63 | include/asm-i386/system.h | "d" ((char *) (addr)),"a" (KERNEL_CS << 16) \ |
addr | 66 | include/asm-i386/system.h | #define set_intr_gate(n,addr) \ |
addr | 67 | include/asm-i386/system.h | _set_gate(&idt[n],14,0,addr) |
addr | 69 | include/asm-i386/system.h | #define set_trap_gate(n,addr) \ |
addr | 70 | include/asm-i386/system.h | _set_gate(&idt[n],15,0,addr) |
addr | 72 | include/asm-i386/system.h | #define set_system_gate(n,addr) \ |
addr | 73 | include/asm-i386/system.h | _set_gate(&idt[n],15,3,addr) |
addr | 75 | include/asm-i386/system.h | #define set_call_gate(a,addr) \ |
addr | 76 | include/asm-i386/system.h | _set_gate(a,12,3,addr) |
addr | 88 | include/asm-i386/system.h | #define _set_tssldt_desc(n,addr,limit,type) \ |
addr | 98 | include/asm-i386/system.h | :"a" (addr+0xc0000000), "m" (*(n)), "m" (*(n+2)), "m" (*(n+4)), \ |
addr | 102 | include/asm-i386/system.h | #define set_tss_desc(n,addr) _set_tssldt_desc(((char *) (n)),((int)(addr)),235,"0x89") |
addr | 103 | include/asm-i386/system.h | #define set_ldt_desc(n,addr,size) \ |
addr | 104 | include/asm-i386/system.h | _set_tssldt_desc(((char *) (n)),((int)(addr)),((size << 3) - 1),"0x82") |
addr | 80 | include/asm-mips/mipsregs.h | #define VPN(addr,pagesizeshift) ((addr) & ~((1 << (pagesizeshift))-1)) |
addr | 81 | include/asm-mips/mipsregs.h | #define PFN(addr,pagesizeshift) (((addr) & ((1 << (pagesizeshift))-1)) << 6) |
addr | 17 | include/asm-mips/segment.h | static inline unsigned char get_user_byte(const char * addr) |
addr | 21 | include/asm-mips/segment.h | __asm__ ("lbu\t%0,%1":"=r" (_v):"r" (*addr)); |
addr | 26 | include/asm-mips/segment.h | #define get_fs_byte(addr) get_user_byte((char *)(addr)) |
addr | 28 | include/asm-mips/segment.h | static inline unsigned short get_user_word(const short *addr) |
addr | 32 | include/asm-mips/segment.h | __asm__ ("lhu\t%0,%1":"=r" (_v):"r" (*addr)); |
addr | 37 | include/asm-mips/segment.h | #define get_fs_word(addr) get_user_word((short *)(addr)) |
addr | 39 | include/asm-mips/segment.h | static inline unsigned long get_user_long(const int *addr) |
addr | 43 | include/asm-mips/segment.h | __asm__ ("lwu\t%0,%1":"=r" (_v):"r" (*addr)); \ |
addr | 47 | include/asm-mips/segment.h | #define get_fs_long(addr) get_user_long((int *)(addr)) |
addr | 49 | include/asm-mips/segment.h | static inline unsigned long get_user_dlong(const int *addr) |
addr | 53 | include/asm-mips/segment.h | __asm__ ("ld\t%0,%1":"=r" (_v):"r" (*addr)); \ |
addr | 57 | include/asm-mips/segment.h | #define get_fs_dlong(addr) get_user_dlong((int *)(addr)) |
addr | 59 | include/asm-mips/segment.h | static inline void put_user_byte(char val,char *addr) |
addr | 61 | include/asm-mips/segment.h | __asm__ ("sb\t%0,%1": /* no outputs */ :"r" (val),"r" (*addr)); |
addr | 64 | include/asm-mips/segment.h | #define put_fs_byte(x,addr) put_user_byte((x),(char *)(addr)) |
addr | 66 | include/asm-mips/segment.h | static inline void put_user_word(short val,short * addr) |
addr | 68 | include/asm-mips/segment.h | __asm__ ("sh\t%0,%1": /* no outputs */ :"r" (val),"r" (*addr)); |
addr | 71 | include/asm-mips/segment.h | #define put_fs_word(x,addr) put_user_word((x),(short *)(addr)) |
addr | 73 | include/asm-mips/segment.h | static inline void put_user_long(unsigned long val,int * addr) |
addr | 75 | include/asm-mips/segment.h | __asm__ ("sw\t%0,%1": /* no outputs */ :"r" (val),"r" (*addr)); |
addr | 78 | include/asm-mips/segment.h | #define put_fs_long(x,addr) put_user_long((x),(int *)(addr)) |
addr | 80 | include/asm-mips/segment.h | static inline void put_user_dlong(unsigned long val,int * addr) |
addr | 82 | include/asm-mips/segment.h | __asm__ ("sd\t%0,%1": /* no outputs */ :"r" (val),"r" (*addr)); |
addr | 85 | include/asm-mips/segment.h | #define put_fs_dlong(x,addr) put_user_dlong((x),(int *)(addr)) |
addr | 43 | include/linux/binfmts.h | char * addr, unsigned long count); |
addr | 331 | include/linux/cdrom.h | } addr; /* frame address */ |
addr | 460 | include/linux/fs.h | extern unsigned long bread_page(unsigned long addr,dev_t dev,int b[],int size,int no_share); |
addr | 99 | include/linux/kd.h | char *addr; /* display mem address */ |
addr | 15 | include/linux/mc146818rtc.h | #define CMOS_READ(addr) ({ \ |
addr | 16 | include/linux/mc146818rtc.h | outb_p(addr|0x80,0x70); \ |
addr | 19 | include/linux/mc146818rtc.h | #define CMOS_WRITE(val, addr) ({ \ |
addr | 20 | include/linux/mc146818rtc.h | outb_p(addr|0x80,0x70); \ |
addr | 153 | include/linux/mm.h | #define free_page(addr) free_pages((addr),0) |
addr | 154 | include/linux/mm.h | extern void free_pages(unsigned long addr, unsigned long order); |
addr | 183 | include/linux/mm.h | extern void vfree(void * addr); |
addr | 184 | include/linux/mm.h | extern int vread(char *buf, char *addr, int count); |
addr | 195 | include/linux/mm.h | extern int do_mmap(struct file * file, unsigned long addr, unsigned long len, |
addr | 211 | include/linux/mm.h | #define MAP_NR(addr) ((addr) >> PAGE_SHIFT) |
addr | 262 | include/linux/mm.h | extern inline unsigned long in_swap_cache(unsigned long addr) |
addr | 264 | include/linux/mm.h | return swap_cache[addr >> PAGE_SHIFT]; |
addr | 267 | include/linux/mm.h | extern inline long find_in_swap_cache (unsigned long addr) |
addr | 275 | include/linux/mm.h | :"=m" (swap_cache[addr >> PAGE_SHIFT]), |
addr | 277 | include/linux/mm.h | :"0" (swap_cache[addr >> PAGE_SHIFT]), |
addr | 286 | include/linux/mm.h | extern inline int delete_from_swap_cache(unsigned long addr) |
addr | 294 | include/linux/mm.h | :"=m" (swap_cache[addr >> PAGE_SHIFT]), |
addr | 296 | include/linux/mm.h | :"0" (swap_cache[addr >> PAGE_SHIFT]), |
addr | 32 | include/linux/module.h | void *addr; |
addr | 53 | include/linux/module.h | void* addr; /* address of module */ |
addr | 70 | include/linux/module.h | #define GET_USE_COUNT(module) (* (int *) (module)->addr) |
addr | 139 | include/linux/netdevice.h | int (*set_mac_address)(struct device *dev, void *addr); |
addr | 170 | include/linux/netdevice.h | extern int ip_chk_addr(unsigned long addr); |
addr | 173 | include/linux/netdevice.h | extern unsigned long ip_get_mask(unsigned long addr); |
addr | 35 | include/linux/nfs_mount.h | struct sockaddr_in addr; /* 1 */ |
addr | 19 | include/linux/page.h | #define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK) |
addr | 425 | include/linux/sched.h | #define _set_base(addr,base) \ |
addr | 431 | include/linux/sched.h | :"m" (*((addr)+2)), \ |
addr | 432 | include/linux/sched.h | "m" (*((addr)+4)), \ |
addr | 433 | include/linux/sched.h | "m" (*((addr)+7)), \ |
addr | 437 | include/linux/sched.h | #define _set_limit(addr,limit) \ |
addr | 445 | include/linux/sched.h | :"m" (*(addr)), \ |
addr | 446 | include/linux/sched.h | "m" (*((addr)+6)), \ |
addr | 555 | include/linux/sched.h | static inline unsigned long _get_base(char * addr) |
addr | 563 | include/linux/sched.h | :"m" (*((addr)+2)), |
addr | 564 | include/linux/sched.h | "m" (*((addr)+4)), |
addr | 565 | include/linux/sched.h | "m" (*((addr)+7))); |
addr | 396 | ipc/shm.c | static int add_vm_area(unsigned long addr, unsigned long len, int readonly) |
addr | 403 | ipc/shm.c | do_munmap(addr, len); |
addr | 405 | ipc/shm.c | vma->vm_start = addr; |
addr | 406 | ipc/shm.c | vma->vm_end = addr + len; |
addr | 434 | ipc/shm.c | unsigned long addr; |
addr | 449 | ipc/shm.c | if (!(addr = (ulong) shmaddr)) { |
addr | 453 | ipc/shm.c | addr = SHM_RANGE_END; |
addr | 457 | ipc/shm.c | if (addr >= shmd->start) |
addr | 458 | ipc/shm.c | addr = shmd->start; |
addr | 460 | ipc/shm.c | addr = (addr - shp->shm_segsz) & PAGE_MASK; |
addr | 461 | ipc/shm.c | } else if (addr & (SHMLBA-1)) { |
addr | 463 | ipc/shm.c | addr &= ~(SHMLBA-1); /* round down */ |
addr | 467 | ipc/shm.c | if ((addr > current->mm->start_stack - 16384 - PAGE_SIZE*shp->shm_npages)) |
addr | 471 | ipc/shm.c | if (addr >= shmd->start && addr < shmd->end) |
addr | 473 | ipc/shm.c | if (addr + shp->shm_segsz >= shmd->start && |
addr | 474 | ipc/shm.c | addr + shp->shm_segsz < shmd->end) |
addr | 492 | ipc/shm.c | shmd->start = addr; |
addr | 493 | ipc/shm.c | shmd->end = addr + shp->shm_npages * PAGE_SIZE; |
addr | 517 | ipc/shm.c | return addr; |
addr | 518 | ipc/shm.c | put_fs_long (addr, raddr); |
addr | 32 | ipc/util.c | extern int sys_shmat (int shmid, char *shmaddr, int shmflg, ulong *addr); |
addr | 120 | kernel/module.c | void* addr; |
addr | 142 | kernel/module.c | if ((addr = vmalloc(npages * 4096)) == 0) { |
addr | 152 | kernel/module.c | mp->addr = addr; |
addr | 156 | kernel/module.c | * (int *) addr = 0; /* set use count to zero */ |
addr | 160 | kernel/module.c | mp->name, (unsigned long) mp->size, (unsigned long) mp->addr)); |
addr | 161 | kernel/module.c | return (int) addr; |
addr | 203 | kernel/module.c | memcpy_fromfs((char *)mp->addr + sizeof (int), code, codesize); |
addr | 204 | kernel/module.c | memset((char *)mp->addr + sizeof (int) + codesize, 0, |
addr | 340 | kernel/module.c | isym.value = (unsigned long)from->addr; |
addr | 437 | kernel/module.c | vfree(mp->addr); |
addr | 533 | kernel/module.c | (long)sym->addr, sym->name, mp->name); |
addr | 537 | kernel/module.c | (long)sym->addr, sym->name); |
addr | 85 | kernel/ptrace.c | static unsigned long get_long(struct vm_area_struct * vma, unsigned long addr) |
addr | 90 | kernel/ptrace.c | page = *PAGE_DIR_OFFSET(vma->vm_task->tss.cr3, addr); |
addr | 93 | kernel/ptrace.c | page += PAGE_PTR(addr); |
addr | 97 | kernel/ptrace.c | do_no_page(vma, addr, 0); |
addr | 104 | kernel/ptrace.c | page += addr & ~PAGE_MASK; |
addr | 117 | kernel/ptrace.c | static void put_long(struct vm_area_struct * vma, unsigned long addr, |
addr | 124 | kernel/ptrace.c | page = *PAGE_DIR_OFFSET(vma->vm_task->tss.cr3, addr); |
addr | 127 | kernel/ptrace.c | page += PAGE_PTR(addr); |
addr | 132 | kernel/ptrace.c | do_no_page(vma, addr, 0 /* PAGE_RW */); |
addr | 138 | kernel/ptrace.c | do_wp_page(vma, addr, PAGE_RW | PAGE_PRESENT); |
addr | 147 | kernel/ptrace.c | page += addr & ~PAGE_MASK; |
addr | 155 | kernel/ptrace.c | static struct vm_area_struct * find_vma(struct task_struct * tsk, unsigned long addr) |
addr | 159 | kernel/ptrace.c | addr &= PAGE_MASK; |
addr | 163 | kernel/ptrace.c | if (vma->vm_end > addr) |
addr | 166 | kernel/ptrace.c | if (vma->vm_start <= addr) |
addr | 170 | kernel/ptrace.c | if (vma->vm_end - addr > tsk->rlim[RLIMIT_STACK].rlim_cur) |
addr | 172 | kernel/ptrace.c | vma->vm_offset -= vma->vm_start - addr; |
addr | 173 | kernel/ptrace.c | vma->vm_start = addr; |
addr | 181 | kernel/ptrace.c | static int read_long(struct task_struct * tsk, unsigned long addr, |
addr | 184 | kernel/ptrace.c | struct vm_area_struct * vma = find_vma(tsk, addr); |
addr | 188 | kernel/ptrace.c | if ((addr & ~PAGE_MASK) > PAGE_SIZE-sizeof(long)) { |
addr | 192 | kernel/ptrace.c | if (addr + sizeof(long) >= vma->vm_end) { |
addr | 197 | kernel/ptrace.c | low = get_long(vma, addr & ~(sizeof(long)-1)); |
addr | 198 | kernel/ptrace.c | high = get_long(vma_high, (addr+sizeof(long)) & ~(sizeof(long)-1)); |
addr | 199 | kernel/ptrace.c | switch (addr & (sizeof(long)-1)) { |
addr | 215 | kernel/ptrace.c | *result = get_long(vma, addr); |
addr | 223 | kernel/ptrace.c | static int write_long(struct task_struct * tsk, unsigned long addr, |
addr | 226 | kernel/ptrace.c | struct vm_area_struct * vma = find_vma(tsk, addr); |
addr | 230 | kernel/ptrace.c | if ((addr & ~PAGE_MASK) > PAGE_SIZE-sizeof(long)) { |
addr | 234 | kernel/ptrace.c | if (addr + sizeof(long) >= vma->vm_end) { |
addr | 239 | kernel/ptrace.c | low = get_long(vma, addr & ~(sizeof(long)-1)); |
addr | 240 | kernel/ptrace.c | high = get_long(vma_high, (addr+sizeof(long)) & ~(sizeof(long)-1)); |
addr | 241 | kernel/ptrace.c | switch (addr & (sizeof(long)-1)) { |
addr | 264 | kernel/ptrace.c | put_long(vma, addr & ~(sizeof(long)-1),low); |
addr | 265 | kernel/ptrace.c | put_long(vma_high, (addr+sizeof(long)) & ~(sizeof(long)-1),high); |
addr | 267 | kernel/ptrace.c | put_long(vma, addr, data); |
addr | 271 | kernel/ptrace.c | asmlinkage int sys_ptrace(long request, long pid, long addr, long data) |
addr | 328 | kernel/ptrace.c | res = read_long(child, addr, &tmp); |
addr | 342 | kernel/ptrace.c | if ((addr & 3) || addr < 0 || |
addr | 343 | kernel/ptrace.c | addr > sizeof(struct user) - 3) |
addr | 350 | kernel/ptrace.c | if(addr < 17*sizeof(long)) { |
addr | 351 | kernel/ptrace.c | addr = addr >> 2; /* temporary hack. */ |
addr | 353 | kernel/ptrace.c | tmp = get_stack_long(child, sizeof(long)*addr - MAGICNUMBER); |
addr | 354 | kernel/ptrace.c | if (addr == DS || addr == ES || |
addr | 355 | kernel/ptrace.c | addr == FS || addr == GS || |
addr | 356 | kernel/ptrace.c | addr == CS || addr == SS) |
addr | 359 | kernel/ptrace.c | if(addr >= (long) &dummy->u_debugreg[0] && |
addr | 360 | kernel/ptrace.c | addr <= (long) &dummy->u_debugreg[7]){ |
addr | 361 | kernel/ptrace.c | addr -= (long) &dummy->u_debugreg[0]; |
addr | 362 | kernel/ptrace.c | addr = addr >> 2; |
addr | 363 | kernel/ptrace.c | tmp = child->debugreg[addr]; |
addr | 372 | kernel/ptrace.c | return write_long(child,addr,data); |
addr | 375 | kernel/ptrace.c | if ((addr & 3) || addr < 0 || |
addr | 376 | kernel/ptrace.c | addr > sizeof(struct user) - 3) |
addr | 379 | kernel/ptrace.c | addr = addr >> 2; /* temporary hack. */ |
addr | 381 | kernel/ptrace.c | if (addr == ORIG_EAX) |
addr | 383 | kernel/ptrace.c | if (addr == DS || addr == ES || |
addr | 384 | kernel/ptrace.c | addr == FS || addr == GS || |
addr | 385 | kernel/ptrace.c | addr == CS || addr == SS) { |
addr | 390 | kernel/ptrace.c | if (addr == EFL) { /* flags. */ |
addr | 396 | kernel/ptrace.c | if(addr < 17){ |
addr | 397 | kernel/ptrace.c | if (put_stack_long(child, sizeof(long)*addr-MAGICNUMBER, data)) |
addr | 407 | kernel/ptrace.c | addr = addr << 2; /* Convert back again */ |
addr | 408 | kernel/ptrace.c | if(addr >= (long) &dummy->u_debugreg[0] && |
addr | 409 | kernel/ptrace.c | addr <= (long) &dummy->u_debugreg[7]){ |
addr | 411 | kernel/ptrace.c | if(addr == (long) &dummy->u_debugreg[4]) return -EIO; |
addr | 412 | kernel/ptrace.c | if(addr == (long) &dummy->u_debugreg[5]) return -EIO; |
addr | 413 | kernel/ptrace.c | if(addr < (long) &dummy->u_debugreg[4] && |
addr | 416 | kernel/ptrace.c | if(addr == (long) &dummy->u_debugreg[7]) { |
addr | 423 | kernel/ptrace.c | addr -= (long) &dummy->u_debugreg; |
addr | 424 | kernel/ptrace.c | addr = addr >> 2; |
addr | 425 | kernel/ptrace.c | child->debugreg[addr] = data; |
addr | 42 | kernel/traps.c | #define get_seg_byte(seg,addr) ({ \ |
addr | 45 | kernel/traps.c | :"=a" (__res):"0" (seg),"m" (*(addr))); \ |
addr | 48 | kernel/traps.c | #define get_seg_long(seg,addr) ({ \ |
addr | 51 | kernel/traps.c | :"=a" (__res):"0" (seg),"m" (*(addr))); \ |
addr | 80 | mm/memory.c | #define CODE_SPACE(addr,p) ((addr) < (p)->end_code) |
addr | 628 | mm/memory.c | int verify_area(int type, const void * addr, unsigned long size) |
addr | 631 | mm/memory.c | unsigned long start = (unsigned long) addr; |
addr | 38 | mm/mmap.c | int do_mmap(struct file * file, unsigned long addr, unsigned long len, |
addr | 45 | mm/mmap.c | return addr; |
addr | 47 | mm/mmap.c | if (addr > TASK_SIZE || len > TASK_SIZE || addr > TASK_SIZE-len) |
addr | 83 | mm/mmap.c | if (addr & ~PAGE_MASK) |
addr | 85 | mm/mmap.c | if (len > TASK_SIZE || addr > TASK_SIZE - len) |
addr | 91 | mm/mmap.c | addr = SHM_RANGE_START; |
addr | 92 | mm/mmap.c | while (addr+len < SHM_RANGE_END) { |
addr | 94 | mm/mmap.c | if (addr >= vmm->vm_end) |
addr | 96 | mm/mmap.c | if (addr + len <= vmm->vm_start) |
addr | 98 | mm/mmap.c | addr = PAGE_ALIGN(vmm->vm_end); |
addr | 104 | mm/mmap.c | if (addr+len >= SHM_RANGE_END) |
addr | 130 | mm/mmap.c | vma->vm_start = addr; |
addr | 131 | mm/mmap.c | vma->vm_end = addr + len; |
addr | 151 | mm/mmap.c | do_munmap(addr, len); /* Clear old maps */ |
addr | 166 | mm/mmap.c | return addr; |
addr | 211 | mm/mmap.c | unsigned long addr, size_t len) |
addr | 214 | mm/mmap.c | unsigned long end = addr + len; |
addr | 216 | mm/mmap.c | if (addr < area->vm_start || addr >= area->vm_end || |
addr | 218 | mm/mmap.c | end < addr) |
addr | 221 | mm/mmap.c | area->vm_start, area->vm_end, addr, end); |
addr | 226 | mm/mmap.c | if (addr == area->vm_start && end == area->vm_end) { |
addr | 235 | mm/mmap.c | if (addr >= area->vm_start && end == area->vm_end) |
addr | 236 | mm/mmap.c | area->vm_end = addr; |
addr | 237 | mm/mmap.c | if (addr == area->vm_start && end <= area->vm_end) { |
addr | 243 | mm/mmap.c | if (addr > area->vm_start && end < area->vm_end) |
addr | 255 | mm/mmap.c | area->vm_end = addr; /* Truncate area */ |
addr | 267 | mm/mmap.c | asmlinkage int sys_munmap(unsigned long addr, size_t len) |
addr | 269 | mm/mmap.c | return do_munmap(addr, len); |
addr | 278 | mm/mmap.c | int do_munmap(unsigned long addr, size_t len) |
addr | 282 | mm/mmap.c | if ((addr & ~PAGE_MASK) || addr > TASK_SIZE || len > TASK_SIZE-addr) |
addr | 297 | mm/mmap.c | unsigned long end = addr+len; |
addr | 299 | mm/mmap.c | if ((addr < mpnt->vm_start && end <= mpnt->vm_start) || |
addr | 300 | mm/mmap.c | (addr >= mpnt->vm_end && end > mpnt->vm_end)) |
addr | 326 | mm/mmap.c | st = addr < mpnt->vm_start ? mpnt->vm_start : addr; |
addr | 327 | mm/mmap.c | end = addr+len; |
addr | 338 | mm/mmap.c | unmap_page_range(addr, len); |
addr | 70 | mm/swap.c | extern inline int add_to_swap_cache(unsigned long addr, unsigned long entry) |
addr | 80 | mm/swap.c | : "=m" (swap_cache[addr >> PAGE_SHIFT]), |
addr | 82 | mm/swap.c | : "0" (swap_cache[addr >> PAGE_SHIFT]), |
addr | 520 | mm/swap.c | static inline void free_pages_ok(unsigned long addr, unsigned long order) |
addr | 522 | mm/swap.c | unsigned long index = addr >> (PAGE_SHIFT + 1 + order); |
addr | 525 | mm/swap.c | addr &= mask; |
addr | 530 | mm/swap.c | remove_mem_queue(free_area_list+order, (struct mem_list *) (addr ^ (1+~mask))); |
addr | 534 | mm/swap.c | addr &= mask; |
addr | 536 | mm/swap.c | add_mem_queue(free_area_list+order, (struct mem_list *) addr); |
addr | 539 | mm/swap.c | static inline void check_free_buffers(unsigned long addr) |
addr | 543 | mm/swap.c | bh = buffer_pages[MAP_NR(addr)]; |
addr | 554 | mm/swap.c | void free_pages(unsigned long addr, unsigned long order) |
addr | 556 | mm/swap.c | if (addr < high_memory) { |
addr | 558 | mm/swap.c | unsigned short * map = mem_map + MAP_NR(addr); |
addr | 564 | mm/swap.c | free_pages_ok(addr, order); |
addr | 565 | mm/swap.c | delete_from_swap_cache(addr); |
addr | 569 | mm/swap.c | check_free_buffers(addr); |
addr | 573 | mm/swap.c | printk("Trying to free free memory (%08lx): memory probably corrupted\n",addr); |
addr | 574 | mm/swap.c | printk("PC = %08lx\n",*(((unsigned long *)&addr)-1)); |
addr | 598 | mm/swap.c | static inline int mark_used(unsigned long addr, unsigned long order) |
addr | 600 | mm/swap.c | return change_bit(addr >> (PAGE_SHIFT+1+order), free_area_map[order]); |
addr | 603 | mm/swap.c | #define EXPAND(addr,low,high) \ |
addr | 607 | mm/swap.c | add_mem_queue(free_area_list+high, addr); \ |
addr | 608 | mm/swap.c | mark_used((unsigned long) addr, high); \ |
addr | 610 | mm/swap.c | addr = (struct mem_list *) (size + (unsigned long) addr); \ |
addr | 611 | mm/swap.c | } mem_map[MAP_NR((unsigned long) addr)] = 1; \ |
addr | 21 | mm/vmalloc.c | void * addr; |
addr | 106 | mm/vmalloc.c | static int do_area(void * addr, unsigned long size, |
addr | 112 | mm/vmalloc.c | dindex = (TASK_SIZE + (unsigned long) addr) >> 22; |
addr | 113 | mm/vmalloc.c | index = (((unsigned long) addr) >> PAGE_SHIFT) & (PTRS_PER_PAGE-1); |
addr | 128 | mm/vmalloc.c | void vfree(void * addr) |
addr | 132 | mm/vmalloc.c | if (!addr) |
addr | 134 | mm/vmalloc.c | if ((PAGE_SIZE-1) & (unsigned long) addr) { |
addr | 135 | mm/vmalloc.c | printk("Trying to vfree() bad address (%p)\n", addr); |
addr | 139 | mm/vmalloc.c | if (tmp->addr == addr) { |
addr | 141 | mm/vmalloc.c | do_area(tmp->addr, tmp->size, free_area_pages); |
addr | 146 | mm/vmalloc.c | printk("Trying to vfree() nonexistent vm area (%p)\n", addr); |
addr | 151 | mm/vmalloc.c | void * addr; |
addr | 160 | mm/vmalloc.c | addr = (void *) ((high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1)); |
addr | 164 | mm/vmalloc.c | if (size + (unsigned long) addr < (unsigned long) tmp->addr) |
addr | 166 | mm/vmalloc.c | addr = (void *) (tmp->size + (unsigned long) tmp->addr); |
addr | 168 | mm/vmalloc.c | area->addr = addr; |
addr | 171 | mm/vmalloc.c | if (do_area(addr, size, alloc_area_pages)) { |
addr | 172 | mm/vmalloc.c | vfree(addr); |
addr | 175 | mm/vmalloc.c | return addr; |
addr | 178 | mm/vmalloc.c | int vread(char *buf, char *addr, int count) |
addr | 185 | mm/vmalloc.c | vaddr = (char *) tmp->addr; |
addr | 186 | mm/vmalloc.c | while (addr < vaddr) { |
addr | 189 | mm/vmalloc.c | put_fs_byte('\0', buf++), addr++, count--; |
addr | 192 | mm/vmalloc.c | if (addr > vaddr) |
addr | 193 | mm/vmalloc.c | n -= addr - vaddr; |
addr | 197 | mm/vmalloc.c | put_fs_byte(*addr++, buf++), count--; |
addr | 754 | net/inet/af_inet.c | struct sockaddr_in *addr=(struct sockaddr_in *)uaddr; |
addr | 768 | net/inet/af_inet.c | snum = ntohs(addr->sin_port); |
addr | 782 | net/inet/af_inet.c | chk_addr_ret = ip_chk_addr(addr->sin_addr.s_addr); |
addr | 783 | net/inet/af_inet.c | if (addr->sin_addr.s_addr != 0 && chk_addr_ret != IS_MYADDR) |
addr | 786 | net/inet/af_inet.c | if (chk_addr_ret || addr->sin_addr.s_addr == 0) |
addr | 787 | net/inet/af_inet.c | sk->saddr = addr->sin_addr.s_addr; |
addr | 1018 | net/inet/dev.c | static inline int bad_mask(unsigned long mask, unsigned long addr) |
addr | 1020 | net/inet/dev.c | if (addr & (mask = ~mask)) |
addr | 48 | net/inet/devinet.c | unsigned long ip_get_mask(unsigned long addr) |
addr | 52 | net/inet/devinet.c | if (addr == 0L) |
addr | 55 | net/inet/devinet.c | dst = ntohl(addr); |
addr | 113 | net/inet/devinet.c | int ip_chk_addr(unsigned long addr) |
addr | 126 | net/inet/devinet.c | if (addr == INADDR_ANY || addr == INADDR_BROADCAST || |
addr | 127 | net/inet/devinet.c | addr == htonl(0x7FFFFFFFL)) |
addr | 130 | net/inet/devinet.c | mask = ip_get_mask(addr); |
addr | 136 | net/inet/devinet.c | if ((addr & mask) == htonl(0x7F000000L)) |
addr | 158 | net/inet/devinet.c | if (addr == dev->pa_addr) |
addr | 164 | net/inet/devinet.c | if ((dev->flags & IFF_BROADCAST) && addr == dev->pa_brdaddr) |
addr | 170 | net/inet/devinet.c | if (((addr ^ dev->pa_addr) & dev->pa_mask) == 0) |
addr | 172 | net/inet/devinet.c | if ((addr & ~dev->pa_mask) == 0) |
addr | 174 | net/inet/devinet.c | if ((addr & ~dev->pa_mask) == ~dev->pa_mask) |
addr | 182 | net/inet/devinet.c | if (((addr ^ dev->pa_addr) & mask) == 0) |
addr | 184 | net/inet/devinet.c | if ((addr & ~mask) == 0) |
addr | 186 | net/inet/devinet.c | if ((addr & ~mask) == ~mask) |
addr | 223 | net/inet/devinet.c | struct device * ip_dev_check(unsigned long addr) |
addr | 233 | net/inet/devinet.c | if (addr != dev->pa_dstaddr) |
addr | 243 | net/inet/devinet.c | if (dev->pa_mask & (addr ^ dev->pa_addr)) |
addr | 31 | net/inet/eth.h | extern void eth_add_arp(unsigned long addr, struct sk_buff *skb, |
addr | 657 | net/inet/ipx.c | struct sockaddr_ipx *addr=(struct sockaddr_ipx *)uaddr; |
addr | 667 | net/inet/ipx.c | if (addr->sipx_port == 0) |
addr | 669 | net/inet/ipx.c | addr->sipx_port = first_free_socketnum(); |
addr | 670 | net/inet/ipx.c | if (addr->sipx_port == 0) |
addr | 674 | net/inet/ipx.c | if(ntohs(addr->sipx_port)<0x4000 && !suser()) |
addr | 680 | net/inet/ipx.c | if(ipx_find_socket(addr->sipx_port)!=NULL) |
addr | 684 | net/inet/ipx.c | (int)addr->sipx_port); |
addr | 688 | net/inet/ipx.c | sk->ipx_source_addr.sock=addr->sipx_port; |
addr | 690 | net/inet/ipx.c | if (addr->sipx_network == 0L) |
addr | 696 | net/inet/ipx.c | rt = ipxrtr_get_dev(addr->sipx_network); |
addr | 725 | net/inet/ipx.c | struct sockaddr_ipx *addr; |
addr | 730 | net/inet/ipx.c | if(addr_len!=sizeof(addr)) |
addr | 732 | net/inet/ipx.c | addr=(struct sockaddr_ipx *)uaddr; |
addr | 746 | net/inet/ipx.c | sk->ipx_dest_addr.net=addr->sipx_network; |
addr | 747 | net/inet/ipx.c | sk->ipx_dest_addr.sock=addr->sipx_port; |
addr | 748 | net/inet/ipx.c | memcpy(sk->ipx_dest_addr.node,addr->sipx_node,sizeof(sk->ipx_source_addr.node)); |
addr | 771 | net/inet/ipx.c | ipx_address *addr; |
addr | 783 | net/inet/ipx.c | addr=&sk->ipx_dest_addr; |
addr | 786 | net/inet/ipx.c | addr=&sk->ipx_source_addr; |
addr | 789 | net/inet/ipx.c | sipx.sipx_port = addr->sock; |
addr | 790 | net/inet/ipx.c | sipx.sipx_network = addr->net; |
addr | 791 | net/inet/ipx.c | memcpy(sipx.sipx_node,addr->node,sizeof(sipx.sipx_node)); |
addr | 344 | net/inet/route.c | static inline int bad_mask(unsigned long mask, unsigned long addr) |
addr | 346 | net/inet/route.c | if (addr & (mask = ~mask)) |
addr | 46 | net/inet/route.h | extern void ip_rt_add(short flags, unsigned long addr, unsigned long mask, |
addr | 1220 | net/inet/tcp.c | struct sockaddr_in *addr, int addr_len) |
addr | 1224 | net/inet/tcp.c | if (addr_len < sizeof(*addr)) |
addr | 1226 | net/inet/tcp.c | if (addr->sin_family && addr->sin_family != AF_INET) |
addr | 1228 | net/inet/tcp.c | if (addr->sin_port != sk->dummy_th.dest) |
addr | 1230 | net/inet/tcp.c | if (addr->sin_addr.s_addr != sk->daddr) |
addr | 1756 | net/inet/tcp.c | struct sockaddr_in *addr, int *addr_len) |
addr | 1767 | net/inet/tcp.c | *addr_len = sizeof(*addr); |
addr | 1773 | net/inet/tcp.c | if(addr) |
addr | 1775 | net/inet/tcp.c | addr->sin_family = AF_INET; |
addr | 1776 | net/inet/tcp.c | addr->sin_port = sk->dummy_th.dest; |
addr | 1777 | net/inet/tcp.c | addr->sin_addr.s_addr = sk->daddr; |
addr | 941 | net/socket.c | struct sockaddr *addr, int addr_len) |
addr | 959 | net/socket.c | if((err=move_addr_to_kernel(addr,addr_len,address))<0) |
addr | 1005 | net/socket.c | struct sockaddr *addr, int *addr_len) |
addr | 1030 | net/socket.c | if(addr!=NULL && (err=move_addr_to_user(address,alen, addr, addr_len))<0) |
addr | 87 | net/unix/sock.c | struct sockaddr *addr, int addr_len); |
addr | 90 | net/unix/sock.c | struct sockaddr *addr, int *addr_len); |
addr | 165 | net/unix/sock.c | unsigned flags, struct sockaddr *addr, int addr_len) |
addr | 171 | net/unix/sock.c | unsigned flags, struct sockaddr *addr, int *addr_len) |