tag | line | file | source code |
nr | 20 | arch/alpha/boot/main.c | extern unsigned long switch_to_osf_pal(unsigned long nr, |
nr | 119 | arch/alpha/kernel/process.c | void copy_thread(int nr, unsigned long clone_flags, unsigned long usp, |
nr | 19 | arch/alpha/kernel/signal.c | #define _S(nr) (1<<((nr)-1)) |
nr | 112 | arch/alpha/mm/init.c | unsigned long pfn, nr; |
nr | 116 | arch/alpha/mm/init.c | nr = cluster->numpages; |
nr | 122 | arch/alpha/mm/init.c | while (nr--) |
nr | 254 | arch/i386/kernel/process.c | void copy_thread(int nr, unsigned long clone_flags, unsigned long esp, |
nr | 268 | arch/i386/kernel/process.c | p->tss.tr = _TSS(nr); |
nr | 277 | arch/i386/kernel/process.c | p->tss.ldt = _LDT(nr); |
nr | 283 | arch/i386/kernel/process.c | set_tss_desc(gdt+(nr<<1)+FIRST_TSS_ENTRY,&(p->tss)); |
nr | 285 | arch/i386/kernel/process.c | set_ldt_desc(gdt+(nr<<1)+FIRST_LDT_ENTRY,p->ldt, 512); |
nr | 287 | arch/i386/kernel/process.c | set_ldt_desc(gdt+(nr<<1)+FIRST_LDT_ENTRY,&default_ldt, 1); |
nr | 186 | arch/i386/kernel/setup.c | static const char * i486model(unsigned int nr) |
nr | 191 | arch/i386/kernel/setup.c | if (nr < sizeof(model)/sizeof(char *)) |
nr | 192 | arch/i386/kernel/setup.c | return model[nr]; |
nr | 196 | arch/i386/kernel/setup.c | static const char * i586model(unsigned int nr) |
nr | 201 | arch/i386/kernel/setup.c | if (nr < sizeof(model)/sizeof(char *)) |
nr | 202 | arch/i386/kernel/setup.c | return model[nr]; |
nr | 18 | arch/i386/kernel/signal.c | #define _S(nr) (1<<((nr)-1)) |
nr | 218 | arch/i386/kernel/vm86.c | static inline int is_revectored(int nr, struct revectored_struct * bitmap) |
nr | 223 | arch/i386/kernel/vm86.c | :"=r" (nr) |
nr | 224 | arch/i386/kernel/vm86.c | :"m" (*bitmap),"r" (nr)); |
nr | 225 | arch/i386/kernel/vm86.c | return nr; |
nr | 218 | arch/i386/math-emu/reg_compare.c | static int compare_st_st(int nr) |
nr | 222 | arch/i386/math-emu/reg_compare.c | if ( !NOT_EMPTY(0) || !NOT_EMPTY(nr) ) |
nr | 230 | arch/i386/math-emu/reg_compare.c | c = compare(&st(nr)); |
nr | 268 | arch/i386/math-emu/reg_compare.c | static int compare_u_st_st(int nr) |
nr | 272 | arch/i386/math-emu/reg_compare.c | if ( !NOT_EMPTY(0) || !NOT_EMPTY(nr) ) |
nr | 280 | arch/i386/math-emu/reg_compare.c | c = compare(&st(nr)); |
nr | 118 | arch/mips/kernel/process.c | void copy_thread(int nr, unsigned long clone_flags, unsigned long usp, |
nr | 19 | arch/mips/kernel/signal.c | #define _S(nr) (1<<((nr)-1)) |
nr | 98 | arch/ppc/kernel/process.c | void copy_thread(int nr, unsigned long clone_flags, unsigned long usp, |
nr | 113 | arch/ppc/kernel/process.c | segs[i].vsid = i | (nr << 4); |
nr | 17 | arch/ppc/kernel/signal.c | #define _S(nr) (1<<((nr)-1)) |
nr | 132 | arch/sparc/kernel/process.c | void copy_thread(int nr, unsigned long clone_flags, unsigned long sp, |
nr | 20 | arch/sparc/kernel/signal.c | #define _S(nr) (1<<((nr)-1)) |
nr | 313 | arch/sparc/kernel/sys_sunos.c | #define _S(nr) (1<<((nr)-1)) |
nr | 828 | drivers/block/floppy.c | static void motor_off_callback(unsigned long nr) |
nr | 830 | drivers/block/floppy.c | unsigned char mask = ~(0x10 << UNIT(nr)); |
nr | 832 | drivers/block/floppy.c | set_dor(FDC(nr), mask, 0); |
nr | 574 | drivers/block/genhd.c | int nr=0; |
nr | 589 | drivers/block/genhd.c | nr += p->nr_real; |
nr | 458 | drivers/block/ll_rw_blk.c | void ll_rw_block(int rw, int nr, struct buffer_head * bh[]) |
nr | 469 | drivers/block/ll_rw_blk.c | if (--nr <= 0) |
nr | 492 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
nr | 513 | drivers/block/ll_rw_blk.c | if (nr > 1) |
nr | 515 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
nr | 525 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
nr | 1103 | drivers/cdrom/cm206.c | int probe_irq(int nr) { |
nr | 1112 | drivers/cdrom/cm206.c | if (nr && irq!=nr && irq>0) return 0; /* wrong interrupt happened */ |
nr | 1212 | drivers/char/console.c | static void csi_at(int currcons, unsigned int nr) |
nr | 1214 | drivers/char/console.c | if (nr > video_num_columns) |
nr | 1215 | drivers/char/console.c | nr = video_num_columns; |
nr | 1216 | drivers/char/console.c | else if (!nr) |
nr | 1217 | drivers/char/console.c | nr = 1; |
nr | 1218 | drivers/char/console.c | while (nr--) |
nr | 1222 | drivers/char/console.c | static void csi_L(int currcons, unsigned int nr) |
nr | 1224 | drivers/char/console.c | if (nr > video_num_lines) |
nr | 1225 | drivers/char/console.c | nr = video_num_lines; |
nr | 1226 | drivers/char/console.c | else if (!nr) |
nr | 1227 | drivers/char/console.c | nr = 1; |
nr | 1228 | drivers/char/console.c | while (nr--) |
nr | 1232 | drivers/char/console.c | static void csi_P(int currcons, unsigned int nr) |
nr | 1234 | drivers/char/console.c | if (nr > video_num_columns) |
nr | 1235 | drivers/char/console.c | nr = video_num_columns; |
nr | 1236 | drivers/char/console.c | else if (!nr) |
nr | 1237 | drivers/char/console.c | nr = 1; |
nr | 1238 | drivers/char/console.c | while (nr--) |
nr | 1242 | drivers/char/console.c | static void csi_M(int currcons, unsigned int nr) |
nr | 1244 | drivers/char/console.c | if (nr > video_num_lines) |
nr | 1245 | drivers/char/console.c | nr = video_num_lines; |
nr | 1246 | drivers/char/console.c | else if (!nr) |
nr | 1247 | drivers/char/console.c | nr=1; |
nr | 1248 | drivers/char/console.c | while (nr--) |
nr | 78 | drivers/char/kbd_kern.h | extern inline void set_console(int nr) |
nr | 80 | drivers/char/kbd_kern.h | want_console = nr; |
nr | 736 | drivers/char/n_tty.c | unsigned int *nr) |
nr | 741 | drivers/char/n_tty.c | n = MIN(*nr, MIN(tty->read_cnt, N_TTY_BUF_SIZE - tty->read_tail)); |
nr | 748 | drivers/char/n_tty.c | *nr -= n; |
nr | 752 | drivers/char/n_tty.c | unsigned char *buf, unsigned int nr) |
nr | 853 | drivers/char/n_tty.c | nr--; |
nr | 874 | drivers/char/n_tty.c | if (--nr) |
nr | 883 | drivers/char/n_tty.c | nr--; |
nr | 889 | drivers/char/n_tty.c | copy_from_read_buf(tty, &b, &nr); |
nr | 890 | drivers/char/n_tty.c | copy_from_read_buf(tty, &b, &nr); |
nr | 901 | drivers/char/n_tty.c | if (b - buf >= minimum || !nr) |
nr | 914 | drivers/char/n_tty.c | if (size && nr) |
nr | 924 | drivers/char/n_tty.c | const unsigned char * buf, unsigned int nr) |
nr | 950 | drivers/char/n_tty.c | while (nr > 0) { |
nr | 954 | drivers/char/n_tty.c | b++; nr--; |
nr | 959 | drivers/char/n_tty.c | c = tty->driver.write(tty, 1, b, nr); |
nr | 961 | drivers/char/n_tty.c | nr -= c; |
nr | 963 | drivers/char/n_tty.c | if (!nr) |
nr | 194 | drivers/char/tty_ioctl.c | int nr, head, tail; |
nr | 200 | drivers/char/tty_ioctl.c | nr = (head - tail) & (N_TTY_BUF_SIZE-1); |
nr | 205 | drivers/char/tty_ioctl.c | nr--; |
nr | 208 | drivers/char/tty_ioctl.c | return nr; |
nr | 1774 | drivers/net/ppp.c | unsigned int nr) |
nr | 1800 | drivers/net/ppp.c | buf, nr); |
nr | 1826 | drivers/net/ppp.c | indx = verify_area (VERIFY_WRITE, buf, nr); |
nr | 1873 | drivers/net/ppp.c | if (len + 2 > nr) { |
nr | 1879 | drivers/net/ppp.c | "frame\n", nr, len + 2); |
nr | 116 | drivers/scsi/in2000.c | #define port_read(port,buf,nr) \ |
nr | 117 | drivers/scsi/in2000.c | __asm__("cld;rep;insw": :"d" (port),"D" (buf),"c" (nr):"cx","di") |
nr | 119 | drivers/scsi/in2000.c | #define port_write(port,buf,nr) \ |
nr | 120 | drivers/scsi/in2000.c | __asm__("cld;rep;outsw": :"d" (port),"S" (buf),"c" (nr):"cx","si") |
nr | 226 | drivers/sound/configure.c | can_select_option (int nr) |
nr | 229 | drivers/sound/configure.c | if (hw_table[nr].conditions) |
nr | 230 | drivers/sound/configure.c | if (!(hw_table[nr].conditions & selected_options)) |
nr | 233 | drivers/sound/configure.c | if (hw_table[nr].exclusive_options) |
nr | 234 | drivers/sound/configure.c | if (hw_table[nr].exclusive_options & selected_options) |
nr | 237 | drivers/sound/configure.c | if (DISABLED_OPTIONS & B (nr)) |
nr | 59 | fs/binfmt_aout.c | #define DUMP_WRITE(addr,nr) \ |
nr | 60 | fs/binfmt_aout.c | while (file.f_op->write(inode,&file,(char *)(addr),(nr)) != (nr)) goto close_coredump |
nr | 829 | fs/binfmt_elf.c | static int dump_write(struct file *file, const void *addr, int nr) |
nr | 831 | fs/binfmt_elf.c | return file->f_op->write(file->f_inode, file, addr, nr) == nr; |
nr | 904 | fs/binfmt_elf.c | #define DUMP_WRITE(addr, nr) \ |
nr | 905 | fs/binfmt_elf.c | do { if (!dump_write(file, (addr), (nr))) return 0; } while(0) |
nr | 929 | fs/binfmt_elf.c | #define DUMP_WRITE(addr, nr) \ |
nr | 930 | fs/binfmt_elf.c | if (!dump_write(&file, (addr), (nr))) \ |
nr | 1071 | fs/buffer.c | int block, nr; |
nr | 1079 | fs/buffer.c | nr = 0; |
nr | 1124 | fs/buffer.c | arr[nr++] = next; |
nr | 1128 | fs/buffer.c | if (nr) |
nr | 1129 | fs/buffer.c | ll_rw_block(rw, nr, arr); |
nr | 1232 | fs/buffer.c | int *p, nr[PAGE_SIZE/512]; |
nr | 1246 | fs/buffer.c | p = nr; |
nr | 1255 | fs/buffer.c | brw_page(READ, address, inode->i_dev, nr, inode->i_sb->s_blocksize, 1); |
nr | 172 | fs/ext/inode.c | #define inode_bmap(inode,nr) ((inode)->u.ext_i.i_data[(nr)]) |
nr | 174 | fs/ext/inode.c | static inline int block_bmap(struct buffer_head * bh, int nr) |
nr | 180 | fs/ext/inode.c | tmp = ((unsigned long *) bh->b_data)[nr]; |
nr | 229 | fs/ext/inode.c | static struct buffer_head * inode_getblk(struct inode * inode, int nr, int create) |
nr | 235 | fs/ext/inode.c | p = inode->u.ext_i.i_data + nr; |
nr | 263 | fs/ext/inode.c | struct buffer_head * bh, int nr, int create) |
nr | 279 | fs/ext/inode.c | p = nr + (unsigned long *) bh->b_data; |
nr | 42 | fs/ext2/inode.c | #define inode_bmap(inode, nr) ((inode)->u.ext2_i.i_data[(nr)]) |
nr | 44 | fs/ext2/inode.c | static inline int block_bmap (struct buffer_head * bh, int nr) |
nr | 50 | fs/ext2/inode.c | tmp = ((u32 *) bh->b_data)[nr]; |
nr | 183 | fs/ext2/inode.c | static struct buffer_head * inode_getblk (struct inode * inode, int nr, |
nr | 191 | fs/ext2/inode.c | p = inode->u.ext2_i.i_data + nr; |
nr | 213 | fs/ext2/inode.c | for (tmp = nr - 1; tmp >= 0; tmp--) { |
nr | 249 | fs/ext2/inode.c | struct buffer_head * bh, int nr, |
nr | 268 | fs/ext2/inode.c | p = (u32 *) bh->b_data + nr; |
nr | 290 | fs/ext2/inode.c | for (tmp = nr - 1; tmp >= 0; tmp--) { |
nr | 326 | fs/ext2/inode.c | int nr, |
nr | 338 | fs/ext2/inode.c | if((nr & ((PAGE_SIZE >> EXT2_BLOCK_SIZE_BITS(inode->i_sb)) - 1)) != 0) |
nr | 340 | fs/ext2/inode.c | if(nr + 3 > EXT2_ADDR_PER_BLOCK(inode->i_sb)) goto out; |
nr | 343 | fs/ext2/inode.c | p = (u32 *) bh->b_data + nr + i; |
nr | 353 | fs/ext2/inode.c | p = (u32 *) bh->b_data + nr; |
nr | 20 | fs/fat/cache.c | int fat_access(struct super_block *sb,int nr,int new_value) |
nr | 26 | fs/fat/cache.c | if ((unsigned) (nr-2) >= MSDOS_SB(sb)->clusters) return 0; |
nr | 27 | fs/fat/cache.c | if (MSDOS_SB(sb)->fat_bits == 16) first = last = nr*2; |
nr | 29 | fs/fat/cache.c | first = nr*3/2; |
nr | 57 | fs/fat/cache.c | if (nr & 1) next = ((*p_first >> 4) | (*p_last << 4)) & 0xfff; |
nr | 66 | fs/fat/cache.c | if (nr & 1) { |
nr | 227 | fs/fat/cache.c | int nr,count; |
nr | 229 | fs/fat/cache.c | if (!(nr = MSDOS_I(inode)->i_start)) return 0; |
nr | 230 | fs/fat/cache.c | if (!cluster) return nr; |
nr | 232 | fs/fat/cache.c | for (cache_lookup(inode,cluster,&count,&nr); count < cluster; |
nr | 234 | fs/fat/cache.c | if ((nr = fat_access(inode->i_sb,nr,-1)) == -1) return 0; |
nr | 235 | fs/fat/cache.c | if (!nr) return 0; |
nr | 237 | fs/fat/cache.c | cache_add(inode,cluster,nr); |
nr | 238 | fs/fat/cache.c | return nr; |
nr | 265 | fs/fat/cache.c | int nr,last; |
nr | 267 | fs/fat/cache.c | if (!(nr = MSDOS_I(inode)->i_start)) return 0; |
nr | 270 | fs/fat/cache.c | last = nr; |
nr | 271 | fs/fat/cache.c | if ((nr = fat_access(inode->i_sb,nr,-1)) == -1) return 0; |
nr | 272 | fs/fat/cache.c | if (!nr) { |
nr | 285 | fs/fat/cache.c | while (nr != -1) { |
nr | 286 | fs/fat/cache.c | if (!(nr = fat_access(inode->i_sb,nr,0))) { |
nr | 321 | fs/fat/inode.c | int free,nr; |
nr | 329 | fs/fat/inode.c | for (nr = 2; nr < MSDOS_SB(sb)->clusters+2; nr++) |
nr | 330 | fs/fat/inode.c | if (!fat_access(sb,nr,-1)) free++; |
nr | 367 | fs/fat/inode.c | int nr; |
nr | 415 | fs/fat/inode.c | if ((nr = CF_LE_W(raw_entry->start)) != 0) |
nr | 416 | fs/fat/inode.c | while (nr != -1) { |
nr | 419 | fs/fat/inode.c | if (!(nr = fat_access(inode->i_sb,nr,-1))) { |
nr | 119 | fs/fat/misc.c | int count,nr,limit,last,curr,sector,last_sector,file_cluster; |
nr | 127 | fs/fat/misc.c | nr = limit; /* to keep GCC happy */ |
nr | 129 | fs/fat/misc.c | nr = ((count+MSDOS_SB(inode->i_sb)->prev_free) % limit)+2; |
nr | 130 | fs/fat/misc.c | if (fat_access(inode->i_sb,nr,-1) == 0) break; |
nr | 134 | fs/fat/misc.c | printk("free cluster: %d\n",nr); |
nr | 143 | fs/fat/misc.c | fat_access(inode->i_sb,nr,MSDOS_SB(inode->i_sb)->fat_bits == 12 ? |
nr | 149 | fs/fat/misc.c | printk("set to %x\n",fat_access(inode->i_sb,nr,-1)); |
nr | 180 | fs/fat/misc.c | if (last) fat_access(inode->i_sb,last,nr); |
nr | 182 | fs/fat/misc.c | MSDOS_I(inode)->i_start = nr; |
nr | 188 | fs/fat/misc.c | sector = MSDOS_SB(inode->i_sb)->data_start+(nr-2)*cluster_size; |
nr | 207 | fs/fat/misc.c | cache_add(inode,file_cluster,nr); |
nr | 488 | fs/fat/misc.c | int error,curr,prev,nr; |
nr | 498 | fs/fat/misc.c | if (!curr) nr = MSDOS_ROOT_INO; |
nr | 505 | fs/fat/misc.c | if ((error = raw_scan(dir->i_sb,prev,NULL,&curr,&nr,NULL, |
nr | 512 | fs/fat/misc.c | return nr; |
nr | 550 | fs/inode.c | struct inode *__iget(struct super_block * sb, int nr, int crossmntp) |
nr | 559 | fs/inode.c | h = hash(sb->s_dev, nr); |
nr | 562 | fs/inode.c | if (inode->i_dev == sb->s_dev && inode->i_ino == nr) |
nr | 576 | fs/inode.c | inode->i_ino = nr; |
nr | 588 | fs/inode.c | if (inode->i_dev != sb->s_dev || inode->i_ino != nr) { |
nr | 258 | fs/minix/inode.c | #define V1_inode_bmap(inode,nr) (((unsigned short *)(inode)->u.minix_i.u.i1_data)[(nr)]) |
nr | 260 | fs/minix/inode.c | static int V1_block_bmap(struct buffer_head * bh, int nr) |
nr | 266 | fs/minix/inode.c | tmp = ((unsigned short *) bh->b_data)[nr]; |
nr | 305 | fs/minix/inode.c | #define V2_inode_bmap(inode,nr) (((unsigned long *)(inode)->u.minix_i.u.i2_data)[(nr)]) |
nr | 306 | fs/minix/inode.c | static int V2_block_bmap(struct buffer_head * bh, int nr) |
nr | 312 | fs/minix/inode.c | tmp = ((unsigned long *) bh->b_data)[nr]; |
nr | 375 | fs/minix/inode.c | static struct buffer_head * V1_inode_getblk(struct inode * inode, int nr, |
nr | 382 | fs/minix/inode.c | p = inode->u.minix_i.u.i1_data + nr; |
nr | 410 | fs/minix/inode.c | struct buffer_head * bh, int nr, int create) |
nr | 426 | fs/minix/inode.c | p = nr + (unsigned short *) bh->b_data; |
nr | 488 | fs/minix/inode.c | static struct buffer_head * V2_inode_getblk(struct inode * inode, int nr, |
nr | 495 | fs/minix/inode.c | p = (unsigned long *) inode->u.minix_i.u.i2_data + nr; |
nr | 523 | fs/minix/inode.c | struct buffer_head * bh, int nr, int create) |
nr | 539 | fs/minix/inode.c | p = nr + (unsigned long *) bh->b_data; |
nr | 29 | fs/ncpfs/sock.c | #define _S(nr) (1<<((nr)-1)) |
nr | 241 | fs/ncpfs/sock.c | #define _S(nr) (1<<((nr)-1)) |
nr | 326 | fs/ncpfs/sock.c | wait_table.nr = 0; |
nr | 376 | fs/ncpfs/sock.c | else if (wait_table.nr) |
nr | 113 | fs/nfs/rpcsock.c | wait_table.nr = 0; |
nr | 125 | fs/nfs/rpcsock.c | } else if (wait_table.nr) |
nr | 38 | fs/nfs/sock.c | #define _S(nr) (1<<((nr)-1)) |
nr | 554 | fs/proc/root.c | unsigned int nr,pid; |
nr | 557 | fs/proc/root.c | nr = filp->f_pos; |
nr | 558 | fs/proc/root.c | if (nr < FIRST_PROCESS_ENTRY) { |
nr | 562 | fs/proc/root.c | filp->f_pos = nr = FIRST_PROCESS_ENTRY; |
nr | 565 | fs/proc/root.c | for (nr -= FIRST_PROCESS_ENTRY; nr < NR_TASKS; nr++, filp->f_pos++) { |
nr | 566 | fs/proc/root.c | struct task_struct * p = task[nr]; |
nr | 236 | fs/read_write.c | int len, nr; |
nr | 242 | fs/read_write.c | nr = fn(inode, file, base, len); |
nr | 243 | fs/read_write.c | if (nr < 0) { |
nr | 246 | fs/read_write.c | retval = nr; |
nr | 249 | fs/read_write.c | retval += nr; |
nr | 250 | fs/read_write.c | if (nr != len) |
nr | 50 | fs/select.c | struct select_table_entry * entry = p->entry + p->nr; |
nr | 52 | fs/select.c | while (p->nr > 0) { |
nr | 53 | fs/select.c | p->nr--; |
nr | 120 | fs/select.c | wait_table.nr = 0; |
nr | 157 | fs/select.c | static int __get_fd_set(int nr, unsigned int * fs_pointer, fd_set * fdset) |
nr | 170 | fs/select.c | if (nr <= 0) |
nr | 175 | fs/select.c | nr -= 8 * sizeof(unsigned int); |
nr | 180 | fs/select.c | static void __set_fd_set(int nr, unsigned int * fs_pointer, unsigned int * fdset) |
nr | 187 | fs/select.c | if (nr <= 0) |
nr | 192 | fs/select.c | nr -= 8 * sizeof(unsigned int); |
nr | 196 | fs/select.c | #define get_fd_set(nr,fsp,fdp) \ |
nr | 197 | fs/select.c | __get_fd_set(nr, (unsigned int *) (fsp), fdp) |
nr | 199 | fs/select.c | #define set_fd_set(nr,fsp,fdp) \ |
nr | 200 | fs/select.c | __set_fd_set(nr, (unsigned int *) (fsp), (unsigned int *) (fdp)) |
nr | 25 | fs/smbfs/sock.c | #define _S(nr) (1<<((nr)-1)) |
nr | 553 | fs/sysv/inode.c | static inline int inode_bmap(struct super_block * sb, struct inode * inode, int nr) |
nr | 555 | fs/sysv/inode.c | int tmp = inode->u.sysv_i.i_data[nr]; |
nr | 561 | fs/sysv/inode.c | static int block_bmap(struct super_block * sb, struct buffer_head * bh, int nr, int convert) |
nr | 567 | fs/sysv/inode.c | tmp = ((sysv_zone_t *) bh->b_data) [nr]; |
nr | 636 | fs/sysv/inode.c | static struct buffer_head * inode_getblk(struct inode * inode, int nr, int create) |
nr | 644 | fs/sysv/inode.c | p = inode->u.sysv_i.i_data + nr; |
nr | 672 | fs/sysv/inode.c | struct buffer_head * bh, int nr, int create) |
nr | 690 | fs/sysv/inode.c | p = nr + (sysv_zone_t *) bh->b_data; |
nr | 184 | fs/xiafs/inode.c | static int zone_bmap(struct buffer_head * bh, int nr) |
nr | 190 | fs/xiafs/inode.c | tmp = ((u_long *) bh->b_data)[nr]; |
nr | 275 | fs/xiafs/inode.c | int nr, int create, u_long prev_addr) |
nr | 291 | fs/xiafs/inode.c | lp = nr + (u_long *) bh->b_data; |
nr | 16 | include/asm-alpha/bitops.h | extern __inline__ unsigned long set_bit(unsigned long nr, void * addr) |
nr | 20 | include/asm-alpha/bitops.h | unsigned int * m = ((unsigned int *) addr) + (nr >> 5); |
nr | 34 | include/asm-alpha/bitops.h | :"r" (1UL << (nr & 31)), |
nr | 39 | include/asm-alpha/bitops.h | extern __inline__ unsigned long clear_bit(unsigned long nr, void * addr) |
nr | 43 | include/asm-alpha/bitops.h | unsigned int * m = ((unsigned int *) addr) + (nr >> 5); |
nr | 57 | include/asm-alpha/bitops.h | :"r" (1UL << (nr & 31)), |
nr | 62 | include/asm-alpha/bitops.h | extern __inline__ unsigned long change_bit(unsigned long nr, void * addr) |
nr | 66 | include/asm-alpha/bitops.h | unsigned int * m = ((unsigned int *) addr) + (nr >> 5); |
nr | 78 | include/asm-alpha/bitops.h | :"r" (1UL << (nr & 31)), |
nr | 83 | include/asm-alpha/bitops.h | extern __inline__ unsigned long test_bit(int nr, const void * addr) |
nr | 85 | include/asm-alpha/bitops.h | return 1UL & (((int *) addr)[nr >> 5] >> (nr & 31)); |
nr | 39 | include/asm-alpha/ioctl.h | #define _IOC(dir,type,nr,size) \ |
nr | 43 | include/asm-alpha/ioctl.h | ((nr) << _IOC_NRSHIFT) | \ |
nr | 47 | include/asm-alpha/ioctl.h | #define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0) |
nr | 48 | include/asm-alpha/ioctl.h | #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) |
nr | 49 | include/asm-alpha/ioctl.h | #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 50 | include/asm-alpha/ioctl.h | #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 53 | include/asm-alpha/ioctl.h | #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) |
nr | 54 | include/asm-alpha/ioctl.h | #define _IOC_TYPE(nr) (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK) |
nr | 55 | include/asm-alpha/ioctl.h | #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) |
nr | 56 | include/asm-alpha/ioctl.h | #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) |
nr | 53 | include/asm-alpha/irq.h | #define IRQ_NAME2(nr) nr##_interrupt(void) |
nr | 54 | include/asm-alpha/irq.h | #define IRQ_NAME(nr) IRQ_NAME2(IRQ##nr) |
nr | 55 | include/asm-alpha/irq.h | #define FAST_IRQ_NAME(nr) IRQ_NAME2(fast_IRQ##nr) |
nr | 56 | include/asm-alpha/irq.h | #define BAD_IRQ_NAME(nr) IRQ_NAME2(bad_IRQ##nr) |
nr | 58 | include/asm-alpha/irq.h | #define BUILD_IRQ(chip,nr,mask) \ |
nr | 59 | include/asm-alpha/irq.h | asmlinkage void IRQ_NAME(nr); \ |
nr | 60 | include/asm-alpha/irq.h | asmlinkage void FAST_IRQ_NAME(nr); \ |
nr | 61 | include/asm-alpha/irq.h | asmlinkage void BAD_IRQ_NAME(nr); \ |
nr | 262 | include/asm-alpha/unistd.h | static inline int write(int fd, const char * buf, int nr) |
nr | 264 | include/asm-alpha/unistd.h | return sys_write(fd, buf, nr); |
nr | 268 | include/asm-alpha/unistd.h | static inline int read(int fd, char * buf, int nr) |
nr | 270 | include/asm-alpha/unistd.h | return sys_read(fd, buf, nr); |
nr | 19 | include/asm-generic/bitops.h | extern __inline__ int set_bit(int nr,int * addr) |
nr | 23 | include/asm-generic/bitops.h | addr += nr >> 5; |
nr | 24 | include/asm-generic/bitops.h | mask = 1 << (nr & 0x1f); |
nr | 32 | include/asm-generic/bitops.h | extern __inline__ int clear_bit(int nr, int * addr) |
nr | 36 | include/asm-generic/bitops.h | addr += nr >> 5; |
nr | 37 | include/asm-generic/bitops.h | mask = 1 << (nr & 0x1f); |
nr | 45 | include/asm-generic/bitops.h | extern __inline__ int test_bit(int nr, int * addr) |
nr | 49 | include/asm-generic/bitops.h | addr += nr >> 5; |
nr | 50 | include/asm-generic/bitops.h | mask = 1 << (nr & 0x1f); |
nr | 29 | include/asm-i386/bitops.h | extern __inline__ int set_bit(int nr, void * addr) |
nr | 36 | include/asm-i386/bitops.h | :"ir" (nr)); |
nr | 40 | include/asm-i386/bitops.h | extern __inline__ int clear_bit(int nr, void * addr) |
nr | 47 | include/asm-i386/bitops.h | :"ir" (nr)); |
nr | 51 | include/asm-i386/bitops.h | extern __inline__ int change_bit(int nr, void * addr) |
nr | 58 | include/asm-i386/bitops.h | :"ir" (nr)); |
nr | 65 | include/asm-i386/bitops.h | extern __inline__ int test_bit(int nr, const void * addr) |
nr | 67 | include/asm-i386/bitops.h | return 1UL & (((const unsigned int *) addr)[nr >> 5] >> (nr & 31)); |
nr | 49 | include/asm-i386/ioctl.h | #define _IOC(dir,type,nr,size) \ |
nr | 52 | include/asm-i386/ioctl.h | ((nr) << _IOC_NRSHIFT) | \ |
nr | 56 | include/asm-i386/ioctl.h | #define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0) |
nr | 57 | include/asm-i386/ioctl.h | #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) |
nr | 58 | include/asm-i386/ioctl.h | #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 59 | include/asm-i386/ioctl.h | #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 62 | include/asm-i386/ioctl.h | #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) |
nr | 63 | include/asm-i386/ioctl.h | #define _IOC_TYPE(nr) (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK) |
nr | 64 | include/asm-i386/ioctl.h | #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) |
nr | 65 | include/asm-i386/ioctl.h | #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) |
nr | 125 | include/asm-i386/irq.h | #define IRQ_NAME2(nr) nr##_interrupt(void) |
nr | 126 | include/asm-i386/irq.h | #define IRQ_NAME(nr) IRQ_NAME2(IRQ##nr) |
nr | 127 | include/asm-i386/irq.h | #define FAST_IRQ_NAME(nr) IRQ_NAME2(fast_IRQ##nr) |
nr | 128 | include/asm-i386/irq.h | #define BAD_IRQ_NAME(nr) IRQ_NAME2(bad_IRQ##nr) |
nr | 195 | include/asm-i386/irq.h | #define BUILD_IRQ(chip,nr,mask) \ |
nr | 196 | include/asm-i386/irq.h | asmlinkage void IRQ_NAME(nr); \ |
nr | 197 | include/asm-i386/irq.h | asmlinkage void FAST_IRQ_NAME(nr); \ |
nr | 198 | include/asm-i386/irq.h | asmlinkage void BAD_IRQ_NAME(nr); \ |
nr | 201 | include/asm-i386/irq.h | SYMBOL_NAME_STR(IRQ) #nr "_interrupt:\n\t" \ |
nr | 202 | include/asm-i386/irq.h | "pushl $-"#nr"-2\n\t" \ |
nr | 210 | include/asm-i386/irq.h | "pushl $" #nr "\n\t" \ |
nr | 219 | include/asm-i386/irq.h | SYMBOL_NAME_STR(fast_IRQ) #nr "_interrupt:\n\t" \ |
nr | 224 | include/asm-i386/irq.h | "pushl $" #nr "\n\t" \ |
nr | 233 | include/asm-i386/irq.h | SYMBOL_NAME_STR(bad_IRQ) #nr "_interrupt:\n\t" \ |
nr | 245 | include/asm-i386/irq.h | #define BUILD_MSGIRQ(chip,nr,mask) \ |
nr | 246 | include/asm-i386/irq.h | asmlinkage void IRQ_NAME(nr); \ |
nr | 247 | include/asm-i386/irq.h | asmlinkage void FAST_IRQ_NAME(nr); \ |
nr | 248 | include/asm-i386/irq.h | asmlinkage void BAD_IRQ_NAME(nr); \ |
nr | 251 | include/asm-i386/irq.h | SYMBOL_NAME_STR(IRQ) #nr "_interrupt:\n\t" \ |
nr | 252 | include/asm-i386/irq.h | "pushl $-"#nr"-2\n\t" \ |
nr | 260 | include/asm-i386/irq.h | "pushl $" #nr "\n\t" \ |
nr | 269 | include/asm-i386/irq.h | SYMBOL_NAME_STR(fast_IRQ) #nr "_interrupt:\n\t" \ |
nr | 273 | include/asm-i386/irq.h | "pushl $" #nr "\n\t" \ |
nr | 280 | include/asm-i386/irq.h | SYMBOL_NAME_STR(bad_IRQ) #nr "_interrupt:\n\t" \ |
nr | 285 | include/asm-i386/irq.h | #define BUILD_RESCHEDIRQ(nr) \ |
nr | 286 | include/asm-i386/irq.h | asmlinkage void IRQ_NAME(nr); \ |
nr | 289 | include/asm-i386/irq.h | SYMBOL_NAME_STR(IRQ) #nr "_interrupt:\n\t" \ |
nr | 290 | include/asm-i386/irq.h | "pushl $-"#nr"-2\n\t" \ |
nr | 297 | include/asm-i386/irq.h | "pushl $" #nr "\n\t" \ |
nr | 306 | include/asm-i386/irq.h | #define BUILD_IRQ(chip,nr,mask) \ |
nr | 307 | include/asm-i386/irq.h | asmlinkage void IRQ_NAME(nr); \ |
nr | 308 | include/asm-i386/irq.h | asmlinkage void FAST_IRQ_NAME(nr); \ |
nr | 309 | include/asm-i386/irq.h | asmlinkage void BAD_IRQ_NAME(nr); \ |
nr | 312 | include/asm-i386/irq.h | SYMBOL_NAME_STR(IRQ) #nr "_interrupt:\n\t" \ |
nr | 313 | include/asm-i386/irq.h | "pushl $-"#nr"-2\n\t" \ |
nr | 320 | include/asm-i386/irq.h | "pushl $" #nr "\n\t" \ |
nr | 328 | include/asm-i386/irq.h | SYMBOL_NAME_STR(fast_IRQ) #nr "_interrupt:\n\t" \ |
nr | 332 | include/asm-i386/irq.h | "pushl $" #nr "\n\t" \ |
nr | 340 | include/asm-i386/irq.h | SYMBOL_NAME_STR(bad_IRQ) #nr "_interrupt:\n\t" \ |
nr | 20 | include/asm-m68k/bitops.h | extern __inline__ int set_bit(int nr,void * vaddr) |
nr | 25 | include/asm-m68k/bitops.h | : "=d" (retval) : "d" (nr), "a" (vaddr)); |
nr | 30 | include/asm-m68k/bitops.h | extern __inline__ int clear_bit(int nr, void * vaddr) |
nr | 35 | include/asm-m68k/bitops.h | : "=d" (retval) : "d" (nr), "a" (vaddr)); |
nr | 40 | include/asm-m68k/bitops.h | extern __inline__ int change_bit(int nr, void * vaddr) |
nr | 45 | include/asm-m68k/bitops.h | : "=d" (retval) : "d" (nr), "a" (vaddr)); |
nr | 50 | include/asm-m68k/bitops.h | extern __inline__ int test_bit(int nr, const void * vaddr) |
nr | 55 | include/asm-m68k/bitops.h | : "=d" (retval) : "d" (nr), "a" (vaddr)); |
nr | 24 | include/asm-mips/bitops.h | extern __inline__ int set_bit(int nr, void *addr) |
nr | 28 | include/asm-mips/bitops.h | addr += ((nr >> 3) & ~3); |
nr | 29 | include/asm-mips/bitops.h | mask = 1 << (nr & 0x1f); |
nr | 39 | include/asm-mips/bitops.h | extern __inline__ int clear_bit(int nr, void *addr) |
nr | 43 | include/asm-mips/bitops.h | addr += ((nr >> 3) & ~3); |
nr | 44 | include/asm-mips/bitops.h | mask = 1 << (nr & 0x1f); |
nr | 54 | include/asm-mips/bitops.h | extern __inline__ int change_bit(int nr, void *addr) |
nr | 58 | include/asm-mips/bitops.h | addr += ((nr >> 3) & ~3); |
nr | 59 | include/asm-mips/bitops.h | mask = 1 << (nr & 0x1f); |
nr | 89 | include/asm-mips/bitops.h | extern __inline__ int set_bit(int nr, void * addr) |
nr | 95 | include/asm-mips/bitops.h | a += nr >> 5; |
nr | 96 | include/asm-mips/bitops.h | mask = 1 << (nr & 0x1f); |
nr | 106 | include/asm-mips/bitops.h | extern __inline__ int clear_bit(int nr, void * addr) |
nr | 112 | include/asm-mips/bitops.h | a += nr >> 5; |
nr | 113 | include/asm-mips/bitops.h | mask = 1 << (nr & 0x1f); |
nr | 123 | include/asm-mips/bitops.h | extern __inline__ int change_bit(int nr, void * addr) |
nr | 129 | include/asm-mips/bitops.h | a += nr >> 5; |
nr | 130 | include/asm-mips/bitops.h | mask = 1 << (nr & 0x1f); |
nr | 147 | include/asm-mips/bitops.h | extern __inline__ int test_bit(int nr, const void *addr) |
nr | 149 | include/asm-mips/bitops.h | return 1UL & (((const unsigned int *) addr)[nr >> 5] >> (nr & 31)); |
nr | 55 | include/asm-mips/ioctl.h | #define _IOC(dir,type,nr,size) \ |
nr | 58 | include/asm-mips/ioctl.h | ((nr) << _IOC_NRSHIFT) | \ |
nr | 62 | include/asm-mips/ioctl.h | #define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0) |
nr | 63 | include/asm-mips/ioctl.h | #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) |
nr | 64 | include/asm-mips/ioctl.h | #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 65 | include/asm-mips/ioctl.h | #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 68 | include/asm-mips/ioctl.h | #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) |
nr | 69 | include/asm-mips/ioctl.h | #define _IOC_TYPE(nr) (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK) |
nr | 70 | include/asm-mips/ioctl.h | #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) |
nr | 71 | include/asm-mips/ioctl.h | #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) |
nr | 24 | include/asm-ppc/bitops.h | extern __inline__ int set_bit(int nr, void * add) |
nr | 31 | include/asm-ppc/bitops.h | addr += nr >> 5; |
nr | 32 | include/asm-ppc/bitops.h | mask = BIT(nr); |
nr | 43 | include/asm-ppc/bitops.h | extern __inline__ int change_bit(int nr, void *add) |
nr | 48 | include/asm-ppc/bitops.h | addr += nr >> 5; |
nr | 49 | include/asm-ppc/bitops.h | mask = BIT(nr); |
nr | 58 | include/asm-ppc/bitops.h | extern __inline__ int clear_bit(int nr, void *add) |
nr | 63 | include/asm-ppc/bitops.h | addr += nr >> 5; |
nr | 64 | include/asm-ppc/bitops.h | mask = BIT(nr); |
nr | 71 | include/asm-ppc/bitops.h | extern __inline__ int test_bit(int nr, void *add) |
nr | 77 | include/asm-ppc/bitops.h | addr += nr >> 5; |
nr | 78 | include/asm-ppc/bitops.h | mask = BIT(nr); |
nr | 34 | include/asm-ppc/ioctl.h | #define _IOC(dir,type,nr,size) \ |
nr | 37 | include/asm-ppc/ioctl.h | ((nr) << _IOC_NRSHIFT) | \ |
nr | 41 | include/asm-ppc/ioctl.h | #define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0) |
nr | 42 | include/asm-ppc/ioctl.h | #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) |
nr | 43 | include/asm-ppc/ioctl.h | #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 44 | include/asm-ppc/ioctl.h | #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 47 | include/asm-ppc/ioctl.h | #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) |
nr | 48 | include/asm-ppc/ioctl.h | #define _IOC_TYPE(nr) (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK) |
nr | 49 | include/asm-ppc/ioctl.h | #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) |
nr | 50 | include/asm-ppc/ioctl.h | #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) |
nr | 22 | include/asm-sparc/bitops.h | extern __inline__ unsigned long set_bit(unsigned long nr, void *addr) |
nr | 28 | include/asm-sparc/bitops.h | ADDR += nr >> 5; |
nr | 29 | include/asm-sparc/bitops.h | mask = 1 << (nr & 31); |
nr | 37 | include/asm-sparc/bitops.h | extern __inline__ unsigned long clear_bit(unsigned long nr, void *addr) |
nr | 43 | include/asm-sparc/bitops.h | ADDR += nr >> 5; |
nr | 44 | include/asm-sparc/bitops.h | mask = 1 << (nr & 31); |
nr | 52 | include/asm-sparc/bitops.h | extern __inline__ unsigned long change_bit(unsigned long nr, void *addr) |
nr | 58 | include/asm-sparc/bitops.h | ADDR += nr >> 5; |
nr | 59 | include/asm-sparc/bitops.h | mask = 1 << (nr & 31); |
nr | 68 | include/asm-sparc/bitops.h | extern __inline__ unsigned long test_bit(int nr, const void *addr) |
nr | 70 | include/asm-sparc/bitops.h | return 1UL & (((int *) addr)[nr >> 5] >> (nr & 31)); |
nr | 135 | include/asm-sparc/bitops.h | extern __inline__ int ext2_set_bit(int nr,void * addr) |
nr | 140 | include/asm-sparc/bitops.h | ADDR += nr >> 3; |
nr | 141 | include/asm-sparc/bitops.h | mask = 1 << (nr & 0x07); |
nr | 149 | include/asm-sparc/bitops.h | extern __inline__ int ext2_clear_bit(int nr, void * addr) |
nr | 154 | include/asm-sparc/bitops.h | ADDR += nr >> 3; |
nr | 155 | include/asm-sparc/bitops.h | mask = 1 << (nr & 0x07); |
nr | 163 | include/asm-sparc/bitops.h | extern __inline__ int ext2_test_bit(int nr, const void * addr) |
nr | 168 | include/asm-sparc/bitops.h | ADDR += nr >> 3; |
nr | 169 | include/asm-sparc/bitops.h | mask = 1 << (nr & 0x07); |
nr | 27 | include/asm-sparc/ioctl.h | #define _IOC(dir,type,nr,size) \ |
nr | 30 | include/asm-sparc/ioctl.h | ((nr) << _IOC_NRSHIFT) | \ |
nr | 33 | include/asm-sparc/ioctl.h | #define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0) |
nr | 34 | include/asm-sparc/ioctl.h | #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) |
nr | 35 | include/asm-sparc/ioctl.h | #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 36 | include/asm-sparc/ioctl.h | #define _IORW(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 38 | include/asm-sparc/ioctl.h | #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) |
nr | 39 | include/asm-sparc/ioctl.h | #define _IOC_TYPE(nr) (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK) |
nr | 40 | include/asm-sparc/ioctl.h | #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) |
nr | 41 | include/asm-sparc/ioctl.h | #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) |
nr | 116 | include/linux/blk.h | static void floppy_off(unsigned int nr); |
nr | 568 | include/linux/fs.h | extern struct inode * __iget(struct super_block * sb,int nr,int crsmnt); |
nr | 577 | include/linux/fs.h | extern void ll_rw_block(int rw, int nr, struct buffer_head * bh[]); |
nr | 578 | include/linux/fs.h | extern void ll_rw_page(int rw, kdev_t dev, unsigned long nr, char * buffer); |
nr | 626 | include/linux/fs.h | extern inline struct inode * iget(struct super_block * sb,int nr) |
nr | 628 | include/linux/fs.h | return __iget(sb, nr, 1); |
nr | 74 | include/linux/gscd.h | #define READ_DATA(port, buf, nr) insb(port, buf, nr) |
nr | 34 | include/linux/interrupt.h | extern inline void mark_bh(int nr) |
nr | 36 | include/linux/interrupt.h | set_bit(nr, &bh_active); |
nr | 39 | include/linux/interrupt.h | extern inline void disable_bh(int nr) |
nr | 41 | include/linux/interrupt.h | clear_bit(nr, &bh_mask); |
nr | 44 | include/linux/interrupt.h | extern inline void enable_bh(int nr) |
nr | 46 | include/linux/interrupt.h | set_bit(nr, &bh_mask); |
nr | 75 | include/linux/mcd.h | #define READ_DATA(port, buf, nr) \ |
nr | 76 | include/linux/mcd.h | insb(port, buf, nr) |
nr | 187 | include/linux/msdos_fs.h | extern int fat_access(struct super_block *sb,int nr,int new_value); |
nr | 454 | include/linux/sched.h | if (p->nr >= __MAX_SELECT_TABLE_ENTRIES) |
nr | 456 | include/linux/sched.h | entry = p->entry + p->nr; |
nr | 461 | include/linux/sched.h | p->nr++; |
nr | 113 | include/linux/sjcd.h | #define S_READ_DATA( port, buf, nr ) insb( port, buf, nr ) |
nr | 53 | include/linux/swap.h | #define read_swap_page(nr,buf) \ |
nr | 54 | include/linux/swap.h | rw_swap_page(READ,(nr),(buf),1) |
nr | 55 | include/linux/swap.h | #define write_swap_page(nr,buf) \ |
nr | 56 | include/linux/swap.h | rw_swap_page(WRITE,(nr),(buf),1) |
nr | 23 | include/linux/tty_ldisc.h | unsigned char * buf, unsigned int nr); |
nr | 25 | include/linux/tty_ldisc.h | const unsigned char * buf, unsigned int nr); |
nr | 30 | include/linux/wait.h | int nr; |
nr | 208 | include/net/sock.h | nr_cb *nr; |
nr | 201 | kernel/fork.c | int nr; |
nr | 213 | kernel/fork.c | nr = find_empty_process(); |
nr | 214 | kernel/fork.c | if (nr < 0) |
nr | 249 | kernel/fork.c | task[nr] = p; |
nr | 263 | kernel/fork.c | copy_thread(nr, clone_flags, usp, p, regs); |
nr | 284 | kernel/fork.c | task[nr] = NULL; |
nr | 79 | kernel/sched.c | #define _S(nr) (1<<((nr)-1)) |
nr | 130 | kernel/sched.c | static int nr = 0; |
nr | 131 | kernel/sched.c | if (nr < 5) { |
nr | 132 | kernel/sched.c | nr++; |
nr | 564 | kernel/sched.c | unsigned long nr = 0; |
nr | 570 | kernel/sched.c | nr += FIXED_1; |
nr | 572 | kernel/sched.c | nr-=(smp_num_cpus-1)*FIXED_1; |
nr | 574 | kernel/sched.c | return nr; |
nr | 1151 | kernel/sched.c | static void show_task(int nr,struct task_struct * p) |
nr | 1156 | kernel/sched.c | printk("%-8s %3d ", p->comm, (p == current) ? -nr : nr); |
nr | 18 | kernel/signal.c | #define _S(nr) (1<<((nr)-1)) |
nr | 265 | mm/filemap.c | unsigned long offset, addr, nr; |
nr | 272 | mm/filemap.c | nr = PAGE_SIZE - offset; |
nr | 325 | mm/filemap.c | if (nr > count) |
nr | 326 | mm/filemap.c | nr = count; |
nr | 331 | mm/filemap.c | if (newpage && nr < count) { |
nr | 336 | mm/filemap.c | if (pre_read > (count - nr)) |
nr | 337 | mm/filemap.c | pre_read = count - nr; |
nr | 349 | mm/filemap.c | if (newpage && nr == count && filp->f_reada |
nr | 350 | mm/filemap.c | && !((pos + nr) & ~PAGE_MASK)) { |
nr | 357 | mm/filemap.c | if (nr > inode->i_size - pos) |
nr | 358 | mm/filemap.c | nr = inode->i_size - pos; |
nr | 359 | mm/filemap.c | memcpy_tofs(buf, (void *) (addr + offset), nr); |
nr | 361 | mm/filemap.c | buf += nr; |
nr | 362 | mm/filemap.c | pos += nr; |
nr | 363 | mm/filemap.c | read += nr; |
nr | 364 | mm/filemap.c | count -= nr; |
nr | 204 | mm/page_alloc.c | unsigned long nr = 0; |
nr | 206 | mm/page_alloc.c | nr ++; |
nr | 208 | mm/page_alloc.c | total += nr * ((PAGE_SIZE>>10) << order); |
nr | 209 | mm/page_alloc.c | printk("%lu*%lukB ", nr, (PAGE_SIZE>>10) << order); |
nr | 292 | mm/swapfile.c | int nr; |
nr | 297 | mm/swapfile.c | nr = 0; |
nr | 298 | mm/swapfile.c | while (nr < NR_TASKS) { |
nr | 299 | mm/swapfile.c | if (task[nr]) { |
nr | 300 | mm/swapfile.c | if (unuse_process(task[nr], type, page)) { |
nr | 307 | mm/swapfile.c | nr++; |
nr | 6 | net/802/llc.c | int llc_rx_adm(struct sock *sk,struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
nr | 36 | net/802/llc.c | int llc_rx_setup(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
nr | 70 | net/802/llc.c | int llc_rx_reset(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
nr | 114 | net/802/llc.c | int llc_rx_d_conn(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
nr | 150 | net/802/llc.c | int llc_rx_error(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
nr | 199 | net/802/llc.c | int llc_rx_nr_shared(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
nr | 288 | net/802/llc.c | int llc_rx_normal(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
nr | 290 | net/802/llc.c | if(llc_rx_nr_shared(sk, skb, type, cmd, pf, nr, ns)) |
nr | 299 | net/802/llc.c | llc_ack_frames(sk,nr); /* Ack frames and update N(R) */ |
nr | 312 | net/802/llc.c | llc_ack_frames(sk,nr); |
nr | 320 | net/802/llc.c | llc_ack_frames(sk,nr); |
nr | 338 | net/802/llc.c | llc_ack_frames(sk,nr); |
nr | 348 | net/802/llc.c | if(sk->llc.nr!=nr) |
nr | 350 | net/802/llc.c | llc_ack_frames(sk,nr); |
nr | 358 | net/802/llc.c | if(sk->llc.nr!=nr) |
nr | 360 | net/802/llc.c | llc_ack_frames(sk,nr); |
nr | 373 | net/802/llc.c | if(sk->llc.nr!=nr) |
nr | 375 | net/802/llc.c | llc_ack_frames(sk,nr); |
nr | 396 | net/802/llc.c | if(sk->llc.nr!=nr) |
nr | 398 | net/802/llc.c | llc_ack_frames(sk,nr); |
nr | 690 | net/appletalk/ddp.c | struct netrange *nr; |
nr | 720 | net/appletalk/ddp.c | nr=(struct netrange *)&sa->sat_zero[0]; |
nr | 721 | net/appletalk/ddp.c | if(nr->nr_phase!=2) |
nr | 741 | net/appletalk/ddp.c | atif->nets= *nr; |
nr | 772 | net/appletalk/ddp.c | if(nr->nr_firstnet==htons(0) && nr->nr_lastnet==htons(0xFFFE)) |
nr | 780 | net/appletalk/ddp.c | limit=ntohs(nr->nr_lastnet); |
nr | 781 | net/appletalk/ddp.c | if(limit-ntohs(nr->nr_firstnet) > 256) |
nr | 786 | net/appletalk/ddp.c | for(ct=ntohs(nr->nr_firstnet);ct<=limit;ct++) |
nr | 345 | net/ax25/ax25_in.c | static int ax25_state3_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int nr, int pf, int type, int dama) |
nr | 415 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 416 | net/ax25/ax25_in.c | ax25_check_iframes_acked(ax25, nr); |
nr | 427 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 428 | net/ax25/ax25_in.c | ax25_check_iframes_acked(ax25, nr); |
nr | 439 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 440 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 457 | net/ax25/ax25_in.c | if (!ax25_validate_nr(ax25, nr)) { |
nr | 463 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 465 | net/ax25/ax25_in.c | ax25_check_iframes_acked(ax25, nr); |
nr | 540 | net/ax25/ax25_in.c | static int ax25_state4_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int nr, int pf, int type, int dama) |
nr | 616 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 617 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 633 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 634 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 646 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 647 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 664 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 665 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 677 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 678 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 695 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 696 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 712 | net/ax25/ax25_in.c | if (!ax25_validate_nr(ax25, nr)) { |
nr | 717 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 791 | net/ax25/ax25_in.c | int queued = 0, frametype, ns, nr, pf; |
nr | 804 | net/ax25/ax25_in.c | frametype = ax25_decode(ax25, skb, &ns, &nr, &pf); |
nr | 814 | net/ax25/ax25_in.c | queued = ax25_state3_machine(ax25, skb, frametype, ns, nr, pf, type, dama); |
nr | 817 | net/ax25/ax25_in.c | queued = ax25_state4_machine(ax25, skb, frametype, ns, nr, pf, type, dama); |
nr | 306 | net/ax25/ax25_out.c | void ax25_check_iframes_acked(ax25_cb *ax25, unsigned short nr) |
nr | 308 | net/ax25/ax25_out.c | if (ax25->vs == nr) { |
nr | 309 | net/ax25/ax25_out.c | ax25_frames_acked(ax25, nr); |
nr | 314 | net/ax25/ax25_out.c | if (ax25->va != nr) { |
nr | 315 | net/ax25/ax25_out.c | ax25_frames_acked(ax25, nr); |
nr | 88 | net/ax25/ax25_subr.c | void ax25_frames_acked(ax25_cb *ax25, unsigned short nr) |
nr | 95 | net/ax25/ax25_subr.c | if (ax25->va != nr) { |
nr | 96 | net/ax25/ax25_subr.c | while (skb_peek(&ax25->ack_queue) != NULL && ax25->va != nr) { |
nr | 133 | net/ax25/ax25_subr.c | int ax25_validate_nr(ax25_cb *ax25, unsigned short nr) |
nr | 138 | net/ax25/ax25_subr.c | if (nr == vc) return 1; |
nr | 142 | net/ax25/ax25_subr.c | if (nr == ax25->vs) return 1; |
nr | 151 | net/ax25/ax25_subr.c | int ax25_decode(ax25_cb *ax25, struct sk_buff *skb, int *ns, int *nr, int *pf) |
nr | 157 | net/ax25/ax25_subr.c | *ns = *nr = *pf = 0; |
nr | 163 | net/ax25/ax25_subr.c | *nr = (frame[0] >> 5) & 0x07; |
nr | 167 | net/ax25/ax25_subr.c | *nr = (frame[0] >> 5) & 0x07; |
nr | 178 | net/ax25/ax25_subr.c | *nr = (frame[1] >> 1) & 0x7F; |
nr | 183 | net/ax25/ax25_subr.c | *nr = (frame[1] >> 1) & 0x7F; |
nr | 1147 | net/ipv4/route.c | int nr=0; |
nr | 1163 | net/ipv4/route.c | nr++; |
nr | 1168 | net/ipv4/route.c | if (nr > 0) |
nr | 1169 | net/ipv4/route.c | printk("rt_cache_flush: %d@%02x\n", nr, i); |
nr | 107 | net/netrom/af_netrom.c | if (s->nr->device == dev) { |
nr | 108 | net/netrom/af_netrom.c | s->nr->state = NR_STATE_0; |
nr | 109 | net/netrom/af_netrom.c | s->nr->device = NULL; |
nr | 163 | net/netrom/af_netrom.c | if (ax25cmp(&s->nr->source_addr, addr) == 0 && s->type == type && s->state == TCP_LISTEN) { |
nr | 185 | net/netrom/af_netrom.c | if (s->nr->my_index == index && s->nr->my_id == id && s->type == type) { |
nr | 208 | net/netrom/af_netrom.c | if (s->nr->your_index == index && s->nr->your_id == id && s->type == type) { |
nr | 255 | net/netrom/af_netrom.c | skb->sk->nr->state = NR_STATE_0; |
nr | 268 | net/netrom/af_netrom.c | kfree_s(sk->nr, sizeof(*sk->nr)); |
nr | 311 | net/netrom/af_netrom.c | sk->nr->rtt = (opt * PR_SLOWHZ) / 2; |
nr | 317 | net/netrom/af_netrom.c | sk->nr->t2 = opt * PR_SLOWHZ; |
nr | 323 | net/netrom/af_netrom.c | sk->nr->n2 = opt; |
nr | 327 | net/netrom/af_netrom.c | sk->nr->hdrincl = opt ? 1 : 0; |
nr | 352 | net/netrom/af_netrom.c | val = (sk->nr->t1 * 2) / PR_SLOWHZ; |
nr | 356 | net/netrom/af_netrom.c | val = sk->nr->t2 / PR_SLOWHZ; |
nr | 360 | net/netrom/af_netrom.c | val = sk->nr->n2; |
nr | 364 | net/netrom/af_netrom.c | val = sk->nr->hdrincl; |
nr | 389 | net/netrom/af_netrom.c | memset(&sk->nr->user_addr, '\0', sizeof(ax25_address)); |
nr | 413 | net/netrom/af_netrom.c | nr_cb *nr; |
nr | 421 | net/netrom/af_netrom.c | if ((nr = (nr_cb *)kmalloc(sizeof(*nr), GFP_ATOMIC)) == NULL) { |
nr | 468 | net/netrom/af_netrom.c | skb_queue_head_init(&nr->ack_queue); |
nr | 469 | net/netrom/af_netrom.c | skb_queue_head_init(&nr->reseq_queue); |
nr | 470 | net/netrom/af_netrom.c | skb_queue_head_init(&nr->frag_queue); |
nr | 472 | net/netrom/af_netrom.c | nr->my_index = 0; |
nr | 473 | net/netrom/af_netrom.c | nr->my_id = 0; |
nr | 474 | net/netrom/af_netrom.c | nr->rtt = nr_default.timeout / 2; |
nr | 475 | net/netrom/af_netrom.c | nr->t1 = nr_default.timeout; |
nr | 476 | net/netrom/af_netrom.c | nr->t2 = nr_default.ack_delay; |
nr | 477 | net/netrom/af_netrom.c | nr->n2 = nr_default.tries; |
nr | 479 | net/netrom/af_netrom.c | nr->t1timer = 0; |
nr | 480 | net/netrom/af_netrom.c | nr->t2timer = 0; |
nr | 481 | net/netrom/af_netrom.c | nr->t4timer = 0; |
nr | 482 | net/netrom/af_netrom.c | nr->n2count = 0; |
nr | 484 | net/netrom/af_netrom.c | nr->va = 0; |
nr | 485 | net/netrom/af_netrom.c | nr->vr = 0; |
nr | 486 | net/netrom/af_netrom.c | nr->vs = 0; |
nr | 487 | net/netrom/af_netrom.c | nr->vl = 0; |
nr | 489 | net/netrom/af_netrom.c | nr->your_index = 0; |
nr | 490 | net/netrom/af_netrom.c | nr->your_id = 0; |
nr | 492 | net/netrom/af_netrom.c | nr->my_index = 0; |
nr | 493 | net/netrom/af_netrom.c | nr->my_id = 0; |
nr | 495 | net/netrom/af_netrom.c | nr->bpqext = 1; |
nr | 496 | net/netrom/af_netrom.c | nr->fraglen = 0; |
nr | 497 | net/netrom/af_netrom.c | nr->hdrincl = 0; |
nr | 498 | net/netrom/af_netrom.c | nr->state = NR_STATE_0; |
nr | 499 | net/netrom/af_netrom.c | nr->device = NULL; |
nr | 501 | net/netrom/af_netrom.c | memset(&nr->source_addr, '\0', sizeof(ax25_address)); |
nr | 502 | net/netrom/af_netrom.c | memset(&nr->user_addr, '\0', sizeof(ax25_address)); |
nr | 503 | net/netrom/af_netrom.c | memset(&nr->dest_addr, '\0', sizeof(ax25_address)); |
nr | 505 | net/netrom/af_netrom.c | nr->sk = sk; |
nr | 506 | net/netrom/af_netrom.c | sk->nr = nr; |
nr | 514 | net/netrom/af_netrom.c | nr_cb *nr; |
nr | 522 | net/netrom/af_netrom.c | if ((nr = (nr_cb *)kmalloc(sizeof(*nr), GFP_ATOMIC)) == NULL) { |
nr | 564 | net/netrom/af_netrom.c | skb_queue_head_init(&nr->ack_queue); |
nr | 565 | net/netrom/af_netrom.c | skb_queue_head_init(&nr->reseq_queue); |
nr | 566 | net/netrom/af_netrom.c | skb_queue_head_init(&nr->frag_queue); |
nr | 568 | net/netrom/af_netrom.c | nr->rtt = osk->nr->rtt; |
nr | 569 | net/netrom/af_netrom.c | nr->t1 = osk->nr->t1; |
nr | 570 | net/netrom/af_netrom.c | nr->t2 = osk->nr->t2; |
nr | 571 | net/netrom/af_netrom.c | nr->n2 = osk->nr->n2; |
nr | 573 | net/netrom/af_netrom.c | nr->device = osk->nr->device; |
nr | 574 | net/netrom/af_netrom.c | nr->bpqext = osk->nr->bpqext; |
nr | 575 | net/netrom/af_netrom.c | nr->hdrincl = osk->nr->hdrincl; |
nr | 576 | net/netrom/af_netrom.c | nr->fraglen = 0; |
nr | 578 | net/netrom/af_netrom.c | nr->t1timer = 0; |
nr | 579 | net/netrom/af_netrom.c | nr->t2timer = 0; |
nr | 580 | net/netrom/af_netrom.c | nr->t4timer = 0; |
nr | 581 | net/netrom/af_netrom.c | nr->n2count = 0; |
nr | 583 | net/netrom/af_netrom.c | nr->va = 0; |
nr | 584 | net/netrom/af_netrom.c | nr->vr = 0; |
nr | 585 | net/netrom/af_netrom.c | nr->vs = 0; |
nr | 586 | net/netrom/af_netrom.c | nr->vl = 0; |
nr | 588 | net/netrom/af_netrom.c | sk->nr = nr; |
nr | 589 | net/netrom/af_netrom.c | nr->sk = sk; |
nr | 608 | net/netrom/af_netrom.c | switch (sk->nr->state) { |
nr | 617 | net/netrom/af_netrom.c | sk->nr->state = NR_STATE_0; |
nr | 626 | net/netrom/af_netrom.c | sk->nr->state = NR_STATE_0; |
nr | 635 | net/netrom/af_netrom.c | sk->nr->n2count = 0; |
nr | 637 | net/netrom/af_netrom.c | sk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk); |
nr | 638 | net/netrom/af_netrom.c | sk->nr->t2timer = 0; |
nr | 639 | net/netrom/af_netrom.c | sk->nr->t4timer = 0; |
nr | 640 | net/netrom/af_netrom.c | sk->nr->state = NR_STATE_2; |
nr | 690 | net/netrom/af_netrom.c | memcpy(&sk->nr->user_addr, &addr->fsa_digipeater[0], sizeof(ax25_address)); |
nr | 691 | net/netrom/af_netrom.c | memcpy(&sk->nr->source_addr, &addr->fsa_ax25.sax25_call, sizeof(ax25_address)); |
nr | 701 | net/netrom/af_netrom.c | memcpy(&sk->nr->user_addr, user, sizeof(ax25_address)); |
nr | 702 | net/netrom/af_netrom.c | memcpy(&sk->nr->source_addr, source, sizeof(ax25_address)); |
nr | 705 | net/netrom/af_netrom.c | sk->nr->device = dev; |
nr | 757 | net/netrom/af_netrom.c | memcpy(&sk->nr->user_addr, user, sizeof(ax25_address)); |
nr | 758 | net/netrom/af_netrom.c | memcpy(&sk->nr->source_addr, source, sizeof(ax25_address)); |
nr | 760 | net/netrom/af_netrom.c | sk->nr->device = dev; |
nr | 765 | net/netrom/af_netrom.c | memcpy(&sk->nr->dest_addr, &addr->sax25_call, sizeof(ax25_address)); |
nr | 770 | net/netrom/af_netrom.c | sk->nr->my_index = circuit / 256; |
nr | 771 | net/netrom/af_netrom.c | sk->nr->my_id = circuit % 256; |
nr | 779 | net/netrom/af_netrom.c | sk->nr->state = NR_STATE_1; |
nr | 881 | net/netrom/af_netrom.c | memcpy(&sax->fsa_ax25.sax25_call, &sk->nr->user_addr, sizeof(ax25_address)); |
nr | 882 | net/netrom/af_netrom.c | memcpy(&sax->fsa_digipeater[0], &sk->nr->dest_addr, sizeof(ax25_address)); |
nr | 887 | net/netrom/af_netrom.c | memcpy(&sax->fsa_ax25.sax25_call, &sk->nr->source_addr, sizeof(ax25_address)); |
nr | 937 | net/netrom/af_netrom.c | sk->nr->bpqext = 1; |
nr | 939 | net/netrom/af_netrom.c | sk->nr->bpqext = 0; |
nr | 962 | net/netrom/af_netrom.c | memcpy(&make->nr->source_addr, dest, sizeof(ax25_address)); |
nr | 963 | net/netrom/af_netrom.c | memcpy(&make->nr->dest_addr, src, sizeof(ax25_address)); |
nr | 964 | net/netrom/af_netrom.c | memcpy(&make->nr->user_addr, user, sizeof(ax25_address)); |
nr | 966 | net/netrom/af_netrom.c | make->nr->your_index = circuit_index; |
nr | 967 | net/netrom/af_netrom.c | make->nr->your_id = circuit_id; |
nr | 969 | net/netrom/af_netrom.c | make->nr->my_index = circuit / 256; |
nr | 970 | net/netrom/af_netrom.c | make->nr->my_id = circuit % 256; |
nr | 981 | net/netrom/af_netrom.c | if (timeout * PR_SLOWHZ < make->nr->rtt * 2) |
nr | 982 | net/netrom/af_netrom.c | make->nr->rtt = (timeout * PR_SLOWHZ) / 2; |
nr | 983 | net/netrom/af_netrom.c | make->nr->bpqext = 1; |
nr | 985 | net/netrom/af_netrom.c | make->nr->bpqext = 0; |
nr | 990 | net/netrom/af_netrom.c | make->nr->condition = 0x00; |
nr | 991 | net/netrom/af_netrom.c | make->nr->vs = 0; |
nr | 992 | net/netrom/af_netrom.c | make->nr->va = 0; |
nr | 993 | net/netrom/af_netrom.c | make->nr->vr = 0; |
nr | 994 | net/netrom/af_netrom.c | make->nr->vl = 0; |
nr | 995 | net/netrom/af_netrom.c | make->nr->state = NR_STATE_3; |
nr | 1030 | net/netrom/af_netrom.c | if (sk->nr->device == NULL) |
nr | 1037 | net/netrom/af_netrom.c | if (sk->type == SOCK_SEQPACKET && memcmp(&sk->nr->dest_addr, &sax.sax25_call, sizeof(ax25_address)) != 0) |
nr | 1045 | net/netrom/af_netrom.c | memcpy(&sax.sax25_call, &sk->nr->dest_addr, sizeof(ax25_address)); |
nr | 1077 | net/netrom/af_netrom.c | *asmptr++ = sk->nr->your_index; |
nr | 1078 | net/netrom/af_netrom.c | *asmptr++ = sk->nr->your_id; |
nr | 1140 | net/netrom/af_netrom.c | if (!sk->nr->hdrincl) { |
nr | 1278 | net/netrom/af_netrom.c | if ((dev = s->nr->device) == NULL) |
nr | 1284 | net/netrom/af_netrom.c | ax2asc(&s->nr->user_addr)); |
nr | 1286 | net/netrom/af_netrom.c | ax2asc(&s->nr->dest_addr)); |
nr | 1288 | net/netrom/af_netrom.c | ax2asc(&s->nr->source_addr), |
nr | 1289 | net/netrom/af_netrom.c | devname, s->nr->my_index, s->nr->my_id, |
nr | 1290 | net/netrom/af_netrom.c | s->nr->your_index, s->nr->your_id, |
nr | 1291 | net/netrom/af_netrom.c | s->nr->state, |
nr | 1292 | net/netrom/af_netrom.c | s->nr->vs, s->nr->vr, s->nr->va, |
nr | 1293 | net/netrom/af_netrom.c | s->nr->t1timer / PR_SLOWHZ, |
nr | 1294 | net/netrom/af_netrom.c | s->nr->t1 / PR_SLOWHZ, |
nr | 1295 | net/netrom/af_netrom.c | s->nr->t2timer / PR_SLOWHZ, |
nr | 1296 | net/netrom/af_netrom.c | s->nr->t2 / PR_SLOWHZ, |
nr | 1297 | net/netrom/af_netrom.c | s->nr->n2count, s->nr->n2, |
nr | 1298 | net/netrom/af_netrom.c | s->nr->rtt / PR_SLOWHZ, |
nr | 58 | net/netrom/nr_in.c | sk->nr->fraglen += skb->len; |
nr | 59 | net/netrom/nr_in.c | skb_queue_tail(&sk->nr->frag_queue, skb); |
nr | 63 | net/netrom/nr_in.c | if (!more && sk->nr->fraglen > 0) { /* End of fragment */ |
nr | 64 | net/netrom/nr_in.c | sk->nr->fraglen += skb->len; |
nr | 65 | net/netrom/nr_in.c | skb_queue_tail(&sk->nr->frag_queue, skb); |
nr | 67 | net/netrom/nr_in.c | if ((skbn = alloc_skb(sk->nr->fraglen, GFP_ATOMIC)) == NULL) |
nr | 76 | net/netrom/nr_in.c | skbo = skb_dequeue(&sk->nr->frag_queue); |
nr | 80 | net/netrom/nr_in.c | while ((skbo = skb_dequeue(&sk->nr->frag_queue)) != NULL) { |
nr | 86 | net/netrom/nr_in.c | sk->nr->fraglen = 0; |
nr | 104 | net/netrom/nr_in.c | sk->nr->your_index = skb->data[17]; |
nr | 105 | net/netrom/nr_in.c | sk->nr->your_id = skb->data[18]; |
nr | 106 | net/netrom/nr_in.c | sk->nr->t1timer = 0; |
nr | 107 | net/netrom/nr_in.c | sk->nr->t2timer = 0; |
nr | 108 | net/netrom/nr_in.c | sk->nr->t4timer = 0; |
nr | 109 | net/netrom/nr_in.c | sk->nr->vs = 0; |
nr | 110 | net/netrom/nr_in.c | sk->nr->va = 0; |
nr | 111 | net/netrom/nr_in.c | sk->nr->vr = 0; |
nr | 112 | net/netrom/nr_in.c | sk->nr->vl = 0; |
nr | 113 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_3; |
nr | 115 | net/netrom/nr_in.c | sk->nr->n2count = 0; |
nr | 123 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_0; |
nr | 151 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_0; |
nr | 176 | net/netrom/nr_in.c | unsigned short nr, ns; |
nr | 179 | net/netrom/nr_in.c | nr = skb->data[18]; |
nr | 191 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_0; |
nr | 201 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_0; |
nr | 214 | net/netrom/nr_in.c | sk->nr->condition |= PEER_RX_BUSY_CONDITION; |
nr | 215 | net/netrom/nr_in.c | sk->nr->t4timer = nr_default.busy_delay; |
nr | 217 | net/netrom/nr_in.c | sk->nr->condition &= ~PEER_RX_BUSY_CONDITION; |
nr | 218 | net/netrom/nr_in.c | sk->nr->t4timer = 0; |
nr | 220 | net/netrom/nr_in.c | if (!nr_validate_nr(sk, nr)) { |
nr | 224 | net/netrom/nr_in.c | nr_frames_acked(sk, nr); |
nr | 227 | net/netrom/nr_in.c | if (sk->nr->condition & PEER_RX_BUSY_CONDITION) { |
nr | 228 | net/netrom/nr_in.c | nr_frames_acked(sk, nr); |
nr | 230 | net/netrom/nr_in.c | nr_check_iframes_acked(sk, nr); |
nr | 244 | net/netrom/nr_in.c | sk->nr->condition |= PEER_RX_BUSY_CONDITION; |
nr | 245 | net/netrom/nr_in.c | sk->nr->t4timer = nr_default.busy_delay; |
nr | 247 | net/netrom/nr_in.c | sk->nr->condition &= ~PEER_RX_BUSY_CONDITION; |
nr | 248 | net/netrom/nr_in.c | sk->nr->t4timer = 0; |
nr | 250 | net/netrom/nr_in.c | if (nr_validate_nr(sk, nr)) { |
nr | 252 | net/netrom/nr_in.c | nr_frames_acked(sk, nr); |
nr | 255 | net/netrom/nr_in.c | if (sk->nr->condition & PEER_RX_BUSY_CONDITION) { |
nr | 256 | net/netrom/nr_in.c | nr_frames_acked(sk, nr); |
nr | 258 | net/netrom/nr_in.c | nr_check_iframes_acked(sk, nr); |
nr | 263 | net/netrom/nr_in.c | skb_queue_head(&sk->nr->reseq_queue, skb); |
nr | 264 | net/netrom/nr_in.c | if (sk->nr->condition & OWN_RX_BUSY_CONDITION) |
nr | 268 | net/netrom/nr_in.c | save_vr = sk->nr->vr; |
nr | 269 | net/netrom/nr_in.c | while ((skbn = skb_dequeue(&sk->nr->reseq_queue)) != NULL) { |
nr | 271 | net/netrom/nr_in.c | if (ns == sk->nr->vr) { |
nr | 273 | net/netrom/nr_in.c | sk->nr->vr = (sk->nr->vr + 1) % NR_MODULUS; |
nr | 275 | net/netrom/nr_in.c | sk->nr->condition |= OWN_RX_BUSY_CONDITION; |
nr | 286 | net/netrom/nr_in.c | skb_queue_tail(&sk->nr->reseq_queue, skbn); |
nr | 288 | net/netrom/nr_in.c | } while (save_vr != sk->nr->vr); |
nr | 292 | net/netrom/nr_in.c | if (((sk->nr->vl + sk->window) % NR_MODULUS) == sk->nr->vr) { |
nr | 295 | net/netrom/nr_in.c | if (!(sk->nr->condition & ACK_PENDING_CONDITION)) { |
nr | 296 | net/netrom/nr_in.c | sk->nr->t2timer = sk->nr->t2; |
nr | 297 | net/netrom/nr_in.c | sk->nr->condition |= ACK_PENDING_CONDITION; |
nr | 314 | net/netrom/nr_in.c | if (sk->nr->state == NR_STATE_0 && sk->dead) |
nr | 317 | net/netrom/nr_in.c | if (sk->nr->state != NR_STATE_1 && sk->nr->state != NR_STATE_2 && |
nr | 318 | net/netrom/nr_in.c | sk->nr->state != NR_STATE_3) { |
nr | 319 | net/netrom/nr_in.c | printk("nr_process_rx_frame: frame received - state: %d\n", sk->nr->state); |
nr | 327 | net/netrom/nr_in.c | switch (sk->nr->state) |
nr | 55 | net/netrom/nr_out.c | mtu = sk->nr->device->mtu; |
nr | 96 | net/netrom/nr_out.c | if (sk->nr->state == NR_STATE_3) |
nr | 109 | net/netrom/nr_out.c | skb->data[2] = sk->nr->vs; |
nr | 110 | net/netrom/nr_out.c | skb->data[3] = sk->nr->vr; |
nr | 112 | net/netrom/nr_out.c | if (sk->nr->condition & OWN_RX_BUSY_CONDITION) |
nr | 122 | net/netrom/nr_out.c | if ((skb = skb_peek(&sk->nr->ack_queue)) == NULL) |
nr | 128 | net/netrom/nr_out.c | skbn->data[2] = sk->nr->va; |
nr | 129 | net/netrom/nr_out.c | skbn->data[3] = sk->nr->vr; |
nr | 131 | net/netrom/nr_out.c | if (sk->nr->condition & OWN_RX_BUSY_CONDITION) |
nr | 136 | net/netrom/nr_out.c | sk->nr->condition &= ~ACK_PENDING_CONDITION; |
nr | 137 | net/netrom/nr_out.c | sk->nr->vl = sk->nr->vr; |
nr | 138 | net/netrom/nr_out.c | sk->nr->t1timer = 0; |
nr | 149 | net/netrom/nr_out.c | start = (skb_peek(&sk->nr->ack_queue) == NULL) ? sk->nr->va : sk->nr->vs; |
nr | 150 | net/netrom/nr_out.c | end = (sk->nr->va + sk->window) % NR_MODULUS; |
nr | 152 | net/netrom/nr_out.c | if (!(sk->nr->condition & PEER_RX_BUSY_CONDITION) && |
nr | 156 | net/netrom/nr_out.c | sk->nr->vs = start; |
nr | 174 | net/netrom/nr_out.c | next = (sk->nr->vs + 1) % NR_MODULUS; |
nr | 182 | net/netrom/nr_out.c | sk->nr->vs = next; |
nr | 187 | net/netrom/nr_out.c | skb_queue_tail(&sk->nr->ack_queue, skb); |
nr | 191 | net/netrom/nr_out.c | sk->nr->vl = sk->nr->vr; |
nr | 192 | net/netrom/nr_out.c | sk->nr->condition &= ~ACK_PENDING_CONDITION; |
nr | 194 | net/netrom/nr_out.c | if (sk->nr->t1timer == 0) { |
nr | 195 | net/netrom/nr_out.c | sk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk); |
nr | 211 | net/netrom/nr_out.c | memcpy(dptr, &sk->nr->source_addr, sizeof(ax25_address)); |
nr | 217 | net/netrom/nr_out.c | memcpy(dptr, &sk->nr->dest_addr, sizeof(ax25_address)); |
nr | 245 | net/netrom/nr_out.c | sk->nr->condition = 0x00; |
nr | 246 | net/netrom/nr_out.c | sk->nr->n2count = 0; |
nr | 250 | net/netrom/nr_out.c | sk->nr->t2timer = 0; |
nr | 251 | net/netrom/nr_out.c | sk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk); |
nr | 261 | net/netrom/nr_out.c | if (sk->nr->condition & OWN_RX_BUSY_CONDITION) { |
nr | 264 | net/netrom/nr_out.c | if (skb_peek(&sk->nr->reseq_queue) != NULL) { |
nr | 271 | net/netrom/nr_out.c | sk->nr->vl = sk->nr->vr; |
nr | 272 | net/netrom/nr_out.c | sk->nr->condition &= ~ACK_PENDING_CONDITION; |
nr | 275 | net/netrom/nr_out.c | void nr_check_iframes_acked(struct sock *sk, unsigned short nr) |
nr | 277 | net/netrom/nr_out.c | if (sk->nr->vs == nr) { |
nr | 278 | net/netrom/nr_out.c | nr_frames_acked(sk, nr); |
nr | 280 | net/netrom/nr_out.c | sk->nr->t1timer = 0; |
nr | 281 | net/netrom/nr_out.c | sk->nr->n2count = 0; |
nr | 283 | net/netrom/nr_out.c | if (sk->nr->va != nr) { |
nr | 284 | net/netrom/nr_out.c | nr_frames_acked(sk, nr); |
nr | 285 | net/netrom/nr_out.c | sk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk); |
nr | 67 | net/netrom/nr_route.c | static int nr_add_node(ax25_address *nr, const char *mnemonic, ax25_address *ax25, |
nr | 77 | net/netrom/nr_route.c | if (ax25cmp(nr, &nr_node->callsign) == 0) |
nr | 121 | net/netrom/nr_route.c | memcpy(&nr_node->callsign, nr, sizeof(ax25_address)); |
nr | 57 | net/netrom/nr_subr.c | while ((skb = skb_dequeue(&sk->nr->ack_queue)) != NULL) { |
nr | 63 | net/netrom/nr_subr.c | while ((skb = skb_dequeue(&sk->nr->reseq_queue)) != NULL) { |
nr | 67 | net/netrom/nr_subr.c | while ((skb = skb_dequeue(&sk->nr->frag_queue)) != NULL) { |
nr | 77 | net/netrom/nr_subr.c | void nr_frames_acked(struct sock *sk, unsigned short nr) |
nr | 84 | net/netrom/nr_subr.c | if (sk->nr->va != nr) { |
nr | 85 | net/netrom/nr_subr.c | while (skb_peek(&sk->nr->ack_queue) != NULL && sk->nr->va != nr) { |
nr | 86 | net/netrom/nr_subr.c | skb = skb_dequeue(&sk->nr->ack_queue); |
nr | 90 | net/netrom/nr_subr.c | sk->nr->va = (sk->nr->va + 1) % NR_MODULUS; |
nr | 104 | net/netrom/nr_subr.c | while ((skb = skb_dequeue(&sk->nr->ack_queue)) != NULL) { |
nr | 117 | net/netrom/nr_subr.c | int nr_validate_nr(struct sock *sk, unsigned short nr) |
nr | 119 | net/netrom/nr_subr.c | unsigned short vc = sk->nr->va; |
nr | 121 | net/netrom/nr_subr.c | while (vc != sk->nr->vs) { |
nr | 122 | net/netrom/nr_subr.c | if (nr == vc) return 1; |
nr | 126 | net/netrom/nr_subr.c | if (nr == sk->nr->vs) return 1; |
nr | 136 | net/netrom/nr_subr.c | unsigned short vc = sk->nr->vr; |
nr | 137 | net/netrom/nr_subr.c | unsigned short vt = (sk->nr->vl + sk->window) % NR_MODULUS; |
nr | 164 | net/netrom/nr_subr.c | len += (sk->nr->bpqext) ? 2 : 1; |
nr | 188 | net/netrom/nr_subr.c | timeout = (sk->nr->rtt / PR_SLOWHZ) * 2; |
nr | 189 | net/netrom/nr_subr.c | *dptr++ = sk->nr->my_index; |
nr | 190 | net/netrom/nr_subr.c | *dptr++ = sk->nr->my_id; |
nr | 195 | net/netrom/nr_subr.c | memcpy(dptr, &sk->nr->user_addr, sizeof(ax25_address)); |
nr | 200 | net/netrom/nr_subr.c | memcpy(dptr, &sk->nr->source_addr, sizeof(ax25_address)); |
nr | 210 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_index; |
nr | 211 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_id; |
nr | 212 | net/netrom/nr_subr.c | *dptr++ = sk->nr->my_index; |
nr | 213 | net/netrom/nr_subr.c | *dptr++ = sk->nr->my_id; |
nr | 216 | net/netrom/nr_subr.c | if (sk->nr->bpqext) *dptr++ = nr_default.ttl; |
nr | 221 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_index; |
nr | 222 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_id; |
nr | 229 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_index; |
nr | 230 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_id; |
nr | 232 | net/netrom/nr_subr.c | *dptr++ = sk->nr->vr; |
nr | 296 | net/netrom/nr_subr.c | for (t = 2, n = 0; n < sk->nr->n2count; n++) |
nr | 301 | net/netrom/nr_subr.c | return t * sk->nr->rtt; |
nr | 309 | net/netrom/nr_subr.c | if (sk->nr->t1timer > 0 && sk->nr->n2count == 0) |
nr | 310 | net/netrom/nr_subr.c | sk->nr->rtt = (9 * sk->nr->rtt + sk->nr->t1 - sk->nr->t1timer) / 10; |
nr | 314 | net/netrom/nr_subr.c | if (sk->nr->rtt < (NR_T1CLAMPLO)) |
nr | 315 | net/netrom/nr_subr.c | sk->nr->rtt = (NR_T1CLAMPLO); |
nr | 317 | net/netrom/nr_subr.c | if (sk->nr->rtt == 0) |
nr | 318 | net/netrom/nr_subr.c | sk->nr->rtt = PR_SLOWHZ; |
nr | 322 | net/netrom/nr_subr.c | if (sk->nr->rtt > (NR_T1CLAMPHI)) |
nr | 323 | net/netrom/nr_subr.c | sk->nr->rtt = (NR_T1CLAMPHI); |
nr | 90 | net/netrom/nr_timer.c | switch (sk->nr->state) { |
nr | 105 | net/netrom/nr_timer.c | if (sk->rmem_alloc < (sk->rcvbuf / 2) && (sk->nr->condition & OWN_RX_BUSY_CONDITION)) { |
nr | 106 | net/netrom/nr_timer.c | sk->nr->condition &= ~OWN_RX_BUSY_CONDITION; |
nr | 108 | net/netrom/nr_timer.c | sk->nr->condition &= ~ACK_PENDING_CONDITION; |
nr | 109 | net/netrom/nr_timer.c | sk->nr->vl = sk->nr->vr; |
nr | 122 | net/netrom/nr_timer.c | if (sk->nr->t2timer > 0 && --sk->nr->t2timer == 0) { |
nr | 123 | net/netrom/nr_timer.c | if (sk->nr->state == NR_STATE_3) { |
nr | 124 | net/netrom/nr_timer.c | if (sk->nr->condition & ACK_PENDING_CONDITION) { |
nr | 125 | net/netrom/nr_timer.c | sk->nr->condition &= ~ACK_PENDING_CONDITION; |
nr | 131 | net/netrom/nr_timer.c | if (sk->nr->t4timer > 0 && --sk->nr->t4timer == 0) { |
nr | 132 | net/netrom/nr_timer.c | sk->nr->condition &= ~PEER_RX_BUSY_CONDITION; |
nr | 135 | net/netrom/nr_timer.c | if (sk->nr->t1timer == 0 || --sk->nr->t1timer > 0) { |
nr | 140 | net/netrom/nr_timer.c | switch (sk->nr->state) { |
nr | 142 | net/netrom/nr_timer.c | if (sk->nr->n2count == sk->nr->n2) { |
nr | 144 | net/netrom/nr_timer.c | sk->nr->state = NR_STATE_0; |
nr | 151 | net/netrom/nr_timer.c | sk->nr->n2count++; |
nr | 157 | net/netrom/nr_timer.c | if (sk->nr->n2count == sk->nr->n2) { |
nr | 159 | net/netrom/nr_timer.c | sk->nr->state = NR_STATE_0; |
nr | 166 | net/netrom/nr_timer.c | sk->nr->n2count++; |
nr | 172 | net/netrom/nr_timer.c | if (sk->nr->n2count == sk->nr->n2) { |
nr | 174 | net/netrom/nr_timer.c | sk->nr->state = NR_STATE_0; |
nr | 181 | net/netrom/nr_timer.c | sk->nr->n2count++; |
nr | 187 | net/netrom/nr_timer.c | sk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk); |