tag | line | file | source code |
p | 250 | drivers/block/blk.h | struct task_struct * p; |
p | 281 | drivers/block/blk.h | if ((p = req->waiting) != NULL) { |
p | 283 | drivers/block/blk.h | p->state = TASK_RUNNING; |
p | 284 | drivers/block/blk.h | if (p->counter > current->counter) |
p | 39 | drivers/block/genhd.c | struct partition *p; |
p | 59 | drivers/block/genhd.c | p = (struct partition *) (0x1BE + bh->b_data); |
p | 64 | drivers/block/genhd.c | if (p->sys_ind == EXTENDED_PARTITION || |
p | 65 | drivers/block/genhd.c | !(hd->part[current_minor].nr_sects = p->nr_sects)) |
p | 67 | drivers/block/genhd.c | hd->part[current_minor].start_sect = this_sector + p->start_sect; |
p | 72 | drivers/block/genhd.c | p++; |
p | 80 | drivers/block/genhd.c | if (p->sys_ind != EXTENDED_PARTITION || |
p | 81 | drivers/block/genhd.c | !(hd->part[current_minor].nr_sects = p->nr_sects)) |
p | 83 | drivers/block/genhd.c | hd->part[current_minor].start_sect = first_sector + p->start_sect; |
p | 84 | drivers/block/genhd.c | this_sector = first_sector + p->start_sect; |
p | 99 | drivers/block/genhd.c | struct partition *p; |
p | 114 | drivers/block/genhd.c | p = (struct partition *) (0x1BE + bh->b_data); |
p | 115 | drivers/block/genhd.c | for (i=1 ; i<=4 ; minor++,i++,p++) { |
p | 116 | drivers/block/genhd.c | if (!(hd->part[minor].nr_sects = p->nr_sects)) |
p | 118 | drivers/block/genhd.c | hd->part[minor].start_sect = first_sector + p->start_sect; |
p | 122 | drivers/block/genhd.c | if (p->sys_ind == EXTENDED_PARTITION) { |
p | 132 | drivers/block/genhd.c | p = (struct partition *) (0x1BE + bh->b_data); |
p | 134 | drivers/block/genhd.c | p--; |
p | 137 | drivers/block/genhd.c | if (!(p->start_sect && p->nr_sects)) |
p | 139 | drivers/block/genhd.c | hd->part[current_minor].start_sect = p->start_sect; |
p | 140 | drivers/block/genhd.c | hd->part[current_minor].nr_sects = p->nr_sects; |
p | 199 | drivers/block/genhd.c | struct gendisk *p; |
p | 202 | drivers/block/genhd.c | for (p = gendisk_head ; p ; p=p->next) { |
p | 203 | drivers/block/genhd.c | setup_dev(p); |
p | 204 | drivers/block/genhd.c | nr += p->nr_real; |
p | 84 | drivers/block/mcd.c | static void bin2bcd(unsigned char *p); |
p | 913 | drivers/block/mcd.c | bin2bcd(unsigned char *p) |
p | 917 | drivers/block/mcd.c | u = *p % 10; |
p | 918 | drivers/block/mcd.c | t = *p / 10; |
p | 919 | drivers/block/mcd.c | *p = u | (t << 4); |
p | 527 | drivers/block/sbpcd.c | static void bin2bcdx(u_char *p) /* must work only up to 75 or 99 */ |
p | 529 | drivers/block/sbpcd.c | *p=((*p/10)<<4)|(*p%10); |
p | 1504 | drivers/block/sbpcd.c | static int convert_UPC(u_char *p) |
p | 1508 | drivers/block/sbpcd.c | p++; |
p | 1509 | drivers/block/sbpcd.c | if (!new_drive) p[13]=0; |
p | 1512 | drivers/block/sbpcd.c | if (new_drive) DriveStruct[d].UPC_buf[i]=swap_nibbles(*p++); |
p | 1515 | drivers/block/sbpcd.c | DriveStruct[d].UPC_buf[i]=((*p++)<<4)&0xFF; |
p | 1516 | drivers/block/sbpcd.c | DriveStruct[d].UPC_buf[i] |= *p++; |
p | 2489 | drivers/block/sbpcd.c | u_char *p; |
p | 2612 | drivers/block/sbpcd.c | p = DriveStruct[d].aud_buf; |
p | 2614 | drivers/block/sbpcd.c | READ_DATA(CDi_data, p, AUD_FRM_SIZ); |
p | 2929 | drivers/block/sbpcd.c | u_char *p; |
p | 2979 | drivers/block/sbpcd.c | p = DriveStruct[d].sbp_buf + frame * CD_FRAMESIZE; |
p | 2983 | drivers/block/sbpcd.c | READ_DATA(CDi_data, p, CD_FRAMESIZE); |
p | 3181 | drivers/block/sbpcd.c | void sbpcd_setup(char *s, int *p) |
p | 3183 | drivers/block/sbpcd.c | DPRINTF((DBG_INI,"SBPCD: sbpcd_setup called with %04X,%s\n",p[1], s)); |
p | 3187 | drivers/block/sbpcd.c | if (p[0]>0) sbpcd_ioaddr=p[1]; |
p | 716 | drivers/char/console.c | static void respond_string(char * p, struct tty_struct * tty) |
p | 718 | drivers/char/console.c | while (*p) { |
p | 719 | drivers/char/console.c | tty_insert_flip_char(tty, *p, 0); |
p | 720 | drivers/char/console.c | p++; |
p | 744 | drivers/char/console.c | unsigned char *p; |
p | 747 | drivers/char/console.c | for (p = (unsigned char *)origin+1; p < (unsigned char *)scr_end; p+=2) |
p | 748 | drivers/char/console.c | *p = (*p & 0x88) | (((*p >> 4) | (*p << 4)) & 0x77); |
p | 750 | drivers/char/console.c | for (p = (unsigned char *)origin+1; p < (unsigned char *)scr_end; p+=2) |
p | 751 | drivers/char/console.c | *p ^= *p & 0x07 == 1 ? 0x70 : 0x77; |
p | 839 | drivers/char/console.c | unsigned short * p = (unsigned short *) pos; |
p | 842 | drivers/char/console.c | tmp = *p; |
p | 843 | drivers/char/console.c | *p = old; |
p | 845 | drivers/char/console.c | p++; |
p | 859 | drivers/char/console.c | unsigned short * p = (unsigned short *) pos; |
p | 862 | drivers/char/console.c | *p = *(p+1); |
p | 863 | drivers/char/console.c | p++; |
p | 865 | drivers/char/console.c | *p = video_erase_char; |
p | 1716 | drivers/char/console.c | unsigned char *p, *p1, *p2; |
p | 1722 | drivers/char/console.c | p = p1; |
p | 1724 | drivers/char/console.c | p2 = p; |
p | 1726 | drivers/char/console.c | for (p = p1; p <= p2; p += 2) |
p | 1727 | drivers/char/console.c | *p = (*p & 0x88) | ((*p << 4) & 0x70) | ((*p >> 4) & 0x07); |
p | 1734 | drivers/char/console.c | static inline int atedge(const int p) |
p | 1736 | drivers/char/console.c | return (!(p % video_size_row) || !((p + 2) % video_size_row)); |
p | 38 | drivers/char/mem.c | unsigned long p = file->f_pos; |
p | 43 | drivers/char/mem.c | if (p >= high_memory) |
p | 45 | drivers/char/mem.c | if (count > high_memory - p) |
p | 46 | drivers/char/mem.c | count = high_memory - p; |
p | 48 | drivers/char/mem.c | while (p < PAGE_SIZE && count > 0) { |
p | 51 | drivers/char/mem.c | p++; |
p | 55 | drivers/char/mem.c | memcpy_tofs(buf,(void *) p,count); |
p | 63 | drivers/char/mem.c | unsigned long p = file->f_pos; |
p | 68 | drivers/char/mem.c | if (p >= high_memory) |
p | 70 | drivers/char/mem.c | if (count > high_memory - p) |
p | 71 | drivers/char/mem.c | count = high_memory - p; |
p | 73 | drivers/char/mem.c | while (p < PAGE_SIZE && count > 0) { |
p | 76 | drivers/char/mem.c | p++; |
p | 80 | drivers/char/mem.c | memcpy_fromfs((void *) p,buf,count); |
p | 518 | drivers/char/n_tty.c | unsigned char *p; |
p | 540 | drivers/char/n_tty.c | for (i=count, p = cp, f = fp; i; i--, p++) { |
p | 545 | drivers/char/n_tty.c | n_tty_receive_char(tty, *p); |
p | 552 | drivers/char/n_tty.c | n_tty_receive_parity_error(tty, *p); |
p | 211 | drivers/char/tty_io.c | struct tty_driver *p; |
p | 216 | drivers/char/tty_io.c | for (p = tty_drivers; p; p = p->next) { |
p | 217 | drivers/char/tty_io.c | if (p->major != major) |
p | 219 | drivers/char/tty_io.c | if (minor < p->minor_start) |
p | 221 | drivers/char/tty_io.c | if (minor >= p->minor_start + p->num) |
p | 223 | drivers/char/tty_io.c | return p; |
p | 309 | drivers/char/tty_io.c | struct task_struct *p; |
p | 360 | drivers/char/tty_io.c | for_each_task(p) { |
p | 361 | drivers/char/tty_io.c | if (p->tty == tty) |
p | 362 | drivers/char/tty_io.c | p->tty = NULL; |
p | 402 | drivers/char/tty_io.c | struct task_struct *p; |
p | 414 | drivers/char/tty_io.c | for_each_task(p) |
p | 415 | drivers/char/tty_io.c | if (p->session == current->session) |
p | 416 | drivers/char/tty_io.c | p->tty = NULL; |
p | 879 | drivers/char/tty_io.c | struct task_struct **p; |
p | 972 | drivers/char/tty_io.c | for (p = &LAST_TASK ; p > &FIRST_TASK ; --p) { |
p | 973 | drivers/char/tty_io.c | if ((*p) && (*p)->tty == tty) |
p | 974 | drivers/char/tty_io.c | (*p)->tty = NULL; |
p | 1193 | drivers/char/tty_io.c | struct task_struct **p; |
p | 1200 | drivers/char/tty_io.c | for (p = &FIRST_TASK ; p <= &LAST_TASK ; p++, n++) |
p | 1201 | drivers/char/tty_io.c | if (*p) |
p | 1203 | drivers/char/tty_io.c | c = (char *)(*p); |
p | 1314 | drivers/char/tty_io.c | struct task_struct *p; |
p | 1316 | drivers/char/tty_io.c | for_each_task(p) |
p | 1317 | drivers/char/tty_io.c | if (p->tty == tty) |
p | 1318 | drivers/char/tty_io.c | p->tty = NULL; |
p | 1422 | drivers/char/tty_io.c | struct task_struct **p; |
p | 1431 | drivers/char/tty_io.c | for (p = &LAST_TASK ; p > &FIRST_TASK ; --p) { |
p | 1432 | drivers/char/tty_io.c | if (!(*p)) |
p | 1434 | drivers/char/tty_io.c | if (((*p)->tty == tty) || |
p | 1435 | drivers/char/tty_io.c | ((session > 0) && ((*p)->session == session))) |
p | 1436 | drivers/char/tty_io.c | send_sig(SIGKILL, *p, 1); |
p | 1439 | drivers/char/tty_io.c | filp = (*p)->files->fd[i]; |
p | 1442 | drivers/char/tty_io.c | send_sig(SIGKILL, *p, 1); |
p | 325 | drivers/char/vt.c | char *p; |
p | 334 | drivers/char/vt.c | p = func_table[i]; |
p | 335 | drivers/char/vt.c | if(!p) { |
p | 341 | drivers/char/vt.c | for ( ; *p; p++) |
p | 342 | drivers/char/vt.c | put_fs_byte(*p, q++); |
p | 353 | drivers/char/vt.c | u_char *p; |
p | 369 | drivers/char/vt.c | for (p = a->kb_string; get_fs_byte(p); p++) |
p | 387 | drivers/char/vt.c | for (p = a->kb_string, q = func_table[i]; ; p++, q++) |
p | 388 | drivers/char/vt.c | if (!(*q = get_fs_byte(p))) |
p | 660 | drivers/net/atp.c | static void read_block(short ioaddr, int length, unsigned char *p, int data_mode) |
p | 668 | drivers/net/atp.c | do *p++ = read_byte_mode0(ioaddr); while (--length > 0); |
p | 670 | drivers/net/atp.c | do *p++ = read_byte_mode2(ioaddr); while (--length > 0); |
p | 672 | drivers/net/atp.c | do *p++ = read_byte_mode4(ioaddr); while (--length > 0); |
p | 674 | drivers/net/atp.c | do *p++ = read_byte_mode6(ioaddr); while (--length > 0); |
p | 835 | drivers/net/depca.c | char *p = (char *) skb->data; |
p | 868 | drivers/net/depca.c | for (p += len; skbL > 0; p += len) { |
p | 892 | drivers/net/depca.c | memcpy((unsigned char *)(buf + PKT_HDR_LEN), (unsigned char *)p, len); |
p | 76 | drivers/net/ppp.c | #define PRINTK(p) printk p ; |
p | 77 | drivers/net/ppp.c | #define ASSERT(p) if (!p) PRINTK ((KERN_CRIT "assertion failed: " # p)) |
p | 78 | drivers/net/ppp.c | #define PRINTKN(n,p) {if (ppp_debug >= n) PRINTK (p)} |
p | 86 | drivers/net/ppp.c | #define bset(p,b) ((p)[(b) >> 5] |= (1 << ((b) & 0x1f))) |
p | 1666 | drivers/net/ppp.c | unsigned char *p; |
p | 1679 | drivers/net/ppp.c | p = (unsigned char *) (skb + 1); |
p | 1710 | drivers/net/ppp.c | if (ppp_us_queue (ppp, proto, p, len)) |
p | 1728 | drivers/net/ppp.c | len = slhc_compress(ppp->slcomp, p, len, ppp->cbuff, &p, 0); |
p | 1729 | drivers/net/ppp.c | if (p[0] & SL_TYPE_COMPRESSED_TCP) |
p | 1732 | drivers/net/ppp.c | if (p[0] >= SL_TYPE_UNCOMPRESSED_TCP) { |
p | 1734 | drivers/net/ppp.c | p[0] = (p[0] & 0x0f) | 0x40; |
p | 1773 | drivers/net/ppp.c | ppp_stuff_char(ppp, *p++); |
p | 353 | drivers/net/slip.c | unsigned char *p; |
p | 366 | drivers/net/slip.c | p = icp; |
p | 369 | drivers/net/slip.c | len = slhc_compress(sl->slcomp, p, len, sl->cbuff, &p, 1); |
p | 372 | drivers/net/slip.c | count=slip_esc6(p, (unsigned char *)sl->xbuff,len); |
p | 374 | drivers/net/slip.c | count=slip_esc(p, (unsigned char *)sl->xbuff,len); |
p | 559 | drivers/net/slip.c | unsigned char *p; |
p | 585 | drivers/net/slip.c | p = (unsigned char *) kmalloc(l + 4, GFP_KERNEL); |
p | 586 | drivers/net/slip.c | if (p == NULL) { |
p | 591 | drivers/net/slip.c | sl->dev->mem_start = (unsigned long) p; |
p | 594 | drivers/net/slip.c | p = (unsigned char *) kmalloc(l + 4, GFP_KERNEL); |
p | 595 | drivers/net/slip.c | if (p == NULL) { |
p | 599 | drivers/net/slip.c | sl->dev->rmem_start = (unsigned long) p; |
p | 611 | drivers/net/slip.c | p = (unsigned char *) kmalloc(l + 4, GFP_KERNEL); |
p | 612 | drivers/net/slip.c | if (p == NULL) { |
p | 616 | drivers/net/slip.c | sl->cbuff = p; |
p | 1328 | drivers/scsi/NCR5380.c | register unsigned char p = *phase, tmp; |
p | 1339 | drivers/scsi/NCR5380.c | NCR5380_write(TARGET_COMMAND_REG, PHASE_SR_TO_TCR(p)); |
p | 1353 | drivers/scsi/NCR5380.c | if ((tmp & PHASE_MASK) != p) { |
p | 1362 | drivers/scsi/NCR5380.c | if (!(p & SR_IO)) |
p | 1376 | drivers/scsi/NCR5380.c | if (!(p & SR_IO)) { |
p | 1377 | drivers/scsi/NCR5380.c | if (!((p & SR_MSG) && c > 1)) { |
p | 1407 | drivers/scsi/NCR5380.c | if (!(p == PHASE_MSGOUT && c > 1)) |
p | 1425 | drivers/scsi/NCR5380.c | if (!c || (*phase == p)) |
p | 1456 | drivers/scsi/NCR5380.c | register unsigned char p = *phase; |
p | 1470 | drivers/scsi/NCR5380.c | if ((tmp = (NCR5380_read(STATUS_REG) & PHASE_MASK)) != p) { |
p | 1476 | drivers/scsi/NCR5380.c | if (p & SR_IO) { |
p | 1482 | drivers/scsi/NCR5380.c | instance->host_no, instance->dma_channel, (p & SR_IO) ? "reading" : |
p | 1483 | drivers/scsi/NCR5380.c | "writing", c, (p & SR_IO) ? "to" : "from", (unsigned) d); |
p | 1485 | drivers/scsi/NCR5380.c | hostdata->dma_len = (p & SR_IO) ? |
p | 1490 | drivers/scsi/NCR5380.c | NCR5380_write(TARGET_COMMAND_REG, PHASE_SR_TO_TCR(p)); |
p | 1513 | drivers/scsi/NCR5380.c | if (p & SR_IO) |
p | 1562 | drivers/scsi/NCR5380.c | if (p & SR_IO) { |
p | 1596 | drivers/scsi/NCR5380.c | if (*phase == p && (p & SR_IO) && residue == 0) { |
p | 1626 | drivers/scsi/NCR5380.c | if (p & SR_IO) { |
p | 93 | drivers/scsi/aha1542.h | #define any2scsi(up, p) \ |
p | 94 | drivers/scsi/aha1542.h | (up)[0] = (((unsigned long)(p)) >> 16) ; \ |
p | 95 | drivers/scsi/aha1542.h | (up)[1] = (((unsigned long)(p)) >> 8); \ |
p | 96 | drivers/scsi/aha1542.h | (up)[2] = ((unsigned long)(p)); |
p | 100 | drivers/scsi/aha1542.h | #define xany2scsi(up, p) \ |
p | 101 | drivers/scsi/aha1542.h | (up)[0] = ((long)(p)) >> 24; \ |
p | 102 | drivers/scsi/aha1542.h | (up)[1] = ((long)(p)) >> 16; \ |
p | 103 | drivers/scsi/aha1542.h | (up)[2] = ((long)(p)) >> 8; \ |
p | 104 | drivers/scsi/aha1542.h | (up)[3] = ((long)(p)); |
p | 89 | drivers/scsi/aha1740.h | #define any2scsi(up, p) \ |
p | 90 | drivers/scsi/aha1740.h | (up)[0] = (((unsigned long)(p)) >> 16) ; \ |
p | 91 | drivers/scsi/aha1740.h | (up)[1] = (((unsigned long)(p)) >> 8); \ |
p | 92 | drivers/scsi/aha1740.h | (up)[2] = ((unsigned long)(p)); |
p | 96 | drivers/scsi/aha1740.h | #define xany2scsi(up, p) \ |
p | 97 | drivers/scsi/aha1740.h | (up)[0] = ((long)(p)) >> 24; \ |
p | 98 | drivers/scsi/aha1740.h | (up)[1] = ((long)(p)) >> 16; \ |
p | 99 | drivers/scsi/aha1740.h | (up)[2] = ((long)(p)) >> 8; \ |
p | 100 | drivers/scsi/aha1740.h | (up)[3] = ((long)(p)); |
p | 517 | drivers/scsi/scsi.h | struct task_struct * p; |
p | 549 | drivers/scsi/scsi.h | if ((p = req->waiting) != NULL) { |
p | 551 | drivers/scsi/scsi.h | p->state = TASK_RUNNING; |
p | 552 | drivers/scsi/scsi.h | if (p->counter > current->counter) |
p | 157 | drivers/scsi/scsi_debug.c | struct partition * p; |
p | 274 | drivers/scsi/scsi_debug.c | p = (struct partition* ) (buff + 0x1be); |
p | 277 | drivers/scsi/scsi_debug.c | p->start_sect = starts[npart]; |
p | 278 | drivers/scsi/scsi_debug.c | p->nr_sects = starts[npart+1] - starts [npart]; |
p | 279 | drivers/scsi/scsi_debug.c | p->sys_ind = 0x81; /* Linux partition */ |
p | 280 | drivers/scsi/scsi_debug.c | p++; |
p | 76 | drivers/scsi/scsi_ioctl.c | struct task_struct * p; |
p | 81 | drivers/scsi/scsi_ioctl.c | if ((p = req->waiting) != NULL) { |
p | 83 | drivers/scsi/scsi_ioctl.c | p->state = TASK_RUNNING; |
p | 84 | drivers/scsi/scsi_ioctl.c | if (p->counter > current->counter) |
p | 771 | drivers/scsi/sd.c | struct task_struct * p; |
p | 776 | drivers/scsi/sd.c | if ((p = req->waiting) != NULL) { |
p | 778 | drivers/scsi/sd.c | p->state = TASK_RUNNING; |
p | 779 | drivers/scsi/sd.c | if (p->counter > current->counter) |
p | 636 | drivers/scsi/sr.c | struct task_struct * p; |
p | 641 | drivers/scsi/sr.c | if ((p = req->waiting) != NULL) { |
p | 643 | drivers/scsi/sr.c | p->state = TASK_RUNNING; |
p | 644 | drivers/scsi/sr.c | if (p->counter > current->counter) |
p | 24 | drivers/scsi/sr_ioctl.c | struct task_struct * p; |
p | 29 | drivers/scsi/sr_ioctl.c | if ((p = req->waiting) != NULL) { |
p | 31 | drivers/scsi/sr_ioctl.c | p->state = TASK_RUNNING; |
p | 32 | drivers/scsi/sr_ioctl.c | if (p->counter > current->counter) |
p | 828 | drivers/scsi/ultrastor.c | unsigned char p = inb(port0 + i); |
p | 829 | drivers/scsi/ultrastor.c | out[28 + i * 3] = "0123456789abcdef"[p >> 4]; |
p | 830 | drivers/scsi/ultrastor.c | out[29 + i * 3] = "0123456789abcdef"[p & 15]; |
p | 519 | drivers/scsi/wd7000.c | #define any2scsi(up, p) \ |
p | 520 | drivers/scsi/wd7000.c | (up)[0] = (((unsigned long)(p)) >> 16); \ |
p | 521 | drivers/scsi/wd7000.c | (up)[1] = ((unsigned long)(p)) >> 8; \ |
p | 522 | drivers/scsi/wd7000.c | (up)[2] = ((unsigned long)(p)); |
p | 598 | drivers/scsi/wd7000.c | register Scb *scb, *p; |
p | 635 | drivers/scsi/wd7000.c | for (i = 0; i < needed; i++) { p = scbfree; scbfree = p->next; } |
p | 636 | drivers/scsi/wd7000.c | p->next = NULL; |
p | 129 | drivers/sound/audio.c | int c, p, l; |
p | 135 | drivers/sound/audio.c | p = 0; |
p | 171 | drivers/sound/audio.c | COPY_FROM_USER (&wr_dma_buf[dev][wr_buff_ptr[dev]], buf, p, l); |
p | 175 | drivers/sound/audio.c | wr_dma_buf[dev], wr_buff_ptr[dev], buf, p, l); |
p | 190 | drivers/sound/audio.c | p += l; |
p | 209 | drivers/sound/audio.c | int c, p, l; |
p | 215 | drivers/sound/audio.c | p = 0; |
p | 250 | drivers/sound/audio.c | COPY_TO_USER (buf, p, dmabuf, l); |
p | 254 | drivers/sound/audio.c | p += l; |
p | 108 | drivers/sound/dmabuf.c | unsigned i, p, n; |
p | 159 | drivers/sound/dmabuf.c | p = 0; |
p | 161 | drivers/sound/dmabuf.c | while ((p + bsz) <= sound_buffsizes[dev]) |
p | 163 | drivers/sound/dmabuf.c | dev_buf[dev][n] = snd_raw_buf[dev][i] + p; |
p | 164 | drivers/sound/dmabuf.c | dev_buf_phys[dev][n] = snd_raw_buf_phys[dev][i] + p; |
p | 165 | drivers/sound/dmabuf.c | p += bsz; |
p | 391 | drivers/sound/dmabuf.c | int p = dev_counts[dev][dev_qhead[dev]] + c; |
p | 393 | drivers/sound/dmabuf.c | if (p >= dev_buffsize[dev]) |
p | 400 | drivers/sound/dmabuf.c | dev_counts[dev][dev_qhead[dev]] = p; |
p | 262 | drivers/sound/pas2_mixer.c | struct sb_mixer_params p; |
p | 267 | drivers/sound/pas2_mixer.c | IOCTL_FROM_USER ((char *) &p, (char *) user_p, 0, sizeof (p)); |
p | 269 | drivers/sound/pas2_mixer.c | if (p.record_source != SRC_MIC |
p | 270 | drivers/sound/pas2_mixer.c | && p.record_source != SRC_CD |
p | 271 | drivers/sound/pas2_mixer.c | && p.record_source != SRC_LINE) |
p | 283 | drivers/sound/pas2_mixer.c | if (!p.dsp_stereo) |
p | 289 | drivers/sound/pas2_mixer.c | switch (p.record_source) |
p | 79 | drivers/sound/sequencer.c | int c = count, p = 0; |
p | 107 | drivers/sound/sequencer.c | COPY_TO_USER (buf, p, &iqueue[iqhead * IEV_SZ], IEV_SZ); |
p | 108 | drivers/sound/sequencer.c | p += 4; |
p | 171 | drivers/sound/sequencer.c | int p = 0, c, ev_size; |
p | 189 | drivers/sound/sequencer.c | COPY_FROM_USER (event, buf, p, 4); |
p | 203 | drivers/sound/sequencer.c | err = synth_devs[dev]->load_patch (dev, *(short *) &event[0], buf, p + 4, c, 0); |
p | 222 | drivers/sound/sequencer.c | COPY_FROM_USER (&event[4], buf, p + 4, 4); |
p | 265 | drivers/sound/sequencer.c | p += ev_size; |
p | 449 | fs/binfmt_coff.c | bprm->p += change_ldt (0, bprm->page); |
p | 450 | fs/binfmt_coff.c | bprm->p -= MAX_ARG_PAGES*PAGE_SIZE; |
p | 451 | fs/binfmt_coff.c | bprm->p = (unsigned long) create_tables ((char *) bprm->p, |
p | 471 | fs/binfmt_coff.c | current->mm->start_stack = bprm->p; |
p | 49 | fs/binfmt_elf.c | unsigned long * create_elf_tables(char * p,int argc,int envc,struct elfhdr * exec, unsigned int load_addr, int ibcs) |
p | 58 | fs/binfmt_elf.c | mpnt->vm_start = PAGE_MASK & (unsigned long) p; |
p | 68 | fs/binfmt_elf.c | sp = (unsigned long *) (0xfffffffc & (unsigned long) p); |
p | 97 | fs/binfmt_elf.c | current->mm->arg_start = (unsigned long) p; |
p | 99 | fs/binfmt_elf.c | put_fs_long((unsigned long) p,argv++); |
p | 100 | fs/binfmt_elf.c | while (get_fs_byte(p++)) /* nothing */ ; |
p | 103 | fs/binfmt_elf.c | current->mm->arg_end = current->mm->env_start = (unsigned long) p; |
p | 105 | fs/binfmt_elf.c | put_fs_long((unsigned long) p,envp++); |
p | 106 | fs/binfmt_elf.c | while (get_fs_byte(p++)) /* nothing */ ; |
p | 109 | fs/binfmt_elf.c | current->mm->env_end = (unsigned long) p; |
p | 403 | fs/binfmt_elf.c | bprm->p = copy_strings(1,&passed_p,bprm->page,bprm->p,2); |
p | 407 | fs/binfmt_elf.c | if (!bprm->p) { |
p | 428 | fs/binfmt_elf.c | bprm->p += change_ldt(0, bprm->page); |
p | 429 | fs/binfmt_elf.c | current->mm->start_stack = bprm->p; |
p | 504 | fs/binfmt_elf.c | current->start_stack = p = elf_stack - 4; |
p | 506 | fs/binfmt_elf.c | bprm->p -= MAX_ARG_PAGES*PAGE_SIZE; |
p | 507 | fs/binfmt_elf.c | bprm->p = (unsigned long) |
p | 508 | fs/binfmt_elf.c | create_elf_tables((char *)bprm->p, |
p | 520 | fs/binfmt_elf.c | current->mm->start_stack = bprm->p; |
p | 539 | fs/binfmt_elf.c | regs->esp = bprm->p; /* stack pointer */ |
p | 32 | fs/block_dev.c | register char * p; |
p | 108 | fs/block_dev.c | p = offset + bh->b_data; |
p | 113 | fs/block_dev.c | memcpy_fromfs(p,buf,chars); |
p | 114 | fs/block_dev.c | p += chars; |
p | 1123 | fs/buffer.c | int * p; |
p | 1130 | fs/buffer.c | p = b; |
p | 1132 | fs/buffer.c | block = *(p++); |
p | 1139 | fs/buffer.c | p = b; |
p | 1149 | fs/buffer.c | bh->b_blocknr = *(p++); |
p | 1305 | fs/buffer.c | struct buffer_head * tmp, * p; |
p | 1321 | fs/buffer.c | p = tmp; |
p | 1325 | fs/buffer.c | if (p == *bhp) |
p | 1327 | fs/buffer.c | *bhp = p->b_prev_free; |
p | 1328 | fs/buffer.c | if (p == *bhp) /* Was this the last in the list? */ |
p | 1331 | fs/buffer.c | remove_from_queues(p); |
p | 1332 | fs/buffer.c | put_unused_buffer_head(p); |
p | 1520 | fs/buffer.c | struct buffer_head * tmp, * p; |
p | 1543 | fs/buffer.c | p = tmp; |
p | 1545 | fs/buffer.c | remove_from_queues(p); |
p | 1546 | fs/buffer.c | p->b_dev=dev; |
p | 1547 | fs/buffer.c | p->b_uptodate = 0; |
p | 1548 | fs/buffer.c | p->b_req = 0; |
p | 1549 | fs/buffer.c | p->b_blocknr=starting_block++; |
p | 1550 | fs/buffer.c | insert_into_queues(p); |
p | 309 | fs/exec.c | unsigned long * create_tables(char * p,int argc,int envc,int ibcs) |
p | 318 | fs/exec.c | mpnt->vm_start = PAGE_MASK & (unsigned long) p; |
p | 328 | fs/exec.c | sp = (unsigned long *) (0xfffffffc & (unsigned long) p); |
p | 338 | fs/exec.c | current->mm->arg_start = (unsigned long) p; |
p | 340 | fs/exec.c | put_fs_long((unsigned long) p,argv++); |
p | 341 | fs/exec.c | while (get_fs_byte(p++)) /* nothing */ ; |
p | 344 | fs/exec.c | current->mm->arg_end = current->mm->env_start = (unsigned long) p; |
p | 346 | fs/exec.c | put_fs_long((unsigned long) p,envp++); |
p | 347 | fs/exec.c | while (get_fs_byte(p++)) /* nothing */ ; |
p | 350 | fs/exec.c | current->mm->env_end = (unsigned long) p; |
p | 387 | fs/exec.c | unsigned long p, int from_kmem) |
p | 393 | fs/exec.c | if (!p) |
p | 410 | fs/exec.c | if (p < len) { /* this shouldn't happen - 128kB */ |
p | 415 | fs/exec.c | --p; --tmp; --len; |
p | 417 | fs/exec.c | offset = p % PAGE_SIZE; |
p | 420 | fs/exec.c | if (!(pag = (char *) page[p/PAGE_SIZE]) && |
p | 421 | fs/exec.c | !(pag = (char *) page[p/PAGE_SIZE] = |
p | 433 | fs/exec.c | return p; |
p | 593 | fs/exec.c | bprm.p = PAGE_SIZE*MAX_ARG_PAGES-4; |
p | 687 | fs/exec.c | bprm.p = copy_strings(bprm.envc, envp, bprm.page, bprm.p, 0); |
p | 688 | fs/exec.c | bprm.p = copy_strings(--bprm.argc, argv+1, bprm.page, bprm.p, 0); |
p | 698 | fs/exec.c | bprm.p = copy_strings(1, &bprm.filename, bprm.page, bprm.p, 2); |
p | 701 | fs/exec.c | bprm.p = copy_strings(1, &i_arg, bprm.page, bprm.p, 2); |
p | 704 | fs/exec.c | bprm.p = copy_strings(1, &i_name, bprm.page, bprm.p, 2); |
p | 706 | fs/exec.c | if (!bprm.p) { |
p | 721 | fs/exec.c | bprm.p = copy_strings(bprm.envc,envp,bprm.page,bprm.p,0); |
p | 722 | fs/exec.c | bprm.p = copy_strings(bprm.argc,argv,bprm.page,bprm.p,0); |
p | 723 | fs/exec.c | if (!bprm.p) { |
p | 807 | fs/exec.c | unsigned long p = bprm->p; |
p | 888 | fs/exec.c | p += change_ldt(ex.a_text,bprm->page); |
p | 889 | fs/exec.c | p -= MAX_ARG_PAGES*PAGE_SIZE; |
p | 890 | fs/exec.c | p = (unsigned long) create_tables((char *)p,bprm->argc,bprm->envc,0); |
p | 891 | fs/exec.c | current->mm->start_stack = p; |
p | 893 | fs/exec.c | regs->esp = p; /* stack pointer */ |
p | 202 | fs/ext/file.c | char * p; |
p | 241 | fs/ext/file.c | p = (pos % BLOCK_SIZE) + bh->b_data; |
p | 248 | fs/ext/file.c | memcpy_fromfs(p,buf,c); |
p | 224 | fs/ext/inode.c | unsigned long * p; |
p | 227 | fs/ext/inode.c | p = inode->u.ext_i.i_data + nr; |
p | 229 | fs/ext/inode.c | tmp = *p; |
p | 232 | fs/ext/inode.c | if (tmp == *p) |
p | 243 | fs/ext/inode.c | if (*p) { |
p | 248 | fs/ext/inode.c | *p = tmp; |
p | 258 | fs/ext/inode.c | unsigned long * p; |
p | 271 | fs/ext/inode.c | p = nr + (unsigned long *) bh->b_data; |
p | 273 | fs/ext/inode.c | tmp = *p; |
p | 276 | fs/ext/inode.c | if (tmp == *p) { |
p | 293 | fs/ext/inode.c | if (*p) { |
p | 298 | 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 | 74 | fs/ext2/balloc.c | unsigned long * p = ((unsigned long *) addr) + (offset >> 5); |
p | 87 | fs/ext2/balloc.c | : "r" (~(*p >> bit))); |
p | 91 | fs/ext2/balloc.c | p++; |
p | 96 | fs/ext2/balloc.c | res = find_first_zero_bit (p, size - 32 * (p - addr)); |
p | 339 | fs/ext2/balloc.c | char * p, * r; |
p | 423 | fs/ext2/balloc.c | p = ((char *) bh->b_data) + (j >> 3); |
p | 424 | fs/ext2/balloc.c | r = find_first_zero_byte (p, |
p | 88 | fs/ext2/dcache.c | struct dir_cache_entry * p; |
p | 90 | fs/ext2/dcache.c | for (p = queue_head[queue]; p != NULL && (p->dev != dev || |
p | 91 | fs/ext2/dcache.c | p->dir != dir || p->len != len || |
p | 92 | fs/ext2/dcache.c | strncmp (name, p->name, p->len) != 0); |
p | 93 | fs/ext2/dcache.c | p = p->queue_next) |
p | 95 | fs/ext2/dcache.c | return p; |
p | 104 | fs/ext2/dcache.c | struct dir_cache_entry * p; |
p | 107 | fs/ext2/dcache.c | for (p = first; p != NULL; p = p->next) |
p | 109 | fs/ext2/dcache.c | p->dev, p->dir, p->name); |
p | 116 | fs/ext2/dcache.c | static void add_to_cache (struct dir_cache_entry * p) |
p | 118 | fs/ext2/dcache.c | p->prev = NULL; |
p | 119 | fs/ext2/dcache.c | p->next = first; |
p | 121 | fs/ext2/dcache.c | first->prev = p; |
p | 123 | fs/ext2/dcache.c | last = p; |
p | 124 | fs/ext2/dcache.c | first = p; |
p | 130 | fs/ext2/dcache.c | static void add_to_queue (int queue, struct dir_cache_entry * p) |
p | 132 | fs/ext2/dcache.c | p->queue_prev = NULL; |
p | 133 | fs/ext2/dcache.c | p->queue_next = queue_head[queue]; |
p | 135 | fs/ext2/dcache.c | queue_head[queue]->queue_prev = p; |
p | 137 | fs/ext2/dcache.c | queue_tail[queue] = p; |
p | 138 | fs/ext2/dcache.c | queue_head[queue] = p; |
p | 144 | fs/ext2/dcache.c | static void remove_from_cache (struct dir_cache_entry * p) |
p | 146 | fs/ext2/dcache.c | if (p->prev) |
p | 147 | fs/ext2/dcache.c | p->prev->next = p->next; |
p | 149 | fs/ext2/dcache.c | first = p->next; |
p | 150 | fs/ext2/dcache.c | if (p->next) |
p | 151 | fs/ext2/dcache.c | p->next->prev = p->prev; |
p | 153 | fs/ext2/dcache.c | last = p->prev; |
p | 154 | fs/ext2/dcache.c | p->prev = NULL; |
p | 155 | fs/ext2/dcache.c | p->next = NULL; |
p | 161 | fs/ext2/dcache.c | static void remove_from_queue (int queue, struct dir_cache_entry * p) |
p | 163 | fs/ext2/dcache.c | if (p->queue_prev) |
p | 164 | fs/ext2/dcache.c | p->queue_prev->queue_next = p->queue_next; |
p | 166 | fs/ext2/dcache.c | queue_head[queue] = p->queue_next; |
p | 167 | fs/ext2/dcache.c | if (p->queue_next) |
p | 168 | fs/ext2/dcache.c | p->queue_next->queue_prev = p->queue_prev; |
p | 170 | fs/ext2/dcache.c | queue_tail[queue] = p->queue_prev; |
p | 171 | fs/ext2/dcache.c | p->queue_prev = NULL; |
p | 172 | fs/ext2/dcache.c | p->queue_next = NULL; |
p | 181 | fs/ext2/dcache.c | struct dir_cache_entry * p; |
p | 186 | fs/ext2/dcache.c | for (p = first; p != NULL; p = p2) { |
p | 187 | fs/ext2/dcache.c | p2 = p->next; |
p | 188 | fs/ext2/dcache.c | if (p->dev == dev) { |
p | 189 | fs/ext2/dcache.c | remove_from_cache (p); |
p | 190 | fs/ext2/dcache.c | remove_from_queue (hash (p->dev, p->dir), p); |
p | 191 | fs/ext2/dcache.c | p->next = first_free; |
p | 192 | fs/ext2/dcache.c | first_free = p; |
p | 208 | fs/ext2/dcache.c | struct dir_cache_entry * p; |
p | 220 | fs/ext2/dcache.c | if ((p = find_name (queue, dev, dir, our_name, len))) { |
p | 221 | fs/ext2/dcache.c | if (p != first) { |
p | 222 | fs/ext2/dcache.c | remove_from_cache (p); |
p | 223 | fs/ext2/dcache.c | add_to_cache (p); |
p | 225 | fs/ext2/dcache.c | if (p != queue_head[queue]) { |
p | 226 | fs/ext2/dcache.c | remove_from_queue (queue, p); |
p | 227 | fs/ext2/dcache.c | add_to_queue (queue, p); |
p | 232 | fs/ext2/dcache.c | our_name, p->ino, hits, misses); |
p | 235 | fs/ext2/dcache.c | return p->ino; |
p | 256 | fs/ext2/dcache.c | struct dir_cache_entry * p; |
p | 268 | fs/ext2/dcache.c | if ((p = find_name (queue, dev, dir, name, len))) { |
p | 269 | fs/ext2/dcache.c | p->dir = dir; |
p | 270 | fs/ext2/dcache.c | p->ino = ino; |
p | 271 | fs/ext2/dcache.c | if (p != first) { |
p | 272 | fs/ext2/dcache.c | remove_from_cache (p); |
p | 273 | fs/ext2/dcache.c | add_to_cache (p); |
p | 275 | fs/ext2/dcache.c | if (p != queue_head[queue]) { |
p | 276 | fs/ext2/dcache.c | remove_from_queue (queue, p); |
p | 277 | fs/ext2/dcache.c | add_to_queue (queue, p); |
p | 281 | fs/ext2/dcache.c | p = first_free; |
p | 282 | fs/ext2/dcache.c | first_free = p->next; |
p | 287 | fs/ext2/dcache.c | p = last; |
p | 288 | fs/ext2/dcache.c | last = p->prev; |
p | 291 | fs/ext2/dcache.c | remove_from_queue (hash (p->dev, p->dir), p); |
p | 294 | fs/ext2/dcache.c | p->dev = dev; |
p | 295 | fs/ext2/dcache.c | p->dir = dir; |
p | 296 | fs/ext2/dcache.c | p->ino = ino; |
p | 297 | fs/ext2/dcache.c | strncpy (p->name, name, len); |
p | 298 | fs/ext2/dcache.c | p->len = len; |
p | 299 | fs/ext2/dcache.c | p->name[len] = '\0'; |
p | 300 | fs/ext2/dcache.c | add_to_cache (p); |
p | 301 | fs/ext2/dcache.c | add_to_queue (queue, p); |
p | 316 | fs/ext2/dcache.c | struct dir_cache_entry * p; |
p | 327 | fs/ext2/dcache.c | if ((p = find_name (queue, dev, dir, name, len))) { |
p | 328 | fs/ext2/dcache.c | remove_from_cache (p); |
p | 329 | fs/ext2/dcache.c | remove_from_queue (queue, p); |
p | 330 | fs/ext2/dcache.c | p->next = first_free; |
p | 331 | fs/ext2/dcache.c | first_free = p; |
p | 232 | fs/ext2/file.c | char * p; |
p | 278 | fs/ext2/file.c | p = (pos % sb->s_blocksize) + bh->b_data; |
p | 281 | fs/ext2/file.c | memcpy_fromfs (p, buf, c); |
p | 193 | fs/ext2/inode.c | unsigned long * p; |
p | 197 | fs/ext2/inode.c | p = inode->u.ext2_i.i_data + nr; |
p | 199 | fs/ext2/inode.c | tmp = *p; |
p | 202 | fs/ext2/inode.c | if (tmp == *p) |
p | 237 | fs/ext2/inode.c | if (*p) { |
p | 242 | fs/ext2/inode.c | *p = tmp; |
p | 260 | fs/ext2/inode.c | unsigned long * p; |
p | 274 | fs/ext2/inode.c | p = (unsigned long *) bh->b_data + nr; |
p | 276 | fs/ext2/inode.c | tmp = *p; |
p | 279 | fs/ext2/inode.c | if (tmp == *p) { |
p | 311 | fs/ext2/inode.c | if (*p) { |
p | 316 | fs/ext2/inode.c | *p = tmp; |
p | 335 | fs/ext2/inode.c | unsigned long * p; |
p | 348 | fs/ext2/inode.c | p = (unsigned long *) bh->b_data + nr + i; |
p | 351 | fs/ext2/inode.c | if(*p == 0) goto out; |
p | 354 | fs/ext2/inode.c | if(i==0) firstblock = *p; |
p | 355 | fs/ext2/inode.c | else if(*p != firstblock + i) goto out; |
p | 358 | fs/ext2/inode.c | p = (unsigned long *) bh->b_data + nr; |
p | 359 | fs/ext2/inode.c | result = generate_cluster(bh->b_dev, (int *) p, blocksize); |
p | 56 | fs/ext2/truncate.c | unsigned long * p; |
p | 68 | fs/ext2/truncate.c | p = inode->u.ext2_i.i_data + i; |
p | 69 | fs/ext2/truncate.c | tmp = *p; |
p | 82 | fs/ext2/truncate.c | if ((bh && bh->b_count != 1) || tmp != *p) { |
p | 87 | fs/ext2/truncate.c | *p = 0; |
p | 113 | fs/ext2/truncate.c | static int trunc_indirect (struct inode * inode, int offset, unsigned long * p) |
p | 127 | fs/ext2/truncate.c | tmp = *p; |
p | 131 | fs/ext2/truncate.c | if (tmp != *p) { |
p | 136 | fs/ext2/truncate.c | *p = 0; |
p | 196 | fs/ext2/truncate.c | tmp = *p; |
p | 197 | fs/ext2/truncate.c | *p = 0; |
p | 211 | fs/ext2/truncate.c | unsigned long * p) |
p | 222 | fs/ext2/truncate.c | tmp = *p; |
p | 226 | fs/ext2/truncate.c | if (tmp != *p) { |
p | 231 | fs/ext2/truncate.c | *p = 0; |
p | 256 | fs/ext2/truncate.c | tmp = *p; |
p | 257 | fs/ext2/truncate.c | *p = 0; |
p | 274 | fs/ext2/truncate.c | unsigned long * tind, * p; |
p | 283 | fs/ext2/truncate.c | p = inode->u.ext2_i.i_data + EXT2_TIND_BLOCK; |
p | 284 | fs/ext2/truncate.c | if (!(tmp = *p)) |
p | 287 | fs/ext2/truncate.c | if (tmp != *p) { |
p | 292 | fs/ext2/truncate.c | *p = 0; |
p | 315 | fs/ext2/truncate.c | tmp = *p; |
p | 316 | fs/ext2/truncate.c | *p = 0; |
p | 253 | fs/hpfs/hpfs_fs.c | static unsigned choose_conv(unsigned char *p, unsigned len); |
p | 531 | fs/hpfs/hpfs_fs.c | unsigned char *p = addr; |
p | 532 | fs/hpfs/hpfs_fs.c | return p[0] == 0 && memcmp(p, p + 1, len - 1) == 0; |
p | 542 | fs/hpfs/hpfs_fs.c | char *p, *rhs; |
p | 553 | fs/hpfs/hpfs_fs.c | for (p = strtok(opts, ","); p != 0; p = strtok(0, ",")) { |
p | 554 | fs/hpfs/hpfs_fs.c | if ((rhs = strchr(p, '=')) != 0) |
p | 556 | fs/hpfs/hpfs_fs.c | if (!strcmp(p, "uid")) { |
p | 563 | fs/hpfs/hpfs_fs.c | else if (!strcmp(p, "gid")) { |
p | 570 | fs/hpfs/hpfs_fs.c | else if (!strcmp(p, "umask")) { |
p | 577 | fs/hpfs/hpfs_fs.c | else if (!strcmp(p, "case")) { |
p | 585 | fs/hpfs/hpfs_fs.c | else if (!strcmp(p, "conv")) { |
p | 944 | fs/hpfs/hpfs_fs.c | static unsigned choose_conv(unsigned char *p, unsigned len) |
p | 952 | fs/hpfs/hpfs_fs.c | c = *p++; |
p | 954 | fs/hpfs/hpfs_fs.c | if (c == '\r' && len && *p == '\n') |
p | 283 | fs/isofs/rock.c | { int p; |
p | 284 | fs/isofs/rock.c | for(p=0;p<rr->u.ER.len_id;p++) printk("%c",rr->u.ER.data[p]); |
p | 14 | fs/isofs/util.c | isonum_711 (char * p) |
p | 16 | fs/isofs/util.c | return (*p & 0xff); |
p | 20 | fs/isofs/util.c | isonum_712 (char * p) |
p | 24 | fs/isofs/util.c | val = *p; |
p | 31 | fs/isofs/util.c | isonum_721 (char * p) |
p | 33 | fs/isofs/util.c | return ((p[0] & 0xff) | ((p[1] & 0xff) << 8)); |
p | 37 | fs/isofs/util.c | isonum_722 (char * p) |
p | 39 | fs/isofs/util.c | return (((p[0] & 0xff) << 8) | (p[1] & 0xff)); |
p | 43 | fs/isofs/util.c | isonum_723 (char * p) |
p | 46 | fs/isofs/util.c | if (p[0] != p[3] || p[1] != p[2]) { |
p | 51 | fs/isofs/util.c | return (isonum_721 (p)); |
p | 55 | fs/isofs/util.c | isonum_731 (char * p) |
p | 57 | fs/isofs/util.c | return ((p[0] & 0xff) |
p | 58 | fs/isofs/util.c | | ((p[1] & 0xff) << 8) |
p | 59 | fs/isofs/util.c | | ((p[2] & 0xff) << 16) |
p | 60 | fs/isofs/util.c | | ((p[3] & 0xff) << 24)); |
p | 64 | fs/isofs/util.c | isonum_732 (char * p) |
p | 66 | fs/isofs/util.c | return (((p[0] & 0xff) << 24) |
p | 67 | fs/isofs/util.c | | ((p[1] & 0xff) << 16) |
p | 68 | fs/isofs/util.c | | ((p[2] & 0xff) << 8) |
p | 69 | fs/isofs/util.c | | (p[3] & 0xff)); |
p | 73 | fs/isofs/util.c | isonum_733 (char * p) |
p | 79 | fs/isofs/util.c | if (p[i] != p[7-i]) { |
p | 85 | fs/isofs/util.c | return (isonum_731 (p)); |
p | 92 | fs/isofs/util.c | int iso_date(char * p, int flag) |
p | 97 | fs/isofs/util.c | year = p[0] - 70; |
p | 98 | fs/isofs/util.c | month = p[1]; |
p | 99 | fs/isofs/util.c | day = p[2]; |
p | 100 | fs/isofs/util.c | hour = p[3]; |
p | 101 | fs/isofs/util.c | minute = p[4]; |
p | 102 | fs/isofs/util.c | second = p[5]; |
p | 103 | fs/isofs/util.c | if (flag == 0) tz = p[6]; /* High sierra has no time zone */ |
p | 194 | fs/minix/file.c | char * p; |
p | 230 | fs/minix/file.c | p = (pos % BLOCK_SIZE) + bh->b_data; |
p | 233 | fs/minix/file.c | memcpy_fromfs(p,buf,c); |
p | 277 | fs/minix/inode.c | unsigned short *p; |
p | 280 | fs/minix/inode.c | p = inode->u.minix_i.i_data + nr; |
p | 282 | fs/minix/inode.c | tmp = *p; |
p | 285 | fs/minix/inode.c | if (tmp == *p) |
p | 296 | fs/minix/inode.c | if (*p) { |
p | 301 | fs/minix/inode.c | *p = tmp; |
p | 311 | fs/minix/inode.c | unsigned short *p; |
p | 324 | fs/minix/inode.c | p = nr + (unsigned short *) bh->b_data; |
p | 326 | fs/minix/inode.c | tmp = *p; |
p | 329 | fs/minix/inode.c | if (tmp == *p) { |
p | 346 | fs/minix/inode.c | if (*p) { |
p | 351 | fs/minix/inode.c | *p = tmp; |
p | 28 | fs/minix/truncate.c | unsigned short * p; |
p | 36 | fs/minix/truncate.c | p = i + inode->u.minix_i.i_data; |
p | 37 | fs/minix/truncate.c | if (!(tmp = *p)) |
p | 44 | fs/minix/truncate.c | if ((bh && bh->b_count != 1) || tmp != *p) { |
p | 49 | fs/minix/truncate.c | *p = 0; |
p | 57 | fs/minix/truncate.c | static int trunc_indirect(struct inode * inode, int offset, unsigned short * p) |
p | 66 | fs/minix/truncate.c | tmp = *p; |
p | 70 | fs/minix/truncate.c | if (tmp != *p) { |
p | 75 | fs/minix/truncate.c | *p = 0; |
p | 111 | fs/minix/truncate.c | tmp = *p; |
p | 112 | fs/minix/truncate.c | *p = 0; |
p | 123 | fs/minix/truncate.c | unsigned short * dind, * p; |
p | 127 | fs/minix/truncate.c | p = 8 + inode->u.minix_i.i_data; |
p | 128 | fs/minix/truncate.c | if (!(tmp = *p)) |
p | 131 | fs/minix/truncate.c | if (tmp != *p) { |
p | 136 | fs/minix/truncate.c | *p = 0; |
p | 157 | fs/minix/truncate.c | tmp = *p; |
p | 158 | fs/minix/truncate.c | *p = 0; |
p | 280 | fs/namei.c | struct task_struct ** p; |
p | 352 | fs/namei.c | for (p = &LAST_TASK ; p > &FIRST_TASK ; --p) { |
p | 354 | fs/namei.c | if (!*p) |
p | 356 | fs/namei.c | if (inode == (*p)->executable) { |
p | 360 | fs/namei.c | for(mpnt = (*p)->mm->mmap; mpnt; mpnt = mpnt->vm_next) { |
p | 55 | fs/nfs/proc.c | static int *nfs_rpc_header(int *p, int procedure, int ruid); |
p | 56 | fs/nfs/proc.c | static int *nfs_rpc_verify(int *p); |
p | 71 | fs/nfs/proc.c | static inline void nfs_rpc_free(int *p) |
p | 73 | fs/nfs/proc.c | kfree((void *)p); |
p | 81 | fs/nfs/proc.c | static inline int *xdr_encode_fhandle(int *p, struct nfs_fh *fhandle) |
p | 83 | fs/nfs/proc.c | *((struct nfs_fh *) p) = *fhandle; |
p | 84 | fs/nfs/proc.c | p += (sizeof (*fhandle) + 3) >> 2; |
p | 85 | fs/nfs/proc.c | return p; |
p | 88 | fs/nfs/proc.c | static inline int *xdr_decode_fhandle(int *p, struct nfs_fh *fhandle) |
p | 90 | fs/nfs/proc.c | *fhandle = *((struct nfs_fh *) p); |
p | 91 | fs/nfs/proc.c | p += (sizeof (*fhandle) + 3) >> 2; |
p | 92 | fs/nfs/proc.c | return p; |
p | 95 | fs/nfs/proc.c | static inline int *xdr_encode_string(int *p, const char *string) |
p | 101 | fs/nfs/proc.c | *p++ = htonl(len); |
p | 102 | fs/nfs/proc.c | memcpy((char *) p, string, len); |
p | 103 | fs/nfs/proc.c | memset(((char *) p) + len, '\0', (quadlen << 2) - len); |
p | 104 | fs/nfs/proc.c | p += quadlen; |
p | 105 | fs/nfs/proc.c | return p; |
p | 108 | fs/nfs/proc.c | static inline int *xdr_decode_string(int *p, char *string, int maxlen) |
p | 112 | fs/nfs/proc.c | len = ntohl(*p++); |
p | 115 | fs/nfs/proc.c | memcpy(string, (char *) p, len); |
p | 117 | fs/nfs/proc.c | p += (len + 3) >> 2; |
p | 118 | fs/nfs/proc.c | return p; |
p | 121 | fs/nfs/proc.c | static inline int *xdr_encode_data(int *p, char *data, int len) |
p | 126 | fs/nfs/proc.c | *p++ = htonl(len); |
p | 127 | fs/nfs/proc.c | memcpy((char *) p, data, len); |
p | 128 | fs/nfs/proc.c | memset(((char *) p) + len, '\0', (quadlen << 2) - len); |
p | 129 | fs/nfs/proc.c | p += quadlen; |
p | 130 | fs/nfs/proc.c | return p; |
p | 133 | fs/nfs/proc.c | static inline int *xdr_decode_data(int *p, char *data, int *lenp, int maxlen) |
p | 137 | fs/nfs/proc.c | len = *lenp = ntohl(*p++); |
p | 140 | fs/nfs/proc.c | memcpy(data, (char *) p, len); |
p | 141 | fs/nfs/proc.c | p += (len + 3) >> 2; |
p | 142 | fs/nfs/proc.c | return p; |
p | 145 | fs/nfs/proc.c | static int *xdr_decode_fattr(int *p, struct nfs_fattr *fattr) |
p | 147 | fs/nfs/proc.c | fattr->type = (enum nfs_ftype) ntohl(*p++); |
p | 148 | fs/nfs/proc.c | fattr->mode = ntohl(*p++); |
p | 149 | fs/nfs/proc.c | fattr->nlink = ntohl(*p++); |
p | 150 | fs/nfs/proc.c | fattr->uid = ntohl(*p++); |
p | 151 | fs/nfs/proc.c | fattr->gid = ntohl(*p++); |
p | 152 | fs/nfs/proc.c | fattr->size = ntohl(*p++); |
p | 153 | fs/nfs/proc.c | fattr->blocksize = ntohl(*p++); |
p | 154 | fs/nfs/proc.c | fattr->rdev = ntohl(*p++); |
p | 155 | fs/nfs/proc.c | fattr->blocks = ntohl(*p++); |
p | 156 | fs/nfs/proc.c | fattr->fsid = ntohl(*p++); |
p | 157 | fs/nfs/proc.c | fattr->fileid = ntohl(*p++); |
p | 158 | fs/nfs/proc.c | fattr->atime.seconds = ntohl(*p++); |
p | 159 | fs/nfs/proc.c | fattr->atime.useconds = ntohl(*p++); |
p | 160 | fs/nfs/proc.c | fattr->mtime.seconds = ntohl(*p++); |
p | 161 | fs/nfs/proc.c | fattr->mtime.useconds = ntohl(*p++); |
p | 162 | fs/nfs/proc.c | fattr->ctime.seconds = ntohl(*p++); |
p | 163 | fs/nfs/proc.c | fattr->ctime.useconds = ntohl(*p++); |
p | 164 | fs/nfs/proc.c | return p; |
p | 167 | fs/nfs/proc.c | static int *xdr_encode_sattr(int *p, struct nfs_sattr *sattr) |
p | 169 | fs/nfs/proc.c | *p++ = htonl(sattr->mode); |
p | 170 | fs/nfs/proc.c | *p++ = htonl(sattr->uid); |
p | 171 | fs/nfs/proc.c | *p++ = htonl(sattr->gid); |
p | 172 | fs/nfs/proc.c | *p++ = htonl(sattr->size); |
p | 173 | fs/nfs/proc.c | *p++ = htonl(sattr->atime.seconds); |
p | 174 | fs/nfs/proc.c | *p++ = htonl(sattr->atime.useconds); |
p | 175 | fs/nfs/proc.c | *p++ = htonl(sattr->mtime.seconds); |
p | 176 | fs/nfs/proc.c | *p++ = htonl(sattr->mtime.useconds); |
p | 177 | fs/nfs/proc.c | return p; |
p | 180 | fs/nfs/proc.c | static int *xdr_decode_entry(int *p, struct nfs_entry *entry) |
p | 182 | fs/nfs/proc.c | entry->fileid = ntohl(*p++); |
p | 183 | fs/nfs/proc.c | if (!(p = xdr_decode_string(p, entry->name, NFS_MAXNAMLEN))) |
p | 185 | fs/nfs/proc.c | entry->cookie = ntohl(*p++); |
p | 187 | fs/nfs/proc.c | return p; |
p | 190 | fs/nfs/proc.c | static int *xdr_decode_fsinfo(int *p, struct nfs_fsinfo *res) |
p | 192 | fs/nfs/proc.c | res->tsize = ntohl(*p++); |
p | 193 | fs/nfs/proc.c | res->bsize = ntohl(*p++); |
p | 194 | fs/nfs/proc.c | res->blocks = ntohl(*p++); |
p | 195 | fs/nfs/proc.c | res->bfree = ntohl(*p++); |
p | 196 | fs/nfs/proc.c | res->bavail = ntohl(*p++); |
p | 197 | fs/nfs/proc.c | return p; |
p | 207 | fs/nfs/proc.c | int *p, *p0; |
p | 215 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_GETATTR, ruid); |
p | 216 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 217 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 221 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 223 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 224 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 241 | fs/nfs/proc.c | int *p, *p0; |
p | 249 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_SETATTR, ruid); |
p | 250 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 251 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 252 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 256 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 258 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 259 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 276 | fs/nfs/proc.c | int *p, *p0; |
p | 288 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_LOOKUP, ruid); |
p | 289 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 290 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 291 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 295 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 297 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 298 | fs/nfs/proc.c | p = xdr_decode_fhandle(p, fhandle); |
p | 299 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 316 | fs/nfs/proc.c | int *p, *p0; |
p | 324 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_READLINK, ruid); |
p | 325 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 326 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 330 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 332 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 333 | fs/nfs/proc.c | if (!(p = xdr_decode_string(p, res, NFS_MAXPATHLEN))) { |
p | 354 | fs/nfs/proc.c | int *p, *p0; |
p | 363 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_READ, ruid); |
p | 364 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 365 | fs/nfs/proc.c | *p++ = htonl(offset); |
p | 366 | fs/nfs/proc.c | *p++ = htonl(count); |
p | 367 | fs/nfs/proc.c | *p++ = htonl(count); /* traditional, could be any value */ |
p | 368 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 372 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 374 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 375 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 376 | fs/nfs/proc.c | if (!(p = xdr_decode_data(p, data, &len, count))) { |
p | 397 | fs/nfs/proc.c | int *p, *p0; |
p | 405 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_WRITE, ruid); |
p | 406 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 407 | fs/nfs/proc.c | *p++ = htonl(offset); /* traditional, could be any value */ |
p | 408 | fs/nfs/proc.c | *p++ = htonl(offset); |
p | 409 | fs/nfs/proc.c | *p++ = htonl(count); /* traditional, could be any value */ |
p | 410 | fs/nfs/proc.c | p = xdr_encode_data(p, data, count); |
p | 411 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 415 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 417 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 418 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 436 | fs/nfs/proc.c | int *p, *p0; |
p | 444 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_CREATE, ruid); |
p | 445 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 446 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 447 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 448 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 452 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 454 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 455 | fs/nfs/proc.c | p = xdr_decode_fhandle(p, fhandle); |
p | 456 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 472 | fs/nfs/proc.c | int *p, *p0; |
p | 480 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_REMOVE, ruid); |
p | 481 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 482 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 483 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 487 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 489 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 507 | fs/nfs/proc.c | int *p, *p0; |
p | 515 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_RENAME, ruid); |
p | 516 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, old_dir); |
p | 517 | fs/nfs/proc.c | p = xdr_encode_string(p, old_name); |
p | 518 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, new_dir); |
p | 519 | fs/nfs/proc.c | p = xdr_encode_string(p, new_name); |
p | 520 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 524 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 526 | 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_LINK, ruid); |
p | 552 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 553 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 554 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 555 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 559 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 561 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 578 | fs/nfs/proc.c | int *p, *p0; |
p | 586 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_SYMLINK, ruid); |
p | 587 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 588 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 589 | fs/nfs/proc.c | p = xdr_encode_string(p, path); |
p | 590 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 591 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 595 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 597 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 615 | fs/nfs/proc.c | int *p, *p0; |
p | 623 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_MKDIR, ruid); |
p | 624 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 625 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 626 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 627 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 631 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 633 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 634 | fs/nfs/proc.c | p = xdr_decode_fhandle(p, fhandle); |
p | 635 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 651 | fs/nfs/proc.c | int *p, *p0; |
p | 659 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_RMDIR, ruid); |
p | 660 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 661 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 662 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 666 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 668 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 685 | fs/nfs/proc.c | int *p, *p0; |
p | 697 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_READDIR, ruid); |
p | 698 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 699 | fs/nfs/proc.c | *p++ = htonl(cookie); |
p | 700 | fs/nfs/proc.c | *p++ = htonl(size); |
p | 701 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 705 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 707 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 708 | fs/nfs/proc.c | for (i = 0; i < count && *p++; i++) { |
p | 709 | fs/nfs/proc.c | if (!(p = xdr_decode_entry(p, entry++))) |
p | 712 | fs/nfs/proc.c | if (!p) { |
p | 717 | fs/nfs/proc.c | eof = (i == count && !*p++ && *p++) |
p | 718 | fs/nfs/proc.c | || (i < count && *p++); |
p | 739 | fs/nfs/proc.c | int *p, *p0; |
p | 747 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_STATFS, ruid); |
p | 748 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 749 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p)) < 0) { |
p | 753 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 755 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 756 | fs/nfs/proc.c | p = xdr_decode_fsinfo(p, res); |
p | 774 | fs/nfs/proc.c | static int *nfs_rpc_header(int *p, int procedure, int ruid) |
p | 785 | fs/nfs/proc.c | *p++ = htonl(++xid); |
p | 786 | fs/nfs/proc.c | *p++ = htonl(RPC_CALL); |
p | 787 | fs/nfs/proc.c | *p++ = htonl(RPC_VERSION); |
p | 788 | fs/nfs/proc.c | *p++ = htonl(NFS_PROGRAM); |
p | 789 | fs/nfs/proc.c | *p++ = htonl(NFS_VERSION); |
p | 790 | fs/nfs/proc.c | *p++ = htonl(procedure); |
p | 791 | fs/nfs/proc.c | *p++ = htonl(RPC_AUTH_UNIX); |
p | 792 | fs/nfs/proc.c | p1 = p++; |
p | 793 | fs/nfs/proc.c | *p++ = htonl(CURRENT_TIME); /* traditional, could be anything */ |
p | 794 | fs/nfs/proc.c | p = xdr_encode_string(p, (char *) sys); |
p | 795 | fs/nfs/proc.c | *p++ = htonl(ruid ? current->uid : current->euid); |
p | 796 | fs/nfs/proc.c | *p++ = htonl(current->egid); |
p | 797 | fs/nfs/proc.c | p2 = p++; |
p | 799 | fs/nfs/proc.c | *p++ = htonl(current->groups[i]); |
p | 801 | fs/nfs/proc.c | *p1 = htonl((p - (p1 + 1)) << 2); |
p | 802 | fs/nfs/proc.c | *p++ = htonl(RPC_AUTH_NULL); |
p | 803 | fs/nfs/proc.c | *p++ = htonl(0); |
p | 804 | fs/nfs/proc.c | return p; |
p | 807 | fs/nfs/proc.c | static int *nfs_rpc_verify(int *p) |
p | 811 | fs/nfs/proc.c | p++; |
p | 812 | fs/nfs/proc.c | if ((n = ntohl(*p++)) != RPC_REPLY) { |
p | 816 | fs/nfs/proc.c | if ((n = ntohl(*p++)) != RPC_MSG_ACCEPTED) { |
p | 820 | fs/nfs/proc.c | switch (n = ntohl(*p++)) { |
p | 827 | fs/nfs/proc.c | if ((n = ntohl(*p++)) > 400) { |
p | 831 | fs/nfs/proc.c | p += (n + 3) >> 2; |
p | 832 | fs/nfs/proc.c | if ((n = ntohl(*p++)) != RPC_SUCCESS) { |
p | 836 | fs/nfs/proc.c | return p; |
p | 41 | fs/proc/array.c | unsigned long p = file->f_pos; |
p | 53 | fs/proc/array.c | if (p >= high_memory + PAGE_SIZE) |
p | 55 | fs/proc/array.c | if (count > high_memory + PAGE_SIZE - p) |
p | 56 | fs/proc/array.c | count = high_memory + PAGE_SIZE - p; |
p | 59 | fs/proc/array.c | if (p < sizeof(struct user) && count > 0) { |
p | 61 | fs/proc/array.c | if (p + count1 > sizeof(struct user)) |
p | 62 | fs/proc/array.c | count1 = sizeof(struct user)-p; |
p | 63 | fs/proc/array.c | pnt = (char *) &dump + p; |
p | 66 | fs/proc/array.c | p += count1; |
p | 71 | fs/proc/array.c | while (p < 2*PAGE_SIZE && count > 0) { |
p | 74 | fs/proc/array.c | p++; |
p | 78 | fs/proc/array.c | memcpy_tofs(buf,(void *) (p - PAGE_SIZE),count); |
p | 171 | fs/proc/array.c | struct task_struct ** p; |
p | 173 | fs/proc/array.c | p = task; |
p | 174 | fs/proc/array.c | while (++p < task+NR_TASKS) { |
p | 175 | fs/proc/array.c | if (*p && (*p)->pid == pid) |
p | 176 | fs/proc/array.c | return p; |
p | 181 | fs/proc/array.c | static unsigned long get_phys_addr(struct task_struct ** p, unsigned long ptr) |
p | 185 | fs/proc/array.c | if (!p || !*p || ptr >= TASK_SIZE) |
p | 187 | fs/proc/array.c | page = *PAGE_DIR_OFFSET((*p)->tss.cr3,ptr); |
p | 200 | fs/proc/array.c | static int get_array(struct task_struct ** p, unsigned long start, unsigned long end, char * buffer) |
p | 209 | fs/proc/array.c | addr = get_phys_addr(p, start); |
p | 235 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
p | 237 | fs/proc/array.c | if (!p || !*p) |
p | 239 | fs/proc/array.c | return get_array(p, (*p)->mm->env_start, (*p)->mm->env_end, buffer); |
p | 244 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
p | 246 | fs/proc/array.c | if (!p || !*p) |
p | 248 | fs/proc/array.c | return get_array(p, (*p)->mm->arg_start, (*p)->mm->arg_end, buffer); |
p | 251 | fs/proc/array.c | static unsigned long get_wchan(struct task_struct *p) |
p | 257 | fs/proc/array.c | if (!p || p == current || p->state == TASK_RUNNING) |
p | 259 | fs/proc/array.c | stack_page = p->kernel_stack_page; |
p | 262 | fs/proc/array.c | ebp = p->tss.ebp; |
p | 280 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
p | 286 | fs/proc/array.c | if (!p || !*p) |
p | 288 | fs/proc/array.c | if ((*p)->state < 0 || (*p)->state > 5) |
p | 291 | fs/proc/array.c | state = "RSDZTD"[(*p)->state]; |
p | 293 | fs/proc/array.c | vsize = (*p)->kernel_stack_page; |
p | 297 | fs/proc/array.c | vsize = (*p)->mm->brk - (*p)->mm->start_code + PAGE_SIZE-1; |
p | 301 | fs/proc/array.c | wchan = get_wchan(*p); |
p | 303 | fs/proc/array.c | switch((int) (*p)->sigaction[i].sa_handler) { |
p | 309 | fs/proc/array.c | if ((*p)->tty) |
p | 310 | fs/proc/array.c | tty_pgrp = (*p)->tty->pgrp; |
p | 317 | fs/proc/array.c | (*p)->comm, |
p | 319 | fs/proc/array.c | (*p)->p_pptr->pid, |
p | 320 | fs/proc/array.c | (*p)->pgrp, |
p | 321 | fs/proc/array.c | (*p)->session, |
p | 322 | fs/proc/array.c | (*p)->tty ? (*p)->tty->device : 0, |
p | 324 | fs/proc/array.c | (*p)->flags, |
p | 325 | fs/proc/array.c | (*p)->mm->min_flt, |
p | 326 | fs/proc/array.c | (*p)->mm->cmin_flt, |
p | 327 | fs/proc/array.c | (*p)->mm->maj_flt, |
p | 328 | fs/proc/array.c | (*p)->mm->cmaj_flt, |
p | 329 | fs/proc/array.c | (*p)->utime, |
p | 330 | fs/proc/array.c | (*p)->stime, |
p | 331 | fs/proc/array.c | (*p)->cutime, |
p | 332 | fs/proc/array.c | (*p)->cstime, |
p | 333 | fs/proc/array.c | (*p)->counter, /* this is the kernel priority --- |
p | 335 | fs/proc/array.c | (*p)->priority, /* this is the nice value --- |
p | 337 | fs/proc/array.c | (*p)->timeout, |
p | 338 | fs/proc/array.c | (*p)->it_real_value, |
p | 339 | fs/proc/array.c | (*p)->start_time, |
p | 341 | fs/proc/array.c | (*p)->mm->rss, /* you might want to shift this left 3 */ |
p | 342 | fs/proc/array.c | (*p)->rlim[RLIMIT_RSS].rlim_cur, |
p | 343 | fs/proc/array.c | (*p)->mm->start_code, |
p | 344 | fs/proc/array.c | (*p)->mm->end_code, |
p | 345 | fs/proc/array.c | (*p)->mm->start_stack, |
p | 348 | fs/proc/array.c | (*p)->signal, |
p | 349 | fs/proc/array.c | (*p)->blocked, |
p | 357 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
p | 362 | fs/proc/array.c | if (!p || !*p) |
p | 364 | fs/proc/array.c | tpag = (*p)->mm->end_code / PAGE_SIZE; |
p | 365 | fs/proc/array.c | if ((*p)->state != TASK_ZOMBIE) { |
p | 366 | fs/proc/array.c | pagedir = (unsigned long *) (*p)->tss.cr3; |
p | 405 | fs/proc/array.c | struct task_struct **p = get_task(pid); |
p | 408 | fs/proc/array.c | if (!p || !*p) |
p | 411 | fs/proc/array.c | for(map = (*p)->mm->mmap; map != NULL; map = map->vm_next) { |
p | 57 | fs/proc/fd.c | struct task_struct * p; |
p | 103 | fs/proc/fd.c | if ((p = task[i]) && p->pid == pid) |
p | 108 | fs/proc/fd.c | if (fd >= NR_OPEN || !p->files->fd[fd] || !p->files->fd[fd]->f_inode) |
p | 114 | fs/proc/fd.c | for (mpnt = p->mm->mmap; mpnt; mpnt = mpnt->vm_next) |
p | 129 | fs/proc/fd.c | struct task_struct * p; |
p | 159 | fs/proc/fd.c | if ((p = task[i]) && p->pid == pid) |
p | 166 | fs/proc/fd.c | if (!p->files->fd[fd] || !p->files->fd[fd]->f_inode) |
p | 171 | fs/proc/fd.c | for (mpnt = p->mm->mmap ; mpnt ; mpnt = mpnt->vm_next) |
p | 77 | fs/proc/inode.c | struct task_struct * p; |
p | 91 | fs/proc/inode.c | p = task[0]; |
p | 93 | fs/proc/inode.c | if ((p = task[i]) && (p->pid == pid)) |
p | 95 | fs/proc/inode.c | if (!p || i >= NR_TASKS) |
p | 135 | fs/proc/inode.c | inode->i_uid = p->euid; |
p | 136 | fs/proc/inode.c | inode->i_gid = p->egid; |
p | 172 | fs/proc/inode.c | if (ino >= NR_OPEN || !p->files->fd[ino]) |
p | 183 | fs/proc/inode.c | for (mpnt = p->mm->mmap ; mpnt ; mpnt = mpnt->vm_next) |
p | 45 | fs/proc/link.c | struct task_struct * p; |
p | 62 | fs/proc/link.c | if ((p = task[i]) && p->pid == pid) |
p | 69 | fs/proc/link.c | inode = p->fs->pwd; |
p | 72 | fs/proc/link.c | inode = p->fs->root; |
p | 75 | fs/proc/link.c | inode = p->executable; |
p | 81 | fs/proc/link.c | if (ino < NR_OPEN && p->files->fd[ino]) |
p | 82 | fs/proc/link.c | inode = p->files->fd[ino]->f_inode; |
p | 88 | fs/proc/link.c | for(mpnt = p->mm->mmap; mpnt && j >= 0; |
p | 136 | fs/proc/root.c | struct task_struct * p; |
p | 161 | fs/proc/root.c | p = task[nr]; |
p | 162 | fs/proc/root.c | if (!p || !(pid = p->pid)) |
p | 47 | fs/select.c | static void free_wait(select_table * p) |
p | 49 | fs/select.c | struct select_table_entry * entry = p->entry + p->nr; |
p | 51 | fs/select.c | while (p->nr > 0) { |
p | 52 | fs/select.c | p->nr--; |
p | 249 | fs/sysv/file.c | char * p; |
p | 294 | fs/sysv/file.c | p = (pos & sb->sv_block_size_1) + bh_data; |
p | 301 | fs/sysv/file.c | memcpy_fromfs(p,buf,c); |
p | 476 | fs/sysv/inode.c | unsigned long *p; |
p | 480 | fs/sysv/inode.c | p = inode->u.sysv_i.i_data + nr; |
p | 482 | fs/sysv/inode.c | tmp = *p; |
p | 485 | fs/sysv/inode.c | if (tmp == *p) { |
p | 498 | fs/sysv/inode.c | if (*p) { |
p | 503 | fs/sysv/inode.c | *p = tmp; |
p | 515 | fs/sysv/inode.c | sysv_zone_t *p; |
p | 529 | fs/sysv/inode.c | p = nr + (sysv_zone_t *) *start; |
p | 531 | fs/sysv/inode.c | block = tmp = *p; |
p | 536 | fs/sysv/inode.c | if (tmp == *p) { |
p | 554 | fs/sysv/inode.c | if (*p) { |
p | 559 | fs/sysv/inode.c | *p = (sb->sv_convert ? to_coh_ulong(block) : block); |
p | 616 | fs/sysv/inode.c | static inline unsigned long read3byte (char * p) |
p | 618 | fs/sysv/inode.c | return (unsigned long)(*(unsigned short *)p) |
p | 619 | fs/sysv/inode.c | | (unsigned long)(*(unsigned char *)(p+2)) << 16; |
p | 622 | fs/sysv/inode.c | static inline void write3byte (char * p, unsigned long val) |
p | 624 | fs/sysv/inode.c | *(unsigned short *)p = (unsigned short) val; |
p | 625 | fs/sysv/inode.c | *(unsigned char *)(p+2) = val >> 16; |
p | 628 | fs/sysv/inode.c | static inline unsigned long coh_read3byte (char * p) |
p | 630 | fs/sysv/inode.c | return (unsigned long)(*(unsigned char *)p) << 16 |
p | 631 | fs/sysv/inode.c | | (unsigned long)(*(unsigned short *)(p+1)); |
p | 634 | fs/sysv/inode.c | static inline void coh_write3byte (char * p, unsigned long val) |
p | 636 | fs/sysv/inode.c | *(unsigned char *)p = val >> 16; |
p | 637 | fs/sysv/inode.c | *(unsigned short *)(p+1) = (unsigned short) val; |
p | 35 | fs/sysv/truncate.c | unsigned long * p; |
p | 39 | fs/sysv/truncate.c | p = &inode->u.sysv_i.i_data[i]; |
p | 40 | fs/sysv/truncate.c | block = *p; |
p | 43 | fs/sysv/truncate.c | *p = 0; |
p | 53 | fs/sysv/truncate.c | static int coh_trunc_indirect (struct inode * inode, unsigned long blocks, unsigned long * p, int convert, unsigned char * dirt) |
p | 64 | fs/sysv/truncate.c | block = tmp = *p; |
p | 70 | fs/sysv/truncate.c | if (tmp != *p) { |
p | 75 | fs/sysv/truncate.c | *p = 0; |
p | 93 | fs/sysv/truncate.c | if (tmp != *p) { |
p | 97 | fs/sysv/truncate.c | *p = 0; |
p | 108 | fs/sysv/truncate.c | static int coh_trunc_dindirect (struct inode * inode, unsigned long blocks, unsigned long * p, int convert, unsigned char * dirt) |
p | 120 | fs/sysv/truncate.c | block = tmp = *p; |
p | 126 | fs/sysv/truncate.c | if (tmp != *p) { |
p | 131 | fs/sysv/truncate.c | *p = 0; |
p | 150 | fs/sysv/truncate.c | if (tmp != *p) { |
p | 154 | fs/sysv/truncate.c | *p = 0; |
p | 165 | fs/sysv/truncate.c | static int coh_trunc_tindirect (struct inode * inode, unsigned long blocks, unsigned long * p) |
p | 177 | fs/sysv/truncate.c | block = *p; |
p | 181 | fs/sysv/truncate.c | if (block != *p) { |
p | 186 | fs/sysv/truncate.c | *p = 0; |
p | 205 | fs/sysv/truncate.c | if (block != *p) { |
p | 209 | fs/sysv/truncate.c | *p = 0; |
p | 259 | fs/sysv/truncate.c | unsigned long * p; |
p | 267 | fs/sysv/truncate.c | p = inode->u.sysv_i.i_data + i; |
p | 268 | fs/sysv/truncate.c | block = *p; |
p | 276 | fs/sysv/truncate.c | if ((bh && bh->b_count != 1) || (block != *p)) { |
p | 281 | fs/sysv/truncate.c | *p = 0; |
p | 291 | fs/sysv/truncate.c | static int trunc_indirect(struct inode * inode, unsigned long offset, unsigned long * p, int convert, unsigned char * dirt) |
p | 302 | fs/sysv/truncate.c | indblock = indtmp = *p; |
p | 309 | fs/sysv/truncate.c | if (indtmp != *p) { |
p | 314 | fs/sysv/truncate.c | *p = 0; |
p | 348 | fs/sysv/truncate.c | if ((indbh->b_count != 1) || (indtmp != *p)) { |
p | 352 | fs/sysv/truncate.c | *p = 0; |
p | 360 | fs/sysv/truncate.c | static int trunc_dindirect(struct inode * inode, unsigned long offset, unsigned long * p, int convert, unsigned char * dirt) |
p | 370 | fs/sysv/truncate.c | indblock = indtmp = *p; |
p | 377 | fs/sysv/truncate.c | if (indtmp != *p) { |
p | 382 | fs/sysv/truncate.c | *p = 0; |
p | 402 | fs/sysv/truncate.c | if ((indbh->b_count != 1) || (indtmp != *p)) { |
p | 406 | fs/sysv/truncate.c | *p = 0; |
p | 414 | fs/sysv/truncate.c | static int trunc_tindirect(struct inode * inode, unsigned long offset, unsigned long * p, int convert, unsigned char * dirt) |
p | 424 | fs/sysv/truncate.c | indblock = indtmp = *p; |
p | 431 | fs/sysv/truncate.c | if (indtmp != *p) { |
p | 436 | fs/sysv/truncate.c | *p = 0; |
p | 456 | fs/sysv/truncate.c | if ((indbh->b_count != 1) || (indtmp != *p)) { |
p | 460 | fs/sysv/truncate.c | *p = 0; |
p | 449 | ibcs/binfmt_coff.c | bprm->p += change_ldt (0, bprm->page); |
p | 450 | ibcs/binfmt_coff.c | bprm->p -= MAX_ARG_PAGES*PAGE_SIZE; |
p | 451 | ibcs/binfmt_coff.c | bprm->p = (unsigned long) create_tables ((char *) bprm->p, |
p | 471 | ibcs/binfmt_coff.c | current->mm->start_stack = bprm->p; |
p | 49 | ibcs/binfmt_elf.c | unsigned long * create_elf_tables(char * p,int argc,int envc,struct elfhdr * exec, unsigned int load_addr, int ibcs) |
p | 58 | ibcs/binfmt_elf.c | mpnt->vm_start = PAGE_MASK & (unsigned long) p; |
p | 68 | ibcs/binfmt_elf.c | sp = (unsigned long *) (0xfffffffc & (unsigned long) p); |
p | 97 | ibcs/binfmt_elf.c | current->mm->arg_start = (unsigned long) p; |
p | 99 | ibcs/binfmt_elf.c | put_fs_long((unsigned long) p,argv++); |
p | 100 | ibcs/binfmt_elf.c | while (get_fs_byte(p++)) /* nothing */ ; |
p | 103 | ibcs/binfmt_elf.c | current->mm->arg_end = current->mm->env_start = (unsigned long) p; |
p | 105 | ibcs/binfmt_elf.c | put_fs_long((unsigned long) p,envp++); |
p | 106 | ibcs/binfmt_elf.c | while (get_fs_byte(p++)) /* nothing */ ; |
p | 109 | ibcs/binfmt_elf.c | current->mm->env_end = (unsigned long) p; |
p | 403 | ibcs/binfmt_elf.c | bprm->p = copy_strings(1,&passed_p,bprm->page,bprm->p,2); |
p | 407 | ibcs/binfmt_elf.c | if (!bprm->p) { |
p | 428 | ibcs/binfmt_elf.c | bprm->p += change_ldt(0, bprm->page); |
p | 429 | ibcs/binfmt_elf.c | current->mm->start_stack = bprm->p; |
p | 504 | ibcs/binfmt_elf.c | current->start_stack = p = elf_stack - 4; |
p | 506 | ibcs/binfmt_elf.c | bprm->p -= MAX_ARG_PAGES*PAGE_SIZE; |
p | 507 | ibcs/binfmt_elf.c | bprm->p = (unsigned long) |
p | 508 | ibcs/binfmt_elf.c | create_elf_tables((char *)bprm->p, |
p | 520 | ibcs/binfmt_elf.c | current->mm->start_stack = bprm->p; |
p | 539 | ibcs/binfmt_elf.c | regs->esp = bprm->p; /* stack pointer */ |
p | 19 | include/linux/binfmts.h | unsigned long p; |
p | 47 | include/linux/binfmts.h | extern unsigned long * create_tables(char * p,int argc,int envc,int ibcs); |
p | 49 | include/linux/binfmts.h | unsigned long p, int from_kmem); |
p | 369 | include/linux/sched.h | extern void sleep_on(struct wait_queue ** p); |
p | 370 | include/linux/sched.h | extern void interruptible_sleep_on(struct wait_queue ** p); |
p | 371 | include/linux/sched.h | extern void wake_up(struct wait_queue ** p); |
p | 372 | include/linux/sched.h | extern void wake_up_interruptible(struct wait_queue ** p); |
p | 375 | include/linux/sched.h | extern int send_sig(unsigned long sig,struct task_struct * p,int priv); |
p | 460 | include/linux/sched.h | extern inline void add_wait_queue(struct wait_queue ** p, struct wait_queue * wait) |
p | 474 | include/linux/sched.h | if (!*p) { |
p | 476 | include/linux/sched.h | *p = wait; |
p | 478 | include/linux/sched.h | wait->next = (*p)->next; |
p | 479 | include/linux/sched.h | (*p)->next = wait; |
p | 484 | include/linux/sched.h | extern inline void remove_wait_queue(struct wait_queue ** p, struct wait_queue * wait) |
p | 494 | include/linux/sched.h | if ((*p == wait) && |
p | 498 | include/linux/sched.h | ((*p = wait->next) == wait)) { |
p | 499 | include/linux/sched.h | *p = NULL; |
p | 505 | include/linux/sched.h | if (tmp == *p) |
p | 516 | include/linux/sched.h | printk("list = %08x, queue = %08x\n",(unsigned long) p, (unsigned long) wait); |
p | 523 | include/linux/sched.h | extern inline void select_wait(struct wait_queue ** wait_address, select_table * p) |
p | 527 | include/linux/sched.h | if (!p || !wait_address) |
p | 529 | include/linux/sched.h | if (p->nr >= __MAX_SELECT_TABLE_ENTRIES) |
p | 531 | include/linux/sched.h | entry = p->entry + p->nr; |
p | 536 | include/linux/sched.h | p->nr++; |
p | 581 | include/linux/sched.h | #define REMOVE_LINKS(p) do { unsigned long flags; \ |
p | 583 | include/linux/sched.h | (p)->next_task->prev_task = (p)->prev_task; \ |
p | 584 | include/linux/sched.h | (p)->prev_task->next_task = (p)->next_task; \ |
p | 586 | include/linux/sched.h | if ((p)->p_osptr) \ |
p | 587 | include/linux/sched.h | (p)->p_osptr->p_ysptr = (p)->p_ysptr; \ |
p | 588 | include/linux/sched.h | if ((p)->p_ysptr) \ |
p | 589 | include/linux/sched.h | (p)->p_ysptr->p_osptr = (p)->p_osptr; \ |
p | 591 | include/linux/sched.h | (p)->p_pptr->p_cptr = (p)->p_osptr; \ |
p | 594 | include/linux/sched.h | #define SET_LINKS(p) do { unsigned long flags; \ |
p | 596 | include/linux/sched.h | (p)->next_task = &init_task; \ |
p | 597 | include/linux/sched.h | (p)->prev_task = init_task.prev_task; \ |
p | 598 | include/linux/sched.h | init_task.prev_task->next_task = (p); \ |
p | 599 | include/linux/sched.h | init_task.prev_task = (p); \ |
p | 601 | include/linux/sched.h | (p)->p_ysptr = NULL; \ |
p | 602 | include/linux/sched.h | if (((p)->p_osptr = (p)->p_pptr->p_cptr) != NULL) \ |
p | 603 | include/linux/sched.h | (p)->p_osptr->p_ysptr = p; \ |
p | 604 | include/linux/sched.h | (p)->p_pptr->p_cptr = p; \ |
p | 607 | include/linux/sched.h | #define for_each_task(p) \ |
p | 608 | include/linux/sched.h | for (p = &init_task ; (p = p->next_task) != &init_task ; ) |
p | 155 | include/linux/tqueue.h | register struct tq_struct *p; |
p | 160 | include/linux/tqueue.h | p = &tq_last; |
p | 161 | include/linux/tqueue.h | __asm__ __volatile__("xchgl %0,%2" : "=r" (p) : |
p | 162 | include/linux/tqueue.h | "0" (p), "m" (*list) : "memory"); |
p | 163 | include/linux/tqueue.h | if(p == &tq_last) |
p | 167 | include/linux/tqueue.h | arg = p -> data; |
p | 168 | include/linux/tqueue.h | f = p -> routine; |
p | 169 | include/linux/tqueue.h | save_p = p -> next; |
p | 170 | include/linux/tqueue.h | p -> sync = 0; |
p | 172 | include/linux/tqueue.h | p = save_p; |
p | 173 | include/linux/tqueue.h | } while(p != &tq_last); |
p | 108 | include/linux/ultrasound.h | #define GUS_VOICEFREQ(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICEFREQ, \ |
p | 109 | include/linux/ultrasound.h | (p) & 0xffff, ((p) >> 16) & 0xffff) |
p | 118 | include/linux/ultrasound.h | #define GUS_VOICE_POS(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICE_POS, \ |
p | 119 | include/linux/ultrasound.h | (p) & 0xffff, ((p) >> 16) & 0xffff) |
p | 44 | kernel/dma.c | static __inline__ unsigned int mutex_atomic_swap(volatile unsigned int * p, unsigned int newval) |
p | 57 | kernel/dma.c | : /* inputs: newval, p */ "0" (semval), "m" (*p) |
p | 25 | kernel/exit.c | static int generate(unsigned long sig, struct task_struct * p) |
p | 28 | kernel/exit.c | struct sigaction * sa = sig + p->sigaction - 1; |
p | 31 | kernel/exit.c | if (p->flags & PF_PTRACED) { |
p | 32 | kernel/exit.c | p->signal |= mask; |
p | 42 | kernel/exit.c | p->signal |= mask; |
p | 46 | kernel/exit.c | int send_sig(unsigned long sig,struct task_struct * p,int priv) |
p | 48 | kernel/exit.c | if (!p || sig > 32) |
p | 50 | kernel/exit.c | if (!priv && ((sig != SIGCONT) || (current->session != p->session)) && |
p | 51 | kernel/exit.c | (current->euid != p->euid) && (current->uid != p->uid) && !suser()) |
p | 58 | kernel/exit.c | if (p->state == TASK_ZOMBIE) |
p | 61 | kernel/exit.c | if (p->state == TASK_STOPPED) |
p | 62 | kernel/exit.c | p->state = TASK_RUNNING; |
p | 63 | kernel/exit.c | p->exit_code = 0; |
p | 64 | 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 | 96 | kernel/exit.c | REMOVE_LINKS(p); |
p | 97 | kernel/exit.c | if (STACK_MAGIC != *(unsigned long *)p->kernel_stack_page) |
p | 98 | kernel/exit.c | printk(KERN_ALERT "release: %s kernel stack corruption. Aiee\n", p->comm); |
p | 99 | kernel/exit.c | free_page(p->kernel_stack_page); |
p | 100 | kernel/exit.c | free_page((long) p); |
p | 111 | kernel/exit.c | int bad_task_ptr(struct task_struct *p) |
p | 115 | kernel/exit.c | if (!p) |
p | 118 | kernel/exit.c | if (task[i] == p) |
p | 206 | kernel/exit.c | struct task_struct *p; |
p | 210 | kernel/exit.c | for_each_task(p) { |
p | 211 | kernel/exit.c | if (p->session <= 0) |
p | 213 | kernel/exit.c | if (p->pgrp == pgrp) |
p | 214 | kernel/exit.c | return p->session; |
p | 215 | kernel/exit.c | if (p->pid == pgrp) |
p | 216 | kernel/exit.c | fallback = p->session; |
p | 227 | kernel/exit.c | struct task_struct *p; |
p | 233 | kernel/exit.c | for_each_task(p) { |
p | 234 | kernel/exit.c | if (p->pgrp == pgrp) { |
p | 235 | kernel/exit.c | if ((err = send_sig(sig,p,priv)) != 0) |
p | 251 | kernel/exit.c | struct task_struct *p; |
p | 257 | kernel/exit.c | for_each_task(p) { |
p | 258 | kernel/exit.c | if (p->session == sess && p->leader) { |
p | 259 | kernel/exit.c | if ((err = send_sig(sig,p,priv)) != 0) |
p | 270 | kernel/exit.c | struct task_struct *p; |
p | 274 | kernel/exit.c | for_each_task(p) { |
p | 275 | kernel/exit.c | if (p && p->pid == pid) |
p | 276 | kernel/exit.c | return send_sig(sig,p,priv); |
p | 292 | kernel/exit.c | struct task_struct * p; |
p | 293 | kernel/exit.c | for_each_task(p) { |
p | 294 | kernel/exit.c | if (p->pid > 1 && p != current) { |
p | 296 | kernel/exit.c | if ((err = send_sig(sig,p,0)) != -EPERM) |
p | 318 | kernel/exit.c | struct task_struct *p; |
p | 320 | kernel/exit.c | for_each_task(p) { |
p | 321 | kernel/exit.c | if ((p->pgrp != pgrp) || |
p | 322 | kernel/exit.c | (p->state == TASK_ZOMBIE) || |
p | 323 | kernel/exit.c | (p->p_pptr->pid == 1)) |
p | 325 | kernel/exit.c | if ((p->p_pptr->pgrp != pgrp) && |
p | 326 | kernel/exit.c | (p->p_pptr->session == p->session)) |
p | 334 | kernel/exit.c | struct task_struct * p; |
p | 336 | kernel/exit.c | for_each_task(p) { |
p | 337 | kernel/exit.c | if (p->pgrp != pgrp) |
p | 339 | kernel/exit.c | if (p->state == TASK_STOPPED) |
p | 347 | kernel/exit.c | struct task_struct * p; |
p | 349 | kernel/exit.c | for_each_task(p) { |
p | 350 | kernel/exit.c | if (p->p_opptr == father) |
p | 352 | kernel/exit.c | p->p_opptr = task[1]; |
p | 354 | kernel/exit.c | p->p_opptr = task[0]; |
p | 407 | kernel/exit.c | struct task_struct *p; |
p | 449 | kernel/exit.c | while ((p = current->p_cptr) != NULL) { |
p | 450 | kernel/exit.c | current->p_cptr = p->p_osptr; |
p | 451 | kernel/exit.c | p->p_ysptr = NULL; |
p | 452 | kernel/exit.c | p->flags &= ~(PF_PTRACED|PF_TRACESYS); |
p | 454 | kernel/exit.c | p->p_pptr = task[1]; |
p | 456 | kernel/exit.c | p->p_pptr = task[0]; |
p | 457 | kernel/exit.c | p->p_osptr = p->p_pptr->p_cptr; |
p | 458 | kernel/exit.c | p->p_osptr->p_ysptr = p; |
p | 459 | kernel/exit.c | p->p_pptr->p_cptr = p; |
p | 460 | kernel/exit.c | if (p->state == TASK_ZOMBIE) |
p | 461 | kernel/exit.c | notify_parent(p); |
p | 468 | kernel/exit.c | if ((p->pgrp != current->pgrp) && |
p | 469 | kernel/exit.c | (p->session == current->session) && |
p | 470 | kernel/exit.c | is_orphaned_pgrp(p->pgrp) && |
p | 471 | kernel/exit.c | has_stopped_jobs(p->pgrp)) { |
p | 472 | kernel/exit.c | kill_pg(p->pgrp,SIGHUP,1); |
p | 473 | kernel/exit.c | kill_pg(p->pgrp,SIGCONT,1); |
p | 512 | kernel/exit.c | struct task_struct *p; |
p | 522 | kernel/exit.c | for (p = current->p_cptr ; p ; p = p->p_osptr) { |
p | 524 | kernel/exit.c | if (p->pid != pid) |
p | 527 | kernel/exit.c | if (p->pgrp != current->pgrp) |
p | 530 | kernel/exit.c | if (p->pgrp != -pid) |
p | 534 | kernel/exit.c | if ((p->exit_signal != SIGCHLD) ^ ((options & __WCLONE) != 0)) |
p | 537 | kernel/exit.c | switch (p->state) { |
p | 539 | kernel/exit.c | if (!p->exit_code) |
p | 541 | kernel/exit.c | if (!(options & WUNTRACED) && !(p->flags & PF_PTRACED)) |
p | 544 | kernel/exit.c | put_fs_long((p->exit_code << 8) | 0x7f, |
p | 546 | kernel/exit.c | p->exit_code = 0; |
p | 548 | kernel/exit.c | getrusage(p, RUSAGE_BOTH, ru); |
p | 549 | kernel/exit.c | retval = p->pid; |
p | 552 | kernel/exit.c | current->cutime += p->utime + p->cutime; |
p | 553 | kernel/exit.c | current->cstime += p->stime + p->cstime; |
p | 554 | kernel/exit.c | current->mm->cmin_flt += p->mm->min_flt + p->mm->cmin_flt; |
p | 555 | kernel/exit.c | current->mm->cmaj_flt += p->mm->maj_flt + p->mm->cmaj_flt; |
p | 557 | kernel/exit.c | getrusage(p, RUSAGE_BOTH, ru); |
p | 558 | kernel/exit.c | flag = p->pid; |
p | 560 | kernel/exit.c | put_fs_long(p->exit_code, stat_addr); |
p | 561 | kernel/exit.c | if (p->p_opptr != p->p_pptr) { |
p | 562 | kernel/exit.c | REMOVE_LINKS(p); |
p | 563 | kernel/exit.c | p->p_pptr = p->p_opptr; |
p | 564 | kernel/exit.c | SET_LINKS(p); |
p | 565 | kernel/exit.c | notify_parent(p); |
p | 567 | kernel/exit.c | release(p); |
p | 94 | kernel/fork.c | struct vm_area_struct * mpnt, **p, *tmp; |
p | 98 | kernel/fork.c | p = &tsk->mm->mmap; |
p | 108 | kernel/fork.c | *p = tmp; |
p | 109 | kernel/fork.c | p = &tmp->vm_next; |
p | 119 | kernel/fork.c | static void copy_files(unsigned long clone_flags, struct task_struct * p) |
p | 126 | kernel/fork.c | if ((f = p->files->fd[i]) != NULL) |
p | 127 | kernel/fork.c | p->files->fd[i] = copy_fd(f); |
p | 130 | kernel/fork.c | if ((f = p->files->fd[i]) != NULL) |
p | 139 | kernel/fork.c | static int copy_mm(unsigned long clone_flags, struct task_struct * p) |
p | 142 | kernel/fork.c | p->mm->swappable = 1; |
p | 143 | kernel/fork.c | p->mm->min_flt = p->mm->maj_flt = 0; |
p | 144 | kernel/fork.c | p->mm->cmin_flt = p->mm->cmaj_flt = 0; |
p | 145 | kernel/fork.c | if (copy_page_tables(p)) |
p | 147 | kernel/fork.c | dup_mmap(p); |
p | 149 | kernel/fork.c | if (clone_page_tables(p)) |
p | 151 | kernel/fork.c | dup_mmap(p); /* wrong.. */ |
p | 156 | kernel/fork.c | static void copy_fs(unsigned long clone_flags, struct task_struct * p) |
p | 176 | kernel/fork.c | struct task_struct *p; |
p | 180 | kernel/fork.c | if(!(p = (struct task_struct*)__get_free_page(GFP_KERNEL))) |
p | 185 | kernel/fork.c | task[nr] = p; |
p | 186 | kernel/fork.c | *p = *current; |
p | 187 | kernel/fork.c | p->did_exec = 0; |
p | 188 | kernel/fork.c | p->kernel_stack_page = 0; |
p | 189 | kernel/fork.c | p->state = TASK_UNINTERRUPTIBLE; |
p | 190 | kernel/fork.c | p->flags &= ~(PF_PTRACED|PF_TRACESYS); |
p | 191 | kernel/fork.c | p->pid = last_pid; |
p | 192 | kernel/fork.c | p->p_pptr = p->p_opptr = current; |
p | 193 | kernel/fork.c | p->p_cptr = NULL; |
p | 194 | kernel/fork.c | SET_LINKS(p); |
p | 195 | kernel/fork.c | p->signal = 0; |
p | 196 | kernel/fork.c | p->it_real_value = p->it_virt_value = p->it_prof_value = 0; |
p | 197 | kernel/fork.c | p->it_real_incr = p->it_virt_incr = p->it_prof_incr = 0; |
p | 198 | kernel/fork.c | p->leader = 0; /* process leadership doesn't inherit */ |
p | 199 | kernel/fork.c | p->utime = p->stime = 0; |
p | 200 | kernel/fork.c | p->cutime = p->cstime = 0; |
p | 201 | kernel/fork.c | p->start_time = jiffies; |
p | 205 | kernel/fork.c | if (!(p->kernel_stack_page = get_free_page(GFP_KERNEL))) |
p | 207 | kernel/fork.c | *(unsigned long *)p->kernel_stack_page = STACK_MAGIC; |
p | 208 | kernel/fork.c | p->tss.es = KERNEL_DS; |
p | 209 | kernel/fork.c | p->tss.cs = KERNEL_CS; |
p | 210 | kernel/fork.c | p->tss.ss = KERNEL_DS; |
p | 211 | kernel/fork.c | p->tss.ds = KERNEL_DS; |
p | 212 | kernel/fork.c | p->tss.fs = USER_DS; |
p | 213 | kernel/fork.c | p->tss.gs = KERNEL_DS; |
p | 214 | kernel/fork.c | p->tss.ss0 = KERNEL_DS; |
p | 215 | kernel/fork.c | p->tss.esp0 = p->kernel_stack_page + PAGE_SIZE; |
p | 216 | kernel/fork.c | p->tss.tr = _TSS(nr); |
p | 217 | kernel/fork.c | childregs = ((struct pt_regs *) (p->kernel_stack_page + PAGE_SIZE)) - 1; |
p | 218 | kernel/fork.c | p->tss.esp = (unsigned long) childregs; |
p | 219 | kernel/fork.c | p->tss.eip = (unsigned long) ret_from_sys_call; |
p | 222 | kernel/fork.c | p->tss.back_link = 0; |
p | 223 | kernel/fork.c | p->tss.eflags = regs.eflags & 0xffffcfff; /* iopl is always 0 for a new process */ |
p | 231 | kernel/fork.c | p->exit_signal = clone_flags & CSIGNAL; |
p | 232 | kernel/fork.c | p->tss.ldt = _LDT(nr); |
p | 233 | kernel/fork.c | if (p->ldt) { |
p | 234 | kernel/fork.c | p->ldt = (struct desc_struct*) vmalloc(LDT_ENTRIES*LDT_ENTRY_SIZE); |
p | 235 | kernel/fork.c | if (p->ldt != NULL) |
p | 236 | kernel/fork.c | memcpy(p->ldt, current->ldt, LDT_ENTRIES*LDT_ENTRY_SIZE); |
p | 238 | kernel/fork.c | p->tss.bitmap = offsetof(struct tss_struct,io_bitmap); |
p | 240 | kernel/fork.c | p->tss.io_bitmap[i] = ~0; |
p | 242 | kernel/fork.c | __asm__("clts ; fnsave %0 ; frstor %0":"=m" (p->tss.i387)); |
p | 243 | kernel/fork.c | p->semun = NULL; p->shm = NULL; |
p | 244 | kernel/fork.c | if (copy_mm(clone_flags, p) || shm_fork(current, p)) |
p | 246 | kernel/fork.c | copy_files(clone_flags, p); |
p | 247 | kernel/fork.c | copy_fs(clone_flags, p); |
p | 248 | kernel/fork.c | set_tss_desc(gdt+(nr<<1)+FIRST_TSS_ENTRY,&(p->tss)); |
p | 249 | kernel/fork.c | if (p->ldt) |
p | 250 | kernel/fork.c | set_ldt_desc(gdt+(nr<<1)+FIRST_LDT_ENTRY,p->ldt, 512); |
p | 254 | kernel/fork.c | p->counter = current->counter >> 1; |
p | 255 | kernel/fork.c | p->state = TASK_RUNNING; /* do this last, just in case */ |
p | 256 | kernel/fork.c | return p->pid; |
p | 259 | kernel/fork.c | REMOVE_LINKS(p); |
p | 260 | kernel/fork.c | free_page(p->kernel_stack_page); |
p | 262 | kernel/fork.c | free_page((long) p); |
p | 21 | kernel/info.c | struct task_struct **p; |
p | 34 | kernel/info.c | for (p = &LAST_TASK; p > &FIRST_TASK; p--) |
p | 35 | kernel/info.c | if (*p) val.procs++; |
p | 238 | kernel/module.c | char *p; |
p | 244 | kernel/module.c | p = buf; |
p | 246 | kernel/module.c | if (p - buf > 4096 - 100) |
p | 251 | kernel/module.c | *p++ = *q++; |
p | 259 | kernel/module.c | *p++ = ' '; |
p | 262 | kernel/module.c | *p++ = *q++; |
p | 272 | kernel/module.c | *p++ = *q++; |
p | 273 | kernel/module.c | *p++ = '\n'; |
p | 275 | kernel/module.c | return p - buf; |
p | 146 | kernel/printk.c | char *msg, *p, *buf_end; |
p | 156 | kernel/printk.c | for (p = buf + 3; p < buf_end; p++) { |
p | 157 | kernel/printk.c | msg = p; |
p | 160 | kernel/printk.c | p[0] != '<' || |
p | 161 | kernel/printk.c | p[1] < '0' || |
p | 162 | kernel/printk.c | p[1] > '7' || |
p | 163 | kernel/printk.c | p[2] != '>' |
p | 165 | kernel/printk.c | p -= 3; |
p | 166 | kernel/printk.c | p[0] = '<'; |
p | 167 | kernel/printk.c | p[1] = DEFAULT_MESSAGE_LOGLEVEL - 1 + '0'; |
p | 168 | kernel/printk.c | p[2] = '>'; |
p | 171 | kernel/printk.c | msg_level = p[1] - '0'; |
p | 173 | kernel/printk.c | for (; p < buf_end; p++) { |
p | 174 | kernel/printk.c | log_buf[(log_start+log_size) & (LOG_BUF_LEN-1)] = *p; |
p | 180 | kernel/printk.c | if (*p == '\n') |
p | 184 | kernel/printk.c | char tmp = p[1]; |
p | 185 | kernel/printk.c | p[1] = '\0'; |
p | 187 | kernel/printk.c | p[1] = tmp; |
p | 189 | kernel/printk.c | if (*p == '\n') |
p | 206 | kernel/printk.c | int p = log_start; |
p | 214 | kernel/printk.c | buf[j++] = log_buf[p]; |
p | 215 | kernel/printk.c | p++; p &= LOG_BUF_LEN-1; |
p | 168 | kernel/sched.c | struct task_struct * p; |
p | 184 | kernel/sched.c | p = &init_task; |
p | 186 | kernel/sched.c | if ((p = p->next_task) == &init_task) |
p | 188 | kernel/sched.c | if (ticks && p->it_real_value) { |
p | 189 | kernel/sched.c | if (p->it_real_value <= ticks) { |
p | 190 | kernel/sched.c | send_sig(SIGALRM, p, 1); |
p | 191 | kernel/sched.c | if (!p->it_real_incr) { |
p | 192 | kernel/sched.c | p->it_real_value = 0; |
p | 196 | kernel/sched.c | p->it_real_value += p->it_real_incr; |
p | 197 | kernel/sched.c | } while (p->it_real_value <= ticks); |
p | 199 | kernel/sched.c | p->it_real_value -= ticks; |
p | 200 | kernel/sched.c | if (p->it_real_value < itimer_next) |
p | 201 | kernel/sched.c | itimer_next = p->it_real_value; |
p | 204 | kernel/sched.c | if (p->state != TASK_INTERRUPTIBLE) |
p | 206 | kernel/sched.c | if (p->signal & ~p->blocked) { |
p | 207 | kernel/sched.c | p->state = TASK_RUNNING; |
p | 210 | kernel/sched.c | if (p->timeout && p->timeout <= jiffies) { |
p | 211 | kernel/sched.c | p->timeout = 0; |
p | 212 | kernel/sched.c | p->state = TASK_RUNNING; |
p | 229 | kernel/sched.c | next = p = &init_task; |
p | 231 | kernel/sched.c | if ((p = p->next_task) == &init_task) |
p | 233 | kernel/sched.c | if (p->state == TASK_RUNNING && p->counter > c) |
p | 234 | kernel/sched.c | c = p->counter, next = p; |
p | 238 | kernel/sched.c | for_each_task(p) |
p | 239 | kernel/sched.c | p->counter = (p->counter >> 1) + p->priority; |
p | 273 | kernel/sched.c | struct task_struct * p; |
p | 278 | kernel/sched.c | if ((p = tmp->task) != NULL) { |
p | 279 | kernel/sched.c | if ((p->state == TASK_UNINTERRUPTIBLE) || |
p | 280 | kernel/sched.c | (p->state == TASK_INTERRUPTIBLE)) { |
p | 281 | kernel/sched.c | p->state = TASK_RUNNING; |
p | 282 | kernel/sched.c | if (p->counter > current->counter) |
p | 300 | kernel/sched.c | struct task_struct * p; |
p | 305 | kernel/sched.c | if ((p = tmp->task) != NULL) { |
p | 306 | kernel/sched.c | if (p->state == TASK_INTERRUPTIBLE) { |
p | 307 | kernel/sched.c | p->state = TASK_RUNNING; |
p | 308 | kernel/sched.c | if (p->counter > current->counter) |
p | 336 | kernel/sched.c | static inline void __sleep_on(struct wait_queue **p, int state) |
p | 341 | kernel/sched.c | if (!p) |
p | 346 | kernel/sched.c | add_wait_queue(p, &wait); |
p | 350 | kernel/sched.c | remove_wait_queue(p, &wait); |
p | 354 | kernel/sched.c | void interruptible_sleep_on(struct wait_queue **p) |
p | 356 | kernel/sched.c | __sleep_on(p,TASK_INTERRUPTIBLE); |
p | 359 | kernel/sched.c | void sleep_on(struct wait_queue **p) |
p | 361 | kernel/sched.c | __sleep_on(p,TASK_UNINTERRUPTIBLE); |
p | 369 | kernel/sched.c | struct timer_list ** p; |
p | 374 | kernel/sched.c | p = &next_timer; |
p | 377 | kernel/sched.c | while (*p) { |
p | 378 | kernel/sched.c | if ((*p)->expires > timer->expires) { |
p | 379 | kernel/sched.c | (*p)->expires -= timer->expires; |
p | 380 | kernel/sched.c | timer->next = *p; |
p | 383 | kernel/sched.c | timer->expires -= (*p)->expires; |
p | 384 | kernel/sched.c | p = &(*p)->next; |
p | 386 | kernel/sched.c | *p = timer; |
p | 394 | kernel/sched.c | struct timer_list **p; |
p | 396 | kernel/sched.c | p = &next_timer; |
p | 399 | kernel/sched.c | while (*p) { |
p | 400 | kernel/sched.c | if (*p == timer) { |
p | 401 | kernel/sched.c | if ((*p = timer->next) != NULL) |
p | 402 | kernel/sched.c | (*p)->expires += timer->expires; |
p | 407 | kernel/sched.c | expires += (*p)->expires; |
p | 408 | kernel/sched.c | p = &(*p)->next; |
p | 430 | kernel/sched.c | struct task_struct **p; |
p | 433 | kernel/sched.c | for(p = &LAST_TASK; p > &FIRST_TASK; --p) |
p | 434 | kernel/sched.c | if (*p && ((*p)->state == TASK_RUNNING || |
p | 435 | kernel/sched.c | (*p)->state == TASK_UNINTERRUPTIBLE || |
p | 436 | kernel/sched.c | (*p)->state == TASK_SWAPPING)) |
p | 741 | kernel/sched.c | static void show_task(int nr,struct task_struct * p) |
p | 746 | kernel/sched.c | printk("%-8s %3d ", p->comm, (p == current) ? -nr : nr); |
p | 747 | kernel/sched.c | if (((unsigned) p->state) < sizeof(stat_nam)/sizeof(char *)) |
p | 748 | kernel/sched.c | printk(stat_nam[p->state]); |
p | 751 | kernel/sched.c | if (p == current) |
p | 754 | kernel/sched.c | printk(" %08lX ", ((unsigned long *)p->tss.esp)[3]); |
p | 756 | kernel/sched.c | if (((unsigned long *)p->kernel_stack_page)[free]) |
p | 759 | kernel/sched.c | printk("%5lu %5d %6d ", free << 2, p->pid, p->p_pptr->pid); |
p | 760 | kernel/sched.c | if (p->p_cptr) |
p | 761 | kernel/sched.c | printk("%5d ", p->p_cptr->pid); |
p | 764 | kernel/sched.c | if (p->p_ysptr) |
p | 765 | kernel/sched.c | printk("%7d", p->p_ysptr->pid); |
p | 768 | kernel/sched.c | if (p->p_osptr) |
p | 769 | kernel/sched.c | printk(" %5d\n", p->p_osptr->pid); |
p | 788 | kernel/sched.c | struct desc_struct * p; |
p | 797 | kernel/sched.c | p = gdt+2+FIRST_TSS_ENTRY; |
p | 800 | kernel/sched.c | p->a=p->b=0; |
p | 801 | kernel/sched.c | p++; |
p | 802 | kernel/sched.c | p->a=p->b=0; |
p | 803 | kernel/sched.c | p++; |
p | 117 | kernel/signal.c | struct sigaction *p; |
p | 119 | kernel/signal.c | p = signum - 1 + current->sigaction; |
p | 120 | kernel/signal.c | if (p->sa_handler == SIG_IGN) { |
p | 126 | kernel/signal.c | if (p->sa_handler == SIG_DFL) { |
p | 157 | kernel/signal.c | struct sigaction new_sa, *p; |
p | 163 | kernel/signal.c | p = signum - 1 + current->sigaction; |
p | 182 | kernel/signal.c | memcpy_tofs(oldaction, p, sizeof(struct sigaction)); |
p | 185 | kernel/signal.c | *p = new_sa; |
p | 55 | kernel/sys.c | static int proc_sel(struct task_struct *p, int which, int who) |
p | 59 | kernel/sys.c | if (!who && p == current) |
p | 61 | kernel/sys.c | return(p->pid == who); |
p | 65 | kernel/sys.c | return(p->pgrp == who); |
p | 69 | kernel/sys.c | return(p->uid == who); |
p | 76 | kernel/sys.c | struct task_struct **p; |
p | 86 | kernel/sys.c | for(p = &LAST_TASK; p > &FIRST_TASK; --p) { |
p | 87 | kernel/sys.c | if (!*p || !proc_sel(*p, which, who)) |
p | 89 | kernel/sys.c | if ((*p)->uid != current->euid && |
p | 90 | kernel/sys.c | (*p)->uid != current->uid && !suser()) { |
p | 96 | kernel/sys.c | if (priority > (*p)->priority && !suser()) |
p | 99 | kernel/sys.c | (*p)->priority = priority; |
p | 106 | kernel/sys.c | struct task_struct **p; |
p | 112 | kernel/sys.c | for(p = &LAST_TASK; p > &FIRST_TASK; --p) { |
p | 113 | kernel/sys.c | if (!*p || !proc_sel(*p, which, who)) |
p | 115 | kernel/sys.c | if ((*p)->priority > max_prio) |
p | 116 | kernel/sys.c | max_prio = (*p)->priority; |
p | 430 | kernel/sys.c | struct task_struct * p; |
p | 438 | kernel/sys.c | for_each_task(p) { |
p | 439 | kernel/sys.c | if (p->pid == pid) |
p | 445 | kernel/sys.c | if (p->p_pptr == current || p->p_opptr == current) { |
p | 446 | kernel/sys.c | if (p->session != current->session) |
p | 448 | kernel/sys.c | if (p->did_exec) |
p | 450 | kernel/sys.c | } else if (p != current) |
p | 452 | kernel/sys.c | if (p->leader) |
p | 465 | kernel/sys.c | p->pgrp = pgid; |
p | 471 | kernel/sys.c | struct task_struct * p; |
p | 475 | kernel/sys.c | for_each_task(p) { |
p | 476 | kernel/sys.c | if (p->pid == pid) |
p | 477 | kernel/sys.c | return p->pgrp; |
p | 686 | kernel/sys.c | int getrusage(struct task_struct *p, int who, struct rusage *ru) |
p | 698 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(p->utime); |
p | 699 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(p->utime); |
p | 700 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(p->stime); |
p | 701 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(p->stime); |
p | 702 | kernel/sys.c | r.ru_minflt = p->mm->min_flt; |
p | 703 | kernel/sys.c | r.ru_majflt = p->mm->maj_flt; |
p | 706 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(p->cutime); |
p | 707 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(p->cutime); |
p | 708 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(p->cstime); |
p | 709 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(p->cstime); |
p | 710 | kernel/sys.c | r.ru_minflt = p->mm->cmin_flt; |
p | 711 | kernel/sys.c | r.ru_majflt = p->mm->cmaj_flt; |
p | 714 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(p->utime + p->cutime); |
p | 715 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(p->utime + p->cutime); |
p | 716 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(p->stime + p->cstime); |
p | 717 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(p->stime + p->cstime); |
p | 718 | kernel/sys.c | r.ru_minflt = p->mm->min_flt + p->mm->cmin_flt; |
p | 719 | kernel/sys.c | r.ru_majflt = p->mm->maj_flt + p->mm->cmaj_flt; |
p | 64 | mm/kmalloc.c | #define BH(p) ((struct block_header *)(p)) |
p | 78 | mm/kmalloc.c | #define PAGE_DESC(p) ((struct page_descriptor *)(((unsigned long)(p)) & PAGE_MASK)) |
p | 167 | mm/kmalloc.c | struct block_header *p; |
p | 197 | mm/kmalloc.c | (p = page->firstfree)) |
p | 199 | mm/kmalloc.c | if (p->bh_flags == MF_FREE) |
p | 201 | mm/kmalloc.c | page->firstfree = p->bh_next; |
p | 212 | mm/kmalloc.c | p->bh_flags = MF_USED; /* As of now this block is officially in use */ |
p | 213 | mm/kmalloc.c | p->bh_length = size; |
p | 214 | mm/kmalloc.c | return p+1; /* Pointer arithmetic: increments past header */ |
p | 216 | mm/kmalloc.c | printk ("Problem: block on freelist at %08lx isn't free.\n",(long)p); |
p | 242 | mm/kmalloc.c | for (i=NBLOCKS(order),p=BH (page+1);i > 1;i--,p=p->bh_next) |
p | 244 | mm/kmalloc.c | p->bh_flags = MF_FREE; |
p | 245 | mm/kmalloc.c | p->bh_next = BH ( ((long)p)+sz); |
p | 248 | mm/kmalloc.c | p->bh_flags = MF_FREE; |
p | 249 | mm/kmalloc.c | p->bh_next = NULL; |
p | 288 | mm/kmalloc.c | register struct block_header *p=((struct block_header *)ptr) -1; |
p | 291 | mm/kmalloc.c | page = PAGE_DESC (p); |
p | 296 | mm/kmalloc.c | (p->bh_flags != MF_USED)) |
p | 299 | mm/kmalloc.c | p, page->next, page->order); |
p | 303 | mm/kmalloc.c | size != p->bh_length) |
p | 306 | mm/kmalloc.c | p,size,p->bh_length); |
p | 309 | mm/kmalloc.c | size = p->bh_length; |
p | 310 | mm/kmalloc.c | p->bh_flags = MF_FREE; /* As of now this block is officially free */ |
p | 313 | mm/kmalloc.c | p->bh_next = page->firstfree; |
p | 314 | mm/kmalloc.c | page->firstfree = p; |
p | 77 | mm/memory.c | #define CODE_SPACE(addr,p) ((addr) < (p)->end_code) |
p | 703 | mm/memory.c | struct task_struct * p, unsigned long error_code, unsigned long newpage) |
p | 710 | mm/memory.c | from_page = (unsigned long)PAGE_DIR_OFFSET(p->tss.cr3,address); |
p | 765 | mm/memory.c | struct task_struct ** p; |
p | 769 | mm/memory.c | for (p = &LAST_TASK ; p > &FIRST_TASK ; --p) { |
p | 770 | mm/memory.c | if (!*p) |
p | 772 | mm/memory.c | if (tsk == *p) |
p | 774 | mm/memory.c | if (inode != (*p)->executable) { |
p | 780 | mm/memory.c | for (mpnt = (*p)->mm->mmap; mpnt; mpnt = mpnt->vm_next) { |
p | 791 | mm/memory.c | if (try_to_share(address,tsk,*p,error_code,newpage)) |
p | 803 | mm/memory.c | unsigned long *p; |
p | 805 | mm/memory.c | p = PAGE_DIR_OFFSET(tsk->tss.cr3,address); |
p | 806 | mm/memory.c | if (PAGE_PRESENT & *p) |
p | 807 | mm/memory.c | return *p; |
p | 808 | mm/memory.c | if (*p) { |
p | 810 | mm/memory.c | *p = 0; |
p | 813 | mm/memory.c | p = PAGE_DIR_OFFSET(tsk->tss.cr3,address); |
p | 814 | mm/memory.c | if (PAGE_PRESENT & *p) { |
p | 816 | mm/memory.c | return *p; |
p | 818 | mm/memory.c | if (*p) { |
p | 820 | mm/memory.c | *p = 0; |
p | 823 | mm/memory.c | *p = page | PAGE_TABLE; |
p | 824 | mm/memory.c | return *p; |
p | 827 | mm/memory.c | *p = BAD_PAGETABLE | PAGE_TABLE; |
p | 60 | mm/swap.c | struct swap_info_struct * p; |
p | 67 | mm/swap.c | p = &swap_info[type]; |
p | 69 | mm/swap.c | if (offset >= p->max) { |
p | 73 | mm/swap.c | if (!(p->flags & SWP_USED)) { |
p | 77 | mm/swap.c | while (set_bit(offset,p->swap_lockmap)) |
p | 83 | mm/swap.c | if (p->swap_device) { |
p | 84 | mm/swap.c | ll_rw_page(rw,p->swap_device,offset,buf); |
p | 85 | mm/swap.c | } else if (p->swap_file) { |
p | 90 | mm/swap.c | block = offset << (12 - p->swap_file->i_sb->s_blocksize_bits); |
p | 92 | mm/swap.c | for (i=0, j=0; j< PAGE_SIZE ; i++, j +=p->swap_file->i_sb->s_blocksize) |
p | 93 | mm/swap.c | if (!(zones[i] = bmap(p->swap_file,block++))) { |
p | 97 | mm/swap.c | ll_rw_swap_file(rw,p->swap_file->i_dev, zones, i,buf); |
p | 100 | mm/swap.c | if (offset && !clear_bit(offset,p->swap_lockmap)) |
p | 107 | mm/swap.c | struct swap_info_struct * p; |
p | 110 | mm/swap.c | p = swap_info; |
p | 111 | mm/swap.c | for (type = 0 ; type < nr_swapfiles ; type++,p++) { |
p | 112 | mm/swap.c | if ((p->flags & SWP_WRITEOK) != SWP_WRITEOK) |
p | 114 | mm/swap.c | for (offset = p->lowest_bit; offset <= p->highest_bit ; offset++) { |
p | 115 | mm/swap.c | if (p->swap_map[offset]) |
p | 117 | mm/swap.c | p->swap_map[offset] = 1; |
p | 119 | mm/swap.c | if (offset == p->highest_bit) |
p | 120 | mm/swap.c | p->highest_bit--; |
p | 121 | mm/swap.c | p->lowest_bit = offset; |
p | 130 | mm/swap.c | struct swap_info_struct * p; |
p | 143 | mm/swap.c | p = type + swap_info; |
p | 144 | mm/swap.c | if (offset >= p->max) { |
p | 148 | mm/swap.c | if (!p->swap_map[offset]) { |
p | 152 | mm/swap.c | p->swap_map[offset]++; |
p | 158 | mm/swap.c | struct swap_info_struct * p; |
p | 170 | mm/swap.c | p = & swap_info[type]; |
p | 172 | mm/swap.c | if (offset >= p->max) { |
p | 176 | mm/swap.c | if (!(p->flags & SWP_USED)) { |
p | 180 | mm/swap.c | while (set_bit(offset,p->swap_lockmap)) |
p | 182 | mm/swap.c | if (offset < p->lowest_bit) |
p | 183 | mm/swap.c | p->lowest_bit = offset; |
p | 184 | mm/swap.c | if (offset > p->highest_bit) |
p | 185 | mm/swap.c | p->highest_bit = offset; |
p | 186 | mm/swap.c | if (!p->swap_map[offset]) |
p | 189 | mm/swap.c | if (!--p->swap_map[offset]) |
p | 191 | mm/swap.c | if (!clear_bit(offset,p->swap_lockmap)) |
p | 301 | mm/swap.c | struct task_struct *p; |
p | 319 | mm/swap.c | p = task[swap_task]; |
p | 320 | mm/swap.c | if(p && p->mm->swappable && p->mm->rss) |
p | 329 | mm/swap.c | if(! p->mm->swap_cnt) { |
p | 330 | mm/swap.c | p->mm->dec_flt = (p->mm->dec_flt * 3) / 4 + p->mm->maj_flt - p->mm->old_maj_flt; |
p | 331 | mm/swap.c | p->mm->old_maj_flt = p->mm->maj_flt; |
p | 333 | mm/swap.c | if(p->mm->dec_flt >= SWAP_RATIO / SWAP_MIN) { |
p | 334 | mm/swap.c | p->mm->dec_flt = SWAP_RATIO / SWAP_MIN; |
p | 335 | mm/swap.c | p->mm->swap_cnt = SWAP_MIN; |
p | 336 | mm/swap.c | } else if(p->mm->dec_flt <= SWAP_RATIO / SWAP_MAX) |
p | 337 | mm/swap.c | p->mm->swap_cnt = SWAP_MAX; |
p | 339 | mm/swap.c | p->mm->swap_cnt = SWAP_RATIO / p->mm->dec_flt; |
p | 345 | mm/swap.c | for(table = p->mm->swap_table; table < 1024; table++) { |
p | 346 | mm/swap.c | pg_table = ((unsigned long *) p->tss.cr3)[table]; |
p | 354 | mm/swap.c | ((unsigned long *) p->tss.cr3)[table] = 0; |
p | 362 | mm/swap.c | for(page = p->mm->swap_page; page < 1024; page++) { |
p | 368 | mm/swap.c | p->mm->rss--; |
p | 370 | mm/swap.c | p->mm->swap_table = table; |
p | 371 | mm/swap.c | p->mm->swap_page = page + 1; |
p | 372 | mm/swap.c | if((--p->mm->swap_cnt) == 0) |
p | 377 | mm/swap.c | p->mm->rss--; |
p | 382 | mm/swap.c | p->mm->swap_page = 0; |
p | 389 | mm/swap.c | p->mm->swap_table = 0; |
p | 411 | mm/swap.c | struct task_struct * p; |
p | 421 | mm/swap.c | p = task[swap_task]; |
p | 422 | mm/swap.c | if (!p || !p->mm->swappable) { |
p | 432 | mm/swap.c | pg_table = ((unsigned long *) p->tss.cr3)[swap_table]; |
p | 440 | mm/swap.c | ((unsigned long *) p->tss.cr3)[swap_table] = 0; |
p | 453 | mm/swap.c | case 1: p->mm->rss--; return 1; |
p | 454 | mm/swap.c | default: p->mm->rss--; |
p | 654 | mm/swap.c | struct task_struct *p; |
p | 663 | mm/swap.c | p = task[nr]; |
p | 664 | mm/swap.c | if (!p) |
p | 667 | mm/swap.c | ppage = pgt + ((unsigned long *) p->tss.cr3); |
p | 692 | mm/swap.c | ++p->mm->rss; |
p | 706 | mm/swap.c | struct swap_info_struct * p; |
p | 716 | mm/swap.c | p = swap_info; |
p | 717 | mm/swap.c | for (type = 0 ; type < nr_swapfiles ; type++,p++) { |
p | 718 | mm/swap.c | if ((p->flags & SWP_WRITEOK) != SWP_WRITEOK) |
p | 720 | mm/swap.c | if (p->swap_file) { |
p | 721 | mm/swap.c | if (p->swap_file == inode) |
p | 726 | mm/swap.c | if (p->swap_device == inode->i_rdev) |
p | 733 | mm/swap.c | p->flags = SWP_USED; |
p | 736 | mm/swap.c | p->flags = SWP_WRITEOK; |
p | 739 | mm/swap.c | nr_swap_pages -= p->pages; |
p | 740 | mm/swap.c | iput(p->swap_file); |
p | 741 | mm/swap.c | p->swap_file = NULL; |
p | 742 | mm/swap.c | p->swap_device = 0; |
p | 743 | mm/swap.c | vfree(p->swap_map); |
p | 744 | mm/swap.c | p->swap_map = NULL; |
p | 745 | mm/swap.c | free_page((long) p->swap_lockmap); |
p | 746 | mm/swap.c | p->swap_lockmap = NULL; |
p | 747 | mm/swap.c | p->flags = 0; |
p | 758 | mm/swap.c | struct swap_info_struct * p; |
p | 766 | mm/swap.c | p = swap_info; |
p | 767 | mm/swap.c | for (type = 0 ; type < nr_swapfiles ; type++,p++) |
p | 768 | mm/swap.c | if (!(p->flags & SWP_USED)) |
p | 774 | mm/swap.c | p->flags = SWP_USED; |
p | 775 | mm/swap.c | p->swap_file = NULL; |
p | 776 | mm/swap.c | p->swap_device = 0; |
p | 777 | mm/swap.c | p->swap_map = NULL; |
p | 778 | mm/swap.c | p->swap_lockmap = NULL; |
p | 779 | mm/swap.c | p->lowest_bit = 0; |
p | 780 | mm/swap.c | p->highest_bit = 0; |
p | 781 | mm/swap.c | p->max = 1; |
p | 790 | mm/swap.c | p->swap_device = swap_inode->i_rdev; |
p | 793 | mm/swap.c | if (!p->swap_device) |
p | 799 | mm/swap.c | if (p->swap_device == swap_info[i].swap_device) |
p | 803 | mm/swap.c | p->swap_file = swap_inode; |
p | 806 | mm/swap.c | p->swap_lockmap = (unsigned char *) get_free_page(GFP_USER); |
p | 807 | mm/swap.c | if (!p->swap_lockmap) { |
p | 812 | mm/swap.c | read_swap_page(SWP_ENTRY(type,0), (char *) p->swap_lockmap); |
p | 813 | mm/swap.c | if (memcmp("SWAP-SPACE",p->swap_lockmap+4086,10)) { |
p | 818 | mm/swap.c | memset(p->swap_lockmap+PAGE_SIZE-10,0,10); |
p | 820 | mm/swap.c | p->lowest_bit = 0; |
p | 821 | mm/swap.c | p->highest_bit = 0; |
p | 823 | mm/swap.c | if (test_bit(i,p->swap_lockmap)) { |
p | 824 | mm/swap.c | if (!p->lowest_bit) |
p | 825 | mm/swap.c | p->lowest_bit = i; |
p | 826 | mm/swap.c | p->highest_bit = i; |
p | 827 | mm/swap.c | p->max = i+1; |
p | 836 | mm/swap.c | p->swap_map = (unsigned char *) vmalloc(p->max); |
p | 837 | mm/swap.c | if (!p->swap_map) { |
p | 841 | mm/swap.c | for (i = 1 ; i < p->max ; i++) { |
p | 842 | mm/swap.c | if (test_bit(i,p->swap_lockmap)) |
p | 843 | mm/swap.c | p->swap_map[i] = 0; |
p | 845 | mm/swap.c | p->swap_map[i] = 0x80; |
p | 847 | mm/swap.c | p->swap_map[0] = 0x80; |
p | 848 | mm/swap.c | memset(p->swap_lockmap,0,PAGE_SIZE); |
p | 849 | mm/swap.c | p->flags = SWP_WRITEOK; |
p | 850 | mm/swap.c | p->pages = j; |
p | 855 | mm/swap.c | free_page((long) p->swap_lockmap); |
p | 856 | mm/swap.c | vfree(p->swap_map); |
p | 857 | mm/swap.c | iput(p->swap_file); |
p | 858 | mm/swap.c | p->swap_device = 0; |
p | 859 | mm/swap.c | p->swap_file = NULL; |
p | 860 | mm/swap.c | p->swap_map = NULL; |
p | 861 | mm/swap.c | p->swap_lockmap = NULL; |
p | 862 | mm/swap.c | p->flags = 0; |
p | 897 | mm/swap.c | unsigned short * p; |
p | 902 | mm/swap.c | p = mem_map + MAP_NR(end_mem); |
p | 903 | mm/swap.c | start_mem = (unsigned long) p; |
p | 904 | mm/swap.c | while (p > mem_map) |
p | 905 | mm/swap.c | *--p = MAP_PAGE_RESERVED; |
p | 39 | mm/vmalloc.c | struct task_struct * p; |
p | 41 | mm/vmalloc.c | p = &init_task; |
p | 43 | mm/vmalloc.c | ((unsigned long *) p->tss.cr3)[dindex] = value; |
p | 44 | mm/vmalloc.c | p = p->next_task; |
p | 45 | mm/vmalloc.c | } while (p != &init_task); |
p | 130 | mm/vmalloc.c | struct vm_struct **p, *tmp; |
p | 138 | mm/vmalloc.c | for (p = &vmlist ; (tmp = *p) ; p = &tmp->next) { |
p | 140 | mm/vmalloc.c | *p = tmp->next; |
p | 152 | mm/vmalloc.c | struct vm_struct **p, *tmp, *area; |
p | 163 | mm/vmalloc.c | for (p = &vmlist; (tmp = *p) ; p = &tmp->next) { |
p | 169 | mm/vmalloc.c | area->next = *p; |
p | 170 | mm/vmalloc.c | *p = area; |
p | 180 | mm/vmalloc.c | struct vm_struct **p, *tmp; |
p | 184 | mm/vmalloc.c | for (p = &vmlist; (tmp = *p) ; p = &tmp->next) { |
p | 1352 | net/inet/af_inet.c | struct inet_protocol *p; |
p | 1377 | net/inet/af_inet.c | for(p = inet_protocol_base; p != NULL;) |
p | 1379 | net/inet/af_inet.c | struct inet_protocol *tmp = (struct inet_protocol *) p->next; |
p | 1380 | net/inet/af_inet.c | inet_add_protocol(p); |
p | 1381 | net/inet/af_inet.c | printk("%s%s",p->name,tmp?", ":"\n"); |
p | 1382 | net/inet/af_inet.c | p = tmp; |
p | 258 | net/inet/packet.c | struct packet_type *p; |
p | 260 | net/inet/packet.c | p = (struct packet_type *) kmalloc(sizeof(*p), GFP_KERNEL); |
p | 261 | net/inet/packet.c | if (p == NULL) |
p | 264 | net/inet/packet.c | p->func = packet_rcv; |
p | 265 | net/inet/packet.c | p->type = sk->num; |
p | 266 | net/inet/packet.c | p->data = (void *)sk; |
p | 267 | net/inet/packet.c | dev_add_pack(p); |
p | 273 | net/inet/packet.c | sk->pair = (struct sock *)p; |
p | 89 | net/inet/protocol.c | struct inet_protocol *p; |
p | 92 | net/inet/protocol.c | for (p = inet_protos[hash] ; p != NULL; p=p->next) { |
p | 93 | net/inet/protocol.c | if (p->protocol == prot) return((struct inet_protocol *) p); |
p | 125 | net/inet/protocol.c | struct inet_protocol *p; |
p | 135 | net/inet/protocol.c | p = (struct inet_protocol *) inet_protos[hash]; |
p | 136 | net/inet/protocol.c | while(p != NULL) { |
p | 142 | net/inet/protocol.c | if (p->next != NULL && p->next == prot) { |
p | 147 | net/inet/protocol.c | if (p->copy == 0 && lp != NULL) lp->copy = 0; |
p | 148 | net/inet/protocol.c | p->next = prot->next; |
p | 152 | net/inet/protocol.c | if (p->next != NULL && p->next->protocol == prot->protocol) { |
p | 153 | net/inet/protocol.c | lp = p; |
p | 156 | net/inet/protocol.c | p = (struct inet_protocol *) p->next; |
p | 285 | net/inet/raw.c | struct inet_protocol *p; |
p | 287 | net/inet/raw.c | p = (struct inet_protocol *) kmalloc(sizeof (*p), GFP_KERNEL); |
p | 288 | net/inet/raw.c | if (p == NULL) return(-ENOMEM); |
p | 290 | net/inet/raw.c | p->handler = raw_rcv; |
p | 291 | net/inet/raw.c | p->protocol = sk->protocol; |
p | 292 | net/inet/raw.c | p->data = (void *)sk; |
p | 293 | net/inet/raw.c | p->err_handler = raw_err; |
p | 294 | net/inet/raw.c | p->name="USER"; |
p | 295 | net/inet/raw.c | p->frag_handler = NULL; /* For now */ |
p | 296 | net/inet/raw.c | inet_add_protocol(p); |
p | 299 | net/inet/raw.c | sk->pair = (struct sock *)p; |
p | 52 | net/inet/utils.c | char *p; |
p | 54 | net/inet/utils.c | p = (char *) ∈ |
p | 56 | net/inet/utils.c | (p[0] & 255), (p[1] & 255), (p[2] & 255), (p[3] & 255)); |
p | 216 | zBoot/gzip.h | #define SH(p) ((ush)(uch)((p)[0]) | ((ush)(uch)((p)[1]) << 8)) |
p | 217 | zBoot/gzip.h | #define LG(p) ((ulg)(SH(p)) | ((ulg)(SH((p)+2)) << 16)) |
p | 122 | zBoot/inflate.c | register unsigned *p; /* pointer into c[], b[], or v[] */ |
p | 137 | zBoot/inflate.c | p = b; i = n; |
p | 139 | zBoot/inflate.c | c[*p++]++; /* assume all entries <= BMAX */ |
p | 180 | zBoot/inflate.c | p = c + 1; xp = x + 2; |
p | 182 | zBoot/inflate.c | *xp++ = (j += *p++); |
p | 188 | zBoot/inflate.c | p = b; i = 0; |
p | 190 | zBoot/inflate.c | if ((j = *p++) != 0) |
p | 198 | zBoot/inflate.c | p = v; /* grab values in bit order */ |
p | 264 | zBoot/inflate.c | if (p >= v + n) |
p | 266 | zBoot/inflate.c | else if (*p < s) |
p | 268 | zBoot/inflate.c | r.e = (uch)(*p < 256 ? 16 : 15); /* 256 is end-of-block code */ |
p | 269 | zBoot/inflate.c | r.v.n = *p++; /* simple code is just the value */ |
p | 273 | zBoot/inflate.c | r.e = (uch)e[*p - s]; /* non-simple--look up in lists */ |
p | 274 | zBoot/inflate.c | r.v.n = d[*p++ - s]; |
p | 313 | zBoot/inflate.c | register struct huft *p, *q; |
p | 317 | zBoot/inflate.c | p = t; |
p | 318 | zBoot/inflate.c | while (p != (struct huft *)NULL) |
p | 320 | zBoot/inflate.c | q = (--p)->v.t; |
p | 321 | zBoot/inflate.c | free(p); |
p | 322 | zBoot/inflate.c | p = q; |
p | 85 | zBoot/misc.c | void *p; |
p | 93 | zBoot/misc.c | p = (void *)free_mem_ptr; |
p | 106 | zBoot/misc.c | return p; |
p | 109 | zBoot/misc.c | return p; |
p | 275 | zBoot/misc.c | static int p[] = {0,1,2,4,5,7,8,10,11,12,16,22,23,26}; |
p | 279 | zBoot/misc.c | for (i = 0; i < sizeof(p)/sizeof(int); i++) |
p | 280 | zBoot/misc.c | e |= 1L << (31 - p[i]); |