tag | line | file | source code |
p | 120 | arch/alpha/kernel/process.c | struct task_struct * p, struct pt_regs * regs) |
p | 129 | arch/alpha/kernel/process.c | childregs = (struct pt_regs *) (p->kernel_stack_page + stack_offset); |
p | 140 | arch/alpha/kernel/process.c | p->tss.usp = usp; |
p | 141 | arch/alpha/kernel/process.c | p->tss.ksp = (unsigned long) childstack; |
p | 142 | arch/alpha/kernel/process.c | p->tss.flags = 1; |
p | 216 | arch/i386/boot/compressed/gzip.h | #define SH(p) ((ush)(uch)((p)[0]) | ((ush)(uch)((p)[1]) << 8)) |
p | 217 | arch/i386/boot/compressed/gzip.h | #define LG(p) ((ulg)(SH(p)) | ((ulg)(SH((p)+2)) << 16)) |
p | 122 | arch/i386/boot/compressed/inflate.c | register unsigned *p; /* pointer into c[], b[], or v[] */ |
p | 137 | arch/i386/boot/compressed/inflate.c | p = b; i = n; |
p | 139 | arch/i386/boot/compressed/inflate.c | c[*p++]++; /* assume all entries <= BMAX */ |
p | 180 | arch/i386/boot/compressed/inflate.c | p = c + 1; xp = x + 2; |
p | 182 | arch/i386/boot/compressed/inflate.c | *xp++ = (j += *p++); |
p | 188 | arch/i386/boot/compressed/inflate.c | p = b; i = 0; |
p | 190 | arch/i386/boot/compressed/inflate.c | if ((j = *p++) != 0) |
p | 198 | arch/i386/boot/compressed/inflate.c | p = v; /* grab values in bit order */ |
p | 264 | arch/i386/boot/compressed/inflate.c | if (p >= v + n) |
p | 266 | arch/i386/boot/compressed/inflate.c | else if (*p < s) |
p | 268 | arch/i386/boot/compressed/inflate.c | r.e = (uch)(*p < 256 ? 16 : 15); /* 256 is end-of-block code */ |
p | 269 | arch/i386/boot/compressed/inflate.c | r.v.n = *p++; /* simple code is just the value */ |
p | 273 | arch/i386/boot/compressed/inflate.c | r.e = (uch)e[*p - s]; /* non-simple--look up in lists */ |
p | 274 | arch/i386/boot/compressed/inflate.c | r.v.n = d[*p++ - s]; |
p | 313 | arch/i386/boot/compressed/inflate.c | register struct huft *p, *q; |
p | 317 | arch/i386/boot/compressed/inflate.c | p = t; |
p | 318 | arch/i386/boot/compressed/inflate.c | while (p != (struct huft *)NULL) |
p | 320 | arch/i386/boot/compressed/inflate.c | q = (--p)->v.t; |
p | 321 | arch/i386/boot/compressed/inflate.c | free(p); |
p | 322 | arch/i386/boot/compressed/inflate.c | p = q; |
p | 86 | arch/i386/boot/compressed/misc.c | void *p; |
p | 94 | arch/i386/boot/compressed/misc.c | p = (void *)free_mem_ptr; |
p | 107 | arch/i386/boot/compressed/misc.c | return p; |
p | 110 | arch/i386/boot/compressed/misc.c | return p; |
p | 276 | arch/i386/boot/compressed/misc.c | static int p[] = {0,1,2,4,5,7,8,10,11,12,16,22,23,26}; |
p | 280 | arch/i386/boot/compressed/misc.c | for (i = 0; i < sizeof(p)/sizeof(int); i++) |
p | 281 | arch/i386/boot/compressed/misc.c | e |= 1L << (31 - p[i]); |
p | 186 | arch/i386/kernel/process.c | struct task_struct * p, struct pt_regs * regs) |
p | 191 | arch/i386/kernel/process.c | p->tss.es = KERNEL_DS; |
p | 192 | arch/i386/kernel/process.c | p->tss.cs = KERNEL_CS; |
p | 193 | arch/i386/kernel/process.c | p->tss.ss = KERNEL_DS; |
p | 194 | arch/i386/kernel/process.c | p->tss.ds = KERNEL_DS; |
p | 195 | arch/i386/kernel/process.c | p->tss.fs = USER_DS; |
p | 196 | arch/i386/kernel/process.c | p->tss.gs = KERNEL_DS; |
p | 197 | arch/i386/kernel/process.c | p->tss.ss0 = KERNEL_DS; |
p | 198 | arch/i386/kernel/process.c | p->tss.esp0 = p->kernel_stack_page + PAGE_SIZE; |
p | 199 | arch/i386/kernel/process.c | p->tss.tr = _TSS(nr); |
p | 200 | arch/i386/kernel/process.c | childregs = ((struct pt_regs *) (p->kernel_stack_page + PAGE_SIZE)) - 1; |
p | 201 | arch/i386/kernel/process.c | p->tss.esp = (unsigned long) childregs; |
p | 202 | arch/i386/kernel/process.c | p->tss.eip = (unsigned long) ret_from_sys_call; |
p | 206 | arch/i386/kernel/process.c | p->tss.back_link = 0; |
p | 207 | arch/i386/kernel/process.c | p->tss.eflags = regs->eflags & 0xffffcfff; /* iopl is always 0 for a new process */ |
p | 208 | arch/i386/kernel/process.c | p->tss.ldt = _LDT(nr); |
p | 209 | arch/i386/kernel/process.c | if (p->ldt) { |
p | 210 | arch/i386/kernel/process.c | p->ldt = (struct desc_struct*) vmalloc(LDT_ENTRIES*LDT_ENTRY_SIZE); |
p | 211 | arch/i386/kernel/process.c | if (p->ldt != NULL) |
p | 212 | arch/i386/kernel/process.c | memcpy(p->ldt, current->ldt, LDT_ENTRIES*LDT_ENTRY_SIZE); |
p | 214 | arch/i386/kernel/process.c | set_tss_desc(gdt+(nr<<1)+FIRST_TSS_ENTRY,&(p->tss)); |
p | 215 | arch/i386/kernel/process.c | if (p->ldt) |
p | 216 | arch/i386/kernel/process.c | set_ldt_desc(gdt+(nr<<1)+FIRST_LDT_ENTRY,p->ldt, 512); |
p | 219 | arch/i386/kernel/process.c | p->tss.bitmap = offsetof(struct thread_struct,io_bitmap); |
p | 221 | arch/i386/kernel/process.c | p->tss.io_bitmap[i] = ~0; |
p | 223 | arch/i386/kernel/process.c | __asm__("clts ; fnsave %0 ; frstor %0":"=m" (p->tss.i387)); |
p | 590 | arch/i386/kernel/smp.c | int p=smp_processor_id(); |
p | 612 | arch/i386/kernel/smp.c | if(smp_cpu_in_msg[p]) |
p | 634 | arch/i386/kernel/smp.c | smp_cpu_in_msg[p]++; |
p | 642 | arch/i386/kernel/smp.c | smp_src_cpu=p; |
p | 728 | arch/i386/kernel/smp.c | smp_cpu_in_msg[p]--; |
p | 351 | arch/i386/kernel/traps.c | struct desc_struct * p; |
p | 386 | arch/i386/kernel/traps.c | p = gdt+FIRST_TSS_ENTRY; |
p | 387 | arch/i386/kernel/traps.c | set_tss_desc(p, &init_task.tss); |
p | 388 | arch/i386/kernel/traps.c | p++; |
p | 389 | arch/i386/kernel/traps.c | set_ldt_desc(p, &default_ldt, 1); |
p | 390 | arch/i386/kernel/traps.c | p++; |
p | 392 | arch/i386/kernel/traps.c | p->a=p->b=0; |
p | 393 | arch/i386/kernel/traps.c | p++; |
p | 394 | arch/i386/kernel/traps.c | p->a=p->b=0; |
p | 395 | arch/i386/kernel/traps.c | p++; |
p | 87 | arch/mips/kernel/ioport.c | resource_entry_t *p; |
p | 93 | arch/mips/kernel/ioport.c | for (p = root; ; p = p->next) { |
p | 94 | arch/mips/kernel/ioport.c | if ((p != root) && (p->from+p->num-1 >= from)) { |
p | 95 | arch/mips/kernel/ioport.c | p = NULL; |
p | 98 | arch/mips/kernel/ioport.c | if ((p->next == NULL) || (p->next->from > from+num-1)) |
p | 102 | arch/mips/kernel/ioport.c | return p; |
p | 97 | arch/mips/kernel/process.c | void copy_thread(int nr, unsigned long clone_flags, struct task_struct * p, struct pt_regs * regs) |
p | 104 | arch/mips/kernel/process.c | p->tss.fs = KERNEL_DS; |
p | 105 | arch/mips/kernel/process.c | p->tss.ksp = (p->kernel_stack_page + PAGE_SIZE - 4) | KSEG0; |
p | 106 | arch/mips/kernel/process.c | childregs = ((struct pt_regs *) (p->kernel_stack_page + PAGE_SIZE)) - 1; |
p | 107 | arch/mips/kernel/process.c | p->tss.reg29 = ((unsigned long) childregs) | KSEG0; /* new sp */ |
p | 108 | arch/mips/kernel/process.c | p->tss.reg31 = (unsigned long) ret_from_sys_call; |
p | 116 | arch/mips/kernel/process.c | p->tss.cp0_status = regs->cp0_status & |
p | 94 | arch/sparc/kernel/process.c | struct task_struct * p, struct pt_regs * regs) |
p | 102 | arch/sparc/kernel/process.c | p->tss.context = -1; |
p | 106 | arch/sparc/kernel/process.c | ((p->kernel_stack_page + PAGE_SIZE - 80)&(~7))); |
p | 110 | arch/sparc/kernel/process.c | p->tss.usp = sp; /* both processes have the same user stack */ |
p | 116 | arch/sparc/kernel/process.c | p->tss.ksp = (unsigned long) ((p->kernel_stack_page + PAGE_SIZE - 80 - 96)&(~7)); |
p | 117 | arch/sparc/kernel/process.c | new_stack = (unsigned char *) (p->tss.ksp); |
p | 127 | arch/sparc/kernel/process.c | p->tss.pc = (((unsigned long) ret_sys_call) - 8); |
p | 128 | arch/sparc/kernel/process.c | p->tss.npc = p->tss.pc+4; |
p | 131 | arch/sparc/kernel/process.c | regs->u_regs[8] = p->pid; |
p | 62 | arch/sparc/kernel/setup.c | void sparc_console_print(const char * p) |
p | 66 | arch/sparc/kernel/setup.c | while ((c = *(p++)) != 0) |
p | 266 | drivers/block/aztcd.c | static void azt_bin2bcd(unsigned char *p); |
p | 1693 | drivers/block/aztcd.c | static void azt_bin2bcd(unsigned char *p) |
p | 1696 | drivers/block/aztcd.c | u = *p % 10; |
p | 1697 | drivers/block/aztcd.c | t = *p / 10; |
p | 1698 | drivers/block/aztcd.c | *p = u | (t << 4); |
p | 1234 | drivers/block/cm206.c | void cm206_setup(char *s, int *p) |
p | 1238 | drivers/block/cm206.c | for(i=1; i<=p[0]; i++) { |
p | 1239 | drivers/block/cm206.c | if (0x300 <= p[i] && i<= 0x370 && p[i] % 0x10 == 0) { |
p | 1240 | drivers/block/cm206.c | cm206_base = p[i]; |
p | 1243 | drivers/block/cm206.c | else if (3 <= p[i] && p[i] <= 15) { |
p | 1244 | drivers/block/cm206.c | cm206_irq = p[i]; |
p | 73 | drivers/block/genhd.c | static inline int is_extended_partition(struct partition *p) |
p | 75 | drivers/block/genhd.c | return (p->sys_ind == DOS_EXTENDED_PARTITION || |
p | 76 | drivers/block/genhd.c | p->sys_ind == LINUX_EXTENDED_PARTITION); |
p | 94 | drivers/block/genhd.c | struct partition *p; |
p | 119 | drivers/block/genhd.c | p = (struct partition *) (0x1BE + bh->b_data); |
p | 135 | drivers/block/genhd.c | for (i=0; i<4; i++, p++) { |
p | 136 | drivers/block/genhd.c | if (!p->nr_sects || is_extended_partition(p)) |
p | 142 | drivers/block/genhd.c | && p->start_sect + p->nr_sects > this_size |
p | 143 | drivers/block/genhd.c | && (this_sector + p->start_sect < first_sector || |
p | 144 | drivers/block/genhd.c | this_sector + p->start_sect + p->nr_sects > |
p | 148 | drivers/block/genhd.c | add_partition(hd, current_minor, this_sector+p->start_sect, p->nr_sects); |
p | 163 | drivers/block/genhd.c | p -= 4; |
p | 164 | drivers/block/genhd.c | for (i=0; i<4; i++, p++) |
p | 165 | drivers/block/genhd.c | if(p->nr_sects && is_extended_partition(p)) |
p | 170 | drivers/block/genhd.c | hd->part[current_minor].nr_sects = p->nr_sects; |
p | 171 | drivers/block/genhd.c | hd->part[current_minor].start_sect = first_sector + p->start_sect; |
p | 172 | drivers/block/genhd.c | this_sector = first_sector + p->start_sect; |
p | 184 | drivers/block/genhd.c | struct partition *p; |
p | 207 | drivers/block/genhd.c | p = (struct partition *) (0x1be + data); |
p | 216 | drivers/block/genhd.c | if (p->sys_ind == EZD_PARTITION) { |
p | 229 | drivers/block/genhd.c | } else if (p->sys_ind == DM6_PARTITION) { |
p | 255 | drivers/block/genhd.c | if (p->sys_ind == DM6_AUX1PARTITION |
p | 256 | drivers/block/genhd.c | || p->sys_ind == DM6_AUX3PARTITION) |
p | 266 | drivers/block/genhd.c | for (i=1 ; i<=4 ; minor++,i++,p++) { |
p | 267 | drivers/block/genhd.c | if (!p->nr_sects) |
p | 269 | drivers/block/genhd.c | add_partition(hd, minor, first_sector+p->start_sect, p->nr_sects); |
p | 270 | drivers/block/genhd.c | if (is_extended_partition(p)) { |
p | 292 | drivers/block/genhd.c | p = (struct partition *) (0x1be + data); |
p | 294 | drivers/block/genhd.c | p--; |
p | 297 | drivers/block/genhd.c | if (!(p->start_sect && p->nr_sects)) |
p | 299 | drivers/block/genhd.c | add_partition(hd, current_minor, p->start_sect, p->nr_sects); |
p | 470 | drivers/block/genhd.c | struct gendisk *p; |
p | 484 | drivers/block/genhd.c | for (p = gendisk_head ; p ; p=p->next) { |
p | 485 | drivers/block/genhd.c | setup_dev(p); |
p | 486 | drivers/block/genhd.c | nr += p->nr_real; |
p | 90 | drivers/block/gscd.c | static void gscd_bin2bcd (unsigned char *p); |
p | 1101 | drivers/block/gscd.c | static void gscd_bin2bcd (unsigned char *p) |
p | 1105 | drivers/block/gscd.c | u = *p % 10; |
p | 1106 | drivers/block/gscd.c | t = *p / 10; |
p | 1107 | drivers/block/gscd.c | *p = u | (t << 4); |
p | 258 | drivers/block/hd.c | unsigned char *p, *end = &s[bytecount &= ~1]; /* bytecount must be even */ |
p | 261 | drivers/block/hd.c | for (p = end ; p != s;) { |
p | 262 | drivers/block/hd.c | unsigned short *pp = (unsigned short *) (p -= 2); |
p | 273 | drivers/block/hd.c | *p++ = *(s-1); |
p | 277 | drivers/block/hd.c | while (p != end) |
p | 278 | drivers/block/hd.c | *p++ = '\0'; |
p | 1376 | drivers/block/ide-cd.c | struct request **p, **pfirst; |
p | 1389 | drivers/block/ide-cd.c | p = &blk_dev[major].current_request; |
p | 1390 | drivers/block/ide-cd.c | pfirst = p; |
p | 1391 | drivers/block/ide-cd.c | while ((*p) != NULL) |
p | 1393 | drivers/block/ide-cd.c | p = &((*p)->next); |
p | 1395 | drivers/block/ide-cd.c | *p = req; |
p | 1396 | drivers/block/ide-cd.c | if (p == pfirst) |
p | 240 | drivers/block/ide.c | byte *p; |
p | 252 | drivers/block/ide.c | p = ((byte *) ide_hwifs) + sizeof(ide_hwifs); |
p | 254 | drivers/block/ide.c | *--p = 0; |
p | 255 | drivers/block/ide.c | } while (p > (byte *) ide_hwifs); |
p | 1697 | drivers/block/ide.c | unsigned int p, major, minor; |
p | 1714 | drivers/block/ide.c | for (p = 0; p < (1<<PARTN_BITS); ++p) { |
p | 1715 | drivers/block/ide.c | if (drive->part[p].nr_sects > 0) { |
p | 1716 | drivers/block/ide.c | kdev_t devp = MKDEV(major, minor+p); |
p | 1721 | drivers/block/ide.c | drive->part[p].start_sect = 0; |
p | 1722 | drivers/block/ide.c | drive->part[p].nr_sects = 0; |
p | 1931 | drivers/block/ide.c | byte *p = s, *end = &s[bytecount & ~1]; /* bytecount must be even */ |
p | 1935 | drivers/block/ide.c | for (p = end ; p != s;) { |
p | 1936 | drivers/block/ide.c | unsigned short *pp = (unsigned short *) (p -= 2); |
p | 1948 | drivers/block/ide.c | *p++ = *(s-1); |
p | 1952 | drivers/block/ide.c | while (p != end) |
p | 1953 | drivers/block/ide.c | *p++ = '\0'; |
p | 111 | drivers/block/ide.h | #define OUT_BYTE(b,p) outb((b),p) |
p | 112 | drivers/block/ide.h | #define IN_BYTE(p) (byte)inb(p) |
p | 114 | drivers/block/ide.h | #define OUT_BYTE(b,p) outb_p((b),p) |
p | 115 | drivers/block/ide.h | #define IN_BYTE(p) (byte)inb_p(p) |
p | 191 | drivers/block/mcd.c | static void bin2bcd(unsigned char *p); |
p | 1287 | drivers/block/mcd.c | bin2bcd(unsigned char *p) |
p | 1291 | drivers/block/mcd.c | u = *p % 10; |
p | 1292 | drivers/block/mcd.c | t = *p / 10; |
p | 1293 | drivers/block/mcd.c | *p = u | (t << 4); |
p | 1184 | drivers/block/mcdx.c | char *p, int sector, int nr_sectors) |
p | 1258 | drivers/block/mcdx.c | insb((unsigned int) stuffp->rreg_data, p, HEAD); |
p | 1264 | drivers/block/mcdx.c | insb((unsigned int) stuffp->rreg_data, p, 512); |
p | 1277 | drivers/block/mcdx.c | p += 512; |
p | 1499 | drivers/block/mcdx.c | struct s_subqcode* p; |
p | 1504 | drivers/block/mcdx.c | if (ti) p = &stuffp->toc[ti->cdti_trk0 - stuffp->di.n_first]; |
p | 1505 | drivers/block/mcdx.c | else p = &stuffp->start; |
p | 1507 | drivers/block/mcdx.c | msf.cdmsf_min0 = p->dt.minute; |
p | 1508 | drivers/block/mcdx.c | msf.cdmsf_sec0 = p->dt.second; |
p | 1509 | drivers/block/mcdx.c | msf.cdmsf_frame0 = p->dt.frame; |
p | 1512 | drivers/block/mcdx.c | p = &stuffp->toc[ti->cdti_trk1 - stuffp->di.n_first + 1]; |
p | 1513 | drivers/block/mcdx.c | stuffp->stop = *p; |
p | 1514 | drivers/block/mcdx.c | } else p = &stuffp->stop; |
p | 1516 | drivers/block/mcdx.c | msf.cdmsf_min1 = p->dt.minute; |
p | 1517 | drivers/block/mcdx.c | msf.cdmsf_sec1 = p->dt.second; |
p | 1518 | drivers/block/mcdx.c | msf.cdmsf_frame1 = p->dt.frame; |
p | 406 | drivers/block/optcd.c | inline static unsigned char bin2bcd(unsigned char p) { |
p | 408 | drivers/block/optcd.c | if (p > 99) |
p | 409 | drivers/block/optcd.c | printk("optcd: error bin2bcd %d\n", p); |
p | 411 | drivers/block/optcd.c | return (p % 10) | ((p / 10) << 4); |
p | 1506 | drivers/block/optcd.c | #define ISP16_IN(p) (outb(isp16_ctrl,ISP16_CTRL_PORT), inb(p)) |
p | 1507 | drivers/block/optcd.c | #define ISP16_OUT(p,b) (outb(isp16_ctrl,ISP16_CTRL_PORT), outb(b,p)) |
p | 804 | drivers/block/sbpcd.c | static INLINE void bin2bcdx(u_char *p) /* must work only up to 75 or 99 */ |
p | 806 | drivers/block/sbpcd.c | *p=((*p/10)<<4)|(*p%10); |
p | 2721 | drivers/block/sbpcd.c | static int convert_UPC(u_char *p) |
p | 2725 | drivers/block/sbpcd.c | p++; |
p | 2726 | drivers/block/sbpcd.c | if (fam0L_drive) p[13]=0; |
p | 2729 | drivers/block/sbpcd.c | if (fam1_drive) D_S[d].UPC_buf[i]=swap_nibbles(*p++); |
p | 2732 | drivers/block/sbpcd.c | D_S[d].UPC_buf[i]=((*p++)<<4)&0xFF; |
p | 2733 | drivers/block/sbpcd.c | D_S[d].UPC_buf[i] |= *p++; |
p | 4127 | drivers/block/sbpcd.c | u_char *p; |
p | 4245 | drivers/block/sbpcd.c | p = D_S[d].aud_buf; |
p | 4247 | drivers/block/sbpcd.c | insb(CDi_data, p, read_audio.nframes*CD_FRAMESIZE_RAW); |
p | 4571 | drivers/block/sbpcd.c | u_char *p; |
p | 4656 | drivers/block/sbpcd.c | p = D_S[d].sbp_buf + frame * CD_FRAMESIZE; |
p | 4659 | drivers/block/sbpcd.c | insb(CDi_data, p, CD_FRAMESIZE); |
p | 5004 | drivers/block/sbpcd.c | void sbpcd_setup(const char *s, int *p) |
p | 5007 | drivers/block/sbpcd.c | msg(DBG_INI,"sbpcd_setup called with %04X,%s\n",p[1], s); |
p | 5009 | drivers/block/sbpcd.c | if (p[0]>1) sbpro_type=p[2]; |
p | 5016 | drivers/block/sbpcd.c | if (p[0]>0) sbpcd_ioaddr=p[1]; |
p | 1455 | drivers/block/sjcd.c | #define ISP16_IN(p) (outb(isp16_ctrl,ISP16_CTRL_PORT), inb(p)) |
p | 1456 | drivers/block/sjcd.c | #define ISP16_OUT(p,b) (outb(isp16_ctrl,ISP16_CTRL_PORT), outb(b,p)) |
p | 36 | drivers/char/conmakehash.c | char *p = *p0; |
p | 38 | drivers/char/conmakehash.c | while (*p == ' ' || *p == '\t') |
p | 39 | drivers/char/conmakehash.c | p++; |
p | 40 | drivers/char/conmakehash.c | if (*p != 'U' || p[1] != '+' || |
p | 41 | drivers/char/conmakehash.c | !isxdigit(p[2]) || !isxdigit(p[3]) || !isxdigit(p[4]) || |
p | 42 | drivers/char/conmakehash.c | !isxdigit(p[5]) || isxdigit(p[6])) |
p | 44 | drivers/char/conmakehash.c | *p0 = p+6; |
p | 45 | drivers/char/conmakehash.c | return strtol(p+2,0,16); |
p | 88 | drivers/char/conmakehash.c | char *p, *p1; |
p | 120 | drivers/char/conmakehash.c | if ( (p = strchr(buffer, '\n')) != NULL ) |
p | 121 | drivers/char/conmakehash.c | *p = '\0'; |
p | 125 | drivers/char/conmakehash.c | p = buffer; |
p | 138 | drivers/char/conmakehash.c | while (*p == ' ' || *p == '\t') |
p | 139 | drivers/char/conmakehash.c | p++; |
p | 140 | drivers/char/conmakehash.c | if (!*p || *p == '#') |
p | 143 | drivers/char/conmakehash.c | fp0 = strtol(p, &p1, 0); |
p | 144 | drivers/char/conmakehash.c | if (p1 == p) |
p | 149 | drivers/char/conmakehash.c | p = p1; |
p | 151 | drivers/char/conmakehash.c | while (*p == ' ' || *p == '\t') |
p | 152 | drivers/char/conmakehash.c | p++; |
p | 153 | drivers/char/conmakehash.c | if (*p == '-') |
p | 155 | drivers/char/conmakehash.c | p++; |
p | 156 | drivers/char/conmakehash.c | fp1 = strtol(p, &p1, 0); |
p | 157 | drivers/char/conmakehash.c | if (p1 == p) |
p | 162 | drivers/char/conmakehash.c | p = p1; |
p | 186 | drivers/char/conmakehash.c | while (*p == ' ' || *p == '\t') |
p | 187 | drivers/char/conmakehash.c | p++; |
p | 188 | drivers/char/conmakehash.c | if (!strncmp(p, "idem", 4)) |
p | 192 | drivers/char/conmakehash.c | p += 4; |
p | 196 | drivers/char/conmakehash.c | un0 = getunicode(&p); |
p | 197 | drivers/char/conmakehash.c | while (*p == ' ' || *p == '\t') |
p | 198 | drivers/char/conmakehash.c | p++; |
p | 199 | drivers/char/conmakehash.c | if (*p != '-') |
p | 206 | drivers/char/conmakehash.c | p++; |
p | 207 | drivers/char/conmakehash.c | un1 = getunicode(&p); |
p | 230 | drivers/char/conmakehash.c | while ( (un0 = getunicode(&p)) >= 0 ) |
p | 233 | drivers/char/conmakehash.c | while (*p == ' ' || *p == '\t') |
p | 234 | drivers/char/conmakehash.c | p++; |
p | 235 | drivers/char/conmakehash.c | if (*p && *p != '#') |
p | 236 | drivers/char/conmakehash.c | fprintf(stderr, "%s: trailing junk (%s) ignored\n", tblname, p); |
p | 350 | drivers/char/console.c | long p, q; |
p | 362 | drivers/char/console.c | p = (long) kmalloc(structsize, GFP_KERNEL); |
p | 363 | drivers/char/console.c | if (!p) { |
p | 368 | drivers/char/console.c | vc_cons[i].d = (struct vc_data *) p; |
p | 369 | drivers/char/console.c | p += sizeof(struct vc_data); |
p | 370 | drivers/char/console.c | vt_cons[i] = (struct vt_struct *) p; |
p | 388 | drivers/char/console.c | unsigned short *p; |
p | 411 | drivers/char/console.c | p = (unsigned short *) kmalloc(ss, GFP_USER); |
p | 412 | drivers/char/console.c | if (!p) { |
p | 418 | drivers/char/console.c | newscreens[currcons] = p; |
p | 1011 | drivers/char/console.c | static void respond_string(const char * p, struct tty_struct * tty) |
p | 1013 | drivers/char/console.c | while (*p) { |
p | 1014 | drivers/char/console.c | tty_insert_flip_char(tty, *p, 0); |
p | 1015 | drivers/char/console.c | p++; |
p | 1057 | drivers/char/console.c | unsigned short *p = (unsigned short *)(origin + offset); |
p | 1059 | drivers/char/console.c | p -= (__real_origin - __origin); |
p | 1060 | drivers/char/console.c | return p; |
p | 1066 | drivers/char/console.c | unsigned short *p; |
p | 1069 | drivers/char/console.c | p = screenpos(currcons, offset, viewed); |
p | 1072 | drivers/char/console.c | unsigned short old = scr_readw(p); |
p | 1073 | drivers/char/console.c | scr_writew(reverse_video_short(old), p); |
p | 1074 | drivers/char/console.c | p++; |
p | 1078 | drivers/char/console.c | unsigned short old = scr_readw(p); |
p | 1080 | drivers/char/console.c | ? 0x7000 : 0x7700), p); |
p | 1081 | drivers/char/console.c | p++; |
p | 1088 | drivers/char/console.c | static unsigned short *p = NULL; |
p | 1091 | drivers/char/console.c | if (p) |
p | 1092 | drivers/char/console.c | scr_writew(old, p); |
p | 1094 | drivers/char/console.c | p = NULL; |
p | 1096 | drivers/char/console.c | p = screenpos(currcons, offset, 1); |
p | 1097 | drivers/char/console.c | old = scr_readw(p); |
p | 1098 | drivers/char/console.c | scr_writew(old ^ 0x7700, p); |
p | 1122 | drivers/char/console.c | void getconsxy(int currcons, char *p) |
p | 1124 | drivers/char/console.c | p[0] = x; |
p | 1125 | drivers/char/console.c | p[1] = y; |
p | 1128 | drivers/char/console.c | void putconsxy(int currcons, char *p) |
p | 1130 | drivers/char/console.c | gotoxy(currcons, p[0], p[1]); |
p | 1233 | drivers/char/console.c | unsigned short * p = (unsigned short *) pos; |
p | 1236 | drivers/char/console.c | tmp = scr_readw(p); |
p | 1237 | drivers/char/console.c | scr_writew(old, p); |
p | 1239 | drivers/char/console.c | p++; |
p | 1253 | drivers/char/console.c | unsigned short * p = (unsigned short *) pos; |
p | 1256 | drivers/char/console.c | scr_writew(scr_readw(p+1), p); |
p | 1257 | drivers/char/console.c | p++; |
p | 1259 | drivers/char/console.c | scr_writew(video_erase_char, p); |
p | 172 | drivers/char/consolemap.c | unsigned short *p = translations[i]; |
p | 187 | drivers/char/consolemap.c | glyph = conv_uni_to_pc(p[j]); |
p | 230 | drivers/char/consolemap.c | unsigned short *p = translations[USER_MAP]; |
p | 237 | drivers/char/consolemap.c | p[i] = UNI_DIRECT_BASE | get_user(arg+i); |
p | 246 | drivers/char/consolemap.c | unsigned short *p = translations[USER_MAP]; |
p | 254 | drivers/char/consolemap.c | ch = conv_uni_to_pc(p[i]); |
p | 263 | drivers/char/consolemap.c | unsigned short *p = translations[USER_MAP]; |
p | 271 | drivers/char/consolemap.c | p[i] = get_user(arg+i); |
p | 280 | drivers/char/consolemap.c | unsigned short *p = translations[USER_MAP]; |
p | 288 | drivers/char/consolemap.c | put_user(p[i], arg+i); |
p | 398 | drivers/char/consolemap.c | u16 *p; |
p | 404 | drivers/char/consolemap.c | p = dfont_unitable; |
p | 407 | drivers/char/consolemap.c | con_insert_unipair(*(p++), i); |
p | 41 | drivers/char/mem.c | unsigned long p = file->f_pos; |
p | 44 | drivers/char/mem.c | p += PAGE_OFFSET; |
p | 47 | drivers/char/mem.c | if (MAP_NR(p) >= MAP_NR(high_memory)) |
p | 49 | drivers/char/mem.c | if (count > high_memory - p) |
p | 50 | drivers/char/mem.c | count = high_memory - p; |
p | 53 | drivers/char/mem.c | while (p < PAGE_OFFSET + PAGE_SIZE && count > 0) { |
p | 56 | drivers/char/mem.c | p++; |
p | 61 | drivers/char/mem.c | memcpy_tofs(buf, (void *) p, count); |
p | 69 | drivers/char/mem.c | unsigned long p = file->f_pos; |
p | 72 | drivers/char/mem.c | p += PAGE_OFFSET; |
p | 75 | drivers/char/mem.c | if (MAP_NR(p) >= MAP_NR(high_memory)) |
p | 77 | drivers/char/mem.c | if (count > high_memory - p) |
p | 78 | drivers/char/mem.c | count = high_memory - p; |
p | 81 | drivers/char/mem.c | while (PAGE_OFFSET + p < PAGE_SIZE && count > 0) { |
p | 84 | drivers/char/mem.c | p++; |
p | 89 | drivers/char/mem.c | memcpy_fromfs((void *) p, buf, count); |
p | 531 | drivers/char/n_tty.c | const unsigned char *p; |
p | 553 | drivers/char/n_tty.c | for (i=count, p = cp, f = fp; i; i--, p++) { |
p | 558 | drivers/char/n_tty.c | n_tty_receive_char(tty, *p); |
p | 565 | drivers/char/n_tty.c | n_tty_receive_parity_error(tty, *p); |
p | 339 | drivers/char/random.c | __u32 *p; |
p | 348 | drivers/char/random.c | for (i = 0, p = (__u32 *) r->pool; i < num_passes; i++) { |
p | 350 | drivers/char/random.c | iv[0] = (*p++ ^= iv[0]); |
p | 351 | drivers/char/random.c | iv[1] = (*p++ ^= iv[1]); |
p | 352 | drivers/char/random.c | iv[2] = (*p++ ^= iv[2]); |
p | 353 | drivers/char/random.c | iv[3] = (*p++ ^= iv[3]); |
p | 463 | drivers/char/scc.c | register struct mbuf *p; |
p | 476 | drivers/char/scc.c | for(p = *bph ; p->next != NULLBUF ; p = p->next) |
p | 478 | drivers/char/scc.c | p->next = bp; |
p | 489 | drivers/char/scc.c | register struct mbuf *p; |
p | 502 | drivers/char/scc.c | for(p = *queue ; p->anext != NULLBUF ; p = p->anext) |
p | 504 | drivers/char/scc.c | p->anext = bp; |
p | 546 | drivers/char/scc.c | register io_port *p; |
p | 587 | drivers/char/scc.c | p = SCC_ctrl; |
p | 591 | drivers/char/scc.c | if (!(q=*p++)) break; |
p | 597 | drivers/char/scc.c | if (!(q=*p++)) break; |
p | 618 | drivers/char/scc.c | p = SCC_ctrl; |
p | 620 | drivers/char/scc.c | } else p++; |
p | 2147 | drivers/char/scc.c | unsigned char tbuf[BUFSIZE], *p; |
p | 2173 | drivers/char/scc.c | p=tbuf; |
p | 2176 | drivers/char/scc.c | if (kiss_decode(scc, *p++)) |
p | 99 | drivers/char/selection.c | static inline int atedge(const int p) |
p | 101 | drivers/char/selection.c | return (!(p % video_size_row) || !((p + 2) % video_size_row)); |
p | 32 | drivers/char/selection.h | extern void getconsxy(int currcons, char *p); |
p | 33 | drivers/char/selection.h | extern void putconsxy(int currcons, char *p); |
p | 251 | drivers/char/tty_io.c | struct tty_driver *p; |
p | 256 | drivers/char/tty_io.c | for (p = tty_drivers; p; p = p->next) { |
p | 257 | drivers/char/tty_io.c | if (p->major != major) |
p | 259 | drivers/char/tty_io.c | if (minor < p->minor_start) |
p | 261 | drivers/char/tty_io.c | if (minor >= p->minor_start + p->num) |
p | 263 | drivers/char/tty_io.c | return p; |
p | 349 | drivers/char/tty_io.c | struct task_struct *p; |
p | 395 | drivers/char/tty_io.c | for_each_task(p) { |
p | 396 | drivers/char/tty_io.c | if ((tty->session > 0) && (p->session == tty->session) && |
p | 397 | drivers/char/tty_io.c | p->leader) { |
p | 398 | drivers/char/tty_io.c | send_sig(SIGHUP,p,1); |
p | 399 | drivers/char/tty_io.c | send_sig(SIGCONT,p,1); |
p | 401 | drivers/char/tty_io.c | p->tty_old_pgrp = tty->pgrp; |
p | 403 | drivers/char/tty_io.c | if (p->tty == tty) |
p | 404 | drivers/char/tty_io.c | p->tty = NULL; |
p | 450 | drivers/char/tty_io.c | struct task_struct *p; |
p | 468 | drivers/char/tty_io.c | for_each_task(p) |
p | 469 | drivers/char/tty_io.c | if (p->session == current->session) |
p | 470 | drivers/char/tty_io.c | p->tty = NULL; |
p | 948 | drivers/char/tty_io.c | struct task_struct **p; |
p | 1063 | drivers/char/tty_io.c | for (p = &LAST_TASK ; p > &FIRST_TASK ; --p) { |
p | 1064 | drivers/char/tty_io.c | if (*p == 0) |
p | 1066 | drivers/char/tty_io.c | if ((*p)->tty == tty) |
p | 1067 | drivers/char/tty_io.c | (*p)->tty = NULL; |
p | 1068 | drivers/char/tty_io.c | if (o_tty && (*p)->tty == o_tty) |
p | 1069 | drivers/char/tty_io.c | (*p)->tty = NULL; |
p | 1309 | drivers/char/tty_io.c | struct task_struct **p; |
p | 1316 | drivers/char/tty_io.c | for (p = &FIRST_TASK ; p <= &LAST_TASK ; p++, n++) |
p | 1317 | drivers/char/tty_io.c | if (*p) |
p | 1319 | drivers/char/tty_io.c | c = (char *)(*p); |
p | 1441 | drivers/char/tty_io.c | struct task_struct *p; |
p | 1443 | drivers/char/tty_io.c | for_each_task(p) |
p | 1444 | drivers/char/tty_io.c | if (p->tty == tty) |
p | 1445 | drivers/char/tty_io.c | p->tty = NULL; |
p | 1586 | drivers/char/tty_io.c | struct task_struct **p; |
p | 1598 | drivers/char/tty_io.c | for (p = &LAST_TASK ; p > &FIRST_TASK ; --p) { |
p | 1599 | drivers/char/tty_io.c | if (!(*p)) |
p | 1601 | drivers/char/tty_io.c | if (((*p)->tty == tty) || |
p | 1602 | drivers/char/tty_io.c | ((session > 0) && ((*p)->session == session))) |
p | 1603 | drivers/char/tty_io.c | send_sig(SIGKILL, *p, 1); |
p | 1606 | drivers/char/tty_io.c | filp = (*p)->files->fd[i]; |
p | 1609 | drivers/char/tty_io.c | send_sig(SIGKILL, *p, 1); |
p | 1712 | drivers/char/tty_io.c | struct tty_driver *p; |
p | 1719 | drivers/char/tty_io.c | for (p = tty_drivers; p; p = p->next) { |
p | 1720 | drivers/char/tty_io.c | if (p == driver) |
p | 1722 | drivers/char/tty_io.c | else if (p->major == driver->major) |
p | 1723 | drivers/char/tty_io.c | othername = p->name; |
p | 65 | drivers/char/vc_screen.c | unsigned long p = file->f_pos; |
p | 84 | drivers/char/vc_screen.c | if (count < 0 || p > size) |
p | 86 | drivers/char/vc_screen.c | if (count > size - p) |
p | 87 | drivers/char/vc_screen.c | count = size - p; |
p | 91 | drivers/char/vc_screen.c | org = screen_pos(cons, p, viewed); |
p | 95 | drivers/char/vc_screen.c | if (p < HEADER_SIZE) { |
p | 100 | drivers/char/vc_screen.c | while (p < HEADER_SIZE && count-- > 0) |
p | 101 | drivers/char/vc_screen.c | put_user(header[p++], buf++); |
p | 103 | drivers/char/vc_screen.c | p -= HEADER_SIZE; |
p | 104 | drivers/char/vc_screen.c | org = screen_pos(cons, p/2, viewed); |
p | 105 | drivers/char/vc_screen.c | if ((p & 1) && count-- > 0) |
p | 123 | drivers/char/vc_screen.c | unsigned long p = file->f_pos; |
p | 142 | drivers/char/vc_screen.c | if (count < 0 || p > size) |
p | 144 | drivers/char/vc_screen.c | if (count > size - p) |
p | 145 | drivers/char/vc_screen.c | count = size - p; |
p | 149 | drivers/char/vc_screen.c | org = screen_pos(cons, p, viewed); |
p | 156 | drivers/char/vc_screen.c | if (p < HEADER_SIZE) { |
p | 159 | drivers/char/vc_screen.c | while (p < HEADER_SIZE && count-- > 0) |
p | 160 | drivers/char/vc_screen.c | header[p++] = get_user(buf++); |
p | 164 | drivers/char/vc_screen.c | p -= HEADER_SIZE; |
p | 165 | drivers/char/vc_screen.c | org = screen_pos(cons, p/2, viewed); |
p | 166 | drivers/char/vc_screen.c | if ((p & 1) && count-- > 0) { |
p | 106 | drivers/char/vt.c | struct task_struct *p; |
p | 120 | drivers/char/vt.c | for_each_task(p) |
p | 122 | drivers/char/vt.c | if ( p->tty && MAJOR(p->tty->device) == TTY_MAJOR && |
p | 123 | drivers/char/vt.c | MINOR(p->tty->device) <= MAX_NR_CONSOLES && MINOR(p->tty->device) ) |
p | 125 | drivers/char/vt.c | send_sig(SIGWINCH, p, 1); |
p | 493 | drivers/char/vt.c | char *p; |
p | 505 | drivers/char/vt.c | p = func_table[i]; |
p | 506 | drivers/char/vt.c | if(p) |
p | 507 | drivers/char/vt.c | for ( ; *p && sz; p++, sz--) |
p | 508 | drivers/char/vt.c | put_user(*p, q++); |
p | 510 | drivers/char/vt.c | return ((p && *p) ? -EOVERFLOW : 0); |
p | 519 | drivers/char/vt.c | u_char *p; |
p | 541 | drivers/char/vt.c | for (p = a->kb_string; get_user(p) && sz; p++,sz--) |
p | 583 | drivers/char/vt.c | for (p = a->kb_string, q = func_table[i]; ; p++, q++) |
p | 584 | drivers/char/vt.c | if (!(*q = get_user(p))) |
p | 68 | drivers/net/3c505.c | #define CHECK_NULL(p) \ |
p | 69 | drivers/net/3c505.c | if (!p) printk(null_msg, filename,__FUNCTION__,__LINE__) |
p | 703 | drivers/net/atp.c | static void read_block(short ioaddr, int length, unsigned char *p, int data_mode) |
p | 711 | drivers/net/atp.c | do *p++ = read_byte_mode0(ioaddr); while (--length > 0); |
p | 713 | drivers/net/atp.c | do *p++ = read_byte_mode2(ioaddr); while (--length > 0); |
p | 715 | drivers/net/atp.c | do *p++ = read_byte_mode4(ioaddr); while (--length > 0); |
p | 717 | drivers/net/atp.c | do *p++ = read_byte_mode6(ioaddr); while (--length > 0); |
p | 559 | drivers/net/bsd_comp.c | #define dict_ptrx(p,idx) &(p->dict[idx]) |
p | 560 | drivers/net/bsd_comp.c | #define lens_ptrx(p,idx) &(p->lens[idx]) |
p | 878 | drivers/net/bsd_comp.c | unsigned char *p; |
p | 1031 | drivers/net/bsd_comp.c | p = wptr; |
p | 1061 | drivers/net/bsd_comp.c | *--p = dictp->f.hs.suffix; |
p | 1064 | drivers/net/bsd_comp.c | *--p = finchar; |
p | 2258 | drivers/net/de4x5.c | short *p = (short *)&lp->srom; |
p | 2260 | drivers/net/de4x5.c | *p++ = srom_rd(aprom_addr, i); |
p | 661 | drivers/net/depca.c | struct depca_init *p = (struct depca_init *)lp->sh_mem; |
p | 719 | drivers/net/depca.c | printk("\tmode: 0x%4.4x\n",readw(&p->mode)); |
p | 722 | drivers/net/depca.c | printk("%2.2x:",(u_char)readb(&p->phys_addr[i])); |
p | 724 | drivers/net/depca.c | printk("%2.2x\n",(u_char)readb(&p->phys_addr[i])); |
p | 727 | drivers/net/depca.c | printk("%2.2x:",(u_char)readb(&p->mcast_table[i])); |
p | 729 | drivers/net/depca.c | printk("%2.2x\n",(u_char)readb(&p->mcast_table[i])); |
p | 730 | drivers/net/depca.c | printk("\trx_ring at: 0x%8.8x\n",readl(&p->rx_ring)); |
p | 731 | drivers/net/depca.c | printk("\ttx_ring at: 0x%8.8x\n",readl(&p->tx_ring)); |
p | 774 | drivers/net/depca.c | u_long p; |
p | 784 | drivers/net/depca.c | writel((p=lp->dma_buffs+i*RX_BUFF_SZ) | R_OWN, &lp->rx_ring[i].base); |
p | 786 | drivers/net/depca.c | lp->rx_memcpy[i]=(char *)(p+lp->bus_offset); |
p | 789 | drivers/net/depca.c | writel((p=lp->dma_buffs+(i+lp->txRingMask+1)*TX_BUFF_SZ) & 0x00ffffff, |
p | 791 | drivers/net/depca.c | lp->tx_memcpy[i]=(char *)(p+lp->bus_offset); |
p | 850 | drivers/net/ewrk3.c | unsigned char *p = skb->data; |
p | 857 | drivers/net/ewrk3.c | outb(*p++, EWRK3_DATA); |
p | 1041 | drivers/net/ewrk3.c | unsigned char *p; |
p | 1044 | drivers/net/ewrk3.c | p = skb_put(skb,pkt_len); |
p | 1047 | drivers/net/ewrk3.c | *p = inb(EWRK3_DATA); /* dummy read */ |
p | 1049 | drivers/net/ewrk3.c | *p++ = inb(EWRK3_DATA); |
p | 1052 | drivers/net/ewrk3.c | memcpy(p, buf, pkt_len); |
p | 1258 | drivers/net/ewrk3.c | short *p = (short *) multicast_table; |
p | 1276 | drivers/net/ewrk3.c | *p++ = 0xffff; |
p | 33 | drivers/net/i82586.h | #define toff(t,p,f) (unsigned short)((void *)(&((t *)((void *)0 + (p)))->f) - (void *)0) |
p | 121 | drivers/net/i82586.h | #define scboff(p,f) toff(scb_t, p, f) |
p | 175 | drivers/net/i82586.h | #define acoff(p,f) toff(ach_t, p, f) |
p | 363 | drivers/net/i82586.h | #define rbdoff(p,f) toff(rbd_t, p, f) |
p | 401 | drivers/net/i82586.h | #define fdoff(p,f) toff(fd_t, p, f) |
p | 103 | drivers/net/ni52.c | #define make32(ptr16) (p->memtop + (short) (ptr16) ) |
p | 104 | drivers/net/ni52.c | #define make24(ptr32) ((char *) (ptr32) - p->base) |
p | 105 | drivers/net/ni52.c | #define make16(ptr32) ((unsigned short) ((unsigned long) (ptr32) - (unsigned long) p->memtop )) |
p | 143 | drivers/net/ni52.c | if(!p->scb->cmd) break; \ |
p | 247 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 251 | drivers/net/ni52.c | p->base = (unsigned long) where + size - 0x01000000; |
p | 252 | drivers/net/ni52.c | p->memtop = where + size; |
p | 253 | drivers/net/ni52.c | p->scp = (struct scp_struct *)(p->base + SCP_DEFAULT_ADDRESS); |
p | 254 | drivers/net/ni52.c | memset((char *)p->scp,0, sizeof(struct scp_struct)); |
p | 255 | drivers/net/ni52.c | p->scp->sysbus = SYSBUSVAL; /* 1 = 8Bit-Bus, 0 = 16 Bit */ |
p | 258 | drivers/net/ni52.c | iscp_addrs[1]= (char *) p->scp - sizeof(struct iscp_struct); |
p | 262 | drivers/net/ni52.c | p->iscp = (struct iscp_struct *) iscp_addrs[i]; |
p | 263 | drivers/net/ni52.c | memset((char *)p->iscp,0, sizeof(struct iscp_struct)); |
p | 265 | drivers/net/ni52.c | p->scp->iscp = make24(p->iscp); |
p | 266 | drivers/net/ni52.c | p->iscp->busy = 1; |
p | 272 | drivers/net/ni52.c | if(p->iscp->busy) /* i82586 clears 'busy' after successful init */ |
p | 284 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 289 | drivers/net/ni52.c | p->scp = (struct scp_struct *) (p->base + SCP_DEFAULT_ADDRESS); |
p | 290 | drivers/net/ni52.c | p->scb = (struct scb_struct *) (dev->mem_start); |
p | 291 | drivers/net/ni52.c | p->iscp = (struct iscp_struct *) ((char *)p->scp - sizeof(struct iscp_struct)); |
p | 293 | drivers/net/ni52.c | memset((char *) p->iscp,0,sizeof(struct iscp_struct)); |
p | 294 | drivers/net/ni52.c | memset((char *) p->scp ,0,sizeof(struct scp_struct)); |
p | 296 | drivers/net/ni52.c | p->scp->iscp = make24(p->iscp); |
p | 297 | drivers/net/ni52.c | p->scp->sysbus = SYSBUSVAL; |
p | 298 | drivers/net/ni52.c | p->iscp->scb_offset = make16(p->scb); |
p | 300 | drivers/net/ni52.c | p->iscp->busy = 1; |
p | 306 | drivers/net/ni52.c | if(p->iscp->busy) |
p | 309 | drivers/net/ni52.c | memset((char *)p->scb,0,sizeof(struct scb_struct)); |
p | 454 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 460 | drivers/net/ni52.c | ptr = (void *) ((char *)p->scb + sizeof(struct scb_struct)); |
p | 478 | drivers/net/ni52.c | p->scb->cbl_offset = make16(cfg_cmd); |
p | 480 | drivers/net/ni52.c | p->scb->cmd = CUC_START; /* cmd.-unit start */ |
p | 504 | drivers/net/ni52.c | p->scb->cbl_offset = make16(ias_cmd); |
p | 506 | drivers/net/ni52.c | p->scb->cmd = CUC_START; /* cmd.-unit start */ |
p | 528 | drivers/net/ni52.c | p->scb->cbl_offset = make16(tdr_cmd); |
p | 530 | drivers/net/ni52.c | p->scb->cmd = CUC_START; /* cmd.-unit start */ |
p | 545 | drivers/net/ni52.c | p->scb->cmd = p->scb->status & STAT_MASK; |
p | 565 | drivers/net/ni52.c | p->scb->cmd = p->scb->status & STAT_MASK; |
p | 574 | drivers/net/ni52.c | p->nop_cmds[i] = (struct nop_cmd_struct *)ptr; |
p | 575 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_cmd = CMD_NOP; |
p | 576 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_status = 0; |
p | 577 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_link = make16((p->nop_cmds[i])); |
p | 580 | drivers/net/ni52.c | p->xmit_cmds[0] = (struct transmit_cmd_struct *)ptr; /* transmit cmd/buff 0 */ |
p | 585 | drivers/net/ni52.c | p->nop_cmds[i] = (struct nop_cmd_struct *)ptr; |
p | 586 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_cmd = CMD_NOP; |
p | 587 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_status = 0; |
p | 588 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_link = make16((p->nop_cmds[i])); |
p | 590 | drivers/net/ni52.c | p->xmit_cmds[i] = (struct transmit_cmd_struct *)ptr; /*transmit cmd/buff 0*/ |
p | 603 | drivers/net/ni52.c | int len = ((char *) p->iscp - (char *) ptr - 8) / 6; |
p | 622 | drivers/net/ni52.c | p->scb->cbl_offset = make16(mc_cmd); |
p | 623 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
p | 639 | drivers/net/ni52.c | p->xmit_cbuffs[i] = (char *)ptr; /* char-buffs */ |
p | 641 | drivers/net/ni52.c | p->xmit_buffs[i] = (struct tbd_struct *)ptr; /* TBD */ |
p | 643 | drivers/net/ni52.c | if((void *)ptr > (void *)p->iscp) |
p | 648 | drivers/net/ni52.c | memset((char *)(p->xmit_cmds[i]) ,0, sizeof(struct transmit_cmd_struct)); |
p | 649 | drivers/net/ni52.c | memset((char *)(p->xmit_buffs[i]),0, sizeof(struct tbd_struct)); |
p | 650 | drivers/net/ni52.c | p->xmit_cmds[i]->cmd_status = STAT_COMPL; |
p | 651 | drivers/net/ni52.c | p->xmit_cmds[i]->cmd_cmd = CMD_XMIT | CMD_INT; |
p | 652 | drivers/net/ni52.c | p->xmit_cmds[i]->tbd_offset = make16((p->xmit_buffs[i])); |
p | 653 | drivers/net/ni52.c | p->xmit_buffs[i]->next = 0xffff; |
p | 654 | drivers/net/ni52.c | p->xmit_buffs[i]->buffer = make24((p->xmit_cbuffs[i])); |
p | 657 | drivers/net/ni52.c | p->xmit_count = 0; |
p | 658 | drivers/net/ni52.c | p->xmit_last = 0; |
p | 660 | drivers/net/ni52.c | p->nop_point = 0; |
p | 667 | drivers/net/ni52.c | p->scb->cbl_offset = make16(p->nop_cmds[0]); |
p | 668 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
p | 672 | drivers/net/ni52.c | p->xmit_cmds[0]->cmd_link = 0xffff; |
p | 673 | drivers/net/ni52.c | p->xmit_cmds[0]->cmd_cmd = CMD_XMIT | CMD_LAST | CMD_INT; |
p | 689 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 691 | drivers/net/ni52.c | memset((char *) rfd,0,sizeof(struct rfd_struct)*p->num_recv_buffs); |
p | 692 | drivers/net/ni52.c | p->rfd_first = rfd; |
p | 694 | drivers/net/ni52.c | for(i = 0; i < p->num_recv_buffs; i++) |
p | 695 | drivers/net/ni52.c | rfd[i].next = make16(rfd + (i+1) % p->num_recv_buffs); |
p | 696 | drivers/net/ni52.c | rfd[p->num_recv_buffs-1].last = RFD_SUSP; /* RU suspend */ |
p | 698 | drivers/net/ni52.c | ptr = (void *) (rfd + p->num_recv_buffs); |
p | 701 | drivers/net/ni52.c | ptr = (void *) (rbd + p->num_recv_buffs); |
p | 704 | drivers/net/ni52.c | memset((char *) rbd,0,sizeof(struct rbd_struct)*p->num_recv_buffs); |
p | 706 | drivers/net/ni52.c | for(i=0;i<p->num_recv_buffs;i++) |
p | 708 | drivers/net/ni52.c | rbd[i].next = make16((rbd + (i+1) % p->num_recv_buffs)); |
p | 714 | drivers/net/ni52.c | p->rfd_top = p->rfd_first; |
p | 715 | drivers/net/ni52.c | p->rfd_last = p->rfd_first + p->num_recv_buffs - 1; |
p | 717 | drivers/net/ni52.c | p->scb->rfa_offset = make16(p->rfd_first); |
p | 718 | drivers/net/ni52.c | p->rfd_first->rbd_offset = make16(rbd); |
p | 732 | drivers/net/ni52.c | struct priv *p; |
p | 738 | drivers/net/ni52.c | p = (struct priv *) dev->priv; |
p | 742 | drivers/net/ni52.c | while((stat=p->scb->status & STAT_MASK)) |
p | 744 | drivers/net/ni52.c | p->scb->cmd = stat; |
p | 757 | drivers/net/ni52.c | printk("%s: oops! CU has left active state. stat: %04x/%04x.\n",dev->name,(int) stat,(int) p->scb->status); |
p | 763 | drivers/net/ni52.c | if(p->scb->status & RU_SUSPEND) /* special case: RU_SUSPEND */ |
p | 766 | drivers/net/ni52.c | p->scb->cmd = RUC_RESUME; |
p | 771 | drivers/net/ni52.c | printk("%s: Receiver-Unit went 'NOT READY': %04x/%04x.\n",dev->name,(int) stat,(int) p->scb->status); |
p | 776 | drivers/net/ni52.c | if(p->scb->cmd) /* timed out? */ |
p | 793 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 795 | drivers/net/ni52.c | for(;(status = p->rfd_top->status) & STAT_COMPL;) |
p | 797 | drivers/net/ni52.c | rbd = (struct rbd_struct *) make32(p->rfd_top->rbd_offset); |
p | 810 | drivers/net/ni52.c | memcpy(skb_put(skb,totlen),(char *) p->base+(unsigned long) rbd->buffer, totlen); |
p | 813 | drivers/net/ni52.c | p->stats.rx_packets++; |
p | 816 | drivers/net/ni52.c | p->stats.rx_dropped++; |
p | 821 | drivers/net/ni52.c | p->stats.rx_dropped++; |
p | 827 | drivers/net/ni52.c | p->stats.rx_errors++; |
p | 829 | drivers/net/ni52.c | p->rfd_top->status = 0; |
p | 830 | drivers/net/ni52.c | p->rfd_top->last = RFD_SUSP; |
p | 831 | drivers/net/ni52.c | p->rfd_last->last = 0; /* delete RU_SUSP */ |
p | 832 | drivers/net/ni52.c | p->rfd_last = p->rfd_top; |
p | 833 | drivers/net/ni52.c | p->rfd_top = (struct rfd_struct *) make32(p->rfd_top->next); /* step to next RFD */ |
p | 843 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 845 | drivers/net/ni52.c | p->stats.rx_errors++; |
p | 848 | drivers/net/ni52.c | p->scb->cmd = RUC_ABORT; /* usually the RU is in the 'no resource'-state .. abort it now. */ |
p | 852 | drivers/net/ni52.c | alloc_rfa(dev,(char *)p->rfd_first); |
p | 855 | drivers/net/ni52.c | printk("%s: Receive-Unit restarted. Status: %04x\n",dev->name,p->scb->status); |
p | 866 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 868 | drivers/net/ni52.c | status = p->xmit_cmds[p->xmit_last]->cmd_status; |
p | 874 | drivers/net/ni52.c | p->stats.tx_packets++; |
p | 875 | drivers/net/ni52.c | p->stats.collisions += (status & TCMD_MAXCOLLMASK); |
p | 879 | drivers/net/ni52.c | p->stats.tx_errors++; |
p | 882 | drivers/net/ni52.c | p->stats.collisions++; |
p | 885 | drivers/net/ni52.c | p->stats.tx_carrier_errors++; |
p | 891 | drivers/net/ni52.c | p->stats.tx_fifo_errors++; |
p | 896 | drivers/net/ni52.c | p->stats.collisions += 16; |
p | 901 | drivers/net/ni52.c | if( (++p->xmit_last) == NUM_XMIT_BUFFS) |
p | 902 | drivers/net/ni52.c | p->xmit_last = 0; |
p | 915 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 917 | drivers/net/ni52.c | p->scb->rfa_offset = make16(p->rfd_first); |
p | 918 | drivers/net/ni52.c | p->scb->cmd = RUC_START; |
p | 933 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 941 | drivers/net/ni52.c | if(p->scb->status & CU_ACTIVE) /* COMMAND-UNIT active? */ |
p | 946 | drivers/net/ni52.c | printk("%s: X0: %04x N0: %04x N1: %04x %d\n",dev->name,(int)p->xmit_cmds[0]->cmd_status,(int)p->nop_cmds[0]->cmd_status,(int)p->nop_cmds[1]->cmd_status,(int)p->nop_point); |
p | 948 | drivers/net/ni52.c | p->scb->cmd = CUC_ABORT; |
p | 951 | drivers/net/ni52.c | p->scb->cbl_offset = make16(p->nop_cmds[p->nop_point]); |
p | 952 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
p | 961 | drivers/net/ni52.c | printk("%s: xmitter timed out, try to restart! stat: %04x\n",dev->name,p->scb->status); |
p | 962 | drivers/net/ni52.c | printk("%s: command-stats: %04x %04x\n",dev->name,p->xmit_cmds[0]->cmd_status,p->xmit_cmds[1]->cmd_status); |
p | 989 | drivers/net/ni52.c | memcpy((char *)p->xmit_cbuffs[p->xmit_count],(char *)(skb->data),skb->len); |
p | 994 | drivers/net/ni52.c | p->xmit_buffs[0]->size = TBD_LAST | len; |
p | 997 | drivers/net/ni52.c | p->scb->cbl_offset = make16(p->xmit_cmds[0]); |
p | 998 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
p | 999 | drivers/net/ni52.c | p->xmit_cmds[0]->cmd_status = 0; |
p | 1006 | drivers/net/ni52.c | if( (p->scb->status & CU_ACTIVE)) /* test it, because CU sometimes doesn't start immediately */ |
p | 1008 | drivers/net/ni52.c | if(p->xmit_cmds[0]->cmd_status) |
p | 1014 | drivers/net/ni52.c | next_nop = (p->nop_point + 1) & 0x1; |
p | 1015 | drivers/net/ni52.c | p->xmit_buffs[0]->size = TBD_LAST | len; |
p | 1017 | drivers/net/ni52.c | p->xmit_cmds[0]->cmd_link = p->nop_cmds[next_nop]->cmd_link |
p | 1018 | drivers/net/ni52.c | = make16((p->nop_cmds[next_nop])); |
p | 1019 | drivers/net/ni52.c | p->xmit_cmds[0]->cmd_status = p->nop_cmds[next_nop]->cmd_status = 0; |
p | 1021 | drivers/net/ni52.c | p->nop_cmds[p->nop_point]->cmd_link = make16((p->xmit_cmds[0])); |
p | 1023 | drivers/net/ni52.c | p->nop_point = next_nop; |
p | 1027 | drivers/net/ni52.c | p->xmit_buffs[p->xmit_count]->size = TBD_LAST | len; |
p | 1028 | drivers/net/ni52.c | if( (next_nop = p->xmit_count + 1) == NUM_XMIT_BUFFS ) |
p | 1031 | drivers/net/ni52.c | p->xmit_cmds[p->xmit_count]->cmd_status = 0; |
p | 1032 | drivers/net/ni52.c | p->xmit_cmds[p->xmit_count]->cmd_link = p->nop_cmds[next_nop]->cmd_link |
p | 1033 | drivers/net/ni52.c | = make16((p->nop_cmds[next_nop])); |
p | 1034 | drivers/net/ni52.c | p->nop_cmds[next_nop]->cmd_status = 0; |
p | 1036 | drivers/net/ni52.c | p->nop_cmds[p->xmit_count]->cmd_link = make16((p->xmit_cmds[p->xmit_count])); |
p | 1038 | drivers/net/ni52.c | p->xmit_count = next_nop; |
p | 1041 | drivers/net/ni52.c | if(p->xmit_count != p->xmit_last) |
p | 1056 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 1059 | drivers/net/ni52.c | crc = p->scb->crc_errs; /* get error-statistic from the ni82586 */ |
p | 1060 | drivers/net/ni52.c | p->scb->crc_errs -= crc; |
p | 1061 | drivers/net/ni52.c | aln = p->scb->aln_errs; |
p | 1062 | drivers/net/ni52.c | p->scb->aln_errs -= aln; |
p | 1063 | drivers/net/ni52.c | rsc = p->scb->rsc_errs; |
p | 1064 | drivers/net/ni52.c | p->scb->rsc_errs -= rsc; |
p | 1065 | drivers/net/ni52.c | ovrn = p->scb->ovrn_errs; |
p | 1066 | drivers/net/ni52.c | p->scb->ovrn_errs -= ovrn; |
p | 1068 | drivers/net/ni52.c | p->stats.rx_crc_errors += crc; |
p | 1069 | drivers/net/ni52.c | p->stats.rx_fifo_errors += ovrn; |
p | 1070 | drivers/net/ni52.c | p->stats.rx_frame_errors += aln; |
p | 1071 | drivers/net/ni52.c | p->stats.rx_dropped += rsc; |
p | 1073 | drivers/net/ni52.c | return &p->stats; |
p | 208 | drivers/net/ni65.c | struct priv *p; |
p | 246 | drivers/net/ni65.c | p = dev->priv = (void *) kmalloc(sizeof(struct priv),GFP_KERNEL); |
p | 247 | drivers/net/ni65.c | if (p == NULL) |
p | 264 | drivers/net/ni65.c | if( (p->memptr = kmalloc(MEMSIZE,GFP_KERNEL)) == NULL) { |
p | 268 | drivers/net/ni65.c | if( (unsigned long) (p->memptr + MEMSIZE) & 0xff000000) { |
p | 272 | drivers/net/ni65.c | p->tmdhead = (struct tmd *) ((( (unsigned long)p->memptr ) + 8) & 0xfffffff8); |
p | 273 | drivers/net/ni65.c | p->rmdhead = (struct rmd *) (p->tmdhead + TMDNUM); |
p | 278 | drivers/net/ni65.c | if( (p->tmdbufs[i] = kmalloc(T_BUF_SIZE,GFP_ATOMIC)) == NULL) { |
p | 282 | drivers/net/ni65.c | if( (unsigned long) (p->tmdbufs[i]+T_BUF_SIZE) & 0xff000000) { |
p | 291 | drivers/net/ni65.c | if( (p->recv_skb[i] = dev_alloc_skb(R_BUF_SIZE)) == NULL) { |
p | 295 | drivers/net/ni65.c | if( (unsigned long) (p->recv_skb[i]->data + R_BUF_SIZE) & 0xff000000) { |
p | 313 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
p | 315 | drivers/net/ni65.c | p->lock = 0; |
p | 316 | drivers/net/ni65.c | p->xmit_queued = 0; |
p | 334 | drivers/net/ni65.c | memset(p->memptr,0,MEMSIZE); |
p | 336 | drivers/net/ni65.c | p->tmdnum = 0; p->tmdlast = 0; |
p | 339 | drivers/net/ni65.c | tmdp = p->tmdhead + i; |
p | 341 | drivers/net/ni65.c | tmdp->u.buffer = (unsigned long) p->tmdbufs[i]; |
p | 346 | drivers/net/ni65.c | p->rmdnum = 0; |
p | 349 | drivers/net/ni65.c | rmdp = p->rmdhead + i; |
p | 350 | drivers/net/ni65.c | rmdp->u.buffer = (unsigned long) p->recv_skb[i]->data; |
p | 358 | drivers/net/ni65.c | p->ib.eaddr[i] = dev->dev_addr[i]; |
p | 360 | drivers/net/ni65.c | p->ib.mode = 0; |
p | 362 | drivers/net/ni65.c | p->ib.filter[i] = 0; |
p | 363 | drivers/net/ni65.c | p->ib.trplow = (unsigned short) (( (unsigned long) p->tmdhead ) & 0xffff); |
p | 364 | drivers/net/ni65.c | p->ib.trphigh = (unsigned short) ((( (unsigned long) p->tmdhead )>>16) & 0x00ff) | TMDNUMMASK; |
p | 365 | drivers/net/ni65.c | p->ib.rrplow = (unsigned short) (( (unsigned long) p->rmdhead ) & 0xffff); |
p | 366 | drivers/net/ni65.c | p->ib.rrphigh = (unsigned short) ((( (unsigned long) p->rmdhead )>>16) & 0x00ff) | RMDNUMMASK; |
p | 369 | drivers/net/ni65.c | writereg((unsigned short) (((unsigned long) &(p->ib)) & 0xffff),CSR1); |
p | 370 | drivers/net/ni65.c | writereg((unsigned short) (((unsigned long) &(p->ib))>>16),CSR2); |
p | 418 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
p | 421 | drivers/net/ni65.c | p->stats.tx_errors++; |
p | 423 | drivers/net/ni65.c | p->stats.rx_errors++; |
p | 450 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
p | 456 | drivers/net/ni65.c | while(p->xmit_queued) |
p | 458 | drivers/net/ni65.c | tmdp = p->tmdhead + p->tmdlast; |
p | 463 | drivers/net/ni65.c | skb = (struct sk_buff *) p->tmdbufs[p->tmdlast]; |
p | 475 | drivers/net/ni65.c | p->stats.tx_aborted_errors++; |
p | 477 | drivers/net/ni65.c | p->stats.tx_carrier_errors++; |
p | 478 | drivers/net/ni65.c | p->stats.tx_errors++; |
p | 482 | drivers/net/ni65.c | p->stats.tx_packets++; |
p | 484 | drivers/net/ni65.c | p->tmdlast = (p->tmdlast + 1) & (TMDNUM-1); |
p | 485 | drivers/net/ni65.c | if(p->tmdlast == p->tmdnum) |
p | 486 | drivers/net/ni65.c | p->xmit_queued = 0; |
p | 502 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
p | 504 | drivers/net/ni65.c | rmdp = p->rmdhead + p->rmdnum; |
p | 511 | drivers/net/ni65.c | p->stats.rx_errors++; |
p | 512 | drivers/net/ni65.c | p->stats.rx_length_errors++; |
p | 520 | drivers/net/ni65.c | p->stats.rx_errors++; |
p | 521 | drivers/net/ni65.c | if(rmdstat & RCV_FRAM) p->stats.rx_frame_errors++; |
p | 522 | drivers/net/ni65.c | if(rmdstat & RCV_OFLO) p->stats.rx_over_errors++; |
p | 523 | drivers/net/ni65.c | if(rmdstat & RCV_CRC) p->stats.rx_crc_errors++; |
p | 534 | drivers/net/ni65.c | memcpy(skb_put(skb,len),p->recv_skb[p->rmdnum]->data,len); |
p | 538 | drivers/net/ni65.c | skb1 = p->recv_skb[p->rmdnum]; |
p | 539 | drivers/net/ni65.c | p->recv_skb[p->rmdnum] = skb; |
p | 545 | drivers/net/ni65.c | p->stats.rx_packets++; |
p | 553 | drivers/net/ni65.c | p->stats.rx_dropped++; |
p | 556 | drivers/net/ni65.c | p->rmdnum++; p->rmdnum &= RMDNUM-1; |
p | 557 | drivers/net/ni65.c | rmdp = p->rmdhead + p->rmdnum; |
p | 567 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
p | 596 | drivers/net/ni65.c | if(set_bit(0,(void*) &p->lock) != 0) |
p | 605 | drivers/net/ni65.c | tmdp = p->tmdhead + p->tmdnum; |
p | 609 | drivers/net/ni65.c | p->tmdbufs[p->tmdnum] = skb; |
p | 618 | drivers/net/ni65.c | p->xmit_queued = 1; |
p | 620 | drivers/net/ni65.c | p->tmdnum++; p->tmdnum &= TMDNUM-1; |
p | 622 | drivers/net/ni65.c | if( !((p->tmdhead + p->tmdnum)->u.s.status & XMIT_OWN) ) |
p | 624 | drivers/net/ni65.c | p->lock = 0; |
p | 259 | drivers/net/ppp.c | #define bset(p,b) ((p)[(b) >> 5] |= (1 << ((b) & 0x1f))) |
p | 378 | drivers/net/ppp.c | extern inline u_char * store_long (register u_char *p, register int value) { |
p | 379 | drivers/net/ppp.c | *p++ = (u_char) (value >> 24); |
p | 380 | drivers/net/ppp.c | *p++ = (u_char) (value >> 16); |
p | 381 | drivers/net/ppp.c | *p++ = (u_char) (value >> 8); |
p | 382 | drivers/net/ppp.c | *p++ = (u_char) value; |
p | 383 | drivers/net/ppp.c | return p; |
p | 1552 | drivers/net/ppp.c | register u_char *p; |
p | 1559 | drivers/net/ppp.c | p = &data [48]; |
p | 1560 | drivers/net/ppp.c | p = store_long (p, ++ppp->stats.ppp_ilqrs); |
p | 1561 | drivers/net/ppp.c | p = store_long (p, ppp->stats.ppp_ipackets); |
p | 1562 | drivers/net/ppp.c | p = store_long (p, ppp->stats.ppp_discards); |
p | 1563 | drivers/net/ppp.c | p = store_long (p, ppp->stats.ppp_ierrors); |
p | 1564 | drivers/net/ppp.c | p = store_long (p, ppp->stats.ppp_ioctects + len); |
p | 2129 | drivers/net/ppp.c | u_char *p; |
p | 2138 | drivers/net/ppp.c | p = (u_char *) &data [40]; /* Point to last two items. */ |
p | 2139 | drivers/net/ppp.c | p = store_long (p, ppp->stats.ppp_opackets + 1); |
p | 2140 | drivers/net/ppp.c | p = store_long (p, ppp->stats.ppp_ooctects + len); |
p | 2796 | drivers/net/ppp.c | memcpy (&temp.p, &ppp->stats, sizeof (struct pppstat)); |
p | 553 | drivers/net/seeq8005.c | char * p = buf; |
p | 556 | drivers/net/seeq8005.c | printk("%02x ",*(p++)&0xff); |
p | 642 | drivers/net/sk_g16.c | struct priv *p; /* SK_G16 private structure */ |
p | 790 | drivers/net/sk_g16.c | p = dev->priv = (void *) kmalloc(sizeof(struct priv), GFP_KERNEL); |
p | 791 | drivers/net/sk_g16.c | if (p == NULL) |
p | 815 | drivers/net/sk_g16.c | p->ram = (struct SK_ram *) rom_addr; /* Set dual ported RAM addr */ |
p | 816 | drivers/net/sk_g16.c | p->tmdhead = &(p->ram)->tmde[0]; /* Set TMD head */ |
p | 817 | drivers/net/sk_g16.c | p->rmdhead = &(p->ram)->rmde[0]; /* Set RMD head */ |
p | 823 | drivers/net/sk_g16.c | p->tmdbufs[i] = &(p->ram)->tmdbuf[i]; |
p | 828 | drivers/net/sk_g16.c | p->rmdbufs[i] = &(p->ram)->rmdbuf[i]; |
p | 874 | drivers/net/sk_g16.c | struct priv *p = (struct priv *)dev->priv; |
p | 963 | drivers/net/sk_g16.c | (int) dev->irq, (unsigned int) p->ram); |
p | 1034 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1045 | drivers/net/sk_g16.c | p->tmdnum = 0; /* First descriptor for transmitting */ |
p | 1046 | drivers/net/sk_g16.c | p->tmdlast = 0; /* First descriptor for reading stats */ |
p | 1050 | drivers/net/sk_g16.c | tmdp = p->tmdhead + i; |
p | 1052 | drivers/net/sk_g16.c | tmdp->u.buffer = (unsigned long) p->tmdbufs[i]; /* assign buffer */ |
p | 1061 | drivers/net/sk_g16.c | p->rmdnum = 0; /* First RMD which will be used */ |
p | 1065 | drivers/net/sk_g16.c | rmdp = p->rmdhead + i; |
p | 1068 | drivers/net/sk_g16.c | rmdp->u.buffer = (unsigned long) p->rmdbufs[i]; /* assign buffer */ |
p | 1085 | drivers/net/sk_g16.c | (p->ram)->ib.mode = mode; /* Set operation mode */ |
p | 1089 | drivers/net/sk_g16.c | (p->ram)->ib.paddr[i] = dev->dev_addr[i]; |
p | 1094 | drivers/net/sk_g16.c | (p->ram)->ib.laddr[i] = 0; /* We do not use logical addressing */ |
p | 1099 | drivers/net/sk_g16.c | (p->ram)->ib.rdrp = (int) p->rmdhead | RMDNUMMASK; |
p | 1100 | drivers/net/sk_g16.c | (p->ram)->ib.tdrp = (int) p->tmdhead | TMDNUMMASK; |
p | 1153 | drivers/net/sk_g16.c | (unsigned int) &(p->ram)->ib); |
p | 1199 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1256 | drivers/net/sk_g16.c | tmdp = p->tmdhead + p->tmdnum; /* Which descriptor for transmitting */ |
p | 1281 | drivers/net/sk_g16.c | p->tmdnum++; |
p | 1282 | drivers/net/sk_g16.c | p->tmdnum &= TMDNUM-1; |
p | 1285 | drivers/net/sk_g16.c | if (! ((p->tmdhead + p->tmdnum)->u.s.status & TX_OWN) ) |
p | 1320 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1354 | drivers/net/sk_g16.c | p->stats.rx_dropped++; |
p | 1395 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1401 | drivers/net/sk_g16.c | tmdp = p->tmdhead + p->tmdlast; /* Which buffer we sent at last ? */ |
p | 1404 | drivers/net/sk_g16.c | p->tmdlast++; |
p | 1405 | drivers/net/sk_g16.c | p->tmdlast &= TMDNUM-1; |
p | 1424 | drivers/net/sk_g16.c | p->stats.tx_aborted_errors++; |
p | 1426 | drivers/net/sk_g16.c | p->stats.tx_window_errors++; |
p | 1428 | drivers/net/sk_g16.c | p->stats.tx_carrier_errors++; |
p | 1431 | drivers/net/sk_g16.c | p->stats.tx_fifo_errors++; |
p | 1441 | drivers/net/sk_g16.c | p->stats.tx_errors++; |
p | 1459 | drivers/net/sk_g16.c | p->stats.collisions++; |
p | 1463 | drivers/net/sk_g16.c | p->stats.tx_packets++; |
p | 1515 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1520 | drivers/net/sk_g16.c | rmdp = p->rmdhead + p->rmdnum; |
p | 1542 | drivers/net/sk_g16.c | p->stats.rx_errors++; /* bad packet received */ |
p | 1543 | drivers/net/sk_g16.c | p->stats.rx_length_errors++; /* packet to long */ |
p | 1563 | drivers/net/sk_g16.c | p->stats.rx_errors++; |
p | 1565 | drivers/net/sk_g16.c | if (rmdstat & RX_FRAM) p->stats.rx_frame_errors++; |
p | 1566 | drivers/net/sk_g16.c | if (rmdstat & RX_CRC) p->stats.rx_crc_errors++; |
p | 1590 | drivers/net/sk_g16.c | p->stats.rx_dropped++; |
p | 1627 | drivers/net/sk_g16.c | p->stats.rx_packets++; |
p | 1630 | drivers/net/sk_g16.c | p->rmdnum++; |
p | 1631 | drivers/net/sk_g16.c | p->rmdnum %= RMDNUM; |
p | 1633 | drivers/net/sk_g16.c | rmdp = p->rmdhead + p->rmdnum; |
p | 1700 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1705 | drivers/net/sk_g16.c | return &p->stats; /* Return Device status */ |
p | 2089 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 2094 | drivers/net/sk_g16.c | (unsigned int) p->ram, |
p | 2095 | drivers/net/sk_g16.c | (unsigned int) p->tmdhead, |
p | 2096 | drivers/net/sk_g16.c | (unsigned int) p->rmdhead, |
p | 2097 | drivers/net/sk_g16.c | (unsigned int) &(p->ram)->ib); |
p | 2107 | drivers/net/sk_g16.c | printk("tmdbufs%d: %#08x ", (i+1), (int) p->tmdbufs[i]); |
p | 2117 | drivers/net/sk_g16.c | printk("rmdbufs%d: %#08x ", (i+1), (int) p->rmdbufs[i]); |
p | 103 | drivers/net/slip.c | static int slip_esc(unsigned char *p, unsigned char *d, int len); |
p | 106 | drivers/net/slip.c | static int slip_esc6(unsigned char *p, unsigned char *d, int len); |
p | 400 | drivers/net/slip.c | unsigned char *p; |
p | 420 | drivers/net/slip.c | p = icp; |
p | 423 | drivers/net/slip.c | len = slhc_compress(sl->slcomp, p, len, sl->cbuff, &p, 1); |
p | 428 | drivers/net/slip.c | count = slip_esc6(p, (unsigned char *) sl->xbuff, len); |
p | 431 | drivers/net/slip.c | count = slip_esc(p, (unsigned char *) sl->xbuff, len); |
p | 2219 | drivers/net/wavelan.c | wavelan_cu_show_one(device *dev, net_local *lp, int i, unsigned short p) |
p | 2226 | drivers/net/wavelan.c | printk("%d: 0x%x:", i, p); |
p | 2228 | drivers/net/wavelan.c | obram_read(ioaddr, p, (unsigned char *)&actx, sizeof(actx)); |
p | 2247 | drivers/net/wavelan.c | wavelan_psa_show(psa_t *p) |
p | 2251 | drivers/net/wavelan.c | printk("psa_io_base_addr_1: 0x%02x,", p->psa_io_base_addr_1); |
p | 2252 | drivers/net/wavelan.c | printk("psa_io_base_addr_2: 0x%02x,", p->psa_io_base_addr_2); |
p | 2253 | drivers/net/wavelan.c | printk("psa_io_base_addr_3: 0x%02x,", p->psa_io_base_addr_3); |
p | 2254 | drivers/net/wavelan.c | printk("psa_io_base_addr_4: 0x%02x,", p->psa_io_base_addr_4); |
p | 2255 | drivers/net/wavelan.c | printk("psa_rem_boot_addr_1: 0x%02x,", p->psa_rem_boot_addr_1); |
p | 2256 | drivers/net/wavelan.c | printk("psa_rem_boot_addr_2: 0x%02x,", p->psa_rem_boot_addr_2); |
p | 2257 | drivers/net/wavelan.c | printk("psa_rem_boot_addr_3: 0x%02x,", p->psa_rem_boot_addr_3); |
p | 2258 | drivers/net/wavelan.c | printk("psa_holi_params: 0x%02x,", p->psa_holi_params); |
p | 2259 | drivers/net/wavelan.c | printk("psa_int_req_no: %d,", p->psa_int_req_no); |
p | 2263 | drivers/net/wavelan.c | p->psa_univ_mac_addr[0], |
p | 2264 | drivers/net/wavelan.c | p->psa_univ_mac_addr[1], |
p | 2265 | drivers/net/wavelan.c | p->psa_univ_mac_addr[2], |
p | 2266 | drivers/net/wavelan.c | p->psa_univ_mac_addr[3], |
p | 2267 | drivers/net/wavelan.c | p->psa_univ_mac_addr[4], |
p | 2268 | drivers/net/wavelan.c | p->psa_univ_mac_addr[5] |
p | 2273 | drivers/net/wavelan.c | p->psa_local_mac_addr[0], |
p | 2274 | drivers/net/wavelan.c | p->psa_local_mac_addr[1], |
p | 2275 | drivers/net/wavelan.c | p->psa_local_mac_addr[2], |
p | 2276 | drivers/net/wavelan.c | p->psa_local_mac_addr[3], |
p | 2277 | drivers/net/wavelan.c | p->psa_local_mac_addr[4], |
p | 2278 | drivers/net/wavelan.c | p->psa_local_mac_addr[5] |
p | 2280 | drivers/net/wavelan.c | printk("psa_univ_local_sel: %d,", p->psa_univ_local_sel); |
p | 2281 | drivers/net/wavelan.c | printk("psa_comp_number: %d,", p->psa_comp_number); |
p | 2282 | drivers/net/wavelan.c | printk("psa_thr_pre_set: 0x%02x,", p->psa_thr_pre_set); |
p | 2283 | drivers/net/wavelan.c | printk("psa_feature_select/decay_prm: 0x%02x,", p->psa_feature_select); |
p | 2284 | drivers/net/wavelan.c | printk("psa_subband/decay_update_prm: %d,", p->psa_subband); |
p | 2285 | drivers/net/wavelan.c | printk("psa_quality_thr: 0x%02x,", p->psa_quality_thr); |
p | 2286 | drivers/net/wavelan.c | printk("psa_mod_delay: 0x%02x,", p->psa_mod_delay); |
p | 2287 | drivers/net/wavelan.c | printk("psa_nwid: 0x%02x%02x,", p->psa_nwid[0], p->psa_nwid[1]); |
p | 2288 | drivers/net/wavelan.c | printk("psa_undefined: %d,", p->psa_undefined); |
p | 2289 | drivers/net/wavelan.c | printk("psa_encryption_select: %d,", p->psa_encryption_select); |
p | 2293 | drivers/net/wavelan.c | p->psa_encryption_key[0], |
p | 2294 | drivers/net/wavelan.c | p->psa_encryption_key[1], |
p | 2295 | drivers/net/wavelan.c | p->psa_encryption_key[2], |
p | 2296 | drivers/net/wavelan.c | p->psa_encryption_key[3], |
p | 2297 | drivers/net/wavelan.c | p->psa_encryption_key[4], |
p | 2298 | drivers/net/wavelan.c | p->psa_encryption_key[5], |
p | 2299 | drivers/net/wavelan.c | p->psa_encryption_key[6], |
p | 2300 | drivers/net/wavelan.c | p->psa_encryption_key[7] |
p | 2302 | drivers/net/wavelan.c | printk("psa_databus_width: %d,", p->psa_databus_width); |
p | 2303 | drivers/net/wavelan.c | printk("psa_call_code/auto_squelch: 0x%02x,", p->psa_call_code); |
p | 2304 | drivers/net/wavelan.c | printk("psa_no_of_retries: %d,", p->psa_no_of_retries); |
p | 2305 | drivers/net/wavelan.c | printk("psa_acr: %d,", p->psa_acr); |
p | 2306 | drivers/net/wavelan.c | printk("psa_dump_count: %d,", p->psa_dump_count); |
p | 2307 | drivers/net/wavelan.c | printk("psa_nwid_prefix: 0x%02x,", p->psa_nwid_prefix); |
p | 2308 | drivers/net/wavelan.c | printk("psa_conf_status: %d,", p->psa_conf_status); |
p | 2309 | drivers/net/wavelan.c | printk("psa_crc: 0x%02x%02x,", p->psa_crc[0], p->psa_crc[1]); |
p | 2310 | drivers/net/wavelan.c | printk("psa_crc_status: 0x%02x,", p->psa_crc_status); |
p | 2449 | drivers/net/wavelan.c | unsigned short p; |
p | 2456 | drivers/net/wavelan.c | for (i = 0, p = lp->tx_first_in_use; i < NTXBLOCKS; i++) |
p | 2458 | drivers/net/wavelan.c | wavelan_cu_show_one(dev, lp, i, p); |
p | 2460 | drivers/net/wavelan.c | p += TXBLOCKZ; |
p | 2461 | drivers/net/wavelan.c | if (p >= OFFSET_CU + NTXBLOCKS * TXBLOCKZ) |
p | 2462 | drivers/net/wavelan.c | p -= NTXBLOCKS * TXBLOCKZ; |
p | 115 | drivers/net/wavelan.h | #define mmwoff(p,f) (unsigned short)((void *)(&((mmw_t *)((void *)0 + (p)))->f) - (void *)0) |
p | 156 | drivers/net/wavelan.h | #define mmroff(p,f) (unsigned short)((void *)(&((mmr_t *)((void *)0 + (p)))->f) - (void *)0) |
p | 201 | drivers/net/wavelan.h | #define hoff(p,f) (unsigned short)((void *)(&((ha_t *)((void *)0 + (p)))->f) - (void *)0) |
p | 202 | drivers/net/wavelan.h | #define HACR(p) hoff(p, ha_command) |
p | 203 | drivers/net/wavelan.h | #define HASR(p) hoff(p, ha_status) |
p | 204 | drivers/net/wavelan.h | #define MMCR(p) hoff(p, ha_mmcr) |
p | 205 | drivers/net/wavelan.h | #define PIOR0(p) hoff(p, ha_pior0) |
p | 206 | drivers/net/wavelan.h | #define PIOP0(p) hoff(p, ha_piop0) |
p | 207 | drivers/net/wavelan.h | #define PIOR1(p) hoff(p, ha_pior1) |
p | 208 | drivers/net/wavelan.h | #define PIOP1(p) hoff(p, ha_piop1) |
p | 209 | drivers/net/wavelan.h | #define PIOR2(p) hoff(p, ha_pior2) |
p | 210 | drivers/net/wavelan.h | #define PIOP2(p) hoff(p, ha_piop2) |
p | 206 | drivers/net/znet.c | char *p; |
p | 209 | drivers/net/znet.c | for(p = (char *)0xf0000; p < (char *)0x100000; p++) |
p | 210 | drivers/net/znet.c | if (*p == 'N' && strncmp(p, "NETIDBLK", 8) == 0) |
p | 213 | drivers/net/znet.c | if (p >= (char *)0x100000) { |
p | 218 | drivers/net/znet.c | netinfo = (struct netidblk *)p; |
p | 1468 | drivers/scsi/NCR5380.c | register unsigned char p = *phase, tmp; |
p | 1479 | drivers/scsi/NCR5380.c | NCR5380_write(TARGET_COMMAND_REG, PHASE_SR_TO_TCR(p)); |
p | 1493 | drivers/scsi/NCR5380.c | if ((tmp & PHASE_MASK) != p) { |
p | 1502 | drivers/scsi/NCR5380.c | if (!(p & SR_IO)) |
p | 1516 | drivers/scsi/NCR5380.c | if (!(p & SR_IO)) { |
p | 1517 | drivers/scsi/NCR5380.c | if (!((p & SR_MSG) && c > 1)) { |
p | 1558 | drivers/scsi/NCR5380.c | if (!(p == PHASE_MSGIN && c == 1)) { |
p | 1559 | drivers/scsi/NCR5380.c | if (p == PHASE_MSGOUT && c > 1) |
p | 1578 | drivers/scsi/NCR5380.c | if (!c || (*phase == p)) |
p | 1609 | drivers/scsi/NCR5380.c | register unsigned char p = *phase; |
p | 1623 | drivers/scsi/NCR5380.c | if ((tmp = (NCR5380_read(STATUS_REG) & PHASE_MASK)) != p) { |
p | 1629 | drivers/scsi/NCR5380.c | if (p & SR_IO) { |
p | 1635 | drivers/scsi/NCR5380.c | instance->host_no, instance->dma_channel, (p & SR_IO) ? "reading" : |
p | 1636 | drivers/scsi/NCR5380.c | "writing", c, (p & SR_IO) ? "to" : "from", (unsigned) d); |
p | 1638 | drivers/scsi/NCR5380.c | hostdata->dma_len = (p & SR_IO) ? |
p | 1643 | drivers/scsi/NCR5380.c | NCR5380_write(TARGET_COMMAND_REG, PHASE_SR_TO_TCR(p)); |
p | 1675 | drivers/scsi/NCR5380.c | if (p & SR_IO) { |
p | 1736 | drivers/scsi/NCR5380.c | if (p & SR_IO) { |
p | 1770 | drivers/scsi/NCR5380.c | if (*phase == p && (p & SR_IO) && residue == 0) { |
p | 1800 | drivers/scsi/NCR5380.c | if (p & SR_IO) { |
p | 95 | drivers/scsi/aha1542.h | #define any2scsi(up, p) \ |
p | 96 | drivers/scsi/aha1542.h | (up)[0] = (((unsigned long)(p)) >> 16) ; \ |
p | 97 | drivers/scsi/aha1542.h | (up)[1] = (((unsigned long)(p)) >> 8); \ |
p | 98 | drivers/scsi/aha1542.h | (up)[2] = ((unsigned long)(p)); |
p | 102 | drivers/scsi/aha1542.h | #define xany2scsi(up, p) \ |
p | 103 | drivers/scsi/aha1542.h | (up)[0] = ((long)(p)) >> 24; \ |
p | 104 | drivers/scsi/aha1542.h | (up)[1] = ((long)(p)) >> 16; \ |
p | 105 | drivers/scsi/aha1542.h | (up)[2] = ((long)(p)) >> 8; \ |
p | 106 | drivers/scsi/aha1542.h | (up)[3] = ((long)(p)); |
p | 90 | drivers/scsi/aha1740.h | #define any2scsi(up, p) \ |
p | 91 | drivers/scsi/aha1740.h | (up)[0] = (((unsigned long)(p)) >> 16) ; \ |
p | 92 | drivers/scsi/aha1740.h | (up)[1] = (((unsigned long)(p)) >> 8); \ |
p | 93 | drivers/scsi/aha1740.h | (up)[2] = ((unsigned long)(p)); |
p | 97 | drivers/scsi/aha1740.h | #define xany2scsi(up, p) \ |
p | 98 | drivers/scsi/aha1740.h | (up)[0] = ((long)(p)) >> 24; \ |
p | 99 | drivers/scsi/aha1740.h | (up)[1] = ((long)(p)) >> 16; \ |
p | 100 | drivers/scsi/aha1740.h | (up)[2] = ((long)(p)) >> 8; \ |
p | 101 | drivers/scsi/aha1740.h | (up)[3] = ((long)(p)); |
p | 691 | drivers/scsi/aic7xxx.c | #define PAUSE_SEQUENCER(p) \ |
p | 692 | drivers/scsi/aic7xxx.c | outb(p->pause, HCNTRL(p->base)); \ |
p | 693 | drivers/scsi/aic7xxx.c | while ((inb(HCNTRL(p->base)) & PAUSE) == 0) \ |
p | 700 | drivers/scsi/aic7xxx.c | #define UNPAUSE_SEQUENCER(p) \ |
p | 701 | drivers/scsi/aic7xxx.c | outb(p->unpause, HCNTRL(p->base)) |
p | 706 | drivers/scsi/aic7xxx.c | #define RESTART_SEQUENCER(p) \ |
p | 708 | drivers/scsi/aic7xxx.c | outb(SEQRESET | FASTMODE, SEQCTL(p->base)); \ |
p | 709 | drivers/scsi/aic7xxx.c | } while (inb(SEQADDR0(p->base)) != 0 && \ |
p | 710 | drivers/scsi/aic7xxx.c | inb(SEQADDR1(p->base)) != 0); \ |
p | 711 | drivers/scsi/aic7xxx.c | UNPAUSE_SEQUENCER(p); |
p | 963 | drivers/scsi/aic7xxx.c | debug_config(struct aic7xxx_host_config *p) |
p | 973 | drivers/scsi/aic7xxx.c | host_conf = inb(HA_HOSTCONF(p->base)); |
p | 974 | drivers/scsi/aic7xxx.c | scsi_conf = inb(HA_SCSICONF(p->base)); |
p | 983 | drivers/scsi/aic7xxx.c | if ((p->type == AIC_274x) || (p->type == AIC_284x)) |
p | 992 | drivers/scsi/aic7xxx.c | brelease = p->busrtime; |
p | 998 | drivers/scsi/aic7xxx.c | switch (p->type) |
p | 1001 | drivers/scsi/aic7xxx.c | printk("AIC7770%s AT EISA SLOT %d:\n", BUSW[p->bus_type], p->base >> 12); |
p | 1005 | drivers/scsi/aic7xxx.c | printk("AIC7770%s AT VLB SLOT %d:\n", BUSW[p->bus_type], p->base >> 12); |
p | 1009 | drivers/scsi/aic7xxx.c | printk("AIC7870%s (PCI-bus):\n", BUSW[p->bus_type]); |
p | 1013 | drivers/scsi/aic7xxx.c | printk("AIC7850%s (PCI-bus):\n", BUSW[p->bus_type]); |
p | 1017 | drivers/scsi/aic7xxx.c | printk("AIC7872%s (PCI-bus):\n", BUSW[p->bus_type]); |
p | 1027 | drivers/scsi/aic7xxx.c | p->irq, |
p | 1039 | drivers/scsi/aic7xxx.c | if (((p->type == AIC_274x) || (p->type == AIC_284x)) && p->parity == AIC_UNKNOWN) |
p | 1041 | drivers/scsi/aic7xxx.c | p->parity = (scsi_conf & 0x20) ? AIC_ENABLED : AIC_DISABLED; |
p | 1043 | drivers/scsi/aic7xxx.c | if (p->parity != AIC_UNKNOWN) |
p | 1046 | drivers/scsi/aic7xxx.c | (p->parity == AIC_ENABLED) ? "en" : "dis"); |
p | 1049 | drivers/scsi/aic7xxx.c | if (p->type == AIC_274x) |
p | 1051 | drivers/scsi/aic7xxx.c | p->low_term = (scsi_conf & 0x80) ? AIC_ENABLED : AIC_DISABLED; |
p | 1053 | drivers/scsi/aic7xxx.c | if (p->low_term != AIC_UNKNOWN) |
p | 1056 | drivers/scsi/aic7xxx.c | (p->low_term == AIC_ENABLED) ? "en" : "dis"); |
p | 1058 | drivers/scsi/aic7xxx.c | if ((p->bus_type == AIC_WIDE) && (p->high_term != AIC_UNKNOWN)) |
p | 1061 | drivers/scsi/aic7xxx.c | (p->high_term == AIC_ENABLED) ? "en" : "dis"); |
p | 1088 | drivers/scsi/aic7xxx.c | char *p; |
p | 1099 | drivers/scsi/aic7xxx.c | for (p = strtok(s, ","); p; p = strtok(NULL, ",")) |
p | 1103 | drivers/scsi/aic7xxx.c | if (!strcmp(options[i].name, p)) |
p | 1435 | drivers/scsi/aic7xxx.c | struct aic7xxx_host *p; |
p | 1450 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) aic7xxx_boards[irq]->hostdata; |
p | 1456 | drivers/scsi/aic7xxx.c | while ((p != NULL) && !(inb(INTSTAT(p->base)) & INT_PEND)) |
p | 1458 | drivers/scsi/aic7xxx.c | if (p->next == NULL) |
p | 1460 | drivers/scsi/aic7xxx.c | p = NULL; |
p | 1464 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) p->next->hostdata; |
p | 1468 | drivers/scsi/aic7xxx.c | if (p == NULL) |
p | 1482 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) aic7xxx_boards[irq]->hostdata; |
p | 1486 | drivers/scsi/aic7xxx.c | p->isr_count++; /* Keep track of interrupts for /proc/scsi */ |
p | 1488 | drivers/scsi/aic7xxx.c | if ((p->a_scanned == 0) && (p->isr_count == 1)) |
p | 1500 | drivers/scsi/aic7xxx.c | base = p->base; |
p | 1534 | drivers/scsi/aic7xxx.c | PAUSE_SEQUENCER(p); |
p | 1546 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[scbptr]); |
p | 1602 | drivers/scsi/aic7xxx.c | RESTART_SEQUENCER(p); |
p | 1654 | drivers/scsi/aic7xxx.c | if (p->sdtr_pending & target_mask) |
p | 1673 | drivers/scsi/aic7xxx.c | p->needsdtr = p->needsdtr & ~target_mask; |
p | 1674 | drivers/scsi/aic7xxx.c | p->sdtr_pending = p->sdtr_pending & ~target_mask; |
p | 1686 | drivers/scsi/aic7xxx.c | "needwdtr = 0x%x\n", scsi_id, p->needwdtr); |
p | 1690 | drivers/scsi/aic7xxx.c | if (p->wdtr_pending & target_mask) |
p | 1734 | drivers/scsi/aic7xxx.c | p->needwdtr = p->needwdtr & ~target_mask; |
p | 1735 | drivers/scsi/aic7xxx.c | p->wdtr_pending = p->wdtr_pending & ~target_mask; |
p | 1763 | drivers/scsi/aic7xxx.c | if (p->wdtr_pending & mask) |
p | 1769 | drivers/scsi/aic7xxx.c | p->needwdtr = p->needwdtr & ~mask; |
p | 1770 | drivers/scsi/aic7xxx.c | p->wdtr_pending = p->wdtr_pending & ~mask; |
p | 1777 | drivers/scsi/aic7xxx.c | if (p->sdtr_pending & mask) |
p | 1783 | drivers/scsi/aic7xxx.c | p->needsdtr = p->needsdtr & ~mask; |
p | 1784 | drivers/scsi/aic7xxx.c | p->sdtr_pending = p->sdtr_pending & ~mask; |
p | 1801 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[scbptr]); |
p | 1952 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[scbptr]); |
p | 1995 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[scbptr]); |
p | 2026 | drivers/scsi/aic7xxx.c | scb->next = p->free_scb; /* preserve next pointer */ |
p | 2027 | drivers/scsi/aic7xxx.c | p->free_scb = scb; /* add at head of list */ |
p | 2037 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[scbptr]); |
p | 2070 | drivers/scsi/aic7xxx.c | UNPAUSE_SEQUENCER(p); |
p | 2078 | drivers/scsi/aic7xxx.c | scb = &p->scb_array[scbptr]; |
p | 2088 | drivers/scsi/aic7xxx.c | UNPAUSE_SEQUENCER(p); |
p | 2164 | drivers/scsi/aic7xxx.c | RESTART_SEQUENCER(p); |
p | 2178 | drivers/scsi/aic7xxx.c | scb->next = p->free_scb; /* preserve next pointer */ |
p | 2179 | drivers/scsi/aic7xxx.c | p->free_scb = scb; /* add at head of list */ |
p | 2208 | drivers/scsi/aic7xxx.c | UNPAUSE_SEQUENCER(p); |
p | 2223 | drivers/scsi/aic7xxx.c | UNPAUSE_SEQUENCER(p); |
p | 2244 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[complete]); |
p | 2264 | drivers/scsi/aic7xxx.c | scb->state, (unsigned int) scb->cmd, (unsigned int) p->free_scb); |
p | 2274 | drivers/scsi/aic7xxx.c | scb->next = p->free_scb; |
p | 2276 | drivers/scsi/aic7xxx.c | p->free_scb = &(p->scb_array[scb->position]); |
p | 2280 | drivers/scsi/aic7xxx.c | if (scb != &p->scb_array[scb->position]) |
p | 2285 | drivers/scsi/aic7xxx.c | scb->state, (unsigned int) scb->cmd, (unsigned int) p->free_scb); |
p | 2435 | drivers/scsi/aic7xxx.c | #define CLOCK_PULSE(p) \ |
p | 2648 | drivers/scsi/aic7xxx.c | struct aic7xxx_host *p; |
p | 2959 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) host->hostdata; |
p | 2964 | drivers/scsi/aic7xxx.c | p->scb_array[i].state = SCB_FREE; |
p | 2965 | drivers/scsi/aic7xxx.c | p->scb_array[i].next = NULL; |
p | 2966 | drivers/scsi/aic7xxx.c | p->scb_array[i].cmd = NULL; |
p | 2969 | drivers/scsi/aic7xxx.c | p->isr_count = 0; |
p | 2970 | drivers/scsi/aic7xxx.c | p->a_scanned = 0; |
p | 2971 | drivers/scsi/aic7xxx.c | p->b_scanned = 0; |
p | 2972 | drivers/scsi/aic7xxx.c | p->base = config.base; |
p | 2973 | drivers/scsi/aic7xxx.c | p->maxscb = config.maxscb; |
p | 2974 | drivers/scsi/aic7xxx.c | p->numscb = 0; |
p | 2975 | drivers/scsi/aic7xxx.c | p->extended = config.extended; |
p | 2976 | drivers/scsi/aic7xxx.c | p->type = config.type; |
p | 2977 | drivers/scsi/aic7xxx.c | p->bus_type = config.bus_type; |
p | 2978 | drivers/scsi/aic7xxx.c | p->have_seeprom = have_seeprom; |
p | 2979 | drivers/scsi/aic7xxx.c | p->seeprom = sc; |
p | 2980 | drivers/scsi/aic7xxx.c | p->free_scb = NULL; |
p | 2981 | drivers/scsi/aic7xxx.c | p->next = NULL; |
p | 2983 | drivers/scsi/aic7xxx.c | p->unpause = config.unpause; |
p | 2984 | drivers/scsi/aic7xxx.c | p->pause = config.pause; |
p | 3014 | drivers/scsi/aic7xxx.c | p->next = aic7xxx_boards[config.irq]; |
p | 3031 | drivers/scsi/aic7xxx.c | if ((p->type == AIC_274x || p->type == AIC_284x)) |
p | 3041 | drivers/scsi/aic7xxx.c | if (p->bus_type == AIC_TWIN) |
p | 3067 | drivers/scsi/aic7xxx.c | p->needsdtr_copy = 0; |
p | 3068 | drivers/scsi/aic7xxx.c | p->sdtr_pending = 0; |
p | 3069 | drivers/scsi/aic7xxx.c | p->needwdtr_copy = 0; |
p | 3070 | drivers/scsi/aic7xxx.c | p->wdtr_pending = 0; |
p | 3071 | drivers/scsi/aic7xxx.c | if (p->bus_type == AIC_SINGLE) |
p | 3087 | drivers/scsi/aic7xxx.c | p->needsdtr_copy = p->needsdtr_copy | (0x01 << i); |
p | 3089 | drivers/scsi/aic7xxx.c | if ((sc.device_flags[i] & CFWIDEB) && (p->bus_type == AIC_WIDE)) |
p | 3091 | drivers/scsi/aic7xxx.c | p->needwdtr_copy = p->needwdtr_copy | (0x01 << i); |
p | 3099 | drivers/scsi/aic7xxx.c | p->needsdtr_copy = p->needsdtr_copy | (0x01 << i); |
p | 3110 | drivers/scsi/aic7xxx.c | if ((target_settings & 0x80) && (p->bus_type == AIC_WIDE)) |
p | 3112 | drivers/scsi/aic7xxx.c | p->needwdtr_copy = p->needwdtr_copy | (0x01 << i); |
p | 3119 | drivers/scsi/aic7xxx.c | p->needsdtr = p->needsdtr_copy; |
p | 3120 | drivers/scsi/aic7xxx.c | p->needwdtr = p->needwdtr_copy; |
p | 3122 | drivers/scsi/aic7xxx.c | printk("NeedSdtr = 0x%x, 0x%x\n", p->needsdtr_copy, p->needsdtr); |
p | 3123 | drivers/scsi/aic7xxx.c | printk("NeedWdtr = 0x%x, 0x%x\n", p->needwdtr_copy, p->needwdtr); |
p | 3168 | drivers/scsi/aic7xxx.c | if (p->bus_type == AIC_TWIN) |
p | 3194 | drivers/scsi/aic7xxx.c | UNPAUSE_SEQUENCER(p); |
p | 3412 | drivers/scsi/aic7xxx.c | aic7xxx_buildscb(struct aic7xxx_host *p, |
p | 3440 | drivers/scsi/aic7xxx.c | if ((p->needwdtr & mask) && !(p->wdtr_pending & mask)) |
p | 3442 | drivers/scsi/aic7xxx.c | p->wdtr_pending = p->wdtr_pending | mask; |
p | 3450 | drivers/scsi/aic7xxx.c | if ((p->needsdtr & mask) && !(p->sdtr_pending & mask)) |
p | 3452 | drivers/scsi/aic7xxx.c | p->sdtr_pending = p->sdtr_pending | mask; |
p | 3462 | drivers/scsi/aic7xxx.c | cmd->target, cmd->cmnd[0], cmd->cmd_len, p->needwdtr, mask); |
p | 3536 | drivers/scsi/aic7xxx.c | struct aic7xxx_host *p; |
p | 3540 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) cmd->host->hostdata; |
p | 3543 | drivers/scsi/aic7xxx.c | if (!p->a_scanned && (cmd->channel == 0)) |
p | 3546 | drivers/scsi/aic7xxx.c | p->a_scanned = 1; |
p | 3550 | drivers/scsi/aic7xxx.c | if (!p->b_scanned && (cmd->channel == 1)) |
p | 3553 | drivers/scsi/aic7xxx.c | p->b_scanned = 1; |
p | 3582 | drivers/scsi/aic7xxx.c | scb = p->free_scb; |
p | 3585 | drivers/scsi/aic7xxx.c | p->free_scb = scb->next; /* remove and update head of list */ |
p | 3593 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[scb->position]); |
p | 3599 | drivers/scsi/aic7xxx.c | if (p->numscb >= p->maxscb) |
p | 3610 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[p->numscb]); |
p | 3613 | drivers/scsi/aic7xxx.c | scb->position = p->numscb; |
p | 3614 | drivers/scsi/aic7xxx.c | p->numscb++; |
p | 3621 | drivers/scsi/aic7xxx.c | PAUSE_SEQUENCER(p); |
p | 3622 | drivers/scsi/aic7xxx.c | curscb = inb(SCBPTR(p->base)); |
p | 3623 | drivers/scsi/aic7xxx.c | outb(scb->position, SCBPTR(p->base)); |
p | 3624 | drivers/scsi/aic7xxx.c | aic7xxx_putdmascb(p->base, scb); |
p | 3625 | drivers/scsi/aic7xxx.c | outb(curscb, SCBPTR(p->base)); |
p | 3626 | drivers/scsi/aic7xxx.c | UNPAUSE_SEQUENCER(p); |
p | 3638 | drivers/scsi/aic7xxx.c | aic7xxx_buildscb(p, cmd, scb); |
p | 3641 | drivers/scsi/aic7xxx.c | if (scb != &p->scb_array[scb->position]) |
p | 3647 | drivers/scsi/aic7xxx.c | scb->state, (unsigned int) p->free_scb); |
p | 3655 | drivers/scsi/aic7xxx.c | PAUSE_SEQUENCER(p); |
p | 3664 | drivers/scsi/aic7xxx.c | aic7xxx_putscb(p->base, scb); |
p | 3666 | drivers/scsi/aic7xxx.c | old_scbptr = inb(SCBPTR(p->base)); |
p | 3667 | drivers/scsi/aic7xxx.c | outb(scb->position, SCBPTR(p->base)); |
p | 3669 | drivers/scsi/aic7xxx.c | aic7xxx_putscb(p->base, scb); |
p | 3671 | drivers/scsi/aic7xxx.c | outb(scb->position, QINFIFO(p->base)); |
p | 3672 | drivers/scsi/aic7xxx.c | outb(old_scbptr, SCBPTR(p->base)); |
p | 3687 | drivers/scsi/aic7xxx.c | UNPAUSE_SEQUENCER(p); |
p | 3724 | drivers/scsi/aic7xxx.c | struct aic7xxx_host *p; |
p | 3732 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) cmd->host->hostdata; |
p | 3733 | drivers/scsi/aic7xxx.c | scb = &p->scb_array[aic7xxx_position(cmd)]; |
p | 3738 | drivers/scsi/aic7xxx.c | PAUSE_SEQUENCER(p); |
p | 3747 | drivers/scsi/aic7xxx.c | queued = inb(QINCNT(p->base)); |
p | 3751 | drivers/scsi/aic7xxx.c | scbsave[i] = inb(QINFIFO(p->base)); |
p | 3762 | drivers/scsi/aic7xxx.c | outb(scbsave[queued], QINFIFO(p->base)); |
p | 3771 | drivers/scsi/aic7xxx.c | active_scb = inb(SCBPTR(p->base)); |
p | 3782 | drivers/scsi/aic7xxx.c | outb(scb->position, SCBPTR(p->base)); |
p | 3783 | drivers/scsi/aic7xxx.c | scb_control = inb(SCBARRAY(p->base)); |
p | 3785 | drivers/scsi/aic7xxx.c | outb(scb_control, SCBARRAY(p->base)); |
p | 3786 | drivers/scsi/aic7xxx.c | outb(active_scb, SCBPTR(p->base)); |
p | 3791 | drivers/scsi/aic7xxx.c | scb_control = inb(SCBARRAY(p->base)); |
p | 3795 | drivers/scsi/aic7xxx.c | outb(scb_control, SCBARRAY(p->base)); |
p | 3806 | drivers/scsi/aic7xxx.c | flags = inb(HA_FLAGS(p->base)); |
p | 3815 | drivers/scsi/aic7xxx.c | p->needsdtr = p->needsdtr_copy & 0xFF00; |
p | 3816 | drivers/scsi/aic7xxx.c | p->sdtr_pending = p->sdtr_pending & 0x00FF; |
p | 3817 | drivers/scsi/aic7xxx.c | outb(0, HA_ACTIVE1(p->base)); |
p | 3821 | drivers/scsi/aic7xxx.c | if (p->bus_type == AIC_WIDE) |
p | 3823 | drivers/scsi/aic7xxx.c | p->needsdtr = p->needsdtr_copy; |
p | 3824 | drivers/scsi/aic7xxx.c | p->needwdtr = p->needwdtr_copy; |
p | 3825 | drivers/scsi/aic7xxx.c | p->sdtr_pending = 0; |
p | 3826 | drivers/scsi/aic7xxx.c | p->wdtr_pending = 0; |
p | 3827 | drivers/scsi/aic7xxx.c | outb(0, HA_ACTIVE0(p->base)); |
p | 3828 | drivers/scsi/aic7xxx.c | outb(0, HA_ACTIVE1(p->base)); |
p | 3832 | drivers/scsi/aic7xxx.c | p->needsdtr = p->needsdtr_copy & 0x00FF; |
p | 3833 | drivers/scsi/aic7xxx.c | p->sdtr_pending = p->sdtr_pending & 0xFF00; |
p | 3834 | drivers/scsi/aic7xxx.c | outb(0, HA_ACTIVE0(p->base)); |
p | 3838 | drivers/scsi/aic7xxx.c | outb(SCSIRSTO, SCSISEQ(p->base)); |
p | 3840 | drivers/scsi/aic7xxx.c | outb(0, SCSISEQ(p->base)); |
p | 3847 | drivers/scsi/aic7xxx.c | outb(flags | ACTIVE_MSG, HA_FLAGS(p->base)); /* active message */ |
p | 3848 | drivers/scsi/aic7xxx.c | outb(1, HA_MSG_LEN(p->base)); /* length = 1 */ |
p | 3849 | drivers/scsi/aic7xxx.c | outb(message, HA_MSG_START(p->base)); /* message body */ |
p | 3856 | drivers/scsi/aic7xxx.c | outb(inb(HA_SIGSTATE(p->base)) | 0x10, SCSISIGO(p->base)); |
p | 3867 | drivers/scsi/aic7xxx.c | UNPAUSE_SEQUENCER(p); |
p | 3877 | drivers/scsi/aic7xxx.c | scb->next = p->free_scb; /* preserve next pointer */ |
p | 3878 | drivers/scsi/aic7xxx.c | p->free_scb = scb; /* add at head of free list */ |
p | 3927 | drivers/scsi/aic7xxx.c | struct aic7xxx_host *p; |
p | 3929 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) cmd->host->hostdata; |
p | 3942 | drivers/scsi/aic7xxx.c | p->needsdtr = p->needsdtr & (1 << cmd->target); |
p | 3943 | drivers/scsi/aic7xxx.c | UNPAUSE_SEQUENCER(p); |
p | 3951 | drivers/scsi/aic7xxx.c | PAUSE_SEQUENCER(p); |
p | 3974 | drivers/scsi/aic7xxx.c | outb(SCSIRSTO, SCSISEQ(p->base)); |
p | 3976 | drivers/scsi/aic7xxx.c | outb(0, SCSISEQ(p->base)); |
p | 3979 | drivers/scsi/aic7xxx.c | UNPAUSE_SEQUENCER(p); |
p | 4009 | drivers/scsi/aic7xxx.c | struct aic7xxx_host *p; |
p | 4011 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) disk->device->host->hostdata; |
p | 4022 | drivers/scsi/aic7xxx.c | if (p->extended && cylinders > 1024) |
p | 67 | drivers/scsi/aic7xxx_asm.c | void *p = malloc(size); |
p | 68 | drivers/scsi/aic7xxx_asm.c | if (!p) |
p | 70 | drivers/scsi/aic7xxx_asm.c | return(p); |
p | 76 | drivers/scsi/aic7xxx_asm.c | void *p = realloc(ptr, size); |
p | 77 | drivers/scsi/aic7xxx_asm.c | if (!p) |
p | 79 | drivers/scsi/aic7xxx_asm.c | return(p); |
p | 85 | drivers/scsi/aic7xxx_asm.c | char *p = (char *)Malloc(strlen(s) + 1); |
p | 86 | drivers/scsi/aic7xxx_asm.c | strcpy(p, s); |
p | 87 | drivers/scsi/aic7xxx_asm.c | return(p); |
p | 103 | drivers/scsi/aic7xxx_asm.c | sym_t *p, *q; |
p | 105 | drivers/scsi/aic7xxx_asm.c | for (p = head, q = (sym_t *)&head; p; p = p->next) { |
p | 106 | drivers/scsi/aic7xxx_asm.c | if (!strcmp(p->name, name)) |
p | 108 | drivers/scsi/aic7xxx_asm.c | q = p; |
p | 111 | drivers/scsi/aic7xxx_asm.c | p = q->next = (sym_t *)Malloc(sizeof(sym_t)); |
p | 112 | drivers/scsi/aic7xxx_asm.c | p->next = NULL; |
p | 113 | drivers/scsi/aic7xxx_asm.c | p->name = Strdup(name); |
p | 114 | drivers/scsi/aic7xxx_asm.c | p->value = value; |
p | 115 | drivers/scsi/aic7xxx_asm.c | p->npatch = 0; |
p | 116 | drivers/scsi/aic7xxx_asm.c | p->patch = NULL; |
p | 119 | drivers/scsi/aic7xxx_asm.c | fprintf(stderr, "\"%s\" ", p->name); |
p | 120 | drivers/scsi/aic7xxx_asm.c | if (p->value != NOVALUE) |
p | 121 | drivers/scsi/aic7xxx_asm.c | fprintf(stderr, "defined as 0x%x\n", p->value); |
p | 130 | drivers/scsi/aic7xxx_asm.c | sym_t *p; |
p | 132 | drivers/scsi/aic7xxx_asm.c | for (p = head; p; p = p->next) |
p | 133 | drivers/scsi/aic7xxx_asm.c | if (!strcmp(p->name, name)) |
p | 134 | drivers/scsi/aic7xxx_asm.c | return(p); |
p | 139 | drivers/scsi/aic7xxx_asm.c | patch(sym_t *p, int location) |
p | 141 | drivers/scsi/aic7xxx_asm.c | p->npatch += 1; |
p | 142 | drivers/scsi/aic7xxx_asm.c | p->patch = (int *)Realloc(p->patch, p->npatch * sizeof(int *)); |
p | 144 | drivers/scsi/aic7xxx_asm.c | p->patch[p->npatch - 1] = location; |
p | 150 | drivers/scsi/aic7xxx_asm.c | sym_t *p; |
p | 152 | drivers/scsi/aic7xxx_asm.c | for (p = head; p; p = p->next) { |
p | 154 | drivers/scsi/aic7xxx_asm.c | if (p->value == NOVALUE) { |
p | 157 | drivers/scsi/aic7xxx_asm.c | filename, p->name); |
p | 161 | drivers/scsi/aic7xxx_asm.c | if (p->npatch) { |
p | 165 | drivers/scsi/aic7xxx_asm.c | p->name, p->value); |
p | 167 | drivers/scsi/aic7xxx_asm.c | for (i = 0; i < p->npatch; i++) { |
p | 168 | drivers/scsi/aic7xxx_asm.c | M[p->patch[i]][0] &= ~1; |
p | 169 | drivers/scsi/aic7xxx_asm.c | M[p->patch[i]][0] |= ((p->value >> 8) & 1); |
p | 170 | drivers/scsi/aic7xxx_asm.c | M[p->patch[i]][1] = p->value & 0xff; |
p | 173 | drivers/scsi/aic7xxx_asm.c | fprintf(stderr, " 0x%x", p->patch[i]); |
p | 204 | drivers/scsi/aic7xxx_asm.c | char *p, *quote; |
p | 217 | drivers/scsi/aic7xxx_asm.c | p = strchr(buf, '#'); |
p | 218 | drivers/scsi/aic7xxx_asm.c | if (p) |
p | 219 | drivers/scsi/aic7xxx_asm.c | *p = '\0'; |
p | 220 | drivers/scsi/aic7xxx_asm.c | p = buf; |
p | 222 | drivers/scsi/aic7xxx_asm.c | quote = strchr(p, '\"'); |
p | 225 | drivers/scsi/aic7xxx_asm.c | for (p = strtok(p, ", \t\n"); p; p = strtok(NULL, ", \t\n")) |
p | 227 | drivers/scsi/aic7xxx_asm.c | a[i++] = p; |
p | 232 | drivers/scsi/aic7xxx_asm.c | p = strchr(quote, '\"'); |
p | 233 | drivers/scsi/aic7xxx_asm.c | if (!p) |
p | 237 | drivers/scsi/aic7xxx_asm.c | *p = '\0'; |
p | 238 | drivers/scsi/aic7xxx_asm.c | p++; |
p | 362 | drivers/scsi/aic7xxx_asm.c | sym_t *p; |
p | 376 | drivers/scsi/aic7xxx_asm.c | p = lookup(a[spec &~ (SL|SR|RL|RR)]); |
p | 377 | drivers/scsi/aic7xxx_asm.c | if (!p) |
p | 379 | drivers/scsi/aic7xxx_asm.c | val = p->value; |
p | 420 | drivers/scsi/aic7xxx_asm.c | p = lookup(a[spec]); |
p | 421 | drivers/scsi/aic7xxx_asm.c | if (p) |
p | 422 | drivers/scsi/aic7xxx_asm.c | return(p->value); |
p | 432 | drivers/scsi/aic7xxx_asm.c | sym_t *p; |
p | 439 | drivers/scsi/aic7xxx_asm.c | p = lookup(a[spec]); |
p | 441 | drivers/scsi/aic7xxx_asm.c | if (p) { |
p | 442 | drivers/scsi/aic7xxx_asm.c | if (p->value != NOVALUE) |
p | 443 | drivers/scsi/aic7xxx_asm.c | return(p->value); |
p | 444 | drivers/scsi/aic7xxx_asm.c | patch(p, LC); |
p | 447 | drivers/scsi/aic7xxx_asm.c | p = lookup(a[spec]); |
p | 448 | drivers/scsi/aic7xxx_asm.c | patch(p, LC); |
p | 527 | drivers/scsi/aic7xxx_asm.c | sym_t *p; |
p | 533 | drivers/scsi/aic7xxx_asm.c | p = lookup(*a); |
p | 534 | drivers/scsi/aic7xxx_asm.c | if (p) |
p | 535 | drivers/scsi/aic7xxx_asm.c | p->value = LC; |
p | 574 | drivers/scsi/aic7xxx_asm.c | char *p; |
p | 575 | drivers/scsi/aic7xxx_asm.c | if ((p = strchr(optarg, '=')) != NULL) { |
p | 576 | drivers/scsi/aic7xxx_asm.c | *p = '\0'; |
p | 577 | drivers/scsi/aic7xxx_asm.c | define(optarg, strtol(p + 1, NULL, 0)); |
p | 354 | drivers/scsi/eata.c | ushort *p; |
p | 356 | drivers/scsi/eata.c | for (p = start; p <= end; p++) { |
p | 362 | drivers/scsi/eata.c | *p = inw(iobase); |
p | 780 | drivers/scsi/eata_dma.c | u16 *p; |
p | 796 | drivers/scsi/eata_dma.c | for (p = (u16 *) buf; |
p | 797 | drivers/scsi/eata_dma.c | (long)p <= ((long)buf + (sizeof(struct get_conf) / 2)); p++) { |
p | 803 | drivers/scsi/eata_dma.c | *p = inw(base + HA_RDATA); |
p | 2 | drivers/scsi/eata_dma_proc.c | void swap_statistics(u8 *p) |
p | 9 | drivers/scsi/eata_dma_proc.c | lp = (u32 *)p; |
p | 22 | drivers/scsi/eata_dma_proc.c | }while ((u32)lp < ((u32)p) + 4 + h_sp); |
p | 586 | drivers/scsi/eata_pio.c | ushort *p; |
p | 602 | drivers/scsi/eata_pio.c | for (p = (ushort *) buf; |
p | 603 | drivers/scsi/eata_pio.c | (long)p <= ((long)buf + (sizeof(struct get_conf) / 2)); p++) { |
p | 609 | drivers/scsi/eata_pio.c | *p = inw(base + HA_RDATA); |
p | 75 | drivers/scsi/in2000.h | #define any2scsi(up, p) \ |
p | 76 | drivers/scsi/in2000.h | (up)[0] = (((unsigned long)(p)) >> 16); \ |
p | 77 | drivers/scsi/in2000.h | (up)[1] = (((unsigned long)(p)) >> 8); \ |
p | 78 | drivers/scsi/in2000.h | (up)[2] = ((unsigned long)(p)); |
p | 84 | drivers/scsi/in2000.h | #define xany2scsi(up, p) \ |
p | 85 | drivers/scsi/in2000.h | (up)[0] = ((long)(p)) >> 24; \ |
p | 86 | drivers/scsi/in2000.h | (up)[1] = ((long)(p)) >> 16; \ |
p | 87 | drivers/scsi/in2000.h | (up)[2] = ((long)(p)) >> 8; \ |
p | 88 | drivers/scsi/in2000.h | (up)[3] = ((long)(p)); |
p | 2501 | drivers/scsi/scsi.c | char *p; |
p | 2551 | drivers/scsi/scsi.c | p = buffer + 17; |
p | 2553 | drivers/scsi/scsi.c | parameter[0] = simple_strtoul(p , &p, 0); |
p | 2554 | drivers/scsi/scsi.c | parameter[1] = simple_strtoul(p , &p, 0); |
p | 2555 | drivers/scsi/scsi.c | parameter[2] = simple_strtoul(p , &p, 0); |
p | 2556 | drivers/scsi/scsi.c | parameter[3] = simple_strtoul(p , &p, 0); |
p | 179 | drivers/scsi/scsi_debug.c | struct partition * p; |
p | 308 | drivers/scsi/scsi_debug.c | p = (struct partition* ) (buff + 0x1be); |
p | 311 | drivers/scsi/scsi_debug.c | p->start_sect = starts[npart]; |
p | 312 | drivers/scsi/scsi_debug.c | p->nr_sects = starts[npart+1] - starts [npart]; |
p | 313 | drivers/scsi/scsi_debug.c | p->sys_ind = 0x81; /* Linux partition */ |
p | 314 | drivers/scsi/scsi_debug.c | p++; |
p | 93 | drivers/scsi/scsicam.c | struct partition *p, *largest = NULL; |
p | 100 | drivers/scsi/scsicam.c | for (largest_cyl = -1, p = (struct partition *) |
p | 101 | drivers/scsi/scsicam.c | (0x1BE + bh->b_data), i = 0; i < 4; ++i, ++p) { |
p | 102 | drivers/scsi/scsicam.c | if (!p->sys_ind) |
p | 108 | drivers/scsi/scsicam.c | cyl = p->cyl + ((p->sector & 0xc0) << 2); |
p | 111 | drivers/scsi/scsicam.c | largest = p; |
p | 862 | drivers/scsi/ultrastor.c | unsigned char p = inb(port0 + i); |
p | 863 | drivers/scsi/ultrastor.c | out[28 + i * 3] = "0123456789abcdef"[p >> 4]; |
p | 864 | drivers/scsi/ultrastor.c | out[29 + i * 3] = "0123456789abcdef"[p & 15]; |
p | 529 | drivers/scsi/wd7000.c | #define any2scsi(up, p) \ |
p | 530 | drivers/scsi/wd7000.c | (up)[0] = (((unsigned long)(p)) >> 16); \ |
p | 531 | drivers/scsi/wd7000.c | (up)[1] = ((unsigned long)(p)) >> 8; \ |
p | 532 | drivers/scsi/wd7000.c | (up)[2] = ((unsigned long)(p)); |
p | 608 | drivers/scsi/wd7000.c | register Scb *scb, *p; |
p | 645 | drivers/scsi/wd7000.c | for (i = 0; i < needed; i++) { p = scbfree; scbfree = p->next; } |
p | 646 | drivers/scsi/wd7000.c | p->next = NULL; |
p | 191 | drivers/sound/audio.c | int c, p, l; |
p | 196 | drivers/sound/audio.c | p = 0; |
p | 236 | drivers/sound/audio.c | return p; /* No more space. Return # of accepted bytes */ |
p | 250 | drivers/sound/audio.c | memcpy_fromfs ((&wr_dma_buf[dev][wr_buff_ptr[dev]]), &((buf)[p]), (l)); |
p | 254 | drivers/sound/audio.c | wr_dma_buf[dev], wr_buff_ptr[dev], buf, p, l); |
p | 271 | drivers/sound/audio.c | p += l; |
p | 292 | drivers/sound/audio.c | int c, p, l; |
p | 297 | drivers/sound/audio.c | p = 0; |
p | 324 | drivers/sound/audio.c | return p; |
p | 346 | drivers/sound/audio.c | memcpy_tofs (&((buf)[p]), (dmabuf), (l)); |
p | 350 | drivers/sound/audio.c | p += l; |
p | 577 | drivers/sound/dmabuf.c | int p = dmap->counts[dmap->qhead] + c; |
p | 584 | drivers/sound/dmabuf.c | else if (p >= dmap->fragment_size) |
p | 594 | drivers/sound/dmabuf.c | dmap->counts[dmap->qhead] = p; |
p | 1227 | drivers/sound/dmabuf.c | int p = dmap->fragment_size * dmap->qhead; |
p | 1229 | drivers/sound/dmabuf.c | memset (dmap->raw_buf + p, |
p | 2718 | drivers/sound/gus_wave.c | int i, p, best = -1, best_time = 0x7fffffff; |
p | 2720 | drivers/sound/gus_wave.c | p = alloc->ptr; |
p | 2727 | drivers/sound/gus_wave.c | if (alloc->map[p] == 0) |
p | 2729 | drivers/sound/gus_wave.c | alloc->ptr = p; |
p | 2730 | drivers/sound/gus_wave.c | return p; |
p | 2732 | drivers/sound/gus_wave.c | if (alloc->alloc_times[p] < best_time) |
p | 2734 | drivers/sound/gus_wave.c | best = p; |
p | 2735 | drivers/sound/gus_wave.c | best_time = alloc->alloc_times[p]; |
p | 2737 | drivers/sound/gus_wave.c | p = (p + 1) % alloc->max_voice; |
p | 2746 | drivers/sound/gus_wave.c | if (alloc->map[p] == 0xffff) |
p | 2748 | drivers/sound/gus_wave.c | alloc->ptr = p; |
p | 2749 | drivers/sound/gus_wave.c | return p; |
p | 2751 | drivers/sound/gus_wave.c | p = (p + 1) % alloc->max_voice; |
p | 2755 | drivers/sound/gus_wave.c | p = best; |
p | 2757 | drivers/sound/gus_wave.c | alloc->ptr = p; |
p | 2758 | drivers/sound/gus_wave.c | return p; |
p | 1059 | drivers/sound/opl3.c | int i, p, best, first, avail, best_time = 0x7fffffff; |
p | 1080 | drivers/sound/opl3.c | first = p = 0; |
p | 1086 | drivers/sound/opl3.c | first = p = 6; |
p | 1088 | drivers/sound/opl3.c | first = p = 0; |
p | 1099 | drivers/sound/opl3.c | if (alloc->map[p] == 0) |
p | 1101 | drivers/sound/opl3.c | return p; |
p | 1103 | drivers/sound/opl3.c | if (alloc->alloc_times[p] < best_time) /* Find oldest playing note */ |
p | 1105 | drivers/sound/opl3.c | best_time = alloc->alloc_times[p]; |
p | 1106 | drivers/sound/opl3.c | best = p; |
p | 1108 | drivers/sound/opl3.c | p = (p + 1) % avail; |
p | 105 | drivers/sound/sequencer.c | int c = count, p = 0; |
p | 159 | drivers/sound/sequencer.c | memcpy_tofs (&((buf)[p]), (&iqueue[iqhead * IEV_SZ]), (ev_len)); |
p | 160 | drivers/sound/sequencer.c | p += ev_len; |
p | 269 | drivers/sound/sequencer.c | int p = 0, c, ev_size; |
p | 289 | drivers/sound/sequencer.c | memcpy_fromfs ((event), &((buf)[p]), (4)); |
p | 303 | drivers/sound/sequencer.c | err = synth_devs[dev]->load_patch (dev, *(short *) &event[0], buf, p + 4, c, 0); |
p | 327 | drivers/sound/sequencer.c | memcpy_fromfs ((&event[4]), &((buf)[p + 4]), (4)); |
p | 384 | drivers/sound/sequencer.c | p += ev_size; |
p | 163 | drivers/sound/soundcard.c | unsigned char *p; |
p | 171 | drivers/sound/soundcard.c | p = audio_devs[dev >> 4]->dmap_out->raw_buf; |
p | 174 | drivers/sound/soundcard.c | printk ("%02x ", p[i]); |
p | 92 | fs/binfmt_elf.c | unsigned long * create_elf_tables(char * p,int argc,int envc,struct elfhdr * exec, unsigned int load_addr, unsigned int interp_load_addr, int ibcs) |
p | 101 | fs/binfmt_elf.c | mpnt->vm_start = PAGE_MASK & (unsigned long) p; |
p | 121 | fs/binfmt_elf.c | sp = (unsigned long *) (0xfffffffc & (unsigned long) p); |
p | 156 | fs/binfmt_elf.c | current->mm->arg_start = (unsigned long) p; |
p | 158 | fs/binfmt_elf.c | put_user(p,argv++); |
p | 159 | fs/binfmt_elf.c | while (get_user(p++)) /* nothing */ ; |
p | 162 | fs/binfmt_elf.c | current->mm->arg_end = current->mm->env_start = (unsigned long) p; |
p | 164 | fs/binfmt_elf.c | put_user(p,envp++); |
p | 165 | fs/binfmt_elf.c | while (get_user(p++)) /* nothing */ ; |
p | 168 | fs/binfmt_elf.c | current->mm->env_end = (unsigned long) p; |
p | 514 | fs/binfmt_elf.c | bprm->p = copy_strings(1,&passed_p,bprm->page,bprm->p,2); |
p | 518 | fs/binfmt_elf.c | if (!bprm->p) { |
p | 540 | fs/binfmt_elf.c | bprm->p += setup_arg_pages(0, bprm->page); |
p | 541 | fs/binfmt_elf.c | current->mm->start_stack = bprm->p; |
p | 634 | fs/binfmt_elf.c | current->start_stack = p = elf_stack - 4; |
p | 638 | fs/binfmt_elf.c | bprm->p -= MAX_ARG_PAGES*PAGE_SIZE; |
p | 639 | fs/binfmt_elf.c | bprm->p = (unsigned long) |
p | 640 | fs/binfmt_elf.c | create_elf_tables((char *)bprm->p, |
p | 653 | fs/binfmt_elf.c | current->mm->start_stack = bprm->p; |
p | 690 | fs/binfmt_elf.c | start_thread(regs, elf_entry, bprm->p); |
p | 36 | fs/block_dev.c | register char * p; |
p | 118 | fs/block_dev.c | p = offset + bh->b_data; |
p | 123 | fs/block_dev.c | memcpy_fromfs(p,buf,chars); |
p | 124 | fs/block_dev.c | p += chars; |
p | 1083 | fs/buffer.c | int * p; |
p | 1090 | fs/buffer.c | p = b; |
p | 1092 | fs/buffer.c | block = *(p++); |
p | 1099 | fs/buffer.c | p = b; |
p | 1110 | fs/buffer.c | bh->b_blocknr = *(p++); |
p | 1293 | fs/buffer.c | struct buffer_head * tmp, * p; |
p | 1311 | fs/buffer.c | p = tmp; |
p | 1315 | fs/buffer.c | if (p == *bhp) |
p | 1317 | fs/buffer.c | *bhp = p->b_prev_free; |
p | 1318 | fs/buffer.c | if (p == *bhp) /* Was this the last in the list? */ |
p | 1321 | fs/buffer.c | remove_from_queues(p); |
p | 1322 | fs/buffer.c | put_unused_buffer_head(p); |
p | 1567 | fs/buffer.c | struct buffer_head * tmp, * p; |
p | 1590 | fs/buffer.c | p = tmp; |
p | 1592 | fs/buffer.c | remove_from_queues(p); |
p | 1593 | fs/buffer.c | p->b_dev = dev; |
p | 1594 | fs/buffer.c | p->b_uptodate = 0; |
p | 1595 | fs/buffer.c | p->b_req = 0; |
p | 1596 | fs/buffer.c | p->b_blocknr = starting_block++; |
p | 1597 | fs/buffer.c | insert_into_queues(p); |
p | 216 | fs/dcache.c | struct dir_cache_entry * p; |
p | 221 | fs/dcache.c | p = level1_cache; |
p | 223 | fs/dcache.c | p[1].prev_lru = p; |
p | 224 | fs/dcache.c | p[0].next_lru = p+1; |
p | 225 | fs/dcache.c | p[0].lru_head = &level1_head; |
p | 226 | fs/dcache.c | } while (++p < level1_cache + DCACHE_SIZE-1); |
p | 227 | fs/dcache.c | level1_cache[0].prev_lru = p; |
p | 228 | fs/dcache.c | p[0].next_lru = &level1_cache[0]; |
p | 229 | fs/dcache.c | p[0].lru_head = &level1_head; |
p | 235 | fs/dcache.c | p = level2_cache; |
p | 237 | fs/dcache.c | p[1].prev_lru = p; |
p | 238 | fs/dcache.c | p[0].next_lru = p+1; |
p | 239 | fs/dcache.c | p[0].lru_head = &level2_head; |
p | 240 | fs/dcache.c | } while (++p < level2_cache + DCACHE_SIZE-1); |
p | 241 | fs/dcache.c | level2_cache[0].prev_lru = p; |
p | 242 | fs/dcache.c | p[0].next_lru = &level2_cache[0]; |
p | 243 | fs/dcache.c | p[0].lru_head = &level2_head; |
p | 310 | fs/exec.c | unsigned long * create_tables(char * p, struct linux_binprm * bprm, int ibcs) |
p | 321 | fs/exec.c | mpnt->vm_start = PAGE_MASK & (unsigned long) p; |
p | 331 | fs/exec.c | sp = (unsigned long *) ((-(unsigned long)sizeof(char *)) & (unsigned long) p); |
p | 356 | fs/exec.c | current->mm->arg_start = (unsigned long) p; |
p | 358 | fs/exec.c | put_user(p,argv++); |
p | 359 | fs/exec.c | while (get_user(p++)) /* nothing */ ; |
p | 362 | fs/exec.c | current->mm->arg_end = current->mm->env_start = (unsigned long) p; |
p | 364 | fs/exec.c | put_user(p,envp++); |
p | 365 | fs/exec.c | while (get_user(p++)) /* nothing */ ; |
p | 368 | fs/exec.c | current->mm->env_end = (unsigned long) p; |
p | 381 | fs/exec.c | char ** tmp, *p; |
p | 387 | fs/exec.c | while ((p = get_user(tmp++)) != NULL) { |
p | 389 | fs/exec.c | error = verify_area(VERIFY_READ, p, 1); |
p | 415 | fs/exec.c | unsigned long p, int from_kmem) |
p | 421 | fs/exec.c | if (!p) |
p | 438 | fs/exec.c | if (p < len) { /* this shouldn't happen - 128kB */ |
p | 443 | fs/exec.c | --p; --tmp; --len; |
p | 445 | fs/exec.c | offset = p % PAGE_SIZE; |
p | 448 | fs/exec.c | if (!(pag = (char *) page[p/PAGE_SIZE]) && |
p | 449 | fs/exec.c | !(pag = (char *) page[p/PAGE_SIZE] = |
p | 461 | fs/exec.c | return p; |
p | 616 | fs/exec.c | bprm.p = PAGE_SIZE*MAX_ARG_PAGES-sizeof(void *); |
p | 712 | fs/exec.c | bprm.p = copy_strings(bprm.envc, envp, bprm.page, bprm.p, 0); |
p | 713 | fs/exec.c | bprm.p = copy_strings(--bprm.argc, argv+1, bprm.page, bprm.p, 0); |
p | 723 | fs/exec.c | bprm.p = copy_strings(1, &bprm.filename, bprm.page, bprm.p, 2); |
p | 726 | fs/exec.c | bprm.p = copy_strings(1, &i_arg, bprm.page, bprm.p, 2); |
p | 729 | fs/exec.c | bprm.p = copy_strings(1, &i_name, bprm.page, bprm.p, 2); |
p | 731 | fs/exec.c | if (!bprm.p) { |
p | 751 | fs/exec.c | bprm.p = copy_strings(1, dynloader, bprm.page, bprm.p, 2); |
p | 752 | fs/exec.c | bprm.loader = bprm.p; |
p | 760 | fs/exec.c | bprm.p = copy_strings(1, &bprm.filename, bprm.page, bprm.p, 2); |
p | 761 | fs/exec.c | bprm.exec = bprm.p; |
p | 762 | fs/exec.c | bprm.p = copy_strings(bprm.envc,envp,bprm.page,bprm.p,0); |
p | 763 | fs/exec.c | bprm.p = copy_strings(bprm.argc,argv,bprm.page,bprm.p,0); |
p | 764 | fs/exec.c | if (!bprm.p) { |
p | 814 | fs/exec.c | unsigned long p = bprm->p; |
p | 915 | fs/exec.c | p += fd_offset; |
p | 920 | fs/exec.c | p = (unsigned long)create_tables((char *)p, bprm, |
p | 922 | fs/exec.c | current->mm->start_stack = p; |
p | 926 | fs/exec.c | start_thread(regs, ex.a_entry, p); |
p | 202 | fs/ext/file.c | char * p; |
p | 241 | fs/ext/file.c | p = (pos % BLOCK_SIZE) + bh->b_data; |
p | 248 | fs/ext/file.c | memcpy_fromfs(p,buf,c); |
p | 238 | fs/ext/inode.c | unsigned long * p; |
p | 241 | fs/ext/inode.c | p = inode->u.ext_i.i_data + nr; |
p | 243 | fs/ext/inode.c | tmp = *p; |
p | 246 | fs/ext/inode.c | if (tmp == *p) |
p | 257 | fs/ext/inode.c | if (*p) { |
p | 262 | fs/ext/inode.c | *p = tmp; |
p | 272 | fs/ext/inode.c | unsigned long * p; |
p | 285 | fs/ext/inode.c | p = nr + (unsigned long *) bh->b_data; |
p | 287 | fs/ext/inode.c | tmp = *p; |
p | 290 | fs/ext/inode.c | if (tmp == *p) { |
p | 307 | fs/ext/inode.c | if (*p) { |
p | 312 | fs/ext/inode.c | *p = tmp; |
p | 35 | fs/ext/truncate.c | unsigned long * p; |
p | 42 | fs/ext/truncate.c | p = inode->u.ext_i.i_data+i; |
p | 43 | fs/ext/truncate.c | if (!(tmp = *p)) |
p | 50 | fs/ext/truncate.c | if ((bh && bh->b_count != 1) || tmp != *p) { |
p | 55 | fs/ext/truncate.c | *p = 0; |
p | 63 | fs/ext/truncate.c | static int trunc_indirect(struct inode * inode, int offset, unsigned long * p) |
p | 72 | fs/ext/truncate.c | tmp = *p; |
p | 76 | fs/ext/truncate.c | if (tmp != *p) { |
p | 81 | fs/ext/truncate.c | *p = 0; |
p | 117 | fs/ext/truncate.c | tmp = *p; |
p | 118 | fs/ext/truncate.c | *p = 0; |
p | 126 | fs/ext/truncate.c | static int trunc_dindirect(struct inode * inode, int offset, unsigned long * p) |
p | 134 | fs/ext/truncate.c | tmp = *p; |
p | 138 | fs/ext/truncate.c | if (tmp != *p) { |
p | 143 | fs/ext/truncate.c | *p = 0; |
p | 167 | fs/ext/truncate.c | tmp = *p; |
p | 168 | fs/ext/truncate.c | *p = 0; |
p | 180 | fs/ext/truncate.c | unsigned long * tind, * p; |
p | 184 | fs/ext/truncate.c | p = inode->u.ext_i.i_data+11; |
p | 185 | fs/ext/truncate.c | if (!(tmp = *p)) |
p | 188 | fs/ext/truncate.c | if (tmp != *p) { |
p | 193 | fs/ext/truncate.c | *p = 0; |
p | 214 | fs/ext/truncate.c | tmp = *p; |
p | 215 | fs/ext/truncate.c | *p = 0; |
p | 258 | fs/ext2/balloc.c | char * p, * r; |
p | 335 | fs/ext2/balloc.c | p = ((char *) bh->b_data) + (j >> 3); |
p | 336 | fs/ext2/balloc.c | r = memscan(p, 0, (EXT2_BLOCKS_PER_GROUP(sb) - j + 7) >> 3); |
p | 187 | fs/ext2/inode.c | u32 * p; |
p | 192 | fs/ext2/inode.c | p = inode->u.ext2_i.i_data + nr; |
p | 194 | fs/ext2/inode.c | tmp = *p; |
p | 197 | fs/ext2/inode.c | if (tmp == *p) |
p | 232 | fs/ext2/inode.c | if (*p) { |
p | 237 | fs/ext2/inode.c | *p = tmp; |
p | 255 | fs/ext2/inode.c | u32 * p; |
p | 269 | fs/ext2/inode.c | p = (u32 *) bh->b_data + nr; |
p | 271 | fs/ext2/inode.c | tmp = *p; |
p | 274 | fs/ext2/inode.c | if (tmp == *p) { |
p | 306 | fs/ext2/inode.c | if (*p) { |
p | 311 | fs/ext2/inode.c | *p = tmp; |
p | 330 | fs/ext2/inode.c | u32 * p; |
p | 344 | fs/ext2/inode.c | p = (u32 *) bh->b_data + nr + i; |
p | 347 | fs/ext2/inode.c | if(*p == 0) goto out; |
p | 350 | fs/ext2/inode.c | if(i==0) firstblock = *p; |
p | 351 | fs/ext2/inode.c | else if(*p != firstblock + i) goto out; |
p | 354 | fs/ext2/inode.c | p = (u32 *) bh->b_data + nr; |
p | 355 | fs/ext2/inode.c | result = generate_cluster(bh->b_dev, (int *) p, blocksize); |
p | 49 | fs/ext2/truncate.c | u32 * p; |
p | 62 | fs/ext2/truncate.c | p = inode->u.ext2_i.i_data + i; |
p | 63 | fs/ext2/truncate.c | tmp = *p; |
p | 76 | fs/ext2/truncate.c | if ((bh && bh->b_count != 1) || tmp != *p) { |
p | 81 | fs/ext2/truncate.c | *p = 0; |
p | 110 | fs/ext2/truncate.c | static int trunc_indirect (struct inode * inode, int offset, u32 * p) |
p | 124 | fs/ext2/truncate.c | tmp = *p; |
p | 128 | fs/ext2/truncate.c | if (tmp != *p) { |
p | 133 | fs/ext2/truncate.c | *p = 0; |
p | 197 | fs/ext2/truncate.c | tmp = *p; |
p | 198 | fs/ext2/truncate.c | *p = 0; |
p | 212 | fs/ext2/truncate.c | u32 * p) |
p | 223 | fs/ext2/truncate.c | tmp = *p; |
p | 227 | fs/ext2/truncate.c | if (tmp != *p) { |
p | 232 | fs/ext2/truncate.c | *p = 0; |
p | 258 | fs/ext2/truncate.c | tmp = *p; |
p | 259 | fs/ext2/truncate.c | *p = 0; |
p | 276 | fs/ext2/truncate.c | u32 * tind, * p; |
p | 285 | fs/ext2/truncate.c | p = inode->u.ext2_i.i_data + EXT2_TIND_BLOCK; |
p | 286 | fs/ext2/truncate.c | if (!(tmp = *p)) |
p | 289 | fs/ext2/truncate.c | if (tmp != *p) { |
p | 294 | fs/ext2/truncate.c | *p = 0; |
p | 318 | fs/ext2/truncate.c | tmp = *p; |
p | 319 | fs/ext2/truncate.c | *p = 0; |
p | 69 | fs/fcntl.c | struct task_struct *p; |
p | 145 | fs/fcntl.c | for_each_task(p) { |
p | 146 | fs/fcntl.c | if ((p->pid == arg) || (p->pid == -arg) || |
p | 147 | fs/fcntl.c | (p->pgrp == -arg)) { |
p | 149 | fs/fcntl.c | if ((p->session != current->session) && |
p | 150 | fs/fcntl.c | (p->uid != current->uid) && |
p | 151 | fs/fcntl.c | (p->euid != current->euid) && |
p | 260 | fs/hpfs/hpfs_fs.c | static unsigned choose_conv(unsigned char *p, unsigned len); |
p | 544 | fs/hpfs/hpfs_fs.c | unsigned char *p = addr; |
p | 545 | fs/hpfs/hpfs_fs.c | return p[0] == 0 && memcmp(p, p + 1, len - 1) == 0; |
p | 555 | fs/hpfs/hpfs_fs.c | char *p, *rhs; |
p | 566 | fs/hpfs/hpfs_fs.c | for (p = strtok(opts, ","); p != 0; p = strtok(0, ",")) { |
p | 567 | fs/hpfs/hpfs_fs.c | if ((rhs = strchr(p, '=')) != 0) |
p | 569 | fs/hpfs/hpfs_fs.c | if (!strcmp(p, "uid")) { |
p | 576 | fs/hpfs/hpfs_fs.c | else if (!strcmp(p, "gid")) { |
p | 583 | fs/hpfs/hpfs_fs.c | else if (!strcmp(p, "umask")) { |
p | 590 | fs/hpfs/hpfs_fs.c | else if (!strcmp(p, "case")) { |
p | 598 | fs/hpfs/hpfs_fs.c | else if (!strcmp(p, "conv")) { |
p | 959 | fs/hpfs/hpfs_fs.c | static unsigned choose_conv(unsigned char *p, unsigned len) |
p | 967 | fs/hpfs/hpfs_fs.c | c = *p++; |
p | 969 | fs/hpfs/hpfs_fs.c | if (c == '\r' && len && *p == '\n') |
p | 293 | fs/isofs/rock.c | { int p; |
p | 294 | fs/isofs/rock.c | for(p=0;p<rr->u.ER.len_id;p++) printk("%c",rr->u.ER.data[p]); |
p | 18 | fs/isofs/util.c | isonum_711 (char * p) |
p | 20 | fs/isofs/util.c | return (*p & 0xff); |
p | 24 | fs/isofs/util.c | isonum_712 (char * p) |
p | 28 | fs/isofs/util.c | val = *p; |
p | 35 | fs/isofs/util.c | isonum_721 (char * p) |
p | 37 | fs/isofs/util.c | return ((p[0] & 0xff) | ((p[1] & 0xff) << 8)); |
p | 41 | fs/isofs/util.c | isonum_722 (char * p) |
p | 43 | fs/isofs/util.c | return (((p[0] & 0xff) << 8) | (p[1] & 0xff)); |
p | 47 | fs/isofs/util.c | isonum_723 (char * p) |
p | 50 | fs/isofs/util.c | if (p[0] != p[3] || p[1] != p[2]) { |
p | 55 | fs/isofs/util.c | return (isonum_721 (p)); |
p | 59 | fs/isofs/util.c | isonum_731 (char * p) |
p | 61 | fs/isofs/util.c | return ((p[0] & 0xff) |
p | 62 | fs/isofs/util.c | | ((p[1] & 0xff) << 8) |
p | 63 | fs/isofs/util.c | | ((p[2] & 0xff) << 16) |
p | 64 | fs/isofs/util.c | | ((p[3] & 0xff) << 24)); |
p | 68 | fs/isofs/util.c | isonum_732 (char * p) |
p | 70 | fs/isofs/util.c | return (((p[0] & 0xff) << 24) |
p | 71 | fs/isofs/util.c | | ((p[1] & 0xff) << 16) |
p | 72 | fs/isofs/util.c | | ((p[2] & 0xff) << 8) |
p | 73 | fs/isofs/util.c | | (p[3] & 0xff)); |
p | 77 | fs/isofs/util.c | isonum_733 (char * p) |
p | 83 | fs/isofs/util.c | if (p[i] != p[7-i]) { |
p | 89 | fs/isofs/util.c | return (isonum_731 (p)); |
p | 96 | fs/isofs/util.c | int iso_date(char * p, int flag) |
p | 101 | fs/isofs/util.c | year = p[0] - 70; |
p | 102 | fs/isofs/util.c | month = p[1]; |
p | 103 | fs/isofs/util.c | day = p[2]; |
p | 104 | fs/isofs/util.c | hour = p[3]; |
p | 105 | fs/isofs/util.c | minute = p[4]; |
p | 106 | fs/isofs/util.c | second = p[5]; |
p | 107 | fs/isofs/util.c | if (flag == 0) tz = p[6]; /* High sierra has no time zone */ |
p | 198 | fs/minix/file.c | char * p; |
p | 234 | fs/minix/file.c | p = (pos % BLOCK_SIZE) + bh->b_data; |
p | 237 | fs/minix/file.c | memcpy_fromfs(p,buf,c); |
p | 291 | fs/minix/inode.c | unsigned short *p; |
p | 294 | fs/minix/inode.c | p = inode->u.minix_i.i_data + nr; |
p | 296 | fs/minix/inode.c | tmp = *p; |
p | 299 | fs/minix/inode.c | if (tmp == *p) |
p | 310 | fs/minix/inode.c | if (*p) { |
p | 315 | fs/minix/inode.c | *p = tmp; |
p | 325 | fs/minix/inode.c | unsigned short *p; |
p | 338 | fs/minix/inode.c | p = nr + (unsigned short *) bh->b_data; |
p | 340 | fs/minix/inode.c | tmp = *p; |
p | 343 | fs/minix/inode.c | if (tmp == *p) { |
p | 360 | fs/minix/inode.c | if (*p) { |
p | 365 | fs/minix/inode.c | *p = tmp; |
p | 32 | fs/minix/truncate.c | unsigned short * p; |
p | 40 | fs/minix/truncate.c | p = i + inode->u.minix_i.i_data; |
p | 41 | fs/minix/truncate.c | if (!(tmp = *p)) |
p | 48 | fs/minix/truncate.c | if ((bh && bh->b_count != 1) || tmp != *p) { |
p | 53 | fs/minix/truncate.c | *p = 0; |
p | 64 | fs/minix/truncate.c | static int trunc_indirect(struct inode * inode, int offset, unsigned short * p) |
p | 73 | fs/minix/truncate.c | tmp = *p; |
p | 77 | fs/minix/truncate.c | if (tmp != *p) { |
p | 82 | fs/minix/truncate.c | *p = 0; |
p | 118 | fs/minix/truncate.c | tmp = *p; |
p | 119 | fs/minix/truncate.c | *p = 0; |
p | 130 | fs/minix/truncate.c | unsigned short * dind, * p; |
p | 134 | fs/minix/truncate.c | p = 8 + inode->u.minix_i.i_data; |
p | 135 | fs/minix/truncate.c | if (!(tmp = *p)) |
p | 138 | fs/minix/truncate.c | if (tmp != *p) { |
p | 143 | fs/minix/truncate.c | *p = 0; |
p | 164 | fs/minix/truncate.c | tmp = *p; |
p | 165 | fs/minix/truncate.c | *p = 0; |
p | 125 | fs/namei.c | struct task_struct * p; |
p | 128 | fs/namei.c | for_each_task(p) { |
p | 130 | fs/namei.c | if (!p->mm) |
p | 132 | fs/namei.c | for(mpnt = p->mm->mmap; mpnt; mpnt = mpnt->vm_next) { |
p | 69 | fs/nfs/proc.c | static int *nfs_rpc_header(int *p, int procedure, int ruid); |
p | 70 | fs/nfs/proc.c | static int *nfs_rpc_verify(int *p); |
p | 91 | fs/nfs/proc.c | static inline void nfs_rpc_free(int *p) |
p | 93 | fs/nfs/proc.c | kfree((void *)p); |
p | 103 | fs/nfs/proc.c | static inline int *xdr_encode_fhandle(int *p, struct nfs_fh *fhandle) |
p | 105 | fs/nfs/proc.c | *((struct nfs_fh *) p) = *fhandle; |
p | 106 | fs/nfs/proc.c | return p + QUADLEN(sizeof(*fhandle)); |
p | 109 | fs/nfs/proc.c | static inline int *xdr_decode_fhandle(int *p, struct nfs_fh *fhandle) |
p | 111 | fs/nfs/proc.c | *fhandle = *((struct nfs_fh *) p); |
p | 112 | fs/nfs/proc.c | return p + QUADLEN(sizeof(*fhandle)); |
p | 115 | fs/nfs/proc.c | static inline int *xdr_encode_string(int *p, const char *string) |
p | 120 | fs/nfs/proc.c | p[quadlen] = 0; |
p | 121 | fs/nfs/proc.c | *p++ = htonl(len); |
p | 122 | fs/nfs/proc.c | memcpy(p, string, len); |
p | 123 | fs/nfs/proc.c | return p + quadlen; |
p | 126 | fs/nfs/proc.c | static inline int *xdr_decode_string(int *p, char *string, unsigned int maxlen) |
p | 128 | fs/nfs/proc.c | unsigned int len = ntohl(*p++); |
p | 131 | fs/nfs/proc.c | memcpy(string, p, len); |
p | 133 | fs/nfs/proc.c | return p + QUADLEN(len); |
p | 136 | fs/nfs/proc.c | static inline int *xdr_decode_string2(int *p, char **string, unsigned int *len, |
p | 139 | fs/nfs/proc.c | *len = ntohl(*p++); |
p | 142 | fs/nfs/proc.c | *string = (char *) p; |
p | 143 | fs/nfs/proc.c | return p + QUADLEN(*len); |
p | 147 | fs/nfs/proc.c | static inline int *xdr_encode_data(int *p, const char *data, int len) |
p | 151 | fs/nfs/proc.c | p[quadlen] = 0; |
p | 152 | fs/nfs/proc.c | *p++ = htonl(len); |
p | 153 | fs/nfs/proc.c | memcpy_fromfs(p, data, len); |
p | 154 | fs/nfs/proc.c | return p + quadlen; |
p | 157 | fs/nfs/proc.c | static inline int *xdr_decode_data(int *p, char *data, int *lenp, int maxlen, |
p | 160 | fs/nfs/proc.c | unsigned len = *lenp = ntohl(*p++); |
p | 164 | fs/nfs/proc.c | memcpy_tofs(data, p, len); |
p | 166 | fs/nfs/proc.c | memcpy(data, p, len); |
p | 167 | fs/nfs/proc.c | return p + QUADLEN(len); |
p | 170 | fs/nfs/proc.c | static int *xdr_decode_fattr(int *p, struct nfs_fattr *fattr) |
p | 172 | fs/nfs/proc.c | fattr->type = (enum nfs_ftype) ntohl(*p++); |
p | 173 | fs/nfs/proc.c | fattr->mode = ntohl(*p++); |
p | 174 | fs/nfs/proc.c | fattr->nlink = ntohl(*p++); |
p | 175 | fs/nfs/proc.c | fattr->uid = ntohl(*p++); |
p | 176 | fs/nfs/proc.c | fattr->gid = ntohl(*p++); |
p | 177 | fs/nfs/proc.c | fattr->size = ntohl(*p++); |
p | 178 | fs/nfs/proc.c | fattr->blocksize = ntohl(*p++); |
p | 179 | fs/nfs/proc.c | fattr->rdev = ntohl(*p++); |
p | 180 | fs/nfs/proc.c | fattr->blocks = ntohl(*p++); |
p | 181 | fs/nfs/proc.c | fattr->fsid = ntohl(*p++); |
p | 182 | fs/nfs/proc.c | fattr->fileid = ntohl(*p++); |
p | 183 | fs/nfs/proc.c | fattr->atime.seconds = ntohl(*p++); |
p | 184 | fs/nfs/proc.c | fattr->atime.useconds = ntohl(*p++); |
p | 185 | fs/nfs/proc.c | fattr->mtime.seconds = ntohl(*p++); |
p | 186 | fs/nfs/proc.c | fattr->mtime.useconds = ntohl(*p++); |
p | 187 | fs/nfs/proc.c | fattr->ctime.seconds = ntohl(*p++); |
p | 188 | fs/nfs/proc.c | fattr->ctime.useconds = ntohl(*p++); |
p | 189 | fs/nfs/proc.c | return p; |
p | 192 | fs/nfs/proc.c | static int *xdr_encode_sattr(int *p, struct nfs_sattr *sattr) |
p | 194 | fs/nfs/proc.c | *p++ = htonl(sattr->mode); |
p | 195 | fs/nfs/proc.c | *p++ = htonl(sattr->uid); |
p | 196 | fs/nfs/proc.c | *p++ = htonl(sattr->gid); |
p | 197 | fs/nfs/proc.c | *p++ = htonl(sattr->size); |
p | 198 | fs/nfs/proc.c | *p++ = htonl(sattr->atime.seconds); |
p | 199 | fs/nfs/proc.c | *p++ = htonl(sattr->atime.useconds); |
p | 200 | fs/nfs/proc.c | *p++ = htonl(sattr->mtime.seconds); |
p | 201 | fs/nfs/proc.c | *p++ = htonl(sattr->mtime.useconds); |
p | 202 | fs/nfs/proc.c | return p; |
p | 205 | fs/nfs/proc.c | static int *xdr_decode_entry(int *p, struct nfs_entry *entry) |
p | 207 | fs/nfs/proc.c | entry->fileid = ntohl(*p++); |
p | 208 | fs/nfs/proc.c | if (!(p = xdr_decode_string(p, entry->name, NFS_MAXNAMLEN))) |
p | 210 | fs/nfs/proc.c | entry->cookie = ntohl(*p++); |
p | 212 | fs/nfs/proc.c | return p; |
p | 215 | fs/nfs/proc.c | static int *xdr_decode_fsinfo(int *p, struct nfs_fsinfo *res) |
p | 217 | fs/nfs/proc.c | res->tsize = ntohl(*p++); |
p | 218 | fs/nfs/proc.c | res->bsize = ntohl(*p++); |
p | 219 | fs/nfs/proc.c | res->blocks = ntohl(*p++); |
p | 220 | fs/nfs/proc.c | res->bfree = ntohl(*p++); |
p | 221 | fs/nfs/proc.c | res->bavail = ntohl(*p++); |
p | 222 | fs/nfs/proc.c | return p; |
p | 232 | fs/nfs/proc.c | int *p, *p0; |
p | 240 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_GETATTR, ruid); |
p | 241 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 242 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
p | 246 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 248 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 249 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 268 | fs/nfs/proc.c | int *p, *p0; |
p | 276 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_SETATTR, ruid); |
p | 277 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 278 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 279 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 283 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 285 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 286 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 305 | fs/nfs/proc.c | int *p, *p0; |
p | 317 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_LOOKUP, ruid); |
p | 318 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 319 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 320 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
p | 324 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 326 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 327 | fs/nfs/proc.c | p = xdr_decode_fhandle(p, fhandle); |
p | 328 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 347 | fs/nfs/proc.c | int *p; |
p | 354 | fs/nfs/proc.c | p = nfs_rpc_header(*p0, NFSPROC_READLINK, ruid); |
p | 355 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 356 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, *p0, p, server->rsize)) < 0) |
p | 358 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(*p0))) |
p | 360 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 361 | fs/nfs/proc.c | if (!(p = xdr_decode_string2(p, string, len, maxlen))) { |
p | 382 | fs/nfs/proc.c | int *p, *p0; |
p | 391 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_READ, ruid); |
p | 392 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 393 | fs/nfs/proc.c | *p++ = htonl(offset); |
p | 394 | fs/nfs/proc.c | *p++ = htonl(count); |
p | 395 | fs/nfs/proc.c | *p++ = htonl(count); /* traditional, could be any value */ |
p | 396 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
p | 400 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 402 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 403 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 404 | fs/nfs/proc.c | if (!(p = xdr_decode_data(p, data, &len, count, fs))) { |
p | 428 | fs/nfs/proc.c | int *p, *p0; |
p | 436 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_WRITE, ruid); |
p | 437 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 438 | fs/nfs/proc.c | *p++ = htonl(offset); /* traditional, could be any value */ |
p | 439 | fs/nfs/proc.c | *p++ = htonl(offset); |
p | 440 | fs/nfs/proc.c | *p++ = htonl(count); /* traditional, could be any value */ |
p | 441 | fs/nfs/proc.c | p = xdr_encode_data(p, data, count); |
p | 442 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 446 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 448 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 449 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 469 | fs/nfs/proc.c | int *p, *p0; |
p | 477 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_CREATE, ruid); |
p | 478 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 479 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 480 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 481 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 485 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 487 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 488 | fs/nfs/proc.c | p = xdr_decode_fhandle(p, fhandle); |
p | 489 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 507 | fs/nfs/proc.c | int *p, *p0; |
p | 515 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_REMOVE, ruid); |
p | 516 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 517 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 518 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 522 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 524 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 544 | fs/nfs/proc.c | int *p, *p0; |
p | 552 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_RENAME, ruid); |
p | 553 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, old_dir); |
p | 554 | fs/nfs/proc.c | p = xdr_encode_string(p, old_name); |
p | 555 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, new_dir); |
p | 556 | fs/nfs/proc.c | p = xdr_encode_string(p, new_name); |
p | 557 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 561 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 563 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 582 | fs/nfs/proc.c | int *p, *p0; |
p | 590 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_LINK, ruid); |
p | 591 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 592 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 593 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 594 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 598 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 600 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 619 | fs/nfs/proc.c | int *p, *p0; |
p | 627 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_SYMLINK, ruid); |
p | 628 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 629 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 630 | fs/nfs/proc.c | p = xdr_encode_string(p, path); |
p | 631 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 632 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 636 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 638 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 658 | fs/nfs/proc.c | int *p, *p0; |
p | 666 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_MKDIR, ruid); |
p | 667 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 668 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 669 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 670 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 674 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 676 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 677 | fs/nfs/proc.c | p = xdr_decode_fhandle(p, fhandle); |
p | 678 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 696 | fs/nfs/proc.c | int *p, *p0; |
p | 704 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_RMDIR, ruid); |
p | 705 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 706 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 707 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 711 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 713 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 732 | fs/nfs/proc.c | int *p, *p0; |
p | 744 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_READDIR, ruid); |
p | 745 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 746 | fs/nfs/proc.c | *p++ = htonl(cookie); |
p | 747 | fs/nfs/proc.c | *p++ = htonl(size); |
p | 748 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
p | 752 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 754 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 755 | fs/nfs/proc.c | for (i = 0; i < count && *p++; i++) { |
p | 756 | fs/nfs/proc.c | if (!(p = xdr_decode_entry(p, entry++))) |
p | 759 | fs/nfs/proc.c | if (!p) { |
p | 764 | fs/nfs/proc.c | eof = (i == count && !*p++ && *p++) |
p | 765 | fs/nfs/proc.c | || (i < count && *p++); |
p | 788 | fs/nfs/proc.c | int *p, *p0; |
p | 796 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_STATFS, ruid); |
p | 797 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 798 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
p | 802 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 804 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 805 | fs/nfs/proc.c | p = xdr_decode_fsinfo(p, res); |
p | 825 | fs/nfs/proc.c | static int *nfs_rpc_header(int *p, int procedure, int ruid) |
p | 836 | fs/nfs/proc.c | *p++ = htonl(++xid); |
p | 837 | fs/nfs/proc.c | *p++ = htonl(RPC_CALL); |
p | 838 | fs/nfs/proc.c | *p++ = htonl(RPC_VERSION); |
p | 839 | fs/nfs/proc.c | *p++ = htonl(NFS_PROGRAM); |
p | 840 | fs/nfs/proc.c | *p++ = htonl(NFS_VERSION); |
p | 841 | fs/nfs/proc.c | *p++ = htonl(procedure); |
p | 842 | fs/nfs/proc.c | *p++ = htonl(RPC_AUTH_UNIX); |
p | 843 | fs/nfs/proc.c | p1 = p++; |
p | 844 | fs/nfs/proc.c | *p++ = htonl(CURRENT_TIME); /* traditional, could be anything */ |
p | 845 | fs/nfs/proc.c | p = xdr_encode_string(p, (char *) sys); |
p | 846 | fs/nfs/proc.c | *p++ = htonl(ruid ? current->uid : current->fsuid); |
p | 847 | fs/nfs/proc.c | *p++ = htonl(current->egid); |
p | 848 | fs/nfs/proc.c | p2 = p++; |
p | 850 | fs/nfs/proc.c | *p++ = htonl(current->groups[i]); |
p | 852 | fs/nfs/proc.c | *p1 = htonl((p - (p1 + 1)) << 2); |
p | 853 | fs/nfs/proc.c | *p++ = htonl(RPC_AUTH_NULL); |
p | 854 | fs/nfs/proc.c | *p++ = htonl(0); |
p | 855 | fs/nfs/proc.c | return p; |
p | 858 | fs/nfs/proc.c | static int *nfs_rpc_verify(int *p) |
p | 862 | fs/nfs/proc.c | p++; |
p | 863 | fs/nfs/proc.c | if ((n = ntohl(*p++)) != RPC_REPLY) { |
p | 867 | fs/nfs/proc.c | if ((n = ntohl(*p++)) != RPC_MSG_ACCEPTED) { |
p | 871 | fs/nfs/proc.c | switch (n = ntohl(*p++)) { |
p | 878 | fs/nfs/proc.c | if ((n = ntohl(*p++)) > 400) { |
p | 882 | fs/nfs/proc.c | p += QUADLEN(n); |
p | 883 | fs/nfs/proc.c | if ((n = ntohl(*p++)) != RPC_SUCCESS) { |
p | 887 | fs/nfs/proc.c | return p; |
p | 59 | fs/proc/array.c | unsigned long p = file->f_pos, memsize; |
p | 80 | fs/proc/array.c | if (p >= memsize) |
p | 82 | fs/proc/array.c | if (count > memsize - p) |
p | 83 | fs/proc/array.c | count = memsize - p; |
p | 86 | fs/proc/array.c | if (p < sizeof(struct user) && count > 0) { |
p | 88 | fs/proc/array.c | if (p + count1 > sizeof(struct user)) |
p | 89 | fs/proc/array.c | count1 = sizeof(struct user)-p; |
p | 90 | fs/proc/array.c | pnt = (char *) &dump + p; |
p | 93 | fs/proc/array.c | p += count1; |
p | 98 | fs/proc/array.c | while (count > 0 && p < PAGE_SIZE + FIRST_MAPPED) { |
p | 101 | fs/proc/array.c | p++; |
p | 105 | fs/proc/array.c | memcpy_tofs(buf, (void *) (PAGE_OFFSET + p - PAGE_SIZE), count); |
p | 132 | fs/proc/array.c | unsigned long p = file->f_pos; |
p | 139 | fs/proc/array.c | if (p >= (prof_len+1)*sizeof(unsigned long)) |
p | 141 | fs/proc/array.c | if (count > (prof_len+1)*sizeof(unsigned long) - p) |
p | 142 | fs/proc/array.c | count = (prof_len+1)*sizeof(unsigned long) - p; |
p | 145 | fs/proc/array.c | while (p < sizeof(unsigned long) && count > 0) { |
p | 146 | fs/proc/array.c | put_user(*((char *)(&sample_step)+p),buf); |
p | 147 | fs/proc/array.c | buf++; p++; count--; read++; |
p | 149 | fs/proc/array.c | pnt = (char *)prof_buffer + p - sizeof(unsigned long); |
p | 283 | fs/proc/array.c | struct task_struct ** p; |
p | 285 | fs/proc/array.c | p = task; |
p | 286 | fs/proc/array.c | while (++p < task+NR_TASKS) { |
p | 287 | fs/proc/array.c | if (*p && (*p)->pid == pid) |
p | 288 | fs/proc/array.c | return p; |
p | 293 | fs/proc/array.c | static unsigned long get_phys_addr(struct task_struct * p, unsigned long ptr) |
p | 299 | fs/proc/array.c | if (!p || !p->mm || ptr >= TASK_SIZE) |
p | 301 | fs/proc/array.c | page_dir = pgd_offset(p->mm,ptr); |
p | 323 | fs/proc/array.c | static int get_array(struct task_struct ** p, unsigned long start, unsigned long end, char * buffer) |
p | 332 | fs/proc/array.c | addr = get_phys_addr(*p, start); |
p | 358 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
p | 360 | fs/proc/array.c | if (!p || !*p || !(*p)->mm) |
p | 362 | fs/proc/array.c | return get_array(p, (*p)->mm->env_start, (*p)->mm->env_end, buffer); |
p | 367 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
p | 369 | fs/proc/array.c | if (!p || !*p || !(*p)->mm) |
p | 371 | fs/proc/array.c | return get_array(p, (*p)->mm->arg_start, (*p)->mm->arg_end, buffer); |
p | 374 | fs/proc/array.c | static unsigned long get_wchan(struct task_struct *p) |
p | 381 | fs/proc/array.c | if (!p || p == current || p->state == TASK_RUNNING) |
p | 383 | fs/proc/array.c | stack_page = p->kernel_stack_page; |
p | 386 | fs/proc/array.c | ebp = p->tss.ebp; |
p | 405 | fs/proc/array.c | struct task_struct ** p = get_task(pid), *tsk; |
p | 411 | fs/proc/array.c | if (!p || (tsk = *p) == NULL) |
p | 565 | fs/proc/array.c | struct task_struct ** p = get_task(pid), *tsk; |
p | 568 | fs/proc/array.c | if (!p || (tsk = *p) == NULL) |
p | 624 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
p | 631 | fs/proc/array.c | if (!p || !*p) |
p | 634 | fs/proc/array.c | if (!(*p)->mm || count == 0) |
p | 642 | fs/proc/array.c | for (map = (*p)->mm->mmap, i = 0; map && (i < lineno); map = map->vm_next, i++) |
p | 702 | fs/proc/array.c | if (*p != current) |
p | 52 | fs/proc/base.c | struct task_struct * p; |
p | 56 | fs/proc/base.c | for_each_task(p) { |
p | 57 | fs/proc/base.c | if (p->pid == pid) { |
p | 58 | fs/proc/base.c | if (p->dumpable || ino == PROC_PID_INO) { |
p | 59 | fs/proc/base.c | inode->i_uid = p->euid; |
p | 60 | fs/proc/base.c | inode->i_gid = p->gid; |
p | 57 | fs/proc/fd.c | struct task_struct * p; |
p | 102 | fs/proc/fd.c | if ((p = task[i]) && p->pid == pid) |
p | 107 | fs/proc/fd.c | if (fd >= NR_OPEN || !p->files->fd[fd] || !p->files->fd[fd]->f_inode) |
p | 124 | fs/proc/fd.c | struct task_struct * p; |
p | 146 | fs/proc/fd.c | if ((p = task[task_nr]) && p->pid == pid) |
p | 153 | fs/proc/fd.c | if (!p->files) |
p | 155 | fs/proc/fd.c | if (!p->files->fd[fd] || !p->files->fd[fd]->f_inode) |
p | 171 | fs/proc/fd.c | if (p != task[task_nr] || p->pid != pid) |
p | 136 | fs/proc/inode.c | struct task_struct * p; |
p | 150 | fs/proc/inode.c | p = task[0]; |
p | 152 | fs/proc/inode.c | if ((p = task[i]) && (p->pid == pid)) |
p | 154 | fs/proc/inode.c | if (!p || i >= NR_TASKS) |
p | 197 | fs/proc/inode.c | if (ino == PROC_PID_INO || p->dumpable) { |
p | 198 | fs/proc/inode.c | inode->i_uid = p->euid; |
p | 199 | fs/proc/inode.c | inode->i_gid = p->egid; |
p | 239 | fs/proc/inode.c | if (ino >= NR_OPEN || !p->files->fd[ino]) |
p | 244 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 1) |
p | 246 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 2) |
p | 67 | fs/proc/link.c | struct task_struct * p; |
p | 84 | fs/proc/link.c | if ((p = task[i]) && p->pid == pid) |
p | 93 | fs/proc/link.c | if (!p->fs) |
p | 95 | fs/proc/link.c | new_inode = p->fs->pwd; |
p | 98 | fs/proc/link.c | if (!p->fs) |
p | 100 | fs/proc/link.c | new_inode = p->fs->root; |
p | 104 | fs/proc/link.c | if (!p->mm) |
p | 106 | fs/proc/link.c | vma = p->mm->mmap; |
p | 119 | fs/proc/link.c | if (!p->files) |
p | 122 | fs/proc/link.c | if (ino < NR_OPEN && p->files->fd[ino]) { |
p | 123 | fs/proc/link.c | new_inode = p->files->fd[ino]->f_inode; |
p | 147 | fs/proc/root.c | struct proc_dir_entry **p = &dir->subdir, *dp; |
p | 149 | fs/proc/root.c | while ((dp = *p) != NULL) { |
p | 151 | fs/proc/root.c | *p = dp->next; |
p | 157 | fs/proc/root.c | p = &dp->next; |
p | 495 | fs/proc/root.c | struct task_struct * p = task[nr]; |
p | 497 | fs/proc/root.c | if (!p || !(pid = p->pid)) |
p | 48 | fs/select.c | static void free_wait(select_table * p) |
p | 50 | fs/select.c | struct select_table_entry * entry = p->entry + p->nr; |
p | 52 | fs/select.c | while (p->nr > 0) { |
p | 53 | fs/select.c | p->nr--; |
p | 49 | fs/smbfs/proc.c | smb_encode_word(byte *p, word data) |
p | 52 | fs/smbfs/proc.c | *((word *)p) = data; |
p | 54 | fs/smbfs/proc.c | p[0] = data & 0x00ffU; |
p | 55 | fs/smbfs/proc.c | p[1] = (data & 0xff00U) >> 8; |
p | 58 | fs/smbfs/proc.c | return &p[2]; |
p | 62 | fs/smbfs/proc.c | smb_decode_word(byte *p, word *data) |
p | 65 | fs/smbfs/proc.c | *data = *(word *)p; |
p | 67 | fs/smbfs/proc.c | *data = (word) p[0] | p[1] << 8; |
p | 69 | fs/smbfs/proc.c | return &p[2]; |
p | 73 | fs/smbfs/proc.c | smb_encode_smb_length(byte *p, dword len) |
p | 75 | fs/smbfs/proc.c | p[0] = p[1] = 0; |
p | 76 | fs/smbfs/proc.c | p[2] = (len & 0xFF00) >> 8; |
p | 77 | fs/smbfs/proc.c | p[3] = (len & 0xFF); |
p | 79 | fs/smbfs/proc.c | p[1] |= 0x01; |
p | 80 | fs/smbfs/proc.c | return &p[4]; |
p | 84 | fs/smbfs/proc.c | smb_encode_dialect(byte *p, const byte *name, int len) |
p | 86 | fs/smbfs/proc.c | *p ++ = 2; |
p | 87 | fs/smbfs/proc.c | strcpy(p, name); |
p | 88 | fs/smbfs/proc.c | return p + len + 1; |
p | 92 | fs/smbfs/proc.c | smb_encode_ascii(byte *p, const byte *name, int len) |
p | 94 | fs/smbfs/proc.c | *p ++ = 4; |
p | 95 | fs/smbfs/proc.c | strcpy(p, name); |
p | 96 | fs/smbfs/proc.c | return p + len + 1; |
p | 100 | fs/smbfs/proc.c | smb_encode_vblock(byte *p, const byte *data, word len, int fs) |
p | 102 | fs/smbfs/proc.c | *p ++ = 5; |
p | 103 | fs/smbfs/proc.c | p = smb_encode_word(p, len); |
p | 105 | fs/smbfs/proc.c | memcpy_fromfs(p, data, len); |
p | 107 | fs/smbfs/proc.c | memcpy(p, data, len); |
p | 108 | fs/smbfs/proc.c | return p + len; |
p | 112 | fs/smbfs/proc.c | smb_decode_data(byte *p, byte *data, word *data_len, int fs) |
p | 116 | fs/smbfs/proc.c | if (!(*p == 1 || *p == 5)) { |
p | 121 | fs/smbfs/proc.c | len = WVAL(p, 1); |
p | 122 | fs/smbfs/proc.c | p += 3; |
p | 125 | fs/smbfs/proc.c | memcpy_tofs(data, p, len); |
p | 127 | fs/smbfs/proc.c | memcpy(data, p, len); |
p | 131 | fs/smbfs/proc.c | return p + len; |
p | 135 | fs/smbfs/proc.c | smb_name_mangle(byte *p, const byte *name) |
p | 144 | fs/smbfs/proc.c | *p ++ = 2 * (len + pad); |
p | 147 | fs/smbfs/proc.c | *p ++ = (*name >> 4) + 'A'; |
p | 148 | fs/smbfs/proc.c | *p ++ = (*name & 0x0F) + 'A'; |
p | 152 | fs/smbfs/proc.c | *p ++ = 'C'; |
p | 153 | fs/smbfs/proc.c | *p ++ = 'A'; |
p | 155 | fs/smbfs/proc.c | *p++ = '\0'; |
p | 157 | fs/smbfs/proc.c | return p; |
p | 484 | fs/smbfs/proc.c | byte *p = server->packet; |
p | 487 | fs/smbfs/proc.c | p = smb_encode_smb_length(p, xmit_len); |
p | 489 | fs/smbfs/proc.c | BSET(p,0,0xff); |
p | 490 | fs/smbfs/proc.c | BSET(p,1,'S'); |
p | 491 | fs/smbfs/proc.c | BSET(p,2,'M'); |
p | 492 | fs/smbfs/proc.c | BSET(p,3,'B'); |
p | 493 | fs/smbfs/proc.c | BSET(p,4,command); |
p | 495 | fs/smbfs/proc.c | p += 5; |
p | 496 | fs/smbfs/proc.c | memset(p, '\0', 19); |
p | 497 | fs/smbfs/proc.c | p += 19; |
p | 498 | fs/smbfs/proc.c | p += 8; |
p | 510 | fs/smbfs/proc.c | *p++ = wct; /* wct */ |
p | 511 | fs/smbfs/proc.c | p += 2*wct; |
p | 512 | fs/smbfs/proc.c | WSET(p, 0, bcc); |
p | 513 | fs/smbfs/proc.c | return p+2; |
p | 540 | fs/smbfs/proc.c | char* p; |
p | 549 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBopen, 2, 2 + len); |
p | 552 | fs/smbfs/proc.c | smb_encode_ascii(p, pathname, len); |
p | 565 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBopen, 2, 2 + len); |
p | 568 | fs/smbfs/proc.c | smb_encode_ascii(p, pathname, len); |
p | 683 | fs/smbfs/proc.c | byte *p; |
p | 685 | fs/smbfs/proc.c | p = smb_setup_header_exclusive(server, SMBwrite, 5, count + 3); |
p | 691 | fs/smbfs/proc.c | *p++ = 1; |
p | 692 | fs/smbfs/proc.c | WSET(p, 0, count); |
p | 693 | fs/smbfs/proc.c | memcpy_fromfs(p+2, data, count); |
p | 766 | fs/smbfs/proc.c | char *p; |
p | 771 | fs/smbfs/proc.c | p = smb_setup_header(server, command, 3, len + 2); |
p | 774 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
p | 812 | fs/smbfs/proc.c | char *p; |
p | 819 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBmv, 1, olen + nlen + 4); |
p | 821 | fs/smbfs/proc.c | p = smb_encode_ascii(p, opath, olen); |
p | 822 | fs/smbfs/proc.c | smb_encode_ascii(p, npath, olen); |
p | 836 | fs/smbfs/proc.c | char *p; |
p | 842 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBmkdir, 0, 2 + len); |
p | 843 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
p | 857 | fs/smbfs/proc.c | char *p; |
p | 863 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBrmdir, 0, 2 + len); |
p | 864 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
p | 878 | fs/smbfs/proc.c | char *p; |
p | 885 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBunlink, 1, 2 + len); |
p | 887 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
p | 901 | fs/smbfs/proc.c | char *p; |
p | 908 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBwrite, 5, 3); |
p | 913 | fs/smbfs/proc.c | smb_encode_ascii(p, "", 0); |
p | 925 | fs/smbfs/proc.c | smb_decode_dirent(char *p, struct smb_dirent *entry) |
p | 927 | fs/smbfs/proc.c | p += SMB_STATUS_SIZE; /* reserved (search_status) */ |
p | 928 | fs/smbfs/proc.c | entry->attr = BVAL(p, 0); |
p | 930 | fs/smbfs/proc.c | date_dos2unix(WVAL(p, 1), WVAL(p, 3)); |
p | 931 | fs/smbfs/proc.c | entry->size = DVAL(p, 5); |
p | 932 | fs/smbfs/proc.c | memcpy(entry->path, p+9, 13); |
p | 934 | fs/smbfs/proc.c | return p + 22; |
p | 945 | fs/smbfs/proc.c | char *p; |
p | 976 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBsearch, 2, |
p | 980 | fs/smbfs/proc.c | p = smb_encode_ascii(p, mask, strlen(mask)); |
p | 981 | fs/smbfs/proc.c | *p ++ = 5; |
p | 982 | fs/smbfs/proc.c | p = smb_encode_word(p, 0); |
p | 984 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBsearch, 2, |
p | 988 | fs/smbfs/proc.c | p = smb_encode_ascii(p, "", 0); |
p | 989 | fs/smbfs/proc.c | p = smb_encode_vblock(p, status, SMB_STATUS_SIZE, 0); |
p | 1008 | fs/smbfs/proc.c | p = SMB_VWV(server->packet); |
p | 1009 | fs/smbfs/proc.c | p = smb_decode_word(p, &count); /* vwv[0] = count-returned */ |
p | 1010 | fs/smbfs/proc.c | p = smb_decode_word(p, &bcc); |
p | 1023 | fs/smbfs/proc.c | p += 3; /* Skipping VBLOCK header (5, length lo, length hi). */ |
p | 1035 | fs/smbfs/proc.c | p += SMB_DIRINFO_SIZE; |
p | 1046 | fs/smbfs/proc.c | p = smb_decode_dirent(p, current_entry); |
p | 1066 | fs/smbfs/proc.c | smb_decode_long_dirent(char *p, struct smb_dirent *finfo, int level) |
p | 1082 | fs/smbfs/proc.c | strcpy(finfo->path,p+27); |
p | 1084 | fs/smbfs/proc.c | finfo->size = DVAL(p,16); |
p | 1085 | fs/smbfs/proc.c | finfo->attr = BVAL(p,24); |
p | 1087 | fs/smbfs/proc.c | finfo->ctime = date_dos2unix(WVAL(p, 6), WVAL(p, 4)); |
p | 1088 | fs/smbfs/proc.c | finfo->atime = date_dos2unix(WVAL(p, 10), WVAL(p, 8)); |
p | 1089 | fs/smbfs/proc.c | finfo->mtime = date_dos2unix(WVAL(p, 14), WVAL(p, 12)); |
p | 1091 | fs/smbfs/proc.c | result = p + 28 + BVAL(p,26); |
p | 1097 | fs/smbfs/proc.c | strcpy(finfo->path,p+31); |
p | 1099 | fs/smbfs/proc.c | finfo->size = DVAL(p,16); |
p | 1100 | fs/smbfs/proc.c | finfo->attr = BVAL(p,24); |
p | 1102 | fs/smbfs/proc.c | finfo->atime = make_unix_date2(p+8); |
p | 1103 | fs/smbfs/proc.c | finfo->mtime = make_unix_date2(p+12); |
p | 1106 | fs/smbfs/proc.c | result = p + 32 + BVAL(p,30); |
p | 1110 | fs/smbfs/proc.c | result = p + WVAL(p,0); |
p | 1114 | fs/smbfs/proc.c | p += 4; /* next entry offset */ |
p | 1115 | fs/smbfs/proc.c | p += 4; /* fileindex */ |
p | 1117 | fs/smbfs/proc.c | p += 8; |
p | 1119 | fs/smbfs/proc.c | p += 8; |
p | 1120 | fs/smbfs/proc.c | p += 8; /* write time */ |
p | 1122 | fs/smbfs/proc.c | p += 8; |
p | 1123 | fs/smbfs/proc.c | finfo->size = DVAL(p,0); |
p | 1124 | fs/smbfs/proc.c | p += 8; |
p | 1125 | fs/smbfs/proc.c | p += 8; /* alloc size */ |
p | 1126 | fs/smbfs/proc.c | finfo->attr = BVAL(p,0); |
p | 1127 | fs/smbfs/proc.c | p += 4; |
p | 1128 | fs/smbfs/proc.c | namelen = min(DVAL(p,0), SMB_MAXNAMELEN); |
p | 1129 | fs/smbfs/proc.c | p += 4; |
p | 1130 | fs/smbfs/proc.c | p += 4; /* EA size */ |
p | 1131 | fs/smbfs/proc.c | p += 2; /* short name len? */ |
p | 1132 | fs/smbfs/proc.c | p += 24; /* short name? */ |
p | 1133 | fs/smbfs/proc.c | strncpy(finfo->path,p,namelen); |
p | 1140 | fs/smbfs/proc.c | result = p + WVAL(p,0); |
p | 1154 | fs/smbfs/proc.c | char *p; |
p | 1225 | fs/smbfs/proc.c | p = SMB_BUF(outbuf); |
p | 1226 | fs/smbfs/proc.c | *p++=0; /* put in a null smb_name */ |
p | 1227 | fs/smbfs/proc.c | *p++='D'; *p++ = ' '; /* this was added because OS/2 does it */ |
p | 1231 | fs/smbfs/proc.c | WSET(p,0,attribute); /* attribute */ |
p | 1232 | fs/smbfs/proc.c | WSET(p,2,max_matches); /* max count */ |
p | 1233 | fs/smbfs/proc.c | WSET(p,4,8+4+2); /* resume required + close on end + |
p | 1235 | fs/smbfs/proc.c | WSET(p,6,info_level); |
p | 1236 | fs/smbfs/proc.c | DSET(p,8,0); |
p | 1237 | fs/smbfs/proc.c | p += 12; |
p | 1238 | fs/smbfs/proc.c | strncpy(p, mask, masklen); |
p | 1239 | fs/smbfs/proc.c | p += masklen; |
p | 1240 | fs/smbfs/proc.c | *p++ = 0; *p++ = 0; |
p | 1246 | fs/smbfs/proc.c | WSET(p,0,ff_dir_handle); |
p | 1247 | fs/smbfs/proc.c | WSET(p,2,max_matches); /* max count */ |
p | 1248 | fs/smbfs/proc.c | WSET(p,4,info_level); |
p | 1249 | fs/smbfs/proc.c | DSET(p,6,ff_resume_key); /* ff_resume_key */ |
p | 1250 | fs/smbfs/proc.c | WSET(p,10,8+4+2); /* resume required + close on end + |
p | 1252 | fs/smbfs/proc.c | p += 12; |
p | 1253 | fs/smbfs/proc.c | strncpy(p, mask, masklen); |
p | 1254 | fs/smbfs/proc.c | p += masklen; |
p | 1255 | fs/smbfs/proc.c | *p++ = 0; *p++ = 0; |
p | 1278 | fs/smbfs/proc.c | p = resp_param; |
p | 1281 | fs/smbfs/proc.c | ff_dir_handle = WVAL(p,0); |
p | 1282 | fs/smbfs/proc.c | ff_searchcount = WVAL(p,2); |
p | 1283 | fs/smbfs/proc.c | ff_eos = WVAL(p,4); |
p | 1284 | fs/smbfs/proc.c | ff_lastname = WVAL(p,8); |
p | 1288 | fs/smbfs/proc.c | ff_searchcount = WVAL(p,0); |
p | 1289 | fs/smbfs/proc.c | ff_eos = WVAL(p,2); |
p | 1290 | fs/smbfs/proc.c | ff_lastname = WVAL(p,6); |
p | 1297 | fs/smbfs/proc.c | p = resp_data; |
p | 1306 | fs/smbfs/proc.c | strcpy(mask,p+ff_lastname+94); |
p | 1309 | fs/smbfs/proc.c | strcpy(mask,p + ff_lastname + 1); |
p | 1321 | fs/smbfs/proc.c | p = smb_decode_long_dirent(p, NULL, |
p | 1332 | fs/smbfs/proc.c | p = smb_decode_long_dirent(p, current_entry, |
p | 1389 | fs/smbfs/proc.c | char *p; |
p | 1397 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBgetatr, 0, 2 + len); |
p | 1398 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
p | 1483 | fs/smbfs/proc.c | char *p; |
p | 1490 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBsetatr, 8, 4 + len); |
p | 1493 | fs/smbfs/proc.c | p = smb_encode_ascii(p, path, len); |
p | 1494 | fs/smbfs/proc.c | p = smb_encode_ascii(p, "", 0); |
p | 1556 | fs/smbfs/proc.c | char *p; |
p | 1572 | fs/smbfs/proc.c | p = SMB_VWV(server->packet); |
p | 1573 | fs/smbfs/proc.c | p = smb_decode_word(p, &attr->total); |
p | 1574 | fs/smbfs/proc.c | p = smb_decode_word(p, &attr->allocblocks); |
p | 1575 | fs/smbfs/proc.c | p = smb_decode_word(p, &attr->blocksize); |
p | 1576 | fs/smbfs/proc.c | p = smb_decode_word(p, &attr->free); |
p | 1616 | fs/smbfs/proc.c | byte *p; |
p | 1643 | fs/smbfs/proc.c | p = server->packet + 4; |
p | 1645 | fs/smbfs/proc.c | p = smb_name_mangle(p, server->m.server_name); |
p | 1646 | fs/smbfs/proc.c | p = smb_name_mangle(p, server->m.client_name); |
p | 1649 | fs/smbfs/proc.c | (void *)p - (void *)(server->packet)); |
p | 1687 | fs/smbfs/proc.c | p = SMB_BUF(server->packet); |
p | 1690 | fs/smbfs/proc.c | p = smb_encode_dialect(p,prots[i].name, strlen(prots[i].name)); |
p | 1703 | fs/smbfs/proc.c | p = SMB_VWV(server->packet); |
p | 1704 | fs/smbfs/proc.c | p = smb_decode_word(p, (word *)&i); |
p | 1741 | fs/smbfs/proc.c | p = SMB_BUF(server->packet); |
p | 1742 | fs/smbfs/proc.c | strcpy(p, server->m.password); |
p | 1743 | fs/smbfs/proc.c | p += passlen + 1; |
p | 1744 | fs/smbfs/proc.c | strcpy(p, server->m.username); |
p | 1768 | fs/smbfs/proc.c | p = SMB_BUF(server->packet); |
p | 1769 | fs/smbfs/proc.c | p = smb_encode_ascii(p, server->m.service, strlen(server->m.service)); |
p | 1770 | fs/smbfs/proc.c | p = smb_encode_ascii(p,server->m.password, strlen(server->m.password)); |
p | 1771 | fs/smbfs/proc.c | p = smb_encode_ascii(p, dev, strlen(dev)); |
p | 1781 | fs/smbfs/proc.c | p = SMB_VWV(server->packet); |
p | 1782 | fs/smbfs/proc.c | p = smb_decode_word(p, &server->max_xmit); |
p | 1787 | fs/smbfs/proc.c | p = smb_decode_word(p, &server->tid); |
p | 209 | fs/sysv/file.c | char * p; |
p | 252 | fs/sysv/file.c | p = (pos & sb->sv_block_size_1) + bh->b_data; |
p | 259 | fs/sysv/file.c | memcpy_fromfs(p,buf,c); |
p | 646 | fs/sysv/inode.c | unsigned long *p; |
p | 650 | fs/sysv/inode.c | p = inode->u.sysv_i.i_data + nr; |
p | 652 | fs/sysv/inode.c | tmp = *p; |
p | 655 | fs/sysv/inode.c | if (tmp == *p) |
p | 666 | fs/sysv/inode.c | if (*p) { |
p | 671 | fs/sysv/inode.c | *p = tmp; |
p | 682 | fs/sysv/inode.c | sysv_zone_t *p; |
p | 696 | fs/sysv/inode.c | p = nr + (sysv_zone_t *) bh->b_data; |
p | 698 | fs/sysv/inode.c | block = tmp = *p; |
p | 703 | fs/sysv/inode.c | if (tmp == *p) { |
p | 720 | fs/sysv/inode.c | if (*p) { |
p | 725 | fs/sysv/inode.c | *p = (sb->sv_convert ? to_coh_ulong(block) : block); |
p | 780 | fs/sysv/inode.c | static inline unsigned long read3byte (char * p) |
p | 782 | fs/sysv/inode.c | return (unsigned long)(*(unsigned short *)p) |
p | 783 | fs/sysv/inode.c | | (unsigned long)(*(unsigned char *)(p+2)) << 16; |
p | 786 | fs/sysv/inode.c | static inline void write3byte (char * p, unsigned long val) |
p | 788 | fs/sysv/inode.c | *(unsigned short *)p = (unsigned short) val; |
p | 789 | fs/sysv/inode.c | *(unsigned char *)(p+2) = val >> 16; |
p | 792 | fs/sysv/inode.c | static inline unsigned long coh_read3byte (char * p) |
p | 794 | fs/sysv/inode.c | return (unsigned long)(*(unsigned char *)p) << 16 |
p | 795 | fs/sysv/inode.c | | (unsigned long)(*(unsigned short *)(p+1)); |
p | 798 | fs/sysv/inode.c | static inline void coh_write3byte (char * p, unsigned long val) |
p | 800 | fs/sysv/inode.c | *(unsigned char *)p = val >> 16; |
p | 801 | fs/sysv/inode.c | *(unsigned short *)(p+1) = (unsigned short) val; |
p | 48 | fs/sysv/truncate.c | unsigned long * p; |
p | 56 | fs/sysv/truncate.c | p = inode->u.sysv_i.i_data + i; |
p | 57 | fs/sysv/truncate.c | block = *p; |
p | 65 | fs/sysv/truncate.c | if ((bh && bh->b_count != 1) || (block != *p)) { |
p | 70 | fs/sysv/truncate.c | *p = 0; |
p | 78 | fs/sysv/truncate.c | static int trunc_indirect(struct inode * inode, unsigned long offset, unsigned long * p, int convert, unsigned char * dirt) |
p | 89 | fs/sysv/truncate.c | indblock = indtmp = *p; |
p | 96 | fs/sysv/truncate.c | if (indtmp != *p) { |
p | 101 | fs/sysv/truncate.c | *p = 0; |
p | 135 | fs/sysv/truncate.c | if ((indbh->b_count != 1) || (indtmp != *p)) { |
p | 139 | fs/sysv/truncate.c | *p = 0; |
p | 147 | fs/sysv/truncate.c | static int trunc_dindirect(struct inode * inode, unsigned long offset, unsigned long * p, int convert, unsigned char * dirt) |
p | 157 | fs/sysv/truncate.c | indblock = indtmp = *p; |
p | 164 | fs/sysv/truncate.c | if (indtmp != *p) { |
p | 169 | fs/sysv/truncate.c | *p = 0; |
p | 189 | fs/sysv/truncate.c | if ((indbh->b_count != 1) || (indtmp != *p)) { |
p | 193 | fs/sysv/truncate.c | *p = 0; |
p | 201 | fs/sysv/truncate.c | static int trunc_tindirect(struct inode * inode, unsigned long offset, unsigned long * p, int convert, unsigned char * dirt) |
p | 211 | fs/sysv/truncate.c | indblock = indtmp = *p; |
p | 218 | fs/sysv/truncate.c | if (indtmp != *p) { |
p | 223 | fs/sysv/truncate.c | *p = 0; |
p | 243 | fs/sysv/truncate.c | if ((indbh->b_count != 1) || (indtmp != *p)) { |
p | 247 | fs/sysv/truncate.c | *p = 0; |
p | 236 | fs/umsdos/inode.c | || inode->u.umsdos_i.u.dir_info.p != NULL)){ |
p | 240 | fs/umsdos/inode.c | ,inode->u.umsdos_i.u.dir_info.p)); |
p | 40 | fs/umsdos/namei.c | sleep_on(&dir->u.umsdos_i.u.dir_info.p); |
p | 51 | fs/umsdos/namei.c | sleep_on(&dir->u.umsdos_i.u.dir_info.p); |
p | 140 | fs/umsdos/namei.c | wake_up (&dir->u.umsdos_i.u.dir_info.p); |
p | 152 | fs/umsdos/namei.c | wake_up (&dir->u.umsdos_i.u.dir_info.p); |
p | 119 | include/asm-alpha/bitops.h | unsigned long * p = ((unsigned long *) addr) + (offset >> 6); |
p | 128 | include/asm-alpha/bitops.h | tmp = *(p++); |
p | 138 | include/asm-alpha/bitops.h | if (~(tmp = *(p++))) |
p | 145 | include/asm-alpha/bitops.h | tmp = *p; |
p | 72 | include/asm-alpha/io.h | # define inb(p) _inb((p)) |
p | 73 | include/asm-alpha/io.h | # define inw(p) _inw((p)) |
p | 74 | include/asm-alpha/io.h | # define inl(p) _inl((p)) |
p | 75 | include/asm-alpha/io.h | # define outb(b,p) _outb((b),(p)) |
p | 76 | include/asm-alpha/io.h | # define outw(w,p) _outw((w),(p)) |
p | 77 | include/asm-alpha/io.h | # define outl(l,p) _outl((l),(p)) |
p | 57 | include/asm-alpha/system.h | #define switch_to(p) do { \ |
p | 58 | include/asm-alpha/system.h | current = p; \ |
p | 59 | include/asm-alpha/system.h | alpha_switch_to((unsigned long) &(p)->tss - 0xfffffc0000000000); \ |
p | 119 | include/asm-alpha/types.h | static __inline__ int __FD_ISSET(unsigned long fd, fd_set *p) |
p | 123 | include/asm-alpha/types.h | return (p->fds_bits[_tmp] & (1UL<<_rem)) != 0; |
p | 131 | include/asm-alpha/types.h | static __inline__ void __FD_ZERO(fd_set *p) |
p | 133 | include/asm-alpha/types.h | unsigned int *tmp = p->fds_bits; |
p | 106 | include/asm-i386/bitops.h | unsigned long * p = ((unsigned long *) addr) + (offset >> 5); |
p | 119 | include/asm-i386/bitops.h | : "r" (~(*p >> bit))); |
p | 123 | include/asm-i386/bitops.h | p++; |
p | 128 | include/asm-i386/bitops.h | res = find_first_zero_bit (p, size - 32 * (p - (unsigned long *) addr)); |
p | 63 | include/asm-m68k/bitops.h | unsigned long *p; |
p | 80 | include/asm-m68k/bitops.h | : "=d" (res), "=a" (p) |
p | 83 | include/asm-m68k/bitops.h | return ((p - addr) << 5) + res; |
p | 90 | include/asm-m68k/bitops.h | unsigned long *p = addr + (offset >> 5); |
p | 97 | include/asm-m68k/bitops.h | : "d" (~*p << bit)); |
p | 101 | include/asm-m68k/bitops.h | p++; |
p | 104 | include/asm-m68k/bitops.h | res = find_first_zero_bit (p, size - 32 * (p - addr)); |
p | 185 | include/asm-mips/bitops.h | unsigned long * p = ((unsigned long *) addr) + (offset >> 5); |
p | 202 | include/asm-mips/bitops.h | : "r" (*p >> bit), |
p | 209 | include/asm-mips/bitops.h | p++; |
p | 214 | include/asm-mips/bitops.h | res = find_first_zero_bit (p, size - 32 * (p - (unsigned long *) addr)); |
p | 291 | include/asm-sparc/bitops.h | unsigned long *p = ((unsigned long *) addr) + (offset >> 6); |
p | 301 | include/asm-sparc/bitops.h | tmp = *(p++); |
p | 312 | include/asm-sparc/bitops.h | if (~(tmp = *(p++))) |
p | 319 | include/asm-sparc/bitops.h | tmp = *p; |
p | 108 | include/asm-sparc/pgtable.h | extern inline int alloc_mmu_ctx(struct task_struct *p) |
p | 116 | include/asm-sparc/pgtable.h | p->tss.context = i; |
p | 117 | include/asm-sparc/pgtable.h | ctx_tasks[i] = p; |
p | 128 | include/asm-sparc/pgtable.h | ctx_tasks[ctx_tasks_last_frd] = p; |
p | 129 | include/asm-sparc/pgtable.h | p->tss.context = ctx_tasks_last_frd; |
p | 116 | include/asm-sparc/string.h | const char *p; |
p | 120 | include/asm-sparc/string.h | for (p = s; *p != '\0'; ++p) { |
p | 122 | include/asm-sparc/string.h | if (*p == *a) |
p | 83 | include/asm-sparc/system.h | #define switch_to(p) sparc_switch_to(p) |
p | 19 | include/linux/binfmts.h | unsigned long p; |
p | 51 | include/linux/binfmts.h | extern unsigned long * create_tables(char * p,struct linux_binprm * bprm,int ibcs); |
p | 53 | include/linux/binfmts.h | unsigned long p, int from_kmem); |
p | 52 | include/linux/ppp_defs.h | #define PPP_ADDRESS(p) (((u_char *)(p))[0]) |
p | 53 | include/linux/ppp_defs.h | #define PPP_CONTROL(p) (((u_char *)(p))[1]) |
p | 54 | include/linux/ppp_defs.h | #define PPP_PROTOCOL(p) ((((u_char *)(p))[2] << 8) + ((u_char *)(p))[3]) |
p | 149 | include/linux/ppp_defs.h | struct pppstat p; /* basic PPP statistics */ |
p | 195 | include/linux/proc_fs.h | struct proc_dir_entry **p = &driver->subdir, *dp; |
p | 198 | include/linux/proc_fs.h | while ((dp = *p) != NULL) { |
p | 201 | include/linux/proc_fs.h | p = &dp->next; |
p | 308 | include/linux/sched.h | extern void sleep_on(struct wait_queue ** p); |
p | 309 | include/linux/sched.h | extern void interruptible_sleep_on(struct wait_queue ** p); |
p | 310 | include/linux/sched.h | extern void wake_up(struct wait_queue ** p); |
p | 311 | include/linux/sched.h | extern void wake_up_interruptible(struct wait_queue ** p); |
p | 315 | include/linux/sched.h | extern int send_sig(unsigned long sig,struct task_struct * p,int priv); |
p | 339 | include/linux/sched.h | extern inline void add_wait_queue(struct wait_queue ** p, struct wait_queue * wait) |
p | 354 | include/linux/sched.h | if (!*p) { |
p | 356 | include/linux/sched.h | *p = wait; |
p | 358 | include/linux/sched.h | wait->next = (*p)->next; |
p | 359 | include/linux/sched.h | (*p)->next = wait; |
p | 364 | include/linux/sched.h | extern inline void remove_wait_queue(struct wait_queue ** p, struct wait_queue * wait) |
p | 374 | include/linux/sched.h | if ((*p == wait) && |
p | 378 | include/linux/sched.h | ((*p = wait->next) == wait)) { |
p | 379 | include/linux/sched.h | *p = NULL; |
p | 385 | include/linux/sched.h | if (tmp == *p) |
p | 398 | include/linux/sched.h | printk("list = %08lx, queue = %08lx\n",(unsigned long) p, (unsigned long) wait); |
p | 405 | include/linux/sched.h | extern inline void select_wait(struct wait_queue ** wait_address, select_table * p) |
p | 409 | include/linux/sched.h | if (!p || !wait_address) |
p | 411 | include/linux/sched.h | if (p->nr >= __MAX_SELECT_TABLE_ENTRIES) |
p | 413 | include/linux/sched.h | entry = p->entry + p->nr; |
p | 418 | include/linux/sched.h | p->nr++; |
p | 439 | include/linux/sched.h | #define REMOVE_LINKS(p) do { unsigned long flags; \ |
p | 441 | include/linux/sched.h | (p)->next_task->prev_task = (p)->prev_task; \ |
p | 442 | include/linux/sched.h | (p)->prev_task->next_task = (p)->next_task; \ |
p | 444 | include/linux/sched.h | if ((p)->p_osptr) \ |
p | 445 | include/linux/sched.h | (p)->p_osptr->p_ysptr = (p)->p_ysptr; \ |
p | 446 | include/linux/sched.h | if ((p)->p_ysptr) \ |
p | 447 | include/linux/sched.h | (p)->p_ysptr->p_osptr = (p)->p_osptr; \ |
p | 449 | include/linux/sched.h | (p)->p_pptr->p_cptr = (p)->p_osptr; \ |
p | 452 | include/linux/sched.h | #define SET_LINKS(p) do { unsigned long flags; \ |
p | 454 | include/linux/sched.h | (p)->next_task = &init_task; \ |
p | 455 | include/linux/sched.h | (p)->prev_task = init_task.prev_task; \ |
p | 456 | include/linux/sched.h | init_task.prev_task->next_task = (p); \ |
p | 457 | include/linux/sched.h | init_task.prev_task = (p); \ |
p | 459 | include/linux/sched.h | (p)->p_ysptr = NULL; \ |
p | 460 | include/linux/sched.h | if (((p)->p_osptr = (p)->p_pptr->p_cptr) != NULL) \ |
p | 461 | include/linux/sched.h | (p)->p_osptr->p_ysptr = p; \ |
p | 462 | include/linux/sched.h | (p)->p_pptr->p_cptr = p; \ |
p | 465 | include/linux/sched.h | #define for_each_task(p) \ |
p | 466 | include/linux/sched.h | for (p = &init_task ; (p = p->next_task) != &init_task ; ) |
p | 36 | include/linux/smb.h | #define BVAL(p,off) (*((byte *)(((void *)p)+off))) |
p | 37 | include/linux/smb.h | #define WVAL(p,off) (*((word *)(((void *)p)+off))) |
p | 38 | include/linux/smb.h | #define DVAL(p,off) (*((dword *)(((void *)p)+off))) |
p | 39 | include/linux/smb.h | #define BSET(p,off,new) (*((byte *)(((void *)p)+off))=(new)) |
p | 40 | include/linux/smb.h | #define WSET(p,off,new) (*((word *)(((void *)p)+off))=(new)) |
p | 41 | include/linux/smb.h | #define DSET(p,off,new) (*((dword *)(((void *)p)+off))=(new)) |
p | 81 | include/linux/smb_fs.h | #define smb_kmalloc(s,p) kmalloc(s,p) |
p | 127 | include/linux/smb_fs.h | byte *smb_encode_smb_length(byte *p, dword len); |
p | 141 | include/linux/tqueue.h | register struct tq_struct *p; |
p | 146 | include/linux/tqueue.h | p = xchg(list,&tq_last); |
p | 147 | include/linux/tqueue.h | if(p == &tq_last) |
p | 151 | include/linux/tqueue.h | arg = p -> data; |
p | 152 | include/linux/tqueue.h | f = p -> routine; |
p | 153 | include/linux/tqueue.h | save_p = p -> next; |
p | 154 | include/linux/tqueue.h | p -> sync = 0; |
p | 156 | include/linux/tqueue.h | p = save_p; |
p | 157 | include/linux/tqueue.h | } while(p != &tq_last); |
p | 108 | include/linux/ultrasound.h | #define GUS_VOICEFREQ(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICEFREQ, \ |
p | 109 | include/linux/ultrasound.h | (p) & 0xffff, ((p) >> 16) & 0xffff) |
p | 118 | include/linux/ultrasound.h | #define GUS_VOICE_POS(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICE_POS, \ |
p | 119 | include/linux/ultrasound.h | (p) & 0xffff, ((p) >> 16) & 0xffff) |
p | 48 | include/linux/umsdos_fs_i.h | struct wait_queue *p; |
p | 25 | kernel/exit.c | static int generate(unsigned long sig, struct task_struct * p) |
p | 28 | kernel/exit.c | struct sigaction * sa = sig + p->sig->action - 1; |
p | 31 | kernel/exit.c | if (!(p->flags & PF_PTRACED)) { |
p | 40 | kernel/exit.c | p->signal |= mask; |
p | 41 | kernel/exit.c | if (p->state == TASK_INTERRUPTIBLE && (p->signal & ~p->blocked)) |
p | 42 | kernel/exit.c | wake_up_process(p); |
p | 46 | kernel/exit.c | int send_sig(unsigned long sig,struct task_struct * p,int priv) |
p | 48 | kernel/exit.c | if (!p || sig > 32) |
p | 50 | kernel/exit.c | if (!priv && ((sig != SIGCONT) || (current->session != p->session)) && |
p | 51 | kernel/exit.c | (current->euid != p->euid) && (current->euid != p->uid) && !suser()) |
p | 58 | kernel/exit.c | if (!p->sig) |
p | 61 | kernel/exit.c | if (p->state == TASK_STOPPED) |
p | 62 | kernel/exit.c | wake_up_process(p); |
p | 63 | kernel/exit.c | p->exit_code = 0; |
p | 64 | kernel/exit.c | p->signal &= ~( (1<<(SIGSTOP-1)) | (1<<(SIGTSTP-1)) | |
p | 68 | kernel/exit.c | p->signal &= ~(1<<(SIGCONT-1)); |
p | 70 | kernel/exit.c | generate(sig,p); |
p | 82 | kernel/exit.c | void release(struct task_struct * p) |
p | 86 | kernel/exit.c | if (!p) |
p | 88 | kernel/exit.c | if (p == current) { |
p | 93 | kernel/exit.c | if (task[i] == p) { |
p | 96 | kernel/exit.c | REMOVE_LINKS(p); |
p | 97 | kernel/exit.c | release_thread(p); |
p | 98 | kernel/exit.c | if (STACK_MAGIC != *(unsigned long *)p->kernel_stack_page) |
p | 99 | kernel/exit.c | printk(KERN_ALERT "release: %s kernel stack corruption. Aiee\n", p->comm); |
p | 100 | kernel/exit.c | free_page(p->kernel_stack_page); |
p | 101 | kernel/exit.c | current->cmin_flt += p->min_flt + p->cmin_flt; |
p | 102 | kernel/exit.c | current->cmaj_flt += p->maj_flt + p->cmaj_flt; |
p | 103 | kernel/exit.c | current->cnswap += p->nswap + p->cnswap; |
p | 104 | kernel/exit.c | kfree(p); |
p | 115 | kernel/exit.c | int bad_task_ptr(struct task_struct *p) |
p | 119 | kernel/exit.c | if (!p) |
p | 122 | kernel/exit.c | if (task[i] == p) |
p | 210 | kernel/exit.c | struct task_struct *p; |
p | 214 | kernel/exit.c | for_each_task(p) { |
p | 215 | kernel/exit.c | if (p->session <= 0) |
p | 217 | kernel/exit.c | if (p->pgrp == pgrp) |
p | 218 | kernel/exit.c | return p->session; |
p | 219 | kernel/exit.c | if (p->pid == pgrp) |
p | 220 | kernel/exit.c | fallback = p->session; |
p | 231 | kernel/exit.c | struct task_struct *p; |
p | 237 | kernel/exit.c | for_each_task(p) { |
p | 238 | kernel/exit.c | if (p->pgrp == pgrp) { |
p | 239 | kernel/exit.c | if ((err = send_sig(sig,p,priv)) != 0) |
p | 255 | kernel/exit.c | struct task_struct *p; |
p | 261 | kernel/exit.c | for_each_task(p) { |
p | 262 | kernel/exit.c | if (p->session == sess && p->leader) { |
p | 263 | kernel/exit.c | if ((err = send_sig(sig,p,priv)) != 0) |
p | 274 | kernel/exit.c | struct task_struct *p; |
p | 278 | kernel/exit.c | for_each_task(p) { |
p | 279 | kernel/exit.c | if (p && p->pid == pid) |
p | 280 | kernel/exit.c | return send_sig(sig,p,priv); |
p | 296 | kernel/exit.c | struct task_struct * p; |
p | 297 | kernel/exit.c | for_each_task(p) { |
p | 298 | kernel/exit.c | if (p->pid > 1 && p != current) { |
p | 300 | kernel/exit.c | if ((err = send_sig(sig,p,0)) != -EPERM) |
p | 322 | kernel/exit.c | struct task_struct *p; |
p | 324 | kernel/exit.c | for_each_task(p) { |
p | 325 | kernel/exit.c | if ((p->pgrp != pgrp) || |
p | 326 | kernel/exit.c | (p->state == TASK_ZOMBIE) || |
p | 327 | kernel/exit.c | (p->p_pptr->pid == 1)) |
p | 329 | kernel/exit.c | if ((p->p_pptr->pgrp != pgrp) && |
p | 330 | kernel/exit.c | (p->p_pptr->session == p->session)) |
p | 338 | kernel/exit.c | struct task_struct * p; |
p | 340 | kernel/exit.c | for_each_task(p) { |
p | 341 | kernel/exit.c | if (p->pgrp != pgrp) |
p | 343 | kernel/exit.c | if (p->state == TASK_STOPPED) |
p | 351 | kernel/exit.c | struct task_struct * p; |
p | 353 | kernel/exit.c | for_each_task(p) { |
p | 354 | kernel/exit.c | if (p->p_opptr == father) |
p | 356 | kernel/exit.c | p->p_opptr = task[smp_num_cpus]; |
p | 358 | kernel/exit.c | p->p_opptr = task[0]; |
p | 429 | kernel/exit.c | struct task_struct * p; |
p | 459 | kernel/exit.c | while ((p = current->p_cptr) != NULL) { |
p | 460 | kernel/exit.c | current->p_cptr = p->p_osptr; |
p | 461 | kernel/exit.c | p->p_ysptr = NULL; |
p | 462 | kernel/exit.c | p->flags &= ~(PF_PTRACED|PF_TRACESYS); |
p | 464 | kernel/exit.c | p->p_pptr = task[smp_num_cpus]; |
p | 466 | kernel/exit.c | p->p_pptr = task[0]; |
p | 467 | kernel/exit.c | p->p_osptr = p->p_pptr->p_cptr; |
p | 468 | kernel/exit.c | p->p_osptr->p_ysptr = p; |
p | 469 | kernel/exit.c | p->p_pptr->p_cptr = p; |
p | 470 | kernel/exit.c | if (p->state == TASK_ZOMBIE) |
p | 471 | kernel/exit.c | notify_parent(p); |
p | 478 | kernel/exit.c | if ((p->pgrp != current->pgrp) && |
p | 479 | kernel/exit.c | (p->session == current->session) && |
p | 480 | kernel/exit.c | is_orphaned_pgrp(p->pgrp) && |
p | 481 | kernel/exit.c | has_stopped_jobs(p->pgrp)) { |
p | 482 | kernel/exit.c | kill_pg(p->pgrp,SIGHUP,1); |
p | 483 | kernel/exit.c | kill_pg(p->pgrp,SIGCONT,1); |
p | 541 | kernel/exit.c | struct task_struct *p; |
p | 551 | kernel/exit.c | for (p = current->p_cptr ; p ; p = p->p_osptr) { |
p | 553 | kernel/exit.c | if (p->pid != pid) |
p | 556 | kernel/exit.c | if (p->pgrp != current->pgrp) |
p | 559 | kernel/exit.c | if (p->pgrp != -pid) |
p | 563 | kernel/exit.c | if ((p->exit_signal != SIGCHLD) ^ ((options & __WCLONE) != 0)) |
p | 566 | kernel/exit.c | switch (p->state) { |
p | 568 | kernel/exit.c | if (!p->exit_code) |
p | 570 | kernel/exit.c | if (!(options & WUNTRACED) && !(p->flags & PF_PTRACED)) |
p | 573 | kernel/exit.c | put_user((p->exit_code << 8) | 0x7f, |
p | 575 | kernel/exit.c | p->exit_code = 0; |
p | 577 | kernel/exit.c | getrusage(p, RUSAGE_BOTH, ru); |
p | 578 | kernel/exit.c | retval = p->pid; |
p | 581 | kernel/exit.c | current->cutime += p->utime + p->cutime; |
p | 582 | kernel/exit.c | current->cstime += p->stime + p->cstime; |
p | 584 | kernel/exit.c | getrusage(p, RUSAGE_BOTH, ru); |
p | 585 | kernel/exit.c | flag = p->pid; |
p | 587 | kernel/exit.c | put_user(p->exit_code, stat_addr); |
p | 588 | kernel/exit.c | if (p->p_opptr != p->p_pptr) { |
p | 589 | kernel/exit.c | REMOVE_LINKS(p); |
p | 590 | kernel/exit.c | p->p_pptr = p->p_opptr; |
p | 591 | kernel/exit.c | SET_LINKS(p); |
p | 592 | kernel/exit.c | notify_parent(p); |
p | 594 | kernel/exit.c | release(p); |
p | 36 | kernel/fork.c | struct task_struct *p; |
p | 46 | kernel/fork.c | for_each_task (p) { |
p | 47 | kernel/fork.c | if (p->uid == current->uid) |
p | 63 | kernel/fork.c | struct task_struct *p; |
p | 70 | kernel/fork.c | for_each_task (p) { |
p | 71 | kernel/fork.c | if (p->pid == last_pid || |
p | 72 | kernel/fork.c | p->pgrp == last_pid || |
p | 73 | kernel/fork.c | p->session == last_pid) |
p | 81 | kernel/fork.c | struct vm_area_struct * mpnt, **p, *tmp; |
p | 84 | kernel/fork.c | p = &mm->mmap; |
p | 107 | kernel/fork.c | *p = tmp; |
p | 108 | kernel/fork.c | p = &tmp->vm_next; |
p | 203 | kernel/fork.c | struct task_struct *p; |
p | 205 | kernel/fork.c | p = (struct task_struct *) kmalloc(sizeof(*p), GFP_KERNEL); |
p | 206 | kernel/fork.c | if (!p) |
p | 216 | kernel/fork.c | *p = *current; |
p | 218 | kernel/fork.c | if (p->exec_domain && p->exec_domain->use_count) |
p | 219 | kernel/fork.c | (*p->exec_domain->use_count)++; |
p | 220 | kernel/fork.c | if (p->binfmt && p->binfmt->use_count) |
p | 221 | kernel/fork.c | (*p->binfmt->use_count)++; |
p | 223 | kernel/fork.c | p->did_exec = 0; |
p | 224 | kernel/fork.c | p->swappable = 0; |
p | 225 | kernel/fork.c | p->kernel_stack_page = new_stack; |
p | 226 | kernel/fork.c | *(unsigned long *) p->kernel_stack_page = STACK_MAGIC; |
p | 227 | kernel/fork.c | p->state = TASK_UNINTERRUPTIBLE; |
p | 228 | kernel/fork.c | p->flags &= ~(PF_PTRACED|PF_TRACESYS); |
p | 229 | kernel/fork.c | p->pid = get_pid(clone_flags); |
p | 230 | kernel/fork.c | p->next_run = NULL; |
p | 231 | kernel/fork.c | p->prev_run = NULL; |
p | 232 | kernel/fork.c | p->p_pptr = p->p_opptr = current; |
p | 233 | kernel/fork.c | p->p_cptr = NULL; |
p | 234 | kernel/fork.c | p->signal = 0; |
p | 235 | kernel/fork.c | p->it_real_value = p->it_virt_value = p->it_prof_value = 0; |
p | 236 | kernel/fork.c | p->it_real_incr = p->it_virt_incr = p->it_prof_incr = 0; |
p | 237 | kernel/fork.c | init_timer(&p->real_timer); |
p | 238 | kernel/fork.c | p->real_timer.data = (unsigned long) p; |
p | 239 | kernel/fork.c | p->leader = 0; /* process leadership doesn't inherit */ |
p | 240 | kernel/fork.c | p->tty_old_pgrp = 0; |
p | 241 | kernel/fork.c | p->utime = p->stime = 0; |
p | 242 | kernel/fork.c | p->cutime = p->cstime = 0; |
p | 244 | kernel/fork.c | p->processor = NO_PROC_ID; |
p | 245 | kernel/fork.c | p->lock_depth = 1; |
p | 247 | kernel/fork.c | p->start_time = jiffies; |
p | 248 | kernel/fork.c | task[nr] = p; |
p | 249 | kernel/fork.c | SET_LINKS(p); |
p | 254 | kernel/fork.c | if (copy_files(clone_flags, p)) |
p | 256 | kernel/fork.c | if (copy_fs(clone_flags, p)) |
p | 258 | kernel/fork.c | if (copy_sighand(clone_flags, p)) |
p | 260 | kernel/fork.c | if (copy_mm(clone_flags, p)) |
p | 262 | kernel/fork.c | copy_thread(nr, clone_flags, usp, p, regs); |
p | 263 | kernel/fork.c | p->semundo = NULL; |
p | 266 | kernel/fork.c | p->swappable = 1; |
p | 267 | kernel/fork.c | p->exit_signal = clone_flags & CSIGNAL; |
p | 268 | kernel/fork.c | p->counter = current->counter >> 1; |
p | 269 | kernel/fork.c | wake_up_process(p); /* do this last, just in case */ |
p | 270 | kernel/fork.c | return p->pid; |
p | 273 | kernel/fork.c | exit_sighand(p); |
p | 275 | kernel/fork.c | exit_fs(p); |
p | 277 | kernel/fork.c | exit_files(p); |
p | 279 | kernel/fork.c | if (p->exec_domain && p->exec_domain->use_count) |
p | 280 | kernel/fork.c | (*p->exec_domain->use_count)--; |
p | 281 | kernel/fork.c | if (p->binfmt && p->binfmt->use_count) |
p | 282 | kernel/fork.c | (*p->binfmt->use_count)--; |
p | 284 | kernel/fork.c | REMOVE_LINKS(p); |
p | 289 | kernel/fork.c | kfree(p); |
p | 100 | kernel/itimer.c | struct task_struct * p = (struct task_struct *) __data; |
p | 103 | kernel/itimer.c | send_sig(SIGALRM, p, 1); |
p | 104 | kernel/itimer.c | interval = p->it_real_incr; |
p | 110 | kernel/itimer.c | p->real_timer.expires = timeout; |
p | 111 | kernel/itimer.c | add_timer(&p->real_timer); |
p | 519 | kernel/module.c | char *p; |
p | 526 | kernel/module.c | p = buf; |
p | 529 | kernel/module.c | if (p - buf > 4096 - 100) |
p | 534 | kernel/module.c | *p++ = *q++; |
p | 542 | kernel/module.c | *p++ = ' '; |
p | 545 | kernel/module.c | *p++ = *q++; |
p | 555 | kernel/module.c | *p++ = *q++; |
p | 558 | kernel/module.c | *p++ = '\t'; |
p | 559 | kernel/module.c | *p++ = '['; |
p | 563 | kernel/module.c | *p++ = *q++; |
p | 565 | kernel/module.c | *p++ = ' '; |
p | 567 | kernel/module.c | *p++ = ']'; |
p | 569 | kernel/module.c | *p++ = '\n'; |
p | 571 | kernel/module.c | return p - buf; |
p | 583 | kernel/module.c | char *p = buf; |
p | 596 | kernel/module.c | p = buf + len; |
p | 598 | kernel/module.c | len += sprintf(p, "%08lx %s\t[%s]\n", |
p | 602 | kernel/module.c | len += sprintf(p, "%08lx %s\n", |
p | 146 | kernel/printk.c | char *msg, *p, *buf_end; |
p | 156 | kernel/printk.c | for (p = buf + 3; p < buf_end; p++) { |
p | 157 | kernel/printk.c | msg = p; |
p | 160 | kernel/printk.c | p[0] != '<' || |
p | 161 | kernel/printk.c | p[1] < '0' || |
p | 162 | kernel/printk.c | p[1] > '7' || |
p | 163 | kernel/printk.c | p[2] != '>' |
p | 165 | kernel/printk.c | p -= 3; |
p | 166 | kernel/printk.c | p[0] = '<'; |
p | 167 | kernel/printk.c | p[1] = DEFAULT_MESSAGE_LOGLEVEL + '0'; |
p | 168 | kernel/printk.c | p[2] = '>'; |
p | 171 | kernel/printk.c | msg_level = p[1] - '0'; |
p | 173 | kernel/printk.c | for (; p < buf_end; p++) { |
p | 174 | kernel/printk.c | log_buf[(log_start+log_size) & (LOG_BUF_LEN-1)] = *p; |
p | 182 | kernel/printk.c | if (*p == '\n') |
p | 186 | kernel/printk.c | char tmp = p[1]; |
p | 187 | kernel/printk.c | p[1] = '\0'; |
p | 189 | kernel/printk.c | p[1] = tmp; |
p | 191 | kernel/printk.c | if (*p == '\n') |
p | 208 | kernel/printk.c | int p = log_start; |
p | 216 | kernel/printk.c | buf[j++] = log_buf[p]; |
p | 217 | kernel/printk.c | p++; p &= LOG_BUF_LEN-1; |
p | 33 | kernel/resource.c | resource_entry_t *p; |
p | 36 | kernel/resource.c | for (p = iolist.next; (p) && (len < 4000); p = p->next) |
p | 38 | kernel/resource.c | p->from, p->from+p->num-1, p->name); |
p | 39 | kernel/resource.c | if (p) |
p | 51 | kernel/resource.c | resource_entry_t *p; |
p | 57 | kernel/resource.c | for (p = root; ; p = p->next) { |
p | 58 | kernel/resource.c | if ((p != root) && (p->from+p->num-1 >= from)) { |
p | 59 | kernel/resource.c | p = NULL; |
p | 62 | kernel/resource.c | if ((p->next == NULL) || (p->next->from > from+num-1)) |
p | 66 | kernel/resource.c | return p; |
p | 74 | kernel/resource.c | resource_entry_t *p; |
p | 83 | kernel/resource.c | p = find_gap(&iolist, from, num); |
p | 84 | kernel/resource.c | if (p == NULL) |
p | 89 | kernel/resource.c | iotable[i].next = p->next; |
p | 90 | kernel/resource.c | p->next = &iotable[i]; |
p | 109 | kernel/resource.c | resource_entry_t *p, *q; |
p | 111 | kernel/resource.c | for (p = &iolist; ; p = q) { |
p | 112 | kernel/resource.c | q = p->next; |
p | 117 | kernel/resource.c | p->next = q->next; |
p | 99 | kernel/sched.c | static inline void add_to_runqueue(struct task_struct * p) |
p | 102 | kernel/sched.c | if (p->next_run || p->prev_run) { |
p | 107 | kernel/sched.c | if (p->counter > current->counter + 3) |
p | 110 | kernel/sched.c | (p->next_run = init_task.next_run)->prev_run = p; |
p | 111 | kernel/sched.c | p->prev_run = &init_task; |
p | 112 | kernel/sched.c | init_task.next_run = p; |
p | 115 | kernel/sched.c | static inline void del_from_runqueue(struct task_struct * p) |
p | 117 | kernel/sched.c | struct task_struct *next = p->next_run; |
p | 118 | kernel/sched.c | struct task_struct *prev = p->prev_run; |
p | 126 | kernel/sched.c | if (p == &init_task) { |
p | 137 | kernel/sched.c | p->next_run = NULL; |
p | 138 | kernel/sched.c | p->prev_run = NULL; |
p | 149 | kernel/sched.c | inline void wake_up_process(struct task_struct * p) |
p | 155 | kernel/sched.c | p->state = TASK_RUNNING; |
p | 156 | kernel/sched.c | if (!p->next_run) |
p | 157 | kernel/sched.c | add_to_runqueue(p); |
p | 163 | kernel/sched.c | struct task_struct * p = (struct task_struct *) __data; |
p | 165 | kernel/sched.c | p->timeout = 0; |
p | 166 | kernel/sched.c | wake_up_process(p); |
p | 182 | kernel/sched.c | struct task_struct * p; |
p | 218 | kernel/sched.c | p = init_task.next_run; |
p | 236 | kernel/sched.c | while (p != &init_task) { |
p | 239 | kernel/sched.c | if (p->processor != NO_PROC_ID) { |
p | 240 | kernel/sched.c | p = p->next_run; |
p | 244 | kernel/sched.c | if (p->counter > c) |
p | 245 | kernel/sched.c | c = p->counter, next = p; |
p | 246 | kernel/sched.c | p = p->next_run; |
p | 251 | kernel/sched.c | for_each_task(p) |
p | 252 | kernel/sched.c | p->counter = (p->counter >> 1) + p->priority; |
p | 303 | kernel/sched.c | struct task_struct * p; |
p | 308 | kernel/sched.c | if ((p = tmp->task) != NULL) { |
p | 309 | kernel/sched.c | if ((p->state == TASK_UNINTERRUPTIBLE) || |
p | 310 | kernel/sched.c | (p->state == TASK_INTERRUPTIBLE)) |
p | 311 | kernel/sched.c | wake_up_process(p); |
p | 328 | kernel/sched.c | struct task_struct * p; |
p | 333 | kernel/sched.c | if ((p = tmp->task) != NULL) { |
p | 334 | kernel/sched.c | if (p->state == TASK_INTERRUPTIBLE) |
p | 335 | kernel/sched.c | wake_up_process(p); |
p | 362 | kernel/sched.c | static inline void __sleep_on(struct wait_queue **p, int state) |
p | 367 | kernel/sched.c | if (!p) |
p | 372 | kernel/sched.c | add_wait_queue(p, &wait); |
p | 376 | kernel/sched.c | remove_wait_queue(p, &wait); |
p | 380 | kernel/sched.c | void interruptible_sleep_on(struct wait_queue **p) |
p | 382 | kernel/sched.c | __sleep_on(p,TASK_INTERRUPTIBLE); |
p | 385 | kernel/sched.c | void sleep_on(struct wait_queue **p) |
p | 387 | kernel/sched.c | __sleep_on(p,TASK_UNINTERRUPTIBLE); |
p | 400 | kernel/sched.c | struct timer_list *p; |
p | 409 | kernel/sched.c | p = &timer_head; |
p | 413 | kernel/sched.c | p = p->next; |
p | 414 | kernel/sched.c | } while (timer->expires > p->expires); |
p | 415 | kernel/sched.c | timer->next = p; |
p | 416 | kernel/sched.c | timer->prev = p->prev; |
p | 417 | kernel/sched.c | p->prev = timer; |
p | 426 | kernel/sched.c | struct timer_list * p; |
p | 428 | kernel/sched.c | p = &timer_head; |
p | 431 | kernel/sched.c | while ((p = p->next) != &timer_head) { |
p | 432 | kernel/sched.c | if (p == timer) { |
p | 476 | kernel/sched.c | struct task_struct **p; |
p | 479 | kernel/sched.c | for(p = &LAST_TASK; p > &FIRST_TASK; --p) |
p | 480 | kernel/sched.c | if (*p && ((*p)->state == TASK_RUNNING || |
p | 481 | kernel/sched.c | (*p)->state == TASK_UNINTERRUPTIBLE || |
p | 482 | kernel/sched.c | (*p)->state == TASK_SWAPPING)) |
p | 855 | kernel/sched.c | static void show_task(int nr,struct task_struct * p) |
p | 860 | kernel/sched.c | printk("%-8s %3d ", p->comm, (p == current) ? -nr : nr); |
p | 861 | kernel/sched.c | if (((unsigned) p->state) < sizeof(stat_nam)/sizeof(char *)) |
p | 862 | kernel/sched.c | printk(stat_nam[p->state]); |
p | 866 | kernel/sched.c | if (p == current) |
p | 869 | kernel/sched.c | printk(" %08lX ", thread_saved_pc(&p->tss)); |
p | 871 | kernel/sched.c | if (p == current) |
p | 874 | kernel/sched.c | printk(" %016lx ", thread_saved_pc(&p->tss)); |
p | 877 | kernel/sched.c | if (((unsigned long *)p->kernel_stack_page)[free]) |
p | 880 | kernel/sched.c | printk("%5lu %5d %6d ", free*sizeof(long), p->pid, p->p_pptr->pid); |
p | 881 | kernel/sched.c | if (p->p_cptr) |
p | 882 | kernel/sched.c | printk("%5d ", p->p_cptr->pid); |
p | 885 | kernel/sched.c | if (p->p_ysptr) |
p | 886 | kernel/sched.c | printk("%7d", p->p_ysptr->pid); |
p | 889 | kernel/sched.c | if (p->p_osptr) |
p | 890 | kernel/sched.c | printk(" %5d\n", p->p_osptr->pid); |
p | 95 | kernel/signal.c | struct sigaction *p; |
p | 97 | kernel/signal.c | p = signum - 1 + current->sig->action; |
p | 98 | kernel/signal.c | if (p->sa_handler == SIG_IGN) { |
p | 104 | kernel/signal.c | if (p->sa_handler == SIG_DFL) { |
p | 138 | kernel/signal.c | struct sigaction new_sa, *p; |
p | 144 | kernel/signal.c | p = signum - 1 + current->sig->action; |
p | 164 | kernel/signal.c | memcpy_tofs(oldaction, p, sizeof(struct sigaction)); |
p | 167 | kernel/signal.c | *p = new_sa; |
p | 38 | kernel/sys.c | static int proc_sel(struct task_struct *p, int which, int who) |
p | 42 | kernel/sys.c | if (!who && p == current) |
p | 44 | kernel/sys.c | return(p->pid == who); |
p | 48 | kernel/sys.c | return(p->pgrp == who); |
p | 52 | kernel/sys.c | return(p->uid == who); |
p | 59 | kernel/sys.c | struct task_struct *p; |
p | 69 | kernel/sys.c | for_each_task(p) { |
p | 70 | kernel/sys.c | if (!proc_sel(p, which, who)) |
p | 72 | kernel/sys.c | if (p->uid != current->euid && |
p | 73 | kernel/sys.c | p->uid != current->uid && !suser()) { |
p | 79 | kernel/sys.c | if (priority > p->priority && !suser()) |
p | 82 | kernel/sys.c | p->priority = priority; |
p | 89 | kernel/sys.c | struct task_struct *p; |
p | 95 | kernel/sys.c | for_each_task (p) { |
p | 96 | kernel/sys.c | if (!proc_sel(p, which, who)) |
p | 98 | kernel/sys.c | if (p->priority > max_prio) |
p | 99 | kernel/sys.c | max_prio = p->priority; |
p | 473 | kernel/sys.c | struct task_struct * p; |
p | 481 | kernel/sys.c | for_each_task(p) { |
p | 482 | kernel/sys.c | if (p->pid == pid) |
p | 488 | kernel/sys.c | if (p->p_pptr == current || p->p_opptr == current) { |
p | 489 | kernel/sys.c | if (p->session != current->session) |
p | 491 | kernel/sys.c | if (p->did_exec) |
p | 493 | kernel/sys.c | } else if (p != current) |
p | 495 | kernel/sys.c | if (p->leader) |
p | 508 | kernel/sys.c | p->pgrp = pgid; |
p | 514 | kernel/sys.c | struct task_struct * p; |
p | 518 | kernel/sys.c | for_each_task(p) { |
p | 519 | kernel/sys.c | if (p->pid == pid) |
p | 520 | kernel/sys.c | return p->pgrp; |
p | 752 | kernel/sys.c | int getrusage(struct task_struct *p, int who, struct rusage *ru) |
p | 763 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(p->utime); |
p | 764 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(p->utime); |
p | 765 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(p->stime); |
p | 766 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(p->stime); |
p | 767 | kernel/sys.c | r.ru_minflt = p->min_flt; |
p | 768 | kernel/sys.c | r.ru_majflt = p->maj_flt; |
p | 769 | kernel/sys.c | r.ru_nswap = p->nswap; |
p | 772 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(p->cutime); |
p | 773 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(p->cutime); |
p | 774 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(p->cstime); |
p | 775 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(p->cstime); |
p | 776 | kernel/sys.c | r.ru_minflt = p->cmin_flt; |
p | 777 | kernel/sys.c | r.ru_majflt = p->cmaj_flt; |
p | 778 | kernel/sys.c | r.ru_nswap = p->cnswap; |
p | 781 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(p->utime + p->cutime); |
p | 782 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(p->utime + p->cutime); |
p | 783 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(p->stime + p->cstime); |
p | 784 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(p->stime + p->cstime); |
p | 785 | kernel/sys.c | r.ru_minflt = p->min_flt + p->cmin_flt; |
p | 786 | kernel/sys.c | r.ru_majflt = p->maj_flt + p->cmaj_flt; |
p | 787 | kernel/sys.c | r.ru_nswap = p->nswap + p->cnswap; |
p | 140 | lib/string.c | const char *p; |
p | 144 | lib/string.c | for (p = s; *p != '\0'; ++p) { |
p | 146 | lib/string.c | if (*p == *a) |
p | 272 | lib/string.c | unsigned char * p = (unsigned char *) addr; |
p | 275 | lib/string.c | if (*p == c) |
p | 276 | lib/string.c | return (void *) p; |
p | 277 | lib/string.c | p++; |
p | 280 | lib/string.c | return (void *) p; |
p | 55 | mm/kmalloc.c | #define BH(p) ((struct block_header *)(p)) |
p | 69 | mm/kmalloc.c | #define PAGE_DESC(p) ((struct page_descriptor *)(((unsigned long)(p)) & PAGE_MASK)) |
p | 179 | mm/kmalloc.c | struct block_header *p; |
p | 213 | mm/kmalloc.c | p = page->firstfree; |
p | 214 | mm/kmalloc.c | if (p->bh_flags != MF_FREE) { |
p | 216 | mm/kmalloc.c | printk("Problem: block on freelist at %08lx isn't free.\n", (long) p); |
p | 243 | mm/kmalloc.c | for (i = NBLOCKS(order), p = BH(page + 1); i > 1; i--, p = p->bh_next) { |
p | 244 | mm/kmalloc.c | p->bh_flags = MF_FREE; |
p | 245 | mm/kmalloc.c | p->bh_next = BH(((long) p) + sz); |
p | 248 | mm/kmalloc.c | p->bh_flags = MF_FREE; |
p | 249 | mm/kmalloc.c | p->bh_next = NULL; |
p | 253 | mm/kmalloc.c | p = BH(page+1); |
p | 264 | mm/kmalloc.c | page->firstfree = p->bh_next; |
p | 271 | mm/kmalloc.c | p->bh_flags = type; /* As of now this block is officially in use */ |
p | 272 | mm/kmalloc.c | p->bh_length = size; |
p | 273 | mm/kmalloc.c | return p + 1; /* Pointer arithmetic: increments past header */ |
p | 281 | mm/kmalloc.c | register struct block_header *p; |
p | 286 | mm/kmalloc.c | p = ((struct block_header *) ptr) - 1; |
p | 287 | mm/kmalloc.c | page = PAGE_DESC(p); |
p | 290 | mm/kmalloc.c | if (p->bh_flags == MF_DMA) { |
p | 291 | mm/kmalloc.c | p->bh_flags = MF_USED; |
p | 298 | mm/kmalloc.c | (p->bh_flags != MF_USED)) { |
p | 300 | mm/kmalloc.c | p, page->next, page->order); |
p | 303 | mm/kmalloc.c | size = p->bh_length; |
p | 304 | mm/kmalloc.c | p->bh_flags = MF_FREE; /* As of now this block is officially free */ |
p | 307 | mm/kmalloc.c | p->bh_next = page->firstfree; |
p | 308 | mm/kmalloc.c | page->firstfree = p; |
p | 821 | mm/mmap.c | struct vm_area_struct **p, *mpnt; |
p | 823 | mm/mmap.c | p = &t->mm->mmap; |
p | 824 | mm/mmap.c | while ((mpnt = *p) != NULL) { |
p | 829 | mm/mmap.c | p = &mpnt->vm_next; |
p | 832 | mm/mmap.c | *p = vmp; |
p | 106 | mm/swap.c | struct swap_info_struct * p = &swap_info[SWP_TYPE(entry)]; |
p | 111 | mm/swap.c | if ((p->flags & SWP_WRITEOK) == SWP_WRITEOK) { |
p | 181 | mm/swap.c | struct swap_info_struct * p; |
p | 188 | mm/swap.c | p = &swap_info[type]; |
p | 190 | mm/swap.c | if (offset >= p->max) { |
p | 194 | mm/swap.c | if (p->swap_map && !p->swap_map[offset]) { |
p | 198 | mm/swap.c | if (!(p->flags & SWP_USED)) { |
p | 202 | mm/swap.c | while (set_bit(offset,p->swap_lockmap)) |
p | 208 | mm/swap.c | if (p->swap_device) { |
p | 209 | mm/swap.c | ll_rw_page(rw,p->swap_device,offset,buf); |
p | 210 | mm/swap.c | } else if (p->swap_file) { |
p | 211 | mm/swap.c | struct inode *swapf = p->swap_file; |
p | 251 | mm/swap.c | if (offset && !clear_bit(offset,p->swap_lockmap)) |
p | 258 | mm/swap.c | struct swap_info_struct * p; |
p | 267 | mm/swap.c | p = &swap_info[type]; |
p | 268 | mm/swap.c | if ((p->flags & SWP_WRITEOK) == SWP_WRITEOK) { |
p | 269 | mm/swap.c | for (offset = p->lowest_bit; offset <= p->highest_bit ; offset++) { |
p | 270 | mm/swap.c | if (p->swap_map[offset]) |
p | 272 | mm/swap.c | if (test_bit(offset, p->swap_lockmap)) |
p | 274 | mm/swap.c | p->swap_map[offset] = 1; |
p | 276 | mm/swap.c | if (offset == p->highest_bit) |
p | 277 | mm/swap.c | p->highest_bit--; |
p | 278 | mm/swap.c | p->lowest_bit = offset; |
p | 282 | mm/swap.c | if (type < 0 || p->prio != swap_info[type].prio) { |
p | 290 | mm/swap.c | type = p->next; |
p | 292 | mm/swap.c | if (type < 0 || p->prio != swap_info[type].prio) { |
p | 304 | mm/swap.c | struct swap_info_struct * p; |
p | 317 | mm/swap.c | p = type + swap_info; |
p | 318 | mm/swap.c | if (offset >= p->max) { |
p | 322 | mm/swap.c | if (!p->swap_map[offset]) { |
p | 326 | mm/swap.c | p->swap_map[offset]++; |
p | 332 | mm/swap.c | struct swap_info_struct * p; |
p | 344 | mm/swap.c | p = & swap_info[type]; |
p | 346 | mm/swap.c | if (offset >= p->max) { |
p | 350 | mm/swap.c | if (!(p->flags & SWP_USED)) { |
p | 354 | mm/swap.c | if (offset < p->lowest_bit) |
p | 355 | mm/swap.c | p->lowest_bit = offset; |
p | 356 | mm/swap.c | if (offset > p->highest_bit) |
p | 357 | mm/swap.c | p->highest_bit = offset; |
p | 358 | mm/swap.c | if (!p->swap_map[offset]) |
p | 361 | mm/swap.c | if (!--p->swap_map[offset]) |
p | 363 | mm/swap.c | if (p->prio > swap_info[swap_list.next].prio) { |
p | 589 | mm/swap.c | static int swap_out_process(struct task_struct * p, unsigned long limit) |
p | 597 | mm/swap.c | address = p->swap_address; |
p | 598 | mm/swap.c | p->swap_address = 0; |
p | 603 | mm/swap.c | vma = find_vma(p, address); |
p | 610 | mm/swap.c | int result = swap_out_vma(p, vma, pgd_offset(p->mm, address), address, limit); |
p | 618 | mm/swap.c | p->swap_address = 0; |
p | 626 | mm/swap.c | struct task_struct *p; |
p | 644 | mm/swap.c | p = task[swap_task]; |
p | 645 | mm/swap.c | if (p && p->swappable && p->mm->rss) |
p | 654 | mm/swap.c | if (!p->swap_cnt) { |
p | 657 | mm/swap.c | p->swap_cnt = AGE_CLUSTER_SIZE(p->mm->rss); |
p | 659 | mm/swap.c | if (!--p->swap_cnt) |
p | 661 | mm/swap.c | switch (swap_out_process(p, limit)) { |
p | 663 | mm/swap.c | if (p->swap_cnt) |
p | 1006 | mm/swap.c | static int unuse_process(struct task_struct * p, unsigned int type, unsigned long page) |
p | 1013 | mm/swap.c | if (!p->mm || pgd_inuse(p->mm->pgd)) |
p | 1015 | mm/swap.c | vma = p->mm->mmap; |
p | 1017 | mm/swap.c | pgd_t * pgd = pgd_offset(p->mm, vma->vm_start); |
p | 1055 | mm/swap.c | struct swap_info_struct * p; |
p | 1067 | mm/swap.c | p = swap_info + type; |
p | 1068 | mm/swap.c | if ((p->flags & SWP_WRITEOK) == SWP_WRITEOK) { |
p | 1069 | mm/swap.c | if (p->swap_file) { |
p | 1070 | mm/swap.c | if (p->swap_file == inode) |
p | 1074 | mm/swap.c | && (p->swap_device == inode->i_rdev)) |
p | 1085 | mm/swap.c | swap_list.head = p->next; |
p | 1087 | mm/swap.c | swap_info[prev].next = p->next; |
p | 1093 | mm/swap.c | p->flags = SWP_USED; |
p | 1097 | mm/swap.c | p->flags = SWP_WRITEOK; |
p | 1101 | mm/swap.c | if(p->swap_device){ |
p | 1114 | mm/swap.c | nr_swap_pages -= p->pages; |
p | 1115 | mm/swap.c | iput(p->swap_file); |
p | 1116 | mm/swap.c | p->swap_file = NULL; |
p | 1117 | mm/swap.c | p->swap_device = 0; |
p | 1118 | mm/swap.c | vfree(p->swap_map); |
p | 1119 | mm/swap.c | p->swap_map = NULL; |
p | 1120 | mm/swap.c | free_page((long) p->swap_lockmap); |
p | 1121 | mm/swap.c | p->swap_lockmap = NULL; |
p | 1122 | mm/swap.c | p->flags = 0; |
p | 1133 | mm/swap.c | struct swap_info_struct * p; |
p | 1144 | mm/swap.c | p = swap_info; |
p | 1145 | mm/swap.c | for (type = 0 ; type < nr_swapfiles ; type++,p++) |
p | 1146 | mm/swap.c | if (!(p->flags & SWP_USED)) |
p | 1152 | mm/swap.c | p->flags = SWP_USED; |
p | 1153 | mm/swap.c | p->swap_file = NULL; |
p | 1154 | mm/swap.c | p->swap_device = 0; |
p | 1155 | mm/swap.c | p->swap_map = NULL; |
p | 1156 | mm/swap.c | p->swap_lockmap = NULL; |
p | 1157 | mm/swap.c | p->lowest_bit = 0; |
p | 1158 | mm/swap.c | p->highest_bit = 0; |
p | 1159 | mm/swap.c | p->max = 1; |
p | 1160 | mm/swap.c | p->next = -1; |
p | 1162 | mm/swap.c | p->prio = |
p | 1165 | mm/swap.c | p->prio = --least_priority; |
p | 1170 | mm/swap.c | p->swap_file = swap_inode; |
p | 1177 | mm/swap.c | p->swap_device = swap_inode->i_rdev; |
p | 1182 | mm/swap.c | p->swap_file = NULL; |
p | 1187 | mm/swap.c | if (!p->swap_device) |
p | 1193 | mm/swap.c | if (p->swap_device == swap_info[i].swap_device) |
p | 1198 | mm/swap.c | p->swap_lockmap = (unsigned char *) get_free_page(GFP_USER); |
p | 1199 | mm/swap.c | if (!p->swap_lockmap) { |
p | 1204 | mm/swap.c | read_swap_page(SWP_ENTRY(type,0), (char *) p->swap_lockmap); |
p | 1205 | mm/swap.c | if (memcmp("SWAP-SPACE",p->swap_lockmap+PAGE_SIZE-10,10)) { |
p | 1210 | mm/swap.c | memset(p->swap_lockmap+PAGE_SIZE-10,0,10); |
p | 1212 | mm/swap.c | p->lowest_bit = 0; |
p | 1213 | mm/swap.c | p->highest_bit = 0; |
p | 1215 | mm/swap.c | if (test_bit(i,p->swap_lockmap)) { |
p | 1216 | mm/swap.c | if (!p->lowest_bit) |
p | 1217 | mm/swap.c | p->lowest_bit = i; |
p | 1218 | mm/swap.c | p->highest_bit = i; |
p | 1219 | mm/swap.c | p->max = i+1; |
p | 1228 | mm/swap.c | p->swap_map = (unsigned char *) vmalloc(p->max); |
p | 1229 | mm/swap.c | if (!p->swap_map) { |
p | 1233 | mm/swap.c | for (i = 1 ; i < p->max ; i++) { |
p | 1234 | mm/swap.c | if (test_bit(i,p->swap_lockmap)) |
p | 1235 | mm/swap.c | p->swap_map[i] = 0; |
p | 1237 | mm/swap.c | p->swap_map[i] = 0x80; |
p | 1239 | mm/swap.c | p->swap_map[0] = 0x80; |
p | 1240 | mm/swap.c | memset(p->swap_lockmap,0,PAGE_SIZE); |
p | 1241 | mm/swap.c | p->flags = SWP_WRITEOK; |
p | 1242 | mm/swap.c | p->pages = j; |
p | 1249 | mm/swap.c | if (p->prio >= swap_info[i].prio) { |
p | 1254 | mm/swap.c | p->next = i; |
p | 1256 | mm/swap.c | swap_list.head = swap_list.next = p - swap_info; |
p | 1258 | mm/swap.c | swap_info[prev].next = p - swap_info; |
p | 1265 | mm/swap.c | free_page((long) p->swap_lockmap); |
p | 1266 | mm/swap.c | vfree(p->swap_map); |
p | 1267 | mm/swap.c | iput(p->swap_file); |
p | 1268 | mm/swap.c | p->swap_device = 0; |
p | 1269 | mm/swap.c | p->swap_file = NULL; |
p | 1270 | mm/swap.c | p->swap_map = NULL; |
p | 1271 | mm/swap.c | p->swap_lockmap = NULL; |
p | 1272 | mm/swap.c | p->flags = 0; |
p | 1309 | mm/swap.c | mem_map_t * p; |
p | 1323 | mm/swap.c | p = mem_map + MAP_NR(end_mem); |
p | 1324 | mm/swap.c | start_mem = LONG_ALIGN((unsigned long) p); |
p | 1325 | mm/swap.c | while (p > mem_map) { |
p | 1326 | mm/swap.c | --p; |
p | 1327 | mm/swap.c | p->count = 0; |
p | 1328 | mm/swap.c | p->dirty = 0; |
p | 1329 | mm/swap.c | p->reserved = 1; |
p | 32 | mm/vmalloc.c | struct task_struct * p; |
p | 34 | mm/vmalloc.c | for_each_task(p) { |
p | 35 | mm/vmalloc.c | if (!p->mm) |
p | 37 | mm/vmalloc.c | *pgd_offset(p->mm,address) = entry; |
p | 237 | mm/vmalloc.c | struct vm_struct **p, *tmp, *area; |
p | 245 | mm/vmalloc.c | for (p = &vmlist; (tmp = *p) ; p = &tmp->next) { |
p | 251 | mm/vmalloc.c | area->next = *p; |
p | 252 | mm/vmalloc.c | *p = area; |
p | 258 | mm/vmalloc.c | struct vm_struct **p, *tmp; |
p | 266 | mm/vmalloc.c | for (p = &vmlist ; (tmp = *p) ; p = &tmp->next) { |
p | 268 | mm/vmalloc.c | *p = tmp->next; |
p | 326 | mm/vmalloc.c | struct vm_struct **p, *tmp; |
p | 330 | mm/vmalloc.c | for (p = &vmlist; (tmp = *p) ; p = &tmp->next) { |
p | 59 | net/ax25/ax25_out.c | unsigned char *p; |
p | 92 | net/ax25/ax25_out.c | p = skb_push(skbn, 2); |
p | 94 | net/ax25/ax25_out.c | *p++ = AX25_P_SEGMENT; |
p | 96 | net/ax25/ax25_out.c | *p = fragno--; |
p | 98 | net/ax25/ax25_out.c | *p |= SEG_FIRST; |
p | 250 | net/ipv4/af_inet.c | struct sock **p; |
p | 266 | net/ipv4/af_inet.c | p=&(sk1->prot->sock_array[sk1->num & (SOCK_ARRAY_SIZE -1)]); |
p | 268 | net/ipv4/af_inet.c | while(*p!=NULL) |
p | 270 | net/ipv4/af_inet.c | if(*p==sk1) |
p | 273 | net/ipv4/af_inet.c | *p=sk1->next; |
p | 276 | net/ipv4/af_inet.c | p=&((*p)->next); |
p | 1553 | net/ipv4/af_inet.c | struct inet_protocol *p; |
p | 1585 | net/ipv4/af_inet.c | for(p = inet_protocol_base; p != NULL;) |
p | 1587 | net/ipv4/af_inet.c | struct inet_protocol *tmp = (struct inet_protocol *) p->next; |
p | 1588 | net/ipv4/af_inet.c | inet_add_protocol(p); |
p | 1589 | net/ipv4/af_inet.c | printk("%s%s",p->name,tmp?", ":"\n"); |
p | 1590 | net/ipv4/af_inet.c | p = tmp; |
p | 198 | net/ipv4/icmp.c | static void icmp_glue_bits(const void *p, __u32 saddr, char *to, unsigned int offset, unsigned int fraglen) |
p | 200 | net/ipv4/icmp.c | struct icmp_bxm *icmp_param = (struct icmp_bxm *)p; |
p | 583 | net/ipv4/ip_fw.c | char *p, *data = (char *)&th[1]; |
p | 626 | net/ipv4/ip_fw.c | p = data+5; |
p | 683 | net/ipv4/ip_fw.c | diff = strlen(buf) - (data-p); |
p | 694 | net/ipv4/ip_fw.c | memcpy(p,buf,strlen(buf)); |
p | 742 | net/ipv4/ip_fw.c | memcpy(skb2->data, skb->data, (p - (char *)skb->data)); |
p | 743 | net/ipv4/ip_fw.c | memcpy(&skb2->data[(p - (char *)skb->data)], buf, strlen(buf)); |
p | 744 | net/ipv4/ip_fw.c | memcpy(&skb2->data[(p - (char *)skb->data) + strlen(buf)], data, |
p | 1524 | net/ipv4/ip_fw.c | int len, p; |
p | 1565 | net/ipv4/ip_fw.c | for (p = 0; p < IP_FW_MAX_PORTS; p++) |
p | 1566 | net/ipv4/ip_fw.c | len+=sprintf(buffer+len, " %u", i->fw_pts[p]); |
p | 216 | net/ipv4/ipmr.c | struct mfc_cache **p; |
p | 226 | net/ipv4/ipmr.c | p=&cache_resolve_queue; |
p | 227 | net/ipv4/ipmr.c | while((*p)!=NULL) |
p | 229 | net/ipv4/ipmr.c | if((*p)==cache) |
p | 231 | net/ipv4/ipmr.c | *p=cache->next; |
p | 234 | net/ipv4/ipmr.c | p=&((*p)->next); |
p | 260 | net/ipv4/packet.c | struct packet_type *p; |
p | 262 | net/ipv4/packet.c | p = (struct packet_type *) kmalloc(sizeof(*p), GFP_KERNEL); |
p | 263 | net/ipv4/packet.c | if (p == NULL) |
p | 266 | net/ipv4/packet.c | p->func = packet_rcv; |
p | 267 | net/ipv4/packet.c | p->type = sk->num; |
p | 268 | net/ipv4/packet.c | p->data = (void *)sk; |
p | 269 | net/ipv4/packet.c | p->dev = NULL; |
p | 270 | net/ipv4/packet.c | dev_add_pack(p); |
p | 276 | net/ipv4/packet.c | sk->pair = (struct sock *)p; |
p | 137 | net/ipv4/protocol.c | struct inet_protocol *p; |
p | 140 | net/ipv4/protocol.c | for (p = inet_protos[hash] ; p != NULL; p=p->next) |
p | 142 | net/ipv4/protocol.c | if (p->protocol == prot) |
p | 143 | net/ipv4/protocol.c | return((struct inet_protocol *) p); |
p | 184 | net/ipv4/protocol.c | struct inet_protocol *p; |
p | 195 | net/ipv4/protocol.c | p = (struct inet_protocol *) inet_protos[hash]; |
p | 196 | net/ipv4/protocol.c | while(p != NULL) |
p | 203 | net/ipv4/protocol.c | if (p->next != NULL && p->next == prot) |
p | 209 | net/ipv4/protocol.c | if (p->copy == 0 && lp != NULL) |
p | 211 | net/ipv4/protocol.c | p->next = prot->next; |
p | 214 | net/ipv4/protocol.c | if (p->next != NULL && p->next->protocol == prot->protocol) |
p | 215 | net/ipv4/protocol.c | lp = p; |
p | 217 | net/ipv4/protocol.c | p = (struct inet_protocol *) p->next; |
p | 150 | net/ipv4/raw.c | static void raw_getfrag(const void *p, __u32 saddr, char *to, unsigned int offset, unsigned int fraglen) |
p | 152 | net/ipv4/raw.c | memcpy_fromfs(to, (const unsigned char *)p+offset, fraglen); |
p | 159 | net/ipv4/raw.c | static void raw_getrawfrag(const void *p, __u32 saddr, char *to, unsigned int offset, unsigned int fraglen) |
p | 161 | net/ipv4/raw.c | memcpy_fromfs(to, (const unsigned char *)p+offset, fraglen); |
p | 562 | net/ipv4/tcp.c | struct sk_buff *p=skb_peek(&s->receive_queue); |
p | 563 | net/ipv4/tcp.c | if(p==NULL) |
p | 567 | net/ipv4/tcp.c | if(p->sk->state == TCP_ESTABLISHED || p->sk->state >= TCP_FIN_WAIT1) |
p | 568 | net/ipv4/tcp.c | return p; |
p | 569 | net/ipv4/tcp.c | p=p->next; |
p | 571 | net/ipv4/tcp.c | while(p!=(struct sk_buff *)&s->receive_queue); |
p | 224 | net/ipv4/udp.c | static void udp_getfrag(const void *p, __u32 saddr, char * to, unsigned int offset, unsigned int fraglen) |
p | 226 | net/ipv4/udp.c | struct udpfakehdr *ufh = (struct udpfakehdr *)p; |
p | 264 | net/ipv4/udp.c | static void udp_getfrag_nosum(const void *p, __u32 saddr, char * to, unsigned int offset, unsigned int fraglen) |
p | 266 | net/ipv4/udp.c | struct udpfakehdr *ufh = (struct udpfakehdr *)p; |
p | 52 | net/ipv4/utils.c | char *p; |
p | 54 | net/ipv4/utils.c | p = (char *) ∈ |
p | 56 | net/ipv4/utils.c | (p[0] & 255), (p[1] & 255), (p[2] & 255), (p[3] & 255)); |
p | 1604 | net/ipx/af_ipx.c | char *p, b[64]; |
p | 1606 | net/ipx/af_ipx.c | p = b; |
p | 1609 | net/ipx/af_ipx.c | *(p++) = h2c[(d[i] >> 4) & 0x0f]; |
p | 1610 | net/ipx/af_ipx.c | *(p++) = h2c[d[i] & 0x0f]; |
p | 1613 | net/ipx/af_ipx.c | *(p++) = ' '; |
p | 1614 | net/ipx/af_ipx.c | *(p++) = ' '; |
p | 1616 | net/ipx/af_ipx.c | *(p++) = ' '; |
p | 1618 | net/ipx/af_ipx.c | *(p++) = '-'; |
p | 1619 | net/ipx/af_ipx.c | *(p++) = ' '; |
p | 1623 | net/ipx/af_ipx.c | *(p++) = ' '<= d[i] && d[i]<'\177' ? d[i] : '.'; |
p | 1625 | net/ipx/af_ipx.c | *(p++) = ' '; |
p | 1626 | net/ipx/af_ipx.c | *p = '\000'; |
p | 1632 | net/ipx/af_ipx.c | void dump_addr(char *str,ipx_address *p) { |
p | 1634 | net/ipx/af_ipx.c | str,ntohl(p->net),p->node[0],p->node[1],p->node[2], |
p | 1635 | net/ipx/af_ipx.c | p->node[3],p->node[4],p->node[5],ntohs(p->sock)); |
p | 1638 | net/ipx/af_ipx.c | void dump_hdr(char *str,ipx_packet *p) { |
p | 1640 | net/ipx/af_ipx.c | str,p->ipx_checksum,ntohs(p->ipx_pktsize),ntohs(p->ipx_pktsize), |
p | 1641 | net/ipx/af_ipx.c | p->ipx_tctrl,p->ipx_tctrl,p->ipx_type); |
p | 1642 | net/ipx/af_ipx.c | dump_addr(" IPX-DST",&p->ipx_dest); |
p | 1643 | net/ipx/af_ipx.c | dump_addr(" IPX-SRC",&p->ipx_source); |
p | 1646 | net/ipx/af_ipx.c | void dump_pkt(char *str,ipx_packet *p) { |
p | 1647 | net/ipx/af_ipx.c | int len = ntohs(p->ipx_pktsize); |
p | 1648 | net/ipx/af_ipx.c | dump_hdr(str,p); |
p | 1650 | net/ipx/af_ipx.c | dump_data(str,(unsigned char *)p + 30, len - 30); |