tag | line | file | source code |
nr | 21 | arch/alpha/boot/main.c | extern unsigned long switch_to_osf_pal(unsigned long nr, |
nr | 119 | arch/alpha/kernel/process.c | void copy_thread(int nr, unsigned long clone_flags, unsigned long usp, |
nr | 19 | arch/alpha/kernel/signal.c | #define _S(nr) (1<<((nr)-1)) |
nr | 113 | arch/alpha/mm/init.c | unsigned long pfn, nr; |
nr | 117 | arch/alpha/mm/init.c | nr = cluster->numpages; |
nr | 123 | arch/alpha/mm/init.c | while (nr--) |
nr | 291 | arch/i386/kernel/process.c | void copy_thread(int nr, unsigned long clone_flags, unsigned long esp, |
nr | 305 | arch/i386/kernel/process.c | p->tss.tr = _TSS(nr); |
nr | 314 | arch/i386/kernel/process.c | p->tss.ldt = _LDT(nr); |
nr | 320 | arch/i386/kernel/process.c | set_tss_desc(gdt+(nr<<1)+FIRST_TSS_ENTRY,&(p->tss)); |
nr | 322 | arch/i386/kernel/process.c | set_ldt_desc(gdt+(nr<<1)+FIRST_LDT_ENTRY,p->ldt, 512); |
nr | 324 | arch/i386/kernel/process.c | set_ldt_desc(gdt+(nr<<1)+FIRST_LDT_ENTRY,&default_ldt, 1); |
nr | 207 | arch/i386/kernel/setup.c | static const char * i486model(unsigned int nr) |
nr | 212 | arch/i386/kernel/setup.c | if (nr < sizeof(model)/sizeof(char *)) |
nr | 213 | arch/i386/kernel/setup.c | return model[nr]; |
nr | 217 | arch/i386/kernel/setup.c | static const char * i586model(unsigned int nr) |
nr | 222 | arch/i386/kernel/setup.c | if (nr < sizeof(model)/sizeof(char *)) |
nr | 223 | arch/i386/kernel/setup.c | return model[nr]; |
nr | 227 | arch/i386/kernel/setup.c | static const char * i686model(unsigned int nr) |
nr | 232 | arch/i386/kernel/setup.c | if (nr < sizeof(model)/sizeof(char *)) |
nr | 233 | arch/i386/kernel/setup.c | return model[nr]; |
nr | 20 | 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 | 158 | arch/m68k/atari/ataints.c | #define IRQ_NAME(nr) atari_slow_irq_##nr##_handler(void) |
nr | 605 | arch/m68k/kernel/console.c | int nr) |
nr | 614 | arch/m68k/kernel/console.c | video_mem_start + (t + nr) * cols, |
nr | 615 | arch/m68k/kernel/console.c | (b - t - nr) * cols * 2); |
nr | 617 | arch/m68k/kernel/console.c | p = video_mem_start + (b - nr) * cols; |
nr | 618 | arch/m68k/kernel/console.c | for (i = nr * cols; i > 0; i--) |
nr | 628 | arch/m68k/kernel/console.c | sw->con_scroll(vc_cons[currcons].d, t, b, SM_UP, nr); |
nr | 635 | arch/m68k/kernel/console.c | int nr) |
nr | 643 | arch/m68k/kernel/console.c | memmove (video_mem_start + (t + nr) * cols, |
nr | 645 | arch/m68k/kernel/console.c | (b - t - nr) * cols * 2); |
nr | 648 | arch/m68k/kernel/console.c | for (i = nr * cols; i > 0; i--) |
nr | 658 | arch/m68k/kernel/console.c | sw->con_scroll(vc_cons[currcons].d, t, b, SM_DOWN, nr); |
nr | 1256 | arch/m68k/kernel/console.c | static void csi_at(int currcons, unsigned int nr) |
nr | 1261 | arch/m68k/kernel/console.c | if (nr > cols - x) |
nr | 1262 | arch/m68k/kernel/console.c | nr = cols - x; |
nr | 1263 | arch/m68k/kernel/console.c | else if (!nr) |
nr | 1264 | arch/m68k/kernel/console.c | nr = 1; |
nr | 1266 | arch/m68k/kernel/console.c | p = pos + cols - x - nr; |
nr | 1268 | arch/m68k/kernel/console.c | p[nr] = *p; |
nr | 1269 | arch/m68k/kernel/console.c | for (i = 0; i < nr; i++) |
nr | 1276 | arch/m68k/kernel/console.c | sw->con_bmove (vc_cons[currcons].d, y, x, y, x + nr, |
nr | 1277 | arch/m68k/kernel/console.c | 1, cols - x - nr); |
nr | 1278 | arch/m68k/kernel/console.c | while (nr--) |
nr | 1280 | arch/m68k/kernel/console.c | y, x + nr); |
nr | 1283 | arch/m68k/kernel/console.c | static void csi_L(int currcons, unsigned int nr) |
nr | 1285 | arch/m68k/kernel/console.c | if (nr > rows) |
nr | 1286 | arch/m68k/kernel/console.c | nr = rows; |
nr | 1287 | arch/m68k/kernel/console.c | else if (!nr) |
nr | 1288 | arch/m68k/kernel/console.c | nr = 1; |
nr | 1289 | arch/m68k/kernel/console.c | scrdown (currcons, y, bottom, nr); |
nr | 1293 | arch/m68k/kernel/console.c | static void csi_P(int currcons, unsigned int nr) |
nr | 1298 | arch/m68k/kernel/console.c | if (nr > cols - x) |
nr | 1299 | arch/m68k/kernel/console.c | nr = cols - x; |
nr | 1300 | arch/m68k/kernel/console.c | else if (!nr) |
nr | 1301 | arch/m68k/kernel/console.c | nr = 1; |
nr | 1304 | arch/m68k/kernel/console.c | end = pos + cols - x - nr; |
nr | 1306 | arch/m68k/kernel/console.c | *p = p[nr], p++; |
nr | 1307 | arch/m68k/kernel/console.c | for (i = 0; i < nr; i++) |
nr | 1314 | arch/m68k/kernel/console.c | sw->con_bmove (vc_cons[currcons].d, y, x + nr, y, x, |
nr | 1315 | arch/m68k/kernel/console.c | 1, cols - x - nr); |
nr | 1317 | arch/m68k/kernel/console.c | while (nr--) |
nr | 1319 | arch/m68k/kernel/console.c | y, cols - 1 - nr); |
nr | 1322 | arch/m68k/kernel/console.c | static void csi_M(int currcons, unsigned int nr) |
nr | 1324 | arch/m68k/kernel/console.c | if (nr > rows) |
nr | 1325 | arch/m68k/kernel/console.c | nr = rows; |
nr | 1326 | arch/m68k/kernel/console.c | else if (!nr) |
nr | 1327 | arch/m68k/kernel/console.c | nr=1; |
nr | 1328 | arch/m68k/kernel/console.c | scrup (currcons, y, bottom, nr); |
nr | 106 | arch/m68k/kernel/process.c | void copy_thread(int nr, unsigned long clone_flags, unsigned long usp, |
nr | 31 | arch/m68k/kernel/signal.c | #define _S(nr) (1<<((nr)-1)) |
nr | 882 | arch/m68k/kernel/traps.c | void die_if_kernel (char *str, struct pt_regs *fp, int nr) |
nr | 888 | arch/m68k/kernel/traps.c | printk("%s: %08x\n",str,nr); |
nr | 118 | arch/mips/kernel/process.c | void copy_thread(int nr, unsigned long clone_flags, unsigned long usp, |
nr | 19 | arch/mips/kernel/signal.c | #define _S(nr) (1<<((nr)-1)) |
nr | 98 | arch/ppc/kernel/process.c | void copy_thread(int nr, unsigned long clone_flags, unsigned long usp, |
nr | 113 | arch/ppc/kernel/process.c | segs[i].vsid = i | (nr << 4); |
nr | 17 | arch/ppc/kernel/signal.c | #define _S(nr) (1<<((nr)-1)) |
nr | 224 | arch/sparc/kernel/process.c | void copy_thread(int nr, unsigned long clone_flags, unsigned long sp, |
nr | 20 | arch/sparc/kernel/signal.c | #define _S(nr) (1<<((nr)-1)) |
nr | 313 | arch/sparc/kernel/sys_sunos.c | #define _S(nr) (1<<((nr)-1)) |
nr | 885 | arch/sparc/kernel/sys_sunos.c | struct select_table_entry * entry = p->entry + p->nr; |
nr | 887 | arch/sparc/kernel/sys_sunos.c | while (p->nr > 0) { |
nr | 888 | arch/sparc/kernel/sys_sunos.c | p->nr--; |
nr | 946 | arch/sparc/kernel/sys_sunos.c | wait_table.nr = 0; |
nr | 244 | drivers/block/amiflop.c | static void motor_on_callback(unsigned long nr) |
nr | 246 | drivers/block/amiflop.c | nr &= 3; |
nr | 249 | drivers/block/amiflop.c | unit[nr].motor = 1; |
nr | 257 | drivers/block/amiflop.c | static int motor_on(int nr) |
nr | 262 | drivers/block/amiflop.c | nr &= 3; |
nr | 265 | drivers/block/amiflop.c | del_timer(motor_off_timer + nr); |
nr | 267 | drivers/block/amiflop.c | if (!unit[nr].motor) { |
nr | 269 | drivers/block/amiflop.c | motor_on_timer.data = nr; |
nr | 276 | drivers/block/amiflop.c | if (unit[nr].track % 2 != 0) |
nr | 280 | drivers/block/amiflop.c | prb &= ~SELMASK(nr); |
nr | 282 | drivers/block/amiflop.c | selected = nr; |
nr | 284 | drivers/block/amiflop.c | while (!unit[nr].motor) |
nr | 291 | drivers/block/amiflop.c | fd_motor_off (nr); |
nr | 298 | drivers/block/amiflop.c | static void floppy_off (unsigned int nr) |
nr | 300 | drivers/block/amiflop.c | nr&=3; |
nr | 301 | drivers/block/amiflop.c | del_timer(motor_off_timer+nr); |
nr | 302 | drivers/block/amiflop.c | motor_off_timer[nr].expires = jiffies + 3*HZ; |
nr | 303 | drivers/block/amiflop.c | add_timer(motor_off_timer+nr); |
nr | 1205 | drivers/block/amiflop.c | static void flush_track_callback(unsigned long nr) |
nr | 1207 | drivers/block/amiflop.c | nr&=3; |
nr | 1209 | drivers/block/amiflop.c | (*unit[nr].dtype->write_fkt)(nr, (unsigned long)raw_buf, trackdata, savedtrack); |
nr | 1210 | drivers/block/amiflop.c | if (!raw_write(nr, savedtrack, raw_buf, unit[nr].type->write_size)) { |
nr | 1217 | drivers/block/amiflop.c | static int non_int_flush_track (unsigned long nr) |
nr | 1221 | drivers/block/amiflop.c | nr&=3; |
nr | 1228 | drivers/block/amiflop.c | (*unit[nr].dtype->write_fkt)(nr, (unsigned long)raw_buf, trackdata, savedtrack); |
nr | 1229 | drivers/block/amiflop.c | if (!raw_write(nr, savedtrack, raw_buf, unit[nr].type->write_size)) { |
nr | 378 | drivers/block/ataflop.c | static void floppy_off( unsigned int nr); |
nr | 1325 | drivers/block/ataflop.c | static void floppy_off( unsigned int nr) {} |
nr | 864 | drivers/block/floppy.c | static void motor_off_callback(unsigned long nr) |
nr | 866 | drivers/block/floppy.c | unsigned char mask = ~(0x10 << UNIT(nr)); |
nr | 868 | drivers/block/floppy.c | set_dor(FDC(nr), mask, 0); |
nr | 649 | drivers/block/genhd.c | int nr=0; |
nr | 664 | drivers/block/genhd.c | nr += p->nr_real; |
nr | 433 | drivers/block/ll_rw_blk.c | void ll_rw_block(int rw, int nr, struct buffer_head * bh[]) |
nr | 443 | drivers/block/ll_rw_blk.c | if (--nr <= 0) |
nr | 466 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
nr | 492 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
nr | 502 | drivers/block/ll_rw_blk.c | for (i = 0; i < nr; i++) { |
nr | 1103 | drivers/cdrom/cm206.c | int probe_irq(int nr) { |
nr | 1112 | drivers/cdrom/cm206.c | if (nr && irq!=nr && irq>0) return 0; /* wrong interrupt happened */ |
nr | 1207 | drivers/char/console.c | static void csi_at(int currcons, unsigned int nr) |
nr | 1209 | drivers/char/console.c | if (nr > video_num_columns) |
nr | 1210 | drivers/char/console.c | nr = video_num_columns; |
nr | 1211 | drivers/char/console.c | else if (!nr) |
nr | 1212 | drivers/char/console.c | nr = 1; |
nr | 1213 | drivers/char/console.c | while (nr--) |
nr | 1217 | drivers/char/console.c | static void csi_L(int currcons, unsigned int nr) |
nr | 1219 | drivers/char/console.c | if (nr > video_num_lines) |
nr | 1220 | drivers/char/console.c | nr = video_num_lines; |
nr | 1221 | drivers/char/console.c | else if (!nr) |
nr | 1222 | drivers/char/console.c | nr = 1; |
nr | 1223 | drivers/char/console.c | while (nr--) |
nr | 1227 | drivers/char/console.c | static void csi_P(int currcons, unsigned int nr) |
nr | 1229 | drivers/char/console.c | if (nr > video_num_columns) |
nr | 1230 | drivers/char/console.c | nr = video_num_columns; |
nr | 1231 | drivers/char/console.c | else if (!nr) |
nr | 1232 | drivers/char/console.c | nr = 1; |
nr | 1233 | drivers/char/console.c | while (nr--) |
nr | 1237 | drivers/char/console.c | static void csi_M(int currcons, unsigned int nr) |
nr | 1239 | drivers/char/console.c | if (nr > video_num_lines) |
nr | 1240 | drivers/char/console.c | nr = video_num_lines; |
nr | 1241 | drivers/char/console.c | else if (!nr) |
nr | 1242 | drivers/char/console.c | nr=1; |
nr | 1243 | drivers/char/console.c | while (nr--) |
nr | 36 | drivers/char/ftape/kernel-interface.h | #define _S(nr) (1<<((nr)-1)) |
nr | 78 | drivers/char/kbd_kern.h | extern inline void set_console(int nr) |
nr | 80 | drivers/char/kbd_kern.h | want_console = nr; |
nr | 736 | drivers/char/n_tty.c | unsigned int *nr) |
nr | 741 | drivers/char/n_tty.c | n = MIN(*nr, MIN(tty->read_cnt, N_TTY_BUF_SIZE - tty->read_tail)); |
nr | 748 | drivers/char/n_tty.c | *nr -= n; |
nr | 752 | drivers/char/n_tty.c | unsigned char *buf, unsigned int nr) |
nr | 853 | drivers/char/n_tty.c | nr--; |
nr | 874 | drivers/char/n_tty.c | if (--nr) |
nr | 883 | drivers/char/n_tty.c | nr--; |
nr | 889 | drivers/char/n_tty.c | copy_from_read_buf(tty, &b, &nr); |
nr | 890 | drivers/char/n_tty.c | copy_from_read_buf(tty, &b, &nr); |
nr | 901 | drivers/char/n_tty.c | if (b - buf >= minimum || !nr) |
nr | 914 | drivers/char/n_tty.c | if (size && nr) |
nr | 924 | drivers/char/n_tty.c | const unsigned char * buf, unsigned int nr) |
nr | 950 | drivers/char/n_tty.c | while (nr > 0) { |
nr | 954 | drivers/char/n_tty.c | b++; nr--; |
nr | 959 | drivers/char/n_tty.c | c = tty->driver.write(tty, 1, b, nr); |
nr | 961 | drivers/char/n_tty.c | nr -= c; |
nr | 963 | drivers/char/n_tty.c | if (!nr) |
nr | 194 | drivers/char/tty_ioctl.c | int nr, head, tail; |
nr | 200 | drivers/char/tty_ioctl.c | nr = (head - tail) & (N_TTY_BUF_SIZE-1); |
nr | 205 | drivers/char/tty_ioctl.c | nr--; |
nr | 208 | drivers/char/tty_ioctl.c | return nr; |
nr | 1416 | drivers/isdn/isdn_net.c | char nr[31]; |
nr | 1423 | drivers/isdn/isdn_net.c | nr[0] = '0'; |
nr | 1424 | drivers/isdn/isdn_net.c | strncpy(&nr[1], num, 30); |
nr | 1427 | drivers/isdn/isdn_net.c | strncpy(nr, num, 30); |
nr | 1428 | drivers/isdn/isdn_net.c | s = strtok(nr, ","); |
nr | 1451 | drivers/isdn/isdn_net.c | printk(KERN_INFO "isdn_net: call from %s,%d,%d -> %s\n", nr, si1, si2, eaz); |
nr | 1567 | drivers/isdn/isdn_net.c | if (isdn_net_wildmat(nr, n->num)) |
nr | 1613 | drivers/isdn/isdn_net.c | lp->name, nr, eaz); |
nr | 1648 | drivers/isdn/isdn_net.c | printk(KERN_DEBUG "%s: call from %s -> %s accepted\n", lp->name, nr, |
nr | 1666 | drivers/isdn/isdn_net.c | strcpy(dev->num[idx], nr); |
nr | 1698 | drivers/isdn/isdn_net.c | printk(KERN_INFO "isdn_net: call from %s -> %d %s ignored\n", nr, di, eaz); |
nr | 1227 | drivers/isdn/isdn_tty.c | char nr[31]; |
nr | 1233 | drivers/isdn/isdn_tty.c | nr[0] = '0'; |
nr | 1234 | drivers/isdn/isdn_tty.c | strncpy(&nr[1], num, 29); |
nr | 1237 | drivers/isdn/isdn_tty.c | strncpy(nr, num, 30); |
nr | 1238 | drivers/isdn/isdn_tty.c | s = strtok(nr, ","); |
nr | 1291 | drivers/isdn/isdn_tty.c | strcpy(dev->num[idx], nr); |
nr | 1294 | drivers/isdn/isdn_tty.c | printk(KERN_INFO "isdn_tty: call from %s, -> RING on ttyI%d\n", nr, |
nr | 1300 | drivers/isdn/isdn_tty.c | printk(KERN_INFO "isdn_tty: call from %s -> %s %s\n", nr, eaz, |
nr | 85 | drivers/isdn/pcbit/edss1.c | byte nr; |
nr | 280 | drivers/isdn/teles/isdnl2.c | legalnr(struct PStack *st, int nr) |
nr | 286 | drivers/isdn/teles/isdnl2.c | lnr = (nr >= l2->va) ? nr : (nr + l2->extended ? 128 : 8); |
nr | 291 | drivers/isdn/teles/isdnl2.c | setva(struct PStack *st, int nr) |
nr | 295 | drivers/isdn/teles/isdnl2.c | if (l2->va != nr) { |
nr | 296 | drivers/isdn/teles/isdnl2.c | while (l2->va != nr) { |
nr | 650 | drivers/isdn/teles/isdnl2.c | int i, p, seq, nr, wasok; |
nr | 658 | drivers/isdn/teles/isdnl2.c | nr = (ptr[1] >> 1) & 0x7f; |
nr | 662 | drivers/isdn/teles/isdnl2.c | nr = (ptr[0] >> 5) & 0x7; |
nr | 727 | drivers/isdn/teles/isdnl2.c | if (legalnr(st, nr)) |
nr | 728 | drivers/isdn/teles/isdnl2.c | if (nr == st->l2.vs) { |
nr | 729 | drivers/isdn/teles/isdnl2.c | setva(st, nr); |
nr | 739 | drivers/isdn/teles/isdnl2.c | } else if (nr != st->l2.va) { |
nr | 740 | drivers/isdn/teles/isdnl2.c | setva(st, nr); |
nr | 791 | drivers/isdn/teles/isdnl2.c | invoke_retransmission(struct PStack *st, int nr) |
nr | 796 | drivers/isdn/teles/isdnl2.c | if (l2->vs != nr) { |
nr | 797 | drivers/isdn/teles/isdnl2.c | while (l2->vs != nr) { |
nr | 91 | drivers/isdn/teles/q931.c | byte nr; |
nr | 212 | drivers/isdn/teles/q931.c | byte nr; |
nr | 443 | drivers/isdn/teles/q931.c | if (cvlist[i].nr == cause) |
nr | 669 | drivers/isdn/teles/q931.c | byte nr; |
nr | 818 | drivers/isdn/teles/q931.c | if (mtlist[i].nr == buf[3]) |
nr | 862 | drivers/isdn/teles/q931.c | if (*buf == ielist[i].nr) |
nr | 1675 | drivers/net/ppp.c | unsigned int nr) |
nr | 1701 | drivers/net/ppp.c | buf, nr); |
nr | 1727 | drivers/net/ppp.c | indx = verify_area (VERIFY_WRITE, buf, nr); |
nr | 1774 | drivers/net/ppp.c | if (len + 2 > nr) { |
nr | 1780 | drivers/net/ppp.c | "frame\n", nr, len + 2); |
nr | 471 | drivers/scsi/atari_scsi.c | int nr; |
nr | 476 | drivers/scsi/atari_scsi.c | if ((nr = ((long)dst & 3))) { |
nr | 482 | drivers/scsi/atari_scsi.c | nr, (long)dst ); |
nr | 489 | drivers/scsi/atari_scsi.c | for( src = (char *)&tt_scsi_dma.dma_restdata; nr > 0; --nr ) |
nr | 321 | drivers/sound/configure.c | can_select_option (int nr) |
nr | 324 | drivers/sound/configure.c | if (hw_table[nr].conditions) |
nr | 325 | drivers/sound/configure.c | if (!(hw_table[nr].conditions & selected_options)) |
nr | 328 | drivers/sound/configure.c | if (hw_table[nr].exclusive_options) |
nr | 329 | drivers/sound/configure.c | if (hw_table[nr].exclusive_options & selected_options) |
nr | 332 | drivers/sound/configure.c | if (DISABLED_OPTIONS & B (nr)) |
nr | 59 | fs/binfmt_aout.c | #define DUMP_WRITE(addr,nr) \ |
nr | 60 | fs/binfmt_aout.c | while (file.f_op->write(inode,&file,(char *)(addr),(nr)) != (nr)) goto close_coredump |
nr | 820 | fs/binfmt_elf.c | static int dump_write(struct file *file, const void *addr, int nr) |
nr | 822 | fs/binfmt_elf.c | return file->f_op->write(file->f_inode, file, addr, nr) == nr; |
nr | 897 | fs/binfmt_elf.c | #define DUMP_WRITE(addr, nr) \ |
nr | 898 | fs/binfmt_elf.c | do { if (!dump_write(file, (addr), (nr))) return 0; } while(0) |
nr | 922 | fs/binfmt_elf.c | #define DUMP_WRITE(addr, nr) \ |
nr | 923 | fs/binfmt_elf.c | if (!dump_write(&file, (addr), (nr))) \ |
nr | 1142 | fs/buffer.c | int block, nr; |
nr | 1160 | fs/buffer.c | nr = 0; |
nr | 1205 | fs/buffer.c | arr[nr++] = next; |
nr | 1209 | fs/buffer.c | if (nr) { |
nr | 1210 | fs/buffer.c | ll_rw_block(rw, nr, arr); |
nr | 1296 | fs/buffer.c | int *p, nr[PAGE_SIZE/512]; |
nr | 1306 | fs/buffer.c | p = nr; |
nr | 1315 | fs/buffer.c | brw_page(READ, address, inode->i_dev, nr, inode->i_sb->s_blocksize, 1); |
nr | 172 | fs/ext/inode.c | #define inode_bmap(inode,nr) ((inode)->u.ext_i.i_data[(nr)]) |
nr | 174 | fs/ext/inode.c | static inline int block_bmap(struct buffer_head * bh, int nr) |
nr | 180 | fs/ext/inode.c | tmp = ((unsigned long *) bh->b_data)[nr]; |
nr | 229 | fs/ext/inode.c | static struct buffer_head * inode_getblk(struct inode * inode, int nr, int create) |
nr | 235 | fs/ext/inode.c | p = inode->u.ext_i.i_data + nr; |
nr | 263 | fs/ext/inode.c | struct buffer_head * bh, int nr, int create) |
nr | 279 | fs/ext/inode.c | p = nr + (unsigned long *) bh->b_data; |
nr | 47 | fs/ext2/inode.c | #define inode_bmap(inode, nr) ((inode)->u.ext2_i.i_data[(nr)]) |
nr | 49 | fs/ext2/inode.c | static inline int block_bmap (struct buffer_head * bh, int nr) |
nr | 55 | fs/ext2/inode.c | tmp = ((u32 *) bh->b_data)[nr]; |
nr | 188 | fs/ext2/inode.c | static struct buffer_head * inode_getblk (struct inode * inode, int nr, |
nr | 196 | fs/ext2/inode.c | p = inode->u.ext2_i.i_data + nr; |
nr | 218 | fs/ext2/inode.c | for (tmp = nr - 1; tmp >= 0; tmp--) { |
nr | 254 | fs/ext2/inode.c | struct buffer_head * bh, int nr, |
nr | 273 | fs/ext2/inode.c | p = (u32 *) bh->b_data + nr; |
nr | 295 | fs/ext2/inode.c | for (tmp = nr - 1; tmp >= 0; tmp--) { |
nr | 331 | fs/ext2/inode.c | int nr, |
nr | 343 | fs/ext2/inode.c | if((nr & ((PAGE_SIZE >> EXT2_BLOCK_SIZE_BITS(inode->i_sb)) - 1)) != 0) |
nr | 345 | fs/ext2/inode.c | if(nr + 3 > EXT2_ADDR_PER_BLOCK(inode->i_sb)) goto out; |
nr | 348 | fs/ext2/inode.c | p = (u32 *) bh->b_data + nr + i; |
nr | 358 | fs/ext2/inode.c | p = (u32 *) bh->b_data + nr; |
nr | 21 | fs/fat/cache.c | int fat_access(struct super_block *sb,int nr,int new_value) |
nr | 27 | fs/fat/cache.c | if ((unsigned) (nr-2) >= MSDOS_SB(sb)->clusters) return 0; |
nr | 28 | fs/fat/cache.c | if (MSDOS_SB(sb)->fat_bits == 16) first = last = nr*2; |
nr | 30 | fs/fat/cache.c | first = nr*3/2; |
nr | 58 | fs/fat/cache.c | if (nr & 1) next = ((*p_first >> 4) | (*p_last << 4)) & 0xfff; |
nr | 67 | fs/fat/cache.c | if (nr & 1) { |
nr | 228 | fs/fat/cache.c | int nr,count; |
nr | 230 | fs/fat/cache.c | if (!(nr = MSDOS_I(inode)->i_start)) return 0; |
nr | 231 | fs/fat/cache.c | if (!cluster) return nr; |
nr | 233 | fs/fat/cache.c | for (cache_lookup(inode,cluster,&count,&nr); count < cluster; |
nr | 235 | fs/fat/cache.c | if ((nr = fat_access(inode->i_sb,nr,-1)) == -1) return 0; |
nr | 236 | fs/fat/cache.c | if (!nr) return 0; |
nr | 238 | fs/fat/cache.c | cache_add(inode,cluster,nr); |
nr | 239 | fs/fat/cache.c | return nr; |
nr | 266 | fs/fat/cache.c | int nr,last; |
nr | 268 | fs/fat/cache.c | if (!(nr = MSDOS_I(inode)->i_start)) return 0; |
nr | 271 | fs/fat/cache.c | last = nr; |
nr | 272 | fs/fat/cache.c | if ((nr = fat_access(inode->i_sb,nr,-1)) == -1) return 0; |
nr | 273 | fs/fat/cache.c | if (!nr) { |
nr | 286 | fs/fat/cache.c | while (nr != -1) { |
nr | 287 | fs/fat/cache.c | if (!(nr = fat_access(inode->i_sb,nr,0))) { |
nr | 329 | fs/fat/inode.c | int free,nr; |
nr | 337 | fs/fat/inode.c | for (nr = 2; nr < MSDOS_SB(sb)->clusters+2; nr++) |
nr | 338 | fs/fat/inode.c | if (!fat_access(sb,nr,-1)) free++; |
nr | 384 | fs/fat/inode.c | int nr; |
nr | 434 | fs/fat/inode.c | if ((nr = CF_LE_W(raw_entry->start)) != 0) |
nr | 435 | fs/fat/inode.c | while (nr != -1) { |
nr | 438 | fs/fat/inode.c | if (!(nr = fat_access(inode->i_sb,nr,-1))) { |
nr | 119 | fs/fat/misc.c | int count,nr,limit,last,curr,sector,last_sector,file_cluster; |
nr | 127 | fs/fat/misc.c | nr = limit; /* to keep GCC happy */ |
nr | 129 | fs/fat/misc.c | nr = ((count+MSDOS_SB(inode->i_sb)->prev_free) % limit)+2; |
nr | 130 | fs/fat/misc.c | if (fat_access(inode->i_sb,nr,-1) == 0) break; |
nr | 134 | fs/fat/misc.c | printk("free cluster: %d\n",nr); |
nr | 143 | fs/fat/misc.c | fat_access(inode->i_sb,nr,MSDOS_SB(inode->i_sb)->fat_bits == 12 ? |
nr | 149 | fs/fat/misc.c | printk("set to %x\n",fat_access(inode->i_sb,nr,-1)); |
nr | 180 | fs/fat/misc.c | if (last) fat_access(inode->i_sb,last,nr); |
nr | 182 | fs/fat/misc.c | MSDOS_I(inode)->i_start = nr; |
nr | 188 | fs/fat/misc.c | sector = MSDOS_SB(inode->i_sb)->data_start+(nr-2)*cluster_size; |
nr | 207 | fs/fat/misc.c | cache_add(inode,file_cluster,nr); |
nr | 488 | fs/fat/misc.c | int error,curr,prev,nr; |
nr | 498 | fs/fat/misc.c | if (!curr) nr = MSDOS_ROOT_INO; |
nr | 505 | fs/fat/misc.c | if ((error = raw_scan(dir->i_sb,prev,NULL,&curr,&nr,NULL, |
nr | 512 | fs/fat/misc.c | return nr; |
nr | 573 | fs/inode.c | struct inode *__iget(struct super_block * sb, int nr, int crossmntp) |
nr | 582 | fs/inode.c | h = hash(sb->s_dev, nr); |
nr | 585 | fs/inode.c | if (inode->i_dev == sb->s_dev && inode->i_ino == nr) |
nr | 606 | fs/inode.c | inode->i_ino = nr; |
nr | 618 | fs/inode.c | if (inode->i_dev != sb->s_dev || inode->i_ino != nr) { |
nr | 325 | fs/minix/inode.c | #define V1_inode_bmap(inode,nr) (((unsigned short *)(inode)->u.minix_i.u.i1_data)[(nr)]) |
nr | 327 | fs/minix/inode.c | static int V1_block_bmap(struct buffer_head * bh, int nr) |
nr | 333 | fs/minix/inode.c | tmp = ((unsigned short *) bh->b_data)[nr]; |
nr | 372 | fs/minix/inode.c | #define V2_inode_bmap(inode,nr) (((unsigned long *)(inode)->u.minix_i.u.i2_data)[(nr)]) |
nr | 373 | fs/minix/inode.c | static int V2_block_bmap(struct buffer_head * bh, int nr) |
nr | 379 | fs/minix/inode.c | tmp = ((unsigned long *) bh->b_data)[nr]; |
nr | 442 | fs/minix/inode.c | static struct buffer_head * V1_inode_getblk(struct inode * inode, int nr, |
nr | 449 | fs/minix/inode.c | p = inode->u.minix_i.u.i1_data + nr; |
nr | 477 | fs/minix/inode.c | struct buffer_head * bh, int nr, int create) |
nr | 493 | fs/minix/inode.c | p = nr + (unsigned short *) bh->b_data; |
nr | 555 | fs/minix/inode.c | static struct buffer_head * V2_inode_getblk(struct inode * inode, int nr, |
nr | 562 | fs/minix/inode.c | p = (unsigned long *) inode->u.minix_i.u.i2_data + nr; |
nr | 590 | fs/minix/inode.c | struct buffer_head * bh, int nr, int create) |
nr | 606 | fs/minix/inode.c | p = nr + (unsigned long *) bh->b_data; |
nr | 29 | fs/ncpfs/sock.c | #define _S(nr) (1<<((nr)-1)) |
nr | 315 | fs/ncpfs/sock.c | #define _S(nr) (1<<((nr)-1)) |
nr | 402 | fs/ncpfs/sock.c | wait_table.nr = 0; |
nr | 455 | fs/ncpfs/sock.c | else if (wait_table.nr) |
nr | 106 | fs/nfs/rpcsock.c | rpc_sendmsg(struct rpc_sock *rsock, struct iovec *iov, int nr, int len, |
nr | 115 | fs/nfs/rpcsock.c | msg.msg_iovlen = nr; |
nr | 133 | fs/nfs/rpcsock.c | int nr, int len, int flags) |
nr | 142 | fs/nfs/rpcsock.c | msg.msg_iovlen = nr; |
nr | 168 | fs/nfs/rpcsock.c | wait_table.nr = 0; |
nr | 180 | fs/nfs/rpcsock.c | } else if (wait_table.nr) |
nr | 33 | fs/nfs/sock.c | #define _S(nr) (1<<((nr)-1)) |
nr | 555 | fs/proc/root.c | unsigned int nr,pid; |
nr | 558 | fs/proc/root.c | nr = filp->f_pos; |
nr | 559 | fs/proc/root.c | if (nr < FIRST_PROCESS_ENTRY) { |
nr | 563 | fs/proc/root.c | filp->f_pos = nr = FIRST_PROCESS_ENTRY; |
nr | 566 | fs/proc/root.c | for (nr -= FIRST_PROCESS_ENTRY; nr < NR_TASKS; nr++, filp->f_pos++) { |
nr | 567 | fs/proc/root.c | struct task_struct * p = task[nr]; |
nr | 252 | fs/read_write.c | int len, nr; |
nr | 258 | fs/read_write.c | nr = fn(inode, file, base, len); |
nr | 259 | fs/read_write.c | if (nr < 0) { |
nr | 262 | fs/read_write.c | retval = nr; |
nr | 265 | fs/read_write.c | retval += nr; |
nr | 266 | fs/read_write.c | if (nr != len) |
nr | 50 | fs/select.c | struct select_table_entry * entry = p->entry + p->nr; |
nr | 52 | fs/select.c | while (p->nr > 0) { |
nr | 53 | fs/select.c | p->nr--; |
nr | 120 | fs/select.c | wait_table.nr = 0; |
nr | 157 | fs/select.c | static int __get_fd_set(int nr, unsigned int * fs_pointer, fd_set * fdset) |
nr | 170 | fs/select.c | if (nr <= 0) |
nr | 175 | fs/select.c | nr -= 8 * sizeof(unsigned int); |
nr | 180 | fs/select.c | static void __set_fd_set(int nr, unsigned int * fs_pointer, unsigned int * fdset) |
nr | 187 | fs/select.c | if (nr <= 0) |
nr | 192 | fs/select.c | nr -= 8 * sizeof(unsigned int); |
nr | 196 | fs/select.c | #define get_fd_set(nr,fsp,fdp) \ |
nr | 197 | fs/select.c | __get_fd_set(nr, (unsigned int *) (fsp), fdp) |
nr | 199 | fs/select.c | #define set_fd_set(nr,fsp,fdp) \ |
nr | 200 | fs/select.c | __set_fd_set(nr, (unsigned int *) (fsp), (unsigned int *) (fdp)) |
nr | 25 | fs/smbfs/sock.c | #define _S(nr) (1<<((nr)-1)) |
nr | 554 | fs/sysv/inode.c | static inline int inode_bmap(struct super_block * sb, struct inode * inode, int nr) |
nr | 556 | fs/sysv/inode.c | int tmp = inode->u.sysv_i.i_data[nr]; |
nr | 562 | fs/sysv/inode.c | static int block_bmap(struct super_block * sb, struct buffer_head * bh, int nr, int convert) |
nr | 568 | fs/sysv/inode.c | tmp = ((sysv_zone_t *) bh->b_data) [nr]; |
nr | 637 | fs/sysv/inode.c | static struct buffer_head * inode_getblk(struct inode * inode, int nr, int create) |
nr | 645 | fs/sysv/inode.c | p = inode->u.sysv_i.i_data + nr; |
nr | 673 | fs/sysv/inode.c | struct buffer_head * bh, int nr, int create) |
nr | 691 | fs/sysv/inode.c | p = nr + (sysv_zone_t *) bh->b_data; |
nr | 184 | fs/xiafs/inode.c | static int zone_bmap(struct buffer_head * bh, int nr) |
nr | 190 | fs/xiafs/inode.c | tmp = ((u_long *) bh->b_data)[nr]; |
nr | 275 | fs/xiafs/inode.c | int nr, int create, u_long prev_addr) |
nr | 291 | fs/xiafs/inode.c | lp = nr + (u_long *) bh->b_data; |
nr | 16 | include/asm-alpha/bitops.h | extern __inline__ unsigned long set_bit(unsigned long nr, void * addr) |
nr | 20 | include/asm-alpha/bitops.h | unsigned int * m = ((unsigned int *) addr) + (nr >> 5); |
nr | 34 | include/asm-alpha/bitops.h | :"r" (1UL << (nr & 31)), |
nr | 39 | include/asm-alpha/bitops.h | extern __inline__ unsigned long clear_bit(unsigned long nr, void * addr) |
nr | 43 | include/asm-alpha/bitops.h | unsigned int * m = ((unsigned int *) addr) + (nr >> 5); |
nr | 57 | include/asm-alpha/bitops.h | :"r" (1UL << (nr & 31)), |
nr | 62 | include/asm-alpha/bitops.h | extern __inline__ unsigned long change_bit(unsigned long nr, void * addr) |
nr | 66 | include/asm-alpha/bitops.h | unsigned int * m = ((unsigned int *) addr) + (nr >> 5); |
nr | 78 | include/asm-alpha/bitops.h | :"r" (1UL << (nr & 31)), |
nr | 83 | include/asm-alpha/bitops.h | extern __inline__ unsigned long test_bit(int nr, const void * addr) |
nr | 85 | include/asm-alpha/bitops.h | return 1UL & (((const int *) addr)[nr >> 5] >> (nr & 31)); |
nr | 39 | include/asm-alpha/ioctl.h | #define _IOC(dir,type,nr,size) \ |
nr | 43 | include/asm-alpha/ioctl.h | ((nr) << _IOC_NRSHIFT) | \ |
nr | 47 | include/asm-alpha/ioctl.h | #define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0) |
nr | 48 | include/asm-alpha/ioctl.h | #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) |
nr | 49 | include/asm-alpha/ioctl.h | #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 50 | include/asm-alpha/ioctl.h | #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 53 | include/asm-alpha/ioctl.h | #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) |
nr | 54 | include/asm-alpha/ioctl.h | #define _IOC_TYPE(nr) (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK) |
nr | 55 | include/asm-alpha/ioctl.h | #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) |
nr | 56 | include/asm-alpha/ioctl.h | #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) |
nr | 53 | include/asm-alpha/irq.h | #define IRQ_NAME2(nr) nr##_interrupt(void) |
nr | 54 | include/asm-alpha/irq.h | #define IRQ_NAME(nr) IRQ_NAME2(IRQ##nr) |
nr | 55 | include/asm-alpha/irq.h | #define FAST_IRQ_NAME(nr) IRQ_NAME2(fast_IRQ##nr) |
nr | 56 | include/asm-alpha/irq.h | #define BAD_IRQ_NAME(nr) IRQ_NAME2(bad_IRQ##nr) |
nr | 58 | include/asm-alpha/irq.h | #define BUILD_IRQ(chip,nr,mask) \ |
nr | 59 | include/asm-alpha/irq.h | asmlinkage void IRQ_NAME(nr); \ |
nr | 60 | include/asm-alpha/irq.h | asmlinkage void FAST_IRQ_NAME(nr); \ |
nr | 61 | include/asm-alpha/irq.h | asmlinkage void BAD_IRQ_NAME(nr); \ |
nr | 265 | include/asm-alpha/unistd.h | static inline int write(int fd, const char * buf, int nr) |
nr | 267 | include/asm-alpha/unistd.h | return sys_write(fd, buf, nr); |
nr | 271 | include/asm-alpha/unistd.h | static inline int read(int fd, char * buf, int nr) |
nr | 273 | 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 | 31 | include/asm-i386/bitops.h | extern __inline__ int set_bit(int nr, SMPVOL void * addr) |
nr | 38 | include/asm-i386/bitops.h | :"ir" (nr)); |
nr | 42 | include/asm-i386/bitops.h | extern __inline__ int clear_bit(int nr, SMPVOL void * addr) |
nr | 49 | include/asm-i386/bitops.h | :"ir" (nr)); |
nr | 53 | include/asm-i386/bitops.h | extern __inline__ int change_bit(int nr, SMPVOL void * addr) |
nr | 60 | include/asm-i386/bitops.h | :"ir" (nr)); |
nr | 67 | include/asm-i386/bitops.h | extern __inline__ int test_bit(int nr, const SMPVOL void * addr) |
nr | 69 | include/asm-i386/bitops.h | return ((1UL << (nr & 31)) & (((const unsigned int *) addr)[nr >> 5])) != 0; |
nr | 49 | include/asm-i386/ioctl.h | #define _IOC(dir,type,nr,size) \ |
nr | 52 | include/asm-i386/ioctl.h | ((nr) << _IOC_NRSHIFT) | \ |
nr | 56 | include/asm-i386/ioctl.h | #define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0) |
nr | 57 | include/asm-i386/ioctl.h | #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) |
nr | 58 | include/asm-i386/ioctl.h | #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 59 | include/asm-i386/ioctl.h | #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 62 | include/asm-i386/ioctl.h | #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) |
nr | 63 | include/asm-i386/ioctl.h | #define _IOC_TYPE(nr) (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK) |
nr | 64 | include/asm-i386/ioctl.h | #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) |
nr | 65 | include/asm-i386/ioctl.h | #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) |
nr | 127 | include/asm-i386/irq.h | #define IRQ_NAME2(nr) nr##_interrupt(void) |
nr | 128 | include/asm-i386/irq.h | #define IRQ_NAME(nr) IRQ_NAME2(IRQ##nr) |
nr | 129 | include/asm-i386/irq.h | #define FAST_IRQ_NAME(nr) IRQ_NAME2(fast_IRQ##nr) |
nr | 130 | include/asm-i386/irq.h | #define BAD_IRQ_NAME(nr) IRQ_NAME2(bad_IRQ##nr) |
nr | 200 | include/asm-i386/irq.h | #define BUILD_IRQ(chip,nr,mask) \ |
nr | 201 | include/asm-i386/irq.h | asmlinkage void IRQ_NAME(nr); \ |
nr | 202 | include/asm-i386/irq.h | asmlinkage void FAST_IRQ_NAME(nr); \ |
nr | 203 | include/asm-i386/irq.h | asmlinkage void BAD_IRQ_NAME(nr); \ |
nr | 206 | include/asm-i386/irq.h | SYMBOL_NAME_STR(IRQ) #nr "_interrupt:\n\t" \ |
nr | 207 | include/asm-i386/irq.h | "pushl $-"#nr"-2\n\t" \ |
nr | 215 | include/asm-i386/irq.h | "pushl $" #nr "\n\t" \ |
nr | 224 | include/asm-i386/irq.h | SYMBOL_NAME_STR(fast_IRQ) #nr "_interrupt:\n\t" \ |
nr | 229 | include/asm-i386/irq.h | "pushl $" #nr "\n\t" \ |
nr | 238 | include/asm-i386/irq.h | SYMBOL_NAME_STR(bad_IRQ) #nr "_interrupt:\n\t" \ |
nr | 246 | include/asm-i386/irq.h | #define BUILD_TIMER_IRQ(chip,nr,mask) \ |
nr | 247 | include/asm-i386/irq.h | asmlinkage void IRQ_NAME(nr); \ |
nr | 248 | include/asm-i386/irq.h | asmlinkage void FAST_IRQ_NAME(nr); \ |
nr | 249 | include/asm-i386/irq.h | asmlinkage void BAD_IRQ_NAME(nr); \ |
nr | 252 | include/asm-i386/irq.h | SYMBOL_NAME_STR(fast_IRQ) #nr "_interrupt:\n\t" \ |
nr | 253 | include/asm-i386/irq.h | SYMBOL_NAME_STR(bad_IRQ) #nr "_interrupt:\n\t" \ |
nr | 254 | include/asm-i386/irq.h | SYMBOL_NAME_STR(IRQ) #nr "_interrupt:\n\t" \ |
nr | 255 | include/asm-i386/irq.h | "pushl $-"#nr"-2\n\t" \ |
nr | 262 | include/asm-i386/irq.h | "pushl $" #nr "\n\t" \ |
nr | 276 | include/asm-i386/irq.h | #define BUILD_MSGIRQ(chip,nr,mask) \ |
nr | 277 | include/asm-i386/irq.h | asmlinkage void IRQ_NAME(nr); \ |
nr | 278 | include/asm-i386/irq.h | asmlinkage void FAST_IRQ_NAME(nr); \ |
nr | 279 | include/asm-i386/irq.h | asmlinkage void BAD_IRQ_NAME(nr); \ |
nr | 282 | include/asm-i386/irq.h | SYMBOL_NAME_STR(IRQ) #nr "_interrupt:\n\t" \ |
nr | 283 | include/asm-i386/irq.h | "pushl $-"#nr"-2\n\t" \ |
nr | 291 | include/asm-i386/irq.h | "pushl $" #nr "\n\t" \ |
nr | 302 | include/asm-i386/irq.h | SYMBOL_NAME_STR(fast_IRQ) #nr "_interrupt:\n\t" \ |
nr | 306 | include/asm-i386/irq.h | "pushl $" #nr "\n\t" \ |
nr | 313 | include/asm-i386/irq.h | SYMBOL_NAME_STR(bad_IRQ) #nr "_interrupt:\n\t" \ |
nr | 318 | include/asm-i386/irq.h | #define BUILD_RESCHEDIRQ(nr) \ |
nr | 319 | include/asm-i386/irq.h | asmlinkage void IRQ_NAME(nr); \ |
nr | 322 | include/asm-i386/irq.h | SYMBOL_NAME_STR(IRQ) #nr "_interrupt:\n\t" \ |
nr | 323 | include/asm-i386/irq.h | "pushl $-"#nr"-2\n\t" \ |
nr | 330 | include/asm-i386/irq.h | "pushl $" #nr "\n\t" \ |
nr | 339 | include/asm-i386/irq.h | #define BUILD_IRQ(chip,nr,mask) \ |
nr | 340 | include/asm-i386/irq.h | asmlinkage void IRQ_NAME(nr); \ |
nr | 341 | include/asm-i386/irq.h | asmlinkage void FAST_IRQ_NAME(nr); \ |
nr | 342 | include/asm-i386/irq.h | asmlinkage void BAD_IRQ_NAME(nr); \ |
nr | 345 | include/asm-i386/irq.h | SYMBOL_NAME_STR(IRQ) #nr "_interrupt:\n\t" \ |
nr | 346 | include/asm-i386/irq.h | "pushl $-"#nr"-2\n\t" \ |
nr | 353 | include/asm-i386/irq.h | "pushl $" #nr "\n\t" \ |
nr | 361 | include/asm-i386/irq.h | SYMBOL_NAME_STR(fast_IRQ) #nr "_interrupt:\n\t" \ |
nr | 365 | include/asm-i386/irq.h | "pushl $" #nr "\n\t" \ |
nr | 373 | include/asm-i386/irq.h | SYMBOL_NAME_STR(bad_IRQ) #nr "_interrupt:\n\t" \ |
nr | 378 | include/asm-i386/irq.h | #define BUILD_TIMER_IRQ(chip,nr,mask) \ |
nr | 379 | include/asm-i386/irq.h | asmlinkage void IRQ_NAME(nr); \ |
nr | 380 | include/asm-i386/irq.h | asmlinkage void FAST_IRQ_NAME(nr); \ |
nr | 381 | include/asm-i386/irq.h | asmlinkage void BAD_IRQ_NAME(nr); \ |
nr | 384 | include/asm-i386/irq.h | SYMBOL_NAME_STR(fast_IRQ) #nr "_interrupt:\n\t" \ |
nr | 385 | include/asm-i386/irq.h | SYMBOL_NAME_STR(bad_IRQ) #nr "_interrupt:\n\t" \ |
nr | 386 | include/asm-i386/irq.h | SYMBOL_NAME_STR(IRQ) #nr "_interrupt:\n\t" \ |
nr | 387 | include/asm-i386/irq.h | "pushl $-"#nr"-2\n\t" \ |
nr | 393 | include/asm-i386/irq.h | "pushl $" #nr "\n\t" \ |
nr | 17 | include/asm-m68k/bitops.h | extern __inline__ int set_bit(int nr,void * vaddr) |
nr | 22 | include/asm-m68k/bitops.h | : "=d" (retval) : "d" (nr^31), "a" (vaddr)); |
nr | 27 | include/asm-m68k/bitops.h | extern __inline__ int clear_bit(int nr, void * vaddr) |
nr | 32 | include/asm-m68k/bitops.h | : "=d" (retval) : "d" (nr^31), "a" (vaddr)); |
nr | 37 | include/asm-m68k/bitops.h | extern __inline__ int change_bit(int nr, void * vaddr) |
nr | 42 | include/asm-m68k/bitops.h | : "=d" (retval) : "d" (nr^31), "a" (vaddr)); |
nr | 47 | include/asm-m68k/bitops.h | extern __inline__ int test_bit(int nr, const void * vaddr) |
nr | 49 | include/asm-m68k/bitops.h | return ((1UL << (nr & 31)) & (((const unsigned int *) vaddr)[nr >> 5])) != 0; |
nr | 140 | include/asm-m68k/bitops.h | minix_set_bit (int nr, void *vaddr) |
nr | 145 | include/asm-m68k/bitops.h | : "=d" (retval) : "d" (nr^15), "m" (*(char *)vaddr)); |
nr | 151 | include/asm-m68k/bitops.h | minix_clear_bit (int nr, void *vaddr) |
nr | 156 | include/asm-m68k/bitops.h | : "=d" (retval) : "d" (nr^15), "m" (*(char *) vaddr)); |
nr | 162 | include/asm-m68k/bitops.h | minix_test_bit (int nr, const void *vaddr) |
nr | 164 | include/asm-m68k/bitops.h | return ((1U << (nr & 15)) & (((const unsigned short *) vaddr)[nr >> 4])) != 0; |
nr | 170 | include/asm-m68k/bitops.h | ext2_set_bit (int nr, void *vaddr) |
nr | 175 | include/asm-m68k/bitops.h | : "=d" (retval) : "d" (nr^7), "m" (*(char *) vaddr)); |
nr | 181 | include/asm-m68k/bitops.h | ext2_clear_bit (int nr, void *vaddr) |
nr | 186 | include/asm-m68k/bitops.h | : "=d" (retval) : "d" (nr^7), "m" (*(char *) vaddr)); |
nr | 192 | include/asm-m68k/bitops.h | ext2_test_bit (int nr, const void *vaddr) |
nr | 194 | include/asm-m68k/bitops.h | return ((1U << (nr & 7)) & (((const unsigned char *) vaddr)[nr >> 3])) != 0; |
nr | 70 | include/asm-m68k/ide.h | #define insw(port, buf, nr) \ |
nr | 71 | include/asm-m68k/ide.h | if (nr % 16) \ |
nr | 79 | include/asm-m68k/ide.h | : "g" (port), "g" (buf), "g" (nr) \ |
nr | 105 | include/asm-m68k/ide.h | : "g" (port), "g" (buf), "g" (nr) \ |
nr | 108 | include/asm-m68k/ide.h | #define outsw(port, buf, nr) \ |
nr | 109 | include/asm-m68k/ide.h | if (nr % 16) \ |
nr | 117 | include/asm-m68k/ide.h | : "g" (port), "g" (buf), "g" (nr) \ |
nr | 143 | include/asm-m68k/ide.h | : "g" (port), "g" (buf), "g" (nr) \ |
nr | 54 | include/asm-m68k/ioctl.h | #define _IOC(dir,type,nr,size) \ |
nr | 57 | include/asm-m68k/ioctl.h | ((nr) << _IOC_NRSHIFT) | \ |
nr | 61 | include/asm-m68k/ioctl.h | #define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0) |
nr | 62 | include/asm-m68k/ioctl.h | #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) |
nr | 63 | include/asm-m68k/ioctl.h | #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 64 | include/asm-m68k/ioctl.h | #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 67 | include/asm-m68k/ioctl.h | #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) |
nr | 68 | include/asm-m68k/ioctl.h | #define _IOC_TYPE(nr) (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK) |
nr | 69 | include/asm-m68k/ioctl.h | #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) |
nr | 70 | include/asm-m68k/ioctl.h | #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) |
nr | 24 | include/asm-mips/bitops.h | extern __inline__ int set_bit(int nr, void *addr) |
nr | 28 | include/asm-mips/bitops.h | addr += ((nr >> 3) & ~3); |
nr | 29 | include/asm-mips/bitops.h | mask = 1 << (nr & 0x1f); |
nr | 39 | include/asm-mips/bitops.h | extern __inline__ int clear_bit(int nr, void *addr) |
nr | 43 | include/asm-mips/bitops.h | addr += ((nr >> 3) & ~3); |
nr | 44 | include/asm-mips/bitops.h | mask = 1 << (nr & 0x1f); |
nr | 54 | include/asm-mips/bitops.h | extern __inline__ int change_bit(int nr, void *addr) |
nr | 58 | include/asm-mips/bitops.h | addr += ((nr >> 3) & ~3); |
nr | 59 | include/asm-mips/bitops.h | mask = 1 << (nr & 0x1f); |
nr | 89 | include/asm-mips/bitops.h | extern __inline__ int set_bit(int nr, void * addr) |
nr | 95 | include/asm-mips/bitops.h | a += nr >> 5; |
nr | 96 | include/asm-mips/bitops.h | mask = 1 << (nr & 0x1f); |
nr | 106 | include/asm-mips/bitops.h | extern __inline__ int clear_bit(int nr, void * addr) |
nr | 112 | include/asm-mips/bitops.h | a += nr >> 5; |
nr | 113 | include/asm-mips/bitops.h | mask = 1 << (nr & 0x1f); |
nr | 123 | include/asm-mips/bitops.h | extern __inline__ int change_bit(int nr, void * addr) |
nr | 129 | include/asm-mips/bitops.h | a += nr >> 5; |
nr | 130 | include/asm-mips/bitops.h | mask = 1 << (nr & 0x1f); |
nr | 147 | include/asm-mips/bitops.h | extern __inline__ int test_bit(int nr, const void *addr) |
nr | 149 | include/asm-mips/bitops.h | return 1UL & (((const unsigned int *) addr)[nr >> 5] >> (nr & 31)); |
nr | 55 | include/asm-mips/ioctl.h | #define _IOC(dir,type,nr,size) \ |
nr | 58 | include/asm-mips/ioctl.h | ((nr) << _IOC_NRSHIFT) | \ |
nr | 62 | include/asm-mips/ioctl.h | #define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0) |
nr | 63 | include/asm-mips/ioctl.h | #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) |
nr | 64 | include/asm-mips/ioctl.h | #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 65 | include/asm-mips/ioctl.h | #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 68 | include/asm-mips/ioctl.h | #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) |
nr | 69 | include/asm-mips/ioctl.h | #define _IOC_TYPE(nr) (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK) |
nr | 70 | include/asm-mips/ioctl.h | #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) |
nr | 71 | include/asm-mips/ioctl.h | #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) |
nr | 24 | include/asm-ppc/bitops.h | extern __inline__ int set_bit(int nr, void * add) |
nr | 31 | include/asm-ppc/bitops.h | addr += nr >> 5; |
nr | 32 | include/asm-ppc/bitops.h | mask = BIT(nr); |
nr | 43 | include/asm-ppc/bitops.h | extern __inline__ int change_bit(int nr, void *add) |
nr | 48 | include/asm-ppc/bitops.h | addr += nr >> 5; |
nr | 49 | include/asm-ppc/bitops.h | mask = BIT(nr); |
nr | 58 | include/asm-ppc/bitops.h | extern __inline__ int clear_bit(int nr, void *add) |
nr | 63 | include/asm-ppc/bitops.h | addr += nr >> 5; |
nr | 64 | include/asm-ppc/bitops.h | mask = BIT(nr); |
nr | 71 | include/asm-ppc/bitops.h | extern __inline__ int test_bit(int nr, void *add) |
nr | 77 | include/asm-ppc/bitops.h | addr += nr >> 5; |
nr | 78 | include/asm-ppc/bitops.h | mask = BIT(nr); |
nr | 34 | include/asm-ppc/ioctl.h | #define _IOC(dir,type,nr,size) \ |
nr | 37 | include/asm-ppc/ioctl.h | ((nr) << _IOC_NRSHIFT) | \ |
nr | 41 | include/asm-ppc/ioctl.h | #define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0) |
nr | 42 | include/asm-ppc/ioctl.h | #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) |
nr | 43 | include/asm-ppc/ioctl.h | #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 44 | include/asm-ppc/ioctl.h | #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 47 | include/asm-ppc/ioctl.h | #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) |
nr | 48 | include/asm-ppc/ioctl.h | #define _IOC_TYPE(nr) (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK) |
nr | 49 | include/asm-ppc/ioctl.h | #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) |
nr | 50 | include/asm-ppc/ioctl.h | #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) |
nr | 32 | include/asm-sparc/bitops.h | extern __inline__ unsigned long set_bit(unsigned long nr, SMPVOL void *addr) |
nr | 38 | include/asm-sparc/bitops.h | ADDR += nr >> 5; |
nr | 39 | include/asm-sparc/bitops.h | mask = 1 << (nr & 31); |
nr | 47 | include/asm-sparc/bitops.h | extern __inline__ unsigned long clear_bit(unsigned long nr, SMPVOL void *addr) |
nr | 53 | include/asm-sparc/bitops.h | ADDR += nr >> 5; |
nr | 54 | include/asm-sparc/bitops.h | mask = 1 << (nr & 31); |
nr | 62 | include/asm-sparc/bitops.h | extern __inline__ unsigned long change_bit(unsigned long nr, SMPVOL void *addr) |
nr | 68 | include/asm-sparc/bitops.h | ADDR += nr >> 5; |
nr | 69 | include/asm-sparc/bitops.h | mask = 1 << (nr & 31); |
nr | 78 | include/asm-sparc/bitops.h | extern __inline__ unsigned long test_bit(int nr, const SMPVOL void *addr) |
nr | 80 | include/asm-sparc/bitops.h | return ((1UL << (nr & 31)) & (((const unsigned int *) addr)[nr >> 5])) != 0; |
nr | 145 | include/asm-sparc/bitops.h | extern __inline__ int ext2_set_bit(int nr,void * addr) |
nr | 150 | include/asm-sparc/bitops.h | ADDR += nr >> 3; |
nr | 151 | include/asm-sparc/bitops.h | mask = 1 << (nr & 0x07); |
nr | 159 | include/asm-sparc/bitops.h | extern __inline__ int ext2_clear_bit(int nr, void * addr) |
nr | 164 | include/asm-sparc/bitops.h | ADDR += nr >> 3; |
nr | 165 | include/asm-sparc/bitops.h | mask = 1 << (nr & 0x07); |
nr | 173 | include/asm-sparc/bitops.h | extern __inline__ int ext2_test_bit(int nr, const void * addr) |
nr | 178 | include/asm-sparc/bitops.h | ADDR += nr >> 3; |
nr | 179 | include/asm-sparc/bitops.h | mask = 1 << (nr & 0x07); |
nr | 27 | include/asm-sparc/ioctl.h | #define _IOC(dir,type,nr,size) \ |
nr | 30 | include/asm-sparc/ioctl.h | ((nr) << _IOC_NRSHIFT) | \ |
nr | 33 | include/asm-sparc/ioctl.h | #define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0) |
nr | 34 | include/asm-sparc/ioctl.h | #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) |
nr | 35 | include/asm-sparc/ioctl.h | #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 36 | include/asm-sparc/ioctl.h | #define _IORW(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) |
nr | 38 | include/asm-sparc/ioctl.h | #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) |
nr | 39 | include/asm-sparc/ioctl.h | #define _IOC_TYPE(nr) (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK) |
nr | 40 | include/asm-sparc/ioctl.h | #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) |
nr | 41 | include/asm-sparc/ioctl.h | #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) |
nr | 139 | include/linux/blk.h | static void floppy_off(unsigned int nr); |
nr | 616 | include/linux/fs.h | extern struct inode * __iget(struct super_block * sb,int nr,int crsmnt); |
nr | 625 | include/linux/fs.h | extern void ll_rw_block(int rw, int nr, struct buffer_head * bh[]); |
nr | 626 | include/linux/fs.h | extern void ll_rw_page(int rw, kdev_t dev, unsigned long nr, char * buffer); |
nr | 679 | include/linux/fs.h | extern inline struct inode * iget(struct super_block * sb,int nr) |
nr | 681 | 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 | 42 | include/linux/interrupt.h | extern inline void init_bh(int nr, void (*routine)(void)) |
nr | 44 | include/linux/interrupt.h | bh_base[nr] = routine; |
nr | 45 | include/linux/interrupt.h | bh_mask_count[nr] = 0; |
nr | 46 | include/linux/interrupt.h | bh_mask |= 1 << nr; |
nr | 49 | include/linux/interrupt.h | extern inline void mark_bh(int nr) |
nr | 51 | include/linux/interrupt.h | set_bit(nr, &bh_active); |
nr | 58 | include/linux/interrupt.h | extern inline void disable_bh(int nr) |
nr | 60 | include/linux/interrupt.h | bh_mask &= ~(1 << nr); |
nr | 61 | include/linux/interrupt.h | bh_mask_count[nr]++; |
nr | 64 | include/linux/interrupt.h | extern inline void enable_bh(int nr) |
nr | 66 | include/linux/interrupt.h | if (!--bh_mask_count[nr]) |
nr | 67 | include/linux/interrupt.h | bh_mask |= 1 << nr; |
nr | 75 | include/linux/mcd.h | #define READ_DATA(port, buf, nr) \ |
nr | 76 | include/linux/mcd.h | insb(port, buf, nr) |
nr | 190 | include/linux/msdos_fs.h | extern int fat_access(struct super_block *sb,int nr,int new_value); |
nr | 478 | include/linux/sched.h | if (p->nr >= __MAX_SELECT_TABLE_ENTRIES) |
nr | 480 | include/linux/sched.h | entry = p->entry + p->nr; |
nr | 485 | include/linux/sched.h | p->nr++; |
nr | 113 | include/linux/sjcd.h | #define S_READ_DATA( port, buf, nr ) insb( port, buf, nr ) |
nr | 53 | include/linux/swap.h | #define read_swap_page(nr,buf) \ |
nr | 54 | include/linux/swap.h | rw_swap_page(READ,(nr),(buf),1) |
nr | 55 | include/linux/swap.h | #define write_swap_page(nr,buf) \ |
nr | 56 | include/linux/swap.h | rw_swap_page(WRITE,(nr),(buf),1) |
nr | 23 | include/linux/tty_ldisc.h | unsigned char * buf, unsigned int nr); |
nr | 25 | include/linux/tty_ldisc.h | const unsigned char * buf, unsigned int nr); |
nr | 30 | include/linux/wait.h | int nr; |
nr | 258 | include/net/sock.h | nr_cb *nr; |
nr | 203 | kernel/fork.c | int nr; |
nr | 215 | kernel/fork.c | nr = find_empty_process(); |
nr | 216 | kernel/fork.c | if (nr < 0) |
nr | 252 | kernel/fork.c | task[nr] = p; |
nr | 266 | kernel/fork.c | copy_thread(nr, clone_flags, usp, p, regs); |
nr | 288 | kernel/fork.c | task[nr] = NULL; |
nr | 82 | kernel/sched.c | #define _S(nr) (1<<((nr)-1)) |
nr | 166 | kernel/sched.c | static int nr = 0; |
nr | 167 | kernel/sched.c | if (nr < 5) { |
nr | 168 | kernel/sched.c | nr++; |
nr | 630 | kernel/sched.c | unsigned long nr = 0; |
nr | 636 | kernel/sched.c | nr += FIXED_1; |
nr | 638 | kernel/sched.c | nr-=(smp_num_cpus-1)*FIXED_1; |
nr | 640 | kernel/sched.c | return nr; |
nr | 1351 | kernel/sched.c | static void show_task(int nr,struct task_struct * p) |
nr | 1356 | kernel/sched.c | printk("%-8s %3d ", p->comm, (p == current) ? -nr : nr); |
nr | 18 | kernel/signal.c | #define _S(nr) (1<<((nr)-1)) |
nr | 605 | mm/filemap.c | unsigned long offset, addr, nr; |
nr | 610 | mm/filemap.c | nr = PAGE_SIZE - offset; |
nr | 642 | mm/filemap.c | if (nr > count) |
nr | 643 | mm/filemap.c | nr = count; |
nr | 661 | mm/filemap.c | if (nr > inode->i_size - pos) |
nr | 662 | mm/filemap.c | nr = inode->i_size - pos; |
nr | 663 | mm/filemap.c | memcpy_tofs(buf, (void *) (addr + offset), nr); |
nr | 665 | mm/filemap.c | buf += nr; |
nr | 666 | mm/filemap.c | pos += nr; |
nr | 667 | mm/filemap.c | read += nr; |
nr | 668 | mm/filemap.c | count -= nr; |
nr | 220 | mm/page_alloc.c | unsigned long nr = 0; |
nr | 222 | mm/page_alloc.c | nr ++; |
nr | 224 | mm/page_alloc.c | total += nr * ((PAGE_SIZE>>10) << order); |
nr | 225 | mm/page_alloc.c | printk("%lu*%lukB ", nr, (PAGE_SIZE>>10) << order); |
nr | 292 | mm/swapfile.c | int nr; |
nr | 297 | mm/swapfile.c | nr = 0; |
nr | 298 | mm/swapfile.c | while (nr < NR_TASKS) { |
nr | 299 | mm/swapfile.c | struct task_struct * p = task[nr]; |
nr | 308 | mm/swapfile.c | nr++; |
nr | 6 | net/802/llc.c | int llc_rx_adm(struct sock *sk,struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
nr | 36 | net/802/llc.c | int llc_rx_setup(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
nr | 70 | net/802/llc.c | int llc_rx_reset(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
nr | 114 | net/802/llc.c | int llc_rx_d_conn(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
nr | 150 | net/802/llc.c | int llc_rx_error(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
nr | 199 | net/802/llc.c | int llc_rx_nr_shared(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
nr | 288 | net/802/llc.c | int llc_rx_normal(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
nr | 290 | net/802/llc.c | if(llc_rx_nr_shared(sk, skb, type, cmd, pf, nr, ns)) |
nr | 299 | net/802/llc.c | llc_ack_frames(sk,nr); /* Ack frames and update N(R) */ |
nr | 312 | net/802/llc.c | llc_ack_frames(sk,nr); |
nr | 320 | net/802/llc.c | llc_ack_frames(sk,nr); |
nr | 338 | net/802/llc.c | llc_ack_frames(sk,nr); |
nr | 348 | net/802/llc.c | if(sk->llc.nr!=nr) |
nr | 350 | net/802/llc.c | llc_ack_frames(sk,nr); |
nr | 358 | net/802/llc.c | if(sk->llc.nr!=nr) |
nr | 360 | net/802/llc.c | llc_ack_frames(sk,nr); |
nr | 373 | net/802/llc.c | if(sk->llc.nr!=nr) |
nr | 375 | net/802/llc.c | llc_ack_frames(sk,nr); |
nr | 396 | net/802/llc.c | if(sk->llc.nr!=nr) |
nr | 398 | net/802/llc.c | llc_ack_frames(sk,nr); |
nr | 734 | net/appletalk/ddp.c | struct netrange *nr; |
nr | 765 | net/appletalk/ddp.c | nr=(struct netrange *)&sa->sat_zero[0]; |
nr | 771 | net/appletalk/ddp.c | if(dev->type==ARPHRD_ETHER && nr->nr_phase!=2) |
nr | 791 | net/appletalk/ddp.c | atif->nets= *nr; |
nr | 822 | net/appletalk/ddp.c | if(nr->nr_firstnet==htons(0) && nr->nr_lastnet==htons(0xFFFE)) |
nr | 830 | net/appletalk/ddp.c | limit=ntohs(nr->nr_lastnet); |
nr | 831 | net/appletalk/ddp.c | if(limit-ntohs(nr->nr_firstnet) > 256) |
nr | 836 | net/appletalk/ddp.c | for(ct=ntohs(nr->nr_firstnet);ct<=limit;ct++) |
nr | 369 | net/ax25/ax25_in.c | static int ax25_state3_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int nr, int pf, int type, int dama) |
nr | 439 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 440 | net/ax25/ax25_in.c | ax25_check_iframes_acked(ax25, nr); |
nr | 451 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 452 | net/ax25/ax25_in.c | ax25_check_iframes_acked(ax25, nr); |
nr | 463 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 464 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 481 | net/ax25/ax25_in.c | if (!ax25_validate_nr(ax25, nr)) { |
nr | 487 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 489 | net/ax25/ax25_in.c | ax25_check_iframes_acked(ax25, nr); |
nr | 561 | net/ax25/ax25_in.c | static int ax25_state4_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int nr, int pf, int type, int dama) |
nr | 637 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 638 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 652 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 653 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 665 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 666 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 683 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 684 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 696 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 697 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 714 | net/ax25/ax25_in.c | if (ax25_validate_nr(ax25, nr)) { |
nr | 715 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 731 | net/ax25/ax25_in.c | if (!ax25_validate_nr(ax25, nr)) { |
nr | 736 | net/ax25/ax25_in.c | ax25_frames_acked(ax25, nr); |
nr | 807 | net/ax25/ax25_in.c | int queued = 0, frametype, ns, nr, pf; |
nr | 820 | net/ax25/ax25_in.c | frametype = ax25_decode(ax25, skb, &ns, &nr, &pf); |
nr | 830 | net/ax25/ax25_in.c | queued = ax25_state3_machine(ax25, skb, frametype, ns, nr, pf, type, dama); |
nr | 833 | net/ax25/ax25_in.c | queued = ax25_state4_machine(ax25, skb, frametype, ns, nr, pf, type, dama); |
nr | 343 | net/ax25/ax25_out.c | void ax25_check_iframes_acked(ax25_cb *ax25, unsigned short nr) |
nr | 345 | net/ax25/ax25_out.c | if (ax25->vs == nr) { |
nr | 346 | net/ax25/ax25_out.c | ax25_frames_acked(ax25, nr); |
nr | 351 | net/ax25/ax25_out.c | if (ax25->va != nr) { |
nr | 352 | net/ax25/ax25_out.c | ax25_frames_acked(ax25, nr); |
nr | 91 | net/ax25/ax25_subr.c | void ax25_frames_acked(ax25_cb *ax25, unsigned short nr) |
nr | 98 | net/ax25/ax25_subr.c | if (ax25->va != nr) { |
nr | 99 | net/ax25/ax25_subr.c | while (skb_peek(&ax25->ack_queue) != NULL && ax25->va != nr) { |
nr | 136 | net/ax25/ax25_subr.c | int ax25_validate_nr(ax25_cb *ax25, unsigned short nr) |
nr | 141 | net/ax25/ax25_subr.c | if (nr == vc) return 1; |
nr | 145 | net/ax25/ax25_subr.c | if (nr == ax25->vs) return 1; |
nr | 154 | net/ax25/ax25_subr.c | int ax25_decode(ax25_cb *ax25, struct sk_buff *skb, int *ns, int *nr, int *pf) |
nr | 160 | net/ax25/ax25_subr.c | *ns = *nr = *pf = 0; |
nr | 166 | net/ax25/ax25_subr.c | *nr = (frame[0] >> 5) & 0x07; |
nr | 170 | net/ax25/ax25_subr.c | *nr = (frame[0] >> 5) & 0x07; |
nr | 181 | net/ax25/ax25_subr.c | *nr = (frame[1] >> 1) & 0x7F; |
nr | 186 | net/ax25/ax25_subr.c | *nr = (frame[1] >> 1) & 0x7F; |
nr | 1151 | net/ipv4/route.c | int nr=0; |
nr | 1167 | net/ipv4/route.c | nr++; |
nr | 1172 | net/ipv4/route.c | if (nr > 0) |
nr | 1173 | net/ipv4/route.c | printk("rt_cache_flush: %d@%02x\n", nr, i); |
nr | 107 | net/netrom/af_netrom.c | if (s->nr->device == dev) { |
nr | 108 | net/netrom/af_netrom.c | s->nr->state = NR_STATE_0; |
nr | 109 | net/netrom/af_netrom.c | s->nr->device = NULL; |
nr | 163 | net/netrom/af_netrom.c | if (ax25cmp(&s->nr->source_addr, addr) == 0 && s->state == TCP_LISTEN) { |
nr | 185 | net/netrom/af_netrom.c | if (s->nr->my_index == index && s->nr->my_id == id) { |
nr | 208 | net/netrom/af_netrom.c | if (s->nr->your_index == index && s->nr->your_id == id) { |
nr | 255 | net/netrom/af_netrom.c | skb->sk->nr->state = NR_STATE_0; |
nr | 268 | net/netrom/af_netrom.c | kfree_s(sk->nr, sizeof(*sk->nr)); |
nr | 309 | net/netrom/af_netrom.c | sk->nr->state = NR_STATE_0; |
nr | 321 | net/netrom/af_netrom.c | sk->nr->rtt = (nr_ctl.arg * PR_SLOWHZ) / 2; |
nr | 322 | net/netrom/af_netrom.c | sk->nr->t1 = nr_ctl.arg * PR_SLOWHZ; |
nr | 324 | net/netrom/af_netrom.c | if (sk->nr->t1timer > sk->nr->t1) |
nr | 325 | net/netrom/af_netrom.c | sk->nr->t1timer = sk->nr->t1; |
nr | 333 | net/netrom/af_netrom.c | sk->nr->t2 = nr_ctl.arg * PR_SLOWHZ; |
nr | 334 | net/netrom/af_netrom.c | if (sk->nr->t2timer > sk->nr->t2) |
nr | 335 | net/netrom/af_netrom.c | sk->nr->t2timer = sk->nr->t2; |
nr | 342 | net/netrom/af_netrom.c | sk->nr->n2count = 0; |
nr | 343 | net/netrom/af_netrom.c | sk->nr->n2 = nr_ctl.arg; |
nr | 351 | net/netrom/af_netrom.c | sk->nr->paclen = nr_ctl.arg; |
nr | 387 | net/netrom/af_netrom.c | sk->nr->rtt = (opt * PR_SLOWHZ) / 2; |
nr | 393 | net/netrom/af_netrom.c | sk->nr->t2 = opt * PR_SLOWHZ; |
nr | 399 | net/netrom/af_netrom.c | sk->nr->n2 = opt; |
nr | 403 | net/netrom/af_netrom.c | sk->nr->hdrincl = opt ? 1 : 0; |
nr | 409 | net/netrom/af_netrom.c | sk->nr->paclen = opt; |
nr | 434 | net/netrom/af_netrom.c | val = (sk->nr->t1 * 2) / PR_SLOWHZ; |
nr | 438 | net/netrom/af_netrom.c | val = sk->nr->t2 / PR_SLOWHZ; |
nr | 442 | net/netrom/af_netrom.c | val = sk->nr->n2; |
nr | 446 | net/netrom/af_netrom.c | val = sk->nr->hdrincl; |
nr | 450 | net/netrom/af_netrom.c | val = sk->nr->paclen; |
nr | 475 | net/netrom/af_netrom.c | memset(&sk->nr->user_addr, '\0', AX25_ADDR_LEN); |
nr | 499 | net/netrom/af_netrom.c | nr_cb *nr; |
nr | 507 | net/netrom/af_netrom.c | if ((nr = (nr_cb *)kmalloc(sizeof(*nr), GFP_ATOMIC)) == NULL) { |
nr | 540 | net/netrom/af_netrom.c | skb_queue_head_init(&nr->ack_queue); |
nr | 541 | net/netrom/af_netrom.c | skb_queue_head_init(&nr->reseq_queue); |
nr | 542 | net/netrom/af_netrom.c | skb_queue_head_init(&nr->frag_queue); |
nr | 544 | net/netrom/af_netrom.c | nr->my_index = 0; |
nr | 545 | net/netrom/af_netrom.c | nr->my_id = 0; |
nr | 546 | net/netrom/af_netrom.c | nr->rtt = nr_default.timeout / 2; |
nr | 547 | net/netrom/af_netrom.c | nr->t1 = nr_default.timeout; |
nr | 548 | net/netrom/af_netrom.c | nr->t2 = nr_default.ack_delay; |
nr | 549 | net/netrom/af_netrom.c | nr->n2 = nr_default.tries; |
nr | 550 | net/netrom/af_netrom.c | nr->paclen = nr_default.paclen; |
nr | 552 | net/netrom/af_netrom.c | nr->t1timer = 0; |
nr | 553 | net/netrom/af_netrom.c | nr->t2timer = 0; |
nr | 554 | net/netrom/af_netrom.c | nr->t4timer = 0; |
nr | 555 | net/netrom/af_netrom.c | nr->n2count = 0; |
nr | 557 | net/netrom/af_netrom.c | nr->va = 0; |
nr | 558 | net/netrom/af_netrom.c | nr->vr = 0; |
nr | 559 | net/netrom/af_netrom.c | nr->vs = 0; |
nr | 560 | net/netrom/af_netrom.c | nr->vl = 0; |
nr | 562 | net/netrom/af_netrom.c | nr->your_index = 0; |
nr | 563 | net/netrom/af_netrom.c | nr->your_id = 0; |
nr | 565 | net/netrom/af_netrom.c | nr->my_index = 0; |
nr | 566 | net/netrom/af_netrom.c | nr->my_id = 0; |
nr | 568 | net/netrom/af_netrom.c | nr->bpqext = 1; |
nr | 569 | net/netrom/af_netrom.c | nr->fraglen = 0; |
nr | 570 | net/netrom/af_netrom.c | nr->hdrincl = 0; |
nr | 571 | net/netrom/af_netrom.c | nr->state = NR_STATE_0; |
nr | 572 | net/netrom/af_netrom.c | nr->device = NULL; |
nr | 574 | net/netrom/af_netrom.c | memset(&nr->source_addr, '\0', AX25_ADDR_LEN); |
nr | 575 | net/netrom/af_netrom.c | memset(&nr->user_addr, '\0', AX25_ADDR_LEN); |
nr | 576 | net/netrom/af_netrom.c | memset(&nr->dest_addr, '\0', AX25_ADDR_LEN); |
nr | 578 | net/netrom/af_netrom.c | nr->sk = sk; |
nr | 579 | net/netrom/af_netrom.c | sk->nr = nr; |
nr | 587 | net/netrom/af_netrom.c | nr_cb *nr; |
nr | 595 | net/netrom/af_netrom.c | if ((nr = (nr_cb *)kmalloc(sizeof(*nr), GFP_ATOMIC)) == NULL) { |
nr | 624 | net/netrom/af_netrom.c | skb_queue_head_init(&nr->ack_queue); |
nr | 625 | net/netrom/af_netrom.c | skb_queue_head_init(&nr->reseq_queue); |
nr | 626 | net/netrom/af_netrom.c | skb_queue_head_init(&nr->frag_queue); |
nr | 628 | net/netrom/af_netrom.c | nr->rtt = osk->nr->rtt; |
nr | 629 | net/netrom/af_netrom.c | nr->t1 = osk->nr->t1; |
nr | 630 | net/netrom/af_netrom.c | nr->t2 = osk->nr->t2; |
nr | 631 | net/netrom/af_netrom.c | nr->n2 = osk->nr->n2; |
nr | 632 | net/netrom/af_netrom.c | nr->paclen = osk->nr->paclen; |
nr | 634 | net/netrom/af_netrom.c | nr->device = osk->nr->device; |
nr | 635 | net/netrom/af_netrom.c | nr->bpqext = osk->nr->bpqext; |
nr | 636 | net/netrom/af_netrom.c | nr->hdrincl = osk->nr->hdrincl; |
nr | 637 | net/netrom/af_netrom.c | nr->fraglen = 0; |
nr | 639 | net/netrom/af_netrom.c | nr->t1timer = 0; |
nr | 640 | net/netrom/af_netrom.c | nr->t2timer = 0; |
nr | 641 | net/netrom/af_netrom.c | nr->t4timer = 0; |
nr | 642 | net/netrom/af_netrom.c | nr->n2count = 0; |
nr | 644 | net/netrom/af_netrom.c | nr->va = 0; |
nr | 645 | net/netrom/af_netrom.c | nr->vr = 0; |
nr | 646 | net/netrom/af_netrom.c | nr->vs = 0; |
nr | 647 | net/netrom/af_netrom.c | nr->vl = 0; |
nr | 649 | net/netrom/af_netrom.c | sk->nr = nr; |
nr | 650 | net/netrom/af_netrom.c | nr->sk = sk; |
nr | 668 | net/netrom/af_netrom.c | switch (sk->nr->state) { |
nr | 678 | net/netrom/af_netrom.c | sk->nr->state = NR_STATE_0; |
nr | 687 | net/netrom/af_netrom.c | sk->nr->state = NR_STATE_0; |
nr | 696 | net/netrom/af_netrom.c | sk->nr->n2count = 0; |
nr | 698 | net/netrom/af_netrom.c | sk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk); |
nr | 699 | net/netrom/af_netrom.c | sk->nr->t2timer = 0; |
nr | 700 | net/netrom/af_netrom.c | sk->nr->t4timer = 0; |
nr | 701 | net/netrom/af_netrom.c | sk->nr->state = NR_STATE_2; |
nr | 745 | net/netrom/af_netrom.c | sk->nr->user_addr = addr->fsa_digipeater[0]; |
nr | 746 | net/netrom/af_netrom.c | sk->nr->source_addr = addr->fsa_ax25.sax25_call; |
nr | 756 | net/netrom/af_netrom.c | sk->nr->user_addr = *user; |
nr | 757 | net/netrom/af_netrom.c | sk->nr->source_addr = *source; |
nr | 760 | net/netrom/af_netrom.c | sk->nr->device = dev; |
nr | 812 | net/netrom/af_netrom.c | sk->nr->user_addr = *user; |
nr | 813 | net/netrom/af_netrom.c | sk->nr->source_addr = *source; |
nr | 814 | net/netrom/af_netrom.c | sk->nr->device = dev; |
nr | 819 | net/netrom/af_netrom.c | sk->nr->dest_addr = addr->sax25_call; |
nr | 824 | net/netrom/af_netrom.c | sk->nr->my_index = circuit / 256; |
nr | 825 | net/netrom/af_netrom.c | sk->nr->my_id = circuit % 256; |
nr | 833 | net/netrom/af_netrom.c | sk->nr->state = NR_STATE_1; |
nr | 935 | net/netrom/af_netrom.c | sax->fsa_ax25.sax25_call = sk->nr->user_addr; |
nr | 936 | net/netrom/af_netrom.c | sax->fsa_digipeater[0] = sk->nr->dest_addr; |
nr | 941 | net/netrom/af_netrom.c | sax->fsa_ax25.sax25_call = sk->nr->source_addr; |
nr | 991 | net/netrom/af_netrom.c | sk->nr->bpqext = 1; |
nr | 993 | net/netrom/af_netrom.c | sk->nr->bpqext = 0; |
nr | 1016 | net/netrom/af_netrom.c | make->nr->source_addr = *dest; |
nr | 1017 | net/netrom/af_netrom.c | make->nr->dest_addr = *src; |
nr | 1018 | net/netrom/af_netrom.c | make->nr->user_addr = *user; |
nr | 1020 | net/netrom/af_netrom.c | make->nr->your_index = circuit_index; |
nr | 1021 | net/netrom/af_netrom.c | make->nr->your_id = circuit_id; |
nr | 1023 | net/netrom/af_netrom.c | make->nr->my_index = circuit / 256; |
nr | 1024 | net/netrom/af_netrom.c | make->nr->my_id = circuit % 256; |
nr | 1035 | net/netrom/af_netrom.c | if (timeout * PR_SLOWHZ < make->nr->rtt * 2) |
nr | 1036 | net/netrom/af_netrom.c | make->nr->rtt = (timeout * PR_SLOWHZ) / 2; |
nr | 1037 | net/netrom/af_netrom.c | make->nr->bpqext = 1; |
nr | 1039 | net/netrom/af_netrom.c | make->nr->bpqext = 0; |
nr | 1044 | net/netrom/af_netrom.c | make->nr->condition = 0x00; |
nr | 1045 | net/netrom/af_netrom.c | make->nr->vs = 0; |
nr | 1046 | net/netrom/af_netrom.c | make->nr->va = 0; |
nr | 1047 | net/netrom/af_netrom.c | make->nr->vr = 0; |
nr | 1048 | net/netrom/af_netrom.c | make->nr->vl = 0; |
nr | 1049 | net/netrom/af_netrom.c | make->nr->state = NR_STATE_3; |
nr | 1084 | net/netrom/af_netrom.c | if (sk->nr->device == NULL) |
nr | 1091 | net/netrom/af_netrom.c | if (ax25cmp(&sk->nr->dest_addr, &sax.sax25_call) != 0) |
nr | 1099 | net/netrom/af_netrom.c | sax.sax25_call = sk->nr->dest_addr; |
nr | 1131 | net/netrom/af_netrom.c | *asmptr++ = sk->nr->your_index; |
nr | 1132 | net/netrom/af_netrom.c | *asmptr++ = sk->nr->your_id; |
nr | 1194 | net/netrom/af_netrom.c | if (!sk->nr->hdrincl) { |
nr | 1333 | net/netrom/af_netrom.c | if ((dev = s->nr->device) == NULL) |
nr | 1339 | net/netrom/af_netrom.c | ax2asc(&s->nr->user_addr)); |
nr | 1341 | net/netrom/af_netrom.c | ax2asc(&s->nr->dest_addr)); |
nr | 1343 | net/netrom/af_netrom.c | ax2asc(&s->nr->source_addr), |
nr | 1344 | net/netrom/af_netrom.c | devname, s->nr->my_index, s->nr->my_id, |
nr | 1345 | net/netrom/af_netrom.c | s->nr->your_index, s->nr->your_id, |
nr | 1346 | net/netrom/af_netrom.c | s->nr->state, |
nr | 1347 | net/netrom/af_netrom.c | s->nr->vs, s->nr->vr, s->nr->va, |
nr | 1348 | net/netrom/af_netrom.c | s->nr->t1timer / PR_SLOWHZ, |
nr | 1349 | net/netrom/af_netrom.c | s->nr->t1 / PR_SLOWHZ, |
nr | 1350 | net/netrom/af_netrom.c | s->nr->t2timer / PR_SLOWHZ, |
nr | 1351 | net/netrom/af_netrom.c | s->nr->t2 / PR_SLOWHZ, |
nr | 1352 | net/netrom/af_netrom.c | s->nr->n2count, s->nr->n2, |
nr | 1353 | net/netrom/af_netrom.c | s->nr->rtt / PR_SLOWHZ, |
nr | 1354 | net/netrom/af_netrom.c | s->window, s->nr->paclen, |
nr | 58 | net/netrom/nr_in.c | sk->nr->fraglen += skb->len; |
nr | 59 | net/netrom/nr_in.c | skb_queue_tail(&sk->nr->frag_queue, skb); |
nr | 63 | net/netrom/nr_in.c | if (!more && sk->nr->fraglen > 0) { /* End of fragment */ |
nr | 64 | net/netrom/nr_in.c | sk->nr->fraglen += skb->len; |
nr | 65 | net/netrom/nr_in.c | skb_queue_tail(&sk->nr->frag_queue, skb); |
nr | 67 | net/netrom/nr_in.c | if ((skbn = alloc_skb(sk->nr->fraglen, GFP_ATOMIC)) == NULL) |
nr | 76 | net/netrom/nr_in.c | skbo = skb_dequeue(&sk->nr->frag_queue); |
nr | 80 | net/netrom/nr_in.c | while ((skbo = skb_dequeue(&sk->nr->frag_queue)) != NULL) { |
nr | 86 | net/netrom/nr_in.c | sk->nr->fraglen = 0; |
nr | 104 | net/netrom/nr_in.c | sk->nr->your_index = skb->data[17]; |
nr | 105 | net/netrom/nr_in.c | sk->nr->your_id = skb->data[18]; |
nr | 106 | net/netrom/nr_in.c | sk->nr->t1timer = 0; |
nr | 107 | net/netrom/nr_in.c | sk->nr->t2timer = 0; |
nr | 108 | net/netrom/nr_in.c | sk->nr->t4timer = 0; |
nr | 109 | net/netrom/nr_in.c | sk->nr->vs = 0; |
nr | 110 | net/netrom/nr_in.c | sk->nr->va = 0; |
nr | 111 | net/netrom/nr_in.c | sk->nr->vr = 0; |
nr | 112 | net/netrom/nr_in.c | sk->nr->vl = 0; |
nr | 113 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_3; |
nr | 115 | net/netrom/nr_in.c | sk->nr->n2count = 0; |
nr | 123 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_0; |
nr | 151 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_0; |
nr | 176 | net/netrom/nr_in.c | unsigned short nr, ns; |
nr | 179 | net/netrom/nr_in.c | nr = skb->data[18]; |
nr | 191 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_0; |
nr | 201 | net/netrom/nr_in.c | sk->nr->state = NR_STATE_0; |
nr | 214 | net/netrom/nr_in.c | sk->nr->condition |= PEER_RX_BUSY_CONDITION; |
nr | 215 | net/netrom/nr_in.c | sk->nr->t4timer = nr_default.busy_delay; |
nr | 217 | net/netrom/nr_in.c | sk->nr->condition &= ~PEER_RX_BUSY_CONDITION; |
nr | 218 | net/netrom/nr_in.c | sk->nr->t4timer = 0; |
nr | 220 | net/netrom/nr_in.c | if (!nr_validate_nr(sk, nr)) { |
nr | 224 | net/netrom/nr_in.c | nr_frames_acked(sk, nr); |
nr | 227 | net/netrom/nr_in.c | if (sk->nr->condition & PEER_RX_BUSY_CONDITION) { |
nr | 228 | net/netrom/nr_in.c | nr_frames_acked(sk, nr); |
nr | 230 | net/netrom/nr_in.c | nr_check_iframes_acked(sk, nr); |
nr | 244 | net/netrom/nr_in.c | sk->nr->condition |= PEER_RX_BUSY_CONDITION; |
nr | 245 | net/netrom/nr_in.c | sk->nr->t4timer = nr_default.busy_delay; |
nr | 247 | net/netrom/nr_in.c | sk->nr->condition &= ~PEER_RX_BUSY_CONDITION; |
nr | 248 | net/netrom/nr_in.c | sk->nr->t4timer = 0; |
nr | 250 | net/netrom/nr_in.c | if (nr_validate_nr(sk, nr)) { |
nr | 252 | net/netrom/nr_in.c | nr_frames_acked(sk, nr); |
nr | 255 | net/netrom/nr_in.c | if (sk->nr->condition & PEER_RX_BUSY_CONDITION) { |
nr | 256 | net/netrom/nr_in.c | nr_frames_acked(sk, nr); |
nr | 258 | net/netrom/nr_in.c | nr_check_iframes_acked(sk, nr); |
nr | 263 | net/netrom/nr_in.c | skb_queue_head(&sk->nr->reseq_queue, skb); |
nr | 264 | net/netrom/nr_in.c | if (sk->nr->condition & OWN_RX_BUSY_CONDITION) |
nr | 268 | net/netrom/nr_in.c | save_vr = sk->nr->vr; |
nr | 269 | net/netrom/nr_in.c | while ((skbn = skb_dequeue(&sk->nr->reseq_queue)) != NULL) { |
nr | 271 | net/netrom/nr_in.c | if (ns == sk->nr->vr) { |
nr | 273 | net/netrom/nr_in.c | sk->nr->vr = (sk->nr->vr + 1) % NR_MODULUS; |
nr | 275 | net/netrom/nr_in.c | sk->nr->condition |= OWN_RX_BUSY_CONDITION; |
nr | 286 | net/netrom/nr_in.c | skb_queue_tail(&sk->nr->reseq_queue, skbn); |
nr | 288 | net/netrom/nr_in.c | } while (save_vr != sk->nr->vr); |
nr | 292 | net/netrom/nr_in.c | if (((sk->nr->vl + sk->window) % NR_MODULUS) == sk->nr->vr) { |
nr | 295 | net/netrom/nr_in.c | if (!(sk->nr->condition & ACK_PENDING_CONDITION)) { |
nr | 296 | net/netrom/nr_in.c | sk->nr->t2timer = sk->nr->t2; |
nr | 297 | net/netrom/nr_in.c | sk->nr->condition |= ACK_PENDING_CONDITION; |
nr | 314 | net/netrom/nr_in.c | if (sk->nr->state == NR_STATE_0 && sk->dead) |
nr | 317 | net/netrom/nr_in.c | if (sk->nr->state != NR_STATE_1 && sk->nr->state != NR_STATE_2 && |
nr | 318 | net/netrom/nr_in.c | sk->nr->state != NR_STATE_3) { |
nr | 319 | net/netrom/nr_in.c | printk("nr_process_rx_frame: frame received - state: %d\n", sk->nr->state); |
nr | 327 | net/netrom/nr_in.c | switch (sk->nr->state) |
nr | 55 | net/netrom/nr_out.c | mtu = sk->nr->paclen; |
nr | 96 | net/netrom/nr_out.c | if (sk->nr->state == NR_STATE_3) |
nr | 109 | net/netrom/nr_out.c | skb->data[2] = sk->nr->vs; |
nr | 110 | net/netrom/nr_out.c | skb->data[3] = sk->nr->vr; |
nr | 112 | net/netrom/nr_out.c | if (sk->nr->condition & OWN_RX_BUSY_CONDITION) |
nr | 122 | net/netrom/nr_out.c | if ((skb = skb_peek(&sk->nr->ack_queue)) == NULL) |
nr | 128 | net/netrom/nr_out.c | skbn->data[2] = sk->nr->va; |
nr | 129 | net/netrom/nr_out.c | skbn->data[3] = sk->nr->vr; |
nr | 131 | net/netrom/nr_out.c | if (sk->nr->condition & OWN_RX_BUSY_CONDITION) |
nr | 136 | net/netrom/nr_out.c | sk->nr->condition &= ~ACK_PENDING_CONDITION; |
nr | 137 | net/netrom/nr_out.c | sk->nr->vl = sk->nr->vr; |
nr | 138 | net/netrom/nr_out.c | sk->nr->t1timer = 0; |
nr | 149 | net/netrom/nr_out.c | start = (skb_peek(&sk->nr->ack_queue) == NULL) ? sk->nr->va : sk->nr->vs; |
nr | 150 | net/netrom/nr_out.c | end = (sk->nr->va + sk->window) % NR_MODULUS; |
nr | 152 | net/netrom/nr_out.c | if (!(sk->nr->condition & PEER_RX_BUSY_CONDITION) && |
nr | 156 | net/netrom/nr_out.c | sk->nr->vs = start; |
nr | 174 | net/netrom/nr_out.c | next = (sk->nr->vs + 1) % NR_MODULUS; |
nr | 182 | net/netrom/nr_out.c | sk->nr->vs = next; |
nr | 187 | net/netrom/nr_out.c | skb_queue_tail(&sk->nr->ack_queue, skb); |
nr | 191 | net/netrom/nr_out.c | sk->nr->vl = sk->nr->vr; |
nr | 192 | net/netrom/nr_out.c | sk->nr->condition &= ~ACK_PENDING_CONDITION; |
nr | 194 | net/netrom/nr_out.c | if (sk->nr->t1timer == 0) { |
nr | 195 | net/netrom/nr_out.c | sk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk); |
nr | 211 | net/netrom/nr_out.c | memcpy(dptr, &sk->nr->source_addr, AX25_ADDR_LEN); |
nr | 217 | net/netrom/nr_out.c | memcpy(dptr, &sk->nr->dest_addr, AX25_ADDR_LEN); |
nr | 245 | net/netrom/nr_out.c | sk->nr->condition = 0x00; |
nr | 246 | net/netrom/nr_out.c | sk->nr->n2count = 0; |
nr | 250 | net/netrom/nr_out.c | sk->nr->t2timer = 0; |
nr | 251 | net/netrom/nr_out.c | sk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk); |
nr | 261 | net/netrom/nr_out.c | if (sk->nr->condition & OWN_RX_BUSY_CONDITION) { |
nr | 264 | net/netrom/nr_out.c | if (skb_peek(&sk->nr->reseq_queue) != NULL) { |
nr | 271 | net/netrom/nr_out.c | sk->nr->vl = sk->nr->vr; |
nr | 272 | net/netrom/nr_out.c | sk->nr->condition &= ~ACK_PENDING_CONDITION; |
nr | 275 | net/netrom/nr_out.c | void nr_check_iframes_acked(struct sock *sk, unsigned short nr) |
nr | 277 | net/netrom/nr_out.c | if (sk->nr->vs == nr) { |
nr | 278 | net/netrom/nr_out.c | nr_frames_acked(sk, nr); |
nr | 280 | net/netrom/nr_out.c | sk->nr->t1timer = 0; |
nr | 281 | net/netrom/nr_out.c | sk->nr->n2count = 0; |
nr | 283 | net/netrom/nr_out.c | if (sk->nr->va != nr) { |
nr | 284 | net/netrom/nr_out.c | nr_frames_acked(sk, nr); |
nr | 285 | net/netrom/nr_out.c | sk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk); |
nr | 67 | net/netrom/nr_route.c | static int nr_add_node(ax25_address *nr, const char *mnemonic, ax25_address *ax25, |
nr | 77 | net/netrom/nr_route.c | if (ax25cmp(nr, &nr_node->callsign) == 0) |
nr | 120 | net/netrom/nr_route.c | nr_node->callsign = *nr; |
nr | 57 | net/netrom/nr_subr.c | while ((skb = skb_dequeue(&sk->nr->ack_queue)) != NULL) { |
nr | 63 | net/netrom/nr_subr.c | while ((skb = skb_dequeue(&sk->nr->reseq_queue)) != NULL) { |
nr | 67 | net/netrom/nr_subr.c | while ((skb = skb_dequeue(&sk->nr->frag_queue)) != NULL) { |
nr | 77 | net/netrom/nr_subr.c | void nr_frames_acked(struct sock *sk, unsigned short nr) |
nr | 84 | net/netrom/nr_subr.c | if (sk->nr->va != nr) { |
nr | 85 | net/netrom/nr_subr.c | while (skb_peek(&sk->nr->ack_queue) != NULL && sk->nr->va != nr) { |
nr | 86 | net/netrom/nr_subr.c | skb = skb_dequeue(&sk->nr->ack_queue); |
nr | 90 | net/netrom/nr_subr.c | sk->nr->va = (sk->nr->va + 1) % NR_MODULUS; |
nr | 104 | net/netrom/nr_subr.c | while ((skb = skb_dequeue(&sk->nr->ack_queue)) != NULL) { |
nr | 117 | net/netrom/nr_subr.c | int nr_validate_nr(struct sock *sk, unsigned short nr) |
nr | 119 | net/netrom/nr_subr.c | unsigned short vc = sk->nr->va; |
nr | 121 | net/netrom/nr_subr.c | while (vc != sk->nr->vs) { |
nr | 122 | net/netrom/nr_subr.c | if (nr == vc) return 1; |
nr | 126 | net/netrom/nr_subr.c | if (nr == sk->nr->vs) return 1; |
nr | 136 | net/netrom/nr_subr.c | unsigned short vc = sk->nr->vr; |
nr | 137 | net/netrom/nr_subr.c | unsigned short vt = (sk->nr->vl + sk->window) % NR_MODULUS; |
nr | 164 | net/netrom/nr_subr.c | len += (sk->nr->bpqext) ? 2 : 1; |
nr | 188 | net/netrom/nr_subr.c | timeout = (sk->nr->rtt / PR_SLOWHZ) * 2; |
nr | 189 | net/netrom/nr_subr.c | *dptr++ = sk->nr->my_index; |
nr | 190 | net/netrom/nr_subr.c | *dptr++ = sk->nr->my_id; |
nr | 195 | net/netrom/nr_subr.c | memcpy(dptr, &sk->nr->user_addr, AX25_ADDR_LEN); |
nr | 200 | net/netrom/nr_subr.c | memcpy(dptr, &sk->nr->source_addr, AX25_ADDR_LEN); |
nr | 210 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_index; |
nr | 211 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_id; |
nr | 212 | net/netrom/nr_subr.c | *dptr++ = sk->nr->my_index; |
nr | 213 | net/netrom/nr_subr.c | *dptr++ = sk->nr->my_id; |
nr | 216 | net/netrom/nr_subr.c | if (sk->nr->bpqext) *dptr++ = nr_default.ttl; |
nr | 221 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_index; |
nr | 222 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_id; |
nr | 229 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_index; |
nr | 230 | net/netrom/nr_subr.c | *dptr++ = sk->nr->your_id; |
nr | 232 | net/netrom/nr_subr.c | *dptr++ = sk->nr->vr; |
nr | 296 | net/netrom/nr_subr.c | for (t = 2, n = 0; n < sk->nr->n2count; n++) |
nr | 301 | net/netrom/nr_subr.c | return t * sk->nr->rtt; |
nr | 309 | net/netrom/nr_subr.c | if (sk->nr->t1timer > 0 && sk->nr->n2count == 0) |
nr | 310 | net/netrom/nr_subr.c | sk->nr->rtt = (9 * sk->nr->rtt + sk->nr->t1 - sk->nr->t1timer) / 10; |
nr | 314 | net/netrom/nr_subr.c | if (sk->nr->rtt < (NR_T1CLAMPLO)) |
nr | 315 | net/netrom/nr_subr.c | sk->nr->rtt = (NR_T1CLAMPLO); |
nr | 317 | net/netrom/nr_subr.c | if (sk->nr->rtt == 0) |
nr | 318 | net/netrom/nr_subr.c | sk->nr->rtt = PR_SLOWHZ; |
nr | 322 | net/netrom/nr_subr.c | if (sk->nr->rtt > (NR_T1CLAMPHI)) |
nr | 323 | net/netrom/nr_subr.c | sk->nr->rtt = (NR_T1CLAMPHI); |
nr | 90 | net/netrom/nr_timer.c | switch (sk->nr->state) { |
nr | 105 | net/netrom/nr_timer.c | if (sk->rmem_alloc < (sk->rcvbuf / 2) && (sk->nr->condition & OWN_RX_BUSY_CONDITION)) { |
nr | 106 | net/netrom/nr_timer.c | sk->nr->condition &= ~OWN_RX_BUSY_CONDITION; |
nr | 108 | net/netrom/nr_timer.c | sk->nr->condition &= ~ACK_PENDING_CONDITION; |
nr | 109 | net/netrom/nr_timer.c | sk->nr->vl = sk->nr->vr; |
nr | 122 | net/netrom/nr_timer.c | if (sk->nr->t2timer > 0 && --sk->nr->t2timer == 0) { |
nr | 123 | net/netrom/nr_timer.c | if (sk->nr->state == NR_STATE_3) { |
nr | 124 | net/netrom/nr_timer.c | if (sk->nr->condition & ACK_PENDING_CONDITION) { |
nr | 125 | net/netrom/nr_timer.c | sk->nr->condition &= ~ACK_PENDING_CONDITION; |
nr | 131 | net/netrom/nr_timer.c | if (sk->nr->t4timer > 0 && --sk->nr->t4timer == 0) { |
nr | 132 | net/netrom/nr_timer.c | sk->nr->condition &= ~PEER_RX_BUSY_CONDITION; |
nr | 135 | net/netrom/nr_timer.c | if (sk->nr->t1timer == 0 || --sk->nr->t1timer > 0) { |
nr | 140 | net/netrom/nr_timer.c | switch (sk->nr->state) { |
nr | 142 | net/netrom/nr_timer.c | if (sk->nr->n2count == sk->nr->n2) { |
nr | 144 | net/netrom/nr_timer.c | sk->nr->state = NR_STATE_0; |
nr | 151 | net/netrom/nr_timer.c | sk->nr->n2count++; |
nr | 157 | net/netrom/nr_timer.c | if (sk->nr->n2count == sk->nr->n2) { |
nr | 159 | net/netrom/nr_timer.c | sk->nr->state = NR_STATE_0; |
nr | 166 | net/netrom/nr_timer.c | sk->nr->n2count++; |
nr | 172 | net/netrom/nr_timer.c | if (sk->nr->n2count == sk->nr->n2) { |
nr | 174 | net/netrom/nr_timer.c | sk->nr->state = NR_STATE_0; |
nr | 181 | net/netrom/nr_timer.c | sk->nr->n2count++; |
nr | 187 | net/netrom/nr_timer.c | sk->nr->t1timer = sk->nr->t1 = nr_calculate_t1(sk); |