tag | line | file | source code |
nr | 20 | arch/alpha/boot/main.c | extern unsigned long switch_to_osf_pal(unsigned long nr, |
nr | 114 | 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 | 119 | arch/alpha/mm/init.c | unsigned long pfn, nr; |
nr | 123 | arch/alpha/mm/init.c | nr = cluster->numpages; |
nr | 129 | arch/alpha/mm/init.c | while (nr--) |
nr | 150 | arch/i386/kernel/process.c | void copy_thread(int nr, unsigned long clone_flags, unsigned long esp, |
nr | 164 | arch/i386/kernel/process.c | p->tss.tr = _TSS(nr); |
nr | 173 | arch/i386/kernel/process.c | p->tss.ldt = _LDT(nr); |
nr | 179 | arch/i386/kernel/process.c | set_tss_desc(gdt+(nr<<1)+FIRST_TSS_ENTRY,&(p->tss)); |
nr | 181 | arch/i386/kernel/process.c | set_ldt_desc(gdt+(nr<<1)+FIRST_LDT_ENTRY,p->ldt, 512); |
nr | 183 | arch/i386/kernel/process.c | set_ldt_desc(gdt+(nr<<1)+FIRST_LDT_ENTRY,&default_ldt, 1); |
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 | 90 | arch/mips/kernel/process.c | void copy_thread(int nr, unsigned long clone_flags, struct task_struct * p, struct pt_regs * regs) |
nr | 19 | arch/mips/kernel/signal.c | #define _S(nr) (1<<((nr)-1)) |
nr | 88 | arch/sparc/kernel/process.c | void copy_thread(int nr, unsigned long clone_flags, unsigned long sp, |
nr | 17 | arch/sparc/kernel/signal.c | #define _S(nr) (1<<((nr)-1)) |
nr | 116 | drivers/block/blk.h | static void floppy_off(unsigned int nr); |
nr | 1113 | drivers/block/cm206.c | int probe_irq(int nr) { |
nr | 1122 | drivers/block/cm206.c | if (nr && irq!=nr && irq>0) return 0; /* wrong interrupt happened */ |
nr | 826 | drivers/block/floppy.c | static void motor_off_callback(unsigned long nr) |
nr | 828 | drivers/block/floppy.c | unsigned char mask = ~(0x10 << UNIT(nr)); |
nr | 830 | drivers/block/floppy.c | set_dor( FDC(nr), mask, 0 ); |
nr | 433 | drivers/block/genhd.c | int nr=0; |
nr | 437 | drivers/block/genhd.c | nr += p->nr_real; |
nr | 448 | drivers/block/ll_rw_blk.c | void ll_rw_block(int rw, int nr, struct buffer_head * bh[]) |
nr | 459 | drivers/block/ll_rw_blk.c | if (--nr <= 0) |
nr | 482 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
nr | 501 | drivers/block/ll_rw_blk.c | if (nr > 1) |
nr | 503 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
nr | 517 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
nr | 1258 | drivers/char/console.c | static void csi_at(int currcons, unsigned int nr) |
nr | 1260 | drivers/char/console.c | if (nr > video_num_columns) |
nr | 1261 | drivers/char/console.c | nr = video_num_columns; |
nr | 1262 | drivers/char/console.c | else if (!nr) |
nr | 1263 | drivers/char/console.c | nr = 1; |
nr | 1264 | drivers/char/console.c | while (nr--) |
nr | 1268 | drivers/char/console.c | static void csi_L(int currcons, unsigned int nr) |
nr | 1270 | drivers/char/console.c | if (nr > video_num_lines) |
nr | 1271 | drivers/char/console.c | nr = video_num_lines; |
nr | 1272 | drivers/char/console.c | else if (!nr) |
nr | 1273 | drivers/char/console.c | nr = 1; |
nr | 1274 | drivers/char/console.c | while (nr--) |
nr | 1278 | drivers/char/console.c | static void csi_P(int currcons, unsigned int nr) |
nr | 1280 | drivers/char/console.c | if (nr > video_num_columns) |
nr | 1281 | drivers/char/console.c | nr = video_num_columns; |
nr | 1282 | drivers/char/console.c | else if (!nr) |
nr | 1283 | drivers/char/console.c | nr = 1; |
nr | 1284 | drivers/char/console.c | while (nr--) |
nr | 1288 | drivers/char/console.c | static void csi_M(int currcons, unsigned int nr) |
nr | 1290 | drivers/char/console.c | if (nr > video_num_lines) |
nr | 1291 | drivers/char/console.c | nr = video_num_lines; |
nr | 1292 | drivers/char/console.c | else if (!nr) |
nr | 1293 | drivers/char/console.c | nr=1; |
nr | 1294 | drivers/char/console.c | while (nr--) |
nr | 727 | drivers/char/n_tty.c | unsigned int *nr) |
nr | 732 | drivers/char/n_tty.c | n = MIN(*nr, MIN(tty->read_cnt, N_TTY_BUF_SIZE - tty->read_tail)); |
nr | 739 | drivers/char/n_tty.c | *nr -= n; |
nr | 743 | drivers/char/n_tty.c | unsigned char *buf, unsigned int nr) |
nr | 844 | drivers/char/n_tty.c | nr--; |
nr | 865 | drivers/char/n_tty.c | if (--nr) |
nr | 874 | drivers/char/n_tty.c | nr--; |
nr | 880 | drivers/char/n_tty.c | copy_from_read_buf(tty, &b, &nr); |
nr | 881 | drivers/char/n_tty.c | copy_from_read_buf(tty, &b, &nr); |
nr | 892 | drivers/char/n_tty.c | if (b - buf >= minimum || !nr) |
nr | 905 | drivers/char/n_tty.c | if (size && nr) |
nr | 915 | drivers/char/n_tty.c | const unsigned char * buf, unsigned int nr) |
nr | 941 | drivers/char/n_tty.c | while (nr > 0) { |
nr | 945 | drivers/char/n_tty.c | b++; nr--; |
nr | 950 | drivers/char/n_tty.c | c = tty->driver.write(tty, 1, b, nr); |
nr | 952 | drivers/char/n_tty.c | nr -= c; |
nr | 954 | 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 | 1241 | drivers/net/ppp.c | ppp_read(struct tty_struct *tty, struct file *file, unsigned char *buf, unsigned int nr) |
nr | 1255 | drivers/net/ppp.c | buf, nr)); |
nr | 1271 | drivers/net/ppp.c | i = verify_area (VERIFY_WRITE,buf,nr); |
nr | 1284 | drivers/net/ppp.c | if (len + 2 > nr) { |
nr | 1288 | drivers/net/ppp.c | nr, len+2)); |
nr | 1353 | drivers/net/ppp.c | ppp_write(struct tty_struct *tty, struct file *file, const unsigned char *buf, unsigned int nr) |
nr | 1368 | drivers/net/ppp.c | if (nr > ppp->mtu) { |
nr | 1371 | drivers/net/ppp.c | nr, ppp->mtu)); |
nr | 1372 | drivers/net/ppp.c | nr = ppp->mtu; |
nr | 1375 | drivers/net/ppp.c | i = verify_area (VERIFY_READ,buf,nr); |
nr | 1380 | drivers/net/ppp.c | ppp_print_buffer ("write frame", buf, nr, USER_DS); |
nr | 1412 | drivers/net/ppp.c | i = nr; |
nr | 1434 | drivers/net/ppp.c | return((int)nr); |
nr | 110 | drivers/scsi/in2000.c | #define port_read(port,buf,nr) \ |
nr | 111 | drivers/scsi/in2000.c | __asm__("cld;rep;insw": :"d" (port),"D" (buf),"c" (nr):"cx","di") |
nr | 113 | drivers/scsi/in2000.c | #define port_write(port,buf,nr) \ |
nr | 114 | drivers/scsi/in2000.c | __asm__("cld;rep;outsw": :"d" (port),"S" (buf),"c" (nr):"cx","si") |
nr | 173 | drivers/sound/configure.c | can_select_option (int nr) |
nr | 176 | drivers/sound/configure.c | switch (nr) |
nr | 203 | drivers/sound/configure.c | if (hw_table[nr].conditions) |
nr | 204 | drivers/sound/configure.c | if (!(hw_table[nr].conditions & selected_options)) |
nr | 207 | drivers/sound/configure.c | if (hw_table[nr].exclusive_options) |
nr | 208 | drivers/sound/configure.c | if (hw_table[nr].exclusive_options & selected_options) |
nr | 211 | drivers/sound/configure.c | if (DISABLED_OPTIONS & B (nr)) |
nr | 811 | fs/binfmt_elf.c | static int dump_write(struct file *file, const void *addr, int nr) |
nr | 813 | fs/binfmt_elf.c | return file->f_op->write(file->f_inode, file, addr, nr) == nr; |
nr | 886 | fs/binfmt_elf.c | #define DUMP_WRITE(addr, nr) \ |
nr | 887 | fs/binfmt_elf.c | do { if (!dump_write(file, (addr), (nr))) return 0; } while(0) |
nr | 911 | fs/binfmt_elf.c | #define DUMP_WRITE(addr, nr) \ |
nr | 912 | fs/binfmt_elf.c | if (!dump_write(&file, (addr), (nr))) \ |
nr | 147 | fs/exec.c | #define DUMP_WRITE(addr,nr) \ |
nr | 148 | fs/exec.c | while (file.f_op->write(inode,&file,(char *)(addr),(nr)) != (nr)) goto close_coredump |
nr | 177 | fs/ext/inode.c | #define inode_bmap(inode,nr) ((inode)->u.ext_i.i_data[(nr)]) |
nr | 179 | fs/ext/inode.c | static int block_bmap(struct buffer_head * bh, int nr) |
nr | 185 | fs/ext/inode.c | tmp = ((unsigned long *) bh->b_data)[nr]; |
nr | 234 | fs/ext/inode.c | static struct buffer_head * inode_getblk(struct inode * inode, int nr, int create) |
nr | 240 | fs/ext/inode.c | p = inode->u.ext_i.i_data + nr; |
nr | 268 | fs/ext/inode.c | struct buffer_head * bh, int nr, int create) |
nr | 284 | 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 int block_bmap (struct buffer_head * bh, int nr) |
nr | 50 | fs/ext2/inode.c | tmp = ((u32 *) bh->b_data)[nr]; |
nr | 184 | fs/ext2/inode.c | static struct buffer_head * inode_getblk (struct inode * inode, int nr, |
nr | 192 | fs/ext2/inode.c | p = inode->u.ext2_i.i_data + nr; |
nr | 214 | fs/ext2/inode.c | for (tmp = nr - 1; tmp >= 0; tmp--) { |
nr | 250 | fs/ext2/inode.c | struct buffer_head * bh, int nr, |
nr | 269 | fs/ext2/inode.c | p = (u32 *) bh->b_data + nr; |
nr | 291 | fs/ext2/inode.c | for (tmp = nr - 1; tmp >= 0; tmp--) { |
nr | 327 | fs/ext2/inode.c | int nr, |
nr | 339 | fs/ext2/inode.c | if((nr & ((PAGE_SIZE >> EXT2_BLOCK_SIZE_BITS(inode->i_sb)) - 1)) != 0) |
nr | 341 | fs/ext2/inode.c | if(nr + 3 > EXT2_ADDR_PER_BLOCK(inode->i_sb)) goto out; |
nr | 344 | fs/ext2/inode.c | p = (u32 *) bh->b_data + nr + i; |
nr | 354 | fs/ext2/inode.c | p = (u32 *) bh->b_data + nr; |
nr | 502 | fs/inode.c | struct inode * __iget(struct super_block * sb, int nr, int crossmntp) |
nr | 511 | fs/inode.c | h = hash(sb->s_dev, nr); |
nr | 514 | fs/inode.c | if (inode->i_dev == sb->s_dev && inode->i_ino == nr) |
nr | 528 | fs/inode.c | inode->i_ino = nr; |
nr | 540 | fs/inode.c | if (inode->i_dev != sb->s_dev || inode->i_ino != nr) { |
nr | 242 | fs/minix/inode.c | #define inode_bmap(inode,nr) ((inode)->u.minix_i.i_data[(nr)]) |
nr | 244 | fs/minix/inode.c | static int block_bmap(struct buffer_head * bh, int nr) |
nr | 250 | fs/minix/inode.c | tmp = ((unsigned short *) bh->b_data)[nr]; |
nr | 286 | fs/minix/inode.c | static struct buffer_head * inode_getblk(struct inode * inode, int nr, int create) |
nr | 292 | fs/minix/inode.c | p = inode->u.minix_i.i_data + nr; |
nr | 320 | fs/minix/inode.c | struct buffer_head * bh, int nr, int create) |
nr | 336 | fs/minix/inode.c | p = nr + (unsigned short *) bh->b_data; |
nr | 24 | fs/msdos/fat.c | int fat_access(struct super_block *sb,int nr,int new_value) |
nr | 30 | fs/msdos/fat.c | if ((unsigned) (nr-2) >= MSDOS_SB(sb)->clusters) return 0; |
nr | 31 | fs/msdos/fat.c | if (MSDOS_SB(sb)->fat_bits == 16) first = last = nr*2; |
nr | 33 | fs/msdos/fat.c | first = nr*3/2; |
nr | 61 | fs/msdos/fat.c | if (nr & 1) next = ((*p_first >> 4) | (*p_last << 4)) & 0xfff; |
nr | 70 | fs/msdos/fat.c | if (nr & 1) { |
nr | 226 | fs/msdos/fat.c | int nr,count; |
nr | 228 | fs/msdos/fat.c | if (!(nr = MSDOS_I(inode)->i_start)) return 0; |
nr | 229 | fs/msdos/fat.c | if (!cluster) return nr; |
nr | 231 | fs/msdos/fat.c | for (cache_lookup(inode,cluster,&count,&nr); count < cluster; |
nr | 233 | fs/msdos/fat.c | if ((nr = fat_access(inode->i_sb,nr,-1)) == -1) return 0; |
nr | 234 | fs/msdos/fat.c | if (!nr) return 0; |
nr | 236 | fs/msdos/fat.c | cache_add(inode,cluster,nr); |
nr | 237 | fs/msdos/fat.c | return nr; |
nr | 264 | fs/msdos/fat.c | int nr,last; |
nr | 266 | fs/msdos/fat.c | if (!(nr = MSDOS_I(inode)->i_start)) return 0; |
nr | 269 | fs/msdos/fat.c | last = nr; |
nr | 270 | fs/msdos/fat.c | if ((nr = fat_access(inode->i_sb,nr,-1)) == -1) return 0; |
nr | 271 | fs/msdos/fat.c | if (!nr) { |
nr | 284 | fs/msdos/fat.c | while (nr != -1) { |
nr | 285 | fs/msdos/fat.c | if (!(nr = fat_access(inode->i_sb,nr,0))) { |
nr | 312 | fs/msdos/inode.c | int free,nr; |
nr | 320 | fs/msdos/inode.c | for (nr = 2; nr < MSDOS_SB(sb)->clusters+2; nr++) |
nr | 321 | fs/msdos/inode.c | if (!fat_access(sb,nr,-1)) free++; |
nr | 358 | fs/msdos/inode.c | int nr; |
nr | 404 | fs/msdos/inode.c | if ((nr = CF_LE_W(raw_entry->start)) != 0) |
nr | 405 | fs/msdos/inode.c | while (nr != -1) { |
nr | 408 | fs/msdos/inode.c | if (!(nr = fat_access(inode->i_sb,nr,-1))) { |
nr | 121 | fs/msdos/misc.c | int count,nr,limit,last,current,sector,last_sector,file_cluster; |
nr | 129 | fs/msdos/misc.c | nr = limit; /* to keep GCC happy */ |
nr | 131 | fs/msdos/misc.c | nr = ((count+MSDOS_SB(inode->i_sb)->prev_free) % limit)+2; |
nr | 132 | fs/msdos/misc.c | if (fat_access(inode->i_sb,nr,-1) == 0) break; |
nr | 136 | fs/msdos/misc.c | printk("free cluster: %d\n",nr); |
nr | 145 | fs/msdos/misc.c | fat_access(inode->i_sb,nr,MSDOS_SB(inode->i_sb)->fat_bits == 12 ? |
nr | 151 | fs/msdos/misc.c | printk("set to %x\n",fat_access(inode->i_sb,nr,-1)); |
nr | 182 | fs/msdos/misc.c | if (last) fat_access(inode->i_sb,last,nr); |
nr | 184 | fs/msdos/misc.c | MSDOS_I(inode)->i_start = nr; |
nr | 190 | fs/msdos/misc.c | sector = MSDOS_SB(inode->i_sb)->data_start+(nr-2)*cluster_size; |
nr | 209 | fs/msdos/misc.c | cache_add(inode,file_cluster,nr); |
nr | 481 | fs/msdos/misc.c | int error,current,prev,nr; |
nr | 491 | fs/msdos/misc.c | if (!current) nr = MSDOS_ROOT_INO; |
nr | 498 | fs/msdos/misc.c | if ((error = raw_scan(dir->i_sb,prev,NULL,¤t,&nr,NULL, |
nr | 505 | fs/msdos/misc.c | return nr; |
nr | 40 | fs/nfs/sock.c | #define _S(nr) (1<<((nr)-1)) |
nr | 114 | fs/nfs/sock.c | wait_table.nr = 0; |
nr | 158 | fs/nfs/sock.c | else if (wait_table.nr) |
nr | 475 | fs/proc/root.c | unsigned int nr,pid; |
nr | 478 | fs/proc/root.c | nr = filp->f_pos; |
nr | 479 | fs/proc/root.c | if (nr < FIRST_PROCESS_ENTRY) { |
nr | 483 | fs/proc/root.c | filp->f_pos = nr = FIRST_PROCESS_ENTRY; |
nr | 486 | fs/proc/root.c | for (nr -= FIRST_PROCESS_ENTRY; nr < NR_TASKS; nr++, filp->f_pos++) { |
nr | 487 | fs/proc/root.c | struct task_struct * p = task[nr]; |
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 | 31 | fs/smbfs/sock.c | #define _S(nr) (1<<((nr)-1)) |
nr | 557 | fs/sysv/inode.c | static inline int inode_bmap(struct super_block * sb, struct inode * inode, int nr) |
nr | 559 | fs/sysv/inode.c | int tmp = inode->u.sysv_i.i_data[nr]; |
nr | 565 | fs/sysv/inode.c | static int block_bmap(struct super_block * sb, struct buffer_head * bh, int nr, int convert) |
nr | 571 | fs/sysv/inode.c | tmp = ((sysv_zone_t *) bh->b_data) [nr]; |
nr | 640 | fs/sysv/inode.c | static struct buffer_head * inode_getblk(struct inode * inode, int nr, int create) |
nr | 648 | fs/sysv/inode.c | p = inode->u.sysv_i.i_data + nr; |
nr | 676 | fs/sysv/inode.c | struct buffer_head * bh, int nr, int create) |
nr | 694 | fs/sysv/inode.c | p = nr + (sysv_zone_t *) bh->b_data; |
nr | 189 | fs/xiafs/inode.c | static int zone_bmap(struct buffer_head * bh, int nr) |
nr | 195 | fs/xiafs/inode.c | tmp = ((u_long *) bh->b_data)[nr]; |
nr | 280 | fs/xiafs/inode.c | int nr, int create, u_long prev_addr) |
nr | 296 | 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 | 31 | include/asm-alpha/bitops.h | "=m" (((int *) addr)[nr >> 5]), |
nr | 33 | include/asm-alpha/bitops.h | :"r" (1UL << (nr & 31)), |
nr | 34 | include/asm-alpha/bitops.h | "m" (((int *) addr)[nr >> 5])); |
nr | 38 | include/asm-alpha/bitops.h | extern __inline__ unsigned long clear_bit(unsigned long nr, void * addr) |
nr | 53 | include/asm-alpha/bitops.h | "=m" (((int *) addr)[nr >> 5]), |
nr | 55 | include/asm-alpha/bitops.h | :"r" (1UL << (nr & 31)), |
nr | 56 | include/asm-alpha/bitops.h | "m" (((int *) addr)[nr >> 5])); |
nr | 60 | include/asm-alpha/bitops.h | extern __inline__ unsigned long change_bit(unsigned long nr, void * addr) |
nr | 73 | include/asm-alpha/bitops.h | "=m" (((int *) addr)[nr >> 5]), |
nr | 75 | include/asm-alpha/bitops.h | :"r" (1UL << (nr & 31)), |
nr | 76 | include/asm-alpha/bitops.h | "m" (((int *) addr)[nr >> 5])); |
nr | 80 | include/asm-alpha/bitops.h | extern __inline__ unsigned long test_bit(int nr, void * addr) |
nr | 82 | 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 | 42 | include/asm-alpha/ioctl.h | ((nr) << _IOC_NRSHIFT) | \ |
nr | 46 | include/asm-alpha/ioctl.h | #define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0) |
nr | 47 | include/asm-alpha/ioctl.h | #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) |
nr | 48 | include/asm-alpha/ioctl.h | #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 49 | include/asm-alpha/ioctl.h | #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 52 | include/asm-alpha/ioctl.h | #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) |
nr | 53 | include/asm-alpha/ioctl.h | #define _IOC_TYPE(nr) (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK) |
nr | 54 | include/asm-alpha/ioctl.h | #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) |
nr | 55 | include/asm-alpha/ioctl.h | #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) |
nr | 43 | include/asm-alpha/irq.h | #define IRQ_NAME2(nr) nr##_interrupt(void) |
nr | 44 | include/asm-alpha/irq.h | #define IRQ_NAME(nr) IRQ_NAME2(IRQ##nr) |
nr | 45 | include/asm-alpha/irq.h | #define FAST_IRQ_NAME(nr) IRQ_NAME2(fast_IRQ##nr) |
nr | 46 | include/asm-alpha/irq.h | #define BAD_IRQ_NAME(nr) IRQ_NAME2(bad_IRQ##nr) |
nr | 48 | include/asm-alpha/irq.h | #define BUILD_IRQ(chip,nr,mask) \ |
nr | 49 | include/asm-alpha/irq.h | asmlinkage void IRQ_NAME(nr); \ |
nr | 50 | include/asm-alpha/irq.h | asmlinkage void FAST_IRQ_NAME(nr); \ |
nr | 51 | include/asm-alpha/irq.h | asmlinkage void BAD_IRQ_NAME(nr); \ |
nr | 228 | include/asm-alpha/unistd.h | static inline int write(int fd, const char * buf, int nr) |
nr | 230 | include/asm-alpha/unistd.h | return sys_write(fd, buf, nr); |
nr | 234 | include/asm-alpha/unistd.h | static inline int read(int fd, char * buf, int nr) |
nr | 236 | 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 | 22 | include/asm-i386/bitops.h | extern __inline__ int set_bit(int nr, void * addr) |
nr | 28 | include/asm-i386/bitops.h | :"ir" (nr)); |
nr | 32 | include/asm-i386/bitops.h | extern __inline__ int clear_bit(int nr, void * addr) |
nr | 38 | include/asm-i386/bitops.h | :"ir" (nr)); |
nr | 42 | include/asm-i386/bitops.h | extern __inline__ int change_bit(int nr, void * addr) |
nr | 48 | include/asm-i386/bitops.h | :"ir" (nr)); |
nr | 56 | include/asm-i386/bitops.h | extern __inline__ int test_bit(int nr, void * addr) |
nr | 62 | include/asm-i386/bitops.h | :"m" (ADDR),"ir" (nr)); |
nr | 84 | include/asm-i386/ioctl.h | #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) |
nr | 85 | include/asm-i386/ioctl.h | #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) |
nr | 86 | include/asm-i386/ioctl.h | #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) |
nr | 121 | include/asm-i386/irq.h | #define IRQ_NAME2(nr) nr##_interrupt(void) |
nr | 122 | include/asm-i386/irq.h | #define IRQ_NAME(nr) IRQ_NAME2(IRQ##nr) |
nr | 123 | include/asm-i386/irq.h | #define FAST_IRQ_NAME(nr) IRQ_NAME2(fast_IRQ##nr) |
nr | 124 | include/asm-i386/irq.h | #define BAD_IRQ_NAME(nr) IRQ_NAME2(bad_IRQ##nr) |
nr | 126 | include/asm-i386/irq.h | #define BUILD_IRQ(chip,nr,mask) \ |
nr | 127 | include/asm-i386/irq.h | asmlinkage void IRQ_NAME(nr); \ |
nr | 128 | include/asm-i386/irq.h | asmlinkage void FAST_IRQ_NAME(nr); \ |
nr | 129 | include/asm-i386/irq.h | asmlinkage void BAD_IRQ_NAME(nr); \ |
nr | 132 | include/asm-i386/irq.h | SYMBOL_NAME_STR(IRQ) #nr "_interrupt:\n\t" \ |
nr | 133 | include/asm-i386/irq.h | "pushl $-"#nr"-2\n\t" \ |
nr | 140 | include/asm-i386/irq.h | "pushl $" #nr "\n\t" \ |
nr | 148 | include/asm-i386/irq.h | SYMBOL_NAME_STR(fast_IRQ) #nr "_interrupt:\n\t" \ |
nr | 152 | include/asm-i386/irq.h | "pushl $" #nr "\n\t" \ |
nr | 160 | 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 | 20 | include/asm-mips/bitops.h | extern __inline__ int set_bit(int nr, void *addr) |
nr | 24 | include/asm-mips/bitops.h | addr += ((nr >> 3) & ~3); |
nr | 25 | include/asm-mips/bitops.h | mask = 1 << (nr & 0x1f); |
nr | 35 | include/asm-mips/bitops.h | extern __inline__ int clear_bit(int nr, void *addr) |
nr | 39 | include/asm-mips/bitops.h | addr += ((nr >> 3) & ~3); |
nr | 40 | include/asm-mips/bitops.h | mask = 1 << (nr & 0x1f); |
nr | 50 | include/asm-mips/bitops.h | extern __inline__ int change_bit(int nr, void *addr) |
nr | 54 | include/asm-mips/bitops.h | addr += ((nr >> 3) & ~3); |
nr | 55 | include/asm-mips/bitops.h | mask = 1 << (nr & 0x1f); |
nr | 80 | include/asm-mips/bitops.h | extern __inline__ int set_bit(int nr, void * addr) |
nr | 86 | include/asm-mips/bitops.h | a += nr >> 5; |
nr | 87 | include/asm-mips/bitops.h | mask = 1 << (nr & 0x1f); |
nr | 97 | include/asm-mips/bitops.h | extern __inline__ int clear_bit(int nr, void * addr) |
nr | 103 | include/asm-mips/bitops.h | a += nr >> 5; |
nr | 104 | include/asm-mips/bitops.h | mask = 1 << (nr & 0x1f); |
nr | 114 | include/asm-mips/bitops.h | extern __inline__ int change_bit(int nr, void * addr) |
nr | 120 | include/asm-mips/bitops.h | a += nr >> 5; |
nr | 121 | include/asm-mips/bitops.h | mask = 1 << (nr & 0x1f); |
nr | 138 | include/asm-mips/bitops.h | extern __inline__ int test_bit(int nr, void *addr) |
nr | 144 | include/asm-mips/bitops.h | addr += nr >> 5; |
nr | 145 | include/asm-mips/bitops.h | mask = 1 << (nr & 0x1f); |
nr | 40 | include/asm-sparc/bitops.h | extern __inline__ unsigned int set_bit(unsigned int nr, void *vaddr) |
nr | 54 | include/asm-sparc/bitops.h | addr += nr >> 3; |
nr | 55 | include/asm-sparc/bitops.h | mask = 1 << (nr & 0x7); |
nr | 81 | include/asm-sparc/bitops.h | addr += nr>>5; |
nr | 82 | include/asm-sparc/bitops.h | mask = 1 << (nr&31); |
nr | 102 | include/asm-sparc/bitops.h | extern __inline__ unsigned int clear_bit(unsigned int nr, void *vaddr) |
nr | 114 | include/asm-sparc/bitops.h | addr += nr >> 3; |
nr | 115 | include/asm-sparc/bitops.h | mask = 1 << (nr & 7); |
nr | 142 | include/asm-sparc/bitops.h | addr += nr>>5; |
nr | 143 | include/asm-sparc/bitops.h | mask = 1 << (nr&31); |
nr | 163 | include/asm-sparc/bitops.h | extern __inline__ unsigned int change_bit(unsigned int nr, void *vaddr) |
nr | 175 | include/asm-sparc/bitops.h | addr += nr >> 3; |
nr | 176 | include/asm-sparc/bitops.h | mask = 1 << (nr & 7); |
nr | 203 | include/asm-sparc/bitops.h | addr += nr>>5; |
nr | 204 | include/asm-sparc/bitops.h | mask = 1 << (nr&31); |
nr | 226 | include/asm-sparc/bitops.h | extern __inline__ unsigned int test_bit(int nr, void *vaddr) |
nr | 233 | include/asm-sparc/bitops.h | addr += nr >> 3; |
nr | 234 | include/asm-sparc/bitops.h | mask = 1 << (nr & 7); |
nr | 242 | include/asm-sparc/bitops.h | addr += (nr>>5); |
nr | 243 | include/asm-sparc/bitops.h | mask = 1 << (nr&31); |
nr | 88 | include/asm-sparc/irq.h | #define IRQ_NAME2(nr) nr##_interrupt(void) |
nr | 89 | include/asm-sparc/irq.h | #define IRQ_NAME(nr) IRQ_NAME2(IRQ##nr) |
nr | 90 | include/asm-sparc/irq.h | #define FAST_IRQ_NAME(nr) IRQ_NAME2(fast_IRQ##nr) |
nr | 91 | include/asm-sparc/irq.h | #define BAD_IRQ_NAME(nr) IRQ_NAME2(bad_IRQ##nr) |
nr | 93 | include/asm-sparc/irq.h | #define BUILD_IRQ(chip,nr,mask) \ |
nr | 94 | include/asm-sparc/irq.h | asmlinkage void IRQ_NAME(nr); \ |
nr | 95 | include/asm-sparc/irq.h | asmlinkage void FAST_IRQ_NAME(nr); \ |
nr | 96 | include/asm-sparc/irq.h | asmlinkage void BAD_IRQ_NAME(nr); \ |
nr | 479 | include/linux/fs.h | extern struct inode * __iget(struct super_block * sb,int nr,int crsmnt); |
nr | 488 | include/linux/fs.h | extern void ll_rw_block(int rw, int nr, struct buffer_head * bh[]); |
nr | 489 | include/linux/fs.h | extern void ll_rw_page(int rw, int dev, unsigned long nr, char * buffer); |
nr | 524 | include/linux/fs.h | extern inline struct inode * iget(struct super_block * sb,int nr) |
nr | 526 | 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 | 210 | include/linux/mm.h | extern void rw_swap_page(int rw, unsigned long nr, char * buf); |
nr | 225 | include/linux/mm.h | #define read_swap_page(nr,buf) \ |
nr | 226 | include/linux/mm.h | rw_swap_page(READ,(nr),(buf)) |
nr | 227 | include/linux/mm.h | #define write_swap_page(nr,buf) \ |
nr | 228 | include/linux/mm.h | rw_swap_page(WRITE,(nr),(buf)) |
nr | 133 | include/linux/msdos_fs.h | extern int fat_access(struct super_block *sb,int nr,int new_value); |
nr | 393 | include/linux/sched.h | if (p->nr >= __MAX_SELECT_TABLE_ENTRIES) |
nr | 395 | include/linux/sched.h | entry = p->entry + p->nr; |
nr | 400 | include/linux/sched.h | p->nr++; |
nr | 79 | include/linux/sjcd.h | #define S_READ_DATA( port, buf, nr ) insb( port, buf, nr ) |
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 | 174 | include/net/sock.h | nr_cb *nr; |
nr | 184 | kernel/fork.c | int nr; |
nr | 196 | kernel/fork.c | nr = find_empty_process(); |
nr | 197 | kernel/fork.c | if (nr < 0) |
nr | 228 | kernel/fork.c | task[nr] = p; |
nr | 242 | kernel/fork.c | copy_thread(nr, clone_flags, usp, p, regs); |
nr | 263 | kernel/fork.c | task[nr] = NULL; |
nr | 76 | kernel/sched.c | #define _S(nr) (1<<((nr)-1)) |
nr | 129 | kernel/sched.c | static int nr = 0; |
nr | 130 | kernel/sched.c | if (nr < 5) { |
nr | 131 | kernel/sched.c | nr++; |
nr | 445 | kernel/sched.c | unsigned long nr = 0; |
nr | 451 | kernel/sched.c | nr += FIXED_1; |
nr | 452 | kernel/sched.c | return nr; |
nr | 783 | kernel/sched.c | static void show_task(int nr,struct task_struct * p) |
nr | 788 | kernel/sched.c | printk("%-8s %3d ", p->comm, (p == current) ? -nr : nr); |
nr | 18 | kernel/signal.c | #define _S(nr) (1<<((nr)-1)) |
nr | 39 | mm/filemap.c | static inline void multi_bmap(struct inode * inode, unsigned long block, unsigned int * nr, int shift) |
nr | 44 | mm/filemap.c | *nr = bmap(inode, block); |
nr | 47 | mm/filemap.c | nr++; |
nr | 55 | mm/filemap.c | int nr[PAGE_SIZE/512]; |
nr | 57 | mm/filemap.c | multi_bmap(inode, (address & PAGE_MASK) - area->vm_start + area->vm_offset, nr, |
nr | 59 | mm/filemap.c | return bread_page(page, inode->i_dev, nr, inode->i_sb->s_blocksize, no_share); |
nr | 825 | mm/swap.c | unsigned long nr = 0; |
nr | 827 | mm/swap.c | nr ++; |
nr | 829 | mm/swap.c | total += nr * ((PAGE_SIZE>>10) << order); |
nr | 830 | mm/swap.c | printk("%lu*%lukB ", nr, (PAGE_SIZE>>10) << order); |
nr | 975 | mm/swap.c | int nr; |
nr | 980 | mm/swap.c | nr = 0; |
nr | 981 | mm/swap.c | while (nr < NR_TASKS) { |
nr | 982 | mm/swap.c | if (task[nr]) { |
nr | 983 | mm/swap.c | if (unuse_process(task[nr], type, page)) { |
nr | 990 | mm/swap.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 | 672 | net/appletalk/ddp.c | struct netrange *nr; |
nr | 702 | net/appletalk/ddp.c | nr=(struct netrange *)&sa->sat_zero[0]; |
nr | 703 | net/appletalk/ddp.c | if(nr->nr_phase!=2) |
nr | 723 | net/appletalk/ddp.c | atif->nets= *nr; |
nr | 754 | net/appletalk/ddp.c | if(nr->nr_firstnet==htons(0) && nr->nr_lastnet==htons(0xFFFE)) { |
nr | 759 | net/appletalk/ddp.c | limit=ntohs(nr->nr_lastnet); |
nr | 760 | net/appletalk/ddp.c | if(limit-ntohs(nr->nr_firstnet) > 256) |
nr | 765 | net/appletalk/ddp.c | for(ct=ntohs(nr->nr_firstnet);ct<=limit;ct++) |
nr | 306 | 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) |
nr | 370 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 371 | net/ax25/ax25_in.c | ax25_check_iframes_acked(ax25, nr); |
nr | 381 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 382 | net/ax25/ax25_in.c | ax25_check_iframes_acked(ax25, nr); |
nr | 392 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 393 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 406 | net/ax25/ax25_in.c | if (!ax25_validate_nr(ax25, nr)) { |
nr | 412 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 414 | net/ax25/ax25_in.c | ax25_check_iframes_acked(ax25, nr); |
nr | 465 | 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) |
nr | 534 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 535 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 549 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 550 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 561 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 562 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 576 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 577 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 588 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 589 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 603 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 604 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 614 | net/ax25/ax25_in.c | if (!ax25_validate_nr(ax25, nr)) { |
nr | 619 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 669 | net/ax25/ax25_in.c | int queued = 0, frametype, ns, nr, pf; |
nr | 679 | net/ax25/ax25_in.c | frametype = ax25_decode(ax25, skb, &ns, &nr, &pf); |
nr | 689 | net/ax25/ax25_in.c | queued = ax25_state3_machine(ax25, skb, frametype, ns, nr, pf, type); |
nr | 692 | net/ax25/ax25_in.c | queued = ax25_state4_machine(ax25, skb, frametype, ns, nr, pf, type); |
nr | 299 | net/ax25/ax25_out.c | void ax25_check_iframes_acked(ax25_cb *ax25, unsigned short nr) |
nr | 301 | net/ax25/ax25_out.c | if (ax25->vs == nr) { |
nr | 302 | net/ax25/ax25_out.c | ax25_frames_acked(ax25, nr); |
nr | 307 | net/ax25/ax25_out.c | if (ax25->va != nr) { |
nr | 308 | net/ax25/ax25_out.c | ax25_frames_acked(ax25, nr); |
nr | 84 | net/ax25/ax25_subr.c | void ax25_frames_acked(ax25_cb *ax25, unsigned short nr) |
nr | 91 | net/ax25/ax25_subr.c | if (ax25->va != nr) { |
nr | 92 | net/ax25/ax25_subr.c | while (skb_peek(&ax25->ack_queue) != NULL && ax25->va != nr) { |
nr | 118 | net/ax25/ax25_subr.c | int ax25_validate_nr(ax25_cb *ax25, unsigned short nr) |
nr | 123 | net/ax25/ax25_subr.c | if (nr == vc) return 1; |
nr | 127 | net/ax25/ax25_subr.c | if (nr == ax25->vs) return 1; |
nr | 136 | net/ax25/ax25_subr.c | int ax25_decode(ax25_cb *ax25, struct sk_buff *skb, int *ns, int *nr, int *pf) |
nr | 142 | net/ax25/ax25_subr.c | *ns = *nr = *pf = 0; |
nr | 148 | net/ax25/ax25_subr.c | *nr = (frame[0] >> 5) & 0x07; |
nr | 152 | net/ax25/ax25_subr.c | *nr = (frame[0] >> 5) & 0x07; |
nr | 163 | net/ax25/ax25_subr.c | *nr = (frame[1] >> 1) & 0x7F; |
nr | 168 | net/ax25/ax25_subr.c | *nr = (frame[1] >> 1) & 0x7F; |
nr | 110 | net/netrom/af_netrom.c | if (s->nr->device == dev) { |
nr | 111 | net/netrom/af_netrom.c | s->nr->state = NR_STATE_0; |
nr | 112 | net/netrom/af_netrom.c | s->nr->device = NULL; |
nr | 166 | net/netrom/af_netrom.c | if (ax25cmp(&s->nr->source_addr, addr) == 0 && s->type == type && s->state == TCP_LISTEN) { |
nr | 188 | net/netrom/af_netrom.c | if (s->nr->my_index == index && s->nr->my_id == id && s->type == type) { |
nr | 211 | net/netrom/af_netrom.c | if (s->nr->your_index == index && s->nr->your_id == id && s->type == type) { |
nr | 258 | net/netrom/af_netrom.c | skb->sk->nr->state = NR_STATE_0; |
nr | 271 | net/netrom/af_netrom.c | kfree_s(sk->nr, sizeof(*sk->nr)); |
nr | 319 | net/netrom/af_netrom.c | sk->nr->rtt = (opt * PR_SLOWHZ) / 2; |
nr | 325 | net/netrom/af_netrom.c | sk->nr->t2 = opt * PR_SLOWHZ; |
nr | 331 | net/netrom/af_netrom.c | sk->nr->n2 = opt; |
nr | 335 | net/netrom/af_netrom.c | sk->nr->hdrincl = opt ? 1 : 0; |
nr | 360 | net/netrom/af_netrom.c | val = (sk->nr->t1 * 2) / PR_SLOWHZ; |
nr | 364 | net/netrom/af_netrom.c | val = sk->nr->t2 / PR_SLOWHZ; |
nr | 368 | net/netrom/af_netrom.c | val = sk->nr->n2; |
nr | 372 | net/netrom/af_netrom.c | val = sk->nr->hdrincl; |
nr | 397 | net/netrom/af_netrom.c | memset(&sk->nr->user_addr, '\0', sizeof(ax25_address)); |
nr | 421 | net/netrom/af_netrom.c | nr_cb *nr; |
nr | 426 | net/netrom/af_netrom.c | if ((nr = (nr_cb *)kmalloc(sizeof(*nr), GFP_ATOMIC)) == NULL) { |
nr | 438 | net/netrom/af_netrom.c | kfree_s((void *)nr, sizeof(*nr)); |
nr | 482 | net/netrom/af_netrom.c | skb_queue_head_init(&nr->ack_queue); |
nr | 483 | net/netrom/af_netrom.c | skb_queue_head_init(&nr->reseq_queue); |
nr | 484 | net/netrom/af_netrom.c | skb_queue_head_init(&nr->frag_queue); |
nr | 486 | net/netrom/af_netrom.c | nr->my_index = 0; |
nr | 487 | net/netrom/af_netrom.c | nr->my_id = 0; |
nr | 488 | net/netrom/af_netrom.c | nr->rtt = nr_default.timeout; |
nr | 489 | net/netrom/af_netrom.c | nr->t1 = nr_default.timeout; |
nr | 490 | net/netrom/af_netrom.c | nr->t2 = nr_default.ack_delay; |
nr | 491 | net/netrom/af_netrom.c | nr->n2 = nr_default.tries; |
nr | 493 | net/netrom/af_netrom.c | nr->t1timer = 0; |
nr | 494 | net/netrom/af_netrom.c | nr->t2timer = 0; |
nr | 495 | net/netrom/af_netrom.c | nr->t4timer = 0; |
nr | 496 | net/netrom/af_netrom.c | nr->n2count = 0; |
nr | 498 | net/netrom/af_netrom.c | nr->va = 0; |
nr | 499 | net/netrom/af_netrom.c | nr->vr = 0; |
nr | 500 | net/netrom/af_netrom.c | nr->vs = 0; |
nr | 501 | net/netrom/af_netrom.c | nr->vl = 0; |
nr | 503 | net/netrom/af_netrom.c | nr->your_index = 0; |
nr | 504 | net/netrom/af_netrom.c | nr->your_id = 0; |
nr | 506 | net/netrom/af_netrom.c | nr->my_index = 0; |
nr | 507 | net/netrom/af_netrom.c | nr->my_id = 0; |
nr | 509 | net/netrom/af_netrom.c | nr->bpqext = 1; |
nr | 510 | net/netrom/af_netrom.c | nr->fraglen = 0; |
nr | 511 | net/netrom/af_netrom.c | nr->hdrincl = 0; |
nr | 512 | net/netrom/af_netrom.c | nr->state = NR_STATE_0; |
nr | 513 | net/netrom/af_netrom.c | nr->device = NULL; |
nr | 515 | net/netrom/af_netrom.c | memset(&nr->source_addr, '\0', sizeof(ax25_address)); |
nr | 516 | net/netrom/af_netrom.c | memset(&nr->user_addr, '\0', sizeof(ax25_address)); |
nr | 517 | net/netrom/af_netrom.c | memset(&nr->dest_addr, '\0', sizeof(ax25_address)); |
nr | 519 | net/netrom/af_netrom.c | nr->sk = sk; |
nr | 520 | net/netrom/af_netrom.c | sk->nr = nr; |
nr | 528 | net/netrom/af_netrom.c | nr_cb *nr; |
nr | 533 | net/netrom/af_netrom.c | if ((nr = (nr_cb *)kmalloc(sizeof(*nr), GFP_ATOMIC)) == NULL) { |
nr | 546 | net/netrom/af_netrom.c | kfree_s((void *)nr, sizeof(*nr)); |
nr | 584 | net/netrom/af_netrom.c | skb_queue_head_init(&nr->ack_queue); |
nr | 585 | net/netrom/af_netrom.c | skb_queue_head_init(&nr->reseq_queue); |
nr | 586 | net/netrom/af_netrom.c | skb_queue_head_init(&nr->frag_queue); |
nr | 588 | net/netrom/af_netrom.c | nr->rtt = osk->nr->rtt; |
nr | 589 | net/netrom/af_netrom.c | nr->t1 = osk->nr->t1; |
nr | 590 | net/netrom/af_netrom.c | nr->t2 = osk->nr->t2; |
nr | 591 | net/netrom/af_netrom.c | nr->n2 = osk->nr->n2; |
nr | 593 | net/netrom/af_netrom.c | nr->device = osk->nr->device; |
nr | 594 | net/netrom/af_netrom.c | nr->bpqext = osk->nr->bpqext; |
nr | 595 | net/netrom/af_netrom.c | nr->hdrincl = osk->nr->hdrincl; |
nr | 596 | net/netrom/af_netrom.c | nr->fraglen = 0; |
nr | 598 | net/netrom/af_netrom.c | nr->t1timer = 0; |
nr | 599 | net/netrom/af_netrom.c | nr->t2timer = 0; |
nr | 600 | net/netrom/af_netrom.c | nr->t4timer = 0; |
nr | 601 | net/netrom/af_netrom.c | nr->n2count = 0; |
nr | 603 | net/netrom/af_netrom.c | nr->va = 0; |
nr | 604 | net/netrom/af_netrom.c | nr->vr = 0; |
nr | 605 | net/netrom/af_netrom.c | nr->vs = 0; |
nr | 606 | net/netrom/af_netrom.c | nr->vl = 0; |
nr | 608 | net/netrom/af_netrom.c | sk->nr = nr; |
nr | 609 | net/netrom/af_netrom.c | nr->sk = sk; |
nr | 628 | net/netrom/af_netrom.c | switch (sk->nr->state) { |
nr | 636 | net/netrom/af_netrom.c | sk->nr->state = NR_STATE_0; |
nr | 644 | net/netrom/af_netrom.c | sk->nr->state = NR_STATE_0; |
nr | 652 | net/netrom/af_netrom.c | sk->nr->n2count = 0; |
nr | 654 | net/netrom/af_netrom.c | sk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk); |
nr | 655 | net/netrom/af_netrom.c | sk->nr->t2timer = 0; |
nr | 656 | net/netrom/af_netrom.c | sk->nr->t4timer = 0; |
nr | 657 | net/netrom/af_netrom.c | sk->nr->state = NR_STATE_2; |
nr | 711 | net/netrom/af_netrom.c | memcpy(&sk->nr->user_addr, &addr->fsa_digipeater[0], sizeof(ax25_address)); |
nr | 712 | net/netrom/af_netrom.c | memcpy(&sk->nr->source_addr, &addr->fsa_ax25.sax25_call, sizeof(ax25_address)); |
nr | 722 | net/netrom/af_netrom.c | memcpy(&sk->nr->user_addr, user, sizeof(ax25_address)); |
nr | 723 | net/netrom/af_netrom.c | memcpy(&sk->nr->source_addr, source, sizeof(ax25_address)); |
nr | 726 | net/netrom/af_netrom.c | sk->nr->device = dev; |
nr | 778 | net/netrom/af_netrom.c | memcpy(&sk->nr->user_addr, user, sizeof(ax25_address)); |
nr | 779 | net/netrom/af_netrom.c | memcpy(&sk->nr->source_addr, source, sizeof(ax25_address)); |
nr | 784 | net/netrom/af_netrom.c | memcpy(&sk->nr->dest_addr, &addr->sax25_call, sizeof(ax25_address)); |
nr | 786 | net/netrom/af_netrom.c | sk->nr->my_index = circuit / 256; |
nr | 787 | net/netrom/af_netrom.c | sk->nr->my_id = circuit % 256; |
nr | 795 | net/netrom/af_netrom.c | sk->nr->state = NR_STATE_1; |
nr | 895 | net/netrom/af_netrom.c | memcpy(&sax->fsa_ax25.sax25_call, &sk->nr->user_addr, sizeof(ax25_address)); |
nr | 896 | net/netrom/af_netrom.c | memcpy(&sax->fsa_digipeater[0], &sk->nr->dest_addr, sizeof(ax25_address)); |
nr | 901 | net/netrom/af_netrom.c | memcpy(&sax->fsa_ax25.sax25_call, &sk->nr->source_addr, sizeof(ax25_address)); |
nr | 950 | net/netrom/af_netrom.c | sk->nr->bpqext = 1; |
nr | 952 | net/netrom/af_netrom.c | sk->nr->bpqext = 0; |
nr | 974 | net/netrom/af_netrom.c | memcpy(&make->nr->source_addr, dest, sizeof(ax25_address)); |
nr | 975 | net/netrom/af_netrom.c | memcpy(&make->nr->dest_addr, src, sizeof(ax25_address)); |
nr | 976 | net/netrom/af_netrom.c | memcpy(&make->nr->user_addr, user, sizeof(ax25_address)); |
nr | 978 | net/netrom/af_netrom.c | make->nr->your_index = circuit_index; |
nr | 979 | net/netrom/af_netrom.c | make->nr->your_id = circuit_id; |
nr | 981 | net/netrom/af_netrom.c | make->nr->my_index = circuit / 256; |
nr | 982 | net/netrom/af_netrom.c | make->nr->my_id = circuit % 256; |
nr | 993 | net/netrom/af_netrom.c | if (timeout * PR_SLOWHZ < make->nr->rtt * 2) |
nr | 994 | net/netrom/af_netrom.c | make->nr->rtt = (timeout * PR_SLOWHZ) / 2; |
nr | 995 | net/netrom/af_netrom.c | make->nr->bpqext = 1; |
nr | 997 | net/netrom/af_netrom.c | make->nr->bpqext = 0; |
nr | 1002 | net/netrom/af_netrom.c | make->nr->condition = 0x00; |
nr | 1003 | net/netrom/af_netrom.c | make->nr->vs = 0; |
nr | 1004 | net/netrom/af_netrom.c | make->nr->va = 0; |
nr | 1005 | net/netrom/af_netrom.c | make->nr->vr = 0; |
nr | 1006 | net/netrom/af_netrom.c | make->nr->vl = 0; |
nr | 1007 | net/netrom/af_netrom.c | make->nr->state = NR_STATE_3; |
nr | 1045 | net/netrom/af_netrom.c | if (sk->nr->device == NULL) |
nr | 1052 | net/netrom/af_netrom.c | if (sk->type == SOCK_SEQPACKET && memcmp(&sk->nr->dest_addr, &sax.sax25_call, sizeof(ax25_address)) != 0) |
nr | 1060 | net/netrom/af_netrom.c | memcpy(&sax.sax25_call, &sk->nr->dest_addr, sizeof(ax25_address)); |
nr | 1092 | net/netrom/af_netrom.c | *asmptr++ = sk->nr->your_index; |
nr | 1093 | net/netrom/af_netrom.c | *asmptr++ = sk->nr->your_id; |
nr | 1184 | net/netrom/af_netrom.c | if (!sk->nr->hdrincl) { |
nr | 1356 | net/netrom/af_netrom.c | if ((dev = s->nr->device) == NULL) |
nr | 1362 | net/netrom/af_netrom.c | ax2asc(&s->nr->user_addr)); |
nr | 1364 | net/netrom/af_netrom.c | ax2asc(&s->nr->dest_addr)); |
nr | 1366 | net/netrom/af_netrom.c | ax2asc(&s->nr->source_addr), |
nr | 1367 | net/netrom/af_netrom.c | devname, s->nr->my_index, s->nr->my_id, |
nr | 1368 | net/netrom/af_netrom.c | s->nr->your_index, s->nr->your_id, |
nr | 1369 | net/netrom/af_netrom.c | s->nr->state, |
nr | 1370 | net/netrom/af_netrom.c | s->nr->vs, s->nr->vr, s->nr->va, |
nr | 1371 | net/netrom/af_netrom.c | s->nr->t1timer / PR_SLOWHZ, |
nr | 1372 | net/netrom/af_netrom.c | s->nr->t1 / PR_SLOWHZ, |
nr | 1373 | net/netrom/af_netrom.c | s->nr->t2timer / PR_SLOWHZ, |
nr | 1374 | net/netrom/af_netrom.c | s->nr->t2 / PR_SLOWHZ, |
nr | 1375 | net/netrom/af_netrom.c | s->nr->n2count, s->nr->n2, |
nr | 1376 | net/netrom/af_netrom.c | s->nr->rtt / PR_SLOWHZ, |
nr | 56 | net/netrom/nr_in.c | sk->nr->fraglen += skb->len; |
nr | 57 | net/netrom/nr_in.c | skb_queue_tail(&sk->nr->frag_queue, skb); |
nr | 61 | net/netrom/nr_in.c | if (!more && sk->nr->fraglen > 0) { /* End of fragment */ |
nr | 62 | net/netrom/nr_in.c | sk->nr->fraglen += skb->len; |
nr | 63 | net/netrom/nr_in.c | skb_queue_tail(&sk->nr->frag_queue, skb); |
nr | 65 | net/netrom/nr_in.c | if ((skbn = alloc_skb(sk->nr->fraglen, GFP_ATOMIC)) == NULL) |
nr | 74 | net/netrom/nr_in.c | skbo = skb_dequeue(&sk->nr->frag_queue); |
nr | 78 | net/netrom/nr_in.c | while ((skbo = skb_dequeue(&sk->nr->frag_queue)) != NULL) { |
nr | 84 | net/netrom/nr_in.c | sk->nr->fraglen = 0; |
nr | 102 | net/netrom/nr_in.c | sk->nr->your_index = skb->data[17]; |
nr | 103 | net/netrom/nr_in.c | sk->nr->your_id = skb->data[18]; |
nr | 104 | net/netrom/nr_in.c | sk->nr->t1timer = 0; |
nr | 105 | net/netrom/nr_in.c | sk->nr->t2timer = 0; |
nr | 106 | net/netrom/nr_in.c | sk->nr->t4timer = 0; |
nr | 107 | net/netrom/nr_in.c | sk->nr->vs = 0; |
nr | 108 | net/netrom/nr_in.c | sk->nr->va = 0; |
nr | 109 | net/netrom/nr_in.c | sk->nr->vr = 0; |
nr | 110 | net/netrom/nr_in.c | sk->nr->vl = 0; |
nr | 111 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_3; |
nr | 113 | net/netrom/nr_in.c | sk->nr->n2count = 0; |
nr | 121 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_0; |
nr | 150 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_0; |
nr | 175 | net/netrom/nr_in.c | unsigned short nr, ns; |
nr | 178 | net/netrom/nr_in.c | nr = skb->data[18]; |
nr | 185 | net/netrom/nr_in.c | sk->nr->condition = 0x00; |
nr | 186 | net/netrom/nr_in.c | sk->nr->t1timer = 0; |
nr | 187 | net/netrom/nr_in.c | sk->nr->t2timer = 0; |
nr | 188 | net/netrom/nr_in.c | sk->nr->t4timer = 0; |
nr | 189 | net/netrom/nr_in.c | sk->nr->vs = 0; |
nr | 190 | net/netrom/nr_in.c | sk->nr->va = 0; |
nr | 191 | net/netrom/nr_in.c | sk->nr->vr = 0; |
nr | 192 | net/netrom/nr_in.c | sk->nr->vl = 0; |
nr | 198 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_0; |
nr | 208 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_0; |
nr | 219 | net/netrom/nr_in.c | sk->nr->condition |= PEER_RX_BUSY_CONDITION; |
nr | 220 | net/netrom/nr_in.c | sk->nr->t4timer = nr_default.busy_delay; |
nr | 222 | net/netrom/nr_in.c | sk->nr->condition &= ~PEER_RX_BUSY_CONDITION; |
nr | 223 | net/netrom/nr_in.c | sk->nr->t4timer = 0; |
nr | 225 | net/netrom/nr_in.c | if (!nr_validate_nr(sk, nr)) { |
nr | 227 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_1; |
nr | 230 | net/netrom/nr_in.c | if (sk->nr->condition & PEER_RX_BUSY_CONDITION) { |
nr | 231 | net/netrom/nr_in.c | nr_frames_acked(sk, nr); |
nr | 233 | net/netrom/nr_in.c | nr_check_iframes_acked(sk, nr); |
nr | 240 | net/netrom/nr_in.c | sk->nr->condition |= PEER_RX_BUSY_CONDITION; |
nr | 241 | net/netrom/nr_in.c | sk->nr->t4timer = nr_default.busy_delay; |
nr | 243 | net/netrom/nr_in.c | sk->nr->condition &= ~PEER_RX_BUSY_CONDITION; |
nr | 244 | net/netrom/nr_in.c | sk->nr->t4timer = 0; |
nr | 246 | net/netrom/nr_in.c | if (nr_validate_nr(sk, nr)) { |
nr | 247 | net/netrom/nr_in.c | nr_frames_acked(sk, nr); |
nr | 251 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_1; |
nr | 260 | net/netrom/nr_in.c | sk->nr->condition |= PEER_RX_BUSY_CONDITION; |
nr | 261 | net/netrom/nr_in.c | sk->nr->t4timer = nr_default.busy_delay; |
nr | 263 | net/netrom/nr_in.c | sk->nr->condition &= ~PEER_RX_BUSY_CONDITION; |
nr | 264 | net/netrom/nr_in.c | sk->nr->t4timer = 0; |
nr | 266 | net/netrom/nr_in.c | if (!nr_validate_nr(sk, nr)) { |
nr | 268 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_1; |
nr | 271 | net/netrom/nr_in.c | if (sk->nr->condition & PEER_RX_BUSY_CONDITION) { |
nr | 272 | net/netrom/nr_in.c | nr_frames_acked(sk, nr); |
nr | 274 | net/netrom/nr_in.c | nr_check_iframes_acked(sk, nr); |
nr | 277 | net/netrom/nr_in.c | skb_queue_head(&sk->nr->reseq_queue, skb); |
nr | 278 | net/netrom/nr_in.c | if (sk->nr->condition & OWN_RX_BUSY_CONDITION) |
nr | 282 | net/netrom/nr_in.c | save_vr = sk->nr->vr; |
nr | 283 | net/netrom/nr_in.c | while ((skbn = skb_dequeue(&sk->nr->reseq_queue)) != NULL) { |
nr | 285 | net/netrom/nr_in.c | if (ns == sk->nr->vr) { |
nr | 287 | net/netrom/nr_in.c | sk->nr->vr = (sk->nr->vr + 1) % NR_MODULUS; |
nr | 289 | net/netrom/nr_in.c | sk->nr->condition |= OWN_RX_BUSY_CONDITION; |
nr | 300 | net/netrom/nr_in.c | skb_queue_tail(&sk->nr->reseq_queue, skbn); |
nr | 302 | net/netrom/nr_in.c | } while (save_vr != sk->nr->vr); |
nr | 306 | net/netrom/nr_in.c | if (((sk->nr->vl + sk->window) % NR_MODULUS) == sk->nr->vr) { |
nr | 309 | net/netrom/nr_in.c | if (!(sk->nr->condition & ACK_PENDING_CONDITION)) { |
nr | 310 | net/netrom/nr_in.c | sk->nr->t2timer = sk->nr->t2; |
nr | 311 | net/netrom/nr_in.c | sk->nr->condition |= ACK_PENDING_CONDITION; |
nr | 328 | net/netrom/nr_in.c | if (sk->nr->state != NR_STATE_1 && sk->nr->state != NR_STATE_2 && |
nr | 329 | net/netrom/nr_in.c | sk->nr->state != NR_STATE_3) { |
nr | 330 | net/netrom/nr_in.c | printk("nr_process_rx_frame: frame received - state: %d\n", sk->nr->state); |
nr | 338 | net/netrom/nr_in.c | switch (sk->nr->state) |
nr | 54 | net/netrom/nr_out.c | mtu = sk->nr->device->mtu; |
nr | 95 | net/netrom/nr_out.c | if (sk->nr->state == NR_STATE_3) |
nr | 108 | net/netrom/nr_out.c | skb->data[2] = sk->nr->vs; |
nr | 109 | net/netrom/nr_out.c | skb->data[3] = sk->nr->vr; |
nr | 111 | net/netrom/nr_out.c | if (sk->nr->condition & OWN_RX_BUSY_CONDITION) |
nr | 121 | net/netrom/nr_out.c | if ((skb = skb_peek(&sk->nr->ack_queue)) == NULL) |
nr | 129 | net/netrom/nr_out.c | sk->nr->condition &= ~ACK_PENDING_CONDITION; |
nr | 130 | net/netrom/nr_out.c | sk->nr->vl = sk->nr->vr; |
nr | 131 | net/netrom/nr_out.c | sk->nr->t1timer = 0; |
nr | 142 | net/netrom/nr_out.c | start = (skb_peek(&sk->nr->ack_queue) == NULL) ? sk->nr->va : sk->nr->vs; |
nr | 143 | net/netrom/nr_out.c | end = (sk->nr->va + sk->window) % NR_MODULUS; |
nr | 145 | net/netrom/nr_out.c | if (!(sk->nr->condition & PEER_RX_BUSY_CONDITION) && |
nr | 149 | net/netrom/nr_out.c | sk->nr->vs = start; |
nr | 166 | net/netrom/nr_out.c | next = (sk->nr->vs + 1) % NR_MODULUS; |
nr | 174 | net/netrom/nr_out.c | sk->nr->vs = next; |
nr | 179 | net/netrom/nr_out.c | skb_queue_tail(&sk->nr->ack_queue, skb); |
nr | 183 | net/netrom/nr_out.c | sk->nr->vl = sk->nr->vr; |
nr | 184 | net/netrom/nr_out.c | sk->nr->condition &= ~ACK_PENDING_CONDITION; |
nr | 186 | net/netrom/nr_out.c | if (sk->nr->t1timer == 0) { |
nr | 187 | net/netrom/nr_out.c | sk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk); |
nr | 203 | net/netrom/nr_out.c | memcpy(dptr, &sk->nr->source_addr, sizeof(ax25_address)); |
nr | 209 | net/netrom/nr_out.c | memcpy(dptr, &sk->nr->dest_addr, sizeof(ax25_address)); |
nr | 242 | net/netrom/nr_out.c | sk->nr->condition = 0x00; |
nr | 243 | net/netrom/nr_out.c | sk->nr->n2count = 0; |
nr | 247 | net/netrom/nr_out.c | sk->nr->t2timer = 0; |
nr | 248 | net/netrom/nr_out.c | sk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk); |
nr | 258 | net/netrom/nr_out.c | if (sk->nr->condition & OWN_RX_BUSY_CONDITION) { |
nr | 261 | net/netrom/nr_out.c | if (skb_peek(&sk->nr->reseq_queue) != NULL) { |
nr | 268 | net/netrom/nr_out.c | sk->nr->vl = sk->nr->vr; |
nr | 269 | net/netrom/nr_out.c | sk->nr->condition &= ~ACK_PENDING_CONDITION; |
nr | 272 | net/netrom/nr_out.c | void nr_check_iframes_acked(struct sock *sk, unsigned short nr) |
nr | 274 | net/netrom/nr_out.c | if (sk->nr->vs == nr) { |
nr | 275 | net/netrom/nr_out.c | nr_frames_acked(sk, nr); |
nr | 278 | net/netrom/nr_out.c | sk->nr->t1timer = 0; |
nr | 279 | net/netrom/nr_out.c | sk->nr->n2count = 0; |
nr | 281 | net/netrom/nr_out.c | if (sk->nr->va != nr) { |
nr | 282 | net/netrom/nr_out.c | nr_frames_acked(sk, nr); |
nr | 284 | net/netrom/nr_out.c | sk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk); |
nr | 65 | net/netrom/nr_route.c | static int nr_add_node(ax25_address *nr, const char *mnemonic, ax25_address *ax25, |
nr | 75 | net/netrom/nr_route.c | if (ax25cmp(nr, &nr_node->callsign) == 0) |
nr | 119 | 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->vl; |
nr | 137 | net/netrom/nr_subr.c | unsigned short vt = (sk->nr->vl + sk->window) % NR_MODULUS; |
nr | 166 | net/netrom/nr_subr.c | len += (sk->nr->bpqext) ? 2 : 1; |
nr | 190 | net/netrom/nr_subr.c | timeout = (sk->nr->rtt / PR_SLOWHZ) * 2; |
nr | 191 | net/netrom/nr_subr.c | *dptr++ = sk->nr->my_index; |
nr | 192 | net/netrom/nr_subr.c | *dptr++ = sk->nr->my_id; |
nr | 197 | net/netrom/nr_subr.c | memcpy(dptr, &sk->nr->user_addr, sizeof(ax25_address)); |
nr | 202 | net/netrom/nr_subr.c | memcpy(dptr, &sk->nr->source_addr, sizeof(ax25_address)); |
nr | 212 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_index; |
nr | 213 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_id; |
nr | 214 | net/netrom/nr_subr.c | *dptr++ = sk->nr->my_index; |
nr | 215 | net/netrom/nr_subr.c | *dptr++ = sk->nr->my_id; |
nr | 218 | net/netrom/nr_subr.c | if (sk->nr->bpqext) *dptr++ = nr_default.ttl; |
nr | 223 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_index; |
nr | 224 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_id; |
nr | 231 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_index; |
nr | 232 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_id; |
nr | 234 | net/netrom/nr_subr.c | *dptr++ = sk->nr->vr; |
nr | 298 | net/netrom/nr_subr.c | for (t = 2, n = 0; n < sk->nr->n2count; n++) |
nr | 303 | net/netrom/nr_subr.c | return t * sk->nr->rtt; |
nr | 311 | net/netrom/nr_subr.c | if (sk->nr->t1timer > 0 && sk->nr->n2count == 0) |
nr | 312 | net/netrom/nr_subr.c | sk->nr->rtt = (9 * sk->nr->rtt + sk->nr->t1 - sk->nr->t1timer) / 10; |
nr | 315 | net/netrom/nr_subr.c | if (sk->nr->rtt < 1 * PR_SLOWHZ) |
nr | 316 | net/netrom/nr_subr.c | sk->nr->rtt = 1 * PR_SLOWHZ; |
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); |