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 | 143 | arch/alpha/kernel/process.c | p->mm->context = 0; |
p | 128 | arch/i386/boot/compressed/misc.c | void *p; |
p | 135 | arch/i386/boot/compressed/misc.c | p = (void *)free_mem_ptr; |
p | 141 | arch/i386/boot/compressed/misc.c | return p; |
p | 255 | arch/i386/kernel/process.c | struct task_struct * p, struct pt_regs * regs) |
p | 260 | arch/i386/kernel/process.c | p->tss.es = KERNEL_DS; |
p | 261 | arch/i386/kernel/process.c | p->tss.cs = KERNEL_CS; |
p | 262 | arch/i386/kernel/process.c | p->tss.ss = KERNEL_DS; |
p | 263 | arch/i386/kernel/process.c | p->tss.ds = KERNEL_DS; |
p | 264 | arch/i386/kernel/process.c | p->tss.fs = USER_DS; |
p | 265 | arch/i386/kernel/process.c | p->tss.gs = KERNEL_DS; |
p | 266 | arch/i386/kernel/process.c | p->tss.ss0 = KERNEL_DS; |
p | 267 | arch/i386/kernel/process.c | p->tss.esp0 = p->kernel_stack_page + PAGE_SIZE; |
p | 268 | arch/i386/kernel/process.c | p->tss.tr = _TSS(nr); |
p | 269 | arch/i386/kernel/process.c | childregs = ((struct pt_regs *) (p->kernel_stack_page + PAGE_SIZE)) - 1; |
p | 270 | arch/i386/kernel/process.c | p->tss.esp = (unsigned long) childregs; |
p | 271 | arch/i386/kernel/process.c | p->tss.eip = (unsigned long) ret_from_sys_call; |
p | 275 | arch/i386/kernel/process.c | p->tss.back_link = 0; |
p | 276 | arch/i386/kernel/process.c | p->tss.eflags = regs->eflags & 0xffffcfff; /* iopl is always 0 for a new process */ |
p | 277 | arch/i386/kernel/process.c | p->tss.ldt = _LDT(nr); |
p | 278 | arch/i386/kernel/process.c | if (p->ldt) { |
p | 279 | arch/i386/kernel/process.c | p->ldt = (struct desc_struct*) vmalloc(LDT_ENTRIES*LDT_ENTRY_SIZE); |
p | 280 | arch/i386/kernel/process.c | if (p->ldt != NULL) |
p | 281 | arch/i386/kernel/process.c | memcpy(p->ldt, current->ldt, LDT_ENTRIES*LDT_ENTRY_SIZE); |
p | 283 | arch/i386/kernel/process.c | set_tss_desc(gdt+(nr<<1)+FIRST_TSS_ENTRY,&(p->tss)); |
p | 284 | arch/i386/kernel/process.c | if (p->ldt) |
p | 285 | arch/i386/kernel/process.c | set_ldt_desc(gdt+(nr<<1)+FIRST_LDT_ENTRY,p->ldt, 512); |
p | 288 | arch/i386/kernel/process.c | p->tss.bitmap = offsetof(struct thread_struct,io_bitmap); |
p | 290 | arch/i386/kernel/process.c | p->tss.io_bitmap[i] = ~0; |
p | 292 | arch/i386/kernel/process.c | __asm__("clts ; fnsave %0 ; frstor %0":"=m" (p->tss.i387)); |
p | 790 | arch/i386/kernel/smp.c | int p=smp_processor_id(); |
p | 812 | arch/i386/kernel/smp.c | if(smp_cpu_in_msg[p]) |
p | 834 | arch/i386/kernel/smp.c | smp_cpu_in_msg[p]++; |
p | 842 | arch/i386/kernel/smp.c | smp_src_cpu=p; |
p | 928 | 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 | 119 | arch/mips/kernel/process.c | struct task_struct * p, struct pt_regs * regs) |
p | 124 | arch/mips/kernel/process.c | childksp = p->kernel_stack_page + PAGE_SIZE - 8; |
p | 128 | arch/mips/kernel/process.c | childregs = ((struct pt_regs *) (p->kernel_stack_page + PAGE_SIZE)) - 1; |
p | 132 | arch/mips/kernel/process.c | regs->reg2 = p->pid; |
p | 137 | arch/mips/kernel/process.c | p->tss.ksp = childksp; |
p | 138 | arch/mips/kernel/process.c | p->tss.reg29 = (unsigned long) childregs; /* new sp */ |
p | 139 | arch/mips/kernel/process.c | p->tss.reg31 = (unsigned long) ret_from_sys_call; |
p | 145 | arch/mips/kernel/process.c | p->tss.cp0_status = read_32bit_cp0_register(CP0_STATUS) & |
p | 53 | arch/mips/kernel/sysmips.c | int *p; |
p | 73 | arch/mips/kernel/sysmips.c | p = (int *) arg1; |
p | 74 | arch/mips/kernel/sysmips.c | retval = verify_area(VERIFY_WRITE, p, sizeof(*p)); |
p | 79 | arch/mips/kernel/sysmips.c | retval = *p; |
p | 80 | arch/mips/kernel/sysmips.c | *p = arg2; |
p | 30 | arch/ppc/kernel/pci.c | unsigned char *p = (unsigned char *)&val; |
p | 32 | arch/ppc/kernel/pci.c | return ((p[3] << 24) | (p[2] << 16) | (p[1] << 8) | (p[0] << 0)); |
p | 38 | arch/ppc/kernel/pci.c | unsigned char *p = (unsigned char *)&val; |
p | 40 | arch/ppc/kernel/pci.c | return ((p[3] << 8) | (p[2] << 0)); |
p | 99 | arch/ppc/kernel/process.c | struct task_struct * p, struct pt_regs * regs) |
p | 108 | arch/ppc/kernel/process.c | segs = (SEGREG *)p->tss.segs; |
p | 123 | arch/ppc/kernel/process.c | childregs = ((struct pt_regs *) (p->kernel_stack_page + 2*PAGE_SIZE)) - 2; |
p | 126 | arch/ppc/kernel/process.c | p->tss.ksp = (unsigned long)childregs; |
p | 1092 | arch/ppc/kernel/raw_printf.c | _dump_buf_with_offset(unsigned char *p, int s, unsigned char *base) |
p | 1095 | arch/ppc/kernel/raw_printf.c | if ((unsigned int)s > (unsigned int)p) |
p | 1097 | arch/ppc/kernel/raw_printf.c | s = (unsigned int)s - (unsigned int)p; |
p | 1103 | arch/ppc/kernel/raw_printf.c | _printk("%06X: ", (int)p - (int)base); |
p | 1106 | arch/ppc/kernel/raw_printf.c | _printk("%06X: ", p); |
p | 1112 | arch/ppc/kernel/raw_printf.c | _printk("%02X", p[i] & 0xFF); |
p | 1125 | arch/ppc/kernel/raw_printf.c | c = p[i] & 0xFF; |
p | 1135 | arch/ppc/kernel/raw_printf.c | p += 16; |
p | 1139 | arch/ppc/kernel/raw_printf.c | _dump_buf(unsigned char *p, int s) |
p | 1141 | arch/ppc/kernel/raw_printf.c | _dump_buf_with_offset(p, s, 0); |
p | 1145 | arch/ppc/kernel/raw_printf.c | dump_buf_with_offset(unsigned char *p, int s, unsigned char *base) |
p | 1148 | arch/ppc/kernel/raw_printf.c | if ((unsigned int)s > (unsigned int)p) |
p | 1150 | arch/ppc/kernel/raw_printf.c | s = (unsigned int)s - (unsigned int)p; |
p | 1156 | arch/ppc/kernel/raw_printf.c | printk("%06X: ", (int)p - (int)base); |
p | 1159 | arch/ppc/kernel/raw_printf.c | printk("%06X: ", p); |
p | 1165 | arch/ppc/kernel/raw_printf.c | printk("%02X", p[i] & 0xFF); |
p | 1178 | arch/ppc/kernel/raw_printf.c | c = p[i] & 0xFF; |
p | 1188 | arch/ppc/kernel/raw_printf.c | p += 16; |
p | 1192 | arch/ppc/kernel/raw_printf.c | dump_buf(unsigned char *p, int s) |
p | 1194 | arch/ppc/kernel/raw_printf.c | dump_buf_with_offset(p, s, 0); |
p | 465 | arch/ppc/mm/init.c | int i, p; |
p | 471 | arch/ppc/mm/init.c | p = (int)mmu_pages; |
p | 472 | arch/ppc/mm/init.c | p = (p + (MMU_PAGE_SIZE-1)) & ~(MMU_PAGE_SIZE-1); |
p | 476 | arch/ppc/mm/init.c | MMU_free_item(&_free_pages, (struct item *)p); |
p | 477 | arch/ppc/mm/init.c | p += MMU_PAGE_SIZE; |
p | 133 | arch/sparc/kernel/process.c | struct task_struct *p, struct pt_regs *regs) |
p | 140 | arch/sparc/kernel/process.c | p->tss.context = -1; |
p | 144 | arch/sparc/kernel/process.c | childregs = ((struct pt_regs *) (p->kernel_stack_page + stack_offset)); |
p | 149 | arch/sparc/kernel/process.c | p->tss.ksp = (unsigned long) new_stack; |
p | 150 | arch/sparc/kernel/process.c | p->tss.kpc = (((unsigned long) ret_sys_call) - 0x8); |
p | 172 | arch/sparc/kernel/process.c | mmu_fork_hook(p, kthread_usp); |
p | 200 | drivers/block/ali14xx.c | RegInitializer *p; |
p | 207 | drivers/block/ali14xx.c | for (p = initData; p->reg != 0; ++p) |
p | 208 | drivers/block/ali14xx.c | outReg(p->data, p->reg); |
p | 543 | drivers/block/cmd640.c | inline int max4(int *p) { return max(p[0], max(p[1], max(p[2], p[3]))); } |
p | 39 | drivers/block/genhd.c | #define NR_SECTS(p) ldl_u(&p->nr_sects) |
p | 40 | drivers/block/genhd.c | #define START_SECT(p) ldl_u(&p->start_sect) |
p | 42 | drivers/block/genhd.c | #define NR_SECTS(p) p->nr_sects |
p | 43 | drivers/block/genhd.c | #define START_SECT(p) p->start_sect |
p | 90 | drivers/block/genhd.c | static inline int is_extended_partition(struct partition *p) |
p | 92 | drivers/block/genhd.c | return (p->sys_ind == DOS_EXTENDED_PARTITION || |
p | 93 | drivers/block/genhd.c | p->sys_ind == LINUX_EXTENDED_PARTITION); |
p | 111 | drivers/block/genhd.c | struct partition *p; |
p | 134 | drivers/block/genhd.c | p = (struct partition *) (0x1BE + bh->b_data); |
p | 150 | drivers/block/genhd.c | for (i=0; i<4; i++, p++) { |
p | 151 | drivers/block/genhd.c | if (!NR_SECTS(p) || is_extended_partition(p)) |
p | 157 | drivers/block/genhd.c | && START_SECT(p) + NR_SECTS(p) > this_size |
p | 158 | drivers/block/genhd.c | && (this_sector + START_SECT(p) < first_sector || |
p | 159 | drivers/block/genhd.c | this_sector + START_SECT(p) + NR_SECTS(p) > |
p | 163 | drivers/block/genhd.c | add_partition(hd, current_minor, this_sector+START_SECT(p), NR_SECTS(p)); |
p | 178 | drivers/block/genhd.c | p -= 4; |
p | 179 | drivers/block/genhd.c | for (i=0; i<4; i++, p++) |
p | 180 | drivers/block/genhd.c | if(NR_SECTS(p) && is_extended_partition(p)) |
p | 185 | drivers/block/genhd.c | hd->part[current_minor].nr_sects = NR_SECTS(p); |
p | 186 | drivers/block/genhd.c | hd->part[current_minor].start_sect = first_sector + START_SECT(p); |
p | 187 | drivers/block/genhd.c | this_sector = first_sector + START_SECT(p); |
p | 199 | drivers/block/genhd.c | struct partition *p; |
p | 223 | drivers/block/genhd.c | p = (struct partition *) (0x1be + data); |
p | 232 | drivers/block/genhd.c | if (p->sys_ind == EZD_PARTITION) { |
p | 245 | drivers/block/genhd.c | } else if (p->sys_ind == DM6_PARTITION) { |
p | 268 | drivers/block/genhd.c | } else if (p->sys_ind == DM6_AUX1PARTITION || p->sys_ind == DM6_AUX3PARTITION) { |
p | 280 | drivers/block/genhd.c | struct partition *q = &p[i]; |
p | 295 | drivers/block/genhd.c | for (i=1 ; i<=4 ; minor++,i++,p++) { |
p | 296 | drivers/block/genhd.c | if (!NR_SECTS(p)) |
p | 298 | drivers/block/genhd.c | add_partition(hd, minor, first_sector+START_SECT(p), NR_SECTS(p)); |
p | 299 | drivers/block/genhd.c | if (is_extended_partition(p)) { |
p | 321 | drivers/block/genhd.c | p = (struct partition *) (0x1be + data); |
p | 323 | drivers/block/genhd.c | p--; |
p | 326 | drivers/block/genhd.c | if (!(START_SECT(p) && NR_SECTS(p))) |
p | 328 | drivers/block/genhd.c | add_partition(hd, current_minor, START_SECT(p), NR_SECTS(p)); |
p | 438 | drivers/block/genhd.c | struct sun_partition *p; |
p | 447 | drivers/block/genhd.c | p = label->partitions; |
p | 464 | drivers/block/genhd.c | for(i=0; i < 8; i++, p++) { |
p | 470 | drivers/block/genhd.c | st_sector = first_sector + (p->start_cylinder * spc); |
p | 471 | drivers/block/genhd.c | add_partition(hd, current_minor, st_sector, p->num_sectors); |
p | 573 | drivers/block/genhd.c | struct gendisk *p; |
p | 587 | drivers/block/genhd.c | for (p = gendisk_head ; p ; p=p->next) { |
p | 588 | drivers/block/genhd.c | setup_dev(p); |
p | 589 | drivers/block/genhd.c | nr += p->nr_real; |
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 | 302 | drivers/block/ide.c | byte *p; |
p | 314 | drivers/block/ide.c | p = ((byte *) ide_hwifs) + sizeof(ide_hwifs); |
p | 316 | drivers/block/ide.c | *--p = 0; |
p | 317 | drivers/block/ide.c | } while (p > (byte *) ide_hwifs); |
p | 1786 | drivers/block/ide.c | unsigned int p, major, minor; |
p | 1803 | drivers/block/ide.c | for (p = 0; p < (1<<PARTN_BITS); ++p) { |
p | 1804 | drivers/block/ide.c | if (drive->part[p].nr_sects > 0) { |
p | 1805 | drivers/block/ide.c | kdev_t devp = MKDEV(major, minor+p); |
p | 1810 | drivers/block/ide.c | drive->part[p].start_sect = 0; |
p | 1811 | drivers/block/ide.c | drive->part[p].nr_sects = 0; |
p | 2046 | drivers/block/ide.c | byte *p = s, *end = &s[bytecount & ~1]; /* bytecount must be even */ |
p | 2050 | drivers/block/ide.c | for (p = end ; p != s;) { |
p | 2051 | drivers/block/ide.c | unsigned short *pp = (unsigned short *) (p -= 2); |
p | 2063 | drivers/block/ide.c | *p++ = *(s-1); |
p | 2067 | drivers/block/ide.c | while (p != end) |
p | 2068 | drivers/block/ide.c | *p++ = '\0'; |
p | 105 | drivers/block/ide.h | #define OUT_BYTE(b,p) outb((b),p) |
p | 106 | drivers/block/ide.h | #define IN_BYTE(p) (byte)inb(p) |
p | 108 | drivers/block/ide.h | #define OUT_BYTE(b,p) outb_p((b),p) |
p | 109 | drivers/block/ide.h | #define IN_BYTE(p) (byte)inb_p(p) |
p | 103 | drivers/block/ide_modes.h | struct ide_pio_info *p; |
p | 105 | drivers/block/ide_modes.h | for (p = ide_pio_blacklist; p->name != NULL; p++) { |
p | 106 | drivers/block/ide_modes.h | if (strncmp(p->name, model, strlen(p->name)) == 0) |
p | 107 | drivers/block/ide_modes.h | return p->pio; |
p | 262 | drivers/cdrom/aztcd.c | static void azt_bin2bcd(unsigned char *p); |
p | 1711 | drivers/cdrom/aztcd.c | static void azt_bin2bcd(unsigned char *p) |
p | 1714 | drivers/cdrom/aztcd.c | u = *p % 10; |
p | 1715 | drivers/cdrom/aztcd.c | t = *p / 10; |
p | 1716 | drivers/cdrom/aztcd.c | *p = u | (t << 4); |
p | 1223 | drivers/cdrom/cm206.c | void cm206_setup(char *s, int *p) |
p | 1227 | drivers/cdrom/cm206.c | for(i=1; i<=p[0]; i++) { |
p | 1228 | drivers/cdrom/cm206.c | if (0x300 <= p[i] && i<= 0x370 && p[i] % 0x10 == 0) { |
p | 1229 | drivers/cdrom/cm206.c | cm206_base = p[i]; |
p | 1232 | drivers/cdrom/cm206.c | else if (3 <= p[i] && p[i] <= 15) { |
p | 1233 | drivers/cdrom/cm206.c | cm206_irq = p[i]; |
p | 82 | drivers/cdrom/gscd.c | static void gscd_bin2bcd (unsigned char *p); |
p | 1083 | drivers/cdrom/gscd.c | static void gscd_bin2bcd (unsigned char *p) |
p | 1087 | drivers/cdrom/gscd.c | u = *p % 10; |
p | 1088 | drivers/cdrom/gscd.c | t = *p / 10; |
p | 1089 | drivers/cdrom/gscd.c | *p = u | (t << 4); |
p | 70 | drivers/cdrom/isp16.c | #define ISP16_IN(p) (outb(isp16_ctrl,ISP16_CTRL_PORT), inb(p)) |
p | 71 | drivers/cdrom/isp16.c | #define ISP16_OUT(p,b) (outb(isp16_ctrl,ISP16_CTRL_PORT), outb(b,p)) |
p | 181 | drivers/cdrom/mcd.c | static void bin2bcd(unsigned char *p); |
p | 1276 | drivers/cdrom/mcd.c | bin2bcd(unsigned char *p) |
p | 1280 | drivers/cdrom/mcd.c | u = *p % 10; |
p | 1281 | drivers/cdrom/mcd.c | t = *p / 10; |
p | 1282 | drivers/cdrom/mcd.c | *p = u | (t << 4); |
p | 1215 | drivers/cdrom/mcdx.c | char *p, int sector, int nr_sectors) |
p | 1281 | drivers/cdrom/mcdx.c | insb((unsigned int) stuffp->rreg_data, p, HEAD); |
p | 1287 | drivers/cdrom/mcdx.c | insb((unsigned int) stuffp->rreg_data, p, 512); |
p | 1300 | drivers/cdrom/mcdx.c | p += 512; |
p | 1522 | drivers/cdrom/mcdx.c | struct s_subqcode* p; |
p | 1527 | drivers/cdrom/mcdx.c | if (ti) p = &stuffp->toc[ti->cdti_trk0 - stuffp->di.n_first]; |
p | 1528 | drivers/cdrom/mcdx.c | else p = &stuffp->start; |
p | 1530 | drivers/cdrom/mcdx.c | msf.cdmsf_min0 = p->dt.minute; |
p | 1531 | drivers/cdrom/mcdx.c | msf.cdmsf_sec0 = p->dt.second; |
p | 1532 | drivers/cdrom/mcdx.c | msf.cdmsf_frame0 = p->dt.frame; |
p | 1535 | drivers/cdrom/mcdx.c | p = &stuffp->toc[ti->cdti_trk1 - stuffp->di.n_first + 1]; |
p | 1536 | drivers/cdrom/mcdx.c | stuffp->stop = *p; |
p | 1537 | drivers/cdrom/mcdx.c | } else p = &stuffp->stop; |
p | 1539 | drivers/cdrom/mcdx.c | msf.cdmsf_min1 = p->dt.minute; |
p | 1540 | drivers/cdrom/mcdx.c | msf.cdmsf_sec1 = p->dt.second; |
p | 1541 | drivers/cdrom/mcdx.c | msf.cdmsf_frame1 = p->dt.frame; |
p | 519 | drivers/cdrom/optcd.c | inline static void single_bin2bcd(u_char *p) |
p | 521 | drivers/cdrom/optcd.c | DEBUG((DEBUG_CONV, "bin2bcd %02d", *p)); |
p | 522 | drivers/cdrom/optcd.c | *p = (*p % 10) | ((*p / 10) << 4); |
p | 92 | drivers/cdrom/optcd_isp16.h | #define ISP16_IN(p) (outb(isp16_ctrl,ISP16_CTRL_PORT), inb(p)) |
p | 93 | drivers/cdrom/optcd_isp16.h | #define ISP16_OUT(p,b) (outb(isp16_ctrl,ISP16_CTRL_PORT), outb(b,p)) |
p | 819 | drivers/cdrom/sbpcd.c | static INLINE void bin2bcdx(u_char *p) /* must work only up to 75 or 99 */ |
p | 821 | drivers/cdrom/sbpcd.c | *p=((*p/10)<<4)|(*p%10); |
p | 2721 | drivers/cdrom/sbpcd.c | static int convert_UPC(u_char *p) |
p | 2725 | drivers/cdrom/sbpcd.c | p++; |
p | 2726 | drivers/cdrom/sbpcd.c | if (fam0L_drive) p[13]=0; |
p | 2729 | drivers/cdrom/sbpcd.c | if (fam1_drive) D_S[d].UPC_buf[i]=swap_nibbles(*p++); |
p | 2732 | drivers/cdrom/sbpcd.c | D_S[d].UPC_buf[i]=((*p++)<<4)&0xFF; |
p | 2733 | drivers/cdrom/sbpcd.c | D_S[d].UPC_buf[i] |= *p++; |
p | 4149 | drivers/cdrom/sbpcd.c | u_char *p; |
p | 4278 | drivers/cdrom/sbpcd.c | p = D_S[d].aud_buf; |
p | 4280 | drivers/cdrom/sbpcd.c | if (do_16bit) insw(CDi_data, p, read_audio.nframes*(CD_FRAMESIZE_RAW>>1)); |
p | 4281 | drivers/cdrom/sbpcd.c | else insb(CDi_data, p, read_audio.nframes*CD_FRAMESIZE_RAW); |
p | 4613 | drivers/cdrom/sbpcd.c | u_char *p; |
p | 4697 | drivers/cdrom/sbpcd.c | p = D_S[d].sbp_buf + frame * CD_FRAMESIZE; |
p | 4702 | drivers/cdrom/sbpcd.c | if (do_16bit) insw(CDi_data, p, CD_FRAMESIZE>>1); |
p | 4703 | drivers/cdrom/sbpcd.c | else insb(CDi_data, p, CD_FRAMESIZE); |
p | 5049 | drivers/cdrom/sbpcd.c | void sbpcd_setup(const char *s, int *p) |
p | 5052 | drivers/cdrom/sbpcd.c | msg(DBG_INI,"sbpcd_setup called with %04X,%s\n",p[1], s); |
p | 5054 | drivers/cdrom/sbpcd.c | if (p[0]>1) sbpro_type=p[2]; |
p | 5063 | drivers/cdrom/sbpcd.c | if (p[0]>0) sbpcd_ioaddr=p[1]; |
p | 906 | drivers/char/apm_bios.c | char * p; |
p | 920 | drivers/char/apm_bios.c | p = buf; |
p | 980 | drivers/char/apm_bios.c | p += sprintf(p, "%s %d.%d 0x%02x 0x%02x 0x%02x 0x%02x %d%% %d %s\n", |
p | 992 | drivers/char/apm_bios.c | return p - buf; |
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 | 316 | drivers/char/console.c | long p, q; |
p | 328 | drivers/char/console.c | p = (long) kmalloc(structsize, GFP_KERNEL); |
p | 329 | drivers/char/console.c | if (!p) { |
p | 334 | drivers/char/console.c | vc_cons[i].d = (struct vc_data *) p; |
p | 335 | drivers/char/console.c | p += sizeof(struct vc_data); |
p | 336 | drivers/char/console.c | vt_cons[i] = (struct vt_struct *) p; |
p | 354 | drivers/char/console.c | unsigned short *p; |
p | 377 | drivers/char/console.c | p = (unsigned short *) kmalloc(ss, GFP_USER); |
p | 378 | drivers/char/console.c | if (!p) { |
p | 384 | drivers/char/console.c | newscreens[currcons] = p; |
p | 931 | drivers/char/console.c | static void respond_string(const char * p, struct tty_struct * tty) |
p | 933 | drivers/char/console.c | while (*p) { |
p | 934 | drivers/char/console.c | tty_insert_flip_char(tty, *p, 0); |
p | 935 | drivers/char/console.c | p++; |
p | 977 | drivers/char/console.c | unsigned short *p = (unsigned short *)(origin + offset); |
p | 979 | drivers/char/console.c | p -= (__real_origin - __origin); |
p | 980 | drivers/char/console.c | return p; |
p | 986 | drivers/char/console.c | unsigned short *p; |
p | 989 | drivers/char/console.c | p = screenpos(currcons, offset, viewed); |
p | 992 | drivers/char/console.c | unsigned short old = scr_readw(p); |
p | 993 | drivers/char/console.c | scr_writew(reverse_video_short(old), p); |
p | 994 | drivers/char/console.c | p++; |
p | 998 | drivers/char/console.c | unsigned short old = scr_readw(p); |
p | 1000 | drivers/char/console.c | ? 0x7000 : 0x7700), p); |
p | 1001 | drivers/char/console.c | p++; |
p | 1008 | drivers/char/console.c | static unsigned short *p = NULL; |
p | 1011 | drivers/char/console.c | if (p) |
p | 1012 | drivers/char/console.c | scr_writew(old, p); |
p | 1014 | drivers/char/console.c | p = NULL; |
p | 1016 | drivers/char/console.c | p = screenpos(currcons, offset, 1); |
p | 1017 | drivers/char/console.c | old = scr_readw(p); |
p | 1018 | drivers/char/console.c | scr_writew(old ^ 0x7700, p); |
p | 1042 | drivers/char/console.c | void getconsxy(int currcons, char *p) |
p | 1044 | drivers/char/console.c | p[0] = x; |
p | 1045 | drivers/char/console.c | p[1] = y; |
p | 1048 | drivers/char/console.c | void putconsxy(int currcons, char *p) |
p | 1050 | drivers/char/console.c | gotoxy(currcons, p[0], p[1]); |
p | 1176 | drivers/char/console.c | unsigned short * p = (unsigned short *) pos; |
p | 1179 | drivers/char/console.c | tmp = scr_readw(p); |
p | 1180 | drivers/char/console.c | scr_writew(old, p); |
p | 1182 | drivers/char/console.c | p++; |
p | 1196 | drivers/char/console.c | unsigned short * p = (unsigned short *) pos; |
p | 1199 | drivers/char/console.c | scr_writew(scr_readw(p+1), p); |
p | 1200 | drivers/char/console.c | p++; |
p | 1202 | 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 | 538 | drivers/char/n_tty.c | const unsigned char *p; |
p | 560 | drivers/char/n_tty.c | for (i=count, p = cp, f = fp; i; i--, p++) { |
p | 565 | drivers/char/n_tty.c | n_tty_receive_char(tty, *p); |
p | 572 | drivers/char/n_tty.c | n_tty_receive_parity_error(tty, *p); |
p | 712 | drivers/char/random.c | __u32 word, *p; |
p | 714 | drivers/char/random.c | for (i = count, p = (__u32 *)buffer; |
p | 716 | drivers/char/random.c | i-= sizeof(__u32), p++) { |
p | 717 | drivers/char/random.c | memcpy_fromfs(&word, p, sizeof(__u32)); |
p | 722 | drivers/char/random.c | memcpy_fromfs(&word, p, i); |
p | 734 | drivers/char/random.c | int *p, size, ent_count; |
p | 757 | drivers/char/random.c | p = (int *) arg; |
p | 758 | drivers/char/random.c | retval = verify_area(VERIFY_WRITE, (void *) p, sizeof(int)); |
p | 761 | drivers/char/random.c | put_user(random_state.entropy_count, p++); |
p | 762 | drivers/char/random.c | retval = verify_area(VERIFY_READ, (void *) p, sizeof(int)); |
p | 765 | drivers/char/random.c | size = get_user(p); |
p | 766 | drivers/char/random.c | put_user(POOLWORDS, p); |
p | 771 | drivers/char/random.c | memcpy_tofs(++p, random_state.pool, |
p | 777 | drivers/char/random.c | p = (int *) arg; |
p | 778 | drivers/char/random.c | retval = verify_area(VERIFY_READ, (void *) p, 2*sizeof(int)); |
p | 781 | drivers/char/random.c | ent_count = get_user(p++); |
p | 782 | drivers/char/random.c | size = get_user(p++); |
p | 783 | drivers/char/random.c | (void) random_write(0, file, (const char *) p, size); |
p | 740 | drivers/char/scc.c | register io_port *p; |
p | 781 | drivers/char/scc.c | p = SCC_ctrl; |
p | 785 | drivers/char/scc.c | if (!(q=*p++)) break; |
p | 791 | drivers/char/scc.c | if (!(q=*p++)) break; |
p | 812 | drivers/char/scc.c | p = SCC_ctrl; |
p | 814 | drivers/char/scc.c | } else p++; |
p | 2467 | drivers/char/scc.c | unsigned char *p; |
p | 2509 | drivers/char/scc.c | p=scc_wbuf; |
p | 2512 | 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 | 57 | drivers/char/selection.h | extern void getconsxy(int currcons, char *p); |
p | 58 | drivers/char/selection.h | extern void putconsxy(int currcons, char *p); |
p | 275 | drivers/char/tty_io.c | struct tty_driver *p; |
p | 280 | drivers/char/tty_io.c | for (p = tty_drivers; p; p = p->next) { |
p | 281 | drivers/char/tty_io.c | if (p->major != major) |
p | 283 | drivers/char/tty_io.c | if (minor < p->minor_start) |
p | 285 | drivers/char/tty_io.c | if (minor >= p->minor_start + p->num) |
p | 287 | drivers/char/tty_io.c | return p; |
p | 373 | drivers/char/tty_io.c | struct task_struct *p; |
p | 419 | drivers/char/tty_io.c | for_each_task(p) { |
p | 420 | drivers/char/tty_io.c | if ((tty->session > 0) && (p->session == tty->session) && |
p | 421 | drivers/char/tty_io.c | p->leader) { |
p | 422 | drivers/char/tty_io.c | send_sig(SIGHUP,p,1); |
p | 423 | drivers/char/tty_io.c | send_sig(SIGCONT,p,1); |
p | 425 | drivers/char/tty_io.c | p->tty_old_pgrp = tty->pgrp; |
p | 427 | drivers/char/tty_io.c | if (p->tty == tty) |
p | 428 | drivers/char/tty_io.c | p->tty = NULL; |
p | 477 | drivers/char/tty_io.c | struct task_struct *p; |
p | 498 | drivers/char/tty_io.c | for_each_task(p) |
p | 499 | drivers/char/tty_io.c | if (p->session == current->session) |
p | 500 | drivers/char/tty_io.c | p->tty = NULL; |
p | 978 | drivers/char/tty_io.c | struct task_struct **p; |
p | 1093 | drivers/char/tty_io.c | for (p = &LAST_TASK ; p > &FIRST_TASK ; --p) { |
p | 1094 | drivers/char/tty_io.c | if (*p == 0) |
p | 1096 | drivers/char/tty_io.c | if ((*p)->tty == tty) |
p | 1097 | drivers/char/tty_io.c | (*p)->tty = NULL; |
p | 1098 | drivers/char/tty_io.c | if (o_tty && (*p)->tty == o_tty) |
p | 1099 | drivers/char/tty_io.c | (*p)->tty = NULL; |
p | 1339 | drivers/char/tty_io.c | struct task_struct **p; |
p | 1346 | drivers/char/tty_io.c | for (p = &FIRST_TASK ; p <= &LAST_TASK ; p++, n++) |
p | 1347 | drivers/char/tty_io.c | if (*p) |
p | 1349 | drivers/char/tty_io.c | c = (char *)(*p); |
p | 1471 | drivers/char/tty_io.c | struct task_struct *p; |
p | 1473 | drivers/char/tty_io.c | for_each_task(p) |
p | 1474 | drivers/char/tty_io.c | if (p->tty == tty) |
p | 1475 | drivers/char/tty_io.c | p->tty = NULL; |
p | 1627 | drivers/char/tty_io.c | struct task_struct **p; |
p | 1639 | drivers/char/tty_io.c | for (p = &LAST_TASK ; p > &FIRST_TASK ; --p) { |
p | 1640 | drivers/char/tty_io.c | if (!(*p)) |
p | 1642 | drivers/char/tty_io.c | if (((*p)->tty == tty) || |
p | 1643 | drivers/char/tty_io.c | ((session > 0) && ((*p)->session == session))) |
p | 1644 | drivers/char/tty_io.c | send_sig(SIGKILL, *p, 1); |
p | 1647 | drivers/char/tty_io.c | filp = (*p)->files->fd[i]; |
p | 1650 | drivers/char/tty_io.c | send_sig(SIGKILL, *p, 1); |
p | 1753 | drivers/char/tty_io.c | struct tty_driver *p; |
p | 1760 | drivers/char/tty_io.c | for (p = tty_drivers; p; p = p->next) { |
p | 1761 | drivers/char/tty_io.c | if (p == driver) |
p | 1763 | drivers/char/tty_io.c | else if (p->major == driver->major) |
p | 1764 | 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 | 109 | drivers/char/vt.c | struct task_struct *p; |
p | 123 | drivers/char/vt.c | for_each_task(p) |
p | 125 | drivers/char/vt.c | if ( p->tty && MAJOR(p->tty->device) == TTY_MAJOR && |
p | 126 | drivers/char/vt.c | MINOR(p->tty->device) <= MAX_NR_CONSOLES && MINOR(p->tty->device) ) |
p | 128 | drivers/char/vt.c | send_sig(SIGWINCH, p, 1); |
p | 512 | drivers/char/vt.c | char *p; |
p | 524 | drivers/char/vt.c | p = func_table[i]; |
p | 525 | drivers/char/vt.c | if(p) |
p | 526 | drivers/char/vt.c | for ( ; *p && sz; p++, sz--) |
p | 527 | drivers/char/vt.c | put_user(*p, q++); |
p | 529 | drivers/char/vt.c | return ((p && *p) ? -EOVERFLOW : 0); |
p | 538 | drivers/char/vt.c | u_char *p; |
p | 560 | drivers/char/vt.c | for (p = a->kb_string; get_user(p) && sz; p++,sz--) |
p | 602 | drivers/char/vt.c | for (p = a->kb_string, q = func_table[i]; ; p++, q++) |
p | 603 | drivers/char/vt.c | if (!(*q = get_user(p))) |
p | 65 | drivers/net/3c505.c | #define CHECK_NULL(p) \ |
p | 66 | 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 | 558 | drivers/net/bsd_comp.c | #define dict_ptrx(p,idx) &(p->dict[idx]) |
p | 559 | drivers/net/bsd_comp.c | #define lens_ptrx(p,idx) &(p->lens[idx]) |
p | 877 | drivers/net/bsd_comp.c | unsigned char *p; |
p | 1030 | drivers/net/bsd_comp.c | p = wptr; |
p | 1060 | drivers/net/bsd_comp.c | *--p = dictp->f.hs.suffix; |
p | 1063 | drivers/net/bsd_comp.c | *--p = finchar; |
p | 2256 | drivers/net/de4x5.c | short *p = (short *)&lp->srom; |
p | 2258 | drivers/net/de4x5.c | *p++ = srom_rd(aprom_addr, i); |
p | 740 | drivers/net/depca.c | u_long p; |
p | 750 | drivers/net/depca.c | writel((p=lp->dma_buffs+i*RX_BUFF_SZ) | R_OWN, &lp->rx_ring[i].base); |
p | 752 | drivers/net/depca.c | lp->rx_memcpy[i]=(char *)(p+lp->bus_offset); |
p | 755 | drivers/net/depca.c | writel((p=lp->dma_buffs+(i+lp->txRingMask+1)*TX_BUFF_SZ) & 0x00ffffff, |
p | 757 | drivers/net/depca.c | lp->tx_memcpy[i]=(char *)(p+lp->bus_offset); |
p | 1621 | drivers/net/depca.c | struct depca_init *p = (struct depca_init *)lp->sh_mem; |
p | 1660 | drivers/net/depca.c | printk("\tmode: 0x%4.4x\n", (u16) readw(&p->mode)); |
p | 1663 | drivers/net/depca.c | printk("%2.2x:",(u_char)readb(&p->phys_addr[i])); |
p | 1665 | drivers/net/depca.c | printk("%2.2x\n",(u_char)readb(&p->phys_addr[i])); |
p | 1668 | drivers/net/depca.c | printk("%2.2x:",(u_char)readb(&p->mcast_table[i])); |
p | 1670 | drivers/net/depca.c | printk("%2.2x\n",(u_char)readb(&p->mcast_table[i])); |
p | 1671 | drivers/net/depca.c | printk("\trx_ring at: 0x%8.8x\n", (u32) readl(&p->rx_ring)); |
p | 1672 | drivers/net/depca.c | printk("\ttx_ring at: 0x%8.8x\n", (u32) readl(&p->tx_ring)); |
p | 806 | drivers/net/ewrk3.c | u_char *p = skb->data; |
p | 813 | drivers/net/ewrk3.c | outb(*p++, EWRK3_DATA); |
p | 1001 | drivers/net/ewrk3.c | unsigned char *p; |
p | 1004 | drivers/net/ewrk3.c | p = skb_put(skb,pkt_len); |
p | 1007 | drivers/net/ewrk3.c | *p = inb(EWRK3_DATA); /* dummy read */ |
p | 1009 | drivers/net/ewrk3.c | *p++ = inb(EWRK3_DATA); |
p | 1012 | drivers/net/ewrk3.c | memcpy_fromio(p, buf, pkt_len); |
p | 1032 | drivers/net/ewrk3.c | p = skb->data; /* Look at the dest addr */ |
p | 1033 | drivers/net/ewrk3.c | if (p[0] & 0x01) { /* Multicast/Broadcast */ |
p | 1034 | drivers/net/ewrk3.c | if ((*(s32 *)&p[0] == -1) && (*(s16 *)&p[4] == -1)) { |
p | 1039 | drivers/net/ewrk3.c | } else if ((*(s32 *)&p[0] == *(s32 *)&dev->dev_addr[0]) && |
p | 1040 | drivers/net/ewrk3.c | (*(s16 *)&p[4] == *(s16 *)&dev->dev_addr[4])) { |
p | 1213 | drivers/net/ewrk3.c | short *p = (short *) lp->mctbl; |
p | 1231 | drivers/net/ewrk3.c | writew(0xffff, p); |
p | 1232 | drivers/net/ewrk3.c | p++; i++; |
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 | 138 | drivers/net/net_init.c | static int eth_mac_addr(struct device *dev, void *p) |
p | 140 | drivers/net/net_init.c | struct sockaddr *addr=p; |
p | 105 | drivers/net/ni52.c | #define make32(ptr16) (p->memtop + (short) (ptr16) ) |
p | 106 | drivers/net/ni52.c | #define make24(ptr32) ((char *) (ptr32) - p->base) |
p | 107 | drivers/net/ni52.c | #define make16(ptr32) ((unsigned short) ((unsigned long) (ptr32) - (unsigned long) p->memtop )) |
p | 145 | drivers/net/ni52.c | if(!p->scb->cmd) break; \ |
p | 249 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 253 | drivers/net/ni52.c | p->base = (unsigned long) where + size - 0x01000000; |
p | 254 | drivers/net/ni52.c | p->memtop = where + size; |
p | 255 | drivers/net/ni52.c | p->scp = (struct scp_struct *)(p->base + SCP_DEFAULT_ADDRESS); |
p | 256 | drivers/net/ni52.c | memset((char *)p->scp,0, sizeof(struct scp_struct)); |
p | 257 | drivers/net/ni52.c | p->scp->sysbus = SYSBUSVAL; /* 1 = 8Bit-Bus, 0 = 16 Bit */ |
p | 260 | drivers/net/ni52.c | iscp_addrs[1]= (char *) p->scp - sizeof(struct iscp_struct); |
p | 264 | drivers/net/ni52.c | p->iscp = (struct iscp_struct *) iscp_addrs[i]; |
p | 265 | drivers/net/ni52.c | memset((char *)p->iscp,0, sizeof(struct iscp_struct)); |
p | 267 | drivers/net/ni52.c | p->scp->iscp = make24(p->iscp); |
p | 268 | drivers/net/ni52.c | p->iscp->busy = 1; |
p | 274 | drivers/net/ni52.c | if(p->iscp->busy) /* i82586 clears 'busy' after successful init */ |
p | 286 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 291 | drivers/net/ni52.c | p->scp = (struct scp_struct *) (p->base + SCP_DEFAULT_ADDRESS); |
p | 292 | drivers/net/ni52.c | p->scb = (struct scb_struct *) (dev->mem_start); |
p | 293 | drivers/net/ni52.c | p->iscp = (struct iscp_struct *) ((char *)p->scp - sizeof(struct iscp_struct)); |
p | 295 | drivers/net/ni52.c | memset((char *) p->iscp,0,sizeof(struct iscp_struct)); |
p | 296 | drivers/net/ni52.c | memset((char *) p->scp ,0,sizeof(struct scp_struct)); |
p | 298 | drivers/net/ni52.c | p->scp->iscp = make24(p->iscp); |
p | 299 | drivers/net/ni52.c | p->scp->sysbus = SYSBUSVAL; |
p | 300 | drivers/net/ni52.c | p->iscp->scb_offset = make16(p->scb); |
p | 302 | drivers/net/ni52.c | p->iscp->busy = 1; |
p | 308 | drivers/net/ni52.c | if(p->iscp->busy) |
p | 311 | drivers/net/ni52.c | memset((char *)p->scb,0,sizeof(struct scb_struct)); |
p | 456 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 464 | drivers/net/ni52.c | ptr = (void *) ((char *)p->scb + sizeof(struct scb_struct)); |
p | 487 | drivers/net/ni52.c | p->scb->cbl_offset = make16(cfg_cmd); |
p | 489 | drivers/net/ni52.c | p->scb->cmd = CUC_START; /* cmd.-unit start */ |
p | 513 | drivers/net/ni52.c | p->scb->cbl_offset = make16(ias_cmd); |
p | 515 | drivers/net/ni52.c | p->scb->cmd = CUC_START; /* cmd.-unit start */ |
p | 537 | drivers/net/ni52.c | p->scb->cbl_offset = make16(tdr_cmd); |
p | 539 | drivers/net/ni52.c | p->scb->cmd = CUC_START; /* cmd.-unit start */ |
p | 554 | drivers/net/ni52.c | p->scb->cmd = p->scb->status & STAT_MASK; |
p | 574 | drivers/net/ni52.c | p->scb->cmd = p->scb->status & STAT_MASK; |
p | 583 | drivers/net/ni52.c | p->nop_cmds[i] = (struct nop_cmd_struct *)ptr; |
p | 584 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_cmd = CMD_NOP; |
p | 585 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_status = 0; |
p | 586 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_link = make16((p->nop_cmds[i])); |
p | 589 | drivers/net/ni52.c | p->xmit_cmds[0] = (struct transmit_cmd_struct *)ptr; /* transmit cmd/buff 0 */ |
p | 594 | drivers/net/ni52.c | p->nop_cmds[i] = (struct nop_cmd_struct *)ptr; |
p | 595 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_cmd = CMD_NOP; |
p | 596 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_status = 0; |
p | 597 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_link = make16((p->nop_cmds[i])); |
p | 599 | drivers/net/ni52.c | p->xmit_cmds[i] = (struct transmit_cmd_struct *)ptr; /*transmit cmd/buff 0*/ |
p | 612 | drivers/net/ni52.c | int len = ((char *) p->iscp - (char *) ptr - 8) / 6; |
p | 635 | drivers/net/ni52.c | p->scb->cbl_offset = make16(mc_cmd); |
p | 636 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
p | 652 | drivers/net/ni52.c | p->xmit_cbuffs[i] = (char *)ptr; /* char-buffs */ |
p | 654 | drivers/net/ni52.c | p->xmit_buffs[i] = (struct tbd_struct *)ptr; /* TBD */ |
p | 656 | drivers/net/ni52.c | if((void *)ptr > (void *)p->iscp) |
p | 661 | drivers/net/ni52.c | memset((char *)(p->xmit_cmds[i]) ,0, sizeof(struct transmit_cmd_struct)); |
p | 662 | drivers/net/ni52.c | memset((char *)(p->xmit_buffs[i]),0, sizeof(struct tbd_struct)); |
p | 663 | drivers/net/ni52.c | p->xmit_cmds[i]->cmd_status = STAT_COMPL; |
p | 664 | drivers/net/ni52.c | p->xmit_cmds[i]->cmd_cmd = CMD_XMIT | CMD_INT; |
p | 665 | drivers/net/ni52.c | p->xmit_cmds[i]->tbd_offset = make16((p->xmit_buffs[i])); |
p | 666 | drivers/net/ni52.c | p->xmit_buffs[i]->next = 0xffff; |
p | 667 | drivers/net/ni52.c | p->xmit_buffs[i]->buffer = make24((p->xmit_cbuffs[i])); |
p | 670 | drivers/net/ni52.c | p->xmit_count = 0; |
p | 671 | drivers/net/ni52.c | p->xmit_last = 0; |
p | 673 | drivers/net/ni52.c | p->nop_point = 0; |
p | 680 | drivers/net/ni52.c | p->scb->cbl_offset = make16(p->nop_cmds[0]); |
p | 681 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
p | 685 | drivers/net/ni52.c | p->xmit_cmds[0]->cmd_link = 0xffff; |
p | 686 | drivers/net/ni52.c | p->xmit_cmds[0]->cmd_cmd = CMD_XMIT | CMD_LAST | CMD_INT; |
p | 702 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 704 | drivers/net/ni52.c | memset((char *) rfd,0,sizeof(struct rfd_struct)*p->num_recv_buffs); |
p | 705 | drivers/net/ni52.c | p->rfd_first = rfd; |
p | 707 | drivers/net/ni52.c | for(i = 0; i < p->num_recv_buffs; i++) |
p | 708 | drivers/net/ni52.c | rfd[i].next = make16(rfd + (i+1) % p->num_recv_buffs); |
p | 709 | drivers/net/ni52.c | rfd[p->num_recv_buffs-1].last = RFD_SUSP; /* RU suspend */ |
p | 711 | drivers/net/ni52.c | ptr = (void *) (rfd + p->num_recv_buffs); |
p | 714 | drivers/net/ni52.c | ptr = (void *) (rbd + p->num_recv_buffs); |
p | 717 | drivers/net/ni52.c | memset((char *) rbd,0,sizeof(struct rbd_struct)*p->num_recv_buffs); |
p | 719 | drivers/net/ni52.c | for(i=0;i<p->num_recv_buffs;i++) |
p | 721 | drivers/net/ni52.c | rbd[i].next = make16((rbd + (i+1) % p->num_recv_buffs)); |
p | 727 | drivers/net/ni52.c | p->rfd_top = p->rfd_first; |
p | 728 | drivers/net/ni52.c | p->rfd_last = p->rfd_first + p->num_recv_buffs - 1; |
p | 730 | drivers/net/ni52.c | p->scb->rfa_offset = make16(p->rfd_first); |
p | 731 | drivers/net/ni52.c | p->rfd_first->rbd_offset = make16(rbd); |
p | 745 | drivers/net/ni52.c | struct priv *p; |
p | 751 | drivers/net/ni52.c | p = (struct priv *) dev->priv; |
p | 755 | drivers/net/ni52.c | while((stat=p->scb->status & STAT_MASK)) |
p | 757 | drivers/net/ni52.c | p->scb->cmd = stat; |
p | 770 | 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 | 776 | drivers/net/ni52.c | if(p->scb->status & RU_SUSPEND) /* special case: RU_SUSPEND */ |
p | 779 | drivers/net/ni52.c | p->scb->cmd = RUC_RESUME; |
p | 784 | drivers/net/ni52.c | printk("%s: Receiver-Unit went 'NOT READY': %04x/%04x.\n",dev->name,(int) stat,(int) p->scb->status); |
p | 789 | drivers/net/ni52.c | if(p->scb->cmd) /* timed out? */ |
p | 806 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 808 | drivers/net/ni52.c | for(;(status = p->rfd_top->status) & STAT_COMPL;) |
p | 810 | drivers/net/ni52.c | rbd = (struct rbd_struct *) make32(p->rfd_top->rbd_offset); |
p | 823 | drivers/net/ni52.c | memcpy(skb_put(skb,totlen),(char *) p->base+(unsigned long) rbd->buffer, totlen); |
p | 826 | drivers/net/ni52.c | p->stats.rx_packets++; |
p | 829 | drivers/net/ni52.c | p->stats.rx_dropped++; |
p | 834 | drivers/net/ni52.c | p->stats.rx_dropped++; |
p | 840 | drivers/net/ni52.c | p->stats.rx_errors++; |
p | 842 | drivers/net/ni52.c | p->rfd_top->status = 0; |
p | 843 | drivers/net/ni52.c | p->rfd_top->last = RFD_SUSP; |
p | 844 | drivers/net/ni52.c | p->rfd_last->last = 0; /* delete RU_SUSP */ |
p | 845 | drivers/net/ni52.c | p->rfd_last = p->rfd_top; |
p | 846 | drivers/net/ni52.c | p->rfd_top = (struct rfd_struct *) make32(p->rfd_top->next); /* step to next RFD */ |
p | 856 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 858 | drivers/net/ni52.c | p->stats.rx_errors++; |
p | 861 | drivers/net/ni52.c | p->scb->cmd = RUC_ABORT; /* usually the RU is in the 'no resource'-state .. abort it now. */ |
p | 865 | drivers/net/ni52.c | alloc_rfa(dev,(char *)p->rfd_first); |
p | 868 | drivers/net/ni52.c | printk("%s: Receive-Unit restarted. Status: %04x\n",dev->name,p->scb->status); |
p | 879 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 881 | drivers/net/ni52.c | status = p->xmit_cmds[p->xmit_last]->cmd_status; |
p | 887 | drivers/net/ni52.c | p->stats.tx_packets++; |
p | 888 | drivers/net/ni52.c | p->stats.collisions += (status & TCMD_MAXCOLLMASK); |
p | 892 | drivers/net/ni52.c | p->stats.tx_errors++; |
p | 895 | drivers/net/ni52.c | p->stats.collisions++; |
p | 898 | drivers/net/ni52.c | p->stats.tx_carrier_errors++; |
p | 904 | drivers/net/ni52.c | p->stats.tx_fifo_errors++; |
p | 909 | drivers/net/ni52.c | p->stats.collisions += 16; |
p | 914 | drivers/net/ni52.c | if( (++p->xmit_last) == NUM_XMIT_BUFFS) |
p | 915 | drivers/net/ni52.c | p->xmit_last = 0; |
p | 928 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 930 | drivers/net/ni52.c | p->scb->rfa_offset = make16(p->rfd_first); |
p | 931 | drivers/net/ni52.c | p->scb->cmd = RUC_START; |
p | 946 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 954 | drivers/net/ni52.c | if(p->scb->status & CU_ACTIVE) /* COMMAND-UNIT active? */ |
p | 959 | 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 | 961 | drivers/net/ni52.c | p->scb->cmd = CUC_ABORT; |
p | 964 | drivers/net/ni52.c | p->scb->cbl_offset = make16(p->nop_cmds[p->nop_point]); |
p | 965 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
p | 974 | drivers/net/ni52.c | printk("%s: xmitter timed out, try to restart! stat: %04x\n",dev->name,p->scb->status); |
p | 975 | 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 | 1002 | drivers/net/ni52.c | memcpy((char *)p->xmit_cbuffs[p->xmit_count],(char *)(skb->data),skb->len); |
p | 1007 | drivers/net/ni52.c | p->xmit_buffs[0]->size = TBD_LAST | len; |
p | 1010 | drivers/net/ni52.c | p->scb->cbl_offset = make16(p->xmit_cmds[0]); |
p | 1011 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
p | 1012 | drivers/net/ni52.c | p->xmit_cmds[0]->cmd_status = 0; |
p | 1019 | drivers/net/ni52.c | if( (p->scb->status & CU_ACTIVE)) /* test it, because CU sometimes doesn't start immediately */ |
p | 1021 | drivers/net/ni52.c | if(p->xmit_cmds[0]->cmd_status) |
p | 1027 | drivers/net/ni52.c | next_nop = (p->nop_point + 1) & 0x1; |
p | 1028 | drivers/net/ni52.c | p->xmit_buffs[0]->size = TBD_LAST | len; |
p | 1030 | drivers/net/ni52.c | p->xmit_cmds[0]->cmd_link = p->nop_cmds[next_nop]->cmd_link |
p | 1031 | drivers/net/ni52.c | = make16((p->nop_cmds[next_nop])); |
p | 1032 | drivers/net/ni52.c | p->xmit_cmds[0]->cmd_status = p->nop_cmds[next_nop]->cmd_status = 0; |
p | 1034 | drivers/net/ni52.c | p->nop_cmds[p->nop_point]->cmd_link = make16((p->xmit_cmds[0])); |
p | 1036 | drivers/net/ni52.c | p->nop_point = next_nop; |
p | 1040 | drivers/net/ni52.c | p->xmit_buffs[p->xmit_count]->size = TBD_LAST | len; |
p | 1041 | drivers/net/ni52.c | if( (next_nop = p->xmit_count + 1) == NUM_XMIT_BUFFS ) |
p | 1044 | drivers/net/ni52.c | p->xmit_cmds[p->xmit_count]->cmd_status = 0; |
p | 1045 | drivers/net/ni52.c | p->xmit_cmds[p->xmit_count]->cmd_link = p->nop_cmds[next_nop]->cmd_link |
p | 1046 | drivers/net/ni52.c | = make16((p->nop_cmds[next_nop])); |
p | 1047 | drivers/net/ni52.c | p->nop_cmds[next_nop]->cmd_status = 0; |
p | 1049 | drivers/net/ni52.c | p->nop_cmds[p->xmit_count]->cmd_link = make16((p->xmit_cmds[p->xmit_count])); |
p | 1051 | drivers/net/ni52.c | p->xmit_count = next_nop; |
p | 1054 | drivers/net/ni52.c | if(p->xmit_count != p->xmit_last) |
p | 1069 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 1072 | drivers/net/ni52.c | crc = p->scb->crc_errs; /* get error-statistic from the ni82586 */ |
p | 1073 | drivers/net/ni52.c | p->scb->crc_errs -= crc; |
p | 1074 | drivers/net/ni52.c | aln = p->scb->aln_errs; |
p | 1075 | drivers/net/ni52.c | p->scb->aln_errs -= aln; |
p | 1076 | drivers/net/ni52.c | rsc = p->scb->rsc_errs; |
p | 1077 | drivers/net/ni52.c | p->scb->rsc_errs -= rsc; |
p | 1078 | drivers/net/ni52.c | ovrn = p->scb->ovrn_errs; |
p | 1079 | drivers/net/ni52.c | p->scb->ovrn_errs -= ovrn; |
p | 1081 | drivers/net/ni52.c | p->stats.rx_crc_errors += crc; |
p | 1082 | drivers/net/ni52.c | p->stats.rx_fifo_errors += ovrn; |
p | 1083 | drivers/net/ni52.c | p->stats.rx_frame_errors += aln; |
p | 1084 | drivers/net/ni52.c | p->stats.rx_dropped += rsc; |
p | 1086 | drivers/net/ni52.c | return &p->stats; |
p | 210 | drivers/net/ni65.c | struct priv *p; |
p | 248 | drivers/net/ni65.c | p = dev->priv = (void *) kmalloc(sizeof(struct priv),GFP_KERNEL); |
p | 249 | drivers/net/ni65.c | if (p == NULL) |
p | 266 | drivers/net/ni65.c | if( (p->memptr = kmalloc(MEMSIZE,GFP_KERNEL)) == NULL) { |
p | 270 | drivers/net/ni65.c | if( (unsigned long) (p->memptr + MEMSIZE) & 0xff000000) { |
p | 274 | drivers/net/ni65.c | p->tmdhead = (struct tmd *) ((( (unsigned long)p->memptr ) + 8) & 0xfffffff8); |
p | 275 | drivers/net/ni65.c | p->rmdhead = (struct rmd *) (p->tmdhead + TMDNUM); |
p | 280 | drivers/net/ni65.c | if( (p->tmdbufs[i] = kmalloc(T_BUF_SIZE,GFP_ATOMIC)) == NULL) { |
p | 284 | drivers/net/ni65.c | if( (unsigned long) (p->tmdbufs[i]+T_BUF_SIZE) & 0xff000000) { |
p | 293 | drivers/net/ni65.c | if( (p->recv_skb[i] = dev_alloc_skb(R_BUF_SIZE)) == NULL) { |
p | 297 | drivers/net/ni65.c | if( (unsigned long) (p->recv_skb[i]->data + R_BUF_SIZE) & 0xff000000) { |
p | 315 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
p | 317 | drivers/net/ni65.c | p->lock = 0; |
p | 318 | drivers/net/ni65.c | p->xmit_queued = 0; |
p | 336 | drivers/net/ni65.c | memset(p->memptr,0,MEMSIZE); |
p | 338 | drivers/net/ni65.c | p->tmdnum = 0; p->tmdlast = 0; |
p | 341 | drivers/net/ni65.c | tmdp = p->tmdhead + i; |
p | 343 | drivers/net/ni65.c | tmdp->u.buffer = (unsigned long) p->tmdbufs[i]; |
p | 348 | drivers/net/ni65.c | p->rmdnum = 0; |
p | 351 | drivers/net/ni65.c | rmdp = p->rmdhead + i; |
p | 352 | drivers/net/ni65.c | rmdp->u.buffer = (unsigned long) p->recv_skb[i]->data; |
p | 360 | drivers/net/ni65.c | p->ib.eaddr[i] = dev->dev_addr[i]; |
p | 362 | drivers/net/ni65.c | p->ib.mode = 0; |
p | 364 | drivers/net/ni65.c | p->ib.filter[i] = 0; |
p | 365 | drivers/net/ni65.c | p->ib.trplow = (unsigned short) (( (unsigned long) p->tmdhead ) & 0xffff); |
p | 366 | drivers/net/ni65.c | p->ib.trphigh = (unsigned short) ((( (unsigned long) p->tmdhead )>>16) & 0x00ff) | TMDNUMMASK; |
p | 367 | drivers/net/ni65.c | p->ib.rrplow = (unsigned short) (( (unsigned long) p->rmdhead ) & 0xffff); |
p | 368 | drivers/net/ni65.c | p->ib.rrphigh = (unsigned short) ((( (unsigned long) p->rmdhead )>>16) & 0x00ff) | RMDNUMMASK; |
p | 371 | drivers/net/ni65.c | writereg((unsigned short) (((unsigned long) &(p->ib)) & 0xffff),CSR1); |
p | 372 | drivers/net/ni65.c | writereg((unsigned short) (((unsigned long) &(p->ib))>>16),CSR2); |
p | 420 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
p | 423 | drivers/net/ni65.c | p->stats.tx_errors++; |
p | 425 | drivers/net/ni65.c | p->stats.rx_errors++; |
p | 452 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
p | 458 | drivers/net/ni65.c | while(p->xmit_queued) |
p | 460 | drivers/net/ni65.c | tmdp = p->tmdhead + p->tmdlast; |
p | 465 | drivers/net/ni65.c | skb = (struct sk_buff *) p->tmdbufs[p->tmdlast]; |
p | 477 | drivers/net/ni65.c | p->stats.tx_aborted_errors++; |
p | 479 | drivers/net/ni65.c | p->stats.tx_carrier_errors++; |
p | 480 | drivers/net/ni65.c | p->stats.tx_errors++; |
p | 484 | drivers/net/ni65.c | p->stats.tx_packets++; |
p | 486 | drivers/net/ni65.c | p->tmdlast = (p->tmdlast + 1) & (TMDNUM-1); |
p | 487 | drivers/net/ni65.c | if(p->tmdlast == p->tmdnum) |
p | 488 | drivers/net/ni65.c | p->xmit_queued = 0; |
p | 504 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
p | 506 | drivers/net/ni65.c | rmdp = p->rmdhead + p->rmdnum; |
p | 513 | drivers/net/ni65.c | p->stats.rx_errors++; |
p | 514 | drivers/net/ni65.c | p->stats.rx_length_errors++; |
p | 522 | drivers/net/ni65.c | p->stats.rx_errors++; |
p | 523 | drivers/net/ni65.c | if(rmdstat & RCV_FRAM) p->stats.rx_frame_errors++; |
p | 524 | drivers/net/ni65.c | if(rmdstat & RCV_OFLO) p->stats.rx_over_errors++; |
p | 525 | drivers/net/ni65.c | if(rmdstat & RCV_CRC) p->stats.rx_crc_errors++; |
p | 536 | drivers/net/ni65.c | memcpy(skb_put(skb,len),p->recv_skb[p->rmdnum]->data,len); |
p | 540 | drivers/net/ni65.c | skb1 = p->recv_skb[p->rmdnum]; |
p | 541 | drivers/net/ni65.c | p->recv_skb[p->rmdnum] = skb; |
p | 547 | drivers/net/ni65.c | p->stats.rx_packets++; |
p | 555 | drivers/net/ni65.c | p->stats.rx_dropped++; |
p | 558 | drivers/net/ni65.c | p->rmdnum++; p->rmdnum &= RMDNUM-1; |
p | 559 | drivers/net/ni65.c | rmdp = p->rmdhead + p->rmdnum; |
p | 569 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
p | 598 | drivers/net/ni65.c | if(set_bit(0,(void*) &p->lock) != 0) |
p | 607 | drivers/net/ni65.c | tmdp = p->tmdhead + p->tmdnum; |
p | 611 | drivers/net/ni65.c | p->tmdbufs[p->tmdnum] = skb; |
p | 620 | drivers/net/ni65.c | p->xmit_queued = 1; |
p | 622 | drivers/net/ni65.c | p->tmdnum++; p->tmdnum &= TMDNUM-1; |
p | 624 | drivers/net/ni65.c | if( !((p->tmdhead + p->tmdnum)->u.s.status & XMIT_OWN) ) |
p | 626 | drivers/net/ni65.c | p->lock = 0; |
p | 253 | drivers/net/ppp.c | #define bset(p,b) ((p)[(b) >> 5] |= (1 << ((b) & 0x1f))) |
p | 372 | drivers/net/ppp.c | extern inline u_char * store_long (register u_char *p, register int value) { |
p | 373 | drivers/net/ppp.c | *p++ = (u_char) (value >> 24); |
p | 374 | drivers/net/ppp.c | *p++ = (u_char) (value >> 16); |
p | 375 | drivers/net/ppp.c | *p++ = (u_char) (value >> 8); |
p | 376 | drivers/net/ppp.c | *p++ = (u_char) value; |
p | 377 | drivers/net/ppp.c | return p; |
p | 1548 | drivers/net/ppp.c | register u_char *p; |
p | 1555 | drivers/net/ppp.c | p = &data [48]; |
p | 1556 | drivers/net/ppp.c | p = store_long (p, ++ppp->stats.ppp_ilqrs); |
p | 1557 | drivers/net/ppp.c | p = store_long (p, ppp->stats.ppp_ipackets); |
p | 1558 | drivers/net/ppp.c | p = store_long (p, ppp->stats.ppp_discards); |
p | 1559 | drivers/net/ppp.c | p = store_long (p, ppp->stats.ppp_ierrors); |
p | 1560 | drivers/net/ppp.c | p = store_long (p, ppp->stats.ppp_ioctects + len); |
p | 2125 | drivers/net/ppp.c | u_char *p; |
p | 2134 | drivers/net/ppp.c | p = (u_char *) &data [40]; /* Point to last two items. */ |
p | 2135 | drivers/net/ppp.c | p = store_long (p, ppp->stats.ppp_opackets + 1); |
p | 2136 | drivers/net/ppp.c | p = store_long (p, ppp->stats.ppp_ooctects + len); |
p | 2792 | drivers/net/ppp.c | memcpy (&temp.p, &ppp->stats, sizeof (struct pppstat)); |
p | 549 | drivers/net/seeq8005.c | char * p = buf; |
p | 552 | drivers/net/seeq8005.c | printk("%02x ",*(p++)&0xff); |
p | 640 | drivers/net/sk_g16.c | struct priv *p; /* SK_G16 private structure */ |
p | 788 | drivers/net/sk_g16.c | p = dev->priv = (void *) kmalloc(sizeof(struct priv), GFP_KERNEL); |
p | 789 | drivers/net/sk_g16.c | if (p == NULL) |
p | 810 | drivers/net/sk_g16.c | p->ram = (struct SK_ram *) rom_addr; /* Set dual ported RAM addr */ |
p | 811 | drivers/net/sk_g16.c | p->tmdhead = &(p->ram)->tmde[0]; /* Set TMD head */ |
p | 812 | drivers/net/sk_g16.c | p->rmdhead = &(p->ram)->rmde[0]; /* Set RMD head */ |
p | 818 | drivers/net/sk_g16.c | p->tmdbufs[i] = &(p->ram)->tmdbuf[i]; |
p | 823 | drivers/net/sk_g16.c | p->rmdbufs[i] = &(p->ram)->rmdbuf[i]; |
p | 869 | drivers/net/sk_g16.c | struct priv *p = (struct priv *)dev->priv; |
p | 958 | drivers/net/sk_g16.c | (int) dev->irq, (unsigned int) p->ram); |
p | 1029 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1040 | drivers/net/sk_g16.c | p->tmdnum = 0; /* First descriptor for transmitting */ |
p | 1041 | drivers/net/sk_g16.c | p->tmdlast = 0; /* First descriptor for reading stats */ |
p | 1045 | drivers/net/sk_g16.c | tmdp = p->tmdhead + i; |
p | 1047 | drivers/net/sk_g16.c | tmdp->u.buffer = (unsigned long) p->tmdbufs[i]; /* assign buffer */ |
p | 1056 | drivers/net/sk_g16.c | p->rmdnum = 0; /* First RMD which will be used */ |
p | 1060 | drivers/net/sk_g16.c | rmdp = p->rmdhead + i; |
p | 1063 | drivers/net/sk_g16.c | rmdp->u.buffer = (unsigned long) p->rmdbufs[i]; /* assign buffer */ |
p | 1080 | drivers/net/sk_g16.c | (p->ram)->ib.mode = mode; /* Set operation mode */ |
p | 1084 | drivers/net/sk_g16.c | (p->ram)->ib.paddr[i] = dev->dev_addr[i]; |
p | 1089 | drivers/net/sk_g16.c | (p->ram)->ib.laddr[i] = 0; /* We do not use logical addressing */ |
p | 1094 | drivers/net/sk_g16.c | (p->ram)->ib.rdrp = (int) p->rmdhead | RMDNUMMASK; |
p | 1095 | drivers/net/sk_g16.c | (p->ram)->ib.tdrp = (int) p->tmdhead | TMDNUMMASK; |
p | 1148 | drivers/net/sk_g16.c | (unsigned int) &(p->ram)->ib); |
p | 1194 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1251 | drivers/net/sk_g16.c | tmdp = p->tmdhead + p->tmdnum; /* Which descriptor for transmitting */ |
p | 1276 | drivers/net/sk_g16.c | p->tmdnum++; |
p | 1277 | drivers/net/sk_g16.c | p->tmdnum &= TMDNUM-1; |
p | 1280 | drivers/net/sk_g16.c | if (! ((p->tmdhead + p->tmdnum)->u.s.status & TX_OWN) ) |
p | 1315 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1349 | drivers/net/sk_g16.c | p->stats.rx_dropped++; |
p | 1390 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1396 | drivers/net/sk_g16.c | tmdp = p->tmdhead + p->tmdlast; /* Which buffer we sent at last ? */ |
p | 1399 | drivers/net/sk_g16.c | p->tmdlast++; |
p | 1400 | drivers/net/sk_g16.c | p->tmdlast &= TMDNUM-1; |
p | 1419 | drivers/net/sk_g16.c | p->stats.tx_aborted_errors++; |
p | 1421 | drivers/net/sk_g16.c | p->stats.tx_window_errors++; |
p | 1423 | drivers/net/sk_g16.c | p->stats.tx_carrier_errors++; |
p | 1426 | drivers/net/sk_g16.c | p->stats.tx_fifo_errors++; |
p | 1436 | drivers/net/sk_g16.c | p->stats.tx_errors++; |
p | 1454 | drivers/net/sk_g16.c | p->stats.collisions++; |
p | 1458 | drivers/net/sk_g16.c | p->stats.tx_packets++; |
p | 1510 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1515 | drivers/net/sk_g16.c | rmdp = p->rmdhead + p->rmdnum; |
p | 1537 | drivers/net/sk_g16.c | p->stats.rx_errors++; /* bad packet received */ |
p | 1538 | drivers/net/sk_g16.c | p->stats.rx_length_errors++; /* packet to long */ |
p | 1558 | drivers/net/sk_g16.c | p->stats.rx_errors++; |
p | 1560 | drivers/net/sk_g16.c | if (rmdstat & RX_FRAM) p->stats.rx_frame_errors++; |
p | 1561 | drivers/net/sk_g16.c | if (rmdstat & RX_CRC) p->stats.rx_crc_errors++; |
p | 1585 | drivers/net/sk_g16.c | p->stats.rx_dropped++; |
p | 1622 | drivers/net/sk_g16.c | p->stats.rx_packets++; |
p | 1625 | drivers/net/sk_g16.c | p->rmdnum++; |
p | 1626 | drivers/net/sk_g16.c | p->rmdnum %= RMDNUM; |
p | 1628 | drivers/net/sk_g16.c | rmdp = p->rmdhead + p->rmdnum; |
p | 1695 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1700 | drivers/net/sk_g16.c | return &p->stats; /* Return Device status */ |
p | 2078 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 2083 | drivers/net/sk_g16.c | (unsigned int) p->ram, |
p | 2084 | drivers/net/sk_g16.c | (unsigned int) p->tmdhead, |
p | 2085 | drivers/net/sk_g16.c | (unsigned int) p->rmdhead, |
p | 2086 | drivers/net/sk_g16.c | (unsigned int) &(p->ram)->ib); |
p | 2096 | drivers/net/sk_g16.c | printk("tmdbufs%d: %#08x ", (i+1), (int) p->tmdbufs[i]); |
p | 2106 | drivers/net/sk_g16.c | printk("rmdbufs%d: %#08x ", (i+1), (int) p->rmdbufs[i]); |
p | 104 | drivers/net/slip.c | static int slip_esc(unsigned char *p, unsigned char *d, int len); |
p | 107 | drivers/net/slip.c | static int slip_esc6(unsigned char *p, unsigned char *d, int len); |
p | 404 | drivers/net/slip.c | unsigned char *p; |
p | 424 | drivers/net/slip.c | p = icp; |
p | 427 | drivers/net/slip.c | len = slhc_compress(sl->slcomp, p, len, sl->cbuff, &p, 1); |
p | 432 | drivers/net/slip.c | count = slip_esc6(p, (unsigned char *) sl->xbuff, len); |
p | 435 | drivers/net/slip.c | count = slip_esc(p, (unsigned char *) sl->xbuff, len); |
p | 2204 | drivers/net/wavelan.c | wavelan_cu_show_one(device *dev, net_local *lp, int i, unsigned short p) |
p | 2211 | drivers/net/wavelan.c | printk("%d: 0x%x:", i, p); |
p | 2213 | drivers/net/wavelan.c | obram_read(ioaddr, p, (unsigned char *)&actx, sizeof(actx)); |
p | 2232 | drivers/net/wavelan.c | wavelan_psa_show(psa_t *p) |
p | 2236 | drivers/net/wavelan.c | printk("psa_io_base_addr_1: 0x%02x,", p->psa_io_base_addr_1); |
p | 2237 | drivers/net/wavelan.c | printk("psa_io_base_addr_2: 0x%02x,", p->psa_io_base_addr_2); |
p | 2238 | drivers/net/wavelan.c | printk("psa_io_base_addr_3: 0x%02x,", p->psa_io_base_addr_3); |
p | 2239 | drivers/net/wavelan.c | printk("psa_io_base_addr_4: 0x%02x,", p->psa_io_base_addr_4); |
p | 2240 | drivers/net/wavelan.c | printk("psa_rem_boot_addr_1: 0x%02x,", p->psa_rem_boot_addr_1); |
p | 2241 | drivers/net/wavelan.c | printk("psa_rem_boot_addr_2: 0x%02x,", p->psa_rem_boot_addr_2); |
p | 2242 | drivers/net/wavelan.c | printk("psa_rem_boot_addr_3: 0x%02x,", p->psa_rem_boot_addr_3); |
p | 2243 | drivers/net/wavelan.c | printk("psa_holi_params: 0x%02x,", p->psa_holi_params); |
p | 2244 | drivers/net/wavelan.c | printk("psa_int_req_no: %d,", p->psa_int_req_no); |
p | 2248 | drivers/net/wavelan.c | p->psa_univ_mac_addr[0], |
p | 2249 | drivers/net/wavelan.c | p->psa_univ_mac_addr[1], |
p | 2250 | drivers/net/wavelan.c | p->psa_univ_mac_addr[2], |
p | 2251 | drivers/net/wavelan.c | p->psa_univ_mac_addr[3], |
p | 2252 | drivers/net/wavelan.c | p->psa_univ_mac_addr[4], |
p | 2253 | drivers/net/wavelan.c | p->psa_univ_mac_addr[5] |
p | 2258 | drivers/net/wavelan.c | p->psa_local_mac_addr[0], |
p | 2259 | drivers/net/wavelan.c | p->psa_local_mac_addr[1], |
p | 2260 | drivers/net/wavelan.c | p->psa_local_mac_addr[2], |
p | 2261 | drivers/net/wavelan.c | p->psa_local_mac_addr[3], |
p | 2262 | drivers/net/wavelan.c | p->psa_local_mac_addr[4], |
p | 2263 | drivers/net/wavelan.c | p->psa_local_mac_addr[5] |
p | 2265 | drivers/net/wavelan.c | printk("psa_univ_local_sel: %d,", p->psa_univ_local_sel); |
p | 2266 | drivers/net/wavelan.c | printk("psa_comp_number: %d,", p->psa_comp_number); |
p | 2267 | drivers/net/wavelan.c | printk("psa_thr_pre_set: 0x%02x,", p->psa_thr_pre_set); |
p | 2268 | drivers/net/wavelan.c | printk("psa_feature_select/decay_prm: 0x%02x,", p->psa_feature_select); |
p | 2269 | drivers/net/wavelan.c | printk("psa_subband/decay_update_prm: %d,", p->psa_subband); |
p | 2270 | drivers/net/wavelan.c | printk("psa_quality_thr: 0x%02x,", p->psa_quality_thr); |
p | 2271 | drivers/net/wavelan.c | printk("psa_mod_delay: 0x%02x,", p->psa_mod_delay); |
p | 2272 | drivers/net/wavelan.c | printk("psa_nwid: 0x%02x%02x,", p->psa_nwid[0], p->psa_nwid[1]); |
p | 2273 | drivers/net/wavelan.c | printk("psa_undefined: %d,", p->psa_undefined); |
p | 2274 | drivers/net/wavelan.c | printk("psa_encryption_select: %d,", p->psa_encryption_select); |
p | 2278 | drivers/net/wavelan.c | p->psa_encryption_key[0], |
p | 2279 | drivers/net/wavelan.c | p->psa_encryption_key[1], |
p | 2280 | drivers/net/wavelan.c | p->psa_encryption_key[2], |
p | 2281 | drivers/net/wavelan.c | p->psa_encryption_key[3], |
p | 2282 | drivers/net/wavelan.c | p->psa_encryption_key[4], |
p | 2283 | drivers/net/wavelan.c | p->psa_encryption_key[5], |
p | 2284 | drivers/net/wavelan.c | p->psa_encryption_key[6], |
p | 2285 | drivers/net/wavelan.c | p->psa_encryption_key[7] |
p | 2287 | drivers/net/wavelan.c | printk("psa_databus_width: %d,", p->psa_databus_width); |
p | 2288 | drivers/net/wavelan.c | printk("psa_call_code/auto_squelch: 0x%02x,", p->psa_call_code); |
p | 2289 | drivers/net/wavelan.c | printk("psa_no_of_retries: %d,", p->psa_no_of_retries); |
p | 2290 | drivers/net/wavelan.c | printk("psa_acr: %d,", p->psa_acr); |
p | 2291 | drivers/net/wavelan.c | printk("psa_dump_count: %d,", p->psa_dump_count); |
p | 2292 | drivers/net/wavelan.c | printk("psa_nwid_prefix: 0x%02x,", p->psa_nwid_prefix); |
p | 2293 | drivers/net/wavelan.c | printk("psa_conf_status: %d,", p->psa_conf_status); |
p | 2294 | drivers/net/wavelan.c | printk("psa_crc: 0x%02x%02x,", p->psa_crc[0], p->psa_crc[1]); |
p | 2295 | drivers/net/wavelan.c | printk("psa_crc_status: 0x%02x,", p->psa_crc_status); |
p | 2434 | drivers/net/wavelan.c | unsigned short p; |
p | 2441 | drivers/net/wavelan.c | for (i = 0, p = lp->tx_first_in_use; i < NTXBLOCKS; i++) |
p | 2443 | drivers/net/wavelan.c | wavelan_cu_show_one(dev, lp, i, p); |
p | 2445 | drivers/net/wavelan.c | p += TXBLOCKZ; |
p | 2446 | drivers/net/wavelan.c | if (p >= OFFSET_CU + NTXBLOCKS * TXBLOCKZ) |
p | 2447 | 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 | 1551 | drivers/scsi/AM53C974.c | unsigned char *p; |
p | 1725 | drivers/scsi/AM53C974.c | p = extended_msg+2; |
p | 1733 | drivers/scsi/AM53C974.c | *p = AM53C974_read_8(FFREG); |
p | 1734 | drivers/scsi/AM53C974.c | p++; len--; } |
p | 1592 | drivers/scsi/NCR5380.c | register unsigned char p = *phase, tmp; |
p | 1598 | drivers/scsi/NCR5380.c | if (!(p & SR_IO)) |
p | 1610 | drivers/scsi/NCR5380.c | NCR5380_write(TARGET_COMMAND_REG, PHASE_SR_TO_TCR(p)); |
p | 1624 | drivers/scsi/NCR5380.c | if ((tmp & PHASE_MASK) != p) { |
p | 1633 | drivers/scsi/NCR5380.c | if (!(p & SR_IO)) |
p | 1647 | drivers/scsi/NCR5380.c | if (!(p & SR_IO)) { |
p | 1648 | drivers/scsi/NCR5380.c | if (!((p & SR_MSG) && c > 1)) { |
p | 1689 | drivers/scsi/NCR5380.c | if (!(p == PHASE_MSGIN && c == 1)) { |
p | 1690 | drivers/scsi/NCR5380.c | if (p == PHASE_MSGOUT && c > 1) |
p | 1709 | drivers/scsi/NCR5380.c | if (!c || (*phase == p)) |
p | 1807 | drivers/scsi/NCR5380.c | register unsigned char p = *phase; |
p | 1821 | drivers/scsi/NCR5380.c | if ((tmp = (NCR5380_read(STATUS_REG) & PHASE_MASK)) != p) { |
p | 1827 | drivers/scsi/NCR5380.c | if (p & SR_IO) { |
p | 1833 | drivers/scsi/NCR5380.c | instance->host_no, instance->dma_channel, (p & SR_IO) ? "reading" : |
p | 1834 | drivers/scsi/NCR5380.c | "writing", c, (p & SR_IO) ? "to" : "from", (unsigned) d); |
p | 1836 | drivers/scsi/NCR5380.c | hostdata->dma_len = (p & SR_IO) ? |
p | 1841 | drivers/scsi/NCR5380.c | NCR5380_write(TARGET_COMMAND_REG, PHASE_SR_TO_TCR(p)); |
p | 1879 | drivers/scsi/NCR5380.c | if (p & SR_IO) { |
p | 1940 | drivers/scsi/NCR5380.c | if (p & SR_IO) { |
p | 1974 | drivers/scsi/NCR5380.c | if (*phase == p && (p & SR_IO) && residue == 0) { |
p | 2004 | drivers/scsi/NCR5380.c | if (p & SR_IO) { |
p | 2103 | drivers/scsi/NCR5380.c | if ((!(p & SR_IO)) && (hostdata->flags & FLAG_NCR53C400)) { |
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 | 401 | drivers/scsi/aic7xxx.c | #define PAUSE_SEQUENCER(p) \ |
p | 402 | drivers/scsi/aic7xxx.c | outb(p->pause, HCNTRL + p->base); \ |
p | 403 | drivers/scsi/aic7xxx.c | while ((inb(HCNTRL + p->base) & PAUSE) == 0) \ |
p | 410 | drivers/scsi/aic7xxx.c | #define UNPAUSE_SEQUENCER(p) \ |
p | 411 | drivers/scsi/aic7xxx.c | outb(p->unpause, HCNTRL + p->base) |
p | 416 | drivers/scsi/aic7xxx.c | #define RESTART_SEQUENCER(p) \ |
p | 418 | drivers/scsi/aic7xxx.c | outb(SEQRESET | FASTMODE, SEQCTL + p->base); \ |
p | 419 | drivers/scsi/aic7xxx.c | } while (inb(SEQADDR0 + p->base) != 0 && \ |
p | 420 | drivers/scsi/aic7xxx.c | inb(SEQADDR1 + p->base) != 0); \ |
p | 421 | drivers/scsi/aic7xxx.c | UNPAUSE_SEQUENCER(p); |
p | 681 | drivers/scsi/aic7xxx.c | debug_config(struct aic7xxx_host_config *p) |
p | 691 | drivers/scsi/aic7xxx.c | host_conf = inb(HOSTCONF + p->base); |
p | 692 | drivers/scsi/aic7xxx.c | scsi_conf = inb(SCSICONF + p->base); |
p | 701 | drivers/scsi/aic7xxx.c | if (p->chip_type == AIC_777x) |
p | 710 | drivers/scsi/aic7xxx.c | brelease = p->busrtime; |
p | 716 | drivers/scsi/aic7xxx.c | switch (p->type) |
p | 720 | drivers/scsi/aic7xxx.c | printk("%s%s AT EISA SLOT %d:\n", board_names[p->type], BUSW[p->bus_type], |
p | 721 | drivers/scsi/aic7xxx.c | p->base >> 12); |
p | 725 | drivers/scsi/aic7xxx.c | printk("%s%s AT VLB SLOT %d:\n", board_names[p->type], BUSW[p->bus_type], |
p | 726 | drivers/scsi/aic7xxx.c | p->base >> 12); |
p | 740 | drivers/scsi/aic7xxx.c | printk("%s%s (PCI-bus):\n", board_names[p->type], BUSW[p->bus_type]); |
p | 750 | drivers/scsi/aic7xxx.c | p->irq, |
p | 762 | drivers/scsi/aic7xxx.c | if ((p->chip_type == AIC_777x) && (p->parity == AIC_UNKNOWN)) |
p | 767 | drivers/scsi/aic7xxx.c | p->parity = (scsi_conf & 0x20) ? AIC_ENABLED : AIC_DISABLED; |
p | 769 | drivers/scsi/aic7xxx.c | if (p->parity != AIC_UNKNOWN) |
p | 772 | drivers/scsi/aic7xxx.c | (p->parity == AIC_ENABLED) ? "en" : "dis"); |
p | 775 | drivers/scsi/aic7xxx.c | if ((p->type == AIC_7770) || (p->type == AIC_7771)) |
p | 777 | drivers/scsi/aic7xxx.c | p->low_term = (scsi_conf & 0x80) ? AIC_ENABLED : AIC_DISABLED; |
p | 779 | drivers/scsi/aic7xxx.c | if (p->low_term != AIC_UNKNOWN) |
p | 782 | drivers/scsi/aic7xxx.c | (p->low_term == AIC_ENABLED) ? "en" : "dis"); |
p | 784 | drivers/scsi/aic7xxx.c | if ((p->bus_type == AIC_WIDE) && (p->high_term != AIC_UNKNOWN)) |
p | 787 | drivers/scsi/aic7xxx.c | (p->high_term == AIC_ENABLED) ? "en" : "dis"); |
p | 842 | drivers/scsi/aic7xxx.c | char *p; |
p | 853 | drivers/scsi/aic7xxx.c | for (p = strtok(s, ","); p; p = strtok(NULL, ",")) |
p | 858 | drivers/scsi/aic7xxx.c | if (!strncmp(options[i].name, p, n)) |
p | 860 | drivers/scsi/aic7xxx.c | if (p[n] == ':') |
p | 862 | drivers/scsi/aic7xxx.c | *(options[i].flag) = simple_strtoul(p + n + 1, NULL, 0); |
p | 1065 | drivers/scsi/aic7xxx.c | aic7xxx_scsirate(struct aic7xxx_host *p, unsigned char *scsirate, |
p | 1079 | drivers/scsi/aic7xxx.c | if (p->ultra_enabled) |
p | 1129 | drivers/scsi/aic7xxx.c | aic7xxx_putscb(struct aic7xxx_host *p, struct aic7xxx_scb *scb) |
p | 1132 | drivers/scsi/aic7xxx.c | int base = p->base; |
p | 1146 | drivers/scsi/aic7xxx.c | if (p->type == AIC_284x) |
p | 1167 | drivers/scsi/aic7xxx.c | aic7xxx_getscb(struct aic7xxx_host *p, struct aic7xxx_scb *scb) |
p | 1169 | drivers/scsi/aic7xxx.c | int base = p->base; |
p | 1273 | drivers/scsi/aic7xxx.c | aic7xxx_done(struct aic7xxx_host *p, struct aic7xxx_scb *scb) |
p | 1294 | drivers/scsi/aic7xxx.c | scb->next = p->free_scb; |
p | 1295 | drivers/scsi/aic7xxx.c | p->free_scb = scb; |
p | 1360 | drivers/scsi/aic7xxx.c | aic7xxx_abort_waiting_scb(struct aic7xxx_host *p, struct aic7xxx_scb *scb, |
p | 1366 | drivers/scsi/aic7xxx.c | int base = p->base; |
p | 1417 | drivers/scsi/aic7xxx.c | aic7xxx_done(p, scb); |
p | 1435 | drivers/scsi/aic7xxx.c | aic7xxx_reset_device(struct aic7xxx_host *p, int target, char channel, |
p | 1438 | drivers/scsi/aic7xxx.c | int base = p->base; |
p | 1463 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[saved_queue[i]]); |
p | 1471 | drivers/scsi/aic7xxx.c | aic7xxx_done(p, scb); |
p | 1498 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[next]); |
p | 1504 | drivers/scsi/aic7xxx.c | next = aic7xxx_abort_waiting_scb(p, scb, prev, timedout_scb); |
p | 1522 | drivers/scsi/aic7xxx.c | for (i = 0; i < p->numscb; i++) |
p | 1524 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[i]); |
p | 1535 | drivers/scsi/aic7xxx.c | aic7xxx_done(p, scb); |
p | 1570 | drivers/scsi/aic7xxx.c | aic7xxx_reset_channel(struct aic7xxx_host *p, char channel, |
p | 1573 | drivers/scsi/aic7xxx.c | int base = p->base; |
p | 1587 | drivers/scsi/aic7xxx.c | found = aic7xxx_reset_device(p, ALL_TARGETS, channel, timedout_scb); |
p | 1591 | drivers/scsi/aic7xxx.c | p->needsdtr |= (p->needsdtr_copy & 0xFF00); |
p | 1592 | drivers/scsi/aic7xxx.c | p->sdtr_pending &= 0x00FF; |
p | 1599 | drivers/scsi/aic7xxx.c | if (p->bus_type == AIC_WIDE) |
p | 1601 | drivers/scsi/aic7xxx.c | p->needsdtr = p->needsdtr_copy; |
p | 1602 | drivers/scsi/aic7xxx.c | p->needwdtr = p->needwdtr_copy; |
p | 1603 | drivers/scsi/aic7xxx.c | p->sdtr_pending = 0x0; |
p | 1604 | drivers/scsi/aic7xxx.c | p->wdtr_pending = 0x0; |
p | 1612 | drivers/scsi/aic7xxx.c | p->needsdtr |= (p->needsdtr_copy & 0x00FF); |
p | 1613 | drivers/scsi/aic7xxx.c | p->sdtr_pending &= 0xFF00; |
p | 1654 | drivers/scsi/aic7xxx.c | UNPAUSE_SEQUENCER(p); |
p | 1666 | drivers/scsi/aic7xxx.c | RESTART_SEQUENCER(p); |
p | 1686 | drivers/scsi/aic7xxx.c | struct aic7xxx_host *p; |
p | 1700 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) aic7xxx_boards[irq]->hostdata; |
p | 1706 | drivers/scsi/aic7xxx.c | while ((p != NULL) && !(inb(INTSTAT + p->base) & INT_PEND)) |
p | 1708 | drivers/scsi/aic7xxx.c | if (p->next == NULL) |
p | 1710 | drivers/scsi/aic7xxx.c | p = NULL; |
p | 1714 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) p->next->hostdata; |
p | 1718 | drivers/scsi/aic7xxx.c | if (p == NULL) |
p | 1732 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) aic7xxx_boards[irq]->hostdata; |
p | 1739 | drivers/scsi/aic7xxx.c | p->isr_count++; |
p | 1741 | drivers/scsi/aic7xxx.c | if (!p->a_scanned && (p->isr_count == 1)) |
p | 1753 | drivers/scsi/aic7xxx.c | base = p->base; |
p | 1785 | drivers/scsi/aic7xxx.c | PAUSE_SEQUENCER(p); |
p | 1808 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[scb_index]); |
p | 1835 | drivers/scsi/aic7xxx.c | RESTART_SEQUENCER(p); |
p | 1860 | drivers/scsi/aic7xxx.c | aic7xxx_scsirate(p, &rate, transfer, MIN(offset, max_offset), |
p | 1882 | drivers/scsi/aic7xxx.c | if (p->sdtr_pending & target_mask) |
p | 1901 | drivers/scsi/aic7xxx.c | p->needsdtr &= ~target_mask; |
p | 1902 | drivers/scsi/aic7xxx.c | p->sdtr_pending &= ~target_mask; |
p | 1909 | drivers/scsi/aic7xxx.c | "needwdtr(0x%x).\n", scsi_id, channel, p->needwdtr); |
p | 1912 | drivers/scsi/aic7xxx.c | if (p->wdtr_pending & target_mask) |
p | 1964 | drivers/scsi/aic7xxx.c | p->needwdtr &= ~target_mask; |
p | 1965 | drivers/scsi/aic7xxx.c | p->wdtr_pending &= ~target_mask; |
p | 1982 | drivers/scsi/aic7xxx.c | if (p->wdtr_pending & target_mask) |
p | 1988 | drivers/scsi/aic7xxx.c | p->needwdtr &= ~target_mask; |
p | 1989 | drivers/scsi/aic7xxx.c | p->wdtr_pending &= ~target_mask; |
p | 1995 | drivers/scsi/aic7xxx.c | if (p->sdtr_pending & target_mask) |
p | 2001 | drivers/scsi/aic7xxx.c | p->needsdtr &= ~target_mask; |
p | 2002 | drivers/scsi/aic7xxx.c | p->sdtr_pending &= ~target_mask; |
p | 2018 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[scb_index]); |
p | 2029 | drivers/scsi/aic7xxx.c | aic7xxx_getscb(p, scb); |
p | 2078 | drivers/scsi/aic7xxx.c | aic7xxx_putscb(p, scb); |
p | 2127 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[scb_index]); |
p | 2170 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[scb_index]); |
p | 2189 | drivers/scsi/aic7xxx.c | aic7xxx_done(p, scb); |
p | 2195 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[scb_index]); |
p | 2228 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[scb_index]); |
p | 2241 | drivers/scsi/aic7xxx.c | p->needsdtr |= (p->needsdtr_copy & target_mask); |
p | 2242 | drivers/scsi/aic7xxx.c | p->needwdtr |= (p->needwdtr_copy & target_mask); |
p | 2243 | drivers/scsi/aic7xxx.c | p->sdtr_pending &= ~target_mask; |
p | 2244 | drivers/scsi/aic7xxx.c | p->wdtr_pending &= ~target_mask; |
p | 2248 | drivers/scsi/aic7xxx.c | found = aic7xxx_reset_device(p, (int) scsi_id, channel, SCB_LIST_NULL); |
p | 2267 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[scb_index]); |
p | 2346 | drivers/scsi/aic7xxx.c | UNPAUSE_SEQUENCER(p); |
p | 2360 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[scb_index]); |
p | 2370 | drivers/scsi/aic7xxx.c | UNPAUSE_SEQUENCER(p); |
p | 2432 | drivers/scsi/aic7xxx.c | RESTART_SEQUENCER(p); |
p | 2433 | drivers/scsi/aic7xxx.c | aic7xxx_done(p, scb); |
p | 2449 | drivers/scsi/aic7xxx.c | UNPAUSE_SEQUENCER(p); |
p | 2468 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[complete]); |
p | 2489 | drivers/scsi/aic7xxx.c | scb->state, (unsigned int) scb->cmd, (unsigned int) p->free_scb); |
p | 2502 | drivers/scsi/aic7xxx.c | aic7xxx_done(p, scb); |
p | 2504 | drivers/scsi/aic7xxx.c | if (scb != &p->scb_array[scb->position]) |
p | 2509 | drivers/scsi/aic7xxx.c | scb->state, (unsigned int) scb->cmd, (unsigned int) p->free_scb); |
p | 2524 | drivers/scsi/aic7xxx.c | sp = &p->stats[cmd->channel & 0x01][cmd->target & 0x0F][cmd->lun & 0x07]; |
p | 2661 | drivers/scsi/aic7xxx.c | #define CLOCK_PULSE(p) \ |
p | 2835 | drivers/scsi/aic7xxx.c | #define CLOCK_PULSE(p) \ |
p | 3096 | drivers/scsi/aic7xxx.c | struct aic7xxx_host *p; |
p | 3419 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) host->hostdata; |
p | 3426 | drivers/scsi/aic7xxx.c | p->scb_array[i].state = SCB_FREE; |
p | 3427 | drivers/scsi/aic7xxx.c | p->scb_array[i].next = NULL; |
p | 3428 | drivers/scsi/aic7xxx.c | p->scb_array[i].cmd = NULL; |
p | 3431 | drivers/scsi/aic7xxx.c | p->isr_count = 0; |
p | 3432 | drivers/scsi/aic7xxx.c | p->a_scanned = FALSE; |
p | 3433 | drivers/scsi/aic7xxx.c | p->b_scanned = FALSE; |
p | 3434 | drivers/scsi/aic7xxx.c | p->base = base; |
p | 3435 | drivers/scsi/aic7xxx.c | p->maxscb = config->maxscb; |
p | 3436 | drivers/scsi/aic7xxx.c | p->numscb = 0; |
p | 3437 | drivers/scsi/aic7xxx.c | p->extended = config->extended; |
p | 3438 | drivers/scsi/aic7xxx.c | p->type = config->type; |
p | 3439 | drivers/scsi/aic7xxx.c | p->chip_type = config->chip_type; |
p | 3440 | drivers/scsi/aic7xxx.c | p->ultra_enabled = config->ultra_enabled; |
p | 3441 | drivers/scsi/aic7xxx.c | p->chan_num = config->chan_num; |
p | 3442 | drivers/scsi/aic7xxx.c | p->bus_type = config->bus_type; |
p | 3443 | drivers/scsi/aic7xxx.c | p->have_seeprom = have_seeprom; |
p | 3444 | drivers/scsi/aic7xxx.c | p->seeprom = sc; |
p | 3445 | drivers/scsi/aic7xxx.c | p->free_scb = NULL; |
p | 3446 | drivers/scsi/aic7xxx.c | p->next = NULL; |
p | 3448 | drivers/scsi/aic7xxx.c | p->unpause = config->unpause; |
p | 3449 | drivers/scsi/aic7xxx.c | p->pause = config->pause; |
p | 3479 | drivers/scsi/aic7xxx.c | p->next = aic7xxx_boards[config->irq]; |
p | 3498 | drivers/scsi/aic7xxx.c | if (p->chip_type == AIC_777x) |
p | 3508 | drivers/scsi/aic7xxx.c | if (p->bus_type == AIC_TWIN) |
p | 3519 | drivers/scsi/aic7xxx.c | if (p->ultra_enabled) |
p | 3537 | drivers/scsi/aic7xxx.c | if (p->ultra_enabled) |
p | 3554 | drivers/scsi/aic7xxx.c | p->needsdtr_copy = 0x0; |
p | 3555 | drivers/scsi/aic7xxx.c | p->sdtr_pending = 0x0; |
p | 3556 | drivers/scsi/aic7xxx.c | p->needwdtr_copy = 0x0; |
p | 3557 | drivers/scsi/aic7xxx.c | p->wdtr_pending = 0x0; |
p | 3558 | drivers/scsi/aic7xxx.c | if (p->bus_type == AIC_SINGLE) |
p | 3572 | drivers/scsi/aic7xxx.c | p->discenable = 0x0; |
p | 3580 | drivers/scsi/aic7xxx.c | p->discenable = 0xFFFF; |
p | 3584 | drivers/scsi/aic7xxx.c | p->discenable = ~((inb(DISC_DSB + base + 1) << 8) | |
p | 3596 | drivers/scsi/aic7xxx.c | p->needsdtr_copy |= (0x01 << i); |
p | 3600 | drivers/scsi/aic7xxx.c | p->needwdtr_copy |= (0x01 << i); |
p | 3604 | drivers/scsi/aic7xxx.c | p->discenable |= (0x01 << i); |
p | 3612 | drivers/scsi/aic7xxx.c | p->needsdtr_copy |= (0x01 << i); |
p | 3613 | drivers/scsi/aic7xxx.c | p->needwdtr_copy |= (0x01 << i); |
p | 3620 | drivers/scsi/aic7xxx.c | p->needsdtr_copy |= (0x01 << i); |
p | 3628 | drivers/scsi/aic7xxx.c | p->needwdtr_copy |= (0x01 << i); |
p | 3641 | drivers/scsi/aic7xxx.c | if (p->bus_type != AIC_WIDE) |
p | 3643 | drivers/scsi/aic7xxx.c | p->needwdtr = 0; |
p | 3645 | drivers/scsi/aic7xxx.c | p->needsdtr = p->needsdtr_copy; |
p | 3646 | drivers/scsi/aic7xxx.c | p->needwdtr = p->needwdtr_copy; |
p | 3648 | drivers/scsi/aic7xxx.c | printk("NeedSdtr = 0x%x, 0x%x\n", p->needsdtr_copy, p->needsdtr); |
p | 3649 | drivers/scsi/aic7xxx.c | printk("NeedWdtr = 0x%x, 0x%x\n", p->needwdtr_copy, p->needwdtr); |
p | 3671 | drivers/scsi/aic7xxx.c | i = p->maxscb; |
p | 3702 | drivers/scsi/aic7xxx.c | if (p->bus_type == AIC_TWIN) |
p | 3733 | drivers/scsi/aic7xxx.c | UNPAUSE_SEQUENCER(p); |
p | 4019 | drivers/scsi/aic7xxx.c | aic7xxx_buildscb(struct aic7xxx_host *p, |
p | 4047 | drivers/scsi/aic7xxx.c | if (p->discenable & mask) |
p | 4051 | drivers/scsi/aic7xxx.c | if ((p->needwdtr & mask) && !(p->wdtr_pending & mask)) |
p | 4053 | drivers/scsi/aic7xxx.c | p->wdtr_pending |= mask; |
p | 4061 | drivers/scsi/aic7xxx.c | if ((p->needsdtr & mask) && !(p->sdtr_pending & mask)) |
p | 4063 | drivers/scsi/aic7xxx.c | p->sdtr_pending |= mask; |
p | 4074 | drivers/scsi/aic7xxx.c | cmd->target, cmd->cmnd[0], cmd->cmd_len, p->needwdtr, mask); |
p | 4149 | drivers/scsi/aic7xxx.c | struct aic7xxx_host *p; |
p | 4152 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) cmd->host->hostdata; |
p | 4157 | drivers/scsi/aic7xxx.c | if (!p->a_scanned && (cmd->channel == 0)) |
p | 4160 | drivers/scsi/aic7xxx.c | p->a_scanned = TRUE; |
p | 4164 | drivers/scsi/aic7xxx.c | if (!p->b_scanned && (cmd->channel == 1)) |
p | 4167 | drivers/scsi/aic7xxx.c | p->b_scanned = TRUE; |
p | 4196 | drivers/scsi/aic7xxx.c | scb = p->free_scb; |
p | 4199 | drivers/scsi/aic7xxx.c | p->free_scb = scb->next; /* remove and update head of list */ |
p | 4207 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[scb->position]); |
p | 4213 | drivers/scsi/aic7xxx.c | if (p->numscb >= p->maxscb) |
p | 4224 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[p->numscb]); |
p | 4227 | drivers/scsi/aic7xxx.c | scb->position = p->numscb; |
p | 4228 | drivers/scsi/aic7xxx.c | p->numscb++; |
p | 4243 | drivers/scsi/aic7xxx.c | aic7xxx_buildscb(p, cmd, scb); |
p | 4246 | drivers/scsi/aic7xxx.c | if (scb != &p->scb_array[scb->position]) |
p | 4253 | drivers/scsi/aic7xxx.c | scb->state, (unsigned int) p->free_scb); |
p | 4261 | drivers/scsi/aic7xxx.c | PAUSE_SEQUENCER(p); |
p | 4269 | drivers/scsi/aic7xxx.c | aic7xxx_putscb(p, scb); |
p | 4270 | drivers/scsi/aic7xxx.c | outb(scb->position, QINFIFO + p->base); |
p | 4284 | drivers/scsi/aic7xxx.c | UNPAUSE_SEQUENCER(p); |
p | 4305 | drivers/scsi/aic7xxx.c | aic7xxx_abort_scb(struct aic7xxx_host *p, struct aic7xxx_scb *scb, |
p | 4308 | drivers/scsi/aic7xxx.c | int base = p->base; |
p | 4317 | drivers/scsi/aic7xxx.c | PAUSE_SEQUENCER(p); |
p | 4334 | drivers/scsi/aic7xxx.c | found = aic7xxx_reset_channel(p, channel, scb->position); |
p | 4355 | drivers/scsi/aic7xxx.c | active_scbp = &(p->scb_array[active_scb]); |
p | 4372 | drivers/scsi/aic7xxx.c | aic7xxx_putscb(p, scb); |
p | 4376 | drivers/scsi/aic7xxx.c | UNPAUSE_SEQUENCER(p); |
p | 4398 | drivers/scsi/aic7xxx.c | aic7xxx_reset_channel(p, channel, scb->position); |
p | 4424 | drivers/scsi/aic7xxx.c | UNPAUSE_SEQUENCER(p); |
p | 4436 | drivers/scsi/aic7xxx.c | aic7xxx_reset_channel(p, channel, scb->position); |
p | 4455 | drivers/scsi/aic7xxx.c | struct aic7xxx_host *p; |
p | 4459 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) cmd->host->hostdata; |
p | 4460 | drivers/scsi/aic7xxx.c | scb = &(p->scb_array[aic7xxx_position(cmd)]); |
p | 4478 | drivers/scsi/aic7xxx.c | aic7xxx_done(p, scb); |
p | 4485 | drivers/scsi/aic7xxx.c | scb_status = aic7xxx_abort_scb(p, scb, errcode); |
p | 4587 | drivers/scsi/aic7xxx.c | struct aic7xxx_host *p; |
p | 4589 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) disk->device->host->hostdata; |
p | 4600 | drivers/scsi/aic7xxx.c | if (p->extended && cylinders > 1024) |
p | 84 | drivers/scsi/aic7xxx_asm.c | void *p = malloc(size); |
p | 85 | drivers/scsi/aic7xxx_asm.c | if (!p) |
p | 87 | drivers/scsi/aic7xxx_asm.c | return(p); |
p | 93 | drivers/scsi/aic7xxx_asm.c | void *p = realloc(ptr, size); |
p | 94 | drivers/scsi/aic7xxx_asm.c | if (!p) |
p | 96 | drivers/scsi/aic7xxx_asm.c | return(p); |
p | 102 | drivers/scsi/aic7xxx_asm.c | char *p = (char *)Malloc(strlen(s) + 1); |
p | 103 | drivers/scsi/aic7xxx_asm.c | strcpy(p, s); |
p | 104 | drivers/scsi/aic7xxx_asm.c | return(p); |
p | 120 | drivers/scsi/aic7xxx_asm.c | sym_t *p, *q; |
p | 122 | drivers/scsi/aic7xxx_asm.c | for (p = head, q = (sym_t *)&head; p; p = p->next) { |
p | 123 | drivers/scsi/aic7xxx_asm.c | if (!strcmp(p->name, name)) |
p | 125 | drivers/scsi/aic7xxx_asm.c | q = p; |
p | 128 | drivers/scsi/aic7xxx_asm.c | p = q->next = (sym_t *)Malloc(sizeof(sym_t)); |
p | 129 | drivers/scsi/aic7xxx_asm.c | p->next = NULL; |
p | 130 | drivers/scsi/aic7xxx_asm.c | p->name = Strdup(name); |
p | 131 | drivers/scsi/aic7xxx_asm.c | p->value = value; |
p | 132 | drivers/scsi/aic7xxx_asm.c | p->npatch = 0; |
p | 133 | drivers/scsi/aic7xxx_asm.c | p->patch = NULL; |
p | 136 | drivers/scsi/aic7xxx_asm.c | fprintf(stderr, "\"%s\" ", p->name); |
p | 137 | drivers/scsi/aic7xxx_asm.c | if (p->value != NOVALUE) |
p | 138 | drivers/scsi/aic7xxx_asm.c | fprintf(stderr, "defined as 0x%x\n", p->value); |
p | 147 | drivers/scsi/aic7xxx_asm.c | sym_t *p; |
p | 149 | drivers/scsi/aic7xxx_asm.c | for (p = head; p; p = p->next) |
p | 150 | drivers/scsi/aic7xxx_asm.c | if (!strcmp(p->name, name)) |
p | 151 | drivers/scsi/aic7xxx_asm.c | return(p); |
p | 156 | drivers/scsi/aic7xxx_asm.c | patch(sym_t *p, int location) |
p | 158 | drivers/scsi/aic7xxx_asm.c | p->npatch += 1; |
p | 159 | drivers/scsi/aic7xxx_asm.c | p->patch = (int *)Realloc(p->patch, p->npatch * sizeof(int *)); |
p | 161 | drivers/scsi/aic7xxx_asm.c | p->patch[p->npatch - 1] = location; |
p | 167 | drivers/scsi/aic7xxx_asm.c | sym_t *p; |
p | 169 | drivers/scsi/aic7xxx_asm.c | for (p = head; p; p = p->next) { |
p | 171 | drivers/scsi/aic7xxx_asm.c | if (p->value == NOVALUE) { |
p | 174 | drivers/scsi/aic7xxx_asm.c | filename, p->name); |
p | 178 | drivers/scsi/aic7xxx_asm.c | if (p->npatch) { |
p | 182 | drivers/scsi/aic7xxx_asm.c | p->name, p->value); |
p | 184 | drivers/scsi/aic7xxx_asm.c | for (i = 0; i < p->npatch; i++) { |
p | 185 | drivers/scsi/aic7xxx_asm.c | M[p->patch[i]][0] &= ~1; |
p | 186 | drivers/scsi/aic7xxx_asm.c | M[p->patch[i]][0] |= ((p->value >> 8) & 1); |
p | 187 | drivers/scsi/aic7xxx_asm.c | M[p->patch[i]][1] = p->value & 0xff; |
p | 190 | drivers/scsi/aic7xxx_asm.c | fprintf(stderr, " 0x%x", p->patch[i]); |
p | 221 | drivers/scsi/aic7xxx_asm.c | char *p, *quote; |
p | 234 | drivers/scsi/aic7xxx_asm.c | p = strchr(buf, '#'); |
p | 235 | drivers/scsi/aic7xxx_asm.c | if (p) |
p | 236 | drivers/scsi/aic7xxx_asm.c | *p = '\0'; |
p | 237 | drivers/scsi/aic7xxx_asm.c | p = buf; |
p | 239 | drivers/scsi/aic7xxx_asm.c | quote = strchr(p, '\"'); |
p | 242 | drivers/scsi/aic7xxx_asm.c | for (p = strtok(p, ", \t\n"); p; p = strtok(NULL, ", \t\n")) |
p | 244 | drivers/scsi/aic7xxx_asm.c | a[i++] = p; |
p | 249 | drivers/scsi/aic7xxx_asm.c | p = strchr(quote, '\"'); |
p | 250 | drivers/scsi/aic7xxx_asm.c | if (!p) |
p | 254 | drivers/scsi/aic7xxx_asm.c | *p = '\0'; |
p | 255 | drivers/scsi/aic7xxx_asm.c | p++; |
p | 379 | drivers/scsi/aic7xxx_asm.c | sym_t *p; |
p | 393 | drivers/scsi/aic7xxx_asm.c | p = lookup(a[spec &~ (SL|SR|RL|RR)]); |
p | 394 | drivers/scsi/aic7xxx_asm.c | if (!p) |
p | 396 | drivers/scsi/aic7xxx_asm.c | val = p->value; |
p | 437 | drivers/scsi/aic7xxx_asm.c | p = lookup(a[spec]); |
p | 438 | drivers/scsi/aic7xxx_asm.c | if (p) |
p | 439 | drivers/scsi/aic7xxx_asm.c | return(p->value); |
p | 449 | drivers/scsi/aic7xxx_asm.c | sym_t *p; |
p | 456 | drivers/scsi/aic7xxx_asm.c | p = lookup(a[spec]); |
p | 458 | drivers/scsi/aic7xxx_asm.c | if (p) { |
p | 459 | drivers/scsi/aic7xxx_asm.c | if (p->value != NOVALUE) |
p | 460 | drivers/scsi/aic7xxx_asm.c | return(p->value); |
p | 461 | drivers/scsi/aic7xxx_asm.c | patch(p, LC); |
p | 464 | drivers/scsi/aic7xxx_asm.c | p = lookup(a[spec]); |
p | 465 | drivers/scsi/aic7xxx_asm.c | patch(p, LC); |
p | 544 | drivers/scsi/aic7xxx_asm.c | sym_t *p; |
p | 550 | drivers/scsi/aic7xxx_asm.c | p = lookup(*a); |
p | 551 | drivers/scsi/aic7xxx_asm.c | if (p) |
p | 552 | drivers/scsi/aic7xxx_asm.c | p->value = LC; |
p | 599 | drivers/scsi/aic7xxx_asm.c | char *p; |
p | 600 | drivers/scsi/aic7xxx_asm.c | if ((p = strchr(optarg, '=')) != NULL) { |
p | 601 | drivers/scsi/aic7xxx_asm.c | *p = '\0'; |
p | 602 | drivers/scsi/aic7xxx_asm.c | define(optarg, strtol(p + 1, NULL, 0)); |
p | 78 | drivers/scsi/aic7xxx_proc.c | struct aic7xxx_host *p; |
p | 127 | drivers/scsi/aic7xxx_proc.c | p = (struct aic7xxx_host *) HBAptr->hostdata; |
p | 164 | drivers/scsi/aic7xxx_proc.c | size += sprintf(BLS, " SCSI Adapter: %s\n", board_names[p->type]); |
p | 165 | drivers/scsi/aic7xxx_proc.c | size += sprintf(BLS, " Host Bus: %s\n", bus_name[p->bus_type]); |
p | 166 | drivers/scsi/aic7xxx_proc.c | size += sprintf(BLS, " Base IO: %#.4x\n", p->base); |
p | 168 | drivers/scsi/aic7xxx_proc.c | size += sprintf(BLS, " SCB: %d (%d)\n", p->numscb, p->maxscb); |
p | 169 | drivers/scsi/aic7xxx_proc.c | size += sprintf(BLS, " Interrupts: %d", p->isr_count); |
p | 170 | drivers/scsi/aic7xxx_proc.c | if (p->chip_type == AIC_777x) |
p | 173 | drivers/scsi/aic7xxx_proc.c | (p->pause & IRQMS) ? "(Level Sensitive)" : "(Edge Triggered)"); |
p | 180 | drivers/scsi/aic7xxx_proc.c | p->have_seeprom ? "True" : "False"); |
p | 181 | drivers/scsi/aic7xxx_proc.c | size += sprintf(BLS, " Pause/Unpause: %#.2x/%#.2x\n", p->pause, |
p | 182 | drivers/scsi/aic7xxx_proc.c | p->unpause); |
p | 184 | drivers/scsi/aic7xxx_proc.c | p->extended ? "En" : "Dis"); |
p | 188 | drivers/scsi/aic7xxx_proc.c | p->ultra_enabled ? "En" : "Dis"); |
p | 207 | drivers/scsi/aic7xxx_proc.c | sp = &p->stats[channel][target][lun]; |
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 | 785 | drivers/scsi/eata_dma.c | u16 *p; |
p | 801 | drivers/scsi/eata_dma.c | for (p = (u16 *) buf; |
p | 802 | drivers/scsi/eata_dma.c | (long)p <= ((long)buf + (sizeof(struct get_conf) / 2)); p++) { |
p | 808 | 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 | 585 | drivers/scsi/eata_pio.c | ushort *p; |
p | 601 | drivers/scsi/eata_pio.c | for (p = (ushort *) buf; |
p | 602 | drivers/scsi/eata_pio.c | (long)p <= ((long)buf + (sizeof(struct get_conf) / 2)); p++) { |
p | 608 | 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 | 2441 | drivers/scsi/scsi.c | char *p; |
p | 2502 | drivers/scsi/scsi.c | p = buffer + 17; |
p | 2505 | drivers/scsi/scsi.c | p++; |
p | 2506 | drivers/scsi/scsi.c | parameter[i] = simple_strtoul(p, &p, 0); |
p | 176 | drivers/scsi/scsi_debug.c | struct partition * p; |
p | 305 | drivers/scsi/scsi_debug.c | p = (struct partition* ) (buff + 0x1be); |
p | 308 | drivers/scsi/scsi_debug.c | p->start_sect = starts[npart]; |
p | 309 | drivers/scsi/scsi_debug.c | p->nr_sects = starts[npart+1] - starts [npart]; |
p | 310 | drivers/scsi/scsi_debug.c | p->sys_ind = 0x81; /* Linux partition */ |
p | 311 | drivers/scsi/scsi_debug.c | p++; |
p | 87 | drivers/scsi/scsicam.c | struct partition *p, *largest = NULL; |
p | 94 | drivers/scsi/scsicam.c | for (largest_cyl = -1, p = (struct partition *) |
p | 95 | drivers/scsi/scsicam.c | (0x1BE + bh->b_data), i = 0; i < 4; ++i, ++p) { |
p | 96 | drivers/scsi/scsicam.c | if (!p->sys_ind) |
p | 102 | drivers/scsi/scsicam.c | cyl = p->cyl + ((p->sector & 0xc0) << 2); |
p | 105 | 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 | 189 | drivers/sound/audio.c | int c, p, l, buf_no, buf_ptr, buf_size; |
p | 195 | drivers/sound/audio.c | p = 0; |
p | 223 | drivers/sound/audio.c | return p; /* No more space. Return # of accepted bytes */ |
p | 237 | drivers/sound/audio.c | memcpy_fromfs (&dma_buf[buf_ptr], &((buf)[p]), l); |
p | 241 | drivers/sound/audio.c | dma_buf, buf_ptr, buf, p, l); |
p | 253 | drivers/sound/audio.c | p += l; |
p | 275 | drivers/sound/audio.c | int c, p, l; |
p | 280 | drivers/sound/audio.c | p = 0; |
p | 301 | drivers/sound/audio.c | return p; |
p | 323 | drivers/sound/audio.c | memcpy_tofs (&((buf)[p]), dmabuf, l); |
p | 327 | drivers/sound/audio.c | p += l; |
p | 375 | drivers/sound/configure.c | char *method, *new, *old, *var, *p; |
p | 377 | drivers/sound/configure.c | method = p = line; |
p | 379 | drivers/sound/configure.c | while (*p && *p != ' ') |
p | 380 | drivers/sound/configure.c | p++; |
p | 381 | drivers/sound/configure.c | *p++ = 0; |
p | 383 | drivers/sound/configure.c | old = p; |
p | 384 | drivers/sound/configure.c | while (*p && *p != ' ') |
p | 385 | drivers/sound/configure.c | p++; |
p | 386 | drivers/sound/configure.c | *p++ = 0; |
p | 388 | drivers/sound/configure.c | new = p; |
p | 389 | drivers/sound/configure.c | while (*p && *p != ' ') |
p | 390 | drivers/sound/configure.c | p++; |
p | 391 | drivers/sound/configure.c | *p++ = 0; |
p | 393 | drivers/sound/configure.c | var = p; |
p | 394 | drivers/sound/configure.c | while (*p && *p != ' ') |
p | 395 | drivers/sound/configure.c | p++; |
p | 396 | drivers/sound/configure.c | *p++ = 0; |
p | 591 | drivers/sound/dmabuf.c | int p = dmap->counts[dmap->qhead] + c; |
p | 598 | drivers/sound/dmabuf.c | else if (p >= dmap->fragment_size) |
p | 608 | drivers/sound/dmabuf.c | dmap->counts[dmap->qhead] = p; |
p | 1294 | drivers/sound/dmabuf.c | int p; |
p | 1296 | drivers/sound/dmabuf.c | p = dmap->fragment_size * dmap->qhead; |
p | 1297 | drivers/sound/dmabuf.c | memset (dmap->raw_buf + p, |
p | 2720 | drivers/sound/gus_wave.c | int i, p, best = -1, best_time = 0x7fffffff; |
p | 2722 | drivers/sound/gus_wave.c | p = alloc->ptr; |
p | 2729 | drivers/sound/gus_wave.c | if (alloc->map[p] == 0) |
p | 2731 | drivers/sound/gus_wave.c | alloc->ptr = p; |
p | 2732 | drivers/sound/gus_wave.c | return p; |
p | 2734 | drivers/sound/gus_wave.c | if (alloc->alloc_times[p] < best_time) |
p | 2736 | drivers/sound/gus_wave.c | best = p; |
p | 2737 | drivers/sound/gus_wave.c | best_time = alloc->alloc_times[p]; |
p | 2739 | drivers/sound/gus_wave.c | p = (p + 1) % alloc->max_voice; |
p | 2748 | drivers/sound/gus_wave.c | if (alloc->map[p] == 0xffff) |
p | 2750 | drivers/sound/gus_wave.c | alloc->ptr = p; |
p | 2751 | drivers/sound/gus_wave.c | return p; |
p | 2753 | drivers/sound/gus_wave.c | p = (p + 1) % alloc->max_voice; |
p | 2757 | drivers/sound/gus_wave.c | p = best; |
p | 2759 | drivers/sound/gus_wave.c | alloc->ptr = p; |
p | 2760 | drivers/sound/gus_wave.c | return p; |
p | 1072 | drivers/sound/opl3.c | int i, p, best, first, avail, best_time = 0x7fffffff; |
p | 1093 | drivers/sound/opl3.c | first = p = 0; |
p | 1099 | drivers/sound/opl3.c | first = p = 6; |
p | 1101 | drivers/sound/opl3.c | first = p = 0; |
p | 1112 | drivers/sound/opl3.c | if (alloc->map[p] == 0) |
p | 1114 | drivers/sound/opl3.c | return p; |
p | 1116 | drivers/sound/opl3.c | if (alloc->alloc_times[p] < best_time) /* Find oldest playing note */ |
p | 1118 | drivers/sound/opl3.c | best_time = alloc->alloc_times[p]; |
p | 1119 | drivers/sound/opl3.c | best = p; |
p | 1121 | drivers/sound/opl3.c | p = (p + 1) % avail; |
p | 106 | drivers/sound/sequencer.c | int c = count, p = 0; |
p | 158 | drivers/sound/sequencer.c | memcpy_tofs (&((buf)[p]), (char *) &iqueue[iqhead * IEV_SZ], ev_len); |
p | 159 | drivers/sound/sequencer.c | p += ev_len; |
p | 268 | drivers/sound/sequencer.c | int p = 0, c, ev_size; |
p | 286 | drivers/sound/sequencer.c | memcpy_fromfs ((char *) event_rec, &((buf)[p]), 4); |
p | 300 | drivers/sound/sequencer.c | err = synth_devs[dev]->load_patch (dev, *(short *) &event_rec[0], buf, p + 4, c, 0); |
p | 324 | drivers/sound/sequencer.c | memcpy_fromfs ((char *) &event_rec[4], &((buf)[p + 4]), 4); |
p | 381 | drivers/sound/sequencer.c | p += ev_size; |
p | 211 | fs/binfmt_aout.c | unsigned long p = bprm->p; |
p | 332 | fs/binfmt_aout.c | p += fd_offset; |
p | 337 | fs/binfmt_aout.c | p = (unsigned long)create_tables((char *)p, bprm, |
p | 339 | fs/binfmt_aout.c | current->mm->start_stack = p; |
p | 343 | fs/binfmt_aout.c | start_thread(regs, ex.a_entry, p); |
p | 93 | 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 | 102 | fs/binfmt_elf.c | mpnt->vm_start = PAGE_MASK & (unsigned long) p; |
p | 113 | fs/binfmt_elf.c | sp = (unsigned long *) (0xfffffffc & (unsigned long) p); |
p | 148 | fs/binfmt_elf.c | current->mm->arg_start = (unsigned long) p; |
p | 150 | fs/binfmt_elf.c | put_user(p,argv++); |
p | 151 | fs/binfmt_elf.c | while (get_user(p++)) /* nothing */ ; |
p | 154 | fs/binfmt_elf.c | current->mm->arg_end = current->mm->env_start = (unsigned long) p; |
p | 156 | fs/binfmt_elf.c | put_user(p,envp++); |
p | 157 | fs/binfmt_elf.c | while (get_user(p++)) /* nothing */ ; |
p | 160 | fs/binfmt_elf.c | current->mm->env_end = (unsigned long) p; |
p | 515 | fs/binfmt_elf.c | bprm->p = copy_strings(1,&passed_p,bprm->page,bprm->p,2); |
p | 519 | 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 | 638 | fs/binfmt_elf.c | current->start_stack = p = elf_stack - 4; |
p | 642 | fs/binfmt_elf.c | bprm->p -= MAX_ARG_PAGES*PAGE_SIZE; |
p | 643 | fs/binfmt_elf.c | bprm->p = (unsigned long) |
p | 644 | fs/binfmt_elf.c | create_elf_tables((char *)bprm->p, |
p | 657 | fs/binfmt_elf.c | current->mm->start_stack = bprm->p; |
p | 693 | 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 | 1232 | fs/buffer.c | int *p, nr[PAGE_SIZE/512]; |
p | 1246 | fs/buffer.c | p = nr; |
p | 1248 | fs/buffer.c | *p = inode->i_op->bmap(inode, block); |
p | 1251 | fs/buffer.c | p++; |
p | 1326 | fs/buffer.c | struct buffer_head * tmp, * p; |
p | 1345 | fs/buffer.c | p = tmp; |
p | 1349 | fs/buffer.c | if (p == *bhp) |
p | 1351 | fs/buffer.c | *bhp = p->b_prev_free; |
p | 1352 | fs/buffer.c | if (p == *bhp) /* Was this the last in the list? */ |
p | 1355 | fs/buffer.c | remove_from_queues(p); |
p | 1356 | fs/buffer.c | put_unused_buffer_head(p); |
p | 1591 | fs/buffer.c | struct buffer_head * tmp, * p; |
p | 1615 | fs/buffer.c | p = tmp; |
p | 1617 | fs/buffer.c | remove_from_queues(p); |
p | 1618 | fs/buffer.c | p->b_dev = dev; |
p | 1619 | fs/buffer.c | mark_buffer_uptodate(p, 0); |
p | 1620 | fs/buffer.c | clear_bit(BH_Req, &p->b_state); |
p | 1621 | fs/buffer.c | p->b_blocknr = starting_block++; |
p | 1622 | 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 | 185 | fs/exec.c | unsigned long * create_tables(char * p, struct linux_binprm * bprm, int ibcs) |
p | 196 | fs/exec.c | mpnt->vm_start = PAGE_MASK & (unsigned long) p; |
p | 207 | fs/exec.c | sp = (unsigned long *) ((-(unsigned long)sizeof(char *)) & (unsigned long) p); |
p | 232 | fs/exec.c | current->mm->arg_start = (unsigned long) p; |
p | 234 | fs/exec.c | put_user(p,argv++); |
p | 235 | fs/exec.c | while (get_user(p++)) /* nothing */ ; |
p | 238 | fs/exec.c | current->mm->arg_end = current->mm->env_start = (unsigned long) p; |
p | 240 | fs/exec.c | put_user(p,envp++); |
p | 241 | fs/exec.c | while (get_user(p++)) /* nothing */ ; |
p | 244 | fs/exec.c | current->mm->env_end = (unsigned long) p; |
p | 257 | fs/exec.c | char ** tmp, *p; |
p | 263 | fs/exec.c | while ((p = get_user(tmp++)) != NULL) { |
p | 265 | fs/exec.c | error = verify_area(VERIFY_READ, p, 1); |
p | 291 | fs/exec.c | unsigned long p, int from_kmem) |
p | 297 | fs/exec.c | if (!p) |
p | 314 | fs/exec.c | if (p < len) { /* this shouldn't happen - 128kB */ |
p | 319 | fs/exec.c | --p; --tmp; --len; |
p | 321 | fs/exec.c | offset = p % PAGE_SIZE; |
p | 324 | fs/exec.c | if (!(pag = (char *) page[p/PAGE_SIZE]) && |
p | 325 | fs/exec.c | !(pag = (char *) page[p/PAGE_SIZE] = |
p | 337 | fs/exec.c | return p; |
p | 496 | fs/exec.c | bprm.p = PAGE_SIZE*MAX_ARG_PAGES-sizeof(void *); |
p | 592 | fs/exec.c | bprm.p = copy_strings(bprm.envc, envp, bprm.page, bprm.p, 0); |
p | 593 | fs/exec.c | bprm.p = copy_strings(--bprm.argc, argv+1, bprm.page, bprm.p, 0); |
p | 603 | fs/exec.c | bprm.p = copy_strings(1, &bprm.filename, bprm.page, bprm.p, 2); |
p | 606 | fs/exec.c | bprm.p = copy_strings(1, &i_arg, bprm.page, bprm.p, 2); |
p | 609 | fs/exec.c | bprm.p = copy_strings(1, &i_name, bprm.page, bprm.p, 2); |
p | 611 | fs/exec.c | if (!bprm.p) { |
p | 636 | fs/exec.c | bprm.p = copy_strings(1, dynloader, bprm.page, bprm.p, 2); |
p | 637 | fs/exec.c | bprm.loader = bprm.p; |
p | 646 | fs/exec.c | bprm.p = copy_strings(1, &bprm.filename, bprm.page, bprm.p, 2); |
p | 647 | fs/exec.c | bprm.exec = bprm.p; |
p | 648 | fs/exec.c | bprm.p = copy_strings(bprm.envc,envp,bprm.page,bprm.p,0); |
p | 649 | fs/exec.c | bprm.p = copy_strings(bprm.argc,argv,bprm.page,bprm.p,0); |
p | 650 | fs/exec.c | if (!bprm.p) { |
p | 204 | fs/ext/file.c | char * p; |
p | 243 | fs/ext/file.c | p = (pos % BLOCK_SIZE) + bh->b_data; |
p | 250 | fs/ext/file.c | memcpy_fromfs(p,buf,c); |
p | 232 | fs/ext/inode.c | unsigned long * p; |
p | 235 | fs/ext/inode.c | p = inode->u.ext_i.i_data + nr; |
p | 237 | fs/ext/inode.c | tmp = *p; |
p | 240 | fs/ext/inode.c | if (tmp == *p) |
p | 251 | fs/ext/inode.c | if (*p) { |
p | 256 | fs/ext/inode.c | *p = tmp; |
p | 266 | fs/ext/inode.c | unsigned long * p; |
p | 279 | fs/ext/inode.c | p = nr + (unsigned long *) bh->b_data; |
p | 281 | fs/ext/inode.c | tmp = *p; |
p | 284 | fs/ext/inode.c | if (tmp == *p) { |
p | 301 | fs/ext/inode.c | if (*p) { |
p | 306 | 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 | 261 | fs/ext2/balloc.c | char * p, * r; |
p | 341 | fs/ext2/balloc.c | p = ((char *) bh->b_data) + (j >> 3); |
p | 342 | fs/ext2/balloc.c | r = memscan(p, 0, (EXT2_BLOCKS_PER_GROUP(sb) - j + 7) >> 3); |
p | 186 | fs/ext2/inode.c | u32 * p; |
p | 191 | fs/ext2/inode.c | p = inode->u.ext2_i.i_data + nr; |
p | 193 | fs/ext2/inode.c | tmp = *p; |
p | 196 | fs/ext2/inode.c | if (tmp == *p) |
p | 231 | fs/ext2/inode.c | if (*p) { |
p | 236 | fs/ext2/inode.c | *p = tmp; |
p | 254 | fs/ext2/inode.c | u32 * p; |
p | 268 | fs/ext2/inode.c | p = (u32 *) bh->b_data + nr; |
p | 270 | fs/ext2/inode.c | tmp = *p; |
p | 273 | fs/ext2/inode.c | if (tmp == *p) { |
p | 305 | fs/ext2/inode.c | if (*p) { |
p | 310 | fs/ext2/inode.c | *p = tmp; |
p | 329 | fs/ext2/inode.c | u32 * p; |
p | 343 | fs/ext2/inode.c | p = (u32 *) bh->b_data + nr + i; |
p | 346 | fs/ext2/inode.c | if(*p == 0) goto out; |
p | 349 | fs/ext2/inode.c | if(i==0) firstblock = *p; |
p | 350 | fs/ext2/inode.c | else if(*p != firstblock + i) goto out; |
p | 353 | fs/ext2/inode.c | p = (u32 *) bh->b_data + nr; |
p | 354 | fs/ext2/inode.c | result = generate_cluster(bh->b_dev, (int *) p, blocksize); |
p | 61 | fs/ext2/truncate.c | u32 * p; |
p | 74 | fs/ext2/truncate.c | p = inode->u.ext2_i.i_data + i; |
p | 75 | fs/ext2/truncate.c | tmp = *p; |
p | 84 | fs/ext2/truncate.c | if ((bh && bh->b_count != 1) || tmp != *p) { |
p | 89 | 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 | 184 | fs/ext2/truncate.c | tmp = *p; |
p | 185 | fs/ext2/truncate.c | *p = 0; |
p | 199 | fs/ext2/truncate.c | u32 * p) |
p | 210 | fs/ext2/truncate.c | tmp = *p; |
p | 214 | fs/ext2/truncate.c | if (tmp != *p) { |
p | 219 | fs/ext2/truncate.c | *p = 0; |
p | 244 | fs/ext2/truncate.c | tmp = *p; |
p | 245 | fs/ext2/truncate.c | *p = 0; |
p | 262 | fs/ext2/truncate.c | u32 * tind, * p; |
p | 271 | fs/ext2/truncate.c | p = inode->u.ext2_i.i_data + EXT2_TIND_BLOCK; |
p | 272 | fs/ext2/truncate.c | if (!(tmp = *p)) |
p | 275 | fs/ext2/truncate.c | if (tmp != *p) { |
p | 280 | fs/ext2/truncate.c | *p = 0; |
p | 303 | fs/ext2/truncate.c | tmp = *p; |
p | 304 | fs/ext2/truncate.c | *p = 0; |
p | 59 | fs/fcntl.c | struct task_struct *p; |
p | 135 | fs/fcntl.c | for_each_task(p) { |
p | 136 | fs/fcntl.c | if ((p->pid == arg) || (p->pid == -arg) || |
p | 137 | fs/fcntl.c | (p->pgrp == -arg)) { |
p | 139 | fs/fcntl.c | if ((p->session != current->session) && |
p | 140 | fs/fcntl.c | (p->uid != current->uid) && |
p | 141 | fs/fcntl.c | (p->euid != current->euid) && |
p | 258 | 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 | 567 | fs/hpfs/hpfs_fs.c | for (p = strtok(opts, ","); p != 0; p = strtok(0, ",")) { |
p | 568 | fs/hpfs/hpfs_fs.c | if ((rhs = strchr(p, '=')) != 0) |
p | 570 | fs/hpfs/hpfs_fs.c | if (!strcmp(p, "uid")) { |
p | 577 | fs/hpfs/hpfs_fs.c | else if (!strcmp(p, "gid")) { |
p | 584 | fs/hpfs/hpfs_fs.c | else if (!strcmp(p, "umask")) { |
p | 591 | fs/hpfs/hpfs_fs.c | else if (!strcmp(p, "case")) { |
p | 599 | fs/hpfs/hpfs_fs.c | else if (!strcmp(p, "conv")) { |
p | 609 | fs/hpfs/hpfs_fs.c | else if (!strcmp(p,"nocheck")) |
p | 962 | fs/hpfs/hpfs_fs.c | static unsigned choose_conv(unsigned char *p, unsigned len) |
p | 970 | fs/hpfs/hpfs_fs.c | c = *p++; |
p | 972 | fs/hpfs/hpfs_fs.c | if (c == '\r' && len && *p == '\n') |
p | 290 | fs/isofs/rock.c | { int p; |
p | 291 | fs/isofs/rock.c | for(p=0;p<rr->u.ER.len_id;p++) printk("%c",rr->u.ER.data[p]); |
p | 13 | fs/isofs/util.c | isonum_711 (char * p) |
p | 15 | fs/isofs/util.c | return (*p & 0xff); |
p | 19 | fs/isofs/util.c | isonum_712 (char * p) |
p | 23 | fs/isofs/util.c | val = *p; |
p | 30 | fs/isofs/util.c | isonum_721 (char * p) |
p | 32 | fs/isofs/util.c | return ((p[0] & 0xff) | ((p[1] & 0xff) << 8)); |
p | 36 | fs/isofs/util.c | isonum_722 (char * p) |
p | 38 | fs/isofs/util.c | return (((p[0] & 0xff) << 8) | (p[1] & 0xff)); |
p | 42 | fs/isofs/util.c | isonum_723 (char * p) |
p | 45 | fs/isofs/util.c | if (p[0] != p[3] || p[1] != p[2]) { |
p | 50 | fs/isofs/util.c | return (isonum_721 (p)); |
p | 54 | fs/isofs/util.c | isonum_731 (char * p) |
p | 56 | fs/isofs/util.c | return ((p[0] & 0xff) |
p | 57 | fs/isofs/util.c | | ((p[1] & 0xff) << 8) |
p | 58 | fs/isofs/util.c | | ((p[2] & 0xff) << 16) |
p | 59 | fs/isofs/util.c | | ((p[3] & 0xff) << 24)); |
p | 63 | fs/isofs/util.c | isonum_732 (char * p) |
p | 65 | fs/isofs/util.c | return (((p[0] & 0xff) << 24) |
p | 66 | fs/isofs/util.c | | ((p[1] & 0xff) << 16) |
p | 67 | fs/isofs/util.c | | ((p[2] & 0xff) << 8) |
p | 68 | fs/isofs/util.c | | (p[3] & 0xff)); |
p | 72 | fs/isofs/util.c | isonum_733 (char * p) |
p | 78 | fs/isofs/util.c | if (p[i] != p[7-i]) { |
p | 84 | fs/isofs/util.c | return (isonum_731 (p)); |
p | 91 | fs/isofs/util.c | int iso_date(char * p, int flag) |
p | 96 | fs/isofs/util.c | year = p[0] - 70; |
p | 97 | fs/isofs/util.c | month = p[1]; |
p | 98 | fs/isofs/util.c | day = p[2]; |
p | 99 | fs/isofs/util.c | hour = p[3]; |
p | 100 | fs/isofs/util.c | minute = p[4]; |
p | 101 | fs/isofs/util.c | second = p[5]; |
p | 102 | fs/isofs/util.c | if (flag == 0) tz = p[6]; /* High sierra has no time zone */ |
p | 74 | fs/minix/file.c | char * p; |
p | 109 | fs/minix/file.c | p = (pos % BLOCK_SIZE) + bh->b_data; |
p | 110 | fs/minix/file.c | memcpy_fromfs(p,buf,c); |
p | 111 | fs/minix/file.c | update_vm_cache(inode, pos, p, c); |
p | 379 | fs/minix/inode.c | unsigned short *p; |
p | 382 | fs/minix/inode.c | p = inode->u.minix_i.u.i1_data + nr; |
p | 384 | fs/minix/inode.c | tmp = *p; |
p | 387 | fs/minix/inode.c | if (tmp == *p) |
p | 398 | fs/minix/inode.c | if (*p) { |
p | 403 | fs/minix/inode.c | *p = tmp; |
p | 413 | fs/minix/inode.c | unsigned short *p; |
p | 426 | fs/minix/inode.c | p = nr + (unsigned short *) bh->b_data; |
p | 428 | fs/minix/inode.c | tmp = *p; |
p | 431 | fs/minix/inode.c | if (tmp == *p) { |
p | 448 | fs/minix/inode.c | if (*p) { |
p | 453 | fs/minix/inode.c | *p = tmp; |
p | 492 | fs/minix/inode.c | unsigned long *p; |
p | 495 | fs/minix/inode.c | p = (unsigned long *) inode->u.minix_i.u.i2_data + nr; |
p | 497 | fs/minix/inode.c | tmp = *p; |
p | 500 | fs/minix/inode.c | if (tmp == *p) |
p | 511 | fs/minix/inode.c | if (*p) { |
p | 516 | fs/minix/inode.c | *p = tmp; |
p | 526 | fs/minix/inode.c | unsigned long *p; |
p | 539 | fs/minix/inode.c | p = nr + (unsigned long *) bh->b_data; |
p | 541 | fs/minix/inode.c | tmp = *p; |
p | 544 | fs/minix/inode.c | if (tmp == *p) { |
p | 561 | fs/minix/inode.c | if (*p) { |
p | 566 | fs/minix/inode.c | *p = tmp; |
p | 39 | fs/minix/truncate.c | unsigned short * p; |
p | 46 | fs/minix/truncate.c | p = i + inode->u.minix_i.u.i1_data; |
p | 47 | fs/minix/truncate.c | if (!(tmp = *p)) |
p | 54 | fs/minix/truncate.c | if ((bh && bh->b_count != 1) || tmp != *p) { |
p | 59 | fs/minix/truncate.c | *p = 0; |
p | 70 | fs/minix/truncate.c | static int V1_trunc_indirect(struct inode * inode, int offset, unsigned short * p) |
p | 78 | fs/minix/truncate.c | tmp = *p; |
p | 82 | fs/minix/truncate.c | if (tmp != *p) { |
p | 87 | fs/minix/truncate.c | *p = 0; |
p | 123 | fs/minix/truncate.c | tmp = *p; |
p | 124 | fs/minix/truncate.c | *p = 0; |
p | 131 | fs/minix/truncate.c | static int V1_trunc_dindirect(struct inode * inode, int offset, unsigned short *p) |
p | 138 | fs/minix/truncate.c | if (!(tmp = *p)) |
p | 141 | fs/minix/truncate.c | if (tmp != *p) { |
p | 146 | fs/minix/truncate.c | *p = 0; |
p | 167 | fs/minix/truncate.c | tmp = *p; |
p | 168 | fs/minix/truncate.c | *p = 0; |
p | 201 | fs/minix/truncate.c | unsigned long * p; |
p | 208 | fs/minix/truncate.c | p = (unsigned long *) inode->u.minix_i.u.i2_data + i; |
p | 209 | fs/minix/truncate.c | if (!(tmp = *p)) |
p | 216 | fs/minix/truncate.c | if ((bh && bh->b_count != 1) || tmp != *p) { |
p | 221 | fs/minix/truncate.c | *p = 0; |
p | 232 | fs/minix/truncate.c | static int V2_trunc_indirect(struct inode * inode, int offset, unsigned long * p) |
p | 240 | fs/minix/truncate.c | tmp = *p; |
p | 244 | fs/minix/truncate.c | if (tmp != *p) { |
p | 249 | fs/minix/truncate.c | *p = 0; |
p | 285 | fs/minix/truncate.c | tmp = *p; |
p | 286 | fs/minix/truncate.c | *p = 0; |
p | 293 | fs/minix/truncate.c | static int V2_trunc_dindirect(struct inode * inode, int offset, unsigned long *p) |
p | 300 | fs/minix/truncate.c | if (!(tmp = *p)) |
p | 303 | fs/minix/truncate.c | if (tmp != *p) { |
p | 308 | fs/minix/truncate.c | *p = 0; |
p | 329 | fs/minix/truncate.c | tmp = *p; |
p | 330 | fs/minix/truncate.c | *p = 0; |
p | 338 | fs/minix/truncate.c | static int V2_trunc_tindirect(struct inode * inode, int offset, unsigned long * p) |
p | 345 | fs/minix/truncate.c | if (!(tmp = *p)) |
p | 348 | fs/minix/truncate.c | if (tmp != *p) { |
p | 353 | fs/minix/truncate.c | *p = 0; |
p | 374 | fs/minix/truncate.c | tmp = *p; |
p | 375 | 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 | 856 | fs/nfs/nfsroot.c | int *p; |
p | 860 | fs/nfs/nfsroot.c | p = root_nfs_header(NFS_PMAP_PROC, NFS_PMAP_PROGRAM, NFS_PMAP_VERSION); |
p | 861 | fs/nfs/nfsroot.c | if (!p) |
p | 865 | fs/nfs/nfsroot.c | *p++ = htonl(program); |
p | 866 | fs/nfs/nfsroot.c | *p++ = htonl(version); |
p | 867 | fs/nfs/nfsroot.c | *p++ = htonl(IPPROTO_UDP); |
p | 868 | fs/nfs/nfsroot.c | *p++ = 0; |
p | 871 | fs/nfs/nfsroot.c | if ((p = root_nfs_call(p)) == NULL) |
p | 874 | fs/nfs/nfsroot.c | return ntohl(*p); |
p | 914 | fs/nfs/nfsroot.c | int len, status, *p; |
p | 917 | fs/nfs/nfsroot.c | p = root_nfs_header(NFS_MOUNT_PROC, NFS_MOUNT_PROGRAM, NFS_MOUNT_VERSION); |
p | 918 | fs/nfs/nfsroot.c | if (!p) { |
p | 924 | fs/nfs/nfsroot.c | *p++ = htonl(len); |
p | 925 | fs/nfs/nfsroot.c | memcpy(p, nfs_path, len); |
p | 927 | fs/nfs/nfsroot.c | p[len] = 0; |
p | 928 | fs/nfs/nfsroot.c | p += len; |
p | 931 | fs/nfs/nfsroot.c | if ((p = root_nfs_call(p)) == NULL) { |
p | 935 | fs/nfs/nfsroot.c | status = ntohl(*p++); |
p | 937 | fs/nfs/nfsroot.c | nfs_data.root = *((struct nfs_fh *) p); |
p | 65 | fs/nfs/proc.c | static int *nfs_rpc_header(int *p, int procedure, int ruid); |
p | 66 | fs/nfs/proc.c | static int *nfs_rpc_verify(int *p); |
p | 87 | fs/nfs/proc.c | static inline void nfs_rpc_free(int *p) |
p | 89 | fs/nfs/proc.c | kfree((void *)p); |
p | 99 | fs/nfs/proc.c | static inline int *xdr_encode_fhandle(int *p, struct nfs_fh *fhandle) |
p | 101 | fs/nfs/proc.c | *((struct nfs_fh *) p) = *fhandle; |
p | 102 | fs/nfs/proc.c | return p + QUADLEN(sizeof(*fhandle)); |
p | 105 | fs/nfs/proc.c | static inline int *xdr_decode_fhandle(int *p, struct nfs_fh *fhandle) |
p | 107 | fs/nfs/proc.c | *fhandle = *((struct nfs_fh *) p); |
p | 108 | fs/nfs/proc.c | return p + QUADLEN(sizeof(*fhandle)); |
p | 111 | fs/nfs/proc.c | static inline int *xdr_encode_string(int *p, const char *string) |
p | 116 | fs/nfs/proc.c | p[quadlen] = 0; |
p | 117 | fs/nfs/proc.c | *p++ = htonl(len); |
p | 118 | fs/nfs/proc.c | memcpy(p, string, len); |
p | 119 | fs/nfs/proc.c | return p + quadlen; |
p | 122 | fs/nfs/proc.c | static inline int *xdr_decode_string(int *p, char *string, unsigned int maxlen) |
p | 124 | fs/nfs/proc.c | unsigned int len = ntohl(*p++); |
p | 127 | fs/nfs/proc.c | memcpy(string, p, len); |
p | 129 | fs/nfs/proc.c | return p + QUADLEN(len); |
p | 132 | fs/nfs/proc.c | static inline int *xdr_decode_string2(int *p, char **string, unsigned int *len, |
p | 135 | fs/nfs/proc.c | *len = ntohl(*p++); |
p | 138 | fs/nfs/proc.c | *string = (char *) p; |
p | 139 | fs/nfs/proc.c | return p + QUADLEN(*len); |
p | 143 | fs/nfs/proc.c | static inline int *xdr_encode_data(int *p, const char *data, int len) |
p | 147 | fs/nfs/proc.c | p[quadlen] = 0; |
p | 148 | fs/nfs/proc.c | *p++ = htonl(len); |
p | 149 | fs/nfs/proc.c | memcpy_fromfs(p, data, len); |
p | 150 | fs/nfs/proc.c | return p + quadlen; |
p | 153 | fs/nfs/proc.c | static inline int *xdr_decode_data(int *p, char *data, int *lenp, int maxlen, |
p | 156 | fs/nfs/proc.c | unsigned len = *lenp = ntohl(*p++); |
p | 160 | fs/nfs/proc.c | memcpy_tofs(data, p, len); |
p | 162 | fs/nfs/proc.c | memcpy(data, p, len); |
p | 163 | fs/nfs/proc.c | return p + QUADLEN(len); |
p | 166 | fs/nfs/proc.c | static int *xdr_decode_fattr(int *p, struct nfs_fattr *fattr) |
p | 168 | fs/nfs/proc.c | fattr->type = (enum nfs_ftype) ntohl(*p++); |
p | 169 | fs/nfs/proc.c | fattr->mode = ntohl(*p++); |
p | 170 | fs/nfs/proc.c | fattr->nlink = ntohl(*p++); |
p | 171 | fs/nfs/proc.c | fattr->uid = ntohl(*p++); |
p | 172 | fs/nfs/proc.c | fattr->gid = ntohl(*p++); |
p | 173 | fs/nfs/proc.c | fattr->size = ntohl(*p++); |
p | 174 | fs/nfs/proc.c | fattr->blocksize = ntohl(*p++); |
p | 175 | fs/nfs/proc.c | fattr->rdev = ntohl(*p++); |
p | 176 | fs/nfs/proc.c | fattr->blocks = ntohl(*p++); |
p | 177 | fs/nfs/proc.c | fattr->fsid = ntohl(*p++); |
p | 178 | fs/nfs/proc.c | fattr->fileid = ntohl(*p++); |
p | 179 | fs/nfs/proc.c | fattr->atime.seconds = ntohl(*p++); |
p | 180 | fs/nfs/proc.c | fattr->atime.useconds = ntohl(*p++); |
p | 181 | fs/nfs/proc.c | fattr->mtime.seconds = ntohl(*p++); |
p | 182 | fs/nfs/proc.c | fattr->mtime.useconds = ntohl(*p++); |
p | 183 | fs/nfs/proc.c | fattr->ctime.seconds = ntohl(*p++); |
p | 184 | fs/nfs/proc.c | fattr->ctime.useconds = ntohl(*p++); |
p | 185 | fs/nfs/proc.c | return p; |
p | 188 | fs/nfs/proc.c | static int *xdr_encode_sattr(int *p, struct nfs_sattr *sattr) |
p | 190 | fs/nfs/proc.c | *p++ = htonl(sattr->mode); |
p | 191 | fs/nfs/proc.c | *p++ = htonl(sattr->uid); |
p | 192 | fs/nfs/proc.c | *p++ = htonl(sattr->gid); |
p | 193 | fs/nfs/proc.c | *p++ = htonl(sattr->size); |
p | 194 | fs/nfs/proc.c | *p++ = htonl(sattr->atime.seconds); |
p | 195 | fs/nfs/proc.c | *p++ = htonl(sattr->atime.useconds); |
p | 196 | fs/nfs/proc.c | *p++ = htonl(sattr->mtime.seconds); |
p | 197 | fs/nfs/proc.c | *p++ = htonl(sattr->mtime.useconds); |
p | 198 | fs/nfs/proc.c | return p; |
p | 201 | fs/nfs/proc.c | static int *xdr_decode_entry(int *p, struct nfs_entry *entry) |
p | 203 | fs/nfs/proc.c | entry->fileid = ntohl(*p++); |
p | 204 | fs/nfs/proc.c | if (!(p = xdr_decode_string(p, entry->name, NFS_MAXNAMLEN))) |
p | 206 | fs/nfs/proc.c | entry->cookie = ntohl(*p++); |
p | 208 | fs/nfs/proc.c | return p; |
p | 211 | fs/nfs/proc.c | static int *xdr_decode_fsinfo(int *p, struct nfs_fsinfo *res) |
p | 213 | fs/nfs/proc.c | res->tsize = ntohl(*p++); |
p | 214 | fs/nfs/proc.c | res->bsize = ntohl(*p++); |
p | 215 | fs/nfs/proc.c | res->blocks = ntohl(*p++); |
p | 216 | fs/nfs/proc.c | res->bfree = ntohl(*p++); |
p | 217 | fs/nfs/proc.c | res->bavail = ntohl(*p++); |
p | 218 | fs/nfs/proc.c | return p; |
p | 228 | fs/nfs/proc.c | int *p, *p0; |
p | 236 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_GETATTR, ruid); |
p | 237 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 238 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
p | 242 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 244 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 245 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 264 | fs/nfs/proc.c | int *p, *p0; |
p | 272 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_SETATTR, ruid); |
p | 273 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 274 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 275 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 279 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 281 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 282 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 301 | fs/nfs/proc.c | int *p, *p0; |
p | 313 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_LOOKUP, ruid); |
p | 314 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 315 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 316 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
p | 320 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 322 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 323 | fs/nfs/proc.c | p = xdr_decode_fhandle(p, fhandle); |
p | 324 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 343 | fs/nfs/proc.c | int *p; |
p | 350 | fs/nfs/proc.c | p = nfs_rpc_header(*p0, NFSPROC_READLINK, ruid); |
p | 351 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 352 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, *p0, p, server->rsize)) < 0) |
p | 354 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(*p0))) |
p | 356 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 357 | fs/nfs/proc.c | if (!(p = xdr_decode_string2(p, string, len, maxlen))) { |
p | 378 | fs/nfs/proc.c | int *p, *p0; |
p | 387 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_READ, ruid); |
p | 388 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 389 | fs/nfs/proc.c | *p++ = htonl(offset); |
p | 390 | fs/nfs/proc.c | *p++ = htonl(count); |
p | 391 | fs/nfs/proc.c | *p++ = htonl(count); /* traditional, could be any value */ |
p | 392 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
p | 396 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 398 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 399 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 400 | fs/nfs/proc.c | if (!(p = xdr_decode_data(p, data, &len, count, fs))) { |
p | 424 | fs/nfs/proc.c | int *p, *p0; |
p | 432 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_WRITE, ruid); |
p | 433 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 434 | fs/nfs/proc.c | *p++ = htonl(offset); /* traditional, could be any value */ |
p | 435 | fs/nfs/proc.c | *p++ = htonl(offset); |
p | 436 | fs/nfs/proc.c | *p++ = htonl(count); /* traditional, could be any value */ |
p | 437 | fs/nfs/proc.c | p = xdr_encode_data(p, data, count); |
p | 438 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 442 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 444 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 445 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 465 | fs/nfs/proc.c | int *p, *p0; |
p | 473 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_CREATE, ruid); |
p | 474 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 475 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 476 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 477 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 481 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 483 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 484 | fs/nfs/proc.c | p = xdr_decode_fhandle(p, fhandle); |
p | 485 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 503 | fs/nfs/proc.c | int *p, *p0; |
p | 511 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_REMOVE, ruid); |
p | 512 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 513 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 514 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 518 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 520 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 540 | fs/nfs/proc.c | int *p, *p0; |
p | 548 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_RENAME, ruid); |
p | 549 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, old_dir); |
p | 550 | fs/nfs/proc.c | p = xdr_encode_string(p, old_name); |
p | 551 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, new_dir); |
p | 552 | fs/nfs/proc.c | p = xdr_encode_string(p, new_name); |
p | 553 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 557 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 559 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 578 | fs/nfs/proc.c | int *p, *p0; |
p | 586 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_LINK, ruid); |
p | 587 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 588 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 589 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 590 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 594 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 596 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 615 | fs/nfs/proc.c | int *p, *p0; |
p | 623 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_SYMLINK, ruid); |
p | 624 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 625 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 626 | fs/nfs/proc.c | p = xdr_encode_string(p, path); |
p | 627 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 628 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 632 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 634 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 654 | fs/nfs/proc.c | int *p, *p0; |
p | 662 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_MKDIR, ruid); |
p | 663 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 664 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 665 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 666 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 670 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 672 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 673 | fs/nfs/proc.c | p = xdr_decode_fhandle(p, fhandle); |
p | 674 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 692 | fs/nfs/proc.c | int *p, *p0; |
p | 700 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_RMDIR, ruid); |
p | 701 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 702 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 703 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 707 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 709 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 728 | fs/nfs/proc.c | int *p, *p0; |
p | 740 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_READDIR, ruid); |
p | 741 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 742 | fs/nfs/proc.c | *p++ = htonl(cookie); |
p | 743 | fs/nfs/proc.c | *p++ = htonl(size); |
p | 744 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
p | 748 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 750 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 751 | fs/nfs/proc.c | for (i = 0; i < count && *p++; i++) { |
p | 752 | fs/nfs/proc.c | if (!(p = xdr_decode_entry(p, entry++))) |
p | 755 | fs/nfs/proc.c | if (!p) { |
p | 760 | fs/nfs/proc.c | eof = (i == count && !*p++ && *p++) |
p | 761 | fs/nfs/proc.c | || (i < count && *p++); |
p | 784 | fs/nfs/proc.c | int *p, *p0; |
p | 792 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_STATFS, ruid); |
p | 793 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 794 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
p | 798 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 800 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 801 | fs/nfs/proc.c | p = xdr_decode_fsinfo(p, res); |
p | 821 | fs/nfs/proc.c | int *rpc_header(int *p, int procedure, int program, int version, |
p | 833 | fs/nfs/proc.c | *p++ = htonl(++xid); |
p | 834 | fs/nfs/proc.c | *p++ = htonl(RPC_CALL); |
p | 835 | fs/nfs/proc.c | *p++ = htonl(RPC_VERSION); |
p | 836 | fs/nfs/proc.c | *p++ = htonl(program); |
p | 837 | fs/nfs/proc.c | *p++ = htonl(version); |
p | 838 | fs/nfs/proc.c | *p++ = htonl(procedure); |
p | 839 | fs/nfs/proc.c | *p++ = htonl(RPC_AUTH_UNIX); |
p | 840 | fs/nfs/proc.c | p1 = p++; |
p | 841 | fs/nfs/proc.c | *p++ = htonl(CURRENT_TIME); /* traditional, could be anything */ |
p | 842 | fs/nfs/proc.c | p = xdr_encode_string(p, (char *) sys); |
p | 843 | fs/nfs/proc.c | *p++ = htonl(uid); |
p | 844 | fs/nfs/proc.c | *p++ = htonl(gid); |
p | 845 | fs/nfs/proc.c | p2 = p++; |
p | 847 | fs/nfs/proc.c | *p++ = htonl(groups[i]); |
p | 849 | fs/nfs/proc.c | *p1 = htonl((p - (p1 + 1)) << 2); |
p | 850 | fs/nfs/proc.c | *p++ = htonl(RPC_AUTH_NULL); |
p | 851 | fs/nfs/proc.c | *p++ = htonl(0); |
p | 852 | fs/nfs/proc.c | return p; |
p | 856 | fs/nfs/proc.c | static int *nfs_rpc_header(int *p, int procedure, int ruid) |
p | 858 | fs/nfs/proc.c | return rpc_header(p, procedure, NFS_PROGRAM, NFS_VERSION, |
p | 864 | fs/nfs/proc.c | int *rpc_verify(int *p) |
p | 868 | fs/nfs/proc.c | p++; |
p | 869 | fs/nfs/proc.c | if ((n = ntohl(*p++)) != RPC_REPLY) { |
p | 873 | fs/nfs/proc.c | if ((n = ntohl(*p++)) != RPC_MSG_ACCEPTED) { |
p | 877 | fs/nfs/proc.c | switch (n = ntohl(*p++)) { |
p | 884 | fs/nfs/proc.c | if ((n = ntohl(*p++)) > 400) { |
p | 888 | fs/nfs/proc.c | p += QUADLEN(n); |
p | 889 | fs/nfs/proc.c | if ((n = ntohl(*p++)) != RPC_SUCCESS) { |
p | 893 | fs/nfs/proc.c | return p; |
p | 897 | fs/nfs/proc.c | static int *nfs_rpc_verify(int *p) |
p | 899 | fs/nfs/proc.c | return rpc_verify(p); |
p | 64 | fs/proc/array.c | unsigned long p = file->f_pos, memsize; |
p | 85 | fs/proc/array.c | if (p >= memsize) |
p | 87 | fs/proc/array.c | if (count > memsize - p) |
p | 88 | fs/proc/array.c | count = memsize - p; |
p | 91 | fs/proc/array.c | if (p < sizeof(struct user) && count > 0) { |
p | 93 | fs/proc/array.c | if (p + count1 > sizeof(struct user)) |
p | 94 | fs/proc/array.c | count1 = sizeof(struct user)-p; |
p | 95 | fs/proc/array.c | pnt = (char *) &dump + p; |
p | 98 | fs/proc/array.c | p += count1; |
p | 103 | fs/proc/array.c | while (count > 0 && p < PAGE_SIZE + FIRST_MAPPED) { |
p | 106 | fs/proc/array.c | p++; |
p | 110 | fs/proc/array.c | memcpy_tofs(buf, (void *) (PAGE_OFFSET + p - PAGE_SIZE), count); |
p | 134 | fs/proc/array.c | unsigned long p = file->f_pos; |
p | 141 | fs/proc/array.c | if (p >= (prof_len+1)*sizeof(unsigned int)) |
p | 143 | fs/proc/array.c | if (count > (prof_len+1)*sizeof(unsigned int) - p) |
p | 144 | fs/proc/array.c | count = (prof_len+1)*sizeof(unsigned int) - p; |
p | 147 | fs/proc/array.c | while (p < sizeof(unsigned int) && count > 0) { |
p | 148 | fs/proc/array.c | put_user(*((char *)(&sample_step)+p),buf); |
p | 149 | fs/proc/array.c | buf++; p++; count--; read++; |
p | 151 | fs/proc/array.c | pnt = (char *)prof_buffer + p - sizeof(unsigned int); |
p | 302 | fs/proc/array.c | struct task_struct ** p; |
p | 304 | fs/proc/array.c | p = task; |
p | 305 | fs/proc/array.c | while (++p < task+NR_TASKS) { |
p | 306 | fs/proc/array.c | if (*p && (*p)->pid == pid) |
p | 307 | fs/proc/array.c | return p; |
p | 312 | fs/proc/array.c | static unsigned long get_phys_addr(struct task_struct * p, unsigned long ptr) |
p | 318 | fs/proc/array.c | if (!p || !p->mm || ptr >= TASK_SIZE) |
p | 320 | fs/proc/array.c | page_dir = pgd_offset(p->mm,ptr); |
p | 342 | fs/proc/array.c | static int get_array(struct task_struct ** p, unsigned long start, unsigned long end, char * buffer) |
p | 351 | fs/proc/array.c | addr = get_phys_addr(*p, start); |
p | 377 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
p | 379 | fs/proc/array.c | if (!p || !*p || !(*p)->mm) |
p | 381 | fs/proc/array.c | return get_array(p, (*p)->mm->env_start, (*p)->mm->env_end, buffer); |
p | 386 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
p | 388 | fs/proc/array.c | if (!p || !*p || !(*p)->mm) |
p | 390 | fs/proc/array.c | return get_array(p, (*p)->mm->arg_start, (*p)->mm->arg_end, buffer); |
p | 393 | fs/proc/array.c | static unsigned long get_wchan(struct task_struct *p) |
p | 395 | fs/proc/array.c | if (!p || p == current || p->state == TASK_RUNNING) |
p | 403 | fs/proc/array.c | stack_page = p->kernel_stack_page; |
p | 406 | fs/proc/array.c | ebp = p->tss.ebp; |
p | 431 | fs/proc/array.c | pc = thread_saved_pc(&p->tss); |
p | 433 | fs/proc/array.c | schedule_frame = ((unsigned long *)p->tss.ksp)[6]; |
p | 457 | fs/proc/array.c | struct task_struct ** p = get_task(pid), *tsk; |
p | 464 | fs/proc/array.c | if (!p || (tsk = *p) == NULL) |
p | 625 | fs/proc/array.c | struct task_struct ** p = get_task(pid), *tsk; |
p | 628 | fs/proc/array.c | if (!p || (tsk = *p) == NULL) |
p | 684 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
p | 691 | fs/proc/array.c | if (!p || !*p) |
p | 694 | fs/proc/array.c | if (!(*p)->mm || (*p)->mm == &init_mm || count == 0) |
p | 702 | fs/proc/array.c | for (map = (*p)->mm->mmap, i = 0; map && (i < lineno); map = map->vm_next, i++) |
p | 762 | fs/proc/array.c | if (*p != current) |
p | 54 | fs/proc/base.c | struct task_struct * p; |
p | 58 | fs/proc/base.c | for_each_task(p) { |
p | 59 | fs/proc/base.c | if (p->pid == pid) { |
p | 60 | fs/proc/base.c | if (p->dumpable || ino == PROC_PID_INO) { |
p | 61 | fs/proc/base.c | inode->i_uid = p->euid; |
p | 62 | fs/proc/base.c | inode->i_gid = p->gid; |
p | 59 | fs/proc/fd.c | struct task_struct * p; |
p | 104 | fs/proc/fd.c | if ((p = task[i]) && p->pid == pid) |
p | 109 | fs/proc/fd.c | if (fd >= NR_OPEN || !p->files->fd[fd] || !p->files->fd[fd]->f_inode) |
p | 126 | fs/proc/fd.c | struct task_struct * p; |
p | 148 | fs/proc/fd.c | if ((p = task[task_nr]) && p->pid == pid) |
p | 155 | fs/proc/fd.c | if (!p->files) |
p | 157 | fs/proc/fd.c | if (!p->files->fd[fd] || !p->files->fd[fd]->f_inode) |
p | 173 | fs/proc/fd.c | if (p != task[task_nr] || p->pid != pid) |
p | 135 | fs/proc/inode.c | struct task_struct * p; |
p | 149 | fs/proc/inode.c | p = task[0]; |
p | 151 | fs/proc/inode.c | if ((p = task[i]) && (p->pid == pid)) |
p | 153 | fs/proc/inode.c | if (!p || i >= NR_TASKS) |
p | 196 | fs/proc/inode.c | if (ino == PROC_PID_INO || p->dumpable) { |
p | 197 | fs/proc/inode.c | inode->i_uid = p->euid; |
p | 198 | fs/proc/inode.c | inode->i_gid = p->egid; |
p | 238 | fs/proc/inode.c | if (ino >= NR_OPEN || !p->files->fd[ino]) |
p | 243 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 1) |
p | 245 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 2) |
p | 69 | fs/proc/link.c | struct task_struct * p; |
p | 86 | fs/proc/link.c | if ((p = task[i]) && p->pid == pid) |
p | 95 | fs/proc/link.c | if (!p->fs) |
p | 97 | fs/proc/link.c | new_inode = p->fs->pwd; |
p | 100 | fs/proc/link.c | if (!p->fs) |
p | 102 | fs/proc/link.c | new_inode = p->fs->root; |
p | 106 | fs/proc/link.c | if (!p->mm) |
p | 108 | fs/proc/link.c | vma = p->mm->mmap; |
p | 121 | fs/proc/link.c | if (!p->files) |
p | 124 | fs/proc/link.c | if (ino < NR_OPEN && p->files->fd[ino]) { |
p | 125 | fs/proc/link.c | new_inode = p->files->fd[ino]->f_inode; |
p | 166 | fs/proc/root.c | struct proc_dir_entry **p = &dir->subdir, *dp; |
p | 168 | fs/proc/root.c | while ((dp = *p) != NULL) { |
p | 170 | fs/proc/root.c | *p = dp->next; |
p | 180 | fs/proc/root.c | p = &dp->next; |
p | 566 | fs/proc/root.c | struct task_struct * p = task[nr]; |
p | 568 | 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 | 47 | fs/smbfs/proc.c | smb_encode_word(byte *p, word data) |
p | 50 | fs/smbfs/proc.c | *((word *)p) = data; |
p | 52 | fs/smbfs/proc.c | p[0] = data & 0x00ffU; |
p | 53 | fs/smbfs/proc.c | p[1] = (data & 0xff00U) >> 8; |
p | 56 | fs/smbfs/proc.c | return &p[2]; |
p | 60 | fs/smbfs/proc.c | smb_decode_word(byte *p, word *data) |
p | 63 | fs/smbfs/proc.c | *data = *(word *)p; |
p | 65 | fs/smbfs/proc.c | *data = (word) p[0] | p[1] << 8; |
p | 67 | fs/smbfs/proc.c | return &p[2]; |
p | 71 | fs/smbfs/proc.c | smb_encode_smb_length(byte *p, dword len) |
p | 73 | fs/smbfs/proc.c | p[0] = p[1] = 0; |
p | 74 | fs/smbfs/proc.c | p[2] = (len & 0xFF00) >> 8; |
p | 75 | fs/smbfs/proc.c | p[3] = (len & 0xFF); |
p | 77 | fs/smbfs/proc.c | p[1] |= 0x01; |
p | 78 | fs/smbfs/proc.c | return &p[4]; |
p | 82 | fs/smbfs/proc.c | smb_encode_dialect(byte *p, const byte *name, int len) |
p | 84 | fs/smbfs/proc.c | *p ++ = 2; |
p | 85 | fs/smbfs/proc.c | strcpy(p, name); |
p | 86 | fs/smbfs/proc.c | return p + len + 1; |
p | 90 | fs/smbfs/proc.c | smb_encode_ascii(byte *p, const byte *name, int len) |
p | 92 | fs/smbfs/proc.c | *p ++ = 4; |
p | 93 | fs/smbfs/proc.c | strcpy(p, name); |
p | 94 | fs/smbfs/proc.c | return p + len + 1; |
p | 98 | fs/smbfs/proc.c | smb_encode_vblock(byte *p, const byte *data, word len, int fs) |
p | 100 | fs/smbfs/proc.c | *p ++ = 5; |
p | 101 | fs/smbfs/proc.c | p = smb_encode_word(p, len); |
p | 103 | fs/smbfs/proc.c | memcpy_fromfs(p, data, len); |
p | 105 | fs/smbfs/proc.c | memcpy(p, data, len); |
p | 106 | fs/smbfs/proc.c | return p + len; |
p | 110 | fs/smbfs/proc.c | smb_decode_data(byte *p, byte *data, word *data_len, int fs) |
p | 114 | fs/smbfs/proc.c | if (!(*p == 1 || *p == 5)) { |
p | 119 | fs/smbfs/proc.c | len = WVAL(p, 1); |
p | 120 | fs/smbfs/proc.c | p += 3; |
p | 123 | fs/smbfs/proc.c | memcpy_tofs(data, p, len); |
p | 125 | fs/smbfs/proc.c | memcpy(data, p, len); |
p | 129 | fs/smbfs/proc.c | return p + len; |
p | 133 | fs/smbfs/proc.c | smb_name_mangle(byte *p, const byte *name) |
p | 142 | fs/smbfs/proc.c | *p ++ = 2 * (len + pad); |
p | 145 | fs/smbfs/proc.c | *p ++ = (*name >> 4) + 'A'; |
p | 146 | fs/smbfs/proc.c | *p ++ = (*name & 0x0F) + 'A'; |
p | 150 | fs/smbfs/proc.c | *p ++ = 'C'; |
p | 151 | fs/smbfs/proc.c | *p ++ = 'A'; |
p | 153 | fs/smbfs/proc.c | *p++ = '\0'; |
p | 155 | fs/smbfs/proc.c | return p; |
p | 482 | fs/smbfs/proc.c | byte *p = server->packet; |
p | 485 | fs/smbfs/proc.c | p = smb_encode_smb_length(p, xmit_len); |
p | 487 | fs/smbfs/proc.c | BSET(p,0,0xff); |
p | 488 | fs/smbfs/proc.c | BSET(p,1,'S'); |
p | 489 | fs/smbfs/proc.c | BSET(p,2,'M'); |
p | 490 | fs/smbfs/proc.c | BSET(p,3,'B'); |
p | 491 | fs/smbfs/proc.c | BSET(p,4,command); |
p | 493 | fs/smbfs/proc.c | p += 5; |
p | 494 | fs/smbfs/proc.c | memset(p, '\0', 19); |
p | 495 | fs/smbfs/proc.c | p += 19; |
p | 496 | fs/smbfs/proc.c | p += 8; |
p | 508 | fs/smbfs/proc.c | *p++ = wct; /* wct */ |
p | 509 | fs/smbfs/proc.c | p += 2*wct; |
p | 510 | fs/smbfs/proc.c | WSET(p, 0, bcc); |
p | 511 | fs/smbfs/proc.c | return p+2; |
p | 538 | fs/smbfs/proc.c | char* p; |
p | 547 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBopen, 2, 2 + len); |
p | 550 | fs/smbfs/proc.c | smb_encode_ascii(p, pathname, len); |
p | 563 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBopen, 2, 2 + len); |
p | 566 | fs/smbfs/proc.c | smb_encode_ascii(p, pathname, len); |
p | 681 | fs/smbfs/proc.c | byte *p; |
p | 683 | fs/smbfs/proc.c | p = smb_setup_header_exclusive(server, SMBwrite, 5, count + 3); |
p | 689 | fs/smbfs/proc.c | *p++ = 1; |
p | 690 | fs/smbfs/proc.c | WSET(p, 0, count); |
p | 691 | fs/smbfs/proc.c | memcpy_fromfs(p+2, data, count); |
p | 764 | fs/smbfs/proc.c | char *p; |
p | 769 | fs/smbfs/proc.c | p = smb_setup_header(server, command, 3, len + 2); |
p | 772 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
p | 810 | fs/smbfs/proc.c | char *p; |
p | 817 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBmv, 1, olen + nlen + 4); |
p | 819 | fs/smbfs/proc.c | p = smb_encode_ascii(p, opath, olen); |
p | 820 | fs/smbfs/proc.c | smb_encode_ascii(p, npath, olen); |
p | 834 | fs/smbfs/proc.c | char *p; |
p | 840 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBmkdir, 0, 2 + len); |
p | 841 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
p | 855 | fs/smbfs/proc.c | char *p; |
p | 861 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBrmdir, 0, 2 + len); |
p | 862 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
p | 876 | fs/smbfs/proc.c | char *p; |
p | 883 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBunlink, 1, 2 + len); |
p | 885 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
p | 899 | fs/smbfs/proc.c | char *p; |
p | 906 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBwrite, 5, 3); |
p | 911 | fs/smbfs/proc.c | smb_encode_ascii(p, "", 0); |
p | 923 | fs/smbfs/proc.c | smb_decode_dirent(char *p, struct smb_dirent *entry) |
p | 925 | fs/smbfs/proc.c | p += SMB_STATUS_SIZE; /* reserved (search_status) */ |
p | 926 | fs/smbfs/proc.c | entry->attr = BVAL(p, 0); |
p | 928 | fs/smbfs/proc.c | date_dos2unix(WVAL(p, 1), WVAL(p, 3)); |
p | 929 | fs/smbfs/proc.c | entry->size = DVAL(p, 5); |
p | 930 | fs/smbfs/proc.c | memcpy(entry->path, p+9, 13); |
p | 932 | fs/smbfs/proc.c | return p + 22; |
p | 943 | fs/smbfs/proc.c | char *p; |
p | 974 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBsearch, 2, |
p | 978 | fs/smbfs/proc.c | p = smb_encode_ascii(p, mask, strlen(mask)); |
p | 979 | fs/smbfs/proc.c | *p ++ = 5; |
p | 980 | fs/smbfs/proc.c | p = smb_encode_word(p, 0); |
p | 982 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBsearch, 2, |
p | 986 | fs/smbfs/proc.c | p = smb_encode_ascii(p, "", 0); |
p | 987 | fs/smbfs/proc.c | p = smb_encode_vblock(p, status, SMB_STATUS_SIZE, 0); |
p | 1006 | fs/smbfs/proc.c | p = SMB_VWV(server->packet); |
p | 1007 | fs/smbfs/proc.c | p = smb_decode_word(p, &count); /* vwv[0] = count-returned */ |
p | 1008 | fs/smbfs/proc.c | p = smb_decode_word(p, &bcc); |
p | 1021 | fs/smbfs/proc.c | p += 3; /* Skipping VBLOCK header (5, length lo, length hi). */ |
p | 1033 | fs/smbfs/proc.c | p += SMB_DIRINFO_SIZE; |
p | 1044 | fs/smbfs/proc.c | p = smb_decode_dirent(p, current_entry); |
p | 1064 | fs/smbfs/proc.c | smb_decode_long_dirent(char *p, struct smb_dirent *finfo, int level) |
p | 1080 | fs/smbfs/proc.c | strcpy(finfo->path,p+27); |
p | 1082 | fs/smbfs/proc.c | finfo->size = DVAL(p,16); |
p | 1083 | fs/smbfs/proc.c | finfo->attr = BVAL(p,24); |
p | 1085 | fs/smbfs/proc.c | finfo->ctime = date_dos2unix(WVAL(p, 6), WVAL(p, 4)); |
p | 1086 | fs/smbfs/proc.c | finfo->atime = date_dos2unix(WVAL(p, 10), WVAL(p, 8)); |
p | 1087 | fs/smbfs/proc.c | finfo->mtime = date_dos2unix(WVAL(p, 14), WVAL(p, 12)); |
p | 1089 | fs/smbfs/proc.c | result = p + 28 + BVAL(p,26); |
p | 1095 | fs/smbfs/proc.c | strcpy(finfo->path,p+31); |
p | 1097 | fs/smbfs/proc.c | finfo->size = DVAL(p,16); |
p | 1098 | fs/smbfs/proc.c | finfo->attr = BVAL(p,24); |
p | 1100 | fs/smbfs/proc.c | finfo->atime = make_unix_date2(p+8); |
p | 1101 | fs/smbfs/proc.c | finfo->mtime = make_unix_date2(p+12); |
p | 1104 | fs/smbfs/proc.c | result = p + 32 + BVAL(p,30); |
p | 1108 | fs/smbfs/proc.c | result = p + WVAL(p,0); |
p | 1112 | fs/smbfs/proc.c | p += 4; /* next entry offset */ |
p | 1113 | fs/smbfs/proc.c | p += 4; /* fileindex */ |
p | 1115 | fs/smbfs/proc.c | p += 8; |
p | 1117 | fs/smbfs/proc.c | p += 8; |
p | 1118 | fs/smbfs/proc.c | p += 8; /* write time */ |
p | 1120 | fs/smbfs/proc.c | p += 8; |
p | 1121 | fs/smbfs/proc.c | finfo->size = DVAL(p,0); |
p | 1122 | fs/smbfs/proc.c | p += 8; |
p | 1123 | fs/smbfs/proc.c | p += 8; /* alloc size */ |
p | 1124 | fs/smbfs/proc.c | finfo->attr = BVAL(p,0); |
p | 1125 | fs/smbfs/proc.c | p += 4; |
p | 1126 | fs/smbfs/proc.c | namelen = min(DVAL(p,0), SMB_MAXNAMELEN); |
p | 1127 | fs/smbfs/proc.c | p += 4; |
p | 1128 | fs/smbfs/proc.c | p += 4; /* EA size */ |
p | 1129 | fs/smbfs/proc.c | p += 2; /* short name len? */ |
p | 1130 | fs/smbfs/proc.c | p += 24; /* short name? */ |
p | 1131 | fs/smbfs/proc.c | strncpy(finfo->path,p,namelen); |
p | 1138 | fs/smbfs/proc.c | result = p + WVAL(p,0); |
p | 1153 | fs/smbfs/proc.c | char *p; |
p | 1224 | fs/smbfs/proc.c | p = SMB_BUF(outbuf); |
p | 1225 | fs/smbfs/proc.c | *p++=0; /* put in a null smb_name */ |
p | 1226 | fs/smbfs/proc.c | *p++='D'; *p++ = ' '; /* this was added because OS/2 does it */ |
p | 1230 | fs/smbfs/proc.c | WSET(p,0,attribute); /* attribute */ |
p | 1231 | fs/smbfs/proc.c | WSET(p,2,max_matches); /* max count */ |
p | 1232 | fs/smbfs/proc.c | WSET(p,4,8+4+2); /* resume required + close on end + |
p | 1234 | fs/smbfs/proc.c | WSET(p,6,info_level); |
p | 1235 | fs/smbfs/proc.c | DSET(p,8,0); |
p | 1236 | fs/smbfs/proc.c | p += 12; |
p | 1237 | fs/smbfs/proc.c | strncpy(p, mask, masklen); |
p | 1238 | fs/smbfs/proc.c | p += masklen; |
p | 1239 | fs/smbfs/proc.c | *p++ = 0; *p++ = 0; |
p | 1245 | fs/smbfs/proc.c | WSET(p,0,ff_dir_handle); |
p | 1246 | fs/smbfs/proc.c | WSET(p,2,max_matches); /* max count */ |
p | 1247 | fs/smbfs/proc.c | WSET(p,4,info_level); |
p | 1248 | fs/smbfs/proc.c | DSET(p,6,ff_resume_key); /* ff_resume_key */ |
p | 1249 | fs/smbfs/proc.c | WSET(p,10,8+4+2); /* resume required + close on end + |
p | 1251 | fs/smbfs/proc.c | p += 12; |
p | 1252 | fs/smbfs/proc.c | strncpy(p, mask, masklen); |
p | 1253 | fs/smbfs/proc.c | p += masklen; |
p | 1254 | fs/smbfs/proc.c | *p++ = 0; *p++ = 0; |
p | 1277 | fs/smbfs/proc.c | p = resp_param; |
p | 1280 | fs/smbfs/proc.c | ff_dir_handle = WVAL(p,0); |
p | 1281 | fs/smbfs/proc.c | ff_searchcount = WVAL(p,2); |
p | 1282 | fs/smbfs/proc.c | ff_eos = WVAL(p,4); |
p | 1283 | fs/smbfs/proc.c | ff_lastname = WVAL(p,8); |
p | 1287 | fs/smbfs/proc.c | ff_searchcount = WVAL(p,0); |
p | 1288 | fs/smbfs/proc.c | ff_eos = WVAL(p,2); |
p | 1289 | fs/smbfs/proc.c | ff_lastname = WVAL(p,6); |
p | 1296 | fs/smbfs/proc.c | p = resp_data; |
p | 1305 | fs/smbfs/proc.c | strcpy(mask,p+ff_lastname+94); |
p | 1308 | fs/smbfs/proc.c | strcpy(mask,p + ff_lastname + 1); |
p | 1320 | fs/smbfs/proc.c | p = smb_decode_long_dirent(p, NULL, |
p | 1331 | fs/smbfs/proc.c | p = smb_decode_long_dirent(p, current_entry, |
p | 1388 | fs/smbfs/proc.c | char *p; |
p | 1396 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBgetatr, 0, 2 + len); |
p | 1397 | fs/smbfs/proc.c | smb_encode_ascii(p, path, len); |
p | 1482 | fs/smbfs/proc.c | char *p; |
p | 1489 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBsetatr, 8, 4 + len); |
p | 1492 | fs/smbfs/proc.c | p = smb_encode_ascii(p, path, len); |
p | 1493 | fs/smbfs/proc.c | p = smb_encode_ascii(p, "", 0); |
p | 1555 | fs/smbfs/proc.c | char *p; |
p | 1571 | fs/smbfs/proc.c | p = SMB_VWV(server->packet); |
p | 1572 | fs/smbfs/proc.c | p = smb_decode_word(p, &attr->total); |
p | 1573 | fs/smbfs/proc.c | p = smb_decode_word(p, &attr->allocblocks); |
p | 1574 | fs/smbfs/proc.c | p = smb_decode_word(p, &attr->blocksize); |
p | 1575 | fs/smbfs/proc.c | p = smb_decode_word(p, &attr->free); |
p | 1619 | fs/smbfs/proc.c | byte *p; |
p | 1646 | fs/smbfs/proc.c | p = server->packet + 4; |
p | 1648 | fs/smbfs/proc.c | p = smb_name_mangle(p, server->m.server_name); |
p | 1649 | fs/smbfs/proc.c | p = smb_name_mangle(p, server->m.client_name); |
p | 1652 | fs/smbfs/proc.c | (void *)p - (void *)(server->packet)); |
p | 1690 | fs/smbfs/proc.c | p = SMB_BUF(server->packet); |
p | 1693 | fs/smbfs/proc.c | p = smb_encode_dialect(p,prots[i].name, strlen(prots[i].name)); |
p | 1706 | fs/smbfs/proc.c | p = SMB_VWV(server->packet); |
p | 1707 | fs/smbfs/proc.c | p = smb_decode_word(p, (word *)&i); |
p | 1760 | fs/smbfs/proc.c | p = SMB_BUF(server->packet); |
p | 1761 | fs/smbfs/proc.c | strcpy(p, server->m.password); |
p | 1762 | fs/smbfs/proc.c | p += passlen + 1; |
p | 1763 | fs/smbfs/proc.c | strcpy(p, server->m.username); |
p | 1764 | fs/smbfs/proc.c | p += userlen + 1; |
p | 1765 | fs/smbfs/proc.c | strcpy(p, workgroup); |
p | 1766 | fs/smbfs/proc.c | p += strlen(p) + 1; |
p | 1767 | fs/smbfs/proc.c | strcpy(p, OS_id); |
p | 1768 | fs/smbfs/proc.c | p += strlen(p) + 1; |
p | 1769 | fs/smbfs/proc.c | strcpy(p, client_id); |
p | 1784 | fs/smbfs/proc.c | p = SMB_BUF(server->packet); |
p | 1785 | fs/smbfs/proc.c | strcpy(p, server->m.password); |
p | 1786 | fs/smbfs/proc.c | p += passlen + 1; |
p | 1787 | fs/smbfs/proc.c | strcpy(p, server->m.username); |
p | 1812 | fs/smbfs/proc.c | p = SMB_BUF(server->packet); |
p | 1813 | fs/smbfs/proc.c | p = smb_encode_ascii(p, server->m.service, strlen(server->m.service)); |
p | 1814 | fs/smbfs/proc.c | p = smb_encode_ascii(p,server->m.password, strlen(server->m.password)); |
p | 1815 | fs/smbfs/proc.c | p = smb_encode_ascii(p, dev, strlen(dev)); |
p | 1825 | fs/smbfs/proc.c | p = SMB_VWV(server->packet); |
p | 1826 | fs/smbfs/proc.c | p = smb_decode_word(p, &server->max_xmit); |
p | 1831 | fs/smbfs/proc.c | p = smb_decode_word(p, &server->tid); |
p | 207 | fs/sysv/file.c | char * p; |
p | 250 | fs/sysv/file.c | p = (pos & sb->sv_block_size_1) + bh->b_data; |
p | 257 | fs/sysv/file.c | memcpy_fromfs(p,buf,c); |
p | 640 | fs/sysv/inode.c | unsigned long *p; |
p | 644 | fs/sysv/inode.c | p = inode->u.sysv_i.i_data + nr; |
p | 646 | fs/sysv/inode.c | tmp = *p; |
p | 649 | fs/sysv/inode.c | if (tmp == *p) |
p | 660 | fs/sysv/inode.c | if (*p) { |
p | 665 | fs/sysv/inode.c | *p = tmp; |
p | 676 | fs/sysv/inode.c | sysv_zone_t *p; |
p | 690 | fs/sysv/inode.c | p = nr + (sysv_zone_t *) bh->b_data; |
p | 692 | fs/sysv/inode.c | block = tmp = *p; |
p | 697 | fs/sysv/inode.c | if (tmp == *p) { |
p | 714 | fs/sysv/inode.c | if (*p) { |
p | 719 | fs/sysv/inode.c | *p = (sb->sv_convert ? to_coh_ulong(block) : block); |
p | 774 | fs/sysv/inode.c | static inline unsigned long read3byte (char * p) |
p | 776 | fs/sysv/inode.c | return (unsigned long)(*(unsigned short *)p) |
p | 777 | fs/sysv/inode.c | | (unsigned long)(*(unsigned char *)(p+2)) << 16; |
p | 780 | fs/sysv/inode.c | static inline void write3byte (char * p, unsigned long val) |
p | 782 | fs/sysv/inode.c | *(unsigned short *)p = (unsigned short) val; |
p | 783 | fs/sysv/inode.c | *(unsigned char *)(p+2) = val >> 16; |
p | 786 | fs/sysv/inode.c | static inline unsigned long coh_read3byte (char * p) |
p | 788 | fs/sysv/inode.c | return (unsigned long)(*(unsigned char *)p) << 16 |
p | 789 | fs/sysv/inode.c | | (unsigned long)(*(unsigned short *)(p+1)); |
p | 792 | fs/sysv/inode.c | static inline void coh_write3byte (char * p, unsigned long val) |
p | 794 | fs/sysv/inode.c | *(unsigned char *)p = val >> 16; |
p | 795 | fs/sysv/inode.c | *(unsigned short *)(p+1) = (unsigned short) val; |
p | 44 | fs/sysv/truncate.c | unsigned long * p; |
p | 52 | fs/sysv/truncate.c | p = inode->u.sysv_i.i_data + i; |
p | 53 | fs/sysv/truncate.c | block = *p; |
p | 61 | fs/sysv/truncate.c | if ((bh && bh->b_count != 1) || (block != *p)) { |
p | 66 | fs/sysv/truncate.c | *p = 0; |
p | 74 | fs/sysv/truncate.c | static int trunc_indirect(struct inode * inode, unsigned long offset, unsigned long * p, int convert, unsigned char * dirt) |
p | 85 | fs/sysv/truncate.c | indblock = indtmp = *p; |
p | 92 | fs/sysv/truncate.c | if (indtmp != *p) { |
p | 97 | fs/sysv/truncate.c | *p = 0; |
p | 131 | fs/sysv/truncate.c | if ((indbh->b_count != 1) || (indtmp != *p)) { |
p | 135 | fs/sysv/truncate.c | *p = 0; |
p | 143 | fs/sysv/truncate.c | static int trunc_dindirect(struct inode * inode, unsigned long offset, unsigned long * p, int convert, unsigned char * dirt) |
p | 153 | fs/sysv/truncate.c | indblock = indtmp = *p; |
p | 160 | fs/sysv/truncate.c | if (indtmp != *p) { |
p | 165 | fs/sysv/truncate.c | *p = 0; |
p | 188 | fs/sysv/truncate.c | if ((indbh->b_count != 1) || (indtmp != *p)) { |
p | 192 | fs/sysv/truncate.c | *p = 0; |
p | 200 | fs/sysv/truncate.c | static int trunc_tindirect(struct inode * inode, unsigned long offset, unsigned long * p, int convert, unsigned char * dirt) |
p | 210 | fs/sysv/truncate.c | indblock = indtmp = *p; |
p | 217 | fs/sysv/truncate.c | if (indtmp != *p) { |
p | 222 | fs/sysv/truncate.c | *p = 0; |
p | 245 | fs/sysv/truncate.c | if ((indbh->b_count != 1) || (indtmp != *p)) { |
p | 249 | fs/sysv/truncate.c | *p = 0; |
p | 230 | fs/umsdos/inode.c | || inode->u.umsdos_i.u.dir_info.p != NULL)){ |
p | 234 | fs/umsdos/inode.c | ,inode->u.umsdos_i.u.dir_info.p)); |
p | 37 | fs/umsdos/namei.c | sleep_on(&dir->u.umsdos_i.u.dir_info.p); |
p | 48 | fs/umsdos/namei.c | sleep_on(&dir->u.umsdos_i.u.dir_info.p); |
p | 137 | fs/umsdos/namei.c | wake_up (&dir->u.umsdos_i.u.dir_info.p); |
p | 149 | fs/umsdos/namei.c | wake_up (&dir->u.umsdos_i.u.dir_info.p); |
p | 93 | fs/vfat/namei.c | unsigned char *p = (unsigned char *) de; |
p | 96 | fs/vfat/namei.c | for (i = 0; i < 32; i++, p++) { |
p | 97 | fs/vfat/namei.c | printk("%02x ", *p); |
p | 292 | fs/vfat/namei.c | char *p; |
p | 313 | fs/vfat/namei.c | for (i = 0, p = msdos_name, ip = name; i < len; i++, p++, ip++) |
p | 316 | fs/vfat/namei.c | *p = *ip + 32; |
p | 318 | fs/vfat/namei.c | *p = *ip; |
p | 368 | fs/vfat/namei.c | for (baselen = i = 0, p = base, ip = name; i < sz && baselen < 8; i++) |
p | 372 | fs/vfat/namei.c | *p = *ip + 32; |
p | 374 | fs/vfat/namei.c | *p = *ip; |
p | 376 | fs/vfat/namei.c | p++; baselen++; |
p | 388 | fs/vfat/namei.c | for (p = ext, ip = ext_start; extlen < 3 && ip < end; ip++) { |
p | 391 | fs/vfat/namei.c | *p = *ip + 32; |
p | 393 | fs/vfat/namei.c | *p = *ip; |
p | 395 | fs/vfat/namei.c | if (strchr(replace_chars, *p)) *p='_'; |
p | 397 | fs/vfat/namei.c | p++; |
p | 122 | include/asm-alpha/bitops.h | unsigned long * p = ((unsigned long *) addr) + (offset >> 6); |
p | 131 | include/asm-alpha/bitops.h | tmp = *(p++); |
p | 141 | include/asm-alpha/bitops.h | if (~(tmp = *(p++))) |
p | 148 | include/asm-alpha/bitops.h | tmp = *p; |
p | 106 | include/asm-alpha/io.h | # define inb(p) _inb((p)) |
p | 109 | include/asm-alpha/io.h | # define inw(p) _inw((p)) |
p | 112 | include/asm-alpha/io.h | # define inl(p) _inl((p)) |
p | 115 | include/asm-alpha/io.h | # define outb(b,p) _outb((b),(p)) |
p | 118 | include/asm-alpha/io.h | # define outw(w,p) _outw((w),(p)) |
p | 121 | include/asm-alpha/io.h | # define outl(l,p) _outl((l),(p)) |
p | 56 | include/asm-alpha/mmu_context.h | extern inline void get_mmu_context(struct task_struct *p) |
p | 60 | include/asm-alpha/mmu_context.h | struct mm_struct * mm = p->mm; |
p | 77 | include/asm-alpha/mmu_context.h | p->tss.asn = asn & ~ASN_VERSION_MASK; /* just asn */ |
p | 57 | include/asm-alpha/system.h | #define switch_to(p) do { \ |
p | 58 | include/asm-alpha/system.h | current_set[0] = 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 | 99 | include/asm-i386/bitops.h | unsigned long * p = ((unsigned long *) addr) + (offset >> 5); |
p | 112 | include/asm-i386/bitops.h | : "r" (~(*p >> bit))); |
p | 116 | include/asm-i386/bitops.h | p++; |
p | 121 | 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 | 188 | include/asm-mips/bitops.h | unsigned long * p = ((unsigned long *) addr) + (offset >> 5); |
p | 205 | include/asm-mips/bitops.h | : "r" (*p >> bit), |
p | 212 | include/asm-mips/bitops.h | p++; |
p | 217 | include/asm-mips/bitops.h | res = find_first_zero_bit (p, size - 32 * (p - (unsigned long *) addr)); |
p | 125 | include/asm-mips/types.h | static __inline__ int __FD_ISSET(unsigned long fd, fd_set *p) |
p | 129 | include/asm-mips/types.h | return (p->fds_bits[_tmp] & (1UL<<_rem)) != 0; |
p | 137 | include/asm-mips/types.h | static __inline__ void __FD_ZERO(fd_set *p) |
p | 139 | include/asm-mips/types.h | unsigned int *tmp = p->fds_bits; |
p | 95 | include/asm-ppc/types.h | static __inline__ int __FD_ISSET(unsigned long fd, fd_set *p) |
p | 99 | include/asm-ppc/types.h | return (p->fds_bits[_tmp] & (1UL<<_rem)) != 0; |
p | 107 | include/asm-ppc/types.h | static __inline__ void __FD_ZERO(fd_set *p) |
p | 109 | include/asm-ppc/types.h | unsigned int *tmp = p->fds_bits; |
p | 92 | include/asm-sparc/bitops.h | unsigned long *p = ((unsigned long *) addr) + (offset >> 5); |
p | 101 | include/asm-sparc/bitops.h | tmp = *(p++); |
p | 111 | include/asm-sparc/bitops.h | if (~(tmp = *(p++))) |
p | 118 | include/asm-sparc/bitops.h | tmp = *p; |
p | 178 | include/asm-sparc/bitops.h | unsigned long *p = ((unsigned long *) addr) + (offset >> 5); |
p | 187 | include/asm-sparc/bitops.h | tmp = *(p++); |
p | 197 | include/asm-sparc/bitops.h | if(~(tmp = *(p++))) |
p | 204 | include/asm-sparc/bitops.h | tmp = *p; |
p | 46 | include/asm-sparc/system.h | #define switch_to(p) do { \ |
p | 48 | include/asm-sparc/system.h | switch_to_context(p); \ |
p | 49 | include/asm-sparc/system.h | sparc_switch_to(p); \ |
p | 95 | include/asm-sparc/types.h | static __inline__ int __FD_ISSET(unsigned long fd, fd_set *p) |
p | 99 | include/asm-sparc/types.h | return (p->fds_bits[_tmp] & (1UL<<_rem)) != 0; |
p | 107 | include/asm-sparc/types.h | static __inline__ void __FD_ZERO(fd_set *p) |
p | 109 | include/asm-sparc/types.h | unsigned int *tmp = p->fds_bits; |
p | 19 | include/linux/binfmts.h | unsigned long p; |
p | 53 | include/linux/binfmts.h | extern unsigned long * create_tables(char * p,struct linux_binprm * bprm,int ibcs); |
p | 55 | include/linux/binfmts.h | unsigned long p, int from_kmem); |
p | 102 | include/linux/ncp_fs.h | #define ncp_kmalloc(s,p) kmalloc(s,p) |
p | 88 | include/linux/nfs_fs.h | extern int *rpc_header(int *p, int procedure, int program, int version, |
p | 90 | include/linux/nfs_fs.h | extern int *rpc_verify(int *p); |
p | 66 | include/linux/pagemap.h | struct page **p = &page_hash(page->inode,page->offset); |
p | 73 | include/linux/pagemap.h | if (*p == page) |
p | 74 | include/linux/pagemap.h | *p = page->next_hash; |
p | 80 | include/linux/pagemap.h | struct page **p = &page_hash(inode,page->offset); |
p | 86 | include/linux/pagemap.h | if ((page->next_hash = *p) != NULL) |
p | 88 | include/linux/pagemap.h | *p = page; |
p | 109 | include/linux/pagemap.h | struct page **p = &inode->i_pages; |
p | 114 | include/linux/pagemap.h | if ((page->next = *p) != NULL) |
p | 116 | include/linux/pagemap.h | *p = page; |
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 | 222 | include/linux/proc_fs.h | struct proc_dir_entry **p = &driver->subdir, *dp; |
p | 225 | include/linux/proc_fs.h | while ((dp = *p) != NULL) { |
p | 228 | include/linux/proc_fs.h | p = &dp->next; |
p | 337 | include/linux/sched.h | extern void sleep_on(struct wait_queue ** p); |
p | 338 | include/linux/sched.h | extern void interruptible_sleep_on(struct wait_queue ** p); |
p | 339 | include/linux/sched.h | extern void wake_up(struct wait_queue ** p); |
p | 340 | include/linux/sched.h | extern void wake_up_interruptible(struct wait_queue ** p); |
p | 344 | include/linux/sched.h | extern int send_sig(unsigned long sig,struct task_struct * p,int priv); |
p | 382 | include/linux/sched.h | extern inline void add_wait_queue(struct wait_queue ** p, struct wait_queue * wait) |
p | 397 | include/linux/sched.h | if (!*p) { |
p | 399 | include/linux/sched.h | *p = wait; |
p | 401 | include/linux/sched.h | wait->next = (*p)->next; |
p | 402 | include/linux/sched.h | (*p)->next = wait; |
p | 407 | include/linux/sched.h | extern inline void remove_wait_queue(struct wait_queue ** p, struct wait_queue * wait) |
p | 417 | include/linux/sched.h | if ((*p == wait) && |
p | 421 | include/linux/sched.h | ((*p = wait->next) == wait)) { |
p | 422 | include/linux/sched.h | *p = NULL; |
p | 428 | include/linux/sched.h | if (tmp == *p) |
p | 441 | include/linux/sched.h | printk("list = %08lx, queue = %08lx\n",(unsigned long) p, (unsigned long) wait); |
p | 448 | include/linux/sched.h | extern inline void select_wait(struct wait_queue ** wait_address, select_table * p) |
p | 452 | include/linux/sched.h | if (!p || !wait_address) |
p | 454 | include/linux/sched.h | if (p->nr >= __MAX_SELECT_TABLE_ENTRIES) |
p | 456 | include/linux/sched.h | entry = p->entry + p->nr; |
p | 461 | include/linux/sched.h | p->nr++; |
p | 482 | include/linux/sched.h | #define REMOVE_LINKS(p) do { unsigned long flags; \ |
p | 484 | include/linux/sched.h | (p)->next_task->prev_task = (p)->prev_task; \ |
p | 485 | include/linux/sched.h | (p)->prev_task->next_task = (p)->next_task; \ |
p | 487 | include/linux/sched.h | if ((p)->p_osptr) \ |
p | 488 | include/linux/sched.h | (p)->p_osptr->p_ysptr = (p)->p_ysptr; \ |
p | 489 | include/linux/sched.h | if ((p)->p_ysptr) \ |
p | 490 | include/linux/sched.h | (p)->p_ysptr->p_osptr = (p)->p_osptr; \ |
p | 492 | include/linux/sched.h | (p)->p_pptr->p_cptr = (p)->p_osptr; \ |
p | 495 | include/linux/sched.h | #define SET_LINKS(p) do { unsigned long flags; \ |
p | 497 | include/linux/sched.h | (p)->next_task = &init_task; \ |
p | 498 | include/linux/sched.h | (p)->prev_task = init_task.prev_task; \ |
p | 499 | include/linux/sched.h | init_task.prev_task->next_task = (p); \ |
p | 500 | include/linux/sched.h | init_task.prev_task = (p); \ |
p | 502 | include/linux/sched.h | (p)->p_ysptr = NULL; \ |
p | 503 | include/linux/sched.h | if (((p)->p_osptr = (p)->p_pptr->p_cptr) != NULL) \ |
p | 504 | include/linux/sched.h | (p)->p_osptr->p_ysptr = p; \ |
p | 505 | include/linux/sched.h | (p)->p_pptr->p_cptr = p; \ |
p | 508 | include/linux/sched.h | #define for_each_task(p) \ |
p | 509 | 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 | 77 | include/linux/smb_fs.h | #define smb_kmalloc(s,p) kmalloc(s,p) |
p | 124 | 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 | 105 | include/linux/ultrasound.h | #define GUS_VOICEFREQ(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICEFREQ, \ |
p | 106 | include/linux/ultrasound.h | (p) & 0xffff, ((p) >> 16) & 0xffff) |
p | 115 | include/linux/ultrasound.h | #define GUS_VOICE_POS(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICE_POS, \ |
p | 116 | include/linux/ultrasound.h | (p) & 0xffff, ((p) >> 16) & 0xffff) |
p | 48 | include/linux/umsdos_fs_i.h | struct wait_queue *p; |
p | 36 | include/linux/wrapper.h | #define mem_map_reserve(p) mem_map[p].reserved = 1 |
p | 37 | include/linux/wrapper.h | #define mem_map_unreserve(p) mem_map[p].reserved = 0 |
p | 38 | include/linux/wrapper.h | #define mem_map_inc_count(p) mem_map[p].count++ |
p | 39 | include/linux/wrapper.h | #define mem_map_dec_count(p) mem_map[p].count-- |
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_kernel_stack(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 | 444 | kernel/exit.c | struct task_struct * p; |
p | 474 | kernel/exit.c | while ((p = current->p_cptr) != NULL) { |
p | 475 | kernel/exit.c | current->p_cptr = p->p_osptr; |
p | 476 | kernel/exit.c | p->p_ysptr = NULL; |
p | 477 | kernel/exit.c | p->flags &= ~(PF_PTRACED|PF_TRACESYS); |
p | 479 | kernel/exit.c | p->p_pptr = task[smp_num_cpus]; |
p | 481 | kernel/exit.c | p->p_pptr = task[0]; |
p | 482 | kernel/exit.c | p->p_osptr = p->p_pptr->p_cptr; |
p | 483 | kernel/exit.c | p->p_osptr->p_ysptr = p; |
p | 484 | kernel/exit.c | p->p_pptr->p_cptr = p; |
p | 485 | kernel/exit.c | if (p->state == TASK_ZOMBIE) |
p | 486 | kernel/exit.c | notify_parent(p); |
p | 493 | kernel/exit.c | if ((p->pgrp != current->pgrp) && |
p | 494 | kernel/exit.c | (p->session == current->session) && |
p | 495 | kernel/exit.c | is_orphaned_pgrp(p->pgrp) && |
p | 496 | kernel/exit.c | has_stopped_jobs(p->pgrp)) { |
p | 497 | kernel/exit.c | kill_pg(p->pgrp,SIGHUP,1); |
p | 498 | kernel/exit.c | kill_pg(p->pgrp,SIGCONT,1); |
p | 557 | kernel/exit.c | struct task_struct *p; |
p | 572 | kernel/exit.c | for (p = current->p_cptr ; p ; p = p->p_osptr) { |
p | 574 | kernel/exit.c | if (p->pid != pid) |
p | 577 | kernel/exit.c | if (p->pgrp != current->pgrp) |
p | 580 | kernel/exit.c | if (p->pgrp != -pid) |
p | 584 | kernel/exit.c | if ((p->exit_signal != SIGCHLD) ^ ((options & __WCLONE) != 0)) |
p | 587 | kernel/exit.c | switch (p->state) { |
p | 589 | kernel/exit.c | if (!p->exit_code) |
p | 591 | kernel/exit.c | if (!(options & WUNTRACED) && !(p->flags & PF_PTRACED)) |
p | 594 | kernel/exit.c | getrusage(p, RUSAGE_BOTH, ru); |
p | 596 | kernel/exit.c | put_user((p->exit_code << 8) | 0x7f, |
p | 598 | kernel/exit.c | p->exit_code = 0; |
p | 599 | kernel/exit.c | retval = p->pid; |
p | 602 | kernel/exit.c | current->cutime += p->utime + p->cutime; |
p | 603 | kernel/exit.c | current->cstime += p->stime + p->cstime; |
p | 605 | kernel/exit.c | getrusage(p, RUSAGE_BOTH, ru); |
p | 607 | kernel/exit.c | put_user(p->exit_code, stat_addr); |
p | 608 | kernel/exit.c | retval = p->pid; |
p | 609 | kernel/exit.c | if (p->p_opptr != p->p_pptr) { |
p | 610 | kernel/exit.c | REMOVE_LINKS(p); |
p | 611 | kernel/exit.c | p->p_pptr = p->p_opptr; |
p | 612 | kernel/exit.c | SET_LINKS(p); |
p | 613 | kernel/exit.c | notify_parent(p); |
p | 615 | kernel/exit.c | release(p); |
p | 35 | kernel/fork.c | struct task_struct *p; |
p | 45 | kernel/fork.c | for_each_task (p) { |
p | 46 | kernel/fork.c | if (p->uid == current->uid) |
p | 62 | kernel/fork.c | struct task_struct *p; |
p | 69 | kernel/fork.c | for_each_task (p) { |
p | 70 | kernel/fork.c | if (p->pid == last_pid || |
p | 71 | kernel/fork.c | p->pgrp == last_pid || |
p | 72 | kernel/fork.c | p->session == last_pid) |
p | 80 | kernel/fork.c | struct vm_area_struct * mpnt, **p, *tmp; |
p | 83 | kernel/fork.c | p = &mm->mmap; |
p | 107 | kernel/fork.c | *p = tmp; |
p | 108 | kernel/fork.c | p = &tmp->vm_next; |
p | 204 | kernel/fork.c | struct task_struct *p; |
p | 206 | kernel/fork.c | p = (struct task_struct *) kmalloc(sizeof(*p), GFP_KERNEL); |
p | 207 | kernel/fork.c | if (!p) |
p | 217 | kernel/fork.c | *p = *current; |
p | 219 | kernel/fork.c | if (p->exec_domain && p->exec_domain->use_count) |
p | 220 | kernel/fork.c | (*p->exec_domain->use_count)++; |
p | 221 | kernel/fork.c | if (p->binfmt && p->binfmt->use_count) |
p | 222 | kernel/fork.c | (*p->binfmt->use_count)++; |
p | 224 | kernel/fork.c | p->did_exec = 0; |
p | 225 | kernel/fork.c | p->swappable = 0; |
p | 226 | kernel/fork.c | p->kernel_stack_page = new_stack; |
p | 227 | kernel/fork.c | *(unsigned long *) p->kernel_stack_page = STACK_MAGIC; |
p | 228 | kernel/fork.c | p->state = TASK_UNINTERRUPTIBLE; |
p | 229 | kernel/fork.c | p->flags &= ~(PF_PTRACED|PF_TRACESYS); |
p | 230 | kernel/fork.c | p->pid = get_pid(clone_flags); |
p | 231 | kernel/fork.c | p->next_run = NULL; |
p | 232 | kernel/fork.c | p->prev_run = NULL; |
p | 233 | kernel/fork.c | p->p_pptr = p->p_opptr = current; |
p | 234 | kernel/fork.c | p->p_cptr = NULL; |
p | 235 | kernel/fork.c | p->signal = 0; |
p | 236 | kernel/fork.c | p->it_real_value = p->it_virt_value = p->it_prof_value = 0; |
p | 237 | kernel/fork.c | p->it_real_incr = p->it_virt_incr = p->it_prof_incr = 0; |
p | 238 | kernel/fork.c | init_timer(&p->real_timer); |
p | 239 | kernel/fork.c | p->real_timer.data = (unsigned long) p; |
p | 240 | kernel/fork.c | p->leader = 0; /* process leadership doesn't inherit */ |
p | 241 | kernel/fork.c | p->tty_old_pgrp = 0; |
p | 242 | kernel/fork.c | p->utime = p->stime = 0; |
p | 243 | kernel/fork.c | p->cutime = p->cstime = 0; |
p | 245 | kernel/fork.c | p->processor = NO_PROC_ID; |
p | 246 | kernel/fork.c | p->lock_depth = 1; |
p | 248 | kernel/fork.c | p->start_time = jiffies; |
p | 249 | kernel/fork.c | task[nr] = p; |
p | 250 | kernel/fork.c | SET_LINKS(p); |
p | 255 | kernel/fork.c | if (copy_files(clone_flags, p)) |
p | 257 | kernel/fork.c | if (copy_fs(clone_flags, p)) |
p | 259 | kernel/fork.c | if (copy_sighand(clone_flags, p)) |
p | 261 | kernel/fork.c | if (copy_mm(clone_flags, p)) |
p | 263 | kernel/fork.c | copy_thread(nr, clone_flags, usp, p, regs); |
p | 264 | kernel/fork.c | p->semundo = NULL; |
p | 267 | kernel/fork.c | p->swappable = 1; |
p | 268 | kernel/fork.c | p->exit_signal = clone_flags & CSIGNAL; |
p | 269 | kernel/fork.c | p->counter = current->counter >> 1; |
p | 270 | kernel/fork.c | wake_up_process(p); /* do this last, just in case */ |
p | 271 | kernel/fork.c | return p->pid; |
p | 274 | kernel/fork.c | exit_sighand(p); |
p | 276 | kernel/fork.c | exit_fs(p); |
p | 278 | kernel/fork.c | exit_files(p); |
p | 280 | kernel/fork.c | if (p->exec_domain && p->exec_domain->use_count) |
p | 281 | kernel/fork.c | (*p->exec_domain->use_count)--; |
p | 282 | kernel/fork.c | if (p->binfmt && p->binfmt->use_count) |
p | 283 | kernel/fork.c | (*p->binfmt->use_count)--; |
p | 285 | kernel/fork.c | REMOVE_LINKS(p); |
p | 290 | 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 | 545 | kernel/module.c | char *p; |
p | 552 | kernel/module.c | p = buf; |
p | 555 | kernel/module.c | if (p - buf > 4096 - 100) |
p | 562 | kernel/module.c | *p++ = *q++; |
p | 570 | kernel/module.c | *p++ = ' '; |
p | 573 | kernel/module.c | *p++ = *q++; |
p | 583 | kernel/module.c | *p++ = *q++; |
p | 586 | kernel/module.c | *p++ = '\t'; |
p | 587 | kernel/module.c | *p++ = '['; |
p | 591 | kernel/module.c | *p++ = *q++; |
p | 593 | kernel/module.c | *p++ = ' '; |
p | 595 | kernel/module.c | *p++ = ']'; |
p | 604 | kernel/module.c | *p++ = *q++; |
p | 606 | kernel/module.c | *p++ = '\n'; |
p | 608 | kernel/module.c | return p - buf; |
p | 620 | kernel/module.c | char *p = buf; |
p | 633 | kernel/module.c | p = buf + len; |
p | 635 | kernel/module.c | len += sprintf(p, "%08lx %s\t[%s]\n", |
p | 639 | kernel/module.c | len += sprintf(p, "%08lx %s\n", |
p | 154 | kernel/printk.c | char *msg, *p, *buf_end; |
p | 164 | kernel/printk.c | for (p = buf + 3; p < buf_end; p++) { |
p | 165 | kernel/printk.c | msg = p; |
p | 168 | kernel/printk.c | p[0] != '<' || |
p | 169 | kernel/printk.c | p[1] < '0' || |
p | 170 | kernel/printk.c | p[1] > '7' || |
p | 171 | kernel/printk.c | p[2] != '>' |
p | 173 | kernel/printk.c | p -= 3; |
p | 174 | kernel/printk.c | p[0] = '<'; |
p | 175 | kernel/printk.c | p[1] = DEFAULT_MESSAGE_LOGLEVEL + '0'; |
p | 176 | kernel/printk.c | p[2] = '>'; |
p | 179 | kernel/printk.c | msg_level = p[1] - '0'; |
p | 181 | kernel/printk.c | for (; p < buf_end; p++) { |
p | 182 | kernel/printk.c | log_buf[(log_start+log_size) & (LOG_BUF_LEN-1)] = *p; |
p | 190 | kernel/printk.c | if (*p == '\n') |
p | 194 | kernel/printk.c | char tmp = p[1]; |
p | 195 | kernel/printk.c | p[1] = '\0'; |
p | 197 | kernel/printk.c | p[1] = tmp; |
p | 199 | kernel/printk.c | if (*p == '\n') |
p | 216 | kernel/printk.c | int p = log_start; |
p | 224 | kernel/printk.c | buf[j++] = log_buf[p]; |
p | 225 | 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 | 100 | kernel/resource.c | resource_entry_t *p, *q; |
p | 102 | kernel/resource.c | for (p = &iolist; ; p = q) { |
p | 103 | kernel/resource.c | q = p->next; |
p | 108 | kernel/resource.c | p->next = q->next; |
p | 102 | kernel/sched.c | static inline void add_to_runqueue(struct task_struct * p) |
p | 105 | kernel/sched.c | if (p->next_run || p->prev_run) { |
p | 110 | kernel/sched.c | if (p->counter > current->counter + 3) |
p | 113 | kernel/sched.c | (p->prev_run = init_task.prev_run)->next_run = p; |
p | 114 | kernel/sched.c | p->next_run = &init_task; |
p | 115 | kernel/sched.c | init_task.prev_run = p; |
p | 118 | kernel/sched.c | static inline void del_from_runqueue(struct task_struct * p) |
p | 120 | kernel/sched.c | struct task_struct *next = p->next_run; |
p | 121 | kernel/sched.c | struct task_struct *prev = p->prev_run; |
p | 129 | kernel/sched.c | if (p == &init_task) { |
p | 140 | kernel/sched.c | p->next_run = NULL; |
p | 141 | kernel/sched.c | p->prev_run = NULL; |
p | 144 | kernel/sched.c | static inline void move_last_runqueue(struct task_struct * p) |
p | 146 | kernel/sched.c | struct task_struct *next = p->next_run; |
p | 147 | kernel/sched.c | struct task_struct *prev = p->prev_run; |
p | 151 | kernel/sched.c | (p->prev_run = init_task.prev_run)->next_run = p; |
p | 152 | kernel/sched.c | p->next_run = &init_task; |
p | 153 | kernel/sched.c | init_task.prev_run = p; |
p | 164 | kernel/sched.c | inline void wake_up_process(struct task_struct * p) |
p | 170 | kernel/sched.c | p->state = TASK_RUNNING; |
p | 171 | kernel/sched.c | if (!p->next_run) |
p | 172 | kernel/sched.c | add_to_runqueue(p); |
p | 178 | kernel/sched.c | struct task_struct * p = (struct task_struct *) __data; |
p | 180 | kernel/sched.c | p->timeout = 0; |
p | 181 | kernel/sched.c | wake_up_process(p); |
p | 197 | kernel/sched.c | static inline int goodness(struct task_struct * p, int this_cpu) |
p | 203 | kernel/sched.c | if (p->processor != NO_PROC_ID) |
p | 212 | kernel/sched.c | if (p->policy != SCHED_OTHER) |
p | 213 | kernel/sched.c | return 1000 + p->rt_priority; |
p | 222 | kernel/sched.c | weight = p->counter; |
p | 228 | kernel/sched.c | if (p->last_processor == this_cpu) |
p | 233 | kernel/sched.c | if (p == current) |
p | 253 | kernel/sched.c | struct task_struct * p; |
p | 294 | kernel/sched.c | p = init_task.next_run; |
p | 312 | kernel/sched.c | while (p != &init_task) { |
p | 313 | kernel/sched.c | int weight = goodness(p, this_cpu); |
p | 315 | kernel/sched.c | c = weight, next = p; |
p | 316 | kernel/sched.c | p = p->next_run; |
p | 321 | kernel/sched.c | for_each_task(p) |
p | 322 | kernel/sched.c | p->counter = (p->counter >> 1) + p->priority; |
p | 390 | kernel/sched.c | struct task_struct * p; |
p | 395 | kernel/sched.c | if ((p = tmp->task) != NULL) { |
p | 396 | kernel/sched.c | if ((p->state == TASK_UNINTERRUPTIBLE) || |
p | 397 | kernel/sched.c | (p->state == TASK_INTERRUPTIBLE)) |
p | 398 | kernel/sched.c | wake_up_process(p); |
p | 415 | kernel/sched.c | struct task_struct * p; |
p | 420 | kernel/sched.c | if ((p = tmp->task) != NULL) { |
p | 421 | kernel/sched.c | if (p->state == TASK_INTERRUPTIBLE) |
p | 422 | kernel/sched.c | wake_up_process(p); |
p | 449 | kernel/sched.c | static inline void __sleep_on(struct wait_queue **p, int state) |
p | 454 | kernel/sched.c | if (!p) |
p | 459 | kernel/sched.c | add_wait_queue(p, &wait); |
p | 463 | kernel/sched.c | remove_wait_queue(p, &wait); |
p | 467 | kernel/sched.c | void interruptible_sleep_on(struct wait_queue **p) |
p | 469 | kernel/sched.c | __sleep_on(p,TASK_INTERRUPTIBLE); |
p | 472 | kernel/sched.c | void sleep_on(struct wait_queue **p) |
p | 474 | kernel/sched.c | __sleep_on(p,TASK_UNINTERRUPTIBLE); |
p | 487 | kernel/sched.c | struct timer_list *p; |
p | 496 | kernel/sched.c | p = &timer_head; |
p | 500 | kernel/sched.c | p = p->next; |
p | 501 | kernel/sched.c | } while (timer->expires > p->expires); |
p | 502 | kernel/sched.c | timer->next = p; |
p | 503 | kernel/sched.c | timer->prev = p->prev; |
p | 504 | kernel/sched.c | p->prev = timer; |
p | 513 | kernel/sched.c | struct timer_list * p; |
p | 515 | kernel/sched.c | p = &timer_head; |
p | 518 | kernel/sched.c | while ((p = p->next) != &timer_head) { |
p | 519 | kernel/sched.c | if (p == timer) { |
p | 563 | kernel/sched.c | struct task_struct **p; |
p | 566 | kernel/sched.c | for(p = &LAST_TASK; p > &FIRST_TASK; --p) |
p | 567 | kernel/sched.c | if (*p && ((*p)->state == TASK_RUNNING || |
p | 568 | kernel/sched.c | (*p)->state == TASK_UNINTERRUPTIBLE || |
p | 569 | kernel/sched.c | (*p)->state == TASK_SWAPPING)) |
p | 991 | kernel/sched.c | struct task_struct *p, *q; |
p | 994 | kernel/sched.c | p = current; |
p | 996 | kernel/sched.c | p = 0; |
p | 999 | kernel/sched.c | p = q; |
p | 1004 | kernel/sched.c | return p; |
p | 1012 | kernel/sched.c | struct task_struct *p; |
p | 1022 | kernel/sched.c | p = find_process_by_pid(pid); |
p | 1023 | kernel/sched.c | if (!p) |
p | 1027 | kernel/sched.c | policy = p->policy; |
p | 1043 | kernel/sched.c | if ((current->euid != p->euid) && (current->euid != p->uid) && |
p | 1047 | kernel/sched.c | p->policy = policy; |
p | 1048 | kernel/sched.c | p->rt_priority = lp.sched_priority; |
p | 1067 | kernel/sched.c | struct task_struct *p; |
p | 1072 | kernel/sched.c | p = find_process_by_pid(pid); |
p | 1073 | kernel/sched.c | if (!p) |
p | 1076 | kernel/sched.c | return p->policy; |
p | 1082 | kernel/sched.c | struct task_struct *p; |
p | 1092 | kernel/sched.c | p = find_process_by_pid(pid); |
p | 1093 | kernel/sched.c | if (!p) |
p | 1096 | kernel/sched.c | lp.sched_priority = p->rt_priority; |
p | 1151 | kernel/sched.c | static void show_task(int nr,struct task_struct * p) |
p | 1156 | kernel/sched.c | printk("%-8s %3d ", p->comm, (p == current) ? -nr : nr); |
p | 1157 | kernel/sched.c | if (((unsigned) p->state) < sizeof(stat_nam)/sizeof(char *)) |
p | 1158 | kernel/sched.c | printk(stat_nam[p->state]); |
p | 1162 | kernel/sched.c | if (p == current) |
p | 1165 | kernel/sched.c | printk(" %08lX ", thread_saved_pc(&p->tss)); |
p | 1167 | kernel/sched.c | if (p == current) |
p | 1170 | kernel/sched.c | printk(" %016lx ", thread_saved_pc(&p->tss)); |
p | 1173 | kernel/sched.c | if (((unsigned long *)p->kernel_stack_page)[free]) |
p | 1176 | kernel/sched.c | printk("%5lu %5d %6d ", free*sizeof(long), p->pid, p->p_pptr->pid); |
p | 1177 | kernel/sched.c | if (p->p_cptr) |
p | 1178 | kernel/sched.c | printk("%5d ", p->p_cptr->pid); |
p | 1181 | kernel/sched.c | if (p->p_ysptr) |
p | 1182 | kernel/sched.c | printk("%7d", p->p_ysptr->pid); |
p | 1185 | kernel/sched.c | if (p->p_osptr) |
p | 1186 | kernel/sched.c | printk(" %5d\n", p->p_osptr->pid); |
p | 107 | kernel/signal.c | struct sigaction *p; |
p | 109 | kernel/signal.c | p = signum - 1 + current->sig->action; |
p | 110 | kernel/signal.c | if (p->sa_handler == SIG_IGN) { |
p | 116 | kernel/signal.c | if (p->sa_handler == SIG_DFL) { |
p | 155 | kernel/signal.c | struct sigaction new_sa, *p; |
p | 161 | kernel/signal.c | p = signum - 1 + current->sig->action; |
p | 181 | kernel/signal.c | memcpy_tofs(oldaction, p, sizeof(struct sigaction)); |
p | 184 | 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 | 80 | kernel/sys.c | for_each_task(p) { |
p | 81 | kernel/sys.c | if (!proc_sel(p, which, who)) |
p | 83 | kernel/sys.c | if (p->uid != current->euid && |
p | 84 | kernel/sys.c | p->uid != current->uid && !suser()) { |
p | 90 | kernel/sys.c | if (priority > p->priority && !suser()) |
p | 93 | kernel/sys.c | p->priority = priority; |
p | 105 | kernel/sys.c | struct task_struct *p; |
p | 111 | kernel/sys.c | for_each_task (p) { |
p | 112 | kernel/sys.c | if (!proc_sel(p, which, who)) |
p | 114 | kernel/sys.c | if (p->priority > max_prio) |
p | 115 | kernel/sys.c | max_prio = p->priority; |
p | 515 | kernel/sys.c | struct task_struct * p; |
p | 523 | kernel/sys.c | for_each_task(p) { |
p | 524 | kernel/sys.c | if (p->pid == pid) |
p | 530 | kernel/sys.c | if (p->p_pptr == current || p->p_opptr == current) { |
p | 531 | kernel/sys.c | if (p->session != current->session) |
p | 533 | kernel/sys.c | if (p->did_exec) |
p | 535 | kernel/sys.c | } else if (p != current) |
p | 537 | kernel/sys.c | if (p->leader) |
p | 550 | kernel/sys.c | p->pgrp = pgid; |
p | 556 | kernel/sys.c | struct task_struct * p; |
p | 560 | kernel/sys.c | for_each_task(p) { |
p | 561 | kernel/sys.c | if (p->pid == pid) |
p | 562 | kernel/sys.c | return p->pgrp; |
p | 574 | kernel/sys.c | struct task_struct * p; |
p | 578 | kernel/sys.c | for_each_task(p) { |
p | 579 | kernel/sys.c | if (p->pid == pid) |
p | 580 | kernel/sys.c | return p->session; |
p | 815 | kernel/sys.c | int getrusage(struct task_struct *p, int who, struct rusage *ru) |
p | 826 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(p->utime); |
p | 827 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(p->utime); |
p | 828 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(p->stime); |
p | 829 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(p->stime); |
p | 830 | kernel/sys.c | r.ru_minflt = p->min_flt; |
p | 831 | kernel/sys.c | r.ru_majflt = p->maj_flt; |
p | 832 | kernel/sys.c | r.ru_nswap = p->nswap; |
p | 835 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(p->cutime); |
p | 836 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(p->cutime); |
p | 837 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(p->cstime); |
p | 838 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(p->cstime); |
p | 839 | kernel/sys.c | r.ru_minflt = p->cmin_flt; |
p | 840 | kernel/sys.c | r.ru_majflt = p->cmaj_flt; |
p | 841 | kernel/sys.c | r.ru_nswap = p->cnswap; |
p | 844 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(p->utime + p->cutime); |
p | 845 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(p->utime + p->cutime); |
p | 846 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(p->stime + p->cstime); |
p | 847 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(p->stime + p->cstime); |
p | 848 | kernel/sys.c | r.ru_minflt = p->min_flt + p->cmin_flt; |
p | 849 | kernel/sys.c | r.ru_majflt = p->maj_flt + p->cmaj_flt; |
p | 850 | kernel/sys.c | r.ru_nswap = p->nswap + p->cnswap; |
p | 471 | kernel/sysctl.c | char *p, c; |
p | 481 | kernel/sysctl.c | p = buffer; |
p | 483 | kernel/sysctl.c | (c = get_user(p++)) != 0 && c != '\n') |
p | 515 | kernel/sysctl.c | char buf[TMPBUFLEN], *p; |
p | 539 | kernel/sysctl.c | p = buf; |
p | 540 | kernel/sysctl.c | if (*p == '-' && left > 1) { |
p | 542 | kernel/sysctl.c | left--, p++; |
p | 544 | kernel/sysctl.c | if (*p < '0' || *p > '9') |
p | 546 | kernel/sysctl.c | val = simple_strtoul(p, &p, 0); |
p | 547 | kernel/sysctl.c | len = p-buf; |
p | 548 | kernel/sysctl.c | if ((len < left) && *p && !isspace(*p)) |
p | 556 | kernel/sysctl.c | p = buf; |
p | 558 | kernel/sysctl.c | *p++ = '\t'; |
p | 559 | kernel/sysctl.c | sprintf(p, "%d", *i); |
p | 574 | kernel/sysctl.c | p = (char *) buffer; |
p | 575 | kernel/sysctl.c | while (left && isspace(get_user(p++))) |
p | 291 | lib/inflate.c | register unsigned *p; /* pointer into c[], b[], or v[] */ |
p | 306 | lib/inflate.c | p = b; i = n; |
p | 308 | lib/inflate.c | Tracecv(*p, (stderr, (n-i >= ' ' && n-i <= '~' ? "%c %d\n" : "0x%x %d\n"), |
p | 309 | lib/inflate.c | n-i, *p)); |
p | 310 | lib/inflate.c | c[*p]++; /* assume all entries <= BMAX */ |
p | 311 | lib/inflate.c | p++; /* Can't combine with above line (Solaris bug) */ |
p | 352 | lib/inflate.c | p = c + 1; xp = x + 2; |
p | 354 | lib/inflate.c | *xp++ = (j += *p++); |
p | 360 | lib/inflate.c | p = b; i = 0; |
p | 362 | lib/inflate.c | if ((j = *p++) != 0) |
p | 370 | lib/inflate.c | p = v; /* grab values in bit order */ |
p | 442 | lib/inflate.c | if (p >= v + n) |
p | 444 | lib/inflate.c | else if (*p < s) |
p | 446 | lib/inflate.c | r.e = (uch)(*p < 256 ? 16 : 15); /* 256 is end-of-block code */ |
p | 447 | lib/inflate.c | r.v.n = (ush)(*p); /* simple code is just the value */ |
p | 448 | lib/inflate.c | p++; /* one compiler does not like *p++ */ |
p | 452 | lib/inflate.c | r.e = (uch)e[*p - s]; /* non-simple--look up in lists */ |
p | 453 | lib/inflate.c | r.v.n = d[*p++ - s]; |
p | 492 | lib/inflate.c | register struct huft *p, *q; |
p | 496 | lib/inflate.c | p = t; |
p | 497 | lib/inflate.c | while (p != (struct huft *)NULL) |
p | 499 | lib/inflate.c | q = (--p)->v.t; |
p | 500 | lib/inflate.c | free((char*)p); |
p | 501 | lib/inflate.c | p = q; |
p | 1024 | lib/inflate.c | static int p[] = {0,1,2,4,5,7,8,10,11,12,16,22,23,26}; |
p | 1028 | lib/inflate.c | for (i = 0; i < sizeof(p)/sizeof(int); i++) |
p | 1029 | lib/inflate.c | e |= 1L << (31 - p[i]); |
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 | 46 | mm/filemap.c | struct page ** p; |
p | 50 | mm/filemap.c | p = &inode->i_pages; |
p | 51 | mm/filemap.c | while ((page = *p) != NULL) { |
p | 61 | mm/filemap.c | if ((*p = page->next) != NULL) |
p | 62 | mm/filemap.c | (*p)->prev = page->prev; |
p | 71 | mm/filemap.c | p = &page->next; |
p | 149 | mm/filemap.c | struct page * p = mem_map + MAP_NR(page); |
p | 150 | mm/filemap.c | int count = p->count; |
p | 154 | mm/filemap.c | if (!p->inode) |
p | 156 | mm/filemap.c | remove_page_from_hash_queue(p); |
p | 157 | mm/filemap.c | remove_page_from_inode_queue(p); |
p | 267 | mm/filemap.c | off_t p; |
p | 338 | mm/filemap.c | for (i=0, p=pos; i<pre_read; i+=PAGE_SIZE) { |
p | 339 | mm/filemap.c | p += PAGE_SIZE; |
p | 340 | mm/filemap.c | page_cache = try_to_read_ahead(inode, p, page_cache); |
p | 351 | mm/filemap.c | for (i=0, p=pos; i<READAHEAD_PAGES; i++) { |
p | 352 | mm/filemap.c | p += PAGE_SIZE; |
p | 353 | mm/filemap.c | page_cache = try_to_read_ahead(inode, p, page_cache); |
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 | 803 | mm/mmap.c | struct vm_area_struct **p, *mpnt; |
p | 805 | mm/mmap.c | p = &t->mm->mmap; |
p | 806 | mm/mmap.c | while ((mpnt = *p) != NULL) { |
p | 811 | mm/mmap.c | p = &mpnt->vm_next; |
p | 814 | mm/mmap.c | *p = vmp; |
p | 228 | mm/page_alloc.c | mem_map_t * p; |
p | 244 | mm/page_alloc.c | p = mem_map + MAP_NR(end_mem); |
p | 245 | mm/page_alloc.c | start_mem = LONG_ALIGN((unsigned long) p); |
p | 248 | mm/page_alloc.c | --p; |
p | 249 | mm/page_alloc.c | p->reserved = 1; |
p | 250 | mm/page_alloc.c | } while (p > mem_map); |
p | 34 | mm/page_io.c | struct swap_info_struct * p; |
p | 42 | mm/page_io.c | p = &swap_info[type]; |
p | 44 | mm/page_io.c | if (offset >= p->max) { |
p | 48 | mm/page_io.c | if (p->swap_map && !p->swap_map[offset]) { |
p | 52 | mm/page_io.c | if (!(p->flags & SWP_USED)) { |
p | 56 | mm/page_io.c | while (set_bit(offset,p->swap_lockmap)) |
p | 64 | mm/page_io.c | if (p->swap_device) { |
p | 70 | mm/page_io.c | ll_rw_page(rw,p->swap_device,offset,buf); |
p | 73 | mm/page_io.c | } else if (p->swap_file) { |
p | 74 | mm/page_io.c | struct inode *swapf = p->swap_file; |
p | 113 | mm/page_io.c | if (offset && !clear_bit(offset,p->swap_lockmap)) |
p | 54 | mm/swap_state.c | struct swap_info_struct * p = &swap_info[SWP_TYPE(entry)]; |
p | 59 | mm/swap_state.c | if ((p->flags & SWP_WRITEOK) == SWP_WRITEOK) { |
p | 86 | mm/swap_state.c | struct swap_info_struct * p; |
p | 99 | mm/swap_state.c | p = type + swap_info; |
p | 100 | mm/swap_state.c | if (offset >= p->max) { |
p | 104 | mm/swap_state.c | if (!p->swap_map[offset]) { |
p | 108 | mm/swap_state.c | p->swap_map[offset]++; |
p | 77 | mm/swapfile.c | struct swap_info_struct * p; |
p | 86 | mm/swapfile.c | p = &swap_info[type]; |
p | 87 | mm/swapfile.c | if ((p->flags & SWP_WRITEOK) == SWP_WRITEOK) { |
p | 88 | mm/swapfile.c | offset = scan_swap_map(p); |
p | 93 | mm/swapfile.c | p->prio != swap_info[type].prio) |
p | 104 | mm/swapfile.c | type = p->next; |
p | 106 | mm/swapfile.c | if (type < 0 || p->prio != swap_info[type].prio) { |
p | 118 | mm/swapfile.c | struct swap_info_struct * p; |
p | 130 | mm/swapfile.c | p = & swap_info[type]; |
p | 132 | mm/swapfile.c | if (offset >= p->max) { |
p | 136 | mm/swapfile.c | if (!(p->flags & SWP_USED)) { |
p | 140 | mm/swapfile.c | if (offset < p->lowest_bit) |
p | 141 | mm/swapfile.c | p->lowest_bit = offset; |
p | 142 | mm/swapfile.c | if (offset > p->highest_bit) |
p | 143 | mm/swapfile.c | p->highest_bit = offset; |
p | 144 | mm/swapfile.c | if (!p->swap_map[offset]) |
p | 147 | mm/swapfile.c | if (!--p->swap_map[offset]) |
p | 149 | mm/swapfile.c | if (p->prio > swap_info[swap_list.next].prio) { |
p | 266 | mm/swapfile.c | static int unuse_process(struct task_struct * p, unsigned int type, unsigned long page) |
p | 273 | mm/swapfile.c | if (!p->mm || pgd_inuse(p->mm->pgd)) |
p | 275 | mm/swapfile.c | vma = p->mm->mmap; |
p | 277 | mm/swapfile.c | pgd_t * pgd = pgd_offset(p->mm, vma->vm_start); |
p | 315 | mm/swapfile.c | struct swap_info_struct * p; |
p | 327 | mm/swapfile.c | p = swap_info + type; |
p | 328 | mm/swapfile.c | if ((p->flags & SWP_WRITEOK) == SWP_WRITEOK) { |
p | 329 | mm/swapfile.c | if (p->swap_file) { |
p | 330 | mm/swapfile.c | if (p->swap_file == inode) |
p | 334 | mm/swapfile.c | && (p->swap_device == inode->i_rdev)) |
p | 345 | mm/swapfile.c | swap_list.head = p->next; |
p | 347 | mm/swapfile.c | swap_info[prev].next = p->next; |
p | 353 | mm/swapfile.c | p->flags = SWP_USED; |
p | 357 | mm/swapfile.c | p->flags = SWP_WRITEOK; |
p | 361 | mm/swapfile.c | if(p->swap_device){ |
p | 374 | mm/swapfile.c | nr_swap_pages -= p->pages; |
p | 375 | mm/swapfile.c | iput(p->swap_file); |
p | 376 | mm/swapfile.c | p->swap_file = NULL; |
p | 377 | mm/swapfile.c | p->swap_device = 0; |
p | 378 | mm/swapfile.c | vfree(p->swap_map); |
p | 379 | mm/swapfile.c | p->swap_map = NULL; |
p | 380 | mm/swapfile.c | free_page((long) p->swap_lockmap); |
p | 381 | mm/swapfile.c | p->swap_lockmap = NULL; |
p | 382 | mm/swapfile.c | p->flags = 0; |
p | 393 | mm/swapfile.c | struct swap_info_struct * p; |
p | 404 | mm/swapfile.c | p = swap_info; |
p | 405 | mm/swapfile.c | for (type = 0 ; type < nr_swapfiles ; type++,p++) |
p | 406 | mm/swapfile.c | if (!(p->flags & SWP_USED)) |
p | 412 | mm/swapfile.c | p->flags = SWP_USED; |
p | 413 | mm/swapfile.c | p->swap_file = NULL; |
p | 414 | mm/swapfile.c | p->swap_device = 0; |
p | 415 | mm/swapfile.c | p->swap_map = NULL; |
p | 416 | mm/swapfile.c | p->swap_lockmap = NULL; |
p | 417 | mm/swapfile.c | p->lowest_bit = 0; |
p | 418 | mm/swapfile.c | p->highest_bit = 0; |
p | 419 | mm/swapfile.c | p->cluster_nr = 0; |
p | 420 | mm/swapfile.c | p->max = 1; |
p | 421 | mm/swapfile.c | p->next = -1; |
p | 423 | mm/swapfile.c | p->prio = |
p | 426 | mm/swapfile.c | p->prio = --least_priority; |
p | 431 | mm/swapfile.c | p->swap_file = swap_inode; |
p | 438 | mm/swapfile.c | p->swap_device = swap_inode->i_rdev; |
p | 439 | mm/swapfile.c | set_blocksize(p->swap_device, PAGE_SIZE); |
p | 444 | mm/swapfile.c | p->swap_file = NULL; |
p | 449 | mm/swapfile.c | if (!p->swap_device) |
p | 455 | mm/swapfile.c | if (p->swap_device == swap_info[i].swap_device) |
p | 460 | mm/swapfile.c | p->swap_lockmap = (unsigned char *) get_free_page(GFP_USER); |
p | 461 | mm/swapfile.c | if (!p->swap_lockmap) { |
p | 466 | mm/swapfile.c | read_swap_page(SWP_ENTRY(type,0), (char *) p->swap_lockmap); |
p | 467 | mm/swapfile.c | if (memcmp("SWAP-SPACE",p->swap_lockmap+PAGE_SIZE-10,10)) { |
p | 472 | mm/swapfile.c | memset(p->swap_lockmap+PAGE_SIZE-10,0,10); |
p | 474 | mm/swapfile.c | p->lowest_bit = 0; |
p | 475 | mm/swapfile.c | p->highest_bit = 0; |
p | 477 | mm/swapfile.c | if (test_bit(i,p->swap_lockmap)) { |
p | 478 | mm/swapfile.c | if (!p->lowest_bit) |
p | 479 | mm/swapfile.c | p->lowest_bit = i; |
p | 480 | mm/swapfile.c | p->highest_bit = i; |
p | 481 | mm/swapfile.c | p->max = i+1; |
p | 490 | mm/swapfile.c | p->swap_map = (unsigned char *) vmalloc(p->max); |
p | 491 | mm/swapfile.c | if (!p->swap_map) { |
p | 495 | mm/swapfile.c | for (i = 1 ; i < p->max ; i++) { |
p | 496 | mm/swapfile.c | if (test_bit(i,p->swap_lockmap)) |
p | 497 | mm/swapfile.c | p->swap_map[i] = 0; |
p | 499 | mm/swapfile.c | p->swap_map[i] = 0x80; |
p | 501 | mm/swapfile.c | p->swap_map[0] = 0x80; |
p | 502 | mm/swapfile.c | memset(p->swap_lockmap,0,PAGE_SIZE); |
p | 503 | mm/swapfile.c | p->flags = SWP_WRITEOK; |
p | 504 | mm/swapfile.c | p->pages = j; |
p | 511 | mm/swapfile.c | if (p->prio >= swap_info[i].prio) { |
p | 516 | mm/swapfile.c | p->next = i; |
p | 518 | mm/swapfile.c | swap_list.head = swap_list.next = p - swap_info; |
p | 520 | mm/swapfile.c | swap_info[prev].next = p - swap_info; |
p | 527 | mm/swapfile.c | free_page((long) p->swap_lockmap); |
p | 528 | mm/swapfile.c | vfree(p->swap_map); |
p | 529 | mm/swapfile.c | iput(p->swap_file); |
p | 530 | mm/swapfile.c | p->swap_device = 0; |
p | 531 | mm/swapfile.c | p->swap_file = NULL; |
p | 532 | mm/swapfile.c | p->swap_map = NULL; |
p | 533 | mm/swapfile.c | p->swap_lockmap = NULL; |
p | 534 | mm/swapfile.c | p->flags = 0; |
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 | 239 | mm/vmscan.c | static int swap_out_process(struct task_struct * p, unsigned long limit, int wait) |
p | 247 | mm/vmscan.c | address = p->swap_address; |
p | 248 | mm/vmscan.c | p->swap_address = 0; |
p | 253 | mm/vmscan.c | vma = find_vma(p, address); |
p | 260 | mm/vmscan.c | int result = swap_out_vma(p, vma, pgd_offset(p->mm, address), address, limit, wait); |
p | 268 | mm/vmscan.c | p->swap_address = 0; |
p | 276 | mm/vmscan.c | struct task_struct *p; |
p | 294 | mm/vmscan.c | p = task[swap_task]; |
p | 295 | mm/vmscan.c | if (p && p->swappable && p->mm->rss) |
p | 304 | mm/vmscan.c | if (!p->swap_cnt) { |
p | 307 | mm/vmscan.c | p->swap_cnt = AGE_CLUSTER_SIZE(p->mm->rss); |
p | 309 | mm/vmscan.c | if (!--p->swap_cnt) |
p | 311 | mm/vmscan.c | switch (swap_out_process(p, limit, wait)) { |
p | 313 | mm/vmscan.c | if (p->swap_cnt) |
p | 60 | net/ax25/ax25_out.c | unsigned char *p; |
p | 93 | net/ax25/ax25_out.c | p = skb_push(skbn, 2); |
p | 95 | net/ax25/ax25_out.c | *p++ = AX25_P_SEGMENT; |
p | 97 | net/ax25/ax25_out.c | *p = fragno--; |
p | 99 | net/ax25/ax25_out.c | *p |= SEG_FIRST; |
p | 479 | net/ax25/ax25_subr.c | unsigned char *p; |
p | 498 | net/ax25/ax25_subr.c | p = skb_put(skb, 2); |
p | 500 | net/ax25/ax25_subr.c | *p++=cmd; |
p | 501 | net/ax25/ax25_subr.c | *p =param; |
p | 22 | net/core/firewall.c | struct firewall_ops **p; |
p | 35 | net/core/firewall.c | p=&firewall_chain[pf]; |
p | 37 | net/core/firewall.c | while(*p) |
p | 39 | net/core/firewall.c | if(fw->fw_priority > (*p)->fw_priority) |
p | 41 | net/core/firewall.c | p=&((*p)->next); |
p | 44 | net/core/firewall.c | fw->next=*p; |
p | 50 | net/core/firewall.c | xchg(p,fw); |
p | 255 | net/ipv4/af_inet.c | struct sock **p; |
p | 271 | net/ipv4/af_inet.c | p=&(sk1->prot->sock_array[sk1->num & (SOCK_ARRAY_SIZE -1)]); |
p | 273 | net/ipv4/af_inet.c | while(*p!=NULL) |
p | 275 | net/ipv4/af_inet.c | if(*p==sk1) |
p | 278 | net/ipv4/af_inet.c | *p=sk1->next; |
p | 281 | net/ipv4/af_inet.c | p=&((*p)->next); |
p | 1517 | net/ipv4/af_inet.c | struct inet_protocol *p; |
p | 1549 | net/ipv4/af_inet.c | for(p = inet_protocol_base; p != NULL;) |
p | 1551 | net/ipv4/af_inet.c | struct inet_protocol *tmp = (struct inet_protocol *) p->next; |
p | 1552 | net/ipv4/af_inet.c | inet_add_protocol(p); |
p | 1553 | net/ipv4/af_inet.c | printk("%s%s",p->name,tmp?", ":"\n"); |
p | 1554 | net/ipv4/af_inet.c | p = tmp; |
p | 200 | net/ipv4/icmp.c | static void icmp_glue_bits(const void *p, __u32 saddr, char *to, unsigned int offset, unsigned int fraglen) |
p | 202 | net/ipv4/icmp.c | struct icmp_bxm *icmp_param = (struct icmp_bxm *)p; |
p | 73 | net/ipv4/ip_alias.c | char *p; |
p | 75 | net/ipv4/ip_alias.c | p = (char *) &alias->dev.pa_addr; |
p | 77 | net/ipv4/ip_alias.c | (p[0] & 255), (p[1] & 255), (p[2] & 255), (p[3] & 255)); |
p | 618 | net/ipv4/ip_fw.c | char *p, *data = (char *)&th[1]; |
p | 661 | net/ipv4/ip_fw.c | p = data+5; |
p | 718 | net/ipv4/ip_fw.c | diff = strlen(buf) - (data-p); |
p | 729 | net/ipv4/ip_fw.c | memcpy(p,buf,strlen(buf)); |
p | 777 | net/ipv4/ip_fw.c | memcpy(skb2->data, skb->data, (p - (char *)skb->data)); |
p | 778 | net/ipv4/ip_fw.c | memcpy(&skb2->data[(p - (char *)skb->data)], buf, strlen(buf)); |
p | 779 | net/ipv4/ip_fw.c | memcpy(&skb2->data[(p - (char *)skb->data) + strlen(buf)], data, |
p | 1455 | net/ipv4/ip_fw.c | int len, p; |
p | 1502 | net/ipv4/ip_fw.c | for (p = 0; p < IP_FW_MAX_PORTS; p++) |
p | 1503 | net/ipv4/ip_fw.c | len+=sprintf(buffer+len, " %u", i->fw_pts[p]); |
p | 215 | net/ipv4/ipmr.c | struct mfc_cache **p; |
p | 225 | net/ipv4/ipmr.c | p=&cache_resolve_queue; |
p | 226 | net/ipv4/ipmr.c | while((*p)!=NULL) |
p | 228 | net/ipv4/ipmr.c | if((*p)==cache) |
p | 230 | net/ipv4/ipmr.c | *p=cache->next; |
p | 233 | net/ipv4/ipmr.c | p=&((*p)->next); |
p | 247 | net/ipv4/packet.c | struct packet_type *p = (struct packet_type *) kmalloc(sizeof(*p), GFP_KERNEL); |
p | 248 | net/ipv4/packet.c | if (p == NULL) |
p | 251 | net/ipv4/packet.c | p->func = packet_rcv; |
p | 252 | net/ipv4/packet.c | p->type = sk->num; |
p | 253 | net/ipv4/packet.c | p->data = (void *)sk; |
p | 254 | net/ipv4/packet.c | p->dev = NULL; |
p | 255 | net/ipv4/packet.c | dev_add_pack(p); |
p | 261 | net/ipv4/packet.c | sk->protinfo.af_packet.prot_hook = 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 | 162 | net/ipv4/raw.c | static void raw_getfrag(const void *p, __u32 saddr, char *to, unsigned int offset, unsigned int fraglen) |
p | 164 | net/ipv4/raw.c | memcpy_fromfs(to, (const unsigned char *)p+offset, fraglen); |
p | 171 | net/ipv4/raw.c | static void raw_getrawfrag(const void *p, __u32 saddr, char *to, unsigned int offset, unsigned int fraglen) |
p | 173 | net/ipv4/raw.c | memcpy_fromfs(to, (const unsigned char *)p+offset, fraglen); |
p | 440 | net/ipv4/tcp.c | struct sk_buff *p=skb_peek(&s->receive_queue); |
p | 441 | net/ipv4/tcp.c | if(p==NULL) |
p | 445 | net/ipv4/tcp.c | if(p->sk->state == TCP_ESTABLISHED || p->sk->state >= TCP_FIN_WAIT1) |
p | 446 | net/ipv4/tcp.c | return p; |
p | 447 | net/ipv4/tcp.c | p=p->next; |
p | 449 | net/ipv4/tcp.c | while(p!=(struct sk_buff *)&s->receive_queue); |
p | 231 | net/ipv4/udp.c | static void udp_getfrag(const void *p, __u32 saddr, char * to, unsigned int offset, unsigned int fraglen) |
p | 233 | net/ipv4/udp.c | struct udpfakehdr *ufh = (struct udpfakehdr *)p; |
p | 271 | net/ipv4/udp.c | static void udp_getfrag_nosum(const void *p, __u32 saddr, char * to, unsigned int offset, unsigned int fraglen) |
p | 273 | 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 | 1873 | net/ipx/af_ipx.c | char *p, b[64]; |
p | 1875 | net/ipx/af_ipx.c | p = b; |
p | 1878 | net/ipx/af_ipx.c | *(p++) = h2c[(d[i] >> 4) & 0x0f]; |
p | 1879 | net/ipx/af_ipx.c | *(p++) = h2c[d[i] & 0x0f]; |
p | 1882 | net/ipx/af_ipx.c | *(p++) = ' '; |
p | 1883 | net/ipx/af_ipx.c | *(p++) = ' '; |
p | 1885 | net/ipx/af_ipx.c | *(p++) = ' '; |
p | 1887 | net/ipx/af_ipx.c | *(p++) = '-'; |
p | 1888 | net/ipx/af_ipx.c | *(p++) = ' '; |
p | 1892 | net/ipx/af_ipx.c | *(p++) = ' '<= d[i] && d[i]<'\177' ? d[i] : '.'; |
p | 1894 | net/ipx/af_ipx.c | *(p++) = ' '; |
p | 1895 | net/ipx/af_ipx.c | *p = '\000'; |
p | 1901 | net/ipx/af_ipx.c | void dump_addr(char *str,ipx_address *p) { |
p | 1903 | net/ipx/af_ipx.c | str,ntohl(p->net),p->node[0],p->node[1],p->node[2], |
p | 1904 | net/ipx/af_ipx.c | p->node[3],p->node[4],p->node[5],ntohs(p->sock)); |
p | 1907 | net/ipx/af_ipx.c | void dump_hdr(char *str,ipx_packet *p) { |
p | 1909 | net/ipx/af_ipx.c | str,p->ipx_checksum,ntohs(p->ipx_pktsize),ntohs(p->ipx_pktsize), |
p | 1910 | net/ipx/af_ipx.c | p->ipx_tctrl,p->ipx_tctrl,p->ipx_type); |
p | 1911 | net/ipx/af_ipx.c | dump_addr(" IPX-DST",&p->ipx_dest); |
p | 1912 | net/ipx/af_ipx.c | dump_addr(" IPX-SRC",&p->ipx_source); |
p | 1915 | net/ipx/af_ipx.c | void dump_pkt(char *str,ipx_packet *p) { |
p | 1916 | net/ipx/af_ipx.c | int len = ntohs(p->ipx_pktsize); |
p | 1917 | net/ipx/af_ipx.c | dump_hdr(str,p); |
p | 1919 | net/ipx/af_ipx.c | dump_data(str,(unsigned char *)p + 30, len - 30); |