tag | line | file | source code |
p | 176 | arch/alpha/kernel/irq.c | struct irqaction * action, **p; |
p | 183 | arch/alpha/kernel/irq.c | p = irq_action + irq; |
p | 184 | arch/alpha/kernel/irq.c | action = *p; |
p | 196 | arch/alpha/kernel/irq.c | p = &action->next; |
p | 197 | arch/alpha/kernel/irq.c | action = *p; |
p | 218 | arch/alpha/kernel/irq.c | *p = action; |
p | 229 | arch/alpha/kernel/irq.c | struct irqaction * action, **p; |
p | 236 | arch/alpha/kernel/irq.c | for (p = irq + irq_action; (action = *p) != NULL; p = &action->next) { |
p | 243 | arch/alpha/kernel/irq.c | *p = action->next; |
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 | 139 | arch/i386/boot/compressed/misc.c | void *p; |
p | 146 | arch/i386/boot/compressed/misc.c | p = (void *)free_mem_ptr; |
p | 152 | arch/i386/boot/compressed/misc.c | return p; |
p | 395 | arch/i386/kernel/irq.c | struct irqaction * action, **p; |
p | 402 | arch/i386/kernel/irq.c | p = irq_action + irq; |
p | 403 | arch/i386/kernel/irq.c | action = *p; |
p | 415 | arch/i386/kernel/irq.c | p = &action->next; |
p | 416 | arch/i386/kernel/irq.c | action = *p; |
p | 437 | arch/i386/kernel/irq.c | *p = action; |
p | 452 | arch/i386/kernel/irq.c | struct irqaction * action, **p; |
p | 459 | arch/i386/kernel/irq.c | for (p = irq + irq_action; (action = *p) != NULL; p = &action->next) { |
p | 466 | arch/i386/kernel/irq.c | *p = action->next; |
p | 269 | arch/i386/kernel/process.c | struct task_struct * p, struct pt_regs * regs) |
p | 274 | arch/i386/kernel/process.c | p->tss.es = KERNEL_DS; |
p | 275 | arch/i386/kernel/process.c | p->tss.cs = KERNEL_CS; |
p | 276 | arch/i386/kernel/process.c | p->tss.ss = KERNEL_DS; |
p | 277 | arch/i386/kernel/process.c | p->tss.ds = KERNEL_DS; |
p | 278 | arch/i386/kernel/process.c | p->tss.fs = USER_DS; |
p | 279 | arch/i386/kernel/process.c | p->tss.gs = KERNEL_DS; |
p | 280 | arch/i386/kernel/process.c | p->tss.ss0 = KERNEL_DS; |
p | 281 | arch/i386/kernel/process.c | p->tss.esp0 = p->kernel_stack_page + PAGE_SIZE; |
p | 282 | arch/i386/kernel/process.c | p->tss.tr = _TSS(nr); |
p | 283 | arch/i386/kernel/process.c | childregs = ((struct pt_regs *) (p->kernel_stack_page + PAGE_SIZE)) - 1; |
p | 284 | arch/i386/kernel/process.c | p->tss.esp = (unsigned long) childregs; |
p | 285 | arch/i386/kernel/process.c | p->tss.eip = (unsigned long) ret_from_sys_call; |
p | 289 | arch/i386/kernel/process.c | p->tss.back_link = 0; |
p | 290 | arch/i386/kernel/process.c | p->tss.eflags = regs->eflags & 0xffffcfff; /* iopl is always 0 for a new process */ |
p | 291 | arch/i386/kernel/process.c | p->tss.ldt = _LDT(nr); |
p | 292 | arch/i386/kernel/process.c | if (p->ldt) { |
p | 293 | arch/i386/kernel/process.c | p->ldt = (struct desc_struct*) vmalloc(LDT_ENTRIES*LDT_ENTRY_SIZE); |
p | 294 | arch/i386/kernel/process.c | if (p->ldt != NULL) |
p | 295 | arch/i386/kernel/process.c | memcpy(p->ldt, current->ldt, LDT_ENTRIES*LDT_ENTRY_SIZE); |
p | 297 | arch/i386/kernel/process.c | set_tss_desc(gdt+(nr<<1)+FIRST_TSS_ENTRY,&(p->tss)); |
p | 298 | arch/i386/kernel/process.c | if (p->ldt) |
p | 299 | arch/i386/kernel/process.c | set_ldt_desc(gdt+(nr<<1)+FIRST_LDT_ENTRY,p->ldt, 512); |
p | 302 | arch/i386/kernel/process.c | p->tss.bitmap = offsetof(struct thread_struct,io_bitmap); |
p | 304 | arch/i386/kernel/process.c | p->tss.io_bitmap[i] = ~0; |
p | 306 | arch/i386/kernel/process.c | __asm__("clts ; fnsave %0 ; frstor %0":"=m" (p->tss.i387)); |
p | 863 | arch/i386/kernel/smp.c | int p=smp_processor_id(); |
p | 885 | arch/i386/kernel/smp.c | if(smp_cpu_in_msg[p]) |
p | 907 | arch/i386/kernel/smp.c | smp_cpu_in_msg[p]++; |
p | 915 | arch/i386/kernel/smp.c | smp_src_cpu=p; |
p | 1001 | 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 | 157 | arch/sparc/kernel/process.c | struct task_struct *p, struct pt_regs *regs) |
p | 165 | arch/sparc/kernel/process.c | fpsave(&p->tss.float_regs[0], &p->tss.fsr, |
p | 166 | arch/sparc/kernel/process.c | &p->tss.fpqueue[0], &p->tss.fpqdepth); |
p | 173 | arch/sparc/kernel/process.c | childregs = ((struct pt_regs *) (p->kernel_stack_page + stack_offset)); |
p | 178 | arch/sparc/kernel/process.c | p->tss.ksp = p->saved_kernel_stack = (unsigned long) new_stack; |
p | 179 | arch/sparc/kernel/process.c | p->tss.kpc = (((unsigned long) ret_sys_call) - 0x8); |
p | 180 | arch/sparc/kernel/process.c | p->tss.kpsr = current->tss.fork_kpsr; |
p | 181 | arch/sparc/kernel/process.c | p->tss.kwim = current->tss.fork_kwim; |
p | 182 | arch/sparc/kernel/process.c | p->tss.kregs = childregs; |
p | 187 | arch/sparc/kernel/process.c | childregs->u_regs[UREG_FP] = p->kernel_stack_page + stack_offset; |
p | 188 | arch/sparc/kernel/process.c | p->tss.flags |= SPARC_FLAG_KTHREAD; |
p | 190 | arch/sparc/kernel/process.c | p->tss.flags &= ~SPARC_FLAG_KTHREAD; |
p | 59 | arch/sparc/kernel/smp.c | int p = smp_processor_id(); |
p | 66 | arch/sparc/kernel/smp.c | if(smp_cpu_in_msg[p]) |
p | 75 | arch/sparc/kernel/smp.c | smp_cpu_in_msg[p]++; |
p | 77 | arch/sparc/kernel/smp.c | smp_src_cpu = p; |
p | 103 | arch/sparc/kernel/smp.c | smp_cpu_in_msg[p]--; |
p | 41 | arch/sparc/kernel/sunos_ioctl.c | int *p, ntty = N_TTY, old_fs; |
p | 43 | arch/sparc/kernel/sunos_ioctl.c | p = (int *) arg; |
p | 44 | arch/sparc/kernel/sunos_ioctl.c | foo = verify_area(VERIFY_WRITE, p, sizeof(int)); |
p | 46 | arch/sparc/kernel/sunos_ioctl.c | if(*p == 2) { |
p | 82 | arch/sparc/prom/console.c | char *p; |
p | 104 | arch/sparc/prom/console.c | p = propb; |
p | 105 | arch/sparc/prom/console.c | while(*p) p++; p -= 2; |
p | 106 | arch/sparc/prom/console.c | if(p[0] == ':') { |
p | 107 | arch/sparc/prom/console.c | if(p[1] == 'a') |
p | 109 | arch/sparc/prom/console.c | else if(p[1] == 'b') |
p | 123 | arch/sparc/prom/console.c | char *p; |
p | 148 | arch/sparc/prom/console.c | p = propb; |
p | 149 | arch/sparc/prom/console.c | while(*p) p++; p -= 2; |
p | 150 | arch/sparc/prom/console.c | if(p[0]==':') { |
p | 151 | arch/sparc/prom/console.c | if(p[1] == 'a') |
p | 153 | arch/sparc/prom/console.c | else if(p[1] == 'b') |
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 | 544 | drivers/block/cmd640.c | inline int max4(int *p) { return max(p[0], max(p[1], max(p[2], p[3]))); } |
p | 42 | drivers/block/genhd.c | #define NR_SECTS(p) ldl_u(&p->nr_sects) |
p | 43 | drivers/block/genhd.c | #define START_SECT(p) ldl_u(&p->start_sect) |
p | 45 | drivers/block/genhd.c | #define NR_SECTS(p) p->nr_sects |
p | 46 | drivers/block/genhd.c | #define START_SECT(p) p->start_sect |
p | 106 | drivers/block/genhd.c | static inline int is_extended_partition(struct partition *p) |
p | 108 | drivers/block/genhd.c | return (p->sys_ind == DOS_EXTENDED_PARTITION || |
p | 109 | drivers/block/genhd.c | p->sys_ind == LINUX_EXTENDED_PARTITION); |
p | 127 | drivers/block/genhd.c | struct partition *p; |
p | 150 | drivers/block/genhd.c | p = (struct partition *) (0x1BE + bh->b_data); |
p | 166 | drivers/block/genhd.c | for (i=0; i<4; i++, p++) { |
p | 167 | drivers/block/genhd.c | if (!NR_SECTS(p) || is_extended_partition(p)) |
p | 173 | drivers/block/genhd.c | && START_SECT(p) + NR_SECTS(p) > this_size |
p | 174 | drivers/block/genhd.c | && (this_sector + START_SECT(p) < first_sector || |
p | 175 | drivers/block/genhd.c | this_sector + START_SECT(p) + NR_SECTS(p) > |
p | 179 | drivers/block/genhd.c | add_partition(hd, current_minor, this_sector+START_SECT(p), NR_SECTS(p)); |
p | 194 | drivers/block/genhd.c | p -= 4; |
p | 195 | drivers/block/genhd.c | for (i=0; i<4; i++, p++) |
p | 196 | drivers/block/genhd.c | if(NR_SECTS(p) && is_extended_partition(p)) |
p | 201 | drivers/block/genhd.c | hd->part[current_minor].nr_sects = NR_SECTS(p); |
p | 202 | drivers/block/genhd.c | hd->part[current_minor].start_sect = first_sector + START_SECT(p); |
p | 203 | drivers/block/genhd.c | this_sector = first_sector + START_SECT(p); |
p | 215 | drivers/block/genhd.c | struct partition *p; |
p | 239 | drivers/block/genhd.c | p = (struct partition *) (0x1be + data); |
p | 248 | drivers/block/genhd.c | if (p->sys_ind == EZD_PARTITION) { |
p | 261 | drivers/block/genhd.c | } else if (p->sys_ind == DM6_PARTITION) { |
p | 284 | drivers/block/genhd.c | } else if (p->sys_ind == DM6_AUX1PARTITION || p->sys_ind == DM6_AUX3PARTITION) { |
p | 296 | drivers/block/genhd.c | struct partition *q = &p[i]; |
p | 311 | drivers/block/genhd.c | for (i=1 ; i<=4 ; minor++,i++,p++) { |
p | 312 | drivers/block/genhd.c | if (!NR_SECTS(p)) |
p | 314 | drivers/block/genhd.c | add_partition(hd, minor, first_sector+START_SECT(p), NR_SECTS(p)); |
p | 315 | drivers/block/genhd.c | if (is_extended_partition(p)) { |
p | 337 | drivers/block/genhd.c | p = (struct partition *) (0x1be + data); |
p | 339 | drivers/block/genhd.c | p--; |
p | 342 | drivers/block/genhd.c | if (!(START_SECT(p) && NR_SECTS(p))) |
p | 344 | drivers/block/genhd.c | add_partition(hd, current_minor, START_SECT(p), NR_SECTS(p)); |
p | 454 | drivers/block/genhd.c | struct sun_partition *p; |
p | 463 | drivers/block/genhd.c | p = label->partitions; |
p | 480 | drivers/block/genhd.c | for(i=0; i < 8; i++, p++) { |
p | 486 | drivers/block/genhd.c | st_sector = first_sector + (p->start_cylinder * spc); |
p | 487 | drivers/block/genhd.c | add_partition(hd, current_minor, st_sector, p->num_sectors); |
p | 589 | drivers/block/genhd.c | struct gendisk *p; |
p | 603 | drivers/block/genhd.c | for (p = gendisk_head ; p ; p=p->next) { |
p | 604 | drivers/block/genhd.c | setup_dev(p); |
p | 605 | 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 | 305 | drivers/block/ide.c | byte *p; |
p | 317 | drivers/block/ide.c | p = ((byte *) ide_hwifs) + sizeof(ide_hwifs); |
p | 319 | drivers/block/ide.c | *--p = 0; |
p | 320 | drivers/block/ide.c | } while (p > (byte *) ide_hwifs); |
p | 1794 | drivers/block/ide.c | unsigned int p, major, minor; |
p | 1811 | drivers/block/ide.c | for (p = 0; p < (1<<PARTN_BITS); ++p) { |
p | 1812 | drivers/block/ide.c | if (drive->part[p].nr_sects > 0) { |
p | 1813 | drivers/block/ide.c | kdev_t devp = MKDEV(major, minor+p); |
p | 1818 | drivers/block/ide.c | drive->part[p].start_sect = 0; |
p | 1819 | drivers/block/ide.c | drive->part[p].nr_sects = 0; |
p | 2054 | drivers/block/ide.c | byte *p = s, *end = &s[bytecount & ~1]; /* bytecount must be even */ |
p | 2058 | drivers/block/ide.c | for (p = end ; p != s;) { |
p | 2059 | drivers/block/ide.c | unsigned short *pp = (unsigned short *) (p -= 2); |
p | 2071 | drivers/block/ide.c | *p++ = *(s-1); |
p | 2075 | drivers/block/ide.c | while (p != end) |
p | 2076 | 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 | 104 | drivers/block/ide_modes.h | struct ide_pio_info *p; |
p | 106 | drivers/block/ide_modes.h | for (p = ide_pio_blacklist; p->name != NULL; p++) { |
p | 107 | drivers/block/ide_modes.h | if (strncmp(p->name, model, strlen(p->name)) == 0) |
p | 108 | drivers/block/ide_modes.h | return p->pio; |
p | 747 | drivers/block/md.c | int register_md_personality (int p_num, struct md_personality *p) |
p | 757 | drivers/block/md.c | pers[i]=p; |
p | 758 | drivers/block/md.c | printk ("%s personality registered\n", p->name); |
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 | 1222 | drivers/cdrom/cm206.c | void cm206_setup(char *s, int *p) |
p | 1226 | drivers/cdrom/cm206.c | for(i=1; i<=p[0]; i++) { |
p | 1227 | drivers/cdrom/cm206.c | if (0x300 <= p[i] && i<= 0x370 && p[i] % 0x10 == 0) { |
p | 1228 | drivers/cdrom/cm206.c | cm206_base = p[i]; |
p | 1231 | drivers/cdrom/cm206.c | else if (3 <= p[i] && p[i] <= 15) { |
p | 1232 | 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 | 182 | drivers/cdrom/mcd.c | static void bin2bcd(unsigned char *p); |
p | 1278 | drivers/cdrom/mcd.c | bin2bcd(unsigned char *p) |
p | 1282 | drivers/cdrom/mcd.c | u = *p % 10; |
p | 1283 | drivers/cdrom/mcd.c | t = *p / 10; |
p | 1284 | drivers/cdrom/mcd.c | *p = u | (t << 4); |
p | 1255 | drivers/cdrom/mcdx.c | char *p, int sector, int nr_sectors) |
p | 1264 | drivers/cdrom/mcdx.c | ans = mcdx_xfer(stuffp, p, sector, nr_sectors); |
p | 1278 | drivers/cdrom/mcdx.c | return mcdx_transfer(stuffp, p, sector, nr_sectors); |
p | 1285 | drivers/cdrom/mcdx.c | char *p, int sector, int nr_sectors) |
p | 1354 | drivers/cdrom/mcdx.c | insb((unsigned int) stuffp->rreg_data, p, HEAD); |
p | 1360 | drivers/cdrom/mcdx.c | insb((unsigned int) stuffp->rreg_data, p, 512); |
p | 1373 | drivers/cdrom/mcdx.c | p += 512; |
p | 1595 | drivers/cdrom/mcdx.c | struct s_subqcode* p; |
p | 1600 | drivers/cdrom/mcdx.c | if (ti) p = &stuffp->toc[ti->cdti_trk0 - stuffp->di.n_first]; |
p | 1601 | drivers/cdrom/mcdx.c | else p = &stuffp->start; |
p | 1603 | drivers/cdrom/mcdx.c | msf.cdmsf_min0 = p->dt.minute; |
p | 1604 | drivers/cdrom/mcdx.c | msf.cdmsf_sec0 = p->dt.second; |
p | 1605 | drivers/cdrom/mcdx.c | msf.cdmsf_frame0 = p->dt.frame; |
p | 1608 | drivers/cdrom/mcdx.c | p = &stuffp->toc[ti->cdti_trk1 - stuffp->di.n_first + 1]; |
p | 1609 | drivers/cdrom/mcdx.c | stuffp->stop = *p; |
p | 1610 | drivers/cdrom/mcdx.c | } else p = &stuffp->stop; |
p | 1612 | drivers/cdrom/mcdx.c | msf.cdmsf_min1 = p->dt.minute; |
p | 1613 | drivers/cdrom/mcdx.c | msf.cdmsf_sec1 = p->dt.second; |
p | 1614 | 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 | 919 | drivers/char/apm_bios.c | char * p; |
p | 933 | drivers/char/apm_bios.c | p = buf; |
p | 993 | drivers/char/apm_bios.c | p += sprintf(p, "%s %d.%d 0x%02x 0x%02x 0x%02x 0x%02x %d%% %d %s\n", |
p | 1005 | 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 | 506 | drivers/char/ftape/ecc.c | static inline void set_parity(unsigned long *data, int nblocks, unsigned long *p, int stride) |
p | 552 | drivers/char/ftape/ecc.c | *p = p0; |
p | 553 | drivers/char/ftape/ecc.c | p += stride; |
p | 554 | drivers/char/ftape/ecc.c | *p = p1; |
p | 555 | drivers/char/ftape/ecc.c | p += stride; |
p | 556 | drivers/char/ftape/ecc.c | *p = p2; |
p | 595 | drivers/char/ftape/ecc.c | unsigned long p[3]; |
p | 597 | drivers/char/ftape/ecc.c | set_parity(data, nblocks, p, 1); |
p | 598 | drivers/char/ftape/ecc.c | if (p[0] | p[1] | p[2]) { |
p | 604 | drivers/char/ftape/ecc.c | s[0] = gfmul_exp_long(gfadd_long(p[0], gfmul_exp_long(gfadd_long(p[1], |
p | 605 | drivers/char/ftape/ecc.c | gfmul_exp_long(p[2], -1)), -1)), -nblocks); |
p | 606 | drivers/char/ftape/ecc.c | s[1] = gfadd_long(gfadd_long(p[2], p[1]), p[0]); |
p | 607 | drivers/char/ftape/ecc.c | s[2] = gfmul_exp_long(gfadd_long(p[0], gfmul_exp_long(gfadd_long(p[1], |
p | 608 | drivers/char/ftape/ecc.c | gfmul_exp_long(p[2], 1)), 1)), nblocks); |
p | 45 | drivers/char/mem.c | unsigned long p = file->f_pos; |
p | 48 | drivers/char/mem.c | p += PAGE_OFFSET; |
p | 51 | drivers/char/mem.c | if (MAP_NR(p) >= MAP_NR(high_memory)) |
p | 53 | drivers/char/mem.c | if (count > high_memory - p) |
p | 54 | drivers/char/mem.c | count = high_memory - p; |
p | 57 | drivers/char/mem.c | while (p < PAGE_OFFSET + PAGE_SIZE && count > 0) { |
p | 60 | drivers/char/mem.c | p++; |
p | 65 | drivers/char/mem.c | memcpy_tofs(buf, (void *) p, count); |
p | 73 | drivers/char/mem.c | unsigned long p = file->f_pos; |
p | 76 | drivers/char/mem.c | p += PAGE_OFFSET; |
p | 79 | drivers/char/mem.c | if (MAP_NR(p) >= MAP_NR(high_memory)) |
p | 81 | drivers/char/mem.c | if (count > high_memory - p) |
p | 82 | drivers/char/mem.c | count = high_memory - p; |
p | 85 | drivers/char/mem.c | while (PAGE_OFFSET + p < PAGE_SIZE && count > 0) { |
p | 88 | drivers/char/mem.c | p++; |
p | 93 | 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 | 111 | drivers/isdn/icn/icn.c | pqueue *p; |
p | 114 | drivers/isdn/icn/icn.c | if ((p = *queue)) { |
p | 115 | drivers/isdn/icn/icn.c | while (p) { |
p | 116 | drivers/isdn/icn/icn.c | q = p; |
p | 117 | drivers/isdn/icn/icn.c | p = (pqueue *) p->next; |
p | 119 | drivers/isdn/icn/icn.c | p = (pqueue *) kmalloc(sizeof(pqueue) + length, GFP_ATOMIC); |
p | 120 | drivers/isdn/icn/icn.c | q->next = (u_char *) p; |
p | 122 | drivers/isdn/icn/icn.c | p = *queue = (pqueue *) kmalloc(sizeof(pqueue) + length, GFP_ATOMIC); |
p | 123 | drivers/isdn/icn/icn.c | if (p) { |
p | 124 | drivers/isdn/icn/icn.c | p->size = sizeof(pqueue) + length; |
p | 125 | drivers/isdn/icn/icn.c | p->length = length; |
p | 126 | drivers/isdn/icn/icn.c | p->next = NULL; |
p | 127 | drivers/isdn/icn/icn.c | p->rptr = p->buffer; |
p | 128 | drivers/isdn/icn/icn.c | return p->buffer; |
p | 137 | drivers/isdn/icn/icn.c | pqueue *p; |
p | 140 | drivers/isdn/icn/icn.c | p = *queue; |
p | 141 | drivers/isdn/icn/icn.c | while (p) { |
p | 142 | drivers/isdn/icn/icn.c | q = p; |
p | 143 | drivers/isdn/icn/icn.c | p = (pqueue *) p->next; |
p | 358 | drivers/isdn/icn/icn.c | pqueue *p; |
p | 376 | drivers/isdn/icn/icn.c | p = dev->spqueue[channel]; |
p | 382 | drivers/isdn/icn/icn.c | kfree_s(p, p->size); |
p | 459 | drivers/isdn/icn/icn.c | u_char *p; |
p | 479 | drivers/isdn/icn/icn.c | p = &dev->imsg[3]; |
p | 480 | drivers/isdn/icn/icn.c | if (!strncmp(p, "BCON_", 5)) { |
p | 495 | drivers/isdn/icn/icn.c | if (!strncmp(p, "TEI OK", 6)) { |
p | 502 | drivers/isdn/icn/icn.c | if (!strncmp(p, "BDIS_", 5)) { |
p | 519 | drivers/isdn/icn/icn.c | if (!strncmp(p, "DCON_", 5)) { |
p | 526 | drivers/isdn/icn/icn.c | if (!strncmp(p, "DDIS_", 5)) { |
p | 533 | drivers/isdn/icn/icn.c | if (!strncmp(p, "E_L1: ACT FAIL", 14)) { |
p | 544 | drivers/isdn/icn/icn.c | if (!strncmp(p, "CIF", 3)) { |
p | 547 | drivers/isdn/icn/icn.c | strncpy(cmd.num, p + 3, sizeof(cmd.num) - 1); |
p | 552 | drivers/isdn/icn/icn.c | if (!strncmp(p, "CAU", 3)) { |
p | 555 | drivers/isdn/icn/icn.c | strncpy(cmd.num, p + 3, sizeof(cmd.num) - 1); |
p | 560 | drivers/isdn/icn/icn.c | if (!strncmp(p, "DCAL_I", 6)) { |
p | 564 | drivers/isdn/icn/icn.c | strncpy(cmd.num, p + 6, sizeof(cmd.num) - 1); |
p | 568 | drivers/isdn/icn/icn.c | if (!strncmp(p, "FCALL", 5)) { |
p | 576 | drivers/isdn/icn/icn.c | if (!strncmp(p, "DSCA_I", 6)) { |
p | 580 | drivers/isdn/icn/icn.c | strncpy(cmd.num, p + 6, sizeof(cmd.num) - 1); |
p | 584 | drivers/isdn/icn/icn.c | if (!strncmp(p, "NO D-CHAN", 9)) { |
p | 588 | drivers/isdn/icn/icn.c | strncpy(cmd.num, p + 6, sizeof(cmd.num) - 1); |
p | 593 | drivers/isdn/icn/icn.c | p = dev->imsg; |
p | 594 | drivers/isdn/icn/icn.c | if (!strncmp(p, "DRV1.", 5)) { |
p | 595 | drivers/isdn/icn/icn.c | printk(KERN_INFO "icn: %s\n",p); |
p | 596 | drivers/isdn/icn/icn.c | if (!strncmp(p + 7, "TC", 2)) { |
p | 601 | drivers/isdn/icn/icn.c | if (!strncmp(p + 7, "EC", 2)) { |
p | 682 | drivers/isdn/icn/icn.c | register u_char *p; |
p | 692 | drivers/isdn/icn/icn.c | p = icn_new_buf(&dev->spqueue[channel], len); |
p | 693 | drivers/isdn/icn/icn.c | if (!p) { |
p | 698 | drivers/isdn/icn/icn.c | memcpy_fromfs(p, buffer, len); |
p | 700 | drivers/isdn/icn/icn.c | memcpy(p, buffer, len); |
p | 857 | drivers/isdn/icn/icn.c | register u_char *p = buffer; |
p | 883 | drivers/isdn/icn/icn.c | memcpy_fromfs(&sbuf_l, p, cnt); /* copy data */ |
p | 885 | drivers/isdn/icn/icn.c | p += cnt; |
p | 947 | drivers/isdn/icn/icn.c | u_char *p; |
p | 949 | drivers/isdn/icn/icn.c | for (p = buf, count = 0; count < len; p++, count++) { |
p | 951 | drivers/isdn/icn/icn.c | put_fs_byte(*dev->msg_buf_read++, p); |
p | 953 | drivers/isdn/icn/icn.c | *p = *dev->msg_buf_read++; |
p | 970 | drivers/isdn/icn/icn.c | u_char *p; |
p | 988 | drivers/isdn/icn/icn.c | for (p = msg, pp = cmd_i, i = count; i > 0; i--, p++, pp++) { |
p | 989 | drivers/isdn/icn/icn.c | dev->shmem->comm_buffers.pcio_buf[pp & 0xff] = (*p == '\n') ? 0xff : *p; |
p | 990 | drivers/isdn/icn/icn.c | *dev->msg_buf_write++ = *p; |
p | 991 | drivers/isdn/icn/icn.c | if ((*p == '\n') && (i > 1)) { |
p | 1175 | drivers/isdn/icn/icn.c | char *p; |
p | 1184 | drivers/isdn/icn/icn.c | p = strrchr(sis, ','); |
p | 1185 | drivers/isdn/icn/icn.c | *p++ = '\0'; |
p | 1186 | drivers/isdn/icn/icn.c | si2 = my_atoi(p); |
p | 1187 | drivers/isdn/icn/icn.c | p = strrchr(sis, ',') + 1; |
p | 1188 | drivers/isdn/icn/icn.c | si1 = my_atoi(p); |
p | 1189 | drivers/isdn/icn/icn.c | p = c->num; |
p | 1190 | drivers/isdn/icn/icn.c | if (*p == 's' || *p == 'S') { |
p | 1192 | drivers/isdn/icn/icn.c | p++; |
p | 1197 | drivers/isdn/icn/icn.c | strcpy(dial, p); |
p | 1198 | drivers/isdn/icn/icn.c | p = strchr(dial, ','); |
p | 1199 | drivers/isdn/icn/icn.c | *p++ = '\0'; |
p | 1200 | drivers/isdn/icn/icn.c | p2 = strchr(p, ','); |
p | 1203 | drivers/isdn/icn/icn.c | si2, p); |
p | 1349 | drivers/isdn/icn/icn.c | char *p; |
p | 1360 | drivers/isdn/icn/icn.c | if ((p = strchr(sid,','))) { |
p | 1361 | drivers/isdn/icn/icn.c | *p++ = 0; |
p | 1362 | drivers/isdn/icn/icn.c | strcpy(sid2,p); |
p | 1374 | drivers/isdn/icn/icn.c | char *p; |
p | 1450 | drivers/isdn/icn/icn.c | if ((p = strchr(revision, ':'))) { |
p | 1451 | drivers/isdn/icn/icn.c | strcpy(rev, p + 1); |
p | 1452 | drivers/isdn/icn/icn.c | p = strchr(rev, '$'); |
p | 1453 | drivers/isdn/icn/icn.c | *p = 0; |
p | 101 | drivers/isdn/icn/icn.h | #define OUTB_P(v,p) {printk(KERN_DEBUG "icn: outb_p(0x%02x,0x%03x)\n",v,p); outb_p(v,p);} |
p | 85 | drivers/isdn/isdn_common.c | void isdn_dumppkt(char *s, u_char * p, int len, int dumplen) |
p | 91 | drivers/isdn/isdn_common.c | printk(" %02x", *p++); |
p | 100 | drivers/isdn/isdn_common.c | pqueue *p; |
p | 103 | drivers/isdn/isdn_common.c | if ((p = *queue)) { |
p | 104 | drivers/isdn/isdn_common.c | while (p) { |
p | 105 | drivers/isdn/isdn_common.c | q = p; |
p | 106 | drivers/isdn/isdn_common.c | p = (pqueue *) p->next; |
p | 108 | drivers/isdn/isdn_common.c | p = (pqueue *) kmalloc(sizeof(pqueue) + length, GFP_ATOMIC); |
p | 109 | drivers/isdn/isdn_common.c | q->next = (u_char *) p; |
p | 111 | drivers/isdn/isdn_common.c | p = *queue = (pqueue *) kmalloc(sizeof(pqueue) + length, GFP_ATOMIC); |
p | 112 | drivers/isdn/isdn_common.c | if (p) { |
p | 113 | drivers/isdn/isdn_common.c | p->size = sizeof(pqueue) + length; |
p | 114 | drivers/isdn/isdn_common.c | p->length = length; |
p | 115 | drivers/isdn/isdn_common.c | p->next = NULL; |
p | 116 | drivers/isdn/isdn_common.c | p->rptr = p->buffer; |
p | 117 | drivers/isdn/isdn_common.c | return p->buffer; |
p | 125 | drivers/isdn/isdn_common.c | pqueue *p; |
p | 128 | drivers/isdn/isdn_common.c | p = *queue; |
p | 129 | drivers/isdn/isdn_common.c | while (p) { |
p | 130 | drivers/isdn/isdn_common.c | q = p; |
p | 131 | drivers/isdn/isdn_common.c | p = (pqueue *) p->next; |
p | 228 | drivers/isdn/isdn_common.c | char *p; |
p | 265 | drivers/isdn/isdn_common.c | p = isdn_new_buf(&dev->drv[di]->rpqueue[channel], len); |
p | 266 | drivers/isdn/isdn_common.c | if (!p) { |
p | 272 | drivers/isdn/isdn_common.c | memcpy(p, buf, len); |
p | 575 | drivers/isdn/isdn_common.c | int isdn_getnum(char **p) |
p | 579 | drivers/isdn/isdn_common.c | while (*p[0] >= '0' && *p[0] <= '9') |
p | 580 | drivers/isdn/isdn_common.c | v = ((v < 0) ? 0 : (v * 10)) + (int) ((*p[0]++) - '0'); |
p | 592 | drivers/isdn/isdn_common.c | pqueue *p; |
p | 616 | drivers/isdn/isdn_common.c | p = dev->drv[di]->rpqueue[channel]; |
p | 618 | drivers/isdn/isdn_common.c | memcpy_tofs(cp, p->rptr, copy_l); |
p | 620 | drivers/isdn/isdn_common.c | memcpy(cp, p->rptr, copy_l); |
p | 633 | drivers/isdn/isdn_common.c | dev->drv[di]->rpqueue[channel] = (pqueue *) p->next; |
p | 634 | drivers/isdn/isdn_common.c | kfree_s(p, p->size); |
p | 637 | drivers/isdn/isdn_common.c | p->rptr += copy_l; |
p | 638 | drivers/isdn/isdn_common.c | p->length -= copy_l; |
p | 662 | drivers/isdn/isdn_common.c | char *p; |
p | 666 | drivers/isdn/isdn_common.c | p = istatbuf + strlen(istatbuf); |
p | 668 | drivers/isdn/isdn_common.c | sprintf(p, "%s ", (dev->drvmap[i] < 0) ? "-" : dev->drvid[dev->drvmap[i]]); |
p | 669 | drivers/isdn/isdn_common.c | p = istatbuf + strlen(istatbuf); |
p | 671 | drivers/isdn/isdn_common.c | sprintf(p, "\nchmap:\t"); |
p | 672 | drivers/isdn/isdn_common.c | p = istatbuf + strlen(istatbuf); |
p | 674 | drivers/isdn/isdn_common.c | sprintf(p, "%d ", dev->chanmap[i]); |
p | 675 | drivers/isdn/isdn_common.c | p = istatbuf + strlen(istatbuf); |
p | 677 | drivers/isdn/isdn_common.c | sprintf(p, "\ndrmap:\t"); |
p | 678 | drivers/isdn/isdn_common.c | p = istatbuf + strlen(istatbuf); |
p | 680 | drivers/isdn/isdn_common.c | sprintf(p, "%d ", dev->drvmap[i]); |
p | 681 | drivers/isdn/isdn_common.c | p = istatbuf + strlen(istatbuf); |
p | 683 | drivers/isdn/isdn_common.c | sprintf(p, "\nusage:\t"); |
p | 684 | drivers/isdn/isdn_common.c | p = istatbuf + strlen(istatbuf); |
p | 686 | drivers/isdn/isdn_common.c | sprintf(p, "%d ", dev->usage[i]); |
p | 687 | drivers/isdn/isdn_common.c | p = istatbuf + strlen(istatbuf); |
p | 689 | drivers/isdn/isdn_common.c | sprintf(p, "\nflags:\t"); |
p | 690 | drivers/isdn/isdn_common.c | p = istatbuf + strlen(istatbuf); |
p | 693 | drivers/isdn/isdn_common.c | sprintf(p, "%ld ", dev->drv[i]->flags); |
p | 694 | drivers/isdn/isdn_common.c | p = istatbuf + strlen(istatbuf); |
p | 696 | drivers/isdn/isdn_common.c | sprintf(p, "? "); |
p | 697 | drivers/isdn/isdn_common.c | p = istatbuf + strlen(istatbuf); |
p | 700 | drivers/isdn/isdn_common.c | sprintf(p, "\nphone:\t"); |
p | 701 | drivers/isdn/isdn_common.c | p = istatbuf + strlen(istatbuf); |
p | 703 | drivers/isdn/isdn_common.c | sprintf(p, "%s ", dev->num[i]); |
p | 704 | drivers/isdn/isdn_common.c | p = istatbuf + strlen(istatbuf); |
p | 706 | drivers/isdn/isdn_common.c | sprintf(p, "\n"); |
p | 714 | drivers/isdn/isdn_common.c | infostruct *p = dev->infochain; |
p | 716 | drivers/isdn/isdn_common.c | while (p) { |
p | 717 | drivers/isdn/isdn_common.c | *(p->private) = 1; |
p | 718 | drivers/isdn/isdn_common.c | p = (infostruct *) p->next; |
p | 732 | drivers/isdn/isdn_common.c | char *p; |
p | 736 | drivers/isdn/isdn_common.c | p = isdn_statstr(); |
p | 739 | drivers/isdn/isdn_common.c | if ((len = strlen(p)) <= count) { |
p | 740 | drivers/isdn/isdn_common.c | memcpy_tofs(buf, p, len); |
p | 944 | drivers/isdn/isdn_common.c | isdn_net_dev *p; |
p | 951 | drivers/isdn/isdn_common.c | p = dev->netdev; |
p | 952 | drivers/isdn/isdn_common.c | while (p) { |
p | 957 | drivers/isdn/isdn_common.c | strcpy(cfg.eaz, p->local.msn); |
p | 958 | drivers/isdn/isdn_common.c | cfg.exclusive = p->local.exclusive; |
p | 959 | drivers/isdn/isdn_common.c | if (p->local.pre_device >= 0) { |
p | 960 | drivers/isdn/isdn_common.c | sprintf(cfg.drvid, "%s,%d", dev->drvid[p->local.pre_device], |
p | 961 | drivers/isdn/isdn_common.c | p->local.pre_channel); |
p | 964 | drivers/isdn/isdn_common.c | cfg.onhtime = p->local.onhtime; |
p | 965 | drivers/isdn/isdn_common.c | cfg.charge = p->local.charge; |
p | 966 | drivers/isdn/isdn_common.c | cfg.l2_proto = p->local.l2_proto; |
p | 967 | drivers/isdn/isdn_common.c | cfg.l3_proto = p->local.l3_proto; |
p | 968 | drivers/isdn/isdn_common.c | cfg.p_encap = p->local.p_encap; |
p | 969 | drivers/isdn/isdn_common.c | cfg.secure = (p->local.flags & ISDN_NET_SECURE) ? 1 : 0; |
p | 970 | drivers/isdn/isdn_common.c | cfg.callback = (p->local.flags & ISDN_NET_CALLBACK) ? 1 : 0; |
p | 971 | drivers/isdn/isdn_common.c | cfg.chargehup = (p->local.hupflags & 4) ? 1 : 0; |
p | 972 | drivers/isdn/isdn_common.c | cfg.ihup = (p->local.hupflags & 8) ? 1 : 0; |
p | 973 | drivers/isdn/isdn_common.c | memcpy_tofs(dest, p->local.name, 10); |
p | 977 | drivers/isdn/isdn_common.c | strcpy(phone.name, p->local.name); |
p | 984 | drivers/isdn/isdn_common.c | strcpy(phone.name, p->local.name); |
p | 991 | drivers/isdn/isdn_common.c | p = p->next; |
p | 1168 | drivers/isdn/isdn_common.c | char *p; |
p | 1174 | drivers/isdn/isdn_common.c | if ((p = strchr(iocts.drvid, ','))) |
p | 1175 | drivers/isdn/isdn_common.c | *p = 0; |
p | 1211 | drivers/isdn/isdn_common.c | char *p = (char *) arg; |
p | 1220 | drivers/isdn/isdn_common.c | memcpy_tofs(p, dev->mdm.atmodem[i].profile, ISDN_MODEM_ANZREG); |
p | 1221 | drivers/isdn/isdn_common.c | p += ISDN_MODEM_ANZREG; |
p | 1222 | drivers/isdn/isdn_common.c | memcpy_tofs(p, dev->mdm.atmodem[i].pmsn, ISDN_MSNLEN); |
p | 1223 | drivers/isdn/isdn_common.c | p += ISDN_MSNLEN; |
p | 1232 | drivers/isdn/isdn_common.c | char *p = (char *) arg; |
p | 1241 | drivers/isdn/isdn_common.c | memcpy_fromfs(dev->mdm.atmodem[i].profile, p, ISDN_MODEM_ANZREG); |
p | 1242 | drivers/isdn/isdn_common.c | p += ISDN_MODEM_ANZREG; |
p | 1243 | drivers/isdn/isdn_common.c | memcpy_fromfs(dev->mdm.atmodem[i].pmsn, p, ISDN_MSNLEN); |
p | 1244 | drivers/isdn/isdn_common.c | p += ISDN_MSNLEN; |
p | 1255 | drivers/isdn/isdn_common.c | char *p; |
p | 1279 | drivers/isdn/isdn_common.c | p = strtok(nstring, ","); |
p | 1281 | drivers/isdn/isdn_common.c | while ((p) && (i < 10)) { |
p | 1282 | drivers/isdn/isdn_common.c | strcpy(dev->drv[drvidx]->msn2eaz[i++], p); |
p | 1283 | drivers/isdn/isdn_common.c | p = strtok(NULL, ","); |
p | 1286 | drivers/isdn/isdn_common.c | p = nstring; |
p | 1288 | drivers/isdn/isdn_common.c | p += sprintf(p, "%s%s", |
p | 1316 | drivers/isdn/isdn_common.c | char *p; |
p | 1322 | drivers/isdn/isdn_common.c | if ((p = strchr(iocts.drvid, ','))) |
p | 1323 | drivers/isdn/isdn_common.c | *p = 0; |
p | 1369 | drivers/isdn/isdn_common.c | infostruct *p; |
p | 1371 | drivers/isdn/isdn_common.c | if ((p = (infostruct *) kmalloc(sizeof(infostruct), GFP_KERNEL))) { |
p | 1373 | drivers/isdn/isdn_common.c | p->next = (char *) dev->infochain; |
p | 1374 | drivers/isdn/isdn_common.c | p->private = (char *) &(filep->private_data); |
p | 1375 | drivers/isdn/isdn_common.c | dev->infochain = p; |
p | 1430 | drivers/isdn/isdn_common.c | infostruct *p = dev->infochain; |
p | 1432 | drivers/isdn/isdn_common.c | while (p) { |
p | 1433 | drivers/isdn/isdn_common.c | if (p->private == (char *) &(filep->private_data)) { |
p | 1435 | drivers/isdn/isdn_common.c | q->next = p->next; |
p | 1437 | drivers/isdn/isdn_common.c | dev->infochain = (infostruct *) (p->next); |
p | 1440 | drivers/isdn/isdn_common.c | q = p; |
p | 1441 | drivers/isdn/isdn_common.c | p = (infostruct *) (p->next); |
p | 1757 | drivers/isdn/isdn_common.c | char *p; |
p | 1759 | drivers/isdn/isdn_common.c | if ((p = strchr(revision, ':'))) { |
p | 1760 | drivers/isdn/isdn_common.c | strcpy(rev, p + 2); |
p | 1761 | drivers/isdn/isdn_common.c | p = strchr(rev, '$'); |
p | 1762 | drivers/isdn/isdn_common.c | *--p = 0; |
p | 69 | drivers/isdn/isdn_net.c | static int isdn_net_wildmat(char *s, char *p); |
p | 96 | drivers/isdn/isdn_net.c | struct device *p; |
p | 107 | drivers/isdn/isdn_net.c | if ((p = (((isdn_net_local *) dev->priv)->slave))) { |
p | 108 | drivers/isdn/isdn_net.c | while (p) { |
p | 109 | drivers/isdn/isdn_net.c | isdn_net_reset(p); |
p | 110 | drivers/isdn/isdn_net.c | p->start = 1; |
p | 111 | drivers/isdn/isdn_net.c | p = (((isdn_net_local *) p->priv)->slave); |
p | 152 | drivers/isdn/isdn_net.c | isdn_net_dev *p = dev->netdev; |
p | 159 | drivers/isdn/isdn_net.c | while (p) { |
p | 160 | drivers/isdn/isdn_net.c | isdn_net_local *l = (isdn_net_local *) & (p->local); |
p | 172 | drivers/isdn/isdn_net.c | isdn_net_hangup(&p->dev); |
p | 174 | drivers/isdn/isdn_net.c | isdn_net_hangup(&p->dev); |
p | 176 | drivers/isdn/isdn_net.c | isdn_net_hangup(&p->dev); |
p | 178 | drivers/isdn/isdn_net.c | isdn_net_hangup(&p->dev); |
p | 180 | drivers/isdn/isdn_net.c | p = (isdn_net_dev *) p->next; |
p | 195 | drivers/isdn/isdn_net.c | isdn_net_dev *p = dev->st_netdev[idx]; |
p | 197 | drivers/isdn/isdn_net.c | if (p) { |
p | 198 | drivers/isdn/isdn_net.c | isdn_net_local *lp = &(p->local); |
p | 205 | drivers/isdn/isdn_net.c | if (clear_bit(0,(void*)&(p->dev.tbusy))) |
p | 244 | drivers/isdn/isdn_net.c | dev->rx_netdev[idx] = p; |
p | 254 | drivers/isdn/isdn_net.c | if (!(isdn_net_xmit(&p->dev,lp,lp->first_skb))) |
p | 313 | drivers/isdn/isdn_net.c | isdn_net_dev *p = dev->netdev; |
p | 318 | drivers/isdn/isdn_net.c | while (p) { |
p | 319 | drivers/isdn/isdn_net.c | switch (p->local.dialstate) { |
p | 327 | drivers/isdn/isdn_net.c | p->local.dial = p->local.phone[1]; |
p | 329 | drivers/isdn/isdn_net.c | p->local.dialstate++; |
p | 333 | drivers/isdn/isdn_net.c | cmd.driver = p->local.isdn_device; |
p | 334 | drivers/isdn/isdn_net.c | cmd.arg = p->local.isdn_channel; |
p | 336 | drivers/isdn/isdn_net.c | dev->drv[p->local.isdn_device]->interface->command(&cmd); |
p | 337 | drivers/isdn/isdn_net.c | sprintf(cmd.num, "%s", isdn_map_eaz2msn(p->local.msn, cmd.driver)); |
p | 339 | drivers/isdn/isdn_net.c | dev->drv[p->local.isdn_device]->interface->command(&cmd); |
p | 340 | drivers/isdn/isdn_net.c | p->local.dialretry = 0; |
p | 342 | drivers/isdn/isdn_net.c | p->local.dialstate++; |
p | 349 | drivers/isdn/isdn_net.c | cmd.driver = p->local.isdn_device; |
p | 351 | drivers/isdn/isdn_net.c | cmd.arg = p->local.isdn_channel + (p->local.l2_proto << 8); |
p | 352 | drivers/isdn/isdn_net.c | dev->drv[p->local.isdn_device]->interface->command(&cmd); |
p | 353 | drivers/isdn/isdn_net.c | cmd.driver = p->local.isdn_device; |
p | 355 | drivers/isdn/isdn_net.c | cmd.arg = p->local.isdn_channel + (p->local.l3_proto << 8); |
p | 356 | drivers/isdn/isdn_net.c | dev->drv[p->local.isdn_device]->interface->command(&cmd); |
p | 357 | drivers/isdn/isdn_net.c | cmd.driver = p->local.isdn_device; |
p | 358 | drivers/isdn/isdn_net.c | cmd.arg = p->local.isdn_channel; |
p | 359 | drivers/isdn/isdn_net.c | p->local.huptimer = 0; |
p | 360 | drivers/isdn/isdn_net.c | p->local.outgoing = 1; |
p | 361 | drivers/isdn/isdn_net.c | p->local.hupflags |= 1; |
p | 362 | drivers/isdn/isdn_net.c | if (!strcmp(p->local.dial->num, "LEASED")) { |
p | 363 | drivers/isdn/isdn_net.c | p->local.dialstate = 4; |
p | 364 | drivers/isdn/isdn_net.c | printk(KERN_INFO "%s: Open leased line ...\n", p->local.name); |
p | 367 | drivers/isdn/isdn_net.c | sprintf(cmd.num, "%s,%s,7,0", p->local.dial->num, |
p | 368 | drivers/isdn/isdn_net.c | isdn_map_eaz2msn(p->local.msn, cmd.driver)); |
p | 369 | drivers/isdn/isdn_net.c | i = isdn_dc2minor(p->local.isdn_device, p->local.isdn_channel); |
p | 371 | drivers/isdn/isdn_net.c | strcpy(dev->num[i], p->local.dial->num); |
p | 374 | drivers/isdn/isdn_net.c | printk(KERN_INFO "%s: dialing %d %s...\n", p->local.name, |
p | 375 | drivers/isdn/isdn_net.c | p->local.dialretry, p->local.dial->num); |
p | 379 | drivers/isdn/isdn_net.c | if (!(p->local.dial = (isdn_net_phone *) p->local.dial->next)) { |
p | 380 | drivers/isdn/isdn_net.c | p->local.dial = p->local.phone[1]; |
p | 381 | drivers/isdn/isdn_net.c | p->local.dialretry++; |
p | 383 | drivers/isdn/isdn_net.c | p->local.dtimer = 0; |
p | 385 | drivers/isdn/isdn_net.c | printk(KERN_DEBUG "dial: d=%d c=%d\n", p->local.isdn_device, |
p | 386 | drivers/isdn/isdn_net.c | p->local.isdn_channel); |
p | 388 | drivers/isdn/isdn_net.c | dev->drv[p->local.isdn_device]->interface->command(&cmd); |
p | 391 | drivers/isdn/isdn_net.c | p->local.dialstate++; |
p | 398 | drivers/isdn/isdn_net.c | if (p->local.dtimer++ > ISDN_TIMER_DTIMEOUT10) |
p | 399 | drivers/isdn/isdn_net.c | if (p->local.dialretry < p->local.dialmax) { |
p | 400 | drivers/isdn/isdn_net.c | p->local.dialstate = 3; |
p | 402 | drivers/isdn/isdn_net.c | isdn_net_hangup(&p->dev); |
p | 407 | drivers/isdn/isdn_net.c | cmd.driver = p->local.isdn_device; |
p | 408 | drivers/isdn/isdn_net.c | cmd.arg = p->local.isdn_channel; |
p | 411 | drivers/isdn/isdn_net.c | p->local.dtimer = 0; |
p | 412 | drivers/isdn/isdn_net.c | p->local.dialstate++; |
p | 413 | drivers/isdn/isdn_net.c | dev->drv[p->local.isdn_device]->interface->command(&cmd); |
p | 420 | drivers/isdn/isdn_net.c | printk(KERN_DEBUG "dialtimer2: %d\n", p->local.dtimer); |
p | 422 | drivers/isdn/isdn_net.c | if (p->local.dtimer++ > ISDN_TIMER_DTIMEOUT10) |
p | 423 | drivers/isdn/isdn_net.c | p->local.dialstate = 3; |
p | 431 | drivers/isdn/isdn_net.c | printk(KERN_DEBUG "dialtimer4: %d\n", p->local.dtimer); |
p | 433 | drivers/isdn/isdn_net.c | cmd.driver = p->local.isdn_device; |
p | 435 | drivers/isdn/isdn_net.c | cmd.arg = p->local.isdn_channel + (p->local.l2_proto << 8); |
p | 436 | drivers/isdn/isdn_net.c | dev->drv[p->local.isdn_device]->interface->command(&cmd); |
p | 437 | drivers/isdn/isdn_net.c | cmd.driver = p->local.isdn_device; |
p | 439 | drivers/isdn/isdn_net.c | cmd.arg = p->local.isdn_channel + (p->local.l3_proto << 8); |
p | 440 | drivers/isdn/isdn_net.c | dev->drv[p->local.isdn_device]->interface->command(&cmd); |
p | 441 | drivers/isdn/isdn_net.c | if (p->local.dtimer++ > ISDN_TIMER_DTIMEOUT15) |
p | 442 | drivers/isdn/isdn_net.c | isdn_net_hangup(&p->dev); |
p | 445 | drivers/isdn/isdn_net.c | p->local.dialstate++; |
p | 450 | drivers/isdn/isdn_net.c | cmd.driver = p->local.isdn_device; |
p | 451 | drivers/isdn/isdn_net.c | cmd.arg = p->local.isdn_channel; |
p | 453 | drivers/isdn/isdn_net.c | dev->drv[p->local.isdn_device]->interface->command(&cmd); |
p | 455 | drivers/isdn/isdn_net.c | p->local.dtimer = 0; |
p | 456 | drivers/isdn/isdn_net.c | p->local.dialstate++; |
p | 462 | drivers/isdn/isdn_net.c | printk(KERN_DEBUG "dialtimer4: %d\n", p->local.dtimer); |
p | 464 | drivers/isdn/isdn_net.c | if (p->local.dtimer++ > ISDN_TIMER_DTIMEOUT10) |
p | 465 | drivers/isdn/isdn_net.c | isdn_net_hangup(&p->dev); |
p | 471 | drivers/isdn/isdn_net.c | p->local.dialstate, p->local.name); |
p | 473 | drivers/isdn/isdn_net.c | p = (isdn_net_dev *) p->next; |
p | 538 | drivers/isdn/isdn_net.c | u_char *p = buf; |
p | 549 | drivers/isdn/isdn_net.c | p = &buf[2]; |
p | 553 | drivers/isdn/isdn_net.c | p = &buf[14]; |
p | 557 | drivers/isdn/isdn_net.c | p = &buf[4]; |
p | 573 | drivers/isdn/isdn_net.c | p = &buf[len]; |
p | 576 | drivers/isdn/isdn_net.c | data_ofs = ((p[0] & 15) * 4); |
p | 579 | drivers/isdn/isdn_net.c | switch (p[9]) { |
p | 590 | drivers/isdn/isdn_net.c | ipp = (ip_ports *) (&p[data_ofs]); |
p | 601 | drivers/isdn/isdn_net.c | ipp = (ip_ports *) (&p[data_ofs]); |
p | 610 | drivers/isdn/isdn_net.c | p[12], p[13], p[14], p[15], |
p | 611 | drivers/isdn/isdn_net.c | p[16], p[17], p[18], p[19], |
p | 616 | drivers/isdn/isdn_net.c | p[14], p[15], p[16], p[17], |
p | 617 | drivers/isdn/isdn_net.c | p[24], p[25], p[26], p[27]); |
p | 841 | drivers/isdn/isdn_net.c | struct device *p; |
p | 846 | drivers/isdn/isdn_net.c | if ((p = (((isdn_net_local *) dev->priv)->slave))) { |
p | 848 | drivers/isdn/isdn_net.c | while (p) { |
p | 849 | drivers/isdn/isdn_net.c | isdn_net_hangup(p); |
p | 850 | drivers/isdn/isdn_net.c | p->tbusy = 1; |
p | 851 | drivers/isdn/isdn_net.c | p->start = 0; |
p | 852 | drivers/isdn/isdn_net.c | p = (((isdn_net_local *) p->priv)->slave); |
p | 996 | drivers/isdn/isdn_net.c | isdn_net_dev *p = dev->rx_netdev[idx]; |
p | 999 | drivers/isdn/isdn_net.c | if (p) { |
p | 1000 | drivers/isdn/isdn_net.c | isdn_net_local *lp = &p->local; |
p | 1009 | drivers/isdn/isdn_net.c | isdn_net_receive(&p->dev, skb); |
p | 1023 | drivers/isdn/isdn_net.c | isdn_net_dev *p = dev->rx_netdev[idx]; |
p | 1025 | drivers/isdn/isdn_net.c | if (p) { |
p | 1026 | drivers/isdn/isdn_net.c | isdn_net_local *lp = &p->local; |
p | 1029 | drivers/isdn/isdn_net.c | isdn_net_receive(&p->dev, skb); |
p | 1246 | drivers/isdn/isdn_net.c | isdn_net_Star(char *s, char *p) |
p | 1248 | drivers/isdn/isdn_net.c | while (isdn_net_wildmat(s, p) == 0) |
p | 1268 | drivers/isdn/isdn_net.c | isdn_net_wildmat(char *s, char *p) |
p | 1274 | drivers/isdn/isdn_net.c | for (; *p; s++, p++) |
p | 1275 | drivers/isdn/isdn_net.c | switch (*p) { |
p | 1281 | drivers/isdn/isdn_net.c | p++; |
p | 1283 | drivers/isdn/isdn_net.c | if (*s != *p) |
p | 1293 | drivers/isdn/isdn_net.c | return (*++p ? isdn_net_Star(s, p) : 1); |
p | 1296 | drivers/isdn/isdn_net.c | if ((reverse = (p[1] == '^'))) |
p | 1297 | drivers/isdn/isdn_net.c | p++; |
p | 1298 | drivers/isdn/isdn_net.c | for (last = 0, matched = 0; *++p && (*p != ']'); last = *p) |
p | 1300 | drivers/isdn/isdn_net.c | if (*p == '-' ? *s <= *++p && *s >= last : *s == *p) |
p | 1312 | drivers/isdn/isdn_net.c | isdn_net_dev *p; |
p | 1317 | drivers/isdn/isdn_net.c | p = dev->netdev; |
p | 1318 | drivers/isdn/isdn_net.c | while (p) { |
p | 1319 | drivers/isdn/isdn_net.c | if (p->local.pre_device == drvidx) |
p | 1320 | drivers/isdn/isdn_net.c | switch (p->local.pre_channel) { |
p | 1322 | drivers/isdn/isdn_net.c | p->local.pre_channel = 1; |
p | 1325 | drivers/isdn/isdn_net.c | p->local.pre_channel = 0; |
p | 1328 | drivers/isdn/isdn_net.c | p = (isdn_net_dev *) p->next; |
p | 1369 | drivers/isdn/isdn_net.c | isdn_net_dev *p; |
p | 1415 | drivers/isdn/isdn_net.c | p = dev->netdev; |
p | 1422 | drivers/isdn/isdn_net.c | while (p) { |
p | 1433 | drivers/isdn/isdn_net.c | if (!strcmp(isdn_map_eaz2msn(p->local.msn, di), eaz)) |
p | 1437 | drivers/isdn/isdn_net.c | p->local.name, p->local.msn, p->local.flags, p->local.dialstate); |
p | 1439 | drivers/isdn/isdn_net.c | if ((!strcmp(isdn_map_eaz2msn(p->local.msn, di), eaz)) && /* EAZ is matching */ |
p | 1440 | drivers/isdn/isdn_net.c | (((!(p->local.flags & ISDN_NET_CONNECTED)) && /* but not connected */ |
p | 1442 | drivers/isdn/isdn_net.c | (((p->local.dialstate == 4) && /* if dialing */ |
p | 1443 | drivers/isdn/isdn_net.c | (!(p->local.flags & ISDN_NET_CALLBACK))) /* but no callback */ |
p | 1447 | drivers/isdn/isdn_net.c | p->local.pre_device, p->local.pre_channel); |
p | 1450 | drivers/isdn/isdn_net.c | if ((p->local.pre_channel != ch) || |
p | 1451 | drivers/isdn/isdn_net.c | (p->local.pre_device != di)) { |
p | 1475 | drivers/isdn/isdn_net.c | if ((p->local.pre_device == di) && |
p | 1476 | drivers/isdn/isdn_net.c | (p->local.pre_channel == 1)) { |
p | 1481 | drivers/isdn/isdn_net.c | p = (isdn_net_dev *) p->next; |
p | 1498 | drivers/isdn/isdn_net.c | ((p->local.pre_channel != ch) || |
p | 1499 | drivers/isdn/isdn_net.c | (p->local.pre_device != di))) { |
p | 1503 | drivers/isdn/isdn_net.c | p = (isdn_net_dev *) p->next; |
p | 1512 | drivers/isdn/isdn_net.c | p = (isdn_net_dev *) p->next; |
p | 1520 | drivers/isdn/isdn_net.c | n = p->local.phone[0]; |
p | 1521 | drivers/isdn/isdn_net.c | if (p->local.flags & ISDN_NET_SECURE) { |
p | 1528 | drivers/isdn/isdn_net.c | if (n || (!(p->local.flags & ISDN_NET_SECURE))) { |
p | 1529 | drivers/isdn/isdn_net.c | isdn_net_local *lp = &(p->local); |
p | 1536 | drivers/isdn/isdn_net.c | if (!p->dev.start) { |
p | 1562 | drivers/isdn/isdn_net.c | p = (isdn_net_dev *) p->next; |
p | 1588 | drivers/isdn/isdn_net.c | isdn_free_channel(p->local.isdn_device, p->local.isdn_channel, |
p | 1608 | drivers/isdn/isdn_net.c | if (p->local.isdn_device != -1) { |
p | 1609 | drivers/isdn/isdn_net.c | isdn_free_channel(p->local.isdn_device, p->local.isdn_channel, |
p | 1616 | drivers/isdn/isdn_net.c | if (p->local.dialstate == 4) |
p | 1617 | drivers/isdn/isdn_net.c | isdn_free_channel(p->local.isdn_device, p->local.isdn_channel, |
p | 1624 | drivers/isdn/isdn_net.c | p->local.isdn_device = di; |
p | 1625 | drivers/isdn/isdn_net.c | p->local.isdn_channel = ch; |
p | 1626 | drivers/isdn/isdn_net.c | p->local.ppp_minor = -1; |
p | 1627 | drivers/isdn/isdn_net.c | p->local.flags |= ISDN_NET_CONNECTED; |
p | 1628 | drivers/isdn/isdn_net.c | p->local.dialstate = 7; |
p | 1629 | drivers/isdn/isdn_net.c | p->local.dtimer = 0; |
p | 1630 | drivers/isdn/isdn_net.c | p->local.outgoing = 0; |
p | 1631 | drivers/isdn/isdn_net.c | p->local.huptimer = 0; |
p | 1632 | drivers/isdn/isdn_net.c | p->local.hupflags |= 1; |
p | 1636 | drivers/isdn/isdn_net.c | isdn_free_channel(p->local.isdn_device, p->local.isdn_channel, |
p | 1648 | drivers/isdn/isdn_net.c | p = (isdn_net_dev *) p->next; |
p | 1663 | drivers/isdn/isdn_net.c | isdn_net_dev *p = dev->netdev; |
p | 1665 | drivers/isdn/isdn_net.c | while (p) { |
p | 1666 | drivers/isdn/isdn_net.c | if (!strcmp(p->local.name, name)) |
p | 1667 | drivers/isdn/isdn_net.c | return p; |
p | 1668 | drivers/isdn/isdn_net.c | p = (isdn_net_dev *) p->next; |
p | 1724 | drivers/isdn/isdn_net.c | isdn_net_dev *p = isdn_net_findif(name); |
p | 1726 | drivers/isdn/isdn_net.c | if (!p) |
p | 1728 | drivers/isdn/isdn_net.c | return (isdn_net_force_dial_lp(&p->local)); |
p | 1759 | drivers/isdn/isdn_net.c | struct device *p = (((isdn_net_local *) master->priv)->slave); |
p | 1764 | drivers/isdn/isdn_net.c | while (p) { |
p | 1765 | drivers/isdn/isdn_net.c | q = p; |
p | 1766 | drivers/isdn/isdn_net.c | p = (((isdn_net_local *) p->priv)->slave); |
p | 1816 | drivers/isdn/isdn_net.c | char *p = strchr(parm, ','); |
p | 1820 | drivers/isdn/isdn_net.c | if (p) { |
p | 1822 | drivers/isdn/isdn_net.c | if (!strlen(p + 1)) |
p | 1824 | drivers/isdn/isdn_net.c | strcpy(newname, p + 1); |
p | 1825 | drivers/isdn/isdn_net.c | *p = 0; |
p | 1845 | drivers/isdn/isdn_net.c | isdn_net_dev *p = isdn_net_findif(cfg->name); |
p | 1852 | drivers/isdn/isdn_net.c | if (p) { |
p | 1863 | drivers/isdn/isdn_net.c | if ((p->local.p_encap != cfg->p_encap) && |
p | 1864 | drivers/isdn/isdn_net.c | ((p->local.p_encap == ISDN_NET_ENCAP_RAWIP) || |
p | 1866 | drivers/isdn/isdn_net.c | if (p->dev.start) { |
p | 1869 | drivers/isdn/isdn_net.c | p->local.name); |
p | 1875 | drivers/isdn/isdn_net.c | p->local.name); |
p | 1904 | drivers/isdn/isdn_net.c | drvidx = p->local.pre_device; |
p | 1905 | drivers/isdn/isdn_net.c | chidx = p->local.pre_channel; |
p | 1912 | drivers/isdn/isdn_net.c | if ((i = isdn_get_free_channel(ISDN_USAGE_NET, p->local.l2_proto, |
p | 1913 | drivers/isdn/isdn_net.c | p->local.l3_proto, |
p | 1917 | drivers/isdn/isdn_net.c | p->local.exclusive = -1; |
p | 1925 | drivers/isdn/isdn_net.c | p->local.exclusive = i; |
p | 1928 | drivers/isdn/isdn_net.c | p->local.exclusive = -1; |
p | 1929 | drivers/isdn/isdn_net.c | if ((p->local.pre_device != -1) && (cfg->exclusive == -1)) { |
p | 1930 | drivers/isdn/isdn_net.c | isdn_unexclusive_channel(p->local.pre_device, p->local.pre_channel); |
p | 1935 | drivers/isdn/isdn_net.c | strcpy(p->local.msn, cfg->eaz); |
p | 1936 | drivers/isdn/isdn_net.c | p->local.pre_device = drvidx; |
p | 1937 | drivers/isdn/isdn_net.c | p->local.pre_channel = chidx; |
p | 1938 | drivers/isdn/isdn_net.c | p->local.onhtime = cfg->onhtime; |
p | 1939 | drivers/isdn/isdn_net.c | p->local.charge = cfg->charge; |
p | 1940 | drivers/isdn/isdn_net.c | p->local.l2_proto = cfg->l2_proto; |
p | 1941 | drivers/isdn/isdn_net.c | p->local.l3_proto = cfg->l3_proto; |
p | 1942 | drivers/isdn/isdn_net.c | p->local.slavedelay = cfg->slavedelay * HZ; |
p | 1943 | drivers/isdn/isdn_net.c | p->local.p_encap = cfg->p_encap; |
p | 1945 | drivers/isdn/isdn_net.c | p->local.flags |= ISDN_NET_SECURE; |
p | 1947 | drivers/isdn/isdn_net.c | p->local.flags &= ~ISDN_NET_SECURE; |
p | 1949 | drivers/isdn/isdn_net.c | p->local.flags |= ISDN_NET_CALLBACK; |
p | 1951 | drivers/isdn/isdn_net.c | p->local.flags &= ~ISDN_NET_CALLBACK; |
p | 1953 | drivers/isdn/isdn_net.c | p->local.hupflags |= 4; |
p | 1955 | drivers/isdn/isdn_net.c | p->local.hupflags &= ~4; |
p | 1957 | drivers/isdn/isdn_net.c | p->local.hupflags |= 8; |
p | 1959 | drivers/isdn/isdn_net.c | p->local.hupflags &= ~8; |
p | 1961 | drivers/isdn/isdn_net.c | p->dev.hard_header = NULL; |
p | 1962 | drivers/isdn/isdn_net.c | p->dev.header_cache_bind = NULL; |
p | 1963 | drivers/isdn/isdn_net.c | p->dev.header_cache_update = NULL; |
p | 1964 | drivers/isdn/isdn_net.c | p->dev.flags = IFF_NOARP; |
p | 1966 | drivers/isdn/isdn_net.c | p->dev.hard_header = isdn_net_header; |
p | 1968 | drivers/isdn/isdn_net.c | p->dev.header_cache_bind = p->local.org_hcb; |
p | 1969 | drivers/isdn/isdn_net.c | p->dev.header_cache_update = p->local.org_hcu; |
p | 1970 | drivers/isdn/isdn_net.c | p->dev.flags = IFF_BROADCAST | IFF_MULTICAST; |
p | 1972 | drivers/isdn/isdn_net.c | p->dev.header_cache_bind = NULL; |
p | 1973 | drivers/isdn/isdn_net.c | p->dev.header_cache_update = NULL; |
p | 1974 | drivers/isdn/isdn_net.c | p->dev.flags = IFF_NOARP; |
p | 1987 | drivers/isdn/isdn_net.c | isdn_net_dev *p = isdn_net_findif(cfg->name); |
p | 1989 | drivers/isdn/isdn_net.c | if (p) { |
p | 1990 | drivers/isdn/isdn_net.c | strcpy(cfg->eaz, p->local.msn); |
p | 1991 | drivers/isdn/isdn_net.c | cfg->exclusive = p->local.exclusive; |
p | 1992 | drivers/isdn/isdn_net.c | if (p->local.pre_device >= 0) { |
p | 1993 | drivers/isdn/isdn_net.c | sprintf(cfg->drvid, "%s,%d", dev->drvid[p->local.pre_device], |
p | 1994 | drivers/isdn/isdn_net.c | p->local.pre_channel); |
p | 1997 | drivers/isdn/isdn_net.c | cfg->onhtime = p->local.onhtime; |
p | 1998 | drivers/isdn/isdn_net.c | cfg->charge = p->local.charge; |
p | 1999 | drivers/isdn/isdn_net.c | cfg->l2_proto = p->local.l2_proto; |
p | 2000 | drivers/isdn/isdn_net.c | cfg->l3_proto = p->local.l3_proto; |
p | 2001 | drivers/isdn/isdn_net.c | cfg->p_encap = p->local.p_encap; |
p | 2002 | drivers/isdn/isdn_net.c | cfg->secure = (p->local.flags & ISDN_NET_SECURE) ? 1 : 0; |
p | 2003 | drivers/isdn/isdn_net.c | cfg->callback = (p->local.flags & ISDN_NET_CALLBACK) ? 1 : 0; |
p | 2004 | drivers/isdn/isdn_net.c | cfg->chargehup = (p->local.hupflags & 4) ? 1 : 0; |
p | 2005 | drivers/isdn/isdn_net.c | cfg->ihup = (p->local.hupflags & 8) ? 1 : 0; |
p | 2006 | drivers/isdn/isdn_net.c | cfg->slavedelay = p->local.slavedelay / HZ; |
p | 2007 | drivers/isdn/isdn_net.c | if (p->local.slave) |
p | 2008 | drivers/isdn/isdn_net.c | strcpy(cfg->slave, ((isdn_net_local *) p->local.slave->priv)->name); |
p | 2011 | drivers/isdn/isdn_net.c | if (p->local.master) |
p | 2012 | drivers/isdn/isdn_net.c | strcpy(cfg->master, ((isdn_net_local *) p->local.master->priv)->name); |
p | 2025 | drivers/isdn/isdn_net.c | isdn_net_dev *p = isdn_net_findif(phone->name); |
p | 2030 | drivers/isdn/isdn_net.c | if (p) { |
p | 2034 | drivers/isdn/isdn_net.c | n->next = p->local.phone[phone->outgoing & 1]; |
p | 2035 | drivers/isdn/isdn_net.c | p->local.phone[phone->outgoing & 1] = n; |
p | 2046 | drivers/isdn/isdn_net.c | isdn_net_dev *p = isdn_net_findif(phone->name); |
p | 2054 | drivers/isdn/isdn_net.c | if (!p) |
p | 2059 | drivers/isdn/isdn_net.c | n = p->local.phone[inout]; |
p | 2087 | drivers/isdn/isdn_net.c | isdn_net_dev *p = isdn_net_findif(phone->name); |
p | 2092 | drivers/isdn/isdn_net.c | if (p) { |
p | 2093 | drivers/isdn/isdn_net.c | n = p->local.phone[inout]; |
p | 2100 | drivers/isdn/isdn_net.c | p->local.phone[inout] = n->next; |
p | 2115 | drivers/isdn/isdn_net.c | static int isdn_net_rmallphone(isdn_net_dev * p) |
p | 2125 | drivers/isdn/isdn_net.c | n = p->local.phone[i]; |
p | 2131 | drivers/isdn/isdn_net.c | p->local.phone[i] = NULL; |
p | 2142 | drivers/isdn/isdn_net.c | isdn_net_dev *p = isdn_net_findif(name); |
p | 2146 | drivers/isdn/isdn_net.c | if (p) { |
p | 2149 | drivers/isdn/isdn_net.c | if (p->local.isdn_device < 0) { |
p | 2153 | drivers/isdn/isdn_net.c | isdn_net_hangup(&p->dev); |
p | 2154 | drivers/isdn/isdn_net.c | q = p->local.slave; |
p | 2169 | drivers/isdn/isdn_net.c | static int isdn_net_realrm(isdn_net_dev * p, isdn_net_dev * q) |
p | 2175 | drivers/isdn/isdn_net.c | if (p->local.master) { |
p | 2179 | drivers/isdn/isdn_net.c | isdn_net_hangup(&p->dev); |
p | 2180 | drivers/isdn/isdn_net.c | p->dev.start = 0; |
p | 2182 | drivers/isdn/isdn_net.c | if (p->dev.start) { |
p | 2187 | drivers/isdn/isdn_net.c | isdn_net_rmallphone(p); |
p | 2189 | drivers/isdn/isdn_net.c | if (p->local.exclusive != -1) |
p | 2190 | drivers/isdn/isdn_net.c | isdn_unexclusive_channel(p->local.pre_device, p->local.pre_channel); |
p | 2191 | drivers/isdn/isdn_net.c | if (p->local.master) { |
p | 2193 | drivers/isdn/isdn_net.c | if (((isdn_net_local *) (p->local.master->priv))->slave == &p->dev) |
p | 2194 | drivers/isdn/isdn_net.c | ((isdn_net_local *) (p->local.master->priv))->slave = p->local.slave; |
p | 2197 | drivers/isdn/isdn_net.c | unregister_netdev(&p->dev); |
p | 2200 | drivers/isdn/isdn_net.c | q->next = p->next; |
p | 2202 | drivers/isdn/isdn_net.c | dev->netdev = p->next; |
p | 2203 | drivers/isdn/isdn_net.c | if (p->local.slave) { |
p | 2205 | drivers/isdn/isdn_net.c | char *slavename = ((isdn_net_local *) (p->local.slave->priv))->name; |
p | 2223 | drivers/isdn/isdn_net.c | isdn_ppp_free_mpqueue(p); |
p | 2225 | drivers/isdn/isdn_net.c | kfree(p); |
p | 2235 | drivers/isdn/isdn_net.c | isdn_net_dev *p; |
p | 2239 | drivers/isdn/isdn_net.c | p = dev->netdev; |
p | 2241 | drivers/isdn/isdn_net.c | while (p) { |
p | 2242 | drivers/isdn/isdn_net.c | if (!strcmp(p->local.name, name)) |
p | 2243 | drivers/isdn/isdn_net.c | return (isdn_net_realrm(p, q)); |
p | 2244 | drivers/isdn/isdn_net.c | q = p; |
p | 2245 | drivers/isdn/isdn_net.c | p = (isdn_net_dev *) p->next; |
p | 84 | drivers/isdn/isdn_ppp.c | isdn_net_dev *p = dev->netdev; |
p | 90 | drivers/isdn/isdn_ppp.c | while(p) { |
p | 91 | drivers/isdn/isdn_ppp.c | if(lp == &p->local) { |
p | 92 | drivers/isdn/isdn_ppp.c | lp->netdev = p; |
p | 95 | drivers/isdn/isdn_ppp.c | p=p->next; |
p | 230 | drivers/isdn/isdn_ppp.c | isdn_net_dev *p = dev->netdev; |
p | 231 | drivers/isdn/isdn_ppp.c | while(p) { /* find interface for our lp; */ |
p | 232 | drivers/isdn/isdn_ppp.c | if(&p->local == ippp_table[minor].lp) |
p | 234 | drivers/isdn/isdn_ppp.c | p = p->next; |
p | 236 | drivers/isdn/isdn_ppp.c | if(!p) { |
p | 238 | drivers/isdn/isdn_ppp.c | p = ippp_table[minor].lp->netdev; |
p | 241 | drivers/isdn/isdn_ppp.c | isdn_net_hangup(&p->dev); /* lp->ppp_minor==-1 => no calling of isdn_ppp_hangup() */ |
p | 884 | drivers/isdn/isdn_ppp.c | void isdn_ppp_free_mpqueue(isdn_net_dev * p) |
p | 886 | drivers/isdn/isdn_ppp.c | struct mpqueue *ql, *q = p->mp_last; |
p | 901 | drivers/isdn/isdn_ppp.c | isdn_net_dev *p; |
p | 905 | drivers/isdn/isdn_ppp.c | p = isdn_net_findif(ifn); |
p | 906 | drivers/isdn/isdn_ppp.c | if (!p) |
p | 916 | drivers/isdn/isdn_ppp.c | lp = p->queue; |
p | 917 | drivers/isdn/isdn_ppp.c | p->ib.bundled = 1; |
p | 922 | drivers/isdn/isdn_ppp.c | p->queue = nlp; |
p | 1316 | drivers/isdn/isdn_tty.c | char *p; |
p | 1327 | drivers/isdn/isdn_tty.c | for (p = msg; *p; p++) { |
p | 1328 | drivers/isdn/isdn_tty.c | switch (*p) { |
p | 1339 | drivers/isdn/isdn_tty.c | c = *p; |
p | 1386 | drivers/isdn/isdn_tty.c | static void isdn_tty_check_esc(const u_char * p, u_char plus, int count, int *pluscount, |
p | 1394 | drivers/isdn/isdn_tty.c | p += count - 3; |
p | 1399 | drivers/isdn/isdn_tty.c | memcpy_fromfs(cbuf, p, count); |
p | 1400 | drivers/isdn/isdn_tty.c | p = cbuf; |
p | 1403 | drivers/isdn/isdn_tty.c | if (*(p++) == plus) { |
p | 1522 | drivers/isdn/isdn_tty.c | static void isdn_tty_get_msnstr(char *n, char **p) |
p | 1524 | drivers/isdn/isdn_tty.c | while ((*p[0] >= '0' && *p[0] <= '9') || (*p[0] == ',')) |
p | 1525 | drivers/isdn/isdn_tty.c | *n++ = *p[0]++; |
p | 1532 | drivers/isdn/isdn_tty.c | static void isdn_tty_getdial(char *p, char *q) |
p | 1536 | drivers/isdn/isdn_tty.c | while (strchr("0123456789,#.*WPTS-", *p) && *p) { |
p | 1537 | drivers/isdn/isdn_tty.c | if ((*p >= '0' && *p <= '9') || ((*p == 'S') && first)) |
p | 1538 | drivers/isdn/isdn_tty.c | *q++ = *p; |
p | 1539 | drivers/isdn/isdn_tty.c | p++; |
p | 1554 | drivers/isdn/isdn_tty.c | char *p; |
p | 1565 | drivers/isdn/isdn_tty.c | for (p = &m->mdmcmd[2]; *p;) { |
p | 1566 | drivers/isdn/isdn_tty.c | switch (*p) { |
p | 1569 | drivers/isdn/isdn_tty.c | p++; |
p | 1611 | drivers/isdn/isdn_tty.c | isdn_tty_getdial(++p, ds); |
p | 1612 | drivers/isdn/isdn_tty.c | p += strlen(p); |
p | 1622 | drivers/isdn/isdn_tty.c | p++; |
p | 1623 | drivers/isdn/isdn_tty.c | switch (*p) { |
p | 1625 | drivers/isdn/isdn_tty.c | p++; |
p | 1629 | drivers/isdn/isdn_tty.c | p++; |
p | 1639 | drivers/isdn/isdn_tty.c | p++; |
p | 1640 | drivers/isdn/isdn_tty.c | switch (*p) { |
p | 1642 | drivers/isdn/isdn_tty.c | p++; |
p | 1646 | drivers/isdn/isdn_tty.c | p++; |
p | 1656 | drivers/isdn/isdn_tty.c | p++; |
p | 1658 | drivers/isdn/isdn_tty.c | switch (*p) { |
p | 1661 | drivers/isdn/isdn_tty.c | p++; |
p | 1668 | drivers/isdn/isdn_tty.c | p++; |
p | 1676 | drivers/isdn/isdn_tty.c | p++; |
p | 1677 | drivers/isdn/isdn_tty.c | switch (*p) { |
p | 1679 | drivers/isdn/isdn_tty.c | p++; |
p | 1683 | drivers/isdn/isdn_tty.c | p++; |
p | 1693 | drivers/isdn/isdn_tty.c | p++; |
p | 1694 | drivers/isdn/isdn_tty.c | mreg = isdn_getnum(&p); |
p | 1699 | drivers/isdn/isdn_tty.c | switch (*p) { |
p | 1701 | drivers/isdn/isdn_tty.c | p++; |
p | 1702 | drivers/isdn/isdn_tty.c | mval = isdn_getnum(&p); |
p | 1715 | drivers/isdn/isdn_tty.c | p++; |
p | 1726 | drivers/isdn/isdn_tty.c | p++; |
p | 1727 | drivers/isdn/isdn_tty.c | switch (*p) { |
p | 1729 | drivers/isdn/isdn_tty.c | p++; |
p | 1733 | drivers/isdn/isdn_tty.c | p++; |
p | 1743 | drivers/isdn/isdn_tty.c | p++; |
p | 1747 | drivers/isdn/isdn_tty.c | p++; |
p | 1748 | drivers/isdn/isdn_tty.c | switch (*p) { |
p | 1754 | drivers/isdn/isdn_tty.c | p++; |
p | 1755 | drivers/isdn/isdn_tty.c | switch (*p) { |
p | 1758 | drivers/isdn/isdn_tty.c | p++; |
p | 1759 | drivers/isdn/isdn_tty.c | i = isdn_getnum(&p); |
p | 1768 | drivers/isdn/isdn_tty.c | p++; |
p | 1769 | drivers/isdn/isdn_tty.c | switch (isdn_getnum(&p)) { |
p | 1783 | drivers/isdn/isdn_tty.c | p++; |
p | 1784 | drivers/isdn/isdn_tty.c | isdn_tty_get_msnstr(m->msn, &p); |
p | 1788 | drivers/isdn/isdn_tty.c | p++; |
p | 1794 | drivers/isdn/isdn_tty.c | p++; |
p | 1795 | drivers/isdn/isdn_tty.c | i = isdn_getnum(&p); |
p | 1805 | drivers/isdn/isdn_tty.c | p++; |
p | 1815 | drivers/isdn/isdn_tty.c | p++; |
p | 1816 | drivers/isdn/isdn_tty.c | switch (*p) { |
p | 1818 | drivers/isdn/isdn_tty.c | p++; |
p | 1828 | drivers/isdn/isdn_tty.c | p++; |
p | 1829 | drivers/isdn/isdn_tty.c | switch (*p) { |
p | 1831 | drivers/isdn/isdn_tty.c | p++; |
p | 1835 | drivers/isdn/isdn_tty.c | p++; |
p | 1874 | drivers/isdn/isdn_tty.c | static int isdn_tty_edit_at(const char *p, int count, modem_info * info, int user) |
p | 1882 | drivers/isdn/isdn_tty.c | for (cnt = count; cnt > 0; p++, cnt--) { |
p | 1884 | drivers/isdn/isdn_tty.c | c = get_fs_byte(p); |
p | 1886 | drivers/isdn/isdn_tty.c | c = *p; |
p | 82 | drivers/isdn/teles/buffers.c | struct Pages *p; |
p | 89 | drivers/isdn/teles/buffers.c | p = bp->pageslist->next; |
p | 94 | drivers/isdn/teles/buffers.c | bp->pageslist = p; |
p | 308 | drivers/isdn/teles/buffers.c | byte *p; |
p | 310 | drivers/isdn/teles/buffers.c | p = (byte *) kmalloc(size, pr); |
p | 312 | drivers/isdn/teles/buffers.c | printk(KERN_DEBUG "Smalloc %s size %d res %x\n", why, size, p); |
p | 314 | drivers/isdn/teles/buffers.c | return (p); |
p | 417 | drivers/isdn/teles/callc.c | prp(byte * p, int size) |
p | 420 | drivers/isdn/teles/callc.c | printk("%2x ", *p++); |
p | 1305 | drivers/isdn/teles/card.c | struct PStack *p; |
p | 1310 | drivers/isdn/teles/card.c | p = sp->stlist; |
p | 1311 | drivers/isdn/teles/card.c | while (p) |
p | 1312 | drivers/isdn/teles/card.c | if (p->next == st) { |
p | 1313 | drivers/isdn/teles/card.c | p->next = st->next; |
p | 1316 | drivers/isdn/teles/card.c | p = p->next; |
p | 445 | drivers/isdn/teles/isdnl2.c | int i, p; |
p | 449 | drivers/isdn/teles/isdnl2.c | p = (*ptr) & 0x10; |
p | 467 | drivers/isdn/teles/isdnl2.c | *ptr = 0x63 | (p ? 0x10 : 0x0); |
p | 534 | drivers/isdn/teles/isdnl2.c | int p, i, seq, rsp; |
p | 554 | drivers/isdn/teles/isdnl2.c | p = (ptr[1] & 0x1) == 0x1; |
p | 557 | drivers/isdn/teles/isdnl2.c | p = (ptr[0] & 0x10); |
p | 565 | drivers/isdn/teles/isdnl2.c | if ((!rsp) && p) { |
p | 573 | drivers/isdn/teles/isdnl2.c | *ptr++ = (l2->vr << 1) | (p ? 1 : 0); |
p | 576 | drivers/isdn/teles/isdnl2.c | *ptr++ = (l2->vr << 5) | 0x1 | (p ? 0x10 : 0x0); |
p | 642 | drivers/isdn/teles/isdnl2.c | int i, p, seq, nr, wasok; |
p | 648 | drivers/isdn/teles/isdnl2.c | p = (ptr[1] & 0x1) == 0x1; |
p | 652 | drivers/isdn/teles/isdnl2.c | p = (ptr[0] & 0x10); |
p | 675 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&(st->l2), ibh2, p); |
p | 681 | drivers/isdn/teles/isdnl2.c | *ptr++ = (l2->vr << 1) | (p ? 1 : 0); |
p | 684 | drivers/isdn/teles/isdnl2.c | *ptr++ = (l2->vr << 5) | 0x1 | (p ? 0x10 : 0x0); |
p | 696 | drivers/isdn/teles/isdnl2.c | if (p) |
p | 701 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&(st->l2), ibh2, p); |
p | 707 | drivers/isdn/teles/isdnl2.c | *ptr++ = (l2->vr << 1) | (p ? 1 : 0); |
p | 710 | drivers/isdn/teles/isdnl2.c | *ptr++ = (l2->vr << 5) | 0x9 | (p ? 0x10 : 0x0); |
p | 811 | drivers/isdn/teles/isdnl2.c | int p, seq, rsp; |
p | 832 | drivers/isdn/teles/isdnl2.c | p = (ptr[1] & 0x1) == 0x1; |
p | 835 | drivers/isdn/teles/isdnl2.c | p = (ptr[0] & 0x10); |
p | 840 | drivers/isdn/teles/isdnl2.c | if ((!rsp) && p) |
p | 1019 | drivers/isdn/teles/isdnl2.c | int p, seq, rsp; |
p | 1040 | drivers/isdn/teles/isdnl2.c | p = (ptr[1] & 0x1) == 0x1; |
p | 1043 | drivers/isdn/teles/isdnl2.c | p = (ptr[0] & 0x10); |
p | 1048 | drivers/isdn/teles/isdnl2.c | if (rsp && p) { |
p | 1063 | drivers/isdn/teles/isdnl2.c | if (!rsp && p) |
p | 1100 | drivers/isdn/teles/isdnl2.c | int i, p, est; |
p | 1106 | drivers/isdn/teles/isdnl2.c | p = ptr[1] & 0x1; |
p | 1108 | drivers/isdn/teles/isdnl2.c | p = ptr[0] & 0x10; |
p | 1117 | drivers/isdn/teles/isdnl2.c | *ptr = 0x63 | p; |
p | 28 | drivers/isdn/teles/isdnl3.c | byte *p; |
p | 32 | drivers/isdn/teles/isdnl3.c | p = DATAPTR(dibh); |
p | 33 | drivers/isdn/teles/isdnl3.c | p += st->l2.ihsize; |
p | 36 | drivers/isdn/teles/isdnl3.c | *p++ = 0x8; |
p | 37 | drivers/isdn/teles/isdnl3.c | *p++ = 0x1; |
p | 38 | drivers/isdn/teles/isdnl3.c | *p++ = st->l3.callref; |
p | 39 | drivers/isdn/teles/isdnl3.c | *p++ = mt; |
p | 68 | drivers/isdn/teles/isdnl3.c | byte *p; |
p | 73 | drivers/isdn/teles/isdnl3.c | p = DATAPTR(dibh); |
p | 74 | drivers/isdn/teles/isdnl3.c | p += st->l2.ihsize; |
p | 76 | drivers/isdn/teles/isdnl3.c | *p++ = 0x8; |
p | 77 | drivers/isdn/teles/isdnl3.c | *p++ = 0x1; |
p | 78 | drivers/isdn/teles/isdnl3.c | *p++ = st->l3.callref; |
p | 79 | drivers/isdn/teles/isdnl3.c | *p++ = MT_SETUP; |
p | 80 | drivers/isdn/teles/isdnl3.c | *p++ = 0xa1; |
p | 87 | drivers/isdn/teles/isdnl3.c | *p++ = 0x4; /* BC-IE-code */ |
p | 88 | drivers/isdn/teles/isdnl3.c | *p++ = 0x3; /* Length */ |
p | 89 | drivers/isdn/teles/isdnl3.c | *p++ = 0x90; /* Coding Std. national, 3.1 kHz audio */ |
p | 90 | drivers/isdn/teles/isdnl3.c | *p++ = 0x90; /* Circuit-Mode 64kbps */ |
p | 91 | drivers/isdn/teles/isdnl3.c | *p++ = 0xa3; /* A-Law Audio */ |
p | 96 | drivers/isdn/teles/isdnl3.c | *p++ = 0x4; /* BC-IE-code */ |
p | 97 | drivers/isdn/teles/isdnl3.c | *p++ = 0x2; /* Length */ |
p | 98 | drivers/isdn/teles/isdnl3.c | *p++ = 0x88; /* Coding Std. nat., unrestr. dig. Inform. */ |
p | 99 | drivers/isdn/teles/isdnl3.c | *p++ = 0x90; /* Packet-Mode 64kbps */ |
p | 107 | drivers/isdn/teles/isdnl3.c | *p++ = 0x7f; |
p | 108 | drivers/isdn/teles/isdnl3.c | *p++ = 0x2; |
p | 109 | drivers/isdn/teles/isdnl3.c | *p++ = 0x0; |
p | 110 | drivers/isdn/teles/isdnl3.c | *p++ = 66; |
p | 114 | drivers/isdn/teles/isdnl3.c | *p++ = 0x6c; |
p | 115 | drivers/isdn/teles/isdnl3.c | *p++ = strlen(st->pa->calling) + 1; |
p | 117 | drivers/isdn/teles/isdnl3.c | *p++ = 0x81; /* Ext = '1'B, Type = '000'B, Plan = '0001'B. */ |
p | 120 | drivers/isdn/teles/isdnl3.c | *p++ = *teln++ & 0x7f; |
p | 122 | drivers/isdn/teles/isdnl3.c | *p++ = 0x70; |
p | 123 | drivers/isdn/teles/isdnl3.c | *p++ = strlen(st->pa->called) + 1; |
p | 125 | drivers/isdn/teles/isdnl3.c | *p++ = 0x81; /* Ext = '1'B, Type = '000'B, Plan = '0001'B. */ |
p | 129 | drivers/isdn/teles/isdnl3.c | *p++ = *teln++ & 0x7f; |
p | 132 | drivers/isdn/teles/isdnl3.c | dibh->datasize = p - DATAPTR(dibh); |
p | 142 | drivers/isdn/teles/isdnl3.c | byte *p; |
p | 145 | drivers/isdn/teles/isdnl3.c | p = DATAPTR(ibh); |
p | 146 | drivers/isdn/teles/isdnl3.c | if ((p = findie(p + st->l2.ihsize, ibh->datasize - st->l2.ihsize, |
p | 148 | drivers/isdn/teles/isdnl3.c | st->pa->bchannel = p[2] & 0x3; |
p | 190 | drivers/isdn/teles/isdnl3.c | byte *p; |
p | 193 | drivers/isdn/teles/isdnl3.c | p = DATAPTR(ibh); |
p | 194 | drivers/isdn/teles/isdnl3.c | p += st->l2.uihsize; |
p | 195 | drivers/isdn/teles/isdnl3.c | st->pa->callref = getcallref(p); |
p | 201 | drivers/isdn/teles/isdnl3.c | p = DATAPTR(ibh); |
p | 202 | drivers/isdn/teles/isdnl3.c | if ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize, |
p | 204 | drivers/isdn/teles/isdnl3.c | st->pa->bchannel = p[2] & 0x3; |
p | 208 | drivers/isdn/teles/isdnl3.c | p = DATAPTR(ibh); |
p | 210 | drivers/isdn/teles/isdnl3.c | if ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize, 0x01, 6))) { |
p | 211 | drivers/isdn/teles/isdnl3.c | st->pa->info = p[2]; |
p | 212 | drivers/isdn/teles/isdnl3.c | st->pa->info2 = p[3]; |
p | 219 | drivers/isdn/teles/isdnl3.c | if ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize, 0x04, 0))) { |
p | 220 | drivers/isdn/teles/isdnl3.c | switch (p[2] & 0x1f) { |
p | 250 | drivers/isdn/teles/isdnl3.c | p = DATAPTR(ibh); |
p | 251 | drivers/isdn/teles/isdnl3.c | if ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize, |
p | 253 | drivers/isdn/teles/isdnl3.c | iecpy(st->pa->called, p, 1); |
p | 257 | drivers/isdn/teles/isdnl3.c | p = DATAPTR(ibh); |
p | 258 | drivers/isdn/teles/isdnl3.c | if ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize, |
p | 261 | drivers/isdn/teles/isdnl3.c | iecpy(st->pa->calling, p, 1); |
p | 263 | drivers/isdn/teles/isdnl3.c | iecpy(st->pa->calling, p, 2); |
p | 316 | drivers/isdn/teles/isdnl3.c | byte *p; |
p | 320 | drivers/isdn/teles/isdnl3.c | p = DATAPTR(dibh); |
p | 321 | drivers/isdn/teles/isdnl3.c | p += st->l2.ihsize; |
p | 324 | drivers/isdn/teles/isdnl3.c | *p++ = 0x8; |
p | 325 | drivers/isdn/teles/isdnl3.c | *p++ = 0x1; |
p | 326 | drivers/isdn/teles/isdnl3.c | *p++ = st->l3.callref; |
p | 327 | drivers/isdn/teles/isdnl3.c | *p++ = MT_DISCONNECT; |
p | 330 | drivers/isdn/teles/isdnl3.c | *p++ = IE_CAUSE; |
p | 331 | drivers/isdn/teles/isdnl3.c | *p++ = 0x2; |
p | 332 | drivers/isdn/teles/isdnl3.c | *p++ = 0x80; |
p | 333 | drivers/isdn/teles/isdnl3.c | *p++ = 0x90; |
p | 28 | drivers/isdn/teles/l3_1TR6.c | byte *p; |
p | 31 | drivers/isdn/teles/l3_1TR6.c | p = DATAPTR(dibh); |
p | 32 | drivers/isdn/teles/l3_1TR6.c | p += st->l2.ihsize; |
p | 34 | drivers/isdn/teles/l3_1TR6.c | *p++ = pd; |
p | 35 | drivers/isdn/teles/l3_1TR6.c | *p++ = 0x1; |
p | 36 | drivers/isdn/teles/l3_1TR6.c | *p++ = st->l3.callref; |
p | 37 | drivers/isdn/teles/l3_1TR6.c | *p++ = mt; |
p | 39 | drivers/isdn/teles/l3_1TR6.c | dibh->datasize = p - DATAPTR(dibh); |
p | 47 | drivers/isdn/teles/l3_1TR6.c | byte *p; |
p | 56 | drivers/isdn/teles/l3_1TR6.c | p = DATAPTR(dibh); |
p | 57 | drivers/isdn/teles/l3_1TR6.c | p += st->l2.ihsize; |
p | 59 | drivers/isdn/teles/l3_1TR6.c | *p++ = PROTO_DIS_N1; |
p | 60 | drivers/isdn/teles/l3_1TR6.c | *p++ = 0x1; |
p | 61 | drivers/isdn/teles/l3_1TR6.c | *p++ = st->l3.callref; |
p | 62 | drivers/isdn/teles/l3_1TR6.c | *p++ = MT_N1_SETUP; |
p | 66 | drivers/isdn/teles/l3_1TR6.c | *p++ = WE0_origAddr; |
p | 67 | drivers/isdn/teles/l3_1TR6.c | *p++ = strlen(st->pa->calling) + 1; |
p | 69 | drivers/isdn/teles/l3_1TR6.c | *p++ = 0x81; /* Ext = '1'B, Type = '000'B, Plan = '0001'B. */ |
p | 72 | drivers/isdn/teles/l3_1TR6.c | *p++ = *teln++ & 0x7f; |
p | 74 | drivers/isdn/teles/l3_1TR6.c | *p++ = WE0_destAddr; |
p | 75 | drivers/isdn/teles/l3_1TR6.c | *p++ = strlen(st->pa->called) + 1; |
p | 77 | drivers/isdn/teles/l3_1TR6.c | *p++ = 0x81; /* Ext = '1'B, Type = '000'B, Plan = '0001'B. */ |
p | 81 | drivers/isdn/teles/l3_1TR6.c | *p++ = *teln++ & 0x7f; |
p | 83 | drivers/isdn/teles/l3_1TR6.c | *p++ = WE_Shift_F6; |
p | 85 | drivers/isdn/teles/l3_1TR6.c | *p++ = WE6_serviceInd; |
p | 86 | drivers/isdn/teles/l3_1TR6.c | *p++ = 2; /* len=2 info,info2 */ |
p | 87 | drivers/isdn/teles/l3_1TR6.c | *p++ = st->pa->info; |
p | 88 | drivers/isdn/teles/l3_1TR6.c | *p++ = st->pa->info2; |
p | 90 | drivers/isdn/teles/l3_1TR6.c | dibh->datasize = p - DATAPTR(dibh); |
p | 101 | drivers/isdn/teles/l3_1TR6.c | byte *p; |
p | 108 | drivers/isdn/teles/l3_1TR6.c | p = DATAPTR(ibh); |
p | 109 | drivers/isdn/teles/l3_1TR6.c | p += st->l2.uihsize; |
p | 110 | drivers/isdn/teles/l3_1TR6.c | st->pa->callref = getcallref(p); |
p | 116 | drivers/isdn/teles/l3_1TR6.c | p = DATAPTR(ibh); |
p | 117 | drivers/isdn/teles/l3_1TR6.c | if ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize, |
p | 119 | drivers/isdn/teles/l3_1TR6.c | st->pa->bchannel = p[2] & 0x3; |
p | 123 | drivers/isdn/teles/l3_1TR6.c | p = DATAPTR(ibh); |
p | 125 | drivers/isdn/teles/l3_1TR6.c | if ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize, WE6_serviceInd, 6))) { |
p | 126 | drivers/isdn/teles/l3_1TR6.c | st->pa->info = p[2]; |
p | 127 | drivers/isdn/teles/l3_1TR6.c | st->pa->info2 = p[3]; |
p | 131 | drivers/isdn/teles/l3_1TR6.c | p = DATAPTR(ibh); |
p | 132 | drivers/isdn/teles/l3_1TR6.c | if ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize, |
p | 134 | drivers/isdn/teles/l3_1TR6.c | iecpy(st->pa->called, p, 1); |
p | 138 | drivers/isdn/teles/l3_1TR6.c | p = DATAPTR(ibh); |
p | 139 | drivers/isdn/teles/l3_1TR6.c | if ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize, |
p | 141 | drivers/isdn/teles/l3_1TR6.c | iecpy(st->pa->calling, p, 1); |
p | 156 | drivers/isdn/teles/l3_1TR6.c | byte *p; |
p | 163 | drivers/isdn/teles/l3_1TR6.c | p = DATAPTR(ibh); |
p | 164 | drivers/isdn/teles/l3_1TR6.c | if ((p = findie(p + st->l2.ihsize, ibh->datasize - st->l2.ihsize, |
p | 166 | drivers/isdn/teles/l3_1TR6.c | st->pa->bchannel = p[2] & 0x3; |
p | 177 | drivers/isdn/teles/l3_1TR6.c | byte *p; |
p | 184 | drivers/isdn/teles/l3_1TR6.c | p = DATAPTR(ibh); |
p | 185 | drivers/isdn/teles/l3_1TR6.c | if ((p = findie(p + st->l2.ihsize, ibh->datasize - st->l2.ihsize, |
p | 187 | drivers/isdn/teles/l3_1TR6.c | st->pa->bchannel = p[2] & 0x3; |
p | 199 | drivers/isdn/teles/l3_1TR6.c | byte *p; |
p | 206 | drivers/isdn/teles/l3_1TR6.c | p = DATAPTR(ibh); |
p | 207 | drivers/isdn/teles/l3_1TR6.c | if ((p = findie(p + st->l2.ihsize, ibh->datasize - st->l2.ihsize, |
p | 210 | drivers/isdn/teles/l3_1TR6.c | printk(KERN_INFO "status called %x\n", p[2]); |
p | 222 | drivers/isdn/teles/l3_1TR6.c | byte *p; |
p | 231 | drivers/isdn/teles/l3_1TR6.c | p = DATAPTR(ibh); |
p | 232 | drivers/isdn/teles/l3_1TR6.c | if ((p = findie(p + st->l2.ihsize, ibh->datasize - st->l2.ihsize, |
p | 234 | drivers/isdn/teles/l3_1TR6.c | iecpy(a_charge, p, 1); |
p | 252 | drivers/isdn/teles/l3_1TR6.c | byte *p; |
p | 261 | drivers/isdn/teles/l3_1TR6.c | p = DATAPTR(ibh); |
p | 263 | drivers/isdn/teles/l3_1TR6.c | printk(KERN_INFO "Info DATA %x\n", p[i]); |
p | 318 | drivers/isdn/teles/l3_1TR6.c | byte *p; |
p | 328 | drivers/isdn/teles/l3_1TR6.c | p = DATAPTR(ibh); |
p | 329 | drivers/isdn/teles/l3_1TR6.c | if ((p = findie(p + st->l2.ihsize, ibh->datasize - st->l2.ihsize, |
p | 331 | drivers/isdn/teles/l3_1TR6.c | iecpy(a_charge, p, 1); |
p | 343 | drivers/isdn/teles/l3_1TR6.c | p = DATAPTR(ibh); |
p | 344 | drivers/isdn/teles/l3_1TR6.c | if ((p = findie(p + st->l2.ihsize, ibh->datasize - st->l2.ihsize, |
p | 346 | drivers/isdn/teles/l3_1TR6.c | if (p[1] > 0) { |
p | 347 | drivers/isdn/teles/l3_1TR6.c | st->pa->cause = p[2]; |
p | 416 | drivers/isdn/teles/l3_1TR6.c | byte *p; |
p | 423 | drivers/isdn/teles/l3_1TR6.c | p = DATAPTR(dibh); |
p | 424 | drivers/isdn/teles/l3_1TR6.c | p += st->l2.ihsize; |
p | 426 | drivers/isdn/teles/l3_1TR6.c | *p++ = PROTO_DIS_N1; |
p | 427 | drivers/isdn/teles/l3_1TR6.c | *p++ = 0x1; |
p | 428 | drivers/isdn/teles/l3_1TR6.c | *p++ = st->l3.callref; |
p | 429 | drivers/isdn/teles/l3_1TR6.c | *p++ = MT_N1_DISC; |
p | 431 | drivers/isdn/teles/l3_1TR6.c | *p++ = WE0_cause; |
p | 432 | drivers/isdn/teles/l3_1TR6.c | *p++ = 0x0; /* Laenge = 0 normales Ausloesen */ |
p | 434 | drivers/isdn/teles/l3_1TR6.c | dibh->datasize = p - DATAPTR(dibh); |
p | 23 | drivers/isdn/teles/llglue.c | byte *p; |
p | 25 | drivers/isdn/teles/llglue.c | for (p = buf, count = 0; count < len; p++, count++) { |
p | 27 | drivers/isdn/teles/llglue.c | put_fs_byte(*teles_status_read++, p); |
p | 29 | drivers/isdn/teles/llglue.c | *p++ = *teles_status_read++; |
p | 41 | drivers/isdn/teles/llglue.c | byte *p; |
p | 48 | drivers/isdn/teles/llglue.c | for (p = buf, i = len; i > 0; i--, p++) { |
p | 49 | drivers/isdn/teles/llglue.c | *teles_status_write++ = *p; |
p | 19 | drivers/isdn/teles/q931.c | findie(byte * p, int size, byte ie, int wanted_set) |
p | 22 | drivers/isdn/teles/q931.c | byte *pend = p + size; |
p | 25 | drivers/isdn/teles/q931.c | p++; |
p | 26 | drivers/isdn/teles/q931.c | l = (*p++) & 0xf; |
p | 27 | drivers/isdn/teles/q931.c | p += l; |
p | 28 | drivers/isdn/teles/q931.c | p++; |
p | 32 | drivers/isdn/teles/q931.c | while (p < pend) { |
p | 33 | drivers/isdn/teles/q931.c | if ((*p & 0xf0) == 0x90) { |
p | 34 | drivers/isdn/teles/q931.c | codeset = *p & 0x07; |
p | 35 | drivers/isdn/teles/q931.c | if (!(*p & 0x08)) |
p | 38 | drivers/isdn/teles/q931.c | if (*p & 0x80) |
p | 39 | drivers/isdn/teles/q931.c | p++; |
p | 42 | drivers/isdn/teles/q931.c | if (*p == ie) |
p | 43 | drivers/isdn/teles/q931.c | return (p); |
p | 44 | drivers/isdn/teles/q931.c | if (*p > ie) |
p | 47 | drivers/isdn/teles/q931.c | p++; |
p | 48 | drivers/isdn/teles/q931.c | l = *p++; |
p | 49 | drivers/isdn/teles/q931.c | p += l; |
p | 59 | drivers/isdn/teles/q931.c | byte *p; |
p | 62 | drivers/isdn/teles/q931.c | p = iestart + ieoffset + 2; |
p | 65 | drivers/isdn/teles/q931.c | *dest++ = *p++; |
p | 70 | drivers/isdn/teles/q931.c | getcallref(byte * p) |
p | 72 | drivers/isdn/teles/q931.c | p++; /* prot discr */ |
p | 73 | drivers/isdn/teles/q931.c | p++; /* callref length */ |
p | 74 | drivers/isdn/teles/q931.c | return (*p); /* assuming one-byte callref */ |
p | 188 | drivers/isdn/teles/q931.c | skipext(byte * p) |
p | 190 | drivers/isdn/teles/q931.c | while (!(*p++ & 0x80)); |
p | 191 | drivers/isdn/teles/q931.c | return (p); |
p | 415 | drivers/isdn/teles/q931.c | prcause(char *dest, byte * p) |
p | 421 | drivers/isdn/teles/q931.c | end = p + p[1] + 1; |
p | 422 | drivers/isdn/teles/q931.c | p += 2; |
p | 424 | drivers/isdn/teles/q931.c | dp += prbits(dp, *p, 7, 2); |
p | 426 | drivers/isdn/teles/q931.c | dp += prbits(dp, *p, 4, 4); |
p | 428 | drivers/isdn/teles/q931.c | p = skipext(p); |
p | 430 | drivers/isdn/teles/q931.c | cause = 0x7f & *p++; |
p | 446 | drivers/isdn/teles/q931.c | dp += prbits(dp,*p++,7,7); |
p | 450 | drivers/isdn/teles/q931.c | if (p > end) |
p | 452 | drivers/isdn/teles/q931.c | dp += sprintf(dp, " diag attribute %d ", *p++ & 0x7f); |
p | 453 | drivers/isdn/teles/q931.c | dp += sprintf(dp, " rej %d ", *p & 0x7f); |
p | 454 | drivers/isdn/teles/q931.c | if (*p & 0x80) { |
p | 458 | drivers/isdn/teles/q931.c | dp += sprintf(dp, " av %d\n", (*++p) & 0x7f); |
p | 466 | drivers/isdn/teles/q931.c | prchident(char *dest, byte * p) |
p | 470 | drivers/isdn/teles/q931.c | p += 2; |
p | 472 | drivers/isdn/teles/q931.c | dp += prbits(dp, *p, 8, 8); |
p | 478 | drivers/isdn/teles/q931.c | prcalled(char *dest, byte * p) |
p | 483 | drivers/isdn/teles/q931.c | p++; |
p | 484 | drivers/isdn/teles/q931.c | l = *p++ - 1; |
p | 486 | drivers/isdn/teles/q931.c | dp += prbits(dp, *p++, 8, 8); |
p | 490 | drivers/isdn/teles/q931.c | *dp++ = *p++; |
p | 496 | drivers/isdn/teles/q931.c | prcalling(char *dest, byte * p) |
p | 501 | drivers/isdn/teles/q931.c | p++; |
p | 502 | drivers/isdn/teles/q931.c | l = *p++ - 1; |
p | 504 | drivers/isdn/teles/q931.c | dp += prbits(dp, *p, 8, 8); |
p | 506 | drivers/isdn/teles/q931.c | if (!(*p & 0x80)) { |
p | 508 | drivers/isdn/teles/q931.c | dp += prbits(dp, *++p, 8, 8); |
p | 513 | drivers/isdn/teles/q931.c | p++; |
p | 517 | drivers/isdn/teles/q931.c | *dp++ = *p++; |
p | 524 | drivers/isdn/teles/q931.c | prbearer(char *dest, byte * p) |
p | 528 | drivers/isdn/teles/q931.c | p += 2; |
p | 530 | drivers/isdn/teles/q931.c | dp += prbits(dp, *p++, 8, 8); |
p | 533 | drivers/isdn/teles/q931.c | dp += prbits(dp, *p, 8, 8); |
p | 535 | drivers/isdn/teles/q931.c | if ((*p++ & 0x1f) == 0x18) { |
p | 537 | drivers/isdn/teles/q931.c | dp += prbits(dp, *p++, 8, 8); |
p | 541 | drivers/isdn/teles/q931.c | if ((*p & 0x60) == 0x20) { |
p | 545 | drivers/isdn/teles/q931.c | dp += prbits(dp, *p, 8, 8); |
p | 552 | drivers/isdn/teles/q931.c | while (!(*p++ & 0x80)); |
p | 555 | drivers/isdn/teles/q931.c | if ((*p & 0x60) == 0x40) { |
p | 557 | drivers/isdn/teles/q931.c | dp += prbits(dp, *p++, 8, 8); |
p | 561 | drivers/isdn/teles/q931.c | if ((*p & 0x60) == 0x60) { |
p | 563 | drivers/isdn/teles/q931.c | dp += prbits(dp, *p++, 8, 8); |
p | 571 | drivers/isdn/teles/q931.c | general(char *dest, byte * p) |
p | 577 | drivers/isdn/teles/q931.c | p++; |
p | 578 | drivers/isdn/teles/q931.c | l = *p++; |
p | 582 | drivers/isdn/teles/q931.c | dp += prbits(dp, *p++, 8, 8); |
p | 586 | drivers/isdn/teles/q931.c | if (*p & 0x80) { |
p | 600 | drivers/isdn/teles/q931.c | display(char *dest, byte * p) |
p | 606 | drivers/isdn/teles/q931.c | p++; |
p | 607 | drivers/isdn/teles/q931.c | l = *p++; |
p | 611 | drivers/isdn/teles/q931.c | dp += sprintf(dp, "%c", *p++); |
p | 614 | drivers/isdn/teles/q931.c | if (*p & 0x80) { |
p | 629 | drivers/isdn/teles/q931.c | prfacility(char *dest, byte * p) |
p | 634 | drivers/isdn/teles/q931.c | p++; |
p | 635 | drivers/isdn/teles/q931.c | l = *p++; |
p | 637 | drivers/isdn/teles/q931.c | dp += prbits(dp, *p++, 8, 8); |
p | 643 | drivers/isdn/teles/q931.c | dp += prbits(dp, *p++, 8, 8); |
p | 645 | drivers/isdn/teles/q931.c | dp += sprintf(dp, " octet 5 %d\n", l2 = *p++ & 0x7f); |
p | 649 | drivers/isdn/teles/q931.c | dp += sprintf(dp, "%2x ", *p++); |
p | 773 | drivers/isdn/teles/q931.c | char *p = dbuf; |
p | 775 | drivers/isdn/teles/q931.c | p += sprintf(p, "%s: ", comment); |
p | 777 | drivers/isdn/teles/q931.c | p += sprintf(p, "%02x ", *p++); |
p | 780 | drivers/isdn/teles/q931.c | p += sprintf(p, "\n"); |
p | 798 | drivers/isdn/teles/q931.c | byte *p = buf; |
p | 801 | drivers/isdn/teles/q931.c | while (p < bend) |
p | 802 | drivers/isdn/teles/q931.c | dp += sprintf(dp, "%02x ", *p++); |
p | 396 | drivers/isdn/teles/teles.h | byte *findie(byte * p, int size, byte ie, int wanted_set); |
p | 397 | drivers/isdn/teles/teles.h | int getcallref(byte * p); |
p | 422 | drivers/isdn/teles/teles.h | void dlogframe(struct IsdnCardState *sp, byte * p, int size, char *comment); |
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 | 617 | drivers/net/de4x5.c | static void de4x5_dbg_srom(struct de4x5_srom *p); |
p | 2608 | drivers/net/de4x5.c | struct sk_buff *p; |
p | 2611 | drivers/net/de4x5.c | for (p=lp->cache.skb; p->next; p=p->next); |
p | 2612 | drivers/net/de4x5.c | p->next = skb; |
p | 2624 | drivers/net/de4x5.c | struct sk_buff *p = lp->cache.skb; |
p | 2627 | drivers/net/de4x5.c | skb->next = p; |
p | 2635 | drivers/net/de4x5.c | struct sk_buff *p = lp->cache.skb; |
p | 2637 | drivers/net/de4x5.c | if (p) { |
p | 2638 | drivers/net/de4x5.c | lp->cache.skb = p->next; |
p | 2639 | drivers/net/de4x5.c | p->next = NULL; |
p | 2642 | drivers/net/de4x5.c | return p; |
p | 2834 | drivers/net/de4x5.c | short *p = (short *)&lp->srom; |
p | 2836 | drivers/net/de4x5.c | *p++ = srom_rd(aprom_addr, i); |
p | 3466 | drivers/net/de4x5.c | static void de4x5_dbg_srom(struct de4x5_srom *p) |
p | 3471 | drivers/net/de4x5.c | printk("Sub-system Vendor ID: %04x\n", (u_short)*(p->sub_vendor_id)); |
p | 3472 | drivers/net/de4x5.c | printk("Sub-system ID: %04x\n", (u_short)*(p->sub_system_id)); |
p | 3473 | drivers/net/de4x5.c | printk("ID Block CRC: %02x\n", (u_char)(p->id_block_crc)); |
p | 3477 | drivers/net/de4x5.c | printk("%02x:", (u_char)*(p->ieee_addr+i)); |
p | 3479 | drivers/net/de4x5.c | printk("%02x\n", (u_char)*(p->ieee_addr+i)); |
p | 3480 | drivers/net/de4x5.c | printk("CRC checksum: %04x\n", (u_short)(p->chksum)); |
p | 3482 | drivers/net/de4x5.c | printk("%3d %04x\n", i<<1, (u_short)*((u_short *)p+i)); |
p | 3788 | drivers/net/de4x5.c | struct device *p = (struct device *)&thisDE4X5; |
p | 3793 | drivers/net/de4x5.c | for (; p!=NULL; p=p->next) { |
p | 3794 | drivers/net/de4x5.c | if (register_netdev(p) != 0) |
p | 3805 | drivers/net/de4x5.c | struct device *p = (struct device *)&thisDE4X5; |
p | 3808 | drivers/net/de4x5.c | for (; p!=NULL; p=p->next) { |
p | 3809 | drivers/net/de4x5.c | keep_loaded += (p->flags & IFF_UP); /* Is an interface up? */ |
p | 3819 | drivers/net/de4x5.c | for (p=thisDE4X5.next; p!=NULL; p=p->next) { |
p | 3820 | drivers/net/de4x5.c | if (p->priv) { /* Private area allocated? */ |
p | 3821 | drivers/net/de4x5.c | struct de4x5_private *lp = (struct de4x5_private *)p->priv; |
p | 3825 | drivers/net/de4x5.c | release_region(p->base_addr, (lp->bus == PCI ? |
p | 3830 | drivers/net/de4x5.c | unregister_netdev(p); |
p | 3831 | drivers/net/de4x5.c | kfree(p); /* Free the device structure */ |
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 | 1624 | drivers/net/depca.c | struct depca_init *p = (struct depca_init *)lp->sh_mem; |
p | 1663 | drivers/net/depca.c | printk("\tmode: 0x%4.4x\n",readw(&p->mode)); |
p | 1666 | drivers/net/depca.c | printk("%2.2x:",(u_char)readb(&p->phys_addr[i])); |
p | 1668 | drivers/net/depca.c | printk("%2.2x\n",(u_char)readb(&p->phys_addr[i])); |
p | 1671 | drivers/net/depca.c | printk("%2.2x:",(u_char)readb(&p->mcast_table[i])); |
p | 1673 | drivers/net/depca.c | printk("%2.2x\n",(u_char)readb(&p->mcast_table[i])); |
p | 1674 | drivers/net/depca.c | printk("\trx_ring at: 0x%8.8x\n",readl(&p->rx_ring)); |
p | 1675 | drivers/net/depca.c | printk("\ttx_ring at: 0x%8.8x\n",readl(&p->tx_ring)); |
p | 808 | drivers/net/ewrk3.c | u_char *p = skb->data; |
p | 815 | drivers/net/ewrk3.c | outb(*p++, EWRK3_DATA); |
p | 1003 | drivers/net/ewrk3.c | unsigned char *p; |
p | 1006 | drivers/net/ewrk3.c | p = skb_put(skb,pkt_len); |
p | 1009 | drivers/net/ewrk3.c | *p = inb(EWRK3_DATA); /* dummy read */ |
p | 1011 | drivers/net/ewrk3.c | *p++ = inb(EWRK3_DATA); |
p | 1014 | drivers/net/ewrk3.c | memcpy_fromio(p, buf, pkt_len); |
p | 1034 | drivers/net/ewrk3.c | p = skb->data; /* Look at the dest addr */ |
p | 1035 | drivers/net/ewrk3.c | if (p[0] & 0x01) { /* Multicast/Broadcast */ |
p | 1036 | drivers/net/ewrk3.c | if ((*(s32 *)&p[0] == -1) && (*(s16 *)&p[4] == -1)) { |
p | 1041 | drivers/net/ewrk3.c | } else if ((*(s32 *)&p[0] == *(s32 *)&dev->dev_addr[0]) && |
p | 1042 | drivers/net/ewrk3.c | (*(s16 *)&p[4] == *(s16 *)&dev->dev_addr[4])) { |
p | 1215 | drivers/net/ewrk3.c | short *p = (short *) lp->mctbl; |
p | 1233 | drivers/net/ewrk3.c | writew(0xffff, p); |
p | 1234 | 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 | 131 | drivers/net/ni52.c | #define make32(ptr16) (p->memtop + (short) (ptr16) ) |
p | 132 | drivers/net/ni52.c | #define make24(ptr32) ((char *) (ptr32) - p->base) |
p | 133 | drivers/net/ni52.c | #define make16(ptr32) ((unsigned short) ((unsigned long) (ptr32) - (unsigned long) p->memtop )) |
p | 166 | drivers/net/ni52.c | if(!p->scb->cmd_cuc) break; \ |
p | 169 | drivers/net/ni52.c | printk("%s: scb_cmd timed out: %04x,%04x .. disabeling i82586!!\n",dev->name,p->scb->cmd_cuc,p->scb->cus); \ |
p | 170 | drivers/net/ni52.c | if(!p->reseted) { p->reseted = 1; ni_reset586(); } } } } |
p | 174 | drivers/net/ni52.c | if(!p->scb->cmd_ruc) break; \ |
p | 177 | drivers/net/ni52.c | printk("%s: scb_cmd (ruc) timed out: %04x,%04x .. disabeling i82586!!\n",dev->name,p->scb->cmd_ruc,p->scb->rus); \ |
p | 178 | drivers/net/ni52.c | if(!p->reseted) { p->reseted = 1; ni_reset586(); } } } } |
p | 284 | drivers/net/ni52.c | struct priv *p = /* (struct priv *) dev->priv*/ &pb; |
p | 288 | drivers/net/ni52.c | p->base = (unsigned long) where + size - 0x01000000; |
p | 289 | drivers/net/ni52.c | p->memtop = where + size; |
p | 290 | drivers/net/ni52.c | p->scp = (struct scp_struct *)(p->base + SCP_DEFAULT_ADDRESS); |
p | 291 | drivers/net/ni52.c | memset((char *)p->scp,0, sizeof(struct scp_struct)); |
p | 293 | drivers/net/ni52.c | if(((char *)p->scp)[i]) |
p | 295 | drivers/net/ni52.c | p->scp->sysbus = SYSBUSVAL; /* 1 = 8Bit-Bus, 0 = 16 Bit */ |
p | 296 | drivers/net/ni52.c | if(p->scp->sysbus != SYSBUSVAL) |
p | 300 | drivers/net/ni52.c | iscp_addrs[1]= (char *) p->scp - sizeof(struct iscp_struct); |
p | 304 | drivers/net/ni52.c | p->iscp = (struct iscp_struct *) iscp_addrs[i]; |
p | 305 | drivers/net/ni52.c | memset((char *)p->iscp,0, sizeof(struct iscp_struct)); |
p | 307 | drivers/net/ni52.c | p->scp->iscp = make24(p->iscp); |
p | 308 | drivers/net/ni52.c | p->iscp->busy = 1; |
p | 314 | drivers/net/ni52.c | if(p->iscp->busy) /* i82586 clears 'busy' after successful init */ |
p | 325 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 330 | drivers/net/ni52.c | p->scp = (struct scp_struct *) (p->base + SCP_DEFAULT_ADDRESS); |
p | 331 | drivers/net/ni52.c | p->scb = (struct scb_struct *) (dev->mem_start); |
p | 332 | drivers/net/ni52.c | p->iscp = (struct iscp_struct *) ((char *)p->scp - sizeof(struct iscp_struct)); |
p | 334 | drivers/net/ni52.c | memset((char *) p->iscp,0,sizeof(struct iscp_struct)); |
p | 335 | drivers/net/ni52.c | memset((char *) p->scp ,0,sizeof(struct scp_struct)); |
p | 337 | drivers/net/ni52.c | p->scp->iscp = make24(p->iscp); |
p | 338 | drivers/net/ni52.c | p->scp->sysbus = SYSBUSVAL; |
p | 339 | drivers/net/ni52.c | p->iscp->scb_offset = make16(p->scb); |
p | 341 | drivers/net/ni52.c | p->iscp->busy = 1; |
p | 347 | drivers/net/ni52.c | if(p->iscp->busy) |
p | 350 | drivers/net/ni52.c | p->reseted = 0; |
p | 352 | drivers/net/ni52.c | memset((char *)p->scb,0,sizeof(struct scb_struct)); |
p | 538 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 546 | drivers/net/ni52.c | ptr = (void *) ((char *)p->scb + sizeof(struct scb_struct)); |
p | 563 | drivers/net/ni52.c | int len = ((char *) p->iscp - (char *) ptr - 8) / 6; |
p | 576 | drivers/net/ni52.c | p->scb->cbl_offset = make16(cfg_cmd); |
p | 577 | drivers/net/ni52.c | p->scb->cmd_ruc = 0; |
p | 579 | drivers/net/ni52.c | p->scb->cmd_cuc = CUC_START; /* cmd.-unit start */ |
p | 601 | drivers/net/ni52.c | p->scb->cbl_offset = make16(ias_cmd); |
p | 603 | drivers/net/ni52.c | p->scb->cmd_cuc = CUC_START; /* cmd.-unit start */ |
p | 623 | drivers/net/ni52.c | p->scb->cbl_offset = make16(tdr_cmd); |
p | 624 | drivers/net/ni52.c | p->scb->cmd_cuc = CUC_START; /* cmd.-unit start */ |
p | 638 | drivers/net/ni52.c | p->scb->cmd_cuc = p->scb->cus & STAT_MASK; |
p | 670 | drivers/net/ni52.c | p->scb->cbl_offset = make16(mc_cmd); |
p | 671 | drivers/net/ni52.c | p->scb->cmd_cuc = CUC_START; |
p | 686 | drivers/net/ni52.c | p->nop_cmds[i] = (struct nop_cmd_struct *)ptr; |
p | 687 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_cmd = CMD_NOP; |
p | 688 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_status = 0; |
p | 689 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_link = make16((p->nop_cmds[i])); |
p | 695 | drivers/net/ni52.c | p->nop_cmds[i] = (struct nop_cmd_struct *)ptr; |
p | 696 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_cmd = CMD_NOP; |
p | 697 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_status = 0; |
p | 698 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_link = make16((p->nop_cmds[i])); |
p | 710 | drivers/net/ni52.c | p->xmit_cmds[i] = (struct transmit_cmd_struct *)ptr; /*transmit cmd/buff 0*/ |
p | 712 | drivers/net/ni52.c | p->xmit_cbuffs[i] = (char *)ptr; /* char-buffs */ |
p | 714 | drivers/net/ni52.c | p->xmit_buffs[i] = (struct tbd_struct *)ptr; /* TBD */ |
p | 716 | drivers/net/ni52.c | if((void *)ptr > (void *)p->iscp) |
p | 721 | drivers/net/ni52.c | memset((char *)(p->xmit_cmds[i]) ,0, sizeof(struct transmit_cmd_struct)); |
p | 722 | drivers/net/ni52.c | memset((char *)(p->xmit_buffs[i]),0, sizeof(struct tbd_struct)); |
p | 723 | drivers/net/ni52.c | p->xmit_cmds[i]->cmd_link = make16(p->nop_cmds[(i+1)%NUM_XMIT_BUFFS]); |
p | 724 | drivers/net/ni52.c | p->xmit_cmds[i]->cmd_status = STAT_COMPL; |
p | 725 | drivers/net/ni52.c | p->xmit_cmds[i]->cmd_cmd = CMD_XMIT | CMD_INT; |
p | 726 | drivers/net/ni52.c | p->xmit_cmds[i]->tbd_offset = make16((p->xmit_buffs[i])); |
p | 727 | drivers/net/ni52.c | p->xmit_buffs[i]->next = 0xffff; |
p | 728 | drivers/net/ni52.c | p->xmit_buffs[i]->buffer = make24((p->xmit_cbuffs[i])); |
p | 731 | drivers/net/ni52.c | p->xmit_count = 0; |
p | 732 | drivers/net/ni52.c | p->xmit_last = 0; |
p | 734 | drivers/net/ni52.c | p->nop_point = 0; |
p | 741 | drivers/net/ni52.c | p->scb->cbl_offset = make16(p->nop_cmds[0]); |
p | 742 | drivers/net/ni52.c | p->scb->cmd_cuc = CUC_START; |
p | 746 | drivers/net/ni52.c | p->xmit_cmds[0]->cmd_link = make16(p->xmit_cmds[0]); |
p | 747 | drivers/net/ni52.c | p->xmit_cmds[0]->cmd_cmd = CMD_XMIT | CMD_SUSPEND | CMD_INT; |
p | 753 | drivers/net/ni52.c | p->scb->cmd_cuc = p->scb->cus & STAT_MASK; |
p | 772 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 774 | drivers/net/ni52.c | memset((char *) rfd,0,sizeof(struct rfd_struct)*(p->num_recv_buffs+rfdadd)); |
p | 775 | drivers/net/ni52.c | p->rfd_first = rfd; |
p | 777 | drivers/net/ni52.c | for(i = 0; i < (p->num_recv_buffs+rfdadd); i++) { |
p | 778 | drivers/net/ni52.c | rfd[i].next = make16(rfd + (i+1) % (p->num_recv_buffs+rfdadd) ); |
p | 781 | drivers/net/ni52.c | rfd[p->num_recv_buffs-1+rfdadd].last = RFD_SUSP; /* RU suspend */ |
p | 783 | drivers/net/ni52.c | ptr = (void *) (rfd + (p->num_recv_buffs + rfdadd) ); |
p | 786 | drivers/net/ni52.c | ptr = (void *) (rbd + p->num_recv_buffs); |
p | 789 | drivers/net/ni52.c | memset((char *) rbd,0,sizeof(struct rbd_struct)*(p->num_recv_buffs)); |
p | 791 | drivers/net/ni52.c | for(i=0;i<p->num_recv_buffs;i++) |
p | 793 | drivers/net/ni52.c | rbd[i].next = make16((rbd + (i+1) % p->num_recv_buffs)); |
p | 799 | drivers/net/ni52.c | p->rfd_top = p->rfd_first; |
p | 800 | drivers/net/ni52.c | p->rfd_last = p->rfd_first + (p->num_recv_buffs - 1 + rfdadd); |
p | 802 | drivers/net/ni52.c | p->scb->rfa_offset = make16(p->rfd_first); |
p | 803 | drivers/net/ni52.c | p->rfd_first->rbd_offset = make16(rbd); |
p | 818 | drivers/net/ni52.c | struct priv *p; |
p | 824 | drivers/net/ni52.c | p = (struct priv *) dev->priv; |
p | 833 | drivers/net/ni52.c | while((stat=p->scb->cus & STAT_MASK)) |
p | 835 | drivers/net/ni52.c | p->scb->cmd_cuc = stat; |
p | 844 | drivers/net/ni52.c | if(p->scb->rus & RU_SUSPEND) /* special case: RU_SUSPEND */ |
p | 847 | drivers/net/ni52.c | p->scb->cmd_ruc = RUC_RESUME; |
p | 853 | drivers/net/ni52.c | printk("%s: Receiver-Unit went 'NOT READY': %04x/%02x.\n",dev->name,(int) stat,(int) p->scb->rus); |
p | 865 | drivers/net/ni52.c | printk("%s: oops! CU has left active state. stat: %04x/%02x.\n",dev->name,(int) stat,(int) p->scb->cus); |
p | 873 | drivers/net/ni52.c | if(p->scb->cmd_cuc) /* timed out? */ |
p | 897 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 902 | drivers/net/ni52.c | for(;(status = p->rfd_top->stat_high) & RFD_COMPL;) |
p | 904 | drivers/net/ni52.c | rbd = (struct rbd_struct *) make32(p->rfd_top->rbd_offset); |
p | 918 | drivers/net/ni52.c | eth_copy_and_sum(skb,(char *) p->base+(unsigned long) rbd->buffer,totlen,0); |
p | 921 | drivers/net/ni52.c | p->stats.rx_packets++; |
p | 924 | drivers/net/ni52.c | p->stats.rx_dropped++; |
p | 945 | drivers/net/ni52.c | p->stats.rx_dropped++; |
p | 951 | drivers/net/ni52.c | p->stats.rx_errors++; |
p | 953 | drivers/net/ni52.c | p->rfd_top->stat_high = 0; |
p | 954 | drivers/net/ni52.c | p->rfd_top->last = RFD_SUSP; /* maybe exchange by RFD_LAST */ |
p | 955 | drivers/net/ni52.c | p->rfd_top->rbd_offset = 0xffff; |
p | 956 | drivers/net/ni52.c | p->rfd_last->last = 0; /* delete RFD_SUSP */ |
p | 957 | drivers/net/ni52.c | p->rfd_last = p->rfd_top; |
p | 958 | drivers/net/ni52.c | p->rfd_top = (struct rfd_struct *) make32(p->rfd_top->next); /* step to next RFD */ |
p | 959 | drivers/net/ni52.c | p->scb->rfa_offset = make16(p->rfd_top); |
p | 968 | drivers/net/ni52.c | p->scb->cmd_ruc = RUC_RESUME; |
p | 978 | drivers/net/ni52.c | if(p->rfd_top->status) |
p | 991 | drivers/net/ni52.c | volatile struct rfd_struct *rfds=p->rfd_top; |
p | 994 | drivers/net/ni52.c | for(i=0;i< (p->num_recv_buffs+4);i++) |
p | 1000 | drivers/net/ni52.c | printk("\nerrs: %04x %04x stat: %04x\n",(int)p->scb->rsc_errs,(int)p->scb->ovrn_errs,(int)p->scb->status); |
p | 1001 | drivers/net/ni52.c | printk("\nerrs: %04x %04x rus: %02x, cus: %02x\n",(int)p->scb->rsc_errs,(int)p->scb->ovrn_errs,(int)p->scb->rus,(int)p->scb->cus); |
p | 1016 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 1018 | drivers/net/ni52.c | p->stats.rx_errors++; |
p | 1021 | drivers/net/ni52.c | p->scb->cmd_ruc = RUC_ABORT; /* usually the RU is in the 'no resource'-state .. abort it now. */ |
p | 1025 | drivers/net/ni52.c | alloc_rfa(dev,(char *)p->rfd_first); |
p | 1029 | drivers/net/ni52.c | printk("%s: Receive-Unit restarted. Status: %04x\n",dev->name,p->scb->rus); |
p | 1040 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 1045 | drivers/net/ni52.c | status = p->xmit_cmds[p->xmit_last]->cmd_status; |
p | 1051 | drivers/net/ni52.c | p->stats.tx_packets++; |
p | 1052 | drivers/net/ni52.c | p->stats.collisions += (status & TCMD_MAXCOLLMASK); |
p | 1056 | drivers/net/ni52.c | p->stats.tx_errors++; |
p | 1059 | drivers/net/ni52.c | p->stats.collisions++; |
p | 1062 | drivers/net/ni52.c | p->stats.tx_carrier_errors++; |
p | 1068 | drivers/net/ni52.c | p->stats.tx_fifo_errors++; |
p | 1073 | drivers/net/ni52.c | p->stats.collisions += 16; |
p | 1078 | drivers/net/ni52.c | if( (++p->xmit_last) == NUM_XMIT_BUFFS) |
p | 1079 | drivers/net/ni52.c | p->xmit_last = 0; |
p | 1092 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 1096 | drivers/net/ni52.c | p->scb->rfa_offset = make16(p->rfd_first); |
p | 1097 | drivers/net/ni52.c | p->scb->cmd_ruc = RUC_START; |
p | 1112 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 1121 | drivers/net/ni52.c | if(p->scb->cus & CU_ACTIVE) /* COMMAND-UNIT active? */ |
p | 1126 | 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 | 1128 | drivers/net/ni52.c | p->scb->cmd_cuc = CUC_ABORT; |
p | 1131 | drivers/net/ni52.c | p->scb->cbl_offset = make16(p->nop_cmds[p->nop_point]); |
p | 1132 | drivers/net/ni52.c | p->scb->cmd_cuc = CUC_START; |
p | 1142 | drivers/net/ni52.c | printk("%s: xmitter timed out, try to restart! stat: %02x\n",dev->name,p->scb->cus); |
p | 1143 | 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 | 1172 | drivers/net/ni52.c | else if(set_bit(0,(void *) &p->lock)) { |
p | 1179 | drivers/net/ni52.c | memcpy((char *)p->xmit_cbuffs[p->xmit_count],(char *)(skb->data),skb->len); |
p | 1186 | drivers/net/ni52.c | if(p->scb->cus & CU_ACTIVE) |
p | 1189 | drivers/net/ni52.c | printk("%s: stat: %04x %04x\n",dev->name,p->scb->cus,p->xmit_cmds[0]->cmd_status); |
p | 1193 | drivers/net/ni52.c | p->xmit_buffs[0]->size = TBD_LAST | len; |
p | 1196 | drivers/net/ni52.c | p->xmit_cmds[0]->cmd_status = 0; |
p | 1198 | drivers/net/ni52.c | if( (p->scb->cus & CU_STATUS) == CU_SUSPEND) |
p | 1199 | drivers/net/ni52.c | p->scb->cmd_cuc = CUC_RESUME; |
p | 1202 | drivers/net/ni52.c | p->scb->cbl_offset = make16(p->xmit_cmds[0]); |
p | 1203 | drivers/net/ni52.c | p->scb->cmd_cuc = CUC_START; |
p | 1211 | drivers/net/ni52.c | if( (p->scb->cus & CU_ACTIVE)) /* test it, because CU sometimes doesn't start immediately */ |
p | 1213 | drivers/net/ni52.c | if(p->xmit_cmds[0]->cmd_status) |
p | 1219 | drivers/net/ni52.c | next_nop = (p->nop_point + 1) & 0x1; |
p | 1220 | drivers/net/ni52.c | p->xmit_buffs[0]->size = TBD_LAST | len; |
p | 1222 | drivers/net/ni52.c | p->xmit_cmds[0]->cmd_link = p->nop_cmds[next_nop]->cmd_link |
p | 1223 | drivers/net/ni52.c | = make16((p->nop_cmds[next_nop])); |
p | 1224 | drivers/net/ni52.c | p->xmit_cmds[0]->cmd_status = p->nop_cmds[next_nop]->cmd_status = 0; |
p | 1226 | drivers/net/ni52.c | p->nop_cmds[p->nop_point]->cmd_link = make16((p->xmit_cmds[0])); |
p | 1228 | drivers/net/ni52.c | p->nop_point = next_nop; |
p | 1232 | drivers/net/ni52.c | p->xmit_buffs[p->xmit_count]->size = TBD_LAST | len; |
p | 1233 | drivers/net/ni52.c | if( (next_nop = p->xmit_count + 1) == NUM_XMIT_BUFFS ) |
p | 1236 | drivers/net/ni52.c | p->xmit_cmds[p->xmit_count]->cmd_status = 0; |
p | 1238 | drivers/net/ni52.c | p->nop_cmds[next_nop]->cmd_link = make16((p->nop_cmds[next_nop])); |
p | 1239 | drivers/net/ni52.c | p->nop_cmds[next_nop]->cmd_status = 0; |
p | 1241 | drivers/net/ni52.c | p->nop_cmds[p->xmit_count]->cmd_link = make16((p->xmit_cmds[p->xmit_count])); |
p | 1243 | drivers/net/ni52.c | p->xmit_count = next_nop; |
p | 1249 | drivers/net/ni52.c | if(p->xmit_count != p->xmit_last) |
p | 1251 | drivers/net/ni52.c | p->lock = 0; |
p | 1266 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 1269 | drivers/net/ni52.c | crc = p->scb->crc_errs; /* get error-statistic from the ni82586 */ |
p | 1270 | drivers/net/ni52.c | p->scb->crc_errs = 0; |
p | 1271 | drivers/net/ni52.c | aln = p->scb->aln_errs; |
p | 1272 | drivers/net/ni52.c | p->scb->aln_errs = 0; |
p | 1273 | drivers/net/ni52.c | rsc = p->scb->rsc_errs; |
p | 1274 | drivers/net/ni52.c | p->scb->rsc_errs = 0; |
p | 1275 | drivers/net/ni52.c | ovrn = p->scb->ovrn_errs; |
p | 1276 | drivers/net/ni52.c | p->scb->ovrn_errs = 0; |
p | 1278 | drivers/net/ni52.c | p->stats.rx_crc_errors += crc; |
p | 1279 | drivers/net/ni52.c | p->stats.rx_fifo_errors += ovrn; |
p | 1280 | drivers/net/ni52.c | p->stats.rx_frame_errors += aln; |
p | 1281 | drivers/net/ni52.c | p->stats.rx_dropped += rsc; |
p | 1283 | drivers/net/ni52.c | return &p->stats; |
p | 1351 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 1355 | drivers/net/ni52.c | p->scb->cmd_cuc = CUC_ABORT; |
p | 1365 | drivers/net/ni52.c | p->scb->cbl_offset = make16(dump_cmd); |
p | 1366 | drivers/net/ni52.c | p->scb->cmd_cuc = CUC_START; |
p | 224 | drivers/net/ni65.c | struct priv *p; |
p | 295 | drivers/net/ni65.c | p = dev->priv = (struct priv *) ptr; |
p | 308 | drivers/net/ni65.c | p->tmdbounce[i] = ptr; |
p | 310 | drivers/net/ni65.c | p->tmd_skb[i] = NULL; |
p | 329 | drivers/net/ni65.c | p->recv_skb[i] = skb; |
p | 334 | drivers/net/ni65.c | if( !(p->recvbounce[i] = kmalloc(R_BUF_SIZE,GFP_KERNEL | GFP_DMA )) ) { |
p | 338 | drivers/net/ni65.c | if( (unsigned long) p->recvbounce[i] + R_BUF_SIZE > 0x1000000 ) { |
p | 355 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
p | 357 | drivers/net/ni65.c | p->lock = 0; |
p | 358 | drivers/net/ni65.c | p->xmit_queued = 0; |
p | 374 | drivers/net/ni65.c | p->tmdnum = 0; p->tmdlast = 0; |
p | 377 | drivers/net/ni65.c | struct tmd *tmdp = p->tmdhead + i; |
p | 379 | drivers/net/ni65.c | if(p->tmd_skb[i]) { |
p | 380 | drivers/net/ni65.c | dev_kfree_skb(p->tmd_skb[i],FREE_WRITE); |
p | 381 | drivers/net/ni65.c | p->tmd_skb[i] = NULL; |
p | 389 | drivers/net/ni65.c | p->rmdnum = 0; |
p | 392 | drivers/net/ni65.c | struct rmd *rmdp = p->rmdhead + i; |
p | 394 | drivers/net/ni65.c | rmdp->u.buffer = (unsigned long) p->recv_skb[i]->data; |
p | 396 | drivers/net/ni65.c | rmdp->u.buffer = (unsigned long) p->recvbounce[i]; |
p | 404 | drivers/net/ni65.c | p->ib.eaddr[i] = dev->dev_addr[i]; |
p | 407 | drivers/net/ni65.c | p->ib.filter[i] = 0x0; |
p | 408 | drivers/net/ni65.c | p->ib.mode = 0x0; |
p | 411 | drivers/net/ni65.c | p->ib.mode = M_PROM; |
p | 415 | drivers/net/ni65.c | p->ib.filter[i] = 0xff; |
p | 418 | drivers/net/ni65.c | p->ib.trp = (unsigned long) p->tmdhead | TMDNUMMASK; |
p | 419 | drivers/net/ni65.c | p->ib.rrp = (unsigned long) p->rmdhead | RMDNUMMASK; |
p | 422 | drivers/net/ni65.c | writereg((unsigned short) (((unsigned long) &(p->ib)) & 0xffff),CSR1); |
p | 423 | drivers/net/ni65.c | writereg((unsigned short) (((unsigned long) &(p->ib))>>16),CSR2); |
p | 477 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
p | 480 | drivers/net/ni65.c | p->stats.tx_errors++; |
p | 482 | drivers/net/ni65.c | p->stats.rx_errors++; |
p | 496 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
p | 499 | drivers/net/ni65.c | struct rmd *rmdp = p->rmdhead + ((p->rmdnum - i - 1) & (RMDNUM-1)); |
p | 507 | drivers/net/ni65.c | p->rmdnum = (p->rmdnum + 8 - i) & (RMDNUM - 1); |
p | 532 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
p | 534 | drivers/net/ni65.c | while(p->xmit_queued) |
p | 536 | drivers/net/ni65.c | struct tmd *tmdp = p->tmdhead + p->tmdlast; |
p | 543 | drivers/net/ni65.c | if(p->tmd_skb[p->tmdlast]) { |
p | 544 | drivers/net/ni65.c | dev_kfree_skb(p->tmd_skb[p->tmdlast],FREE_WRITE); |
p | 545 | drivers/net/ni65.c | p->tmd_skb[p->tmdlast] = NULL; |
p | 557 | drivers/net/ni65.c | p->stats.tx_aborted_errors++; |
p | 559 | drivers/net/ni65.c | p->stats.tx_carrier_errors++; |
p | 561 | drivers/net/ni65.c | p->stats.tx_fifo_errors++; |
p | 569 | drivers/net/ni65.c | p->stats.tx_errors++; |
p | 573 | drivers/net/ni65.c | p->stats.tx_packets++; |
p | 575 | drivers/net/ni65.c | p->tmdlast = (p->tmdlast + 1) & (TMDNUM-1); |
p | 576 | drivers/net/ni65.c | if(p->tmdlast == p->tmdnum) |
p | 577 | drivers/net/ni65.c | p->xmit_queued = 0; |
p | 591 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
p | 593 | drivers/net/ni65.c | rmdp = p->rmdhead + p->rmdnum; |
p | 601 | drivers/net/ni65.c | p->stats.rx_length_errors++; |
p | 609 | drivers/net/ni65.c | p->stats.rx_frame_errors++; |
p | 611 | drivers/net/ni65.c | p->stats.rx_over_errors++; |
p | 618 | drivers/net/ni65.c | if(rmdstat & RCV_CRC) p->stats.rx_crc_errors++; |
p | 621 | drivers/net/ni65.c | p->stats.rx_errors++; |
p | 637 | drivers/net/ni65.c | eth_copy_and_sum(skb, (unsigned char *)(p->recv_skb[p->rmdnum]->data),len,0); |
p | 640 | drivers/net/ni65.c | struct sk_buff *skb1 = p->recv_skb[p->rmdnum]; |
p | 642 | drivers/net/ni65.c | p->recv_skb[p->rmdnum] = skb; |
p | 649 | drivers/net/ni65.c | eth_copy_and_sum(skb, (unsigned char *) p->recvbounce[p->rmdnum],len,0); |
p | 652 | drivers/net/ni65.c | p->stats.rx_packets++; |
p | 660 | drivers/net/ni65.c | p->stats.rx_dropped++; |
p | 666 | drivers/net/ni65.c | p->stats.rx_errors++; |
p | 668 | drivers/net/ni65.c | p->rmdnum = (p->rmdnum + 1) & (RMDNUM-1); |
p | 669 | drivers/net/ni65.c | rmdp = p->rmdhead + p->rmdnum; |
p | 678 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
p | 704 | drivers/net/ni65.c | if (set_bit(0, (void*)&p->lock)) { |
p | 711 | drivers/net/ni65.c | struct tmd *tmdp = p->tmdhead + p->tmdnum; |
p | 717 | drivers/net/ni65.c | tmdp->u.buffer = (unsigned long ) p->tmdbounce[p->tmdnum]; |
p | 725 | drivers/net/ni65.c | p->tmd_skb[p->tmdnum] = skb; |
p | 736 | drivers/net/ni65.c | p->xmit_queued = 1; |
p | 737 | drivers/net/ni65.c | p->tmdnum = (p->tmdnum + 1) & (TMDNUM-1); |
p | 739 | drivers/net/ni65.c | dev->tbusy = (p->tmdnum == p->tmdlast) ? 1 : 0; |
p | 740 | drivers/net/ni65.c | p->lock = 0; |
p | 213 | drivers/net/ppp.c | #define bset(p,b) ((p)[(b) >> 5] |= (1 << ((b) & 0x1f))) |
p | 320 | drivers/net/ppp.c | extern inline __u8 * store_long (register __u8 *p, register int value) { |
p | 321 | drivers/net/ppp.c | *p++ = (__u8) (value >> 24); |
p | 322 | drivers/net/ppp.c | *p++ = (__u8) (value >> 16); |
p | 323 | drivers/net/ppp.c | *p++ = (__u8) (value >> 8); |
p | 324 | drivers/net/ppp.c | *p++ = (__u8) value; |
p | 325 | drivers/net/ppp.c | return p; |
p | 2024 | drivers/net/ppp.c | __u8 *p; |
p | 2033 | drivers/net/ppp.c | p = (__u8 *) &data [40]; /* Point to last two items. */ |
p | 2034 | drivers/net/ppp.c | p = store_long (p, ppp->stats.ppp_opackets + 1); |
p | 2035 | drivers/net/ppp.c | p = store_long (p, ppp->stats.ppp_ooctects + len); |
p | 2751 | 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 | 639 | drivers/net/sk_g16.c | struct priv *p; /* SK_G16 private structure */ |
p | 787 | drivers/net/sk_g16.c | p = dev->priv = (void *) kmalloc(sizeof(struct priv), GFP_KERNEL); |
p | 788 | drivers/net/sk_g16.c | if (p == NULL) |
p | 809 | drivers/net/sk_g16.c | p->ram = (struct SK_ram *) rom_addr; /* Set dual ported RAM addr */ |
p | 810 | drivers/net/sk_g16.c | p->tmdhead = &(p->ram)->tmde[0]; /* Set TMD head */ |
p | 811 | drivers/net/sk_g16.c | p->rmdhead = &(p->ram)->rmde[0]; /* Set RMD head */ |
p | 817 | drivers/net/sk_g16.c | p->tmdbufs[i] = &(p->ram)->tmdbuf[i]; |
p | 822 | drivers/net/sk_g16.c | p->rmdbufs[i] = &(p->ram)->rmdbuf[i]; |
p | 868 | drivers/net/sk_g16.c | struct priv *p = (struct priv *)dev->priv; |
p | 957 | drivers/net/sk_g16.c | (int) dev->irq, (unsigned int) p->ram); |
p | 1028 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1039 | drivers/net/sk_g16.c | p->tmdnum = 0; /* First descriptor for transmitting */ |
p | 1040 | drivers/net/sk_g16.c | p->tmdlast = 0; /* First descriptor for reading stats */ |
p | 1044 | drivers/net/sk_g16.c | tmdp = p->tmdhead + i; |
p | 1046 | drivers/net/sk_g16.c | tmdp->u.buffer = (unsigned long) p->tmdbufs[i]; /* assign buffer */ |
p | 1055 | drivers/net/sk_g16.c | p->rmdnum = 0; /* First RMD which will be used */ |
p | 1059 | drivers/net/sk_g16.c | rmdp = p->rmdhead + i; |
p | 1062 | drivers/net/sk_g16.c | rmdp->u.buffer = (unsigned long) p->rmdbufs[i]; /* assign buffer */ |
p | 1079 | drivers/net/sk_g16.c | (p->ram)->ib.mode = mode; /* Set operation mode */ |
p | 1083 | drivers/net/sk_g16.c | (p->ram)->ib.paddr[i] = dev->dev_addr[i]; |
p | 1088 | drivers/net/sk_g16.c | (p->ram)->ib.laddr[i] = 0; /* We do not use logical addressing */ |
p | 1093 | drivers/net/sk_g16.c | (p->ram)->ib.rdrp = (int) p->rmdhead | RMDNUMMASK; |
p | 1094 | drivers/net/sk_g16.c | (p->ram)->ib.tdrp = (int) p->tmdhead | TMDNUMMASK; |
p | 1147 | drivers/net/sk_g16.c | (unsigned int) &(p->ram)->ib); |
p | 1193 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1250 | drivers/net/sk_g16.c | tmdp = p->tmdhead + p->tmdnum; /* Which descriptor for transmitting */ |
p | 1275 | drivers/net/sk_g16.c | p->tmdnum++; |
p | 1276 | drivers/net/sk_g16.c | p->tmdnum &= TMDNUM-1; |
p | 1279 | drivers/net/sk_g16.c | if (! ((p->tmdhead + p->tmdnum)->u.s.status & TX_OWN) ) |
p | 1314 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1348 | drivers/net/sk_g16.c | p->stats.rx_dropped++; |
p | 1389 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1395 | drivers/net/sk_g16.c | tmdp = p->tmdhead + p->tmdlast; /* Which buffer we sent at last ? */ |
p | 1398 | drivers/net/sk_g16.c | p->tmdlast++; |
p | 1399 | drivers/net/sk_g16.c | p->tmdlast &= TMDNUM-1; |
p | 1418 | drivers/net/sk_g16.c | p->stats.tx_aborted_errors++; |
p | 1420 | drivers/net/sk_g16.c | p->stats.tx_window_errors++; |
p | 1422 | drivers/net/sk_g16.c | p->stats.tx_carrier_errors++; |
p | 1425 | drivers/net/sk_g16.c | p->stats.tx_fifo_errors++; |
p | 1435 | drivers/net/sk_g16.c | p->stats.tx_errors++; |
p | 1453 | drivers/net/sk_g16.c | p->stats.collisions++; |
p | 1457 | drivers/net/sk_g16.c | p->stats.tx_packets++; |
p | 1509 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1514 | drivers/net/sk_g16.c | rmdp = p->rmdhead + p->rmdnum; |
p | 1536 | drivers/net/sk_g16.c | p->stats.rx_errors++; /* bad packet received */ |
p | 1537 | drivers/net/sk_g16.c | p->stats.rx_length_errors++; /* packet to long */ |
p | 1557 | drivers/net/sk_g16.c | p->stats.rx_errors++; |
p | 1559 | drivers/net/sk_g16.c | if (rmdstat & RX_FRAM) p->stats.rx_frame_errors++; |
p | 1560 | drivers/net/sk_g16.c | if (rmdstat & RX_CRC) p->stats.rx_crc_errors++; |
p | 1584 | drivers/net/sk_g16.c | p->stats.rx_dropped++; |
p | 1621 | drivers/net/sk_g16.c | p->stats.rx_packets++; |
p | 1624 | drivers/net/sk_g16.c | p->rmdnum++; |
p | 1625 | drivers/net/sk_g16.c | p->rmdnum %= RMDNUM; |
p | 1627 | drivers/net/sk_g16.c | rmdp = p->rmdhead + p->rmdnum; |
p | 1694 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1699 | drivers/net/sk_g16.c | return &p->stats; /* Return Device status */ |
p | 2077 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 2082 | drivers/net/sk_g16.c | (unsigned int) p->ram, |
p | 2083 | drivers/net/sk_g16.c | (unsigned int) p->tmdhead, |
p | 2084 | drivers/net/sk_g16.c | (unsigned int) p->rmdhead, |
p | 2085 | drivers/net/sk_g16.c | (unsigned int) &(p->ram)->ib); |
p | 2095 | drivers/net/sk_g16.c | printk("tmdbufs%d: %#08x ", (i+1), (int) p->tmdbufs[i]); |
p | 2105 | 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 | 700 | drivers/net/sunlance.c | struct Linux_SBus_DMA *p; |
p | 702 | drivers/net/sunlance.c | for (p = dma_chain; p; p = p->next) |
p | 703 | drivers/net/sunlance.c | if (p->SBus_dev == dev) |
p | 704 | drivers/net/sunlance.c | return p; |
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 | 2449 | drivers/scsi/scsi.c | char *p; |
p | 2510 | drivers/scsi/scsi.c | p = buffer + 17; |
p | 2513 | drivers/scsi/scsi.c | p++; |
p | 2514 | 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 | 192 | drivers/sound/audio.c | int c, p, l, buf_no, buf_ptr, buf_size; |
p | 198 | drivers/sound/audio.c | p = 0; |
p | 226 | drivers/sound/audio.c | return p; /* No more space. Return # of accepted bytes */ |
p | 240 | drivers/sound/audio.c | memcpy_fromfs (&dma_buf[buf_ptr], &((buf)[p]), l); |
p | 244 | drivers/sound/audio.c | dma_buf, buf_ptr, buf, p, l); |
p | 256 | drivers/sound/audio.c | p += l; |
p | 278 | drivers/sound/audio.c | int c, p, l; |
p | 283 | drivers/sound/audio.c | p = 0; |
p | 304 | drivers/sound/audio.c | return p; |
p | 326 | drivers/sound/audio.c | memcpy_tofs (&((buf)[p]), dmabuf, l); |
p | 330 | drivers/sound/audio.c | p += l; |
p | 489 | drivers/sound/configure.c | char *method, *next, *old, *var, *p; |
p | 491 | drivers/sound/configure.c | method = p = line; |
p | 493 | drivers/sound/configure.c | while (*p && *p != ' ') |
p | 494 | drivers/sound/configure.c | p++; |
p | 495 | drivers/sound/configure.c | *p++ = 0; |
p | 497 | drivers/sound/configure.c | old = p; |
p | 498 | drivers/sound/configure.c | while (*p && *p != ' ') |
p | 499 | drivers/sound/configure.c | p++; |
p | 500 | drivers/sound/configure.c | *p++ = 0; |
p | 502 | drivers/sound/configure.c | next = p; |
p | 503 | drivers/sound/configure.c | while (*p && *p != ' ') |
p | 504 | drivers/sound/configure.c | p++; |
p | 505 | drivers/sound/configure.c | *p++ = 0; |
p | 507 | drivers/sound/configure.c | var = p; |
p | 508 | drivers/sound/configure.c | while (*p && *p != ' ') |
p | 509 | drivers/sound/configure.c | p++; |
p | 510 | drivers/sound/configure.c | *p++ = 0; |
p | 598 | drivers/sound/dmabuf.c | int p = dmap->counts[dmap->qhead] + c; |
p | 605 | drivers/sound/dmabuf.c | else if (p >= dmap->fragment_size) |
p | 615 | drivers/sound/dmabuf.c | dmap->counts[dmap->qhead] = p; |
p | 1190 | drivers/sound/dmabuf.c | int p = dmap->fragment_size * dmap->qtail; |
p | 1192 | drivers/sound/dmabuf.c | memset (dmap->raw_buf + p + l, |
p | 1317 | drivers/sound/dmabuf.c | int p, l; |
p | 1319 | drivers/sound/dmabuf.c | p = dmap->fragment_size * i; |
p | 1330 | 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 | 1073 | drivers/sound/opl3.c | int i, p, best, first, avail, best_time = 0x7fffffff; |
p | 1094 | drivers/sound/opl3.c | first = p = 0; |
p | 1100 | drivers/sound/opl3.c | first = p = 6; |
p | 1102 | drivers/sound/opl3.c | first = p = 0; |
p | 1113 | drivers/sound/opl3.c | if (alloc->map[p] == 0) |
p | 1115 | drivers/sound/opl3.c | return p; |
p | 1117 | drivers/sound/opl3.c | if (alloc->alloc_times[p] < best_time) /* Find oldest playing note */ |
p | 1119 | drivers/sound/opl3.c | best_time = alloc->alloc_times[p]; |
p | 1120 | drivers/sound/opl3.c | best = p; |
p | 1122 | 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 | 205 | fs/binfmt_aout.c | static unsigned long * create_aout_tables(char * p, struct linux_binprm * bprm, int ibcs) |
p | 212 | fs/binfmt_aout.c | sp = (unsigned long *) ((-(unsigned long)sizeof(char *)) & (unsigned long) p); |
p | 237 | fs/binfmt_aout.c | current->mm->arg_start = (unsigned long) p; |
p | 239 | fs/binfmt_aout.c | put_user(p,argv++); |
p | 240 | fs/binfmt_aout.c | while (get_user(p++)) /* nothing */ ; |
p | 243 | fs/binfmt_aout.c | current->mm->arg_end = current->mm->env_start = (unsigned long) p; |
p | 245 | fs/binfmt_aout.c | put_user(p,envp++); |
p | 246 | fs/binfmt_aout.c | while (get_user(p++)) /* nothing */ ; |
p | 249 | fs/binfmt_aout.c | current->mm->env_end = (unsigned long) p; |
p | 265 | fs/binfmt_aout.c | unsigned long p = bprm->p; |
p | 386 | fs/binfmt_aout.c | p = setup_arg_pages(p, bprm); |
p | 388 | fs/binfmt_aout.c | p = (unsigned long) create_aout_tables((char *)p, bprm, |
p | 390 | fs/binfmt_aout.c | current->mm->start_stack = p; |
p | 394 | 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 | 98 | fs/binfmt_elf.c | sp = (unsigned long *) (0xfffffffc & (unsigned long) p); |
p | 133 | fs/binfmt_elf.c | current->mm->arg_start = (unsigned long) p; |
p | 135 | fs/binfmt_elf.c | put_user(p,argv++); |
p | 136 | fs/binfmt_elf.c | while (get_user(p++)) /* nothing */ ; |
p | 139 | fs/binfmt_elf.c | current->mm->arg_end = current->mm->env_start = (unsigned long) p; |
p | 141 | fs/binfmt_elf.c | put_user(p,envp++); |
p | 142 | fs/binfmt_elf.c | while (get_user(p++)) /* nothing */ ; |
p | 145 | fs/binfmt_elf.c | current->mm->env_end = (unsigned long) p; |
p | 505 | fs/binfmt_elf.c | bprm->p = copy_strings(1,&passed_p,bprm->page,bprm->p,2); |
p | 509 | fs/binfmt_elf.c | if (!bprm->p) { |
p | 531 | fs/binfmt_elf.c | bprm->p = setup_arg_pages(bprm->p, bprm); |
p | 532 | fs/binfmt_elf.c | current->mm->start_stack = bprm->p; |
p | 629 | fs/binfmt_elf.c | current->start_stack = bprm->p = elf_stack - 4; |
p | 634 | fs/binfmt_elf.c | bprm->p = (unsigned long) |
p | 635 | fs/binfmt_elf.c | create_elf_tables((char *)bprm->p, |
p | 648 | fs/binfmt_elf.c | current->mm->start_stack = bprm->p; |
p | 684 | fs/binfmt_elf.c | start_thread(regs, elf_entry, bprm->p); |
p | 64 | fs/binfmt_script.c | offset = bprm->p % PAGE_SIZE; |
p | 65 | fs/binfmt_script.c | page = (char*)bprm->page[bprm->p/PAGE_SIZE]; |
p | 66 | fs/binfmt_script.c | while(bprm->p++,*(page+offset++)) |
p | 69 | fs/binfmt_script.c | page = (char*)bprm->page[bprm->p/PAGE_SIZE]; |
p | 73 | fs/binfmt_script.c | bprm->p = copy_strings(1, &bprm->filename, bprm->page, bprm->p, 2); |
p | 76 | fs/binfmt_script.c | bprm->p = copy_strings(1, &i_arg, bprm->page, bprm->p, 2); |
p | 79 | fs/binfmt_script.c | bprm->p = copy_strings(1, &i_name, bprm->page, bprm->p, 2); |
p | 81 | fs/binfmt_script.c | if (!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 | 1259 | fs/buffer.c | int *p, nr[PAGE_SIZE/512]; |
p | 1268 | fs/buffer.c | p = nr; |
p | 1270 | fs/buffer.c | *p = inode->i_op->bmap(inode, block); |
p | 1273 | fs/buffer.c | p++; |
p | 1347 | fs/buffer.c | struct buffer_head * tmp, * p; |
p | 1366 | fs/buffer.c | p = tmp; |
p | 1370 | fs/buffer.c | if (p == *bhp) |
p | 1372 | fs/buffer.c | *bhp = p->b_prev_free; |
p | 1373 | fs/buffer.c | if (p == *bhp) /* Was this the last in the list? */ |
p | 1376 | fs/buffer.c | remove_from_queues(p); |
p | 1377 | fs/buffer.c | put_unused_buffer_head(p); |
p | 1614 | fs/buffer.c | struct buffer_head * tmp, * p; |
p | 1638 | fs/buffer.c | p = tmp; |
p | 1640 | fs/buffer.c | remove_from_queues(p); |
p | 1641 | fs/buffer.c | p->b_dev = dev; |
p | 1642 | fs/buffer.c | mark_buffer_uptodate(p, 0); |
p | 1643 | fs/buffer.c | clear_bit(BH_Req, &p->b_state); |
p | 1644 | fs/buffer.c | p->b_blocknr = starting_block++; |
p | 1645 | 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 | 191 | fs/exec.c | char ** tmp, *p; |
p | 197 | fs/exec.c | while ((p = get_user(tmp++)) != NULL) { |
p | 199 | fs/exec.c | error = verify_area(VERIFY_READ, p, 1); |
p | 225 | fs/exec.c | unsigned long p, int from_kmem) |
p | 231 | fs/exec.c | if (!p) |
p | 246 | fs/exec.c | if (p < len) { /* this shouldn't happen - 128kB */ |
p | 251 | fs/exec.c | --p; --tmp; --len; |
p | 253 | fs/exec.c | offset = p % PAGE_SIZE; |
p | 256 | fs/exec.c | if (!(pag = (char *) page[p/PAGE_SIZE]) && |
p | 257 | fs/exec.c | !(pag = (char *) page[p/PAGE_SIZE] = |
p | 269 | fs/exec.c | p -= bytes_to_copy; |
p | 278 | fs/exec.c | return p; |
p | 281 | fs/exec.c | unsigned long setup_arg_pages(unsigned long p, struct linux_binprm * bprm) |
p | 289 | fs/exec.c | p += stack_base; |
p | 297 | fs/exec.c | mpnt->vm_start = PAGE_MASK & (unsigned long) p; |
p | 316 | fs/exec.c | return p; |
p | 487 | fs/exec.c | offset = bprm->p % PAGE_SIZE; |
p | 488 | fs/exec.c | page = (char*)bprm->page[bprm->p/PAGE_SIZE]; |
p | 489 | fs/exec.c | while(bprm->p++,*(page+offset++)) |
p | 492 | fs/exec.c | page = (char*)bprm->page[bprm->p/PAGE_SIZE]; |
p | 517 | fs/exec.c | bprm->p = copy_strings(1, dynloader, bprm->page, bprm->p, 2); |
p | 519 | fs/exec.c | bprm->loader = bprm->p; |
p | 579 | fs/exec.c | bprm.p = PAGE_SIZE*MAX_ARG_PAGES-sizeof(void *); |
p | 598 | fs/exec.c | bprm.p = copy_strings(1, &bprm.filename, bprm.page, bprm.p, 2); |
p | 599 | fs/exec.c | bprm.exec = bprm.p; |
p | 600 | fs/exec.c | bprm.p = copy_strings(bprm.envc,envp,bprm.page,bprm.p,0); |
p | 601 | fs/exec.c | bprm.p = copy_strings(bprm.argc,argv,bprm.page,bprm.p,0); |
p | 602 | fs/exec.c | if (!bprm.p) |
p | 205 | fs/ext/file.c | char * p; |
p | 244 | fs/ext/file.c | p = (pos % BLOCK_SIZE) + bh->b_data; |
p | 245 | fs/ext/file.c | memcpy_fromfs(p,buf,c); |
p | 246 | fs/ext/file.c | update_vm_cache(inode, pos, p, 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 | 67 | fs/nfs/proc.c | static int *nfs_rpc_header(int *p, int procedure, int ruid); |
p | 68 | fs/nfs/proc.c | static int *nfs_rpc_verify(int *p); |
p | 89 | fs/nfs/proc.c | static inline void nfs_rpc_free(int *p) |
p | 91 | fs/nfs/proc.c | kfree((void *)p); |
p | 101 | fs/nfs/proc.c | static inline int *xdr_encode_fhandle(int *p, struct nfs_fh *fhandle) |
p | 103 | fs/nfs/proc.c | *((struct nfs_fh *) p) = *fhandle; |
p | 104 | fs/nfs/proc.c | return p + QUADLEN(sizeof(*fhandle)); |
p | 107 | fs/nfs/proc.c | static inline int *xdr_decode_fhandle(int *p, struct nfs_fh *fhandle) |
p | 109 | fs/nfs/proc.c | *fhandle = *((struct nfs_fh *) p); |
p | 110 | fs/nfs/proc.c | return p + QUADLEN(sizeof(*fhandle)); |
p | 113 | fs/nfs/proc.c | static inline int *xdr_encode_string(int *p, const char *string) |
p | 118 | fs/nfs/proc.c | p[quadlen] = 0; |
p | 119 | fs/nfs/proc.c | *p++ = htonl(len); |
p | 120 | fs/nfs/proc.c | memcpy(p, string, len); |
p | 121 | fs/nfs/proc.c | return p + quadlen; |
p | 124 | fs/nfs/proc.c | static inline int *xdr_decode_string(int *p, char *string, unsigned int maxlen) |
p | 126 | fs/nfs/proc.c | unsigned int len = ntohl(*p++); |
p | 129 | fs/nfs/proc.c | memcpy(string, p, len); |
p | 131 | fs/nfs/proc.c | return p + QUADLEN(len); |
p | 134 | fs/nfs/proc.c | static inline int *xdr_decode_string2(int *p, char **string, unsigned int *len, |
p | 137 | fs/nfs/proc.c | *len = ntohl(*p++); |
p | 140 | fs/nfs/proc.c | *string = (char *) p; |
p | 141 | fs/nfs/proc.c | return p + QUADLEN(*len); |
p | 145 | fs/nfs/proc.c | static inline int *xdr_encode_data(int *p, const char *data, int len) |
p | 149 | fs/nfs/proc.c | p[quadlen] = 0; |
p | 150 | fs/nfs/proc.c | *p++ = htonl(len); |
p | 151 | fs/nfs/proc.c | memcpy_fromfs(p, data, len); |
p | 152 | fs/nfs/proc.c | return p + quadlen; |
p | 155 | fs/nfs/proc.c | static inline int *xdr_decode_data(int *p, char *data, int *lenp, int maxlen) |
p | 157 | fs/nfs/proc.c | unsigned len = *lenp = ntohl(*p++); |
p | 160 | fs/nfs/proc.c | memcpy(data, p, len); |
p | 161 | fs/nfs/proc.c | return p + QUADLEN(len); |
p | 164 | fs/nfs/proc.c | static int *xdr_decode_fattr(int *p, struct nfs_fattr *fattr) |
p | 166 | fs/nfs/proc.c | fattr->type = (enum nfs_ftype) ntohl(*p++); |
p | 167 | fs/nfs/proc.c | fattr->mode = ntohl(*p++); |
p | 168 | fs/nfs/proc.c | fattr->nlink = ntohl(*p++); |
p | 169 | fs/nfs/proc.c | fattr->uid = ntohl(*p++); |
p | 170 | fs/nfs/proc.c | fattr->gid = ntohl(*p++); |
p | 171 | fs/nfs/proc.c | fattr->size = ntohl(*p++); |
p | 172 | fs/nfs/proc.c | fattr->blocksize = ntohl(*p++); |
p | 173 | fs/nfs/proc.c | fattr->rdev = ntohl(*p++); |
p | 174 | fs/nfs/proc.c | fattr->blocks = ntohl(*p++); |
p | 175 | fs/nfs/proc.c | fattr->fsid = ntohl(*p++); |
p | 176 | fs/nfs/proc.c | fattr->fileid = ntohl(*p++); |
p | 177 | fs/nfs/proc.c | fattr->atime.seconds = ntohl(*p++); |
p | 178 | fs/nfs/proc.c | fattr->atime.useconds = ntohl(*p++); |
p | 179 | fs/nfs/proc.c | fattr->mtime.seconds = ntohl(*p++); |
p | 180 | fs/nfs/proc.c | fattr->mtime.useconds = ntohl(*p++); |
p | 181 | fs/nfs/proc.c | fattr->ctime.seconds = ntohl(*p++); |
p | 182 | fs/nfs/proc.c | fattr->ctime.useconds = ntohl(*p++); |
p | 183 | fs/nfs/proc.c | return p; |
p | 186 | fs/nfs/proc.c | static int *xdr_encode_sattr(int *p, struct nfs_sattr *sattr) |
p | 188 | fs/nfs/proc.c | *p++ = htonl(sattr->mode); |
p | 189 | fs/nfs/proc.c | *p++ = htonl(sattr->uid); |
p | 190 | fs/nfs/proc.c | *p++ = htonl(sattr->gid); |
p | 191 | fs/nfs/proc.c | *p++ = htonl(sattr->size); |
p | 192 | fs/nfs/proc.c | *p++ = htonl(sattr->atime.seconds); |
p | 193 | fs/nfs/proc.c | *p++ = htonl(sattr->atime.useconds); |
p | 194 | fs/nfs/proc.c | *p++ = htonl(sattr->mtime.seconds); |
p | 195 | fs/nfs/proc.c | *p++ = htonl(sattr->mtime.useconds); |
p | 196 | fs/nfs/proc.c | return p; |
p | 199 | fs/nfs/proc.c | static int *xdr_decode_entry(int *p, struct nfs_entry *entry) |
p | 201 | fs/nfs/proc.c | entry->fileid = ntohl(*p++); |
p | 202 | fs/nfs/proc.c | if (!(p = xdr_decode_string(p, entry->name, NFS_MAXNAMLEN))) |
p | 204 | fs/nfs/proc.c | entry->cookie = ntohl(*p++); |
p | 206 | fs/nfs/proc.c | return p; |
p | 209 | fs/nfs/proc.c | static int *xdr_decode_fsinfo(int *p, struct nfs_fsinfo *res) |
p | 211 | fs/nfs/proc.c | res->tsize = ntohl(*p++); |
p | 212 | fs/nfs/proc.c | res->bsize = ntohl(*p++); |
p | 213 | fs/nfs/proc.c | res->blocks = ntohl(*p++); |
p | 214 | fs/nfs/proc.c | res->bfree = ntohl(*p++); |
p | 215 | fs/nfs/proc.c | res->bavail = ntohl(*p++); |
p | 216 | fs/nfs/proc.c | return p; |
p | 226 | fs/nfs/proc.c | int *p, *p0; |
p | 234 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_GETATTR, ruid); |
p | 235 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 236 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
p | 240 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 242 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 243 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 262 | fs/nfs/proc.c | int *p, *p0; |
p | 270 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_SETATTR, ruid); |
p | 271 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 272 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 273 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 277 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 279 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 280 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 299 | fs/nfs/proc.c | int *p, *p0; |
p | 311 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_LOOKUP, ruid); |
p | 312 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 313 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 314 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
p | 318 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 320 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 321 | fs/nfs/proc.c | p = xdr_decode_fhandle(p, fhandle); |
p | 322 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 341 | fs/nfs/proc.c | int *p; |
p | 348 | fs/nfs/proc.c | p = nfs_rpc_header(*p0, NFSPROC_READLINK, ruid); |
p | 349 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 350 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, *p0, p, server->rsize)) < 0) |
p | 352 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(*p0))) |
p | 354 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 355 | fs/nfs/proc.c | if (!(p = xdr_decode_string2(p, string, len, maxlen))) { |
p | 376 | fs/nfs/proc.c | int *p, *p0; |
p | 385 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_READ, ruid); |
p | 386 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 387 | fs/nfs/proc.c | *p++ = htonl(offset); |
p | 388 | fs/nfs/proc.c | *p++ = htonl(count); |
p | 389 | fs/nfs/proc.c | *p++ = htonl(count); /* traditional, could be any value */ |
p | 390 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
p | 394 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 396 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 397 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 398 | fs/nfs/proc.c | if (!(p = xdr_decode_data(p, data, &len, count))) { |
p | 422 | fs/nfs/proc.c | int *p, *p0; |
p | 433 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_WRITE, ruid); |
p | 434 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 435 | fs/nfs/proc.c | *p++ = htonl(offset); /* traditional, could be any value */ |
p | 436 | fs/nfs/proc.c | *p++ = htonl(offset); |
p | 437 | fs/nfs/proc.c | *p++ = htonl(count); /* traditional, could be any value */ |
p | 438 | fs/nfs/proc.c | kdata = (void *) (p+1); /* start of data in RPC buffer */ |
p | 439 | fs/nfs/proc.c | p = xdr_encode_data(p, data, count); |
p | 440 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 444 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 446 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 448 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 468 | fs/nfs/proc.c | int *p, *p0; |
p | 476 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_CREATE, ruid); |
p | 477 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 478 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 479 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 480 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 484 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 486 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 487 | fs/nfs/proc.c | p = xdr_decode_fhandle(p, fhandle); |
p | 488 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 506 | fs/nfs/proc.c | int *p, *p0; |
p | 514 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_REMOVE, ruid); |
p | 515 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 516 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 517 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 521 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 523 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 543 | fs/nfs/proc.c | int *p, *p0; |
p | 551 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_RENAME, ruid); |
p | 552 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, old_dir); |
p | 553 | fs/nfs/proc.c | p = xdr_encode_string(p, old_name); |
p | 554 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, new_dir); |
p | 555 | fs/nfs/proc.c | p = xdr_encode_string(p, new_name); |
p | 556 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 560 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 562 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 581 | fs/nfs/proc.c | int *p, *p0; |
p | 589 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_LINK, ruid); |
p | 590 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 591 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 592 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 593 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 597 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 599 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 618 | fs/nfs/proc.c | int *p, *p0; |
p | 626 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_SYMLINK, ruid); |
p | 627 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 628 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 629 | fs/nfs/proc.c | p = xdr_encode_string(p, path); |
p | 630 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 631 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 635 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 637 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 657 | fs/nfs/proc.c | int *p, *p0; |
p | 665 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_MKDIR, ruid); |
p | 666 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 667 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 668 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 669 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 673 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 675 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 676 | fs/nfs/proc.c | p = xdr_decode_fhandle(p, fhandle); |
p | 677 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 695 | fs/nfs/proc.c | int *p, *p0; |
p | 703 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_RMDIR, ruid); |
p | 704 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 705 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 706 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 710 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 712 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 731 | fs/nfs/proc.c | int *p, *p0; |
p | 743 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_READDIR, ruid); |
p | 744 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 745 | fs/nfs/proc.c | *p++ = htonl(cookie); |
p | 746 | fs/nfs/proc.c | *p++ = htonl(size); |
p | 747 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
p | 751 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 753 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 754 | fs/nfs/proc.c | for (i = 0; i < count && *p++; i++) { |
p | 755 | fs/nfs/proc.c | if (!(p = xdr_decode_entry(p, entry++))) |
p | 758 | fs/nfs/proc.c | if (!p) { |
p | 763 | fs/nfs/proc.c | eof = (i == count && !*p++ && *p++) |
p | 764 | fs/nfs/proc.c | || (i < count && *p++); |
p | 787 | fs/nfs/proc.c | int *p, *p0; |
p | 795 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_STATFS, ruid); |
p | 796 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 797 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
p | 801 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 803 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 804 | fs/nfs/proc.c | p = xdr_decode_fsinfo(p, res); |
p | 824 | fs/nfs/proc.c | int *rpc_header(int *p, int procedure, int program, int version, |
p | 836 | fs/nfs/proc.c | *p++ = htonl(++xid); |
p | 837 | fs/nfs/proc.c | *p++ = htonl(RPC_CALL); |
p | 838 | fs/nfs/proc.c | *p++ = htonl(RPC_VERSION); |
p | 839 | fs/nfs/proc.c | *p++ = htonl(program); |
p | 840 | fs/nfs/proc.c | *p++ = htonl(version); |
p | 841 | fs/nfs/proc.c | *p++ = htonl(procedure); |
p | 842 | fs/nfs/proc.c | *p++ = htonl(RPC_AUTH_UNIX); |
p | 843 | fs/nfs/proc.c | p1 = p++; |
p | 844 | fs/nfs/proc.c | *p++ = htonl(CURRENT_TIME); /* traditional, could be anything */ |
p | 845 | fs/nfs/proc.c | p = xdr_encode_string(p, (char *) sys); |
p | 846 | fs/nfs/proc.c | *p++ = htonl(uid); |
p | 847 | fs/nfs/proc.c | *p++ = htonl(gid); |
p | 848 | fs/nfs/proc.c | p2 = p++; |
p | 850 | fs/nfs/proc.c | *p++ = htonl(groups[i]); |
p | 852 | fs/nfs/proc.c | *p1 = htonl((p - (p1 + 1)) << 2); |
p | 853 | fs/nfs/proc.c | *p++ = htonl(RPC_AUTH_NULL); |
p | 854 | fs/nfs/proc.c | *p++ = htonl(0); |
p | 855 | fs/nfs/proc.c | return p; |
p | 859 | fs/nfs/proc.c | static int *nfs_rpc_header(int *p, int procedure, int ruid) |
p | 861 | fs/nfs/proc.c | return rpc_header(p, procedure, NFS_PROGRAM, NFS_VERSION, |
p | 867 | fs/nfs/proc.c | int *rpc_verify(int *p) |
p | 871 | fs/nfs/proc.c | p++; |
p | 872 | fs/nfs/proc.c | if ((n = ntohl(*p++)) != RPC_REPLY) { |
p | 876 | fs/nfs/proc.c | if ((n = ntohl(*p++)) != RPC_MSG_ACCEPTED) { |
p | 880 | fs/nfs/proc.c | switch (n = ntohl(*p++)) { |
p | 887 | fs/nfs/proc.c | if ((n = ntohl(*p++)) > 400) { |
p | 891 | fs/nfs/proc.c | p += QUADLEN(n); |
p | 892 | fs/nfs/proc.c | if ((n = ntohl(*p++)) != RPC_SUCCESS) { |
p | 896 | fs/nfs/proc.c | return p; |
p | 900 | fs/nfs/proc.c | static int *nfs_rpc_verify(int *p) |
p | 902 | 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 | 322 | fs/proc/array.c | struct task_struct ** p; |
p | 324 | fs/proc/array.c | p = task; |
p | 325 | fs/proc/array.c | while (++p < task+NR_TASKS) { |
p | 326 | fs/proc/array.c | if (*p && (*p)->pid == pid) |
p | 327 | fs/proc/array.c | return p; |
p | 332 | fs/proc/array.c | static unsigned long get_phys_addr(struct task_struct * p, unsigned long ptr) |
p | 338 | fs/proc/array.c | if (!p || !p->mm || ptr >= TASK_SIZE) |
p | 340 | fs/proc/array.c | page_dir = pgd_offset(p->mm,ptr); |
p | 362 | fs/proc/array.c | static int get_array(struct task_struct ** p, unsigned long start, unsigned long end, char * buffer) |
p | 371 | fs/proc/array.c | addr = get_phys_addr(*p, start); |
p | 397 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
p | 399 | fs/proc/array.c | if (!p || !*p || !(*p)->mm) |
p | 401 | fs/proc/array.c | return get_array(p, (*p)->mm->env_start, (*p)->mm->env_end, buffer); |
p | 406 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
p | 408 | fs/proc/array.c | if (!p || !*p || !(*p)->mm) |
p | 410 | fs/proc/array.c | return get_array(p, (*p)->mm->arg_start, (*p)->mm->arg_end, buffer); |
p | 413 | fs/proc/array.c | static unsigned long get_wchan(struct task_struct *p) |
p | 415 | fs/proc/array.c | if (!p || p == current || p->state == TASK_RUNNING) |
p | 423 | fs/proc/array.c | stack_page = p->kernel_stack_page; |
p | 426 | fs/proc/array.c | ebp = p->tss.ebp; |
p | 451 | fs/proc/array.c | pc = thread_saved_pc(&p->tss); |
p | 453 | fs/proc/array.c | schedule_frame = ((unsigned long *)p->tss.ksp)[6]; |
p | 480 | fs/proc/array.c | static inline char * task_name(struct task_struct *p, char * buf) |
p | 486 | fs/proc/array.c | name = p->comm; |
p | 487 | fs/proc/array.c | i = sizeof(p->comm); |
p | 512 | fs/proc/array.c | static inline char * task_state(struct task_struct *p, char *buffer) |
p | 515 | fs/proc/array.c | unsigned int n = p->state; |
p | 536 | fs/proc/array.c | p->pid, p->p_pptr->pid, |
p | 537 | fs/proc/array.c | p->uid, p->euid, p->suid, p->fsuid, |
p | 538 | fs/proc/array.c | p->gid, p->egid, p->sgid, p->fsgid); |
p | 542 | fs/proc/array.c | static inline char * task_mem(struct task_struct *p, char *buffer) |
p | 544 | fs/proc/array.c | struct mm_struct * mm = p->mm; |
p | 585 | fs/proc/array.c | static inline char * task_sig(struct task_struct *p, char *buffer) |
p | 590 | fs/proc/array.c | p->signal, p->blocked); |
p | 591 | fs/proc/array.c | if (p->sig) { |
p | 592 | fs/proc/array.c | struct sigaction * action = p->sig->action; |
p | 622 | fs/proc/array.c | struct task_struct ** p = get_task(pid), *tsk; |
p | 624 | fs/proc/array.c | if (!p || (tsk = *p) == NULL) |
p | 635 | fs/proc/array.c | struct task_struct ** p = get_task(pid), *tsk; |
p | 642 | fs/proc/array.c | if (!p || (tsk = *p) == NULL) |
p | 803 | fs/proc/array.c | struct task_struct ** p = get_task(pid), *tsk; |
p | 806 | fs/proc/array.c | if (!p || (tsk = *p) == NULL) |
p | 862 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
p | 869 | fs/proc/array.c | if (!p || !*p) |
p | 872 | fs/proc/array.c | if (!(*p)->mm || (*p)->mm == &init_mm || count == 0) |
p | 880 | fs/proc/array.c | for (map = (*p)->mm->mmap, i = 0; map && (i < lineno); map = map->vm_next, i++) |
p | 940 | 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 | 239 | fs/proc/inode.c | if (ino >= NR_OPEN || !p->files->fd[ino]) |
p | 244 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 1) |
p | 246 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 2) |
p | 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 | 208 | fs/sysv/file.c | char * p; |
p | 251 | fs/sysv/file.c | p = (pos & sb->sv_block_size_1) + bh->b_data; |
p | 252 | fs/sysv/file.c | memcpy_fromfs(p, buf, c); |
p | 253 | fs/sysv/file.c | update_vm_cache(inode, pos, p, c); |
p | 641 | fs/sysv/inode.c | unsigned long *p; |
p | 645 | fs/sysv/inode.c | p = inode->u.sysv_i.i_data + nr; |
p | 647 | fs/sysv/inode.c | tmp = *p; |
p | 650 | fs/sysv/inode.c | if (tmp == *p) |
p | 661 | fs/sysv/inode.c | if (*p) { |
p | 666 | fs/sysv/inode.c | *p = tmp; |
p | 677 | fs/sysv/inode.c | sysv_zone_t *p; |
p | 691 | fs/sysv/inode.c | p = nr + (sysv_zone_t *) bh->b_data; |
p | 693 | fs/sysv/inode.c | block = tmp = *p; |
p | 698 | fs/sysv/inode.c | if (tmp == *p) { |
p | 715 | fs/sysv/inode.c | if (*p) { |
p | 720 | fs/sysv/inode.c | *p = (sb->sv_convert ? to_coh_ulong(block) : block); |
p | 775 | fs/sysv/inode.c | static inline unsigned long read3byte (char * p) |
p | 777 | fs/sysv/inode.c | return (unsigned long)(*(unsigned short *)p) |
p | 778 | fs/sysv/inode.c | | (unsigned long)(*(unsigned char *)(p+2)) << 16; |
p | 781 | fs/sysv/inode.c | static inline void write3byte (char * p, unsigned long val) |
p | 783 | fs/sysv/inode.c | *(unsigned short *)p = (unsigned short) val; |
p | 784 | fs/sysv/inode.c | *(unsigned char *)(p+2) = val >> 16; |
p | 787 | fs/sysv/inode.c | static inline unsigned long coh_read3byte (char * p) |
p | 789 | fs/sysv/inode.c | return (unsigned long)(*(unsigned char *)p) << 16 |
p | 790 | fs/sysv/inode.c | | (unsigned long)(*(unsigned short *)(p+1)); |
p | 793 | fs/sysv/inode.c | static inline void coh_write3byte (char * p, unsigned long val) |
p | 795 | fs/sysv/inode.c | *(unsigned char *)p = val >> 16; |
p | 796 | 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 | 200 | fs/vfat/namei.c | unsigned char *p = (unsigned char *) de; |
p | 203 | fs/vfat/namei.c | for (i = 0; i < 32; i++, p++) { |
p | 204 | fs/vfat/namei.c | printk("%02x ", *p); |
p | 398 | fs/vfat/namei.c | char *p; |
p | 415 | fs/vfat/namei.c | for (i = 0, p = msdos_name, ip = name; i < len; i++, p++, ip++) |
p | 418 | fs/vfat/namei.c | *p = *ip + 32; |
p | 420 | fs/vfat/namei.c | *p = *ip; |
p | 469 | fs/vfat/namei.c | for (baselen = i = 0, p = base, ip = name; i < sz && baselen < 8; i++) |
p | 473 | fs/vfat/namei.c | *p = *ip + 32; |
p | 475 | fs/vfat/namei.c | *p = *ip; |
p | 477 | fs/vfat/namei.c | if (strchr(replace_chars, *p)) *p='_'; |
p | 478 | fs/vfat/namei.c | p++; baselen++; |
p | 490 | fs/vfat/namei.c | for (p = ext, ip = ext_start; extlen < 3 && ip < end; ip++) { |
p | 493 | fs/vfat/namei.c | *p = *ip + 32; |
p | 495 | fs/vfat/namei.c | *p = *ip; |
p | 497 | fs/vfat/namei.c | if (strchr(replace_chars, *p)) *p='_'; |
p | 499 | 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 | 110 | include/asm-alpha/io.h | # define inb(p) _inb((p)) |
p | 113 | include/asm-alpha/io.h | # define inw(p) _inw((p)) |
p | 116 | include/asm-alpha/io.h | # define inl(p) _inl((p)) |
p | 119 | include/asm-alpha/io.h | # define outb(b,p) _outb((b),(p)) |
p | 122 | include/asm-alpha/io.h | # define outw(w,p) _outw((w),(p)) |
p | 125 | 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 | 78 | include/asm-alpha/mmu_context.h | p->tss.asn = asn & ~ASN_VERSION_MASK; /* just asn */ |
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 | 47 | include/asm-sparc/system.h | #define switch_to(p) do { \ |
p | 49 | include/asm-sparc/system.h | switch_to_context(p); \ |
p | 51 | include/asm-sparc/system.h | active_ds = p->tss.current_ds; \ |
p | 52 | 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 | 56 | include/linux/binfmts.h | extern unsigned long setup_arg_pages(unsigned long p, struct linux_binprm * bprm); |
p | 58 | include/linux/binfmts.h | unsigned long p, int from_kmem); |
p | 146 | include/linux/md.h | extern int register_md_personality (int p_num, struct md_personality *p); |
p | 105 | include/linux/ncp_fs.h | #define ncp_kmalloc(s,p) kmalloc(s,p) |
p | 95 | include/linux/nfs_fs.h | extern int *rpc_header(int *p, int procedure, int program, int version, |
p | 97 | include/linux/nfs_fs.h | extern int *rpc_verify(int *p); |
p | 70 | include/linux/pagemap.h | struct page **p = &page_hash(page->inode,page->offset); |
p | 77 | include/linux/pagemap.h | if (*p == page) |
p | 78 | include/linux/pagemap.h | *p = page->next_hash; |
p | 84 | include/linux/pagemap.h | struct page **p = &page_hash(inode,page->offset); |
p | 90 | include/linux/pagemap.h | if ((page->next_hash = *p) != NULL) |
p | 92 | include/linux/pagemap.h | *p = page; |
p | 113 | include/linux/pagemap.h | struct page **p = &inode->i_pages; |
p | 118 | include/linux/pagemap.h | if ((page->next = *p) != NULL) |
p | 120 | include/linux/pagemap.h | *p = page; |
p | 52 | include/linux/ppp_defs.h | #define PPP_ADDRESS(p) (((__u8 *)(p))[0]) |
p | 53 | include/linux/ppp_defs.h | #define PPP_CONTROL(p) (((__u8 *)(p))[1]) |
p | 54 | include/linux/ppp_defs.h | #define PPP_PROTOCOL(p) ((((__u8 *)(p))[2] << 8) + ((__u8 *)(p))[3]) |
p | 151 | include/linux/ppp_defs.h | struct pppstat p; /* basic PPP statistics */ |
p | 224 | include/linux/proc_fs.h | struct proc_dir_entry **p = &driver->subdir, *dp; |
p | 227 | include/linux/proc_fs.h | while ((dp = *p) != NULL) { |
p | 230 | include/linux/proc_fs.h | p = &dp->next; |
p | 339 | include/linux/sched.h | extern void sleep_on(struct wait_queue ** p); |
p | 340 | include/linux/sched.h | extern void interruptible_sleep_on(struct wait_queue ** p); |
p | 341 | include/linux/sched.h | extern void wake_up(struct wait_queue ** p); |
p | 342 | include/linux/sched.h | extern void wake_up_interruptible(struct wait_queue ** p); |
p | 346 | include/linux/sched.h | extern int send_sig(unsigned long sig,struct task_struct * p,int priv); |
p | 400 | include/linux/sched.h | extern inline void add_wait_queue(struct wait_queue ** p, struct wait_queue * wait) |
p | 415 | include/linux/sched.h | if (!*p) { |
p | 417 | include/linux/sched.h | *p = wait; |
p | 419 | include/linux/sched.h | wait->next = (*p)->next; |
p | 420 | include/linux/sched.h | (*p)->next = wait; |
p | 425 | include/linux/sched.h | extern inline void remove_wait_queue(struct wait_queue ** p, struct wait_queue * wait) |
p | 435 | include/linux/sched.h | if ((*p == wait) && |
p | 439 | include/linux/sched.h | ((*p = wait->next) == wait)) { |
p | 440 | include/linux/sched.h | *p = NULL; |
p | 446 | include/linux/sched.h | if (tmp == *p) |
p | 459 | include/linux/sched.h | printk("list = %08lx, queue = %08lx\n",(unsigned long) p, (unsigned long) wait); |
p | 466 | include/linux/sched.h | extern inline void select_wait(struct wait_queue ** wait_address, select_table * p) |
p | 470 | include/linux/sched.h | if (!p || !wait_address) |
p | 472 | include/linux/sched.h | if (p->nr >= __MAX_SELECT_TABLE_ENTRIES) |
p | 474 | include/linux/sched.h | entry = p->entry + p->nr; |
p | 479 | include/linux/sched.h | p->nr++; |
p | 500 | include/linux/sched.h | #define REMOVE_LINKS(p) do { unsigned long flags; \ |
p | 502 | include/linux/sched.h | (p)->next_task->prev_task = (p)->prev_task; \ |
p | 503 | include/linux/sched.h | (p)->prev_task->next_task = (p)->next_task; \ |
p | 505 | include/linux/sched.h | if ((p)->p_osptr) \ |
p | 506 | include/linux/sched.h | (p)->p_osptr->p_ysptr = (p)->p_ysptr; \ |
p | 507 | include/linux/sched.h | if ((p)->p_ysptr) \ |
p | 508 | include/linux/sched.h | (p)->p_ysptr->p_osptr = (p)->p_osptr; \ |
p | 510 | include/linux/sched.h | (p)->p_pptr->p_cptr = (p)->p_osptr; \ |
p | 513 | include/linux/sched.h | #define SET_LINKS(p) do { unsigned long flags; \ |
p | 515 | include/linux/sched.h | (p)->next_task = &init_task; \ |
p | 516 | include/linux/sched.h | (p)->prev_task = init_task.prev_task; \ |
p | 517 | include/linux/sched.h | init_task.prev_task->next_task = (p); \ |
p | 518 | include/linux/sched.h | init_task.prev_task = (p); \ |
p | 520 | include/linux/sched.h | (p)->p_ysptr = NULL; \ |
p | 521 | include/linux/sched.h | if (((p)->p_osptr = (p)->p_pptr->p_cptr) != NULL) \ |
p | 522 | include/linux/sched.h | (p)->p_osptr->p_ysptr = p; \ |
p | 523 | include/linux/sched.h | (p)->p_pptr->p_cptr = p; \ |
p | 526 | include/linux/sched.h | #define for_each_task(p) \ |
p | 527 | 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 | 140 | include/linux/tqueue.h | register struct tq_struct *p; |
p | 142 | include/linux/tqueue.h | p = xchg(list,&tq_last); |
p | 144 | include/linux/tqueue.h | while (p != &tq_last) { |
p | 148 | include/linux/tqueue.h | arg = p -> data; |
p | 149 | include/linux/tqueue.h | f = p -> routine; |
p | 150 | include/linux/tqueue.h | save_p = p; |
p | 151 | include/linux/tqueue.h | p = p -> next; |
p | 106 | include/linux/ultrasound.h | #define GUS_VOICEFREQ(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICEFREQ, \ |
p | 107 | include/linux/ultrasound.h | (p) & 0xffff, ((p) >> 16) & 0xffff) |
p | 116 | include/linux/ultrasound.h | #define GUS_VOICE_POS(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICE_POS, \ |
p | 117 | 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 | 26 | kernel/exit.c | static int generate(unsigned long sig, struct task_struct * p) |
p | 29 | kernel/exit.c | struct sigaction * sa = sig + p->sig->action - 1; |
p | 32 | kernel/exit.c | if (!(p->flags & PF_PTRACED)) { |
p | 41 | kernel/exit.c | p->signal |= mask; |
p | 42 | kernel/exit.c | if (p->state == TASK_INTERRUPTIBLE && (p->signal & ~p->blocked)) |
p | 43 | kernel/exit.c | wake_up_process(p); |
p | 47 | kernel/exit.c | int send_sig(unsigned long sig,struct task_struct * p,int priv) |
p | 49 | kernel/exit.c | if (!p || sig > 32) |
p | 51 | kernel/exit.c | if (!priv && ((sig != SIGCONT) || (current->session != p->session)) && |
p | 52 | kernel/exit.c | (current->euid != p->euid) && (current->euid != p->uid) && !suser()) |
p | 59 | kernel/exit.c | if (!p->sig) |
p | 62 | kernel/exit.c | if (p->state == TASK_STOPPED) |
p | 63 | kernel/exit.c | wake_up_process(p); |
p | 64 | kernel/exit.c | p->exit_code = 0; |
p | 65 | kernel/exit.c | p->signal &= ~( (1<<(SIGSTOP-1)) | (1<<(SIGTSTP-1)) | |
p | 69 | kernel/exit.c | p->signal &= ~(1<<(SIGCONT-1)); |
p | 71 | kernel/exit.c | generate(sig,p); |
p | 83 | kernel/exit.c | void release(struct task_struct * p) |
p | 87 | kernel/exit.c | if (!p) |
p | 89 | kernel/exit.c | if (p == current) { |
p | 94 | kernel/exit.c | if (task[i] == p) { |
p | 97 | kernel/exit.c | REMOVE_LINKS(p); |
p | 98 | kernel/exit.c | release_thread(p); |
p | 99 | kernel/exit.c | if (STACK_MAGIC != *(unsigned long *)p->kernel_stack_page) |
p | 100 | kernel/exit.c | printk(KERN_ALERT "release: %s kernel stack corruption. Aiee\n", p->comm); |
p | 101 | kernel/exit.c | free_kernel_stack(p->kernel_stack_page); |
p | 102 | kernel/exit.c | current->cmin_flt += p->min_flt + p->cmin_flt; |
p | 103 | kernel/exit.c | current->cmaj_flt += p->maj_flt + p->cmaj_flt; |
p | 104 | kernel/exit.c | current->cnswap += p->nswap + p->cnswap; |
p | 105 | kernel/exit.c | kfree(p); |
p | 116 | kernel/exit.c | int bad_task_ptr(struct task_struct *p) |
p | 120 | kernel/exit.c | if (!p) |
p | 123 | kernel/exit.c | if (task[i] == p) |
p | 211 | kernel/exit.c | struct task_struct *p; |
p | 215 | kernel/exit.c | for_each_task(p) { |
p | 216 | kernel/exit.c | if (p->session <= 0) |
p | 218 | kernel/exit.c | if (p->pgrp == pgrp) |
p | 219 | kernel/exit.c | return p->session; |
p | 220 | kernel/exit.c | if (p->pid == pgrp) |
p | 221 | kernel/exit.c | fallback = p->session; |
p | 232 | kernel/exit.c | struct task_struct *p; |
p | 238 | kernel/exit.c | for_each_task(p) { |
p | 239 | kernel/exit.c | if (p->pgrp == pgrp) { |
p | 240 | kernel/exit.c | if ((err = send_sig(sig,p,priv)) != 0) |
p | 256 | kernel/exit.c | struct task_struct *p; |
p | 262 | kernel/exit.c | for_each_task(p) { |
p | 263 | kernel/exit.c | if (p->session == sess && p->leader) { |
p | 264 | kernel/exit.c | if ((err = send_sig(sig,p,priv)) != 0) |
p | 275 | kernel/exit.c | struct task_struct *p; |
p | 279 | kernel/exit.c | for_each_task(p) { |
p | 280 | kernel/exit.c | if (p && p->pid == pid) |
p | 281 | kernel/exit.c | return send_sig(sig,p,priv); |
p | 297 | kernel/exit.c | struct task_struct * p; |
p | 298 | kernel/exit.c | for_each_task(p) { |
p | 299 | kernel/exit.c | if (p->pid > 1 && p != current) { |
p | 301 | kernel/exit.c | if ((err = send_sig(sig,p,0)) != -EPERM) |
p | 323 | kernel/exit.c | struct task_struct *p; |
p | 325 | kernel/exit.c | for_each_task(p) { |
p | 326 | kernel/exit.c | if ((p->pgrp != pgrp) || |
p | 327 | kernel/exit.c | (p->state == TASK_ZOMBIE) || |
p | 328 | kernel/exit.c | (p->p_pptr->pid == 1)) |
p | 330 | kernel/exit.c | if ((p->p_pptr->pgrp != pgrp) && |
p | 331 | kernel/exit.c | (p->p_pptr->session == p->session)) |
p | 339 | kernel/exit.c | struct task_struct * p; |
p | 341 | kernel/exit.c | for_each_task(p) { |
p | 342 | kernel/exit.c | if (p->pgrp != pgrp) |
p | 344 | kernel/exit.c | if (p->state == TASK_STOPPED) |
p | 352 | kernel/exit.c | struct task_struct * p; |
p | 354 | kernel/exit.c | for_each_task(p) { |
p | 355 | kernel/exit.c | if (p->p_opptr == father) |
p | 357 | kernel/exit.c | p->p_opptr = task[smp_num_cpus]; |
p | 359 | kernel/exit.c | p->p_opptr = task[0]; |
p | 445 | kernel/exit.c | struct task_struct * p; |
p | 475 | kernel/exit.c | while ((p = current->p_cptr) != NULL) { |
p | 476 | kernel/exit.c | current->p_cptr = p->p_osptr; |
p | 477 | kernel/exit.c | p->p_ysptr = NULL; |
p | 478 | kernel/exit.c | p->flags &= ~(PF_PTRACED|PF_TRACESYS); |
p | 480 | kernel/exit.c | p->p_pptr = task[smp_num_cpus]; |
p | 482 | kernel/exit.c | p->p_pptr = task[0]; |
p | 483 | kernel/exit.c | p->p_osptr = p->p_pptr->p_cptr; |
p | 484 | kernel/exit.c | p->p_osptr->p_ysptr = p; |
p | 485 | kernel/exit.c | p->p_pptr->p_cptr = p; |
p | 486 | kernel/exit.c | if (p->state == TASK_ZOMBIE) |
p | 487 | kernel/exit.c | notify_parent(p); |
p | 494 | kernel/exit.c | if ((p->pgrp != current->pgrp) && |
p | 495 | kernel/exit.c | (p->session == current->session) && |
p | 496 | kernel/exit.c | is_orphaned_pgrp(p->pgrp) && |
p | 497 | kernel/exit.c | has_stopped_jobs(p->pgrp)) { |
p | 498 | kernel/exit.c | kill_pg(p->pgrp,SIGHUP,1); |
p | 499 | kernel/exit.c | kill_pg(p->pgrp,SIGCONT,1); |
p | 559 | kernel/exit.c | struct task_struct *p; |
p | 574 | kernel/exit.c | for (p = current->p_cptr ; p ; p = p->p_osptr) { |
p | 576 | kernel/exit.c | if (p->pid != pid) |
p | 579 | kernel/exit.c | if (p->pgrp != current->pgrp) |
p | 582 | kernel/exit.c | if (p->pgrp != -pid) |
p | 586 | kernel/exit.c | if ((p->exit_signal != SIGCHLD) ^ ((options & __WCLONE) != 0)) |
p | 589 | kernel/exit.c | switch (p->state) { |
p | 591 | kernel/exit.c | if (!p->exit_code) |
p | 593 | kernel/exit.c | if (!(options & WUNTRACED) && !(p->flags & PF_PTRACED)) |
p | 596 | kernel/exit.c | getrusage(p, RUSAGE_BOTH, ru); |
p | 598 | kernel/exit.c | put_user((p->exit_code << 8) | 0x7f, |
p | 600 | kernel/exit.c | p->exit_code = 0; |
p | 601 | kernel/exit.c | retval = p->pid; |
p | 604 | kernel/exit.c | current->cutime += p->utime + p->cutime; |
p | 605 | kernel/exit.c | current->cstime += p->stime + p->cstime; |
p | 607 | kernel/exit.c | getrusage(p, RUSAGE_BOTH, ru); |
p | 609 | kernel/exit.c | put_user(p->exit_code, stat_addr); |
p | 610 | kernel/exit.c | retval = p->pid; |
p | 611 | kernel/exit.c | if (p->p_opptr != p->p_pptr) { |
p | 612 | kernel/exit.c | REMOVE_LINKS(p); |
p | 613 | kernel/exit.c | p->p_pptr = p->p_opptr; |
p | 614 | kernel/exit.c | SET_LINKS(p); |
p | 615 | kernel/exit.c | notify_parent(p); |
p | 617 | 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|PF_SUPERPREV); |
p | 230 | kernel/fork.c | p->flags |= PF_FORKNOEXEC; |
p | 231 | kernel/fork.c | p->pid = get_pid(clone_flags); |
p | 232 | kernel/fork.c | p->next_run = NULL; |
p | 233 | kernel/fork.c | p->prev_run = NULL; |
p | 234 | kernel/fork.c | p->p_pptr = p->p_opptr = current; |
p | 235 | kernel/fork.c | p->p_cptr = NULL; |
p | 236 | kernel/fork.c | p->signal = 0; |
p | 237 | kernel/fork.c | p->it_real_value = p->it_virt_value = p->it_prof_value = 0; |
p | 238 | kernel/fork.c | p->it_real_incr = p->it_virt_incr = p->it_prof_incr = 0; |
p | 239 | kernel/fork.c | init_timer(&p->real_timer); |
p | 240 | kernel/fork.c | p->real_timer.data = (unsigned long) p; |
p | 241 | kernel/fork.c | p->leader = 0; /* process leadership doesn't inherit */ |
p | 242 | kernel/fork.c | p->tty_old_pgrp = 0; |
p | 243 | kernel/fork.c | p->utime = p->stime = 0; |
p | 244 | kernel/fork.c | p->cutime = p->cstime = 0; |
p | 246 | kernel/fork.c | p->processor = NO_PROC_ID; |
p | 247 | kernel/fork.c | p->lock_depth = 1; |
p | 249 | kernel/fork.c | p->start_time = jiffies; |
p | 250 | kernel/fork.c | task[nr] = p; |
p | 251 | kernel/fork.c | SET_LINKS(p); |
p | 256 | kernel/fork.c | if (copy_files(clone_flags, p)) |
p | 258 | kernel/fork.c | if (copy_fs(clone_flags, p)) |
p | 260 | kernel/fork.c | if (copy_sighand(clone_flags, p)) |
p | 262 | kernel/fork.c | if (copy_mm(clone_flags, p)) |
p | 264 | kernel/fork.c | copy_thread(nr, clone_flags, usp, p, regs); |
p | 265 | kernel/fork.c | p->semundo = NULL; |
p | 268 | kernel/fork.c | p->swappable = 1; |
p | 269 | kernel/fork.c | p->exit_signal = clone_flags & CSIGNAL; |
p | 270 | kernel/fork.c | p->counter = current->counter >> 1; |
p | 271 | kernel/fork.c | wake_up_process(p); /* do this last, just in case */ |
p | 272 | kernel/fork.c | return p->pid; |
p | 275 | kernel/fork.c | exit_sighand(p); |
p | 277 | kernel/fork.c | exit_fs(p); |
p | 279 | kernel/fork.c | exit_files(p); |
p | 281 | kernel/fork.c | if (p->exec_domain && p->exec_domain->use_count) |
p | 282 | kernel/fork.c | (*p->exec_domain->use_count)--; |
p | 283 | kernel/fork.c | if (p->binfmt && p->binfmt->use_count) |
p | 284 | kernel/fork.c | (*p->binfmt->use_count)--; |
p | 286 | kernel/fork.c | REMOVE_LINKS(p); |
p | 291 | 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 | 122 | kernel/sched.c | if ((0!=p->pid) && smp_threads_ready){ |
p | 133 | kernel/sched.c | static inline void del_from_runqueue(struct task_struct * p) |
p | 135 | kernel/sched.c | struct task_struct *next = p->next_run; |
p | 136 | kernel/sched.c | struct task_struct *prev = p->prev_run; |
p | 144 | kernel/sched.c | if (p == &init_task) { |
p | 155 | kernel/sched.c | p->next_run = NULL; |
p | 156 | kernel/sched.c | p->prev_run = NULL; |
p | 159 | kernel/sched.c | static inline void move_last_runqueue(struct task_struct * p) |
p | 161 | kernel/sched.c | struct task_struct *next = p->next_run; |
p | 162 | kernel/sched.c | struct task_struct *prev = p->prev_run; |
p | 166 | kernel/sched.c | (p->prev_run = init_task.prev_run)->next_run = p; |
p | 167 | kernel/sched.c | p->next_run = &init_task; |
p | 168 | kernel/sched.c | init_task.prev_run = p; |
p | 179 | kernel/sched.c | inline void wake_up_process(struct task_struct * p) |
p | 185 | kernel/sched.c | p->state = TASK_RUNNING; |
p | 186 | kernel/sched.c | if (!p->next_run) |
p | 187 | kernel/sched.c | add_to_runqueue(p); |
p | 193 | kernel/sched.c | struct task_struct * p = (struct task_struct *) __data; |
p | 195 | kernel/sched.c | p->timeout = 0; |
p | 196 | kernel/sched.c | wake_up_process(p); |
p | 212 | kernel/sched.c | static inline int goodness(struct task_struct * p, struct task_struct * prev, int this_cpu) |
p | 218 | kernel/sched.c | if (p->processor != NO_PROC_ID) |
p | 227 | kernel/sched.c | if (p->policy != SCHED_OTHER) |
p | 228 | kernel/sched.c | return 1000 + p->rt_priority; |
p | 237 | kernel/sched.c | weight = p->counter; |
p | 243 | kernel/sched.c | if (p->last_processor == this_cpu) |
p | 248 | kernel/sched.c | if (p == prev) |
p | 268 | kernel/sched.c | struct task_struct * p; |
p | 310 | kernel/sched.c | p = init_task.next_run; |
p | 328 | kernel/sched.c | while (p != &init_task) { |
p | 329 | kernel/sched.c | int weight = goodness(p, prev, this_cpu); |
p | 331 | kernel/sched.c | c = weight, next = p; |
p | 332 | kernel/sched.c | p = p->next_run; |
p | 337 | kernel/sched.c | for_each_task(p) |
p | 338 | kernel/sched.c | p->counter = (p->counter >> 1) + p->priority; |
p | 406 | kernel/sched.c | struct task_struct * p; |
p | 411 | kernel/sched.c | if ((p = tmp->task) != NULL) { |
p | 412 | kernel/sched.c | if ((p->state == TASK_UNINTERRUPTIBLE) || |
p | 413 | kernel/sched.c | (p->state == TASK_INTERRUPTIBLE)) |
p | 414 | kernel/sched.c | wake_up_process(p); |
p | 431 | kernel/sched.c | struct task_struct * p; |
p | 436 | kernel/sched.c | if ((p = tmp->task) != NULL) { |
p | 437 | kernel/sched.c | if (p->state == TASK_INTERRUPTIBLE) |
p | 438 | kernel/sched.c | wake_up_process(p); |
p | 465 | kernel/sched.c | static inline void __sleep_on(struct wait_queue **p, int state) |
p | 470 | kernel/sched.c | if (!p) |
p | 475 | kernel/sched.c | add_wait_queue(p, &wait); |
p | 479 | kernel/sched.c | remove_wait_queue(p, &wait); |
p | 483 | kernel/sched.c | void interruptible_sleep_on(struct wait_queue **p) |
p | 485 | kernel/sched.c | __sleep_on(p,TASK_INTERRUPTIBLE); |
p | 488 | kernel/sched.c | void sleep_on(struct wait_queue **p) |
p | 490 | kernel/sched.c | __sleep_on(p,TASK_UNINTERRUPTIBLE); |
p | 503 | kernel/sched.c | struct timer_list *p; |
p | 512 | kernel/sched.c | p = &timer_head; |
p | 516 | kernel/sched.c | p = p->next; |
p | 517 | kernel/sched.c | } while (timer->expires > p->expires); |
p | 518 | kernel/sched.c | timer->next = p; |
p | 519 | kernel/sched.c | timer->prev = p->prev; |
p | 520 | kernel/sched.c | p->prev = timer; |
p | 529 | kernel/sched.c | struct timer_list * p; |
p | 531 | kernel/sched.c | p = &timer_head; |
p | 534 | kernel/sched.c | while ((p = p->next) != &timer_head) { |
p | 535 | kernel/sched.c | if (p == timer) { |
p | 579 | kernel/sched.c | struct task_struct **p; |
p | 582 | kernel/sched.c | for(p = &LAST_TASK; p > &FIRST_TASK; --p) |
p | 583 | kernel/sched.c | if (*p && ((*p)->state == TASK_RUNNING || |
p | 584 | kernel/sched.c | (*p)->state == TASK_UNINTERRUPTIBLE || |
p | 585 | kernel/sched.c | (*p)->state == TASK_SWAPPING)) |
p | 1075 | kernel/sched.c | struct task_struct *p, *q; |
p | 1078 | kernel/sched.c | p = current; |
p | 1080 | kernel/sched.c | p = 0; |
p | 1083 | kernel/sched.c | p = q; |
p | 1088 | kernel/sched.c | return p; |
p | 1096 | kernel/sched.c | struct task_struct *p; |
p | 1106 | kernel/sched.c | p = find_process_by_pid(pid); |
p | 1107 | kernel/sched.c | if (!p) |
p | 1111 | kernel/sched.c | policy = p->policy; |
p | 1127 | kernel/sched.c | if ((current->euid != p->euid) && (current->euid != p->uid) && |
p | 1131 | kernel/sched.c | p->policy = policy; |
p | 1132 | kernel/sched.c | p->rt_priority = lp.sched_priority; |
p | 1133 | kernel/sched.c | if (p->next_run) |
p | 1134 | kernel/sched.c | move_last_runqueue(p); |
p | 1153 | kernel/sched.c | struct task_struct *p; |
p | 1158 | kernel/sched.c | p = find_process_by_pid(pid); |
p | 1159 | kernel/sched.c | if (!p) |
p | 1162 | kernel/sched.c | return p->policy; |
p | 1168 | kernel/sched.c | struct task_struct *p; |
p | 1178 | kernel/sched.c | p = find_process_by_pid(pid); |
p | 1179 | kernel/sched.c | if (!p) |
p | 1182 | kernel/sched.c | lp.sched_priority = p->rt_priority; |
p | 1308 | kernel/sched.c | static void show_task(int nr,struct task_struct * p) |
p | 1313 | kernel/sched.c | printk("%-8s %3d ", p->comm, (p == current) ? -nr : nr); |
p | 1314 | kernel/sched.c | if (((unsigned) p->state) < sizeof(stat_nam)/sizeof(char *)) |
p | 1315 | kernel/sched.c | printk(stat_nam[p->state]); |
p | 1319 | kernel/sched.c | if (p == current) |
p | 1322 | kernel/sched.c | printk(" %08lX ", thread_saved_pc(&p->tss)); |
p | 1324 | kernel/sched.c | if (p == current) |
p | 1327 | kernel/sched.c | printk(" %016lx ", thread_saved_pc(&p->tss)); |
p | 1330 | kernel/sched.c | if (((unsigned long *)p->kernel_stack_page)[free]) |
p | 1333 | kernel/sched.c | printk("%5lu %5d %6d ", free*sizeof(long), p->pid, p->p_pptr->pid); |
p | 1334 | kernel/sched.c | if (p->p_cptr) |
p | 1335 | kernel/sched.c | printk("%5d ", p->p_cptr->pid); |
p | 1338 | kernel/sched.c | if (p->p_ysptr) |
p | 1339 | kernel/sched.c | printk("%7d", p->p_ysptr->pid); |
p | 1342 | kernel/sched.c | if (p->p_osptr) |
p | 1343 | 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 | 42 | kernel/sys.c | static int proc_sel(struct task_struct *p, int which, int who) |
p | 44 | kernel/sys.c | if(p->pid) |
p | 48 | kernel/sys.c | if (!who && p == current) |
p | 50 | kernel/sys.c | return(p->pid == who); |
p | 54 | kernel/sys.c | return(p->pgrp == who); |
p | 58 | kernel/sys.c | return(p->uid == who); |
p | 66 | kernel/sys.c | struct task_struct *p; |
p | 87 | kernel/sys.c | for_each_task(p) { |
p | 88 | kernel/sys.c | if (!proc_sel(p, which, who)) |
p | 90 | kernel/sys.c | if (p->uid != current->euid && |
p | 91 | kernel/sys.c | p->uid != current->uid && !suser()) { |
p | 97 | kernel/sys.c | if (priority > p->priority && !suser()) |
p | 100 | kernel/sys.c | p->priority = priority; |
p | 112 | kernel/sys.c | struct task_struct *p; |
p | 118 | kernel/sys.c | for_each_task (p) { |
p | 119 | kernel/sys.c | if (!proc_sel(p, which, who)) |
p | 121 | kernel/sys.c | if (p->priority > max_prio) |
p | 122 | kernel/sys.c | max_prio = p->priority; |
p | 625 | kernel/sys.c | struct task_struct * p; |
p | 633 | kernel/sys.c | for_each_task(p) { |
p | 634 | kernel/sys.c | if (p->pid == pid) |
p | 640 | kernel/sys.c | if (p->p_pptr == current || p->p_opptr == current) { |
p | 641 | kernel/sys.c | if (p->session != current->session) |
p | 643 | kernel/sys.c | if (p->did_exec) |
p | 645 | kernel/sys.c | } else if (p != current) |
p | 647 | kernel/sys.c | if (p->leader) |
p | 660 | kernel/sys.c | p->pgrp = pgid; |
p | 666 | kernel/sys.c | struct task_struct * p; |
p | 670 | kernel/sys.c | for_each_task(p) { |
p | 671 | kernel/sys.c | if (p->pid == pid) |
p | 672 | kernel/sys.c | return p->pgrp; |
p | 684 | kernel/sys.c | struct task_struct * p; |
p | 688 | kernel/sys.c | for_each_task(p) { |
p | 689 | kernel/sys.c | if (p->pid == pid) |
p | 690 | kernel/sys.c | return p->session; |
p | 925 | kernel/sys.c | int getrusage(struct task_struct *p, int who, struct rusage *ru) |
p | 936 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(p->utime); |
p | 937 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(p->utime); |
p | 938 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(p->stime); |
p | 939 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(p->stime); |
p | 940 | kernel/sys.c | r.ru_minflt = p->min_flt; |
p | 941 | kernel/sys.c | r.ru_majflt = p->maj_flt; |
p | 942 | kernel/sys.c | r.ru_nswap = p->nswap; |
p | 945 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(p->cutime); |
p | 946 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(p->cutime); |
p | 947 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(p->cstime); |
p | 948 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(p->cstime); |
p | 949 | kernel/sys.c | r.ru_minflt = p->cmin_flt; |
p | 950 | kernel/sys.c | r.ru_majflt = p->cmaj_flt; |
p | 951 | kernel/sys.c | r.ru_nswap = p->cnswap; |
p | 954 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(p->utime + p->cutime); |
p | 955 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(p->utime + p->cutime); |
p | 956 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(p->stime + p->cstime); |
p | 957 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(p->stime + p->cstime); |
p | 958 | kernel/sys.c | r.ru_minflt = p->min_flt + p->cmin_flt; |
p | 959 | kernel/sys.c | r.ru_majflt = p->maj_flt + p->cmaj_flt; |
p | 960 | kernel/sys.c | r.ru_nswap = p->nswap + p->cnswap; |
p | 497 | kernel/sysctl.c | char *p, c; |
p | 507 | kernel/sysctl.c | p = buffer; |
p | 509 | kernel/sysctl.c | (c = get_user(p++)) != 0 && c != '\n') |
p | 541 | kernel/sysctl.c | char buf[TMPBUFLEN], *p; |
p | 565 | kernel/sysctl.c | p = buf; |
p | 566 | kernel/sysctl.c | if (*p == '-' && left > 1) { |
p | 568 | kernel/sysctl.c | left--, p++; |
p | 570 | kernel/sysctl.c | if (*p < '0' || *p > '9') |
p | 572 | kernel/sysctl.c | val = simple_strtoul(p, &p, 0); |
p | 573 | kernel/sysctl.c | len = p-buf; |
p | 574 | kernel/sysctl.c | if ((len < left) && *p && !isspace(*p)) |
p | 582 | kernel/sysctl.c | p = buf; |
p | 584 | kernel/sysctl.c | *p++ = '\t'; |
p | 585 | kernel/sysctl.c | sprintf(p, "%d", *i); |
p | 600 | kernel/sysctl.c | p = (char *) buffer; |
p | 601 | kernel/sysctl.c | while (left && isspace(get_user(p++))) |
p | 616 | kernel/sysctl.c | char buf[TMPBUFLEN], *p; |
p | 642 | kernel/sysctl.c | p = buf; |
p | 643 | kernel/sysctl.c | if (*p == '-' && left > 1) { |
p | 645 | kernel/sysctl.c | left--, p++; |
p | 647 | kernel/sysctl.c | if (*p < '0' || *p > '9') |
p | 649 | kernel/sysctl.c | val = simple_strtoul(p, &p, 0); |
p | 650 | kernel/sysctl.c | len = p-buf; |
p | 651 | kernel/sysctl.c | if ((len < left) && *p && !isspace(*p)) |
p | 664 | kernel/sysctl.c | p = buf; |
p | 666 | kernel/sysctl.c | *p++ = '\t'; |
p | 667 | kernel/sysctl.c | sprintf(p, "%d", *i); |
p | 682 | kernel/sysctl.c | p = (char *) buffer; |
p | 683 | 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 | 51 | mm/filemap.c | struct page ** p; |
p | 54 | mm/filemap.c | p = &inode->i_pages; |
p | 55 | mm/filemap.c | while ((page = *p) != NULL) { |
p | 57 | mm/filemap.c | p = &page->next; |
p | 61 | mm/filemap.c | if ((*p = page->next) != NULL) |
p | 62 | mm/filemap.c | (*p)->prev = page->prev; |
p | 79 | mm/filemap.c | struct page ** p; |
p | 83 | mm/filemap.c | p = &inode->i_pages; |
p | 84 | mm/filemap.c | while ((page = *p) != NULL) { |
p | 94 | mm/filemap.c | if ((*p = page->next) != NULL) |
p | 95 | mm/filemap.c | (*p)->prev = page->prev; |
p | 104 | mm/filemap.c | p = &page->next; |
p | 182 | mm/filemap.c | struct page * p = mem_map + MAP_NR(page); |
p | 183 | mm/filemap.c | int count = p->count; |
p | 187 | mm/filemap.c | if (!p->inode) |
p | 189 | mm/filemap.c | remove_page_from_hash_queue(p); |
p | 190 | mm/filemap.c | remove_page_from_inode_queue(p); |
p | 57 | mm/kmalloc.c | #define BH(p) ((struct block_header *)(p)) |
p | 71 | mm/kmalloc.c | #define PAGE_DESC(p) ((struct page_descriptor *)(((unsigned long)(p)) & PAGE_MASK)) |
p | 181 | mm/kmalloc.c | struct block_header *p; |
p | 215 | mm/kmalloc.c | p = page->firstfree; |
p | 216 | mm/kmalloc.c | if (p->bh_flags != MF_FREE) { |
p | 218 | mm/kmalloc.c | printk("Problem: block on freelist at %08lx isn't free.\n", (long) p); |
p | 245 | mm/kmalloc.c | for (i = NBLOCKS(order), p = BH(page + 1); i > 1; i--, p = p->bh_next) { |
p | 246 | mm/kmalloc.c | p->bh_flags = MF_FREE; |
p | 247 | mm/kmalloc.c | p->bh_next = BH(((long) p) + sz); |
p | 250 | mm/kmalloc.c | p->bh_flags = MF_FREE; |
p | 251 | mm/kmalloc.c | p->bh_next = NULL; |
p | 255 | mm/kmalloc.c | p = BH(page+1); |
p | 266 | mm/kmalloc.c | page->firstfree = p->bh_next; |
p | 273 | mm/kmalloc.c | p->bh_flags = type; /* As of now this block is officially in use */ |
p | 274 | mm/kmalloc.c | p->bh_length = size; |
p | 276 | mm/kmalloc.c | memset(p+1, 0xf0, size); |
p | 278 | mm/kmalloc.c | return p + 1; /* Pointer arithmetic: increments past header */ |
p | 286 | mm/kmalloc.c | register struct block_header *p; |
p | 291 | mm/kmalloc.c | p = ((struct block_header *) ptr) - 1; |
p | 292 | mm/kmalloc.c | page = PAGE_DESC(p); |
p | 295 | mm/kmalloc.c | if (p->bh_flags == MF_DMA) { |
p | 296 | mm/kmalloc.c | p->bh_flags = MF_USED; |
p | 303 | mm/kmalloc.c | (p->bh_flags != MF_USED)) { |
p | 305 | mm/kmalloc.c | p, page->next, page->order); |
p | 308 | mm/kmalloc.c | size = p->bh_length; |
p | 309 | mm/kmalloc.c | p->bh_flags = MF_FREE; /* As of now this block is officially free */ |
p | 311 | mm/kmalloc.c | memset(p+1, 0xe0, size); |
p | 315 | mm/kmalloc.c | p->bh_next = page->firstfree; |
p | 316 | mm/kmalloc.c | page->firstfree = p; |
p | 801 | mm/mmap.c | struct vm_area_struct **p, *mpnt; |
p | 803 | mm/mmap.c | p = &t->mm->mmap; |
p | 804 | mm/mmap.c | while ((mpnt = *p) != NULL) { |
p | 809 | mm/mmap.c | p = &mpnt->vm_next; |
p | 812 | 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 | 63 | net/ax25/ax25_out.c | unsigned char *p; |
p | 118 | net/ax25/ax25_out.c | p = skb_push(skbn, 2); |
p | 120 | net/ax25/ax25_out.c | *p++ = AX25_P_SEGMENT; |
p | 122 | net/ax25/ax25_out.c | *p = fragno--; |
p | 124 | net/ax25/ax25_out.c | *p |= SEG_FIRST; |
p | 130 | net/ax25/ax25_out.c | p = skb_push(skbn, 1); |
p | 131 | net/ax25/ax25_out.c | *p = AX25_P_TEXT; |
p | 488 | net/ax25/ax25_subr.c | unsigned char *p; |
p | 506 | net/ax25/ax25_subr.c | p = skb_put(skb, 2); |
p | 508 | net/ax25/ax25_subr.c | *p++=cmd; |
p | 509 | 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 | 1461 | net/ipv4/af_inet.c | struct inet_protocol *p; |
p | 1493 | net/ipv4/af_inet.c | for(p = inet_protocol_base; p != NULL;) |
p | 1495 | net/ipv4/af_inet.c | struct inet_protocol *tmp = (struct inet_protocol *) p->next; |
p | 1496 | net/ipv4/af_inet.c | inet_add_protocol(p); |
p | 1497 | net/ipv4/af_inet.c | printk("%s%s",p->name,tmp?", ":"\n"); |
p | 1498 | net/ipv4/af_inet.c | p = tmp; |
p | 201 | net/ipv4/icmp.c | static void icmp_glue_bits(const void *p, __u32 saddr, char *to, unsigned int offset, unsigned int fraglen) |
p | 203 | 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 | 248 | net/ipv4/packet.c | struct packet_type *p = (struct packet_type *) kmalloc(sizeof(*p), GFP_KERNEL); |
p | 249 | net/ipv4/packet.c | if (p == NULL) |
p | 252 | net/ipv4/packet.c | p->func = packet_rcv; |
p | 253 | net/ipv4/packet.c | p->type = sk->num; |
p | 254 | net/ipv4/packet.c | p->data = (void *)sk; |
p | 255 | net/ipv4/packet.c | p->dev = dev; |
p | 256 | net/ipv4/packet.c | dev_add_pack(p); |
p | 262 | 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 | 1886 | net/ipx/af_ipx.c | char *p, b[64]; |
p | 1888 | net/ipx/af_ipx.c | p = b; |
p | 1891 | net/ipx/af_ipx.c | *(p++) = h2c[(d[i] >> 4) & 0x0f]; |
p | 1892 | net/ipx/af_ipx.c | *(p++) = h2c[d[i] & 0x0f]; |
p | 1895 | net/ipx/af_ipx.c | *(p++) = ' '; |
p | 1896 | net/ipx/af_ipx.c | *(p++) = ' '; |
p | 1898 | net/ipx/af_ipx.c | *(p++) = ' '; |
p | 1900 | net/ipx/af_ipx.c | *(p++) = '-'; |
p | 1901 | net/ipx/af_ipx.c | *(p++) = ' '; |
p | 1905 | net/ipx/af_ipx.c | *(p++) = ' '<= d[i] && d[i]<'\177' ? d[i] : '.'; |
p | 1907 | net/ipx/af_ipx.c | *(p++) = ' '; |
p | 1908 | net/ipx/af_ipx.c | *p = '\000'; |
p | 1914 | net/ipx/af_ipx.c | void dump_addr(char *str,ipx_address *p) { |
p | 1916 | net/ipx/af_ipx.c | str,ntohl(p->net),p->node[0],p->node[1],p->node[2], |
p | 1917 | net/ipx/af_ipx.c | p->node[3],p->node[4],p->node[5],ntohs(p->sock)); |
p | 1920 | net/ipx/af_ipx.c | void dump_hdr(char *str,ipx_packet *p) { |
p | 1922 | net/ipx/af_ipx.c | str,p->ipx_checksum,ntohs(p->ipx_pktsize),ntohs(p->ipx_pktsize), |
p | 1923 | net/ipx/af_ipx.c | p->ipx_tctrl,p->ipx_tctrl,p->ipx_type); |
p | 1924 | net/ipx/af_ipx.c | dump_addr(" IPX-DST",&p->ipx_dest); |
p | 1925 | net/ipx/af_ipx.c | dump_addr(" IPX-SRC",&p->ipx_source); |
p | 1928 | net/ipx/af_ipx.c | void dump_pkt(char *str,ipx_packet *p) { |
p | 1929 | net/ipx/af_ipx.c | int len = ntohs(p->ipx_pktsize); |
p | 1930 | net/ipx/af_ipx.c | dump_hdr(str,p); |
p | 1932 | net/ipx/af_ipx.c | dump_data(str,(unsigned char *)p + 30, len - 30); |