tag | line | file | source code |
nr | 20 | arch/alpha/boot/main.c | extern unsigned long switch_to_osf_pal(unsigned long nr, |
nr | 110 | 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 | 155 | arch/i386/kernel/process.c | void copy_thread(int nr, unsigned long clone_flags, unsigned long esp, |
nr | 169 | arch/i386/kernel/process.c | p->tss.tr = _TSS(nr); |
nr | 178 | arch/i386/kernel/process.c | p->tss.ldt = _LDT(nr); |
nr | 184 | arch/i386/kernel/process.c | set_tss_desc(gdt+(nr<<1)+FIRST_TSS_ENTRY,&(p->tss)); |
nr | 186 | arch/i386/kernel/process.c | set_ldt_desc(gdt+(nr<<1)+FIRST_LDT_ENTRY,p->ldt, 512); |
nr | 188 | 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 | unsigned long 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 | 114 | 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 | 357 | drivers/block/genhd.c | int nr=0; |
nr | 361 | drivers/block/genhd.c | nr += p->nr_real; |
nr | 445 | drivers/block/ll_rw_blk.c | void ll_rw_block(int rw, int nr, struct buffer_head * bh[]) |
nr | 456 | drivers/block/ll_rw_blk.c | if (--nr <= 0) |
nr | 479 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
nr | 498 | drivers/block/ll_rw_blk.c | if (nr > 1) |
nr | 500 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
nr | 514 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
nr | 1259 | drivers/char/console.c | static void csi_at(int currcons, unsigned int nr) |
nr | 1261 | drivers/char/console.c | if (nr > video_num_columns) |
nr | 1262 | drivers/char/console.c | nr = video_num_columns; |
nr | 1263 | drivers/char/console.c | else if (!nr) |
nr | 1264 | drivers/char/console.c | nr = 1; |
nr | 1265 | drivers/char/console.c | while (nr--) |
nr | 1269 | drivers/char/console.c | static void csi_L(int currcons, unsigned int nr) |
nr | 1271 | drivers/char/console.c | if (nr > video_num_lines) |
nr | 1272 | drivers/char/console.c | nr = video_num_lines; |
nr | 1273 | drivers/char/console.c | else if (!nr) |
nr | 1274 | drivers/char/console.c | nr = 1; |
nr | 1275 | drivers/char/console.c | while (nr--) |
nr | 1279 | drivers/char/console.c | static void csi_P(int currcons, unsigned int nr) |
nr | 1281 | drivers/char/console.c | if (nr > video_num_columns) |
nr | 1282 | drivers/char/console.c | nr = video_num_columns; |
nr | 1283 | drivers/char/console.c | else if (!nr) |
nr | 1284 | drivers/char/console.c | nr = 1; |
nr | 1285 | drivers/char/console.c | while (nr--) |
nr | 1289 | drivers/char/console.c | static void csi_M(int currcons, unsigned int nr) |
nr | 1291 | drivers/char/console.c | if (nr > video_num_lines) |
nr | 1292 | drivers/char/console.c | nr = video_num_lines; |
nr | 1293 | drivers/char/console.c | else if (!nr) |
nr | 1294 | drivers/char/console.c | nr=1; |
nr | 1295 | 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 | 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 | 1278 | drivers/net/ppp.c | if (len + 2 > nr) { |
nr | 1282 | drivers/net/ppp.c | nr, len+2)); |
nr | 1341 | drivers/net/ppp.c | ppp_write(struct tty_struct *tty, struct file *file, unsigned char *buf, unsigned int nr) |
nr | 1356 | drivers/net/ppp.c | if (nr > ppp->mtu) { |
nr | 1359 | drivers/net/ppp.c | nr, ppp->mtu)); |
nr | 1360 | drivers/net/ppp.c | nr = ppp->mtu; |
nr | 1364 | drivers/net/ppp.c | ppp_print_buffer ("write frame", buf, nr, USER_DS); |
nr | 1390 | drivers/net/ppp.c | i = nr; |
nr | 1412 | 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 | 783 | fs/binfmt_elf.c | static int dump_write(struct file *file, void *addr, int nr) |
nr | 785 | fs/binfmt_elf.c | return file->f_op->write(file->f_inode, file, addr, nr) == nr; |
nr | 858 | fs/binfmt_elf.c | #define DUMP_WRITE(addr, nr) \ |
nr | 859 | fs/binfmt_elf.c | do { if (!dump_write(file, (addr), (nr))) return 0; } while(0) |
nr | 883 | fs/binfmt_elf.c | #define DUMP_WRITE(addr, nr) \ |
nr | 884 | 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 | 162 | fs/ext/inode.c | #define inode_bmap(inode,nr) ((inode)->u.ext_i.i_data[(nr)]) |
nr | 164 | fs/ext/inode.c | static int block_bmap(struct buffer_head * bh, int nr) |
nr | 170 | fs/ext/inode.c | tmp = ((unsigned long *) bh->b_data)[nr]; |
nr | 219 | fs/ext/inode.c | static struct buffer_head * inode_getblk(struct inode * inode, int nr, int create) |
nr | 225 | fs/ext/inode.c | p = inode->u.ext_i.i_data + nr; |
nr | 253 | fs/ext/inode.c | struct buffer_head * bh, int nr, int create) |
nr | 269 | 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 | 314 | fs/msdos/inode.c | int free,nr; |
nr | 322 | fs/msdos/inode.c | for (nr = 2; nr < MSDOS_SB(sb)->clusters+2; nr++) |
nr | 323 | fs/msdos/inode.c | if (!fat_access(sb,nr,-1)) free++; |
nr | 360 | fs/msdos/inode.c | int nr; |
nr | 406 | fs/msdos/inode.c | if ((nr = CF_LE_W(raw_entry->start)) != 0) |
nr | 407 | fs/msdos/inode.c | while (nr != -1) { |
nr | 410 | 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 | 151 | fs/proc/root.c | unsigned int nr,pid; |
nr | 157 | fs/proc/root.c | nr = filp->f_pos; |
nr | 158 | fs/proc/root.c | while (nr < NR_ROOT_DIRENTRY) { |
nr | 159 | fs/proc/root.c | struct proc_dir_entry * de = root_dir + nr; |
nr | 161 | fs/proc/root.c | if (filldir(dirent, de->name, de->namelen, nr, de->low_ino) < 0) |
nr | 164 | fs/proc/root.c | nr++; |
nr | 167 | fs/proc/root.c | for (nr -= NR_ROOT_DIRENTRY; nr < NR_TASKS; nr++, filp->f_pos++) { |
nr | 168 | fs/proc/root.c | struct task_struct * p = task[nr]; |
nr | 181 | fs/proc/root.c | if (filldir(dirent, buf+j, NUMBUF-j, nr+NR_ROOT_DIRENTRY, (pid << 16)+2) < 0) |
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 long * fs_pointer, fd_set * fdset) |
nr | 170 | fs/select.c | if (nr <= 0) |
nr | 175 | fs/select.c | nr -= 8 * sizeof(unsigned long); |
nr | 180 | fs/select.c | static void __set_fd_set(int nr, unsigned long * fs_pointer, unsigned long * fdset) |
nr | 187 | fs/select.c | if (nr <= 0) |
nr | 192 | fs/select.c | nr -= 8 * sizeof(unsigned long); |
nr | 196 | fs/select.c | #define get_fd_set(nr,fsp,fdp) \ |
nr | 197 | fs/select.c | __get_fd_set(nr, (unsigned long *) (fsp), fdp) |
nr | 199 | fs/select.c | #define set_fd_set(nr,fsp,fdp) \ |
nr | 200 | fs/select.c | __set_fd_set(nr, (unsigned long *) (fsp), (unsigned long *) (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" (((unsigned long *) addr)[nr >> 6]), |
nr | 33 | include/asm-alpha/bitops.h | :"r" (1UL << (nr & 63)), |
nr | 34 | include/asm-alpha/bitops.h | "m" (((unsigned long *) addr)[nr >> 6])); |
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" (((unsigned long *) addr)[nr >> 6]), |
nr | 55 | include/asm-alpha/bitops.h | :"r" (1UL << (nr & 63)), |
nr | 56 | include/asm-alpha/bitops.h | "m" (((unsigned long *) addr)[nr >> 6])); |
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" (((unsigned long *) addr)[nr >> 6]), |
nr | 75 | include/asm-alpha/bitops.h | :"r" (1UL << (nr & 63)), |
nr | 76 | include/asm-alpha/bitops.h | "m" (((unsigned long *) addr)[nr >> 6])); |
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 & (((unsigned long *) addr)[nr >> 6] >> (nr & 63)); |
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 | 218 | include/asm-alpha/unistd.h | static inline int write(int fd, const char * buf, int nr) |
nr | 220 | include/asm-alpha/unistd.h | return sys_write(fd, buf, nr); |
nr | 224 | include/asm-alpha/unistd.h | static inline int read(int fd, char * buf, int nr) |
nr | 226 | 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 | 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 | 488 | include/linux/fs.h | extern struct inode * __iget(struct super_block * sb,int nr,int crsmnt); |
nr | 496 | include/linux/fs.h | extern void ll_rw_block(int rw, int nr, struct buffer_head * bh[]); |
nr | 497 | include/linux/fs.h | extern void ll_rw_page(int rw, int dev, unsigned long nr, char * buffer); |
nr | 532 | include/linux/fs.h | extern inline struct inode * iget(struct super_block * sb,int nr) |
nr | 534 | 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 | 71 | include/linux/mcd.h | #define READ_DATA(port, buf, nr) \ |
nr | 72 | include/linux/mcd.h | insb(port, buf, nr) |
nr | 206 | include/linux/mm.h | extern void rw_swap_page(int rw, unsigned long nr, char * buf); |
nr | 221 | include/linux/mm.h | #define read_swap_page(nr,buf) \ |
nr | 222 | include/linux/mm.h | rw_swap_page(READ,(nr),(buf)) |
nr | 223 | include/linux/mm.h | #define write_swap_page(nr,buf) \ |
nr | 224 | 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 | 372 | include/linux/sched.h | if (p->nr >= __MAX_SELECT_TABLE_ENTRIES) |
nr | 374 | include/linux/sched.h | entry = p->entry + p->nr; |
nr | 379 | 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 | unsigned char * buf, unsigned int nr); |
nr | 30 | include/linux/wait.h | int nr; |
nr | 157 | include/net/sock.h | nr_cb *nr; |
nr | 169 | kernel/fork.c | int nr; |
nr | 178 | kernel/fork.c | nr = find_empty_process(); |
nr | 179 | kernel/fork.c | if (nr < 0) |
nr | 210 | kernel/fork.c | task[nr] = p; |
nr | 215 | kernel/fork.c | copy_thread(nr, clone_flags, usp, p, regs); |
nr | 229 | kernel/fork.c | task[nr] = NULL; |
nr | 75 | kernel/sched.c | #define _S(nr) (1<<((nr)-1)) |
nr | 438 | kernel/sched.c | unsigned long nr = 0; |
nr | 444 | kernel/sched.c | nr += FIXED_1; |
nr | 445 | kernel/sched.c | return nr; |
nr | 771 | kernel/sched.c | static void show_task(int nr,struct task_struct * p) |
nr | 776 | kernel/sched.c | printk("%-8s %3d ", p->comm, (p == current) ? -nr : nr); |
nr | 18 | kernel/signal.c | #define _S(nr) (1<<((nr)-1)) |
nr | 31 | mm/filemap.c | static inline void multi_bmap(struct inode * inode, unsigned int block, unsigned int * nr, int shift) |
nr | 36 | mm/filemap.c | *nr = bmap(inode, block); |
nr | 39 | mm/filemap.c | nr++; |
nr | 47 | mm/filemap.c | int nr[PAGE_SIZE/512]; |
nr | 49 | mm/filemap.c | multi_bmap(inode, (address & PAGE_MASK) - area->vm_start + area->vm_offset, nr, |
nr | 51 | mm/filemap.c | return bread_page(page, inode->i_dev, nr, inode->i_sb->s_blocksize, no_share); |
nr | 70 | mm/filemap.c | int nr[PAGE_SIZE/512]; |
nr | 84 | mm/filemap.c | multi_bmap(inode, offset, nr, inode->i_sb->s_blocksize_bits); |
nr | 85 | mm/filemap.c | bwrite_page(page, inode->i_dev, nr, inode->i_sb->s_blocksize); |
nr | 815 | mm/swap.c | unsigned long nr = 0; |
nr | 817 | mm/swap.c | nr ++; |
nr | 819 | mm/swap.c | total += nr * ((PAGE_SIZE>>10) << order); |
nr | 820 | mm/swap.c | printk("%lu*%lukB ", nr, (PAGE_SIZE>>10) << order); |
nr | 965 | mm/swap.c | int nr; |
nr | 970 | mm/swap.c | nr = 0; |
nr | 971 | mm/swap.c | while (nr < NR_TASKS) { |
nr | 972 | mm/swap.c | if (task[nr]) { |
nr | 973 | mm/swap.c | if (unuse_process(task[nr], type, page)) { |
nr | 980 | 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 | 662 | net/appletalk/ddp.c | struct netrange *nr; |
nr | 692 | net/appletalk/ddp.c | nr=(struct netrange *)&sa->sat_zero[0]; |
nr | 693 | net/appletalk/ddp.c | if(nr->nr_phase!=2) |
nr | 713 | net/appletalk/ddp.c | atif->nets= *nr; |
nr | 744 | net/appletalk/ddp.c | if(nr->nr_firstnet==htons(0) && nr->nr_lastnet==htons(0xFFFE)) { |
nr | 749 | net/appletalk/ddp.c | limit=ntohs(nr->nr_lastnet); |
nr | 750 | net/appletalk/ddp.c | if(limit-ntohs(nr->nr_firstnet) > 256) |
nr | 755 | net/appletalk/ddp.c | for(ct=ntohs(nr->nr_firstnet);ct<=limit;ct++) |
nr | 223 | net/ax25/ax25_in.c | unsigned short nr = (skb->data[0] >> 5) & 7; |
nr | 274 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 275 | net/ax25/ax25_in.c | ax25_check_iframes_acked(ax25, nr); |
nr | 285 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 286 | net/ax25/ax25_in.c | ax25_check_iframes_acked(ax25, nr); |
nr | 296 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 297 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 310 | net/ax25/ax25_in.c | if (!ax25_validate_nr(ax25, nr)) { |
nr | 316 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 318 | net/ax25/ax25_in.c | ax25_check_iframes_acked(ax25, nr); |
nr | 371 | net/ax25/ax25_in.c | unsigned short nr = (skb->data[0] >> 5) & 7; |
nr | 425 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 426 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 440 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 441 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 452 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 453 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 467 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 468 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 479 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 480 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 494 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 495 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 505 | net/ax25/ax25_in.c | if (!ax25_validate_nr(ax25, nr)) { |
nr | 510 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 221 | net/ax25/ax25_out.c | void ax25_check_iframes_acked(ax25_cb *ax25, unsigned short nr) |
nr | 223 | net/ax25/ax25_out.c | if (ax25->vs == nr) { |
nr | 224 | net/ax25/ax25_out.c | ax25_frames_acked(ax25, nr); |
nr | 229 | net/ax25/ax25_out.c | if (ax25->va != nr) { |
nr | 230 | net/ax25/ax25_out.c | ax25_frames_acked(ax25, nr); |
nr | 74 | net/ax25/ax25_subr.c | void ax25_frames_acked(ax25_cb *ax25, unsigned short nr) |
nr | 81 | net/ax25/ax25_subr.c | if (ax25->va != nr) { |
nr | 82 | net/ax25/ax25_subr.c | while (skb_peek(&ax25->ack_queue) != NULL && ax25->va != nr) { |
nr | 108 | net/ax25/ax25_subr.c | int ax25_validate_nr(ax25_cb *ax25, unsigned short nr) |
nr | 113 | net/ax25/ax25_subr.c | if (nr == vc) return 1; |
nr | 117 | net/ax25/ax25_subr.c | if (nr == ax25->vs) return 1; |
nr | 140 | net/netrom/af_netrom.c | if (ax25cmp(&s->nr->source_addr, addr) == 0 && s->type == type && s->state == TCP_LISTEN) { |
nr | 162 | net/netrom/af_netrom.c | if (s->nr->my_index == index && s->nr->my_id == id && s->type == type) { |
nr | 185 | net/netrom/af_netrom.c | if (s->nr->your_index == index && s->nr->your_id == id && s->type == type) { |
nr | 232 | net/netrom/af_netrom.c | skb->sk->nr->state = NR_STATE_0; |
nr | 245 | net/netrom/af_netrom.c | kfree_s(sk->nr, sizeof(*sk->nr)); |
nr | 293 | net/netrom/af_netrom.c | sk->nr->rtt = (opt * PR_SLOWHZ) / 2; |
nr | 299 | net/netrom/af_netrom.c | sk->nr->t2 = opt * PR_SLOWHZ; |
nr | 305 | net/netrom/af_netrom.c | sk->nr->n2 = opt; |
nr | 330 | net/netrom/af_netrom.c | val = sk->nr->t1 / PR_SLOWHZ; |
nr | 334 | net/netrom/af_netrom.c | val = sk->nr->t2 / PR_SLOWHZ; |
nr | 338 | net/netrom/af_netrom.c | val = sk->nr->n2; |
nr | 363 | net/netrom/af_netrom.c | memset(&sk->nr->user_addr, '\0', sizeof(ax25_address)); |
nr | 387 | net/netrom/af_netrom.c | nr_cb *nr; |
nr | 392 | net/netrom/af_netrom.c | if ((nr = (nr_cb *)kmalloc(sizeof(*nr), GFP_ATOMIC)) == NULL) { |
nr | 404 | net/netrom/af_netrom.c | kfree_s((void *)nr, sizeof(*nr)); |
nr | 447 | net/netrom/af_netrom.c | skb_queue_head_init(&nr->ack_queue); |
nr | 448 | net/netrom/af_netrom.c | skb_queue_head_init(&nr->reseq_queue); |
nr | 450 | net/netrom/af_netrom.c | nr->my_index = 0; |
nr | 451 | net/netrom/af_netrom.c | nr->my_id = 0; |
nr | 452 | net/netrom/af_netrom.c | nr->rtt = nr_default.timeout; |
nr | 453 | net/netrom/af_netrom.c | nr->t1 = nr_default.timeout; |
nr | 454 | net/netrom/af_netrom.c | nr->t2 = nr_default.ack_delay; |
nr | 455 | net/netrom/af_netrom.c | nr->n2 = nr_default.tries; |
nr | 457 | net/netrom/af_netrom.c | nr->t1timer = 0; |
nr | 458 | net/netrom/af_netrom.c | nr->t2timer = 0; |
nr | 459 | net/netrom/af_netrom.c | nr->t4timer = 0; |
nr | 460 | net/netrom/af_netrom.c | nr->n2count = 0; |
nr | 462 | net/netrom/af_netrom.c | nr->va = 0; |
nr | 463 | net/netrom/af_netrom.c | nr->vr = 0; |
nr | 464 | net/netrom/af_netrom.c | nr->vs = 0; |
nr | 465 | net/netrom/af_netrom.c | nr->vl = 0; |
nr | 467 | net/netrom/af_netrom.c | nr->your_index = 0; |
nr | 468 | net/netrom/af_netrom.c | nr->your_id = 0; |
nr | 470 | net/netrom/af_netrom.c | nr->my_index = 0; |
nr | 471 | net/netrom/af_netrom.c | nr->my_id = 0; |
nr | 473 | net/netrom/af_netrom.c | nr->bpqext = 1; |
nr | 474 | net/netrom/af_netrom.c | nr->state = NR_STATE_0; |
nr | 476 | net/netrom/af_netrom.c | memset(&nr->source_addr, '\0', sizeof(ax25_address)); |
nr | 477 | net/netrom/af_netrom.c | memset(&nr->user_addr, '\0', sizeof(ax25_address)); |
nr | 478 | net/netrom/af_netrom.c | memset(&nr->dest_addr, '\0', sizeof(ax25_address)); |
nr | 480 | net/netrom/af_netrom.c | nr->sk = sk; |
nr | 481 | net/netrom/af_netrom.c | sk->nr = nr; |
nr | 489 | net/netrom/af_netrom.c | nr_cb *nr; |
nr | 494 | net/netrom/af_netrom.c | if ((nr = (nr_cb *)kmalloc(sizeof(*nr), GFP_ATOMIC)) == NULL) { |
nr | 507 | net/netrom/af_netrom.c | kfree_s((void *)nr, sizeof(*nr)); |
nr | 546 | net/netrom/af_netrom.c | skb_queue_head_init(&nr->ack_queue); |
nr | 547 | net/netrom/af_netrom.c | skb_queue_head_init(&nr->reseq_queue); |
nr | 549 | net/netrom/af_netrom.c | nr->rtt = osk->nr->rtt; |
nr | 550 | net/netrom/af_netrom.c | nr->t1 = osk->nr->t1; |
nr | 551 | net/netrom/af_netrom.c | nr->t2 = osk->nr->t2; |
nr | 552 | net/netrom/af_netrom.c | nr->n2 = osk->nr->n2; |
nr | 554 | net/netrom/af_netrom.c | nr->bpqext = osk->nr->bpqext; |
nr | 556 | net/netrom/af_netrom.c | nr->t1timer = 0; |
nr | 557 | net/netrom/af_netrom.c | nr->t2timer = 0; |
nr | 558 | net/netrom/af_netrom.c | nr->t4timer = 0; |
nr | 559 | net/netrom/af_netrom.c | nr->n2count = 0; |
nr | 561 | net/netrom/af_netrom.c | nr->va = 0; |
nr | 562 | net/netrom/af_netrom.c | nr->vr = 0; |
nr | 563 | net/netrom/af_netrom.c | nr->vs = 0; |
nr | 564 | net/netrom/af_netrom.c | nr->vl = 0; |
nr | 566 | net/netrom/af_netrom.c | sk->nr = nr; |
nr | 567 | net/netrom/af_netrom.c | nr->sk = sk; |
nr | 586 | net/netrom/af_netrom.c | switch (sk->nr->state) { |
nr | 594 | net/netrom/af_netrom.c | sk->nr->state = NR_STATE_0; |
nr | 602 | net/netrom/af_netrom.c | sk->nr->state = NR_STATE_0; |
nr | 610 | net/netrom/af_netrom.c | sk->nr->n2count = 0; |
nr | 612 | net/netrom/af_netrom.c | sk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk); |
nr | 613 | net/netrom/af_netrom.c | sk->nr->t2timer = 0; |
nr | 614 | net/netrom/af_netrom.c | sk->nr->t4timer = 0; |
nr | 615 | net/netrom/af_netrom.c | sk->nr->state = NR_STATE_2; |
nr | 668 | net/netrom/af_netrom.c | memcpy(&sk->nr->user_addr, &addr->fsa_digipeater[0], sizeof(ax25_address)); |
nr | 669 | net/netrom/af_netrom.c | memcpy(&sk->nr->source_addr, &addr->fsa_ax25.sax25_call, sizeof(ax25_address)); |
nr | 679 | net/netrom/af_netrom.c | memcpy(&sk->nr->user_addr, user, sizeof(ax25_address)); |
nr | 680 | net/netrom/af_netrom.c | memcpy(&sk->nr->source_addr, source, sizeof(ax25_address)); |
nr | 734 | net/netrom/af_netrom.c | memcpy(&sk->nr->user_addr, user, sizeof(ax25_address)); |
nr | 735 | net/netrom/af_netrom.c | memcpy(&sk->nr->source_addr, source, sizeof(ax25_address)); |
nr | 740 | net/netrom/af_netrom.c | memcpy(&sk->nr->dest_addr, &addr->sax25_call, sizeof(ax25_address)); |
nr | 742 | net/netrom/af_netrom.c | sk->nr->my_index = circuit / 256; |
nr | 743 | net/netrom/af_netrom.c | sk->nr->my_id = circuit % 256; |
nr | 751 | net/netrom/af_netrom.c | sk->nr->state = NR_STATE_1; |
nr | 851 | net/netrom/af_netrom.c | memcpy(&sax->fsa_ax25.sax25_call, &sk->nr->user_addr, sizeof(ax25_address)); |
nr | 852 | net/netrom/af_netrom.c | memcpy(&sax->fsa_digipeater[0], &sk->nr->dest_addr, sizeof(ax25_address)); |
nr | 857 | net/netrom/af_netrom.c | memcpy(&sax->fsa_ax25.sax25_call, &sk->nr->source_addr, sizeof(ax25_address)); |
nr | 907 | net/netrom/af_netrom.c | sk->nr->bpqext = 1; |
nr | 909 | net/netrom/af_netrom.c | sk->nr->bpqext = 0; |
nr | 931 | net/netrom/af_netrom.c | memcpy(&make->nr->source_addr, dest, sizeof(ax25_address)); |
nr | 932 | net/netrom/af_netrom.c | memcpy(&make->nr->dest_addr, src, sizeof(ax25_address)); |
nr | 933 | net/netrom/af_netrom.c | memcpy(&make->nr->user_addr, user, sizeof(ax25_address)); |
nr | 935 | net/netrom/af_netrom.c | make->nr->your_index = circuit_index; |
nr | 936 | net/netrom/af_netrom.c | make->nr->your_id = circuit_id; |
nr | 938 | net/netrom/af_netrom.c | make->nr->my_index = circuit / 256; |
nr | 939 | net/netrom/af_netrom.c | make->nr->my_id = circuit % 256; |
nr | 950 | net/netrom/af_netrom.c | if (timeout * PR_SLOWHZ < make->nr->rtt * 2) |
nr | 951 | net/netrom/af_netrom.c | make->nr->rtt = (timeout * PR_SLOWHZ) / 2; |
nr | 952 | net/netrom/af_netrom.c | make->nr->bpqext = 1; |
nr | 954 | net/netrom/af_netrom.c | make->nr->bpqext = 0; |
nr | 959 | net/netrom/af_netrom.c | make->nr->condition = 0x00; |
nr | 960 | net/netrom/af_netrom.c | make->nr->vs = 0; |
nr | 961 | net/netrom/af_netrom.c | make->nr->va = 0; |
nr | 962 | net/netrom/af_netrom.c | make->nr->vr = 0; |
nr | 963 | net/netrom/af_netrom.c | make->nr->vl = 0; |
nr | 964 | net/netrom/af_netrom.c | make->nr->state = NR_STATE_3; |
nr | 1007 | net/netrom/af_netrom.c | if (sk->type == SOCK_SEQPACKET && memcmp(&sk->nr->dest_addr, &sax.sax25_call, sizeof(ax25_address)) != 0) |
nr | 1015 | net/netrom/af_netrom.c | memcpy(&sax.sax25_call, &sk->nr->dest_addr, sizeof(ax25_address)); |
nr | 1047 | net/netrom/af_netrom.c | *asmptr++ = sk->nr->your_index; |
nr | 1048 | net/netrom/af_netrom.c | *asmptr++ = sk->nr->your_id; |
nr | 1267 | net/netrom/af_netrom.c | ax2asc(&s->nr->user_addr)); |
nr | 1269 | net/netrom/af_netrom.c | ax2asc(&s->nr->dest_addr)); |
nr | 1271 | net/netrom/af_netrom.c | ax2asc(&s->nr->source_addr), |
nr | 1272 | net/netrom/af_netrom.c | s->nr->my_index, s->nr->my_id, |
nr | 1273 | net/netrom/af_netrom.c | s->nr->your_index, s->nr->your_id, |
nr | 1274 | net/netrom/af_netrom.c | s->nr->state, |
nr | 1275 | net/netrom/af_netrom.c | s->nr->vs, s->nr->vr, s->nr->va, |
nr | 1276 | net/netrom/af_netrom.c | s->nr->t1timer / PR_SLOWHZ, |
nr | 1277 | net/netrom/af_netrom.c | s->nr->t1 / PR_SLOWHZ, |
nr | 1278 | net/netrom/af_netrom.c | s->nr->t2timer / PR_SLOWHZ, |
nr | 1279 | net/netrom/af_netrom.c | s->nr->t2 / PR_SLOWHZ, |
nr | 1280 | net/netrom/af_netrom.c | s->nr->n2count, s->nr->n2, |
nr | 1281 | net/netrom/af_netrom.c | s->nr->rtt / PR_SLOWHZ, |
nr | 62 | net/netrom/nr_in.c | sk->nr->your_index = skb->data[2]; |
nr | 63 | net/netrom/nr_in.c | sk->nr->your_id = skb->data[3]; |
nr | 64 | net/netrom/nr_in.c | sk->nr->t1timer = 0; |
nr | 65 | net/netrom/nr_in.c | sk->nr->t2timer = 0; |
nr | 66 | net/netrom/nr_in.c | sk->nr->t4timer = 0; |
nr | 67 | net/netrom/nr_in.c | sk->nr->vs = 0; |
nr | 68 | net/netrom/nr_in.c | sk->nr->va = 0; |
nr | 69 | net/netrom/nr_in.c | sk->nr->vr = 0; |
nr | 70 | net/netrom/nr_in.c | sk->nr->vl = 0; |
nr | 71 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_3; |
nr | 73 | net/netrom/nr_in.c | sk->nr->n2count = 0; |
nr | 81 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_0; |
nr | 110 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_0; |
nr | 135 | net/netrom/nr_in.c | unsigned short nr, ns; |
nr | 138 | net/netrom/nr_in.c | nr = skb->data[3]; |
nr | 145 | net/netrom/nr_in.c | sk->nr->condition = 0x00; |
nr | 146 | net/netrom/nr_in.c | sk->nr->t1timer = 0; |
nr | 147 | net/netrom/nr_in.c | sk->nr->t2timer = 0; |
nr | 148 | net/netrom/nr_in.c | sk->nr->t4timer = 0; |
nr | 149 | net/netrom/nr_in.c | sk->nr->vs = 0; |
nr | 150 | net/netrom/nr_in.c | sk->nr->va = 0; |
nr | 151 | net/netrom/nr_in.c | sk->nr->vr = 0; |
nr | 152 | net/netrom/nr_in.c | sk->nr->vl = 0; |
nr | 158 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_0; |
nr | 168 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_0; |
nr | 179 | net/netrom/nr_in.c | sk->nr->condition |= PEER_RX_BUSY_CONDITION; |
nr | 180 | net/netrom/nr_in.c | sk->nr->t4timer = nr_default.busy_delay; |
nr | 182 | net/netrom/nr_in.c | sk->nr->condition &= ~PEER_RX_BUSY_CONDITION; |
nr | 183 | net/netrom/nr_in.c | sk->nr->t4timer = 0; |
nr | 185 | net/netrom/nr_in.c | if (!nr_validate_nr(sk, nr)) { |
nr | 187 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_1; |
nr | 190 | net/netrom/nr_in.c | if (sk->nr->condition & PEER_RX_BUSY_CONDITION) { |
nr | 191 | net/netrom/nr_in.c | nr_frames_acked(sk, nr); |
nr | 193 | net/netrom/nr_in.c | nr_check_iframes_acked(sk, nr); |
nr | 200 | net/netrom/nr_in.c | sk->nr->condition |= PEER_RX_BUSY_CONDITION; |
nr | 201 | net/netrom/nr_in.c | sk->nr->t4timer = nr_default.busy_delay; |
nr | 203 | net/netrom/nr_in.c | sk->nr->condition &= ~PEER_RX_BUSY_CONDITION; |
nr | 204 | net/netrom/nr_in.c | sk->nr->t4timer = 0; |
nr | 206 | net/netrom/nr_in.c | if (nr_validate_nr(sk, nr)) { |
nr | 207 | net/netrom/nr_in.c | nr_frames_acked(sk, nr); |
nr | 211 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_1; |
nr | 220 | net/netrom/nr_in.c | sk->nr->condition |= PEER_RX_BUSY_CONDITION; |
nr | 221 | net/netrom/nr_in.c | sk->nr->t4timer = nr_default.busy_delay; |
nr | 223 | net/netrom/nr_in.c | sk->nr->condition &= ~PEER_RX_BUSY_CONDITION; |
nr | 224 | net/netrom/nr_in.c | sk->nr->t4timer = 0; |
nr | 226 | net/netrom/nr_in.c | if (!nr_validate_nr(sk, nr)) { |
nr | 228 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_1; |
nr | 231 | net/netrom/nr_in.c | if (sk->nr->condition & PEER_RX_BUSY_CONDITION) { |
nr | 232 | net/netrom/nr_in.c | nr_frames_acked(sk, nr); |
nr | 234 | net/netrom/nr_in.c | nr_check_iframes_acked(sk, nr); |
nr | 237 | net/netrom/nr_in.c | skb_queue_head(&sk->nr->reseq_queue, skb); |
nr | 238 | net/netrom/nr_in.c | if (sk->nr->condition & OWN_RX_BUSY_CONDITION) |
nr | 242 | net/netrom/nr_in.c | save_vr = sk->nr->vr; |
nr | 243 | net/netrom/nr_in.c | while ((skbn = skb_dequeue(&sk->nr->reseq_queue)) != NULL) { |
nr | 245 | net/netrom/nr_in.c | if (ns == sk->nr->vr) { |
nr | 247 | net/netrom/nr_in.c | sk->nr->vr = (sk->nr->vr + 1) % NR_MODULUS; |
nr | 249 | net/netrom/nr_in.c | sk->nr->condition |= OWN_RX_BUSY_CONDITION; |
nr | 260 | net/netrom/nr_in.c | skb_queue_tail(&sk->nr->reseq_queue, skbn); |
nr | 262 | net/netrom/nr_in.c | } while (save_vr != sk->nr->vr); |
nr | 266 | net/netrom/nr_in.c | if (((sk->nr->vl + sk->window) % NR_MODULUS) == sk->nr->vr) { |
nr | 269 | net/netrom/nr_in.c | if (!(sk->nr->condition & ACK_PENDING_CONDITION)) { |
nr | 270 | net/netrom/nr_in.c | sk->nr->t2timer = sk->nr->t2; |
nr | 271 | net/netrom/nr_in.c | sk->nr->condition |= ACK_PENDING_CONDITION; |
nr | 288 | net/netrom/nr_in.c | if (sk->nr->state != NR_STATE_1 && sk->nr->state != NR_STATE_2 && |
nr | 289 | net/netrom/nr_in.c | sk->nr->state != NR_STATE_3) { |
nr | 290 | net/netrom/nr_in.c | printk("nr_process_rx_frame: frame received - state: %d\n", sk->nr->state); |
nr | 298 | net/netrom/nr_in.c | switch (sk->nr->state) |
nr | 47 | net/netrom/nr_out.c | if (sk->nr->state == NR_STATE_3) |
nr | 62 | net/netrom/nr_out.c | skb->data[2] = sk->nr->vs; |
nr | 63 | net/netrom/nr_out.c | skb->data[3] = sk->nr->vr; |
nr | 72 | net/netrom/nr_out.c | if ((skb = skb_peek(&sk->nr->ack_queue)) == NULL) |
nr | 80 | net/netrom/nr_out.c | sk->nr->condition &= ~ACK_PENDING_CONDITION; |
nr | 81 | net/netrom/nr_out.c | sk->nr->vl = sk->nr->vr; |
nr | 82 | net/netrom/nr_out.c | sk->nr->t1timer = 0; |
nr | 93 | net/netrom/nr_out.c | start = (skb_peek(&sk->nr->ack_queue) == NULL) ? sk->nr->va : sk->nr->vs; |
nr | 94 | net/netrom/nr_out.c | end = (sk->nr->va + sk->window) % NR_MODULUS; |
nr | 96 | net/netrom/nr_out.c | if (!(sk->nr->condition & PEER_RX_BUSY_CONDITION) && |
nr | 100 | net/netrom/nr_out.c | sk->nr->vs = start; |
nr | 117 | net/netrom/nr_out.c | next = (sk->nr->vs + 1) % NR_MODULUS; |
nr | 125 | net/netrom/nr_out.c | sk->nr->vs = next; |
nr | 130 | net/netrom/nr_out.c | skb_queue_tail(&sk->nr->ack_queue, skb); |
nr | 134 | net/netrom/nr_out.c | sk->nr->vl = sk->nr->vr; |
nr | 135 | net/netrom/nr_out.c | sk->nr->condition &= ~ACK_PENDING_CONDITION; |
nr | 137 | net/netrom/nr_out.c | if (sk->nr->t1timer == 0) { |
nr | 138 | net/netrom/nr_out.c | sk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk); |
nr | 154 | net/netrom/nr_out.c | memcpy(dptr, &sk->nr->source_addr, sizeof(ax25_address)); |
nr | 160 | net/netrom/nr_out.c | memcpy(dptr, &sk->nr->dest_addr, sizeof(ax25_address)); |
nr | 193 | net/netrom/nr_out.c | sk->nr->condition = 0x00; |
nr | 194 | net/netrom/nr_out.c | sk->nr->n2count = 0; |
nr | 198 | net/netrom/nr_out.c | sk->nr->t2timer = 0; |
nr | 199 | net/netrom/nr_out.c | sk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk); |
nr | 209 | net/netrom/nr_out.c | if (sk->nr->condition & OWN_RX_BUSY_CONDITION) { |
nr | 212 | net/netrom/nr_out.c | if (skb_peek(&sk->nr->reseq_queue) != NULL) { |
nr | 219 | net/netrom/nr_out.c | sk->nr->vl = sk->nr->vr; |
nr | 220 | net/netrom/nr_out.c | sk->nr->condition &= ~ACK_PENDING_CONDITION; |
nr | 223 | net/netrom/nr_out.c | void nr_check_iframes_acked(struct sock *sk, unsigned short nr) |
nr | 225 | net/netrom/nr_out.c | if (sk->nr->vs == nr) { |
nr | 226 | net/netrom/nr_out.c | nr_frames_acked(sk, nr); |
nr | 229 | net/netrom/nr_out.c | sk->nr->t1timer = 0; |
nr | 230 | net/netrom/nr_out.c | sk->nr->n2count = 0; |
nr | 232 | net/netrom/nr_out.c | if (sk->nr->va != nr) { |
nr | 233 | net/netrom/nr_out.c | nr_frames_acked(sk, nr); |
nr | 235 | net/netrom/nr_out.c | sk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk); |
nr | 64 | net/netrom/nr_route.c | static int nr_add_node(ax25_address *nr, char *mnemonic, ax25_address *ax25, |
nr | 74 | net/netrom/nr_route.c | if (ax25cmp(nr, &nr_node->callsign) == 0) |
nr | 118 | 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 | 74 | net/netrom/nr_subr.c | void nr_frames_acked(struct sock *sk, unsigned short nr) |
nr | 81 | net/netrom/nr_subr.c | if (sk->nr->va != nr) { |
nr | 82 | net/netrom/nr_subr.c | while (skb_peek(&sk->nr->ack_queue) != NULL && sk->nr->va != nr) { |
nr | 83 | net/netrom/nr_subr.c | skb = skb_dequeue(&sk->nr->ack_queue); |
nr | 87 | net/netrom/nr_subr.c | sk->nr->va = (sk->nr->va + 1) % NR_MODULUS; |
nr | 101 | net/netrom/nr_subr.c | while ((skb = skb_dequeue(&sk->nr->ack_queue)) != NULL) { |
nr | 114 | net/netrom/nr_subr.c | int nr_validate_nr(struct sock *sk, unsigned short nr) |
nr | 116 | net/netrom/nr_subr.c | unsigned short vc = sk->nr->va; |
nr | 118 | net/netrom/nr_subr.c | while (vc != sk->nr->vs) { |
nr | 119 | net/netrom/nr_subr.c | if (nr == vc) return 1; |
nr | 123 | net/netrom/nr_subr.c | if (nr == sk->nr->vs) return 1; |
nr | 133 | net/netrom/nr_subr.c | unsigned short vc = sk->nr->vl; |
nr | 134 | net/netrom/nr_subr.c | unsigned short vt = (sk->nr->vl + sk->window) % NR_MODULUS; |
nr | 163 | net/netrom/nr_subr.c | len += (sk->nr->bpqext) ? 2 : 1; |
nr | 187 | net/netrom/nr_subr.c | timeout = (sk->nr->rtt / PR_SLOWHZ) * 2; |
nr | 188 | net/netrom/nr_subr.c | *dptr++ = sk->nr->my_index; |
nr | 189 | net/netrom/nr_subr.c | *dptr++ = sk->nr->my_id; |
nr | 194 | net/netrom/nr_subr.c | memcpy(dptr, &sk->nr->user_addr, sizeof(ax25_address)); |
nr | 199 | net/netrom/nr_subr.c | memcpy(dptr, &sk->nr->source_addr, sizeof(ax25_address)); |
nr | 209 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_index; |
nr | 210 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_id; |
nr | 211 | net/netrom/nr_subr.c | *dptr++ = sk->nr->my_index; |
nr | 212 | net/netrom/nr_subr.c | *dptr++ = sk->nr->my_id; |
nr | 215 | net/netrom/nr_subr.c | if (sk->nr->bpqext) *dptr++ = nr_default.ttl; |
nr | 220 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_index; |
nr | 221 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_id; |
nr | 228 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_index; |
nr | 229 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_id; |
nr | 231 | net/netrom/nr_subr.c | *dptr++ = sk->nr->vr; |
nr | 295 | net/netrom/nr_subr.c | for (t = 2, n = 0; n < sk->nr->n2count; n++) |
nr | 298 | net/netrom/nr_subr.c | return t * sk->nr->rtt; |
nr | 306 | net/netrom/nr_subr.c | if (sk->nr->t1timer > 0 && sk->nr->n2count == 0) |
nr | 307 | net/netrom/nr_subr.c | sk->nr->rtt = (9 * sk->nr->rtt + sk->nr->t1 - sk->nr->t1timer) / 10; |
nr | 310 | net/netrom/nr_subr.c | if (sk->nr->rtt < 1 * PR_SLOWHZ) |
nr | 311 | 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); |