tag | line | file | source code |
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 | 136 | drivers/block/mcd.c | static void bin2bcd(unsigned char *p); |
p | 1218 | drivers/block/mcd.c | bin2bcd(unsigned char *p) |
p | 1222 | drivers/block/mcd.c | u = *p % 10; |
p | 1223 | drivers/block/mcd.c | t = *p / 10; |
p | 1224 | drivers/block/mcd.c | *p = u | (t << 4); |
p | 636 | drivers/block/sbpcd.c | static void bin2bcdx(u_char *p) /* must work only up to 75 or 99 */ |
p | 638 | drivers/block/sbpcd.c | *p=((*p/10)<<4)|(*p%10); |
p | 1667 | drivers/block/sbpcd.c | static int convert_UPC(u_char *p) |
p | 1671 | drivers/block/sbpcd.c | p++; |
p | 1672 | drivers/block/sbpcd.c | if (!new_drive) p[13]=0; |
p | 1675 | drivers/block/sbpcd.c | if (new_drive) DriveStruct[d].UPC_buf[i]=swap_nibbles(*p++); |
p | 1678 | drivers/block/sbpcd.c | DriveStruct[d].UPC_buf[i]=((*p++)<<4)&0xFF; |
p | 1679 | drivers/block/sbpcd.c | DriveStruct[d].UPC_buf[i] |= *p++; |
p | 2653 | drivers/block/sbpcd.c | u_char *p; |
p | 2762 | drivers/block/sbpcd.c | p = DriveStruct[d].aud_buf; |
p | 2767 | drivers/block/sbpcd.c | READ_DATA(CDi_data, p, read_audio.nframes*CD_FRAMESIZE_RAW); |
p | 3085 | drivers/block/sbpcd.c | u_char *p; |
p | 3134 | drivers/block/sbpcd.c | p = DriveStruct[d].sbp_buf + frame * CD_FRAMESIZE; |
p | 3138 | drivers/block/sbpcd.c | READ_DATA(CDi_data, p, CD_FRAMESIZE); |
p | 3358 | drivers/block/sbpcd.c | void sbpcd_setup(char *s, int *p) |
p | 3360 | drivers/block/sbpcd.c | DPRINTF((DBG_INI,"SBPCD: sbpcd_setup called with %04X,%s\n",p[1], s)); |
p | 3364 | drivers/block/sbpcd.c | if (p[0]>0) sbpcd_ioaddr=p[1]; |
p | 766 | drivers/char/console.c | static void respond_string(char * p, struct tty_struct * tty) |
p | 768 | drivers/char/console.c | while (*p) { |
p | 769 | drivers/char/console.c | tty_insert_flip_char(tty, *p, 0); |
p | 770 | drivers/char/console.c | p++; |
p | 804 | drivers/char/console.c | unsigned char *p; |
p | 807 | drivers/char/console.c | for (p = (unsigned char *)origin+1; p < (unsigned char *)scr_end; p+=2) |
p | 808 | drivers/char/console.c | *p = (*p & 0x88) | (((*p >> 4) | (*p << 4)) & 0x77); |
p | 810 | drivers/char/console.c | for (p = (unsigned char *)origin+1; p < (unsigned char *)scr_end; p+=2) |
p | 811 | drivers/char/console.c | *p ^= *p & 0x07 == 1 ? 0x70 : 0x77; |
p | 902 | drivers/char/console.c | unsigned short * p = (unsigned short *) pos; |
p | 905 | drivers/char/console.c | tmp = *p; |
p | 906 | drivers/char/console.c | *p = old; |
p | 908 | drivers/char/console.c | p++; |
p | 922 | drivers/char/console.c | unsigned short * p = (unsigned short *) pos; |
p | 925 | drivers/char/console.c | *p = *(p+1); |
p | 926 | drivers/char/console.c | p++; |
p | 928 | drivers/char/console.c | *p = video_erase_char; |
p | 1790 | drivers/char/console.c | unsigned char *p, *p1, *p2; |
p | 1796 | drivers/char/console.c | p = p1; |
p | 1798 | drivers/char/console.c | p2 = p; |
p | 1800 | drivers/char/console.c | for (p = p1; p <= p2; p += 2) |
p | 1801 | drivers/char/console.c | *p = (*p & 0x88) | ((*p << 4) & 0x70) | ((*p >> 4) & 0x07); |
p | 1807 | drivers/char/console.c | unsigned char *p; |
p | 1820 | drivers/char/console.c | p = (unsigned char *)origin - hwscroll_offset + where + 1; |
p | 1821 | drivers/char/console.c | *p ^= 0x77; |
p | 1823 | drivers/char/console.c | prev=p; |
p | 1849 | drivers/char/console.c | static inline int atedge(const int p) |
p | 1851 | 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 | 213 | drivers/char/tty_io.c | struct tty_driver *p; |
p | 218 | drivers/char/tty_io.c | for (p = tty_drivers; p; p = p->next) { |
p | 219 | drivers/char/tty_io.c | if (p->major != major) |
p | 221 | drivers/char/tty_io.c | if (minor < p->minor_start) |
p | 223 | drivers/char/tty_io.c | if (minor >= p->minor_start + p->num) |
p | 225 | drivers/char/tty_io.c | return p; |
p | 311 | drivers/char/tty_io.c | struct task_struct *p; |
p | 362 | drivers/char/tty_io.c | for_each_task(p) { |
p | 363 | drivers/char/tty_io.c | if (p->tty == tty) |
p | 364 | drivers/char/tty_io.c | p->tty = NULL; |
p | 404 | drivers/char/tty_io.c | struct task_struct *p; |
p | 416 | drivers/char/tty_io.c | for_each_task(p) |
p | 417 | drivers/char/tty_io.c | if (p->session == current->session) |
p | 418 | drivers/char/tty_io.c | p->tty = NULL; |
p | 887 | drivers/char/tty_io.c | struct task_struct **p; |
p | 980 | drivers/char/tty_io.c | for (p = &LAST_TASK ; p > &FIRST_TASK ; --p) { |
p | 981 | drivers/char/tty_io.c | if ((*p) && (*p)->tty == tty) |
p | 982 | drivers/char/tty_io.c | (*p)->tty = NULL; |
p | 1201 | drivers/char/tty_io.c | struct task_struct **p; |
p | 1208 | drivers/char/tty_io.c | for (p = &FIRST_TASK ; p <= &LAST_TASK ; p++, n++) |
p | 1209 | drivers/char/tty_io.c | if (*p) |
p | 1211 | drivers/char/tty_io.c | c = (char *)(*p); |
p | 1322 | drivers/char/tty_io.c | struct task_struct *p; |
p | 1324 | drivers/char/tty_io.c | for_each_task(p) |
p | 1325 | drivers/char/tty_io.c | if (p->tty == tty) |
p | 1326 | drivers/char/tty_io.c | p->tty = NULL; |
p | 1437 | drivers/char/tty_io.c | struct task_struct **p; |
p | 1446 | drivers/char/tty_io.c | for (p = &LAST_TASK ; p > &FIRST_TASK ; --p) { |
p | 1447 | drivers/char/tty_io.c | if (!(*p)) |
p | 1449 | drivers/char/tty_io.c | if (((*p)->tty == tty) || |
p | 1450 | drivers/char/tty_io.c | ((session > 0) && ((*p)->session == session))) |
p | 1451 | drivers/char/tty_io.c | send_sig(SIGKILL, *p, 1); |
p | 1454 | drivers/char/tty_io.c | filp = (*p)->files->fd[i]; |
p | 1457 | 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 | 100 | drivers/net/3c505.c | #define CHECK_NULL(p) if (!p) printk(null_msg, filename, __LINE__) |
p | 659 | drivers/net/atp.c | static void read_block(short ioaddr, int length, unsigned char *p, int data_mode) |
p | 667 | drivers/net/atp.c | do *p++ = read_byte_mode0(ioaddr); while (--length > 0); |
p | 669 | drivers/net/atp.c | do *p++ = read_byte_mode2(ioaddr); while (--length > 0); |
p | 671 | drivers/net/atp.c | do *p++ = read_byte_mode4(ioaddr); while (--length > 0); |
p | 673 | drivers/net/atp.c | do *p++ = read_byte_mode6(ioaddr); while (--length > 0); |
p | 787 | drivers/net/depca.c | char *p = (char *) skb->data; |
p | 821 | drivers/net/depca.c | for (p += len; skbL > 0; p += len) { |
p | 846 | 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 | 1681 | drivers/net/ppp.c | unsigned char *p; |
p | 1694 | drivers/net/ppp.c | p = (unsigned char *) (skb + 1); |
p | 1725 | drivers/net/ppp.c | if (ppp_us_queue (ppp, proto, p, len)) |
p | 1743 | drivers/net/ppp.c | len = slhc_compress(ppp->slcomp, p, len, ppp->cbuff, &p, 0); |
p | 1744 | drivers/net/ppp.c | if (p[0] & SL_TYPE_COMPRESSED_TCP) |
p | 1747 | drivers/net/ppp.c | if (p[0] >= SL_TYPE_UNCOMPRESSED_TCP) { |
p | 1749 | drivers/net/ppp.c | p[0] = (p[0] & 0x0f) | 0x40; |
p | 1788 | drivers/net/ppp.c | ppp_stuff_char(ppp, *p++); |
p | 643 | drivers/net/sk_g16.c | struct priv *p; /* SK_G16 private structure */ |
p | 791 | drivers/net/sk_g16.c | p = dev->priv = (void *) kmalloc(sizeof(struct priv), GFP_KERNEL); |
p | 812 | drivers/net/sk_g16.c | p->ram = (struct SK_ram *) rom_addr; /* Set dual ported RAM addr */ |
p | 813 | drivers/net/sk_g16.c | p->tmdhead = &(p->ram)->tmde[0]; /* Set TMD head */ |
p | 814 | drivers/net/sk_g16.c | p->rmdhead = &(p->ram)->rmde[0]; /* Set RMD head */ |
p | 820 | drivers/net/sk_g16.c | p->tmdbufs[i] = &(p->ram)->tmdbuf[i]; |
p | 825 | drivers/net/sk_g16.c | p->rmdbufs[i] = &(p->ram)->rmdbuf[i]; |
p | 871 | drivers/net/sk_g16.c | struct priv *p = (struct priv *)dev->priv; |
p | 960 | drivers/net/sk_g16.c | (int) dev->irq, (unsigned int) p->ram); |
p | 1031 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1042 | drivers/net/sk_g16.c | p->tmdnum = 0; /* First descriptor for transmitting */ |
p | 1043 | drivers/net/sk_g16.c | p->tmdlast = 0; /* First descriptor for reading stats */ |
p | 1047 | drivers/net/sk_g16.c | tmdp = p->tmdhead + i; |
p | 1049 | drivers/net/sk_g16.c | tmdp->u.buffer = (unsigned long) p->tmdbufs[i]; /* assign buffer */ |
p | 1058 | drivers/net/sk_g16.c | p->rmdnum = 0; /* First RMD which will be used */ |
p | 1062 | drivers/net/sk_g16.c | rmdp = p->rmdhead + i; |
p | 1065 | drivers/net/sk_g16.c | rmdp->u.buffer = (unsigned long) p->rmdbufs[i]; /* assign buffer */ |
p | 1082 | drivers/net/sk_g16.c | (p->ram)->ib.mode = mode; /* Set operation mode */ |
p | 1086 | drivers/net/sk_g16.c | (p->ram)->ib.paddr[i] = dev->dev_addr[i]; |
p | 1091 | drivers/net/sk_g16.c | (p->ram)->ib.laddr[i] = 0; /* We do not use logical addressing */ |
p | 1096 | drivers/net/sk_g16.c | (p->ram)->ib.rdrp = (int) p->rmdhead | RMDNUMMASK; |
p | 1097 | drivers/net/sk_g16.c | (p->ram)->ib.tdrp = (int) p->tmdhead | TMDNUMMASK; |
p | 1150 | drivers/net/sk_g16.c | (unsigned int) &(p->ram)->ib); |
p | 1196 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1253 | drivers/net/sk_g16.c | tmdp = p->tmdhead + p->tmdnum; /* Which descriptor for transmitting */ |
p | 1278 | drivers/net/sk_g16.c | p->tmdnum++; |
p | 1279 | drivers/net/sk_g16.c | p->tmdnum &= TMDNUM-1; |
p | 1282 | drivers/net/sk_g16.c | if (! ((p->tmdhead + p->tmdnum)->u.s.status & TX_OWN) ) |
p | 1318 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1352 | drivers/net/sk_g16.c | p->stats.rx_dropped++; |
p | 1393 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1399 | drivers/net/sk_g16.c | tmdp = p->tmdhead + p->tmdlast; /* Which buffer we sent at last ? */ |
p | 1402 | drivers/net/sk_g16.c | p->tmdlast++; |
p | 1403 | drivers/net/sk_g16.c | p->tmdlast &= TMDNUM-1; |
p | 1422 | drivers/net/sk_g16.c | p->stats.tx_aborted_errors++; |
p | 1424 | drivers/net/sk_g16.c | p->stats.tx_window_errors++; |
p | 1426 | drivers/net/sk_g16.c | p->stats.tx_carrier_errors++; |
p | 1429 | drivers/net/sk_g16.c | p->stats.tx_fifo_errors++; |
p | 1439 | drivers/net/sk_g16.c | p->stats.tx_errors++; |
p | 1457 | drivers/net/sk_g16.c | p->stats.collisions++; |
p | 1461 | drivers/net/sk_g16.c | p->stats.tx_packets++; |
p | 1513 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1518 | drivers/net/sk_g16.c | rmdp = p->rmdhead + p->rmdnum; |
p | 1540 | drivers/net/sk_g16.c | p->stats.rx_errors++; /* bad packet received */ |
p | 1541 | drivers/net/sk_g16.c | p->stats.rx_length_errors++; /* packet to long */ |
p | 1561 | drivers/net/sk_g16.c | p->stats.rx_errors++; |
p | 1563 | drivers/net/sk_g16.c | if (rmdstat & RX_FRAM) p->stats.rx_frame_errors++; |
p | 1564 | drivers/net/sk_g16.c | if (rmdstat & RX_CRC) p->stats.rx_crc_errors++; |
p | 1588 | drivers/net/sk_g16.c | p->stats.rx_dropped++; |
p | 1624 | drivers/net/sk_g16.c | p->stats.rx_packets++; |
p | 1627 | drivers/net/sk_g16.c | p->rmdnum++; |
p | 1628 | drivers/net/sk_g16.c | p->rmdnum %= RMDNUM; |
p | 1630 | drivers/net/sk_g16.c | rmdp = p->rmdhead + p->rmdnum; |
p | 1697 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 1702 | drivers/net/sk_g16.c | return &p->stats; /* Return Device status */ |
p | 2086 | drivers/net/sk_g16.c | struct priv *p = (struct priv *) dev->priv; |
p | 2091 | drivers/net/sk_g16.c | (unsigned int) p->ram, |
p | 2092 | drivers/net/sk_g16.c | (unsigned int) p->tmdhead, |
p | 2093 | drivers/net/sk_g16.c | (unsigned int) p->rmdhead, |
p | 2094 | drivers/net/sk_g16.c | (unsigned int) &(p->ram)->ib); |
p | 2104 | drivers/net/sk_g16.c | printk("tmdbufs%d: %#08x ", (i+1), (int) p->tmdbufs[i]); |
p | 2114 | drivers/net/sk_g16.c | printk("rmdbufs%d: %#08x ", (i+1), (int) p->rmdbufs[i]); |
p | 356 | drivers/net/slip.c | unsigned char *p; |
p | 369 | drivers/net/slip.c | p = icp; |
p | 372 | drivers/net/slip.c | len = slhc_compress(sl->slcomp, p, len, sl->cbuff, &p, 1); |
p | 375 | drivers/net/slip.c | count=slip_esc6(p, (unsigned char *)sl->xbuff,len); |
p | 377 | drivers/net/slip.c | count=slip_esc(p, (unsigned char *)sl->xbuff,len); |
p | 534 | drivers/net/slip.c | unsigned char *p; |
p | 560 | drivers/net/slip.c | p = (unsigned char *) kmalloc(l + 4, GFP_KERNEL); |
p | 561 | drivers/net/slip.c | if (p == NULL) { |
p | 566 | drivers/net/slip.c | sl->dev->mem_start = (unsigned long) p; |
p | 569 | drivers/net/slip.c | p = (unsigned char *) kmalloc(l + 4, GFP_KERNEL); |
p | 570 | drivers/net/slip.c | if (p == NULL) { |
p | 574 | drivers/net/slip.c | sl->dev->rmem_start = (unsigned long) p; |
p | 586 | drivers/net/slip.c | p = (unsigned char *) kmalloc(l + 4, GFP_KERNEL); |
p | 587 | drivers/net/slip.c | if (p == NULL) { |
p | 592 | drivers/net/slip.c | sl->cbuff = p; |
p | 207 | drivers/net/znet.c | char *p; |
p | 210 | drivers/net/znet.c | for(p = (char *)0xf0000; p < (char *)0x100000; p++) |
p | 211 | drivers/net/znet.c | if (*p == 'N' && strncmp(p, "NETIDBLK", 8) == 0) |
p | 214 | drivers/net/znet.c | if (p >= (char *)0x100000) { |
p | 219 | drivers/net/znet.c | netinfo = (struct netidblk *)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 | 158 | drivers/scsi/scsi_debug.c | struct partition * p; |
p | 275 | drivers/scsi/scsi_debug.c | p = (struct partition* ) (buff + 0x1be); |
p | 278 | drivers/scsi/scsi_debug.c | p->start_sect = starts[npart]; |
p | 279 | drivers/scsi/scsi_debug.c | p->nr_sects = starts[npart+1] - starts [npart]; |
p | 280 | drivers/scsi/scsi_debug.c | p->sys_ind = 0x81; /* Linux partition */ |
p | 281 | drivers/scsi/scsi_debug.c | p++; |
p | 844 | drivers/scsi/ultrastor.c | unsigned char p = inb(port0 + i); |
p | 845 | drivers/scsi/ultrastor.c | out[28 + i * 3] = "0123456789abcdef"[p >> 4]; |
p | 846 | 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 | 168 | drivers/sound/audio.c | int c, p, l; |
p | 173 | drivers/sound/audio.c | p = 0; |
p | 221 | drivers/sound/audio.c | COPY_FROM_USER (&wr_dma_buf[dev][wr_buff_ptr[dev]], buf, p, l); |
p | 225 | drivers/sound/audio.c | wr_dma_buf[dev], wr_buff_ptr[dev], buf, p, l); |
p | 244 | drivers/sound/audio.c | p += l; |
p | 265 | drivers/sound/audio.c | int c, p, l; |
p | 270 | drivers/sound/audio.c | p = 0; |
p | 309 | drivers/sound/audio.c | COPY_TO_USER (buf, p, dmabuf, l); |
p | 313 | drivers/sound/audio.c | p += l; |
p | 57 | drivers/sound/dmabuf.c | unsigned i, p, n; |
p | 126 | drivers/sound/dmabuf.c | p = 0; |
p | 128 | drivers/sound/dmabuf.c | while ((p + bsz) <= dsp_dev->buffsize && |
p | 132 | drivers/sound/dmabuf.c | dmap->buf[n] = dmap->raw_buf[i] + p; |
p | 133 | drivers/sound/dmabuf.c | dmap->buf_phys[n] = dmap->raw_buf_phys[i] + p; |
p | 134 | drivers/sound/dmabuf.c | p += bsz; |
p | 373 | drivers/sound/dmabuf.c | int p = dmap->counts[dmap->qhead] + c; |
p | 375 | drivers/sound/dmabuf.c | if (p >= dmap->fragment_size) |
p | 385 | drivers/sound/dmabuf.c | dmap->counts[dmap->qhead] = p; |
p | 2606 | drivers/sound/gus_wave.c | int i, p; |
p | 2608 | drivers/sound/gus_wave.c | p = alloc->ptr; |
p | 2615 | drivers/sound/gus_wave.c | if (alloc->map[p] == 0) |
p | 2617 | drivers/sound/gus_wave.c | alloc->ptr = p; |
p | 2618 | drivers/sound/gus_wave.c | return p; |
p | 2620 | drivers/sound/gus_wave.c | p = (p + 1) % alloc->max_voice; |
p | 2629 | drivers/sound/gus_wave.c | if (alloc->map[p] == 0xffff) |
p | 2631 | drivers/sound/gus_wave.c | alloc->ptr = p; |
p | 2632 | drivers/sound/gus_wave.c | return p; |
p | 2634 | drivers/sound/gus_wave.c | p = (p + 1) % alloc->max_voice; |
p | 2638 | drivers/sound/gus_wave.c | alloc->ptr = p; |
p | 2639 | drivers/sound/gus_wave.c | return p; |
p | 1079 | drivers/sound/opl3.c | int i, p, avail_voices; |
p | 1100 | drivers/sound/opl3.c | p = 0; |
p | 1106 | drivers/sound/opl3.c | p = 6; |
p | 1108 | drivers/sound/opl3.c | p = 0; |
p | 1118 | drivers/sound/opl3.c | if (alloc->map[p] == 0) |
p | 1120 | drivers/sound/opl3.c | return p; |
p | 1122 | drivers/sound/opl3.c | p = (p + 1) % nr_voices; |
p | 812 | drivers/sound/pss.c | int c, p; |
p | 819 | drivers/sound/pss.c | p = 0; |
p | 100 | drivers/sound/sequencer.c | int c = count, p = 0; |
p | 128 | drivers/sound/sequencer.c | COPY_TO_USER (buf, p, &iqueue[iqhead * IEV_SZ], ev_len); |
p | 129 | drivers/sound/sequencer.c | p += ev_len; |
p | 234 | drivers/sound/sequencer.c | int p = 0, c, ev_size; |
p | 254 | drivers/sound/sequencer.c | COPY_FROM_USER (event, buf, p, 4); |
p | 268 | drivers/sound/sequencer.c | err = synth_devs[dev]->load_patch (dev, *(short *) &event[0], buf, p + 4, c, 0); |
p | 292 | drivers/sound/sequencer.c | COPY_FROM_USER (&event[4], buf, p + 4, 4); |
p | 342 | drivers/sound/sequencer.c | p += ev_size; |
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 | 1025 | fs/buffer.c | int * p; |
p | 1032 | fs/buffer.c | p = b; |
p | 1034 | fs/buffer.c | block = *(p++); |
p | 1041 | fs/buffer.c | p = b; |
p | 1051 | fs/buffer.c | bh->b_blocknr = *(p++); |
p | 1207 | fs/buffer.c | struct buffer_head * tmp, * p; |
p | 1223 | fs/buffer.c | p = tmp; |
p | 1227 | fs/buffer.c | if (p == *bhp) |
p | 1229 | fs/buffer.c | *bhp = p->b_prev_free; |
p | 1230 | fs/buffer.c | if (p == *bhp) /* Was this the last in the list? */ |
p | 1233 | fs/buffer.c | remove_from_queues(p); |
p | 1234 | fs/buffer.c | put_unused_buffer_head(p); |
p | 1422 | fs/buffer.c | struct buffer_head * tmp, * p; |
p | 1445 | fs/buffer.c | p = tmp; |
p | 1447 | fs/buffer.c | remove_from_queues(p); |
p | 1448 | fs/buffer.c | p->b_dev=dev; |
p | 1449 | fs/buffer.c | p->b_uptodate = 0; |
p | 1450 | fs/buffer.c | p->b_req = 0; |
p | 1451 | fs/buffer.c | p->b_blocknr=starting_block++; |
p | 1452 | fs/buffer.c | insert_into_queues(p); |
p | 313 | fs/exec.c | unsigned long * create_tables(char * p,int argc,int envc,int ibcs) |
p | 322 | fs/exec.c | mpnt->vm_start = PAGE_MASK & (unsigned long) p; |
p | 332 | fs/exec.c | sp = (unsigned long *) (0xfffffffc & (unsigned long) p); |
p | 342 | fs/exec.c | current->mm->arg_start = (unsigned long) p; |
p | 344 | fs/exec.c | put_fs_long((unsigned long) p,argv++); |
p | 345 | fs/exec.c | while (get_fs_byte(p++)) /* nothing */ ; |
p | 348 | fs/exec.c | current->mm->arg_end = current->mm->env_start = (unsigned long) p; |
p | 350 | fs/exec.c | put_fs_long((unsigned long) p,envp++); |
p | 351 | fs/exec.c | while (get_fs_byte(p++)) /* nothing */ ; |
p | 354 | fs/exec.c | current->mm->env_end = (unsigned long) p; |
p | 391 | fs/exec.c | unsigned long p, int from_kmem) |
p | 397 | fs/exec.c | if (!p) |
p | 414 | fs/exec.c | if (p < len) { /* this shouldn't happen - 128kB */ |
p | 419 | fs/exec.c | --p; --tmp; --len; |
p | 421 | fs/exec.c | offset = p % PAGE_SIZE; |
p | 424 | fs/exec.c | if (!(pag = (char *) page[p/PAGE_SIZE]) && |
p | 425 | fs/exec.c | !(pag = (char *) page[p/PAGE_SIZE] = |
p | 437 | fs/exec.c | return p; |
p | 595 | fs/exec.c | bprm.p = PAGE_SIZE*MAX_ARG_PAGES-4; |
p | 689 | fs/exec.c | bprm.p = copy_strings(bprm.envc, envp, bprm.page, bprm.p, 0); |
p | 690 | fs/exec.c | bprm.p = copy_strings(--bprm.argc, argv+1, bprm.page, bprm.p, 0); |
p | 700 | fs/exec.c | bprm.p = copy_strings(1, &bprm.filename, bprm.page, bprm.p, 2); |
p | 703 | fs/exec.c | bprm.p = copy_strings(1, &i_arg, bprm.page, bprm.p, 2); |
p | 706 | fs/exec.c | bprm.p = copy_strings(1, &i_name, bprm.page, bprm.p, 2); |
p | 708 | fs/exec.c | if (!bprm.p) { |
p | 723 | fs/exec.c | bprm.p = copy_strings(bprm.envc,envp,bprm.page,bprm.p,0); |
p | 724 | fs/exec.c | bprm.p = copy_strings(bprm.argc,argv,bprm.page,bprm.p,0); |
p | 725 | fs/exec.c | if (!bprm.p) { |
p | 790 | 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, |
p | 893 | fs/exec.c | current->mm->start_stack = p; |
p | 895 | 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 | 137 | fs/proc/root.c | struct task_struct * p; |
p | 162 | fs/proc/root.c | p = task[nr]; |
p | 163 | 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 | 57 | 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 | 66 | ibcs/binfmt_elf.c | mpnt->vm_start = PAGE_MASK & (unsigned long) p; |
p | 76 | ibcs/binfmt_elf.c | sp = (unsigned long *) (0xfffffffc & (unsigned long) p); |
p | 105 | ibcs/binfmt_elf.c | current->mm->arg_start = (unsigned long) p; |
p | 107 | ibcs/binfmt_elf.c | put_fs_long((unsigned long) p,argv++); |
p | 108 | ibcs/binfmt_elf.c | while (get_fs_byte(p++)) /* nothing */ ; |
p | 111 | ibcs/binfmt_elf.c | current->mm->arg_end = current->mm->env_start = (unsigned long) p; |
p | 113 | ibcs/binfmt_elf.c | put_fs_long((unsigned long) p,envp++); |
p | 114 | ibcs/binfmt_elf.c | while (get_fs_byte(p++)) /* nothing */ ; |
p | 117 | ibcs/binfmt_elf.c | current->mm->env_end = (unsigned long) p; |
p | 411 | ibcs/binfmt_elf.c | bprm->p = copy_strings(1,&passed_p,bprm->page,bprm->p,2); |
p | 415 | ibcs/binfmt_elf.c | if (!bprm->p) { |
p | 436 | ibcs/binfmt_elf.c | bprm->p += change_ldt(0, bprm->page); |
p | 437 | ibcs/binfmt_elf.c | current->mm->start_stack = bprm->p; |
p | 521 | ibcs/binfmt_elf.c | current->start_stack = p = elf_stack - 4; |
p | 523 | ibcs/binfmt_elf.c | bprm->p -= MAX_ARG_PAGES*PAGE_SIZE; |
p | 524 | ibcs/binfmt_elf.c | bprm->p = (unsigned long) |
p | 525 | ibcs/binfmt_elf.c | create_elf_tables((char *)bprm->p, |
p | 537 | ibcs/binfmt_elf.c | current->mm->start_stack = bprm->p; |
p | 556 | ibcs/binfmt_elf.c | regs->esp = bprm->p; /* stack pointer */ |
p | 19 | include/linux/binfmts.h | unsigned long p; |
p | 49 | include/linux/binfmts.h | extern unsigned long * create_tables(char * p,int argc,int envc,int ibcs); |
p | 51 | include/linux/binfmts.h | unsigned long p, int from_kmem); |
p | 367 | include/linux/sched.h | extern void sleep_on(struct wait_queue ** p); |
p | 368 | include/linux/sched.h | extern void interruptible_sleep_on(struct wait_queue ** p); |
p | 369 | include/linux/sched.h | extern void wake_up(struct wait_queue ** p); |
p | 370 | include/linux/sched.h | extern void wake_up_interruptible(struct wait_queue ** p); |
p | 373 | include/linux/sched.h | extern int send_sig(unsigned long sig,struct task_struct * p,int priv); |
p | 458 | include/linux/sched.h | extern inline void add_wait_queue(struct wait_queue ** p, struct wait_queue * wait) |
p | 472 | include/linux/sched.h | if (!*p) { |
p | 474 | include/linux/sched.h | *p = wait; |
p | 476 | include/linux/sched.h | wait->next = (*p)->next; |
p | 477 | include/linux/sched.h | (*p)->next = wait; |
p | 482 | include/linux/sched.h | extern inline void remove_wait_queue(struct wait_queue ** p, struct wait_queue * wait) |
p | 492 | include/linux/sched.h | if ((*p == wait) && |
p | 496 | include/linux/sched.h | ((*p = wait->next) == wait)) { |
p | 497 | include/linux/sched.h | *p = NULL; |
p | 503 | include/linux/sched.h | if (tmp == *p) |
p | 514 | include/linux/sched.h | printk("list = %08x, queue = %08x\n",(unsigned long) p, (unsigned long) wait); |
p | 521 | include/linux/sched.h | extern inline void select_wait(struct wait_queue ** wait_address, select_table * p) |
p | 525 | include/linux/sched.h | if (!p || !wait_address) |
p | 527 | include/linux/sched.h | if (p->nr >= __MAX_SELECT_TABLE_ENTRIES) |
p | 529 | include/linux/sched.h | entry = p->entry + p->nr; |
p | 534 | include/linux/sched.h | p->nr++; |
p | 579 | include/linux/sched.h | #define REMOVE_LINKS(p) do { unsigned long flags; \ |
p | 581 | include/linux/sched.h | (p)->next_task->prev_task = (p)->prev_task; \ |
p | 582 | include/linux/sched.h | (p)->prev_task->next_task = (p)->next_task; \ |
p | 584 | include/linux/sched.h | if ((p)->p_osptr) \ |
p | 585 | include/linux/sched.h | (p)->p_osptr->p_ysptr = (p)->p_ysptr; \ |
p | 586 | include/linux/sched.h | if ((p)->p_ysptr) \ |
p | 587 | include/linux/sched.h | (p)->p_ysptr->p_osptr = (p)->p_osptr; \ |
p | 589 | include/linux/sched.h | (p)->p_pptr->p_cptr = (p)->p_osptr; \ |
p | 592 | include/linux/sched.h | #define SET_LINKS(p) do { unsigned long flags; \ |
p | 594 | include/linux/sched.h | (p)->next_task = &init_task; \ |
p | 595 | include/linux/sched.h | (p)->prev_task = init_task.prev_task; \ |
p | 596 | include/linux/sched.h | init_task.prev_task->next_task = (p); \ |
p | 597 | include/linux/sched.h | init_task.prev_task = (p); \ |
p | 599 | include/linux/sched.h | (p)->p_ysptr = NULL; \ |
p | 600 | include/linux/sched.h | if (((p)->p_osptr = (p)->p_pptr->p_cptr) != NULL) \ |
p | 601 | include/linux/sched.h | (p)->p_osptr->p_ysptr = p; \ |
p | 602 | include/linux/sched.h | (p)->p_pptr->p_cptr = p; \ |
p | 605 | include/linux/sched.h | #define for_each_task(p) \ |
p | 606 | 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 | 409 | kernel/exit.c | struct task_struct *p; |
p | 451 | kernel/exit.c | while ((p = current->p_cptr) != NULL) { |
p | 452 | kernel/exit.c | current->p_cptr = p->p_osptr; |
p | 453 | kernel/exit.c | p->p_ysptr = NULL; |
p | 454 | kernel/exit.c | p->flags &= ~(PF_PTRACED|PF_TRACESYS); |
p | 456 | kernel/exit.c | p->p_pptr = task[1]; |
p | 458 | kernel/exit.c | p->p_pptr = task[0]; |
p | 459 | kernel/exit.c | p->p_osptr = p->p_pptr->p_cptr; |
p | 460 | kernel/exit.c | p->p_osptr->p_ysptr = p; |
p | 461 | kernel/exit.c | p->p_pptr->p_cptr = p; |
p | 462 | kernel/exit.c | if (p->state == TASK_ZOMBIE) |
p | 463 | kernel/exit.c | notify_parent(p); |
p | 470 | kernel/exit.c | if ((p->pgrp != current->pgrp) && |
p | 471 | kernel/exit.c | (p->session == current->session) && |
p | 472 | kernel/exit.c | is_orphaned_pgrp(p->pgrp) && |
p | 473 | kernel/exit.c | has_stopped_jobs(p->pgrp)) { |
p | 474 | kernel/exit.c | kill_pg(p->pgrp,SIGHUP,1); |
p | 475 | kernel/exit.c | kill_pg(p->pgrp,SIGCONT,1); |
p | 518 | kernel/exit.c | struct task_struct *p; |
p | 528 | kernel/exit.c | for (p = current->p_cptr ; p ; p = p->p_osptr) { |
p | 530 | kernel/exit.c | if (p->pid != pid) |
p | 533 | kernel/exit.c | if (p->pgrp != current->pgrp) |
p | 536 | kernel/exit.c | if (p->pgrp != -pid) |
p | 540 | kernel/exit.c | if ((p->exit_signal != SIGCHLD) ^ ((options & __WCLONE) != 0)) |
p | 543 | kernel/exit.c | switch (p->state) { |
p | 545 | kernel/exit.c | if (!p->exit_code) |
p | 547 | kernel/exit.c | if (!(options & WUNTRACED) && !(p->flags & PF_PTRACED)) |
p | 550 | kernel/exit.c | put_fs_long((p->exit_code << 8) | 0x7f, |
p | 552 | kernel/exit.c | p->exit_code = 0; |
p | 554 | kernel/exit.c | getrusage(p, RUSAGE_BOTH, ru); |
p | 555 | kernel/exit.c | retval = p->pid; |
p | 558 | kernel/exit.c | current->cutime += p->utime + p->cutime; |
p | 559 | kernel/exit.c | current->cstime += p->stime + p->cstime; |
p | 560 | kernel/exit.c | current->mm->cmin_flt += p->mm->min_flt + p->mm->cmin_flt; |
p | 561 | kernel/exit.c | current->mm->cmaj_flt += p->mm->maj_flt + p->mm->cmaj_flt; |
p | 563 | kernel/exit.c | getrusage(p, RUSAGE_BOTH, ru); |
p | 564 | kernel/exit.c | flag = p->pid; |
p | 566 | kernel/exit.c | put_fs_long(p->exit_code, stat_addr); |
p | 567 | kernel/exit.c | if (p->p_opptr != p->p_pptr) { |
p | 568 | kernel/exit.c | REMOVE_LINKS(p); |
p | 569 | kernel/exit.c | p->p_pptr = p->p_opptr; |
p | 570 | kernel/exit.c | SET_LINKS(p); |
p | 571 | kernel/exit.c | notify_parent(p); |
p | 573 | kernel/exit.c | release(p); |
p | 94 | kernel/fork.c | struct vm_area_struct * mpnt, **p, *tmp; |
p | 97 | kernel/fork.c | p = &tsk->mm->mmap; |
p | 107 | kernel/fork.c | *p = tmp; |
p | 108 | kernel/fork.c | p = &tmp->vm_next; |
p | 116 | kernel/fork.c | static void copy_files(unsigned long clone_flags, struct task_struct * p) |
p | 123 | kernel/fork.c | if ((f = p->files->fd[i]) != NULL) |
p | 124 | kernel/fork.c | p->files->fd[i] = copy_fd(f); |
p | 127 | kernel/fork.c | if ((f = p->files->fd[i]) != NULL) |
p | 136 | kernel/fork.c | static int copy_mm(unsigned long clone_flags, struct task_struct * p) |
p | 139 | kernel/fork.c | p->mm->swappable = 1; |
p | 140 | kernel/fork.c | p->mm->min_flt = p->mm->maj_flt = 0; |
p | 141 | kernel/fork.c | p->mm->cmin_flt = p->mm->cmaj_flt = 0; |
p | 142 | kernel/fork.c | if (copy_page_tables(p)) |
p | 144 | kernel/fork.c | dup_mmap(p); |
p | 146 | kernel/fork.c | if (clone_page_tables(p)) |
p | 148 | kernel/fork.c | dup_mmap(p); /* wrong.. */ |
p | 150 | kernel/fork.c | return shm_fork(current, p); |
p | 153 | kernel/fork.c | static void copy_fs(unsigned long clone_flags, struct task_struct * p) |
p | 173 | kernel/fork.c | struct task_struct *p; |
p | 177 | kernel/fork.c | if(!(p = (struct task_struct*)__get_free_page(GFP_KERNEL))) |
p | 182 | kernel/fork.c | task[nr] = p; |
p | 183 | kernel/fork.c | *p = *current; |
p | 185 | kernel/fork.c | if (p->exec_domain && p->exec_domain->use_count) |
p | 186 | kernel/fork.c | (*p->exec_domain->use_count)++; |
p | 187 | kernel/fork.c | if (p->binfmt && p->binfmt->use_count) |
p | 188 | kernel/fork.c | (*p->binfmt->use_count)++; |
p | 190 | kernel/fork.c | p->did_exec = 0; |
p | 191 | kernel/fork.c | p->kernel_stack_page = 0; |
p | 192 | kernel/fork.c | p->state = TASK_UNINTERRUPTIBLE; |
p | 193 | kernel/fork.c | p->flags &= ~(PF_PTRACED|PF_TRACESYS); |
p | 194 | kernel/fork.c | p->pid = last_pid; |
p | 195 | kernel/fork.c | p->p_pptr = p->p_opptr = current; |
p | 196 | kernel/fork.c | p->p_cptr = NULL; |
p | 197 | kernel/fork.c | SET_LINKS(p); |
p | 198 | kernel/fork.c | p->signal = 0; |
p | 199 | kernel/fork.c | p->it_real_value = p->it_virt_value = p->it_prof_value = 0; |
p | 200 | kernel/fork.c | p->it_real_incr = p->it_virt_incr = p->it_prof_incr = 0; |
p | 201 | kernel/fork.c | p->leader = 0; /* process leadership doesn't inherit */ |
p | 202 | kernel/fork.c | p->utime = p->stime = 0; |
p | 203 | kernel/fork.c | p->cutime = p->cstime = 0; |
p | 204 | kernel/fork.c | p->start_time = jiffies; |
p | 208 | kernel/fork.c | if (!(p->kernel_stack_page = get_free_page(GFP_KERNEL))) |
p | 210 | kernel/fork.c | *(unsigned long *)p->kernel_stack_page = STACK_MAGIC; |
p | 211 | kernel/fork.c | p->tss.es = KERNEL_DS; |
p | 212 | kernel/fork.c | p->tss.cs = KERNEL_CS; |
p | 213 | kernel/fork.c | p->tss.ss = KERNEL_DS; |
p | 214 | kernel/fork.c | p->tss.ds = KERNEL_DS; |
p | 215 | kernel/fork.c | p->tss.fs = USER_DS; |
p | 216 | kernel/fork.c | p->tss.gs = KERNEL_DS; |
p | 217 | kernel/fork.c | p->tss.ss0 = KERNEL_DS; |
p | 218 | kernel/fork.c | p->tss.esp0 = p->kernel_stack_page + PAGE_SIZE; |
p | 219 | kernel/fork.c | p->tss.tr = _TSS(nr); |
p | 220 | kernel/fork.c | childregs = ((struct pt_regs *) (p->kernel_stack_page + PAGE_SIZE)) - 1; |
p | 221 | kernel/fork.c | p->tss.esp = (unsigned long) childregs; |
p | 222 | kernel/fork.c | p->tss.eip = (unsigned long) ret_from_sys_call; |
p | 225 | kernel/fork.c | p->tss.back_link = 0; |
p | 226 | kernel/fork.c | p->tss.eflags = regs.eflags & 0xffffcfff; /* iopl is always 0 for a new process */ |
p | 234 | kernel/fork.c | p->exit_signal = clone_flags & CSIGNAL; |
p | 235 | kernel/fork.c | p->tss.ldt = _LDT(nr); |
p | 236 | kernel/fork.c | if (p->ldt) { |
p | 237 | kernel/fork.c | p->ldt = (struct desc_struct*) vmalloc(LDT_ENTRIES*LDT_ENTRY_SIZE); |
p | 238 | kernel/fork.c | if (p->ldt != NULL) |
p | 239 | kernel/fork.c | memcpy(p->ldt, current->ldt, LDT_ENTRIES*LDT_ENTRY_SIZE); |
p | 241 | kernel/fork.c | p->tss.bitmap = offsetof(struct tss_struct,io_bitmap); |
p | 243 | kernel/fork.c | p->tss.io_bitmap[i] = ~0; |
p | 245 | kernel/fork.c | __asm__("clts ; fnsave %0 ; frstor %0":"=m" (p->tss.i387)); |
p | 246 | kernel/fork.c | if (copy_mm(clone_flags, p)) |
p | 248 | kernel/fork.c | copy_files(clone_flags, p); |
p | 249 | kernel/fork.c | copy_fs(clone_flags, p); |
p | 250 | kernel/fork.c | set_tss_desc(gdt+(nr<<1)+FIRST_TSS_ENTRY,&(p->tss)); |
p | 251 | kernel/fork.c | if (p->ldt) |
p | 252 | kernel/fork.c | set_ldt_desc(gdt+(nr<<1)+FIRST_LDT_ENTRY,p->ldt, 512); |
p | 256 | kernel/fork.c | p->counter = current->counter >> 1; |
p | 257 | kernel/fork.c | p->state = TASK_RUNNING; /* do this last, just in case */ |
p | 258 | kernel/fork.c | return p->pid; |
p | 261 | kernel/fork.c | REMOVE_LINKS(p); |
p | 262 | kernel/fork.c | free_page(p->kernel_stack_page); |
p | 264 | 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 | 452 | kernel/module.c | char *p; |
p | 459 | kernel/module.c | p = buf; |
p | 462 | kernel/module.c | if (p - buf > 4096 - 100) |
p | 467 | kernel/module.c | *p++ = *q++; |
p | 475 | kernel/module.c | *p++ = ' '; |
p | 478 | kernel/module.c | *p++ = *q++; |
p | 488 | kernel/module.c | *p++ = *q++; |
p | 491 | kernel/module.c | *p++ = '\t'; |
p | 492 | kernel/module.c | *p++ = '['; |
p | 496 | kernel/module.c | *p++ = *q++; |
p | 498 | kernel/module.c | *p++ = ' '; |
p | 500 | kernel/module.c | *p++ = ']'; |
p | 502 | kernel/module.c | *p++ = '\n'; |
p | 504 | kernel/module.c | return p - buf; |
p | 516 | kernel/module.c | char *p = buf; |
p | 525 | kernel/module.c | if (p - buf > 4096 - 100) { |
p | 526 | kernel/module.c | strcat(p, "...\n"); |
p | 527 | kernel/module.c | p += strlen(p); |
p | 528 | kernel/module.c | return p - buf; /* avoid overflowing buffer */ |
p | 532 | kernel/module.c | sprintf(p, "%08lx %s\t[%s]\n", |
p | 536 | kernel/module.c | sprintf(p, "%08lx %s\n", |
p | 539 | kernel/module.c | p += strlen(p); |
p | 544 | 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 | 167 | kernel/sched.c | struct task_struct * p; |
p | 183 | kernel/sched.c | p = &init_task; |
p | 185 | kernel/sched.c | if ((p = p->next_task) == &init_task) |
p | 187 | kernel/sched.c | if (ticks && p->it_real_value) { |
p | 188 | kernel/sched.c | if (p->it_real_value <= ticks) { |
p | 189 | kernel/sched.c | send_sig(SIGALRM, p, 1); |
p | 190 | kernel/sched.c | if (!p->it_real_incr) { |
p | 191 | kernel/sched.c | p->it_real_value = 0; |
p | 195 | kernel/sched.c | p->it_real_value += p->it_real_incr; |
p | 196 | kernel/sched.c | } while (p->it_real_value <= ticks); |
p | 198 | kernel/sched.c | p->it_real_value -= ticks; |
p | 199 | kernel/sched.c | if (p->it_real_value < itimer_next) |
p | 200 | kernel/sched.c | itimer_next = p->it_real_value; |
p | 203 | kernel/sched.c | if (p->state != TASK_INTERRUPTIBLE) |
p | 205 | kernel/sched.c | if (p->signal & ~p->blocked) { |
p | 206 | kernel/sched.c | p->state = TASK_RUNNING; |
p | 209 | kernel/sched.c | if (p->timeout && p->timeout <= jiffies) { |
p | 210 | kernel/sched.c | p->timeout = 0; |
p | 211 | kernel/sched.c | p->state = TASK_RUNNING; |
p | 228 | kernel/sched.c | next = p = &init_task; |
p | 230 | kernel/sched.c | if ((p = p->next_task) == &init_task) |
p | 232 | kernel/sched.c | if (p->state == TASK_RUNNING && p->counter > c) |
p | 233 | kernel/sched.c | c = p->counter, next = p; |
p | 237 | kernel/sched.c | for_each_task(p) |
p | 238 | kernel/sched.c | p->counter = (p->counter >> 1) + p->priority; |
p | 272 | kernel/sched.c | struct task_struct * p; |
p | 277 | kernel/sched.c | if ((p = tmp->task) != NULL) { |
p | 278 | kernel/sched.c | if ((p->state == TASK_UNINTERRUPTIBLE) || |
p | 279 | kernel/sched.c | (p->state == TASK_INTERRUPTIBLE)) { |
p | 280 | kernel/sched.c | p->state = TASK_RUNNING; |
p | 281 | kernel/sched.c | if (p->counter > current->counter) |
p | 299 | kernel/sched.c | struct task_struct * p; |
p | 304 | kernel/sched.c | if ((p = tmp->task) != NULL) { |
p | 305 | kernel/sched.c | if (p->state == TASK_INTERRUPTIBLE) { |
p | 306 | kernel/sched.c | p->state = TASK_RUNNING; |
p | 307 | kernel/sched.c | if (p->counter > current->counter) |
p | 335 | kernel/sched.c | static inline void __sleep_on(struct wait_queue **p, int state) |
p | 340 | kernel/sched.c | if (!p) |
p | 345 | kernel/sched.c | add_wait_queue(p, &wait); |
p | 349 | kernel/sched.c | remove_wait_queue(p, &wait); |
p | 353 | kernel/sched.c | void interruptible_sleep_on(struct wait_queue **p) |
p | 355 | kernel/sched.c | __sleep_on(p,TASK_INTERRUPTIBLE); |
p | 358 | kernel/sched.c | void sleep_on(struct wait_queue **p) |
p | 360 | kernel/sched.c | __sleep_on(p,TASK_UNINTERRUPTIBLE); |
p | 373 | kernel/sched.c | struct timer_list *p; |
p | 382 | kernel/sched.c | p = &timer_head; |
p | 387 | kernel/sched.c | p = p->next; |
p | 388 | kernel/sched.c | } while (timer->expires > p->expires); |
p | 389 | kernel/sched.c | timer->next = p; |
p | 390 | kernel/sched.c | timer->prev = p->prev; |
p | 391 | kernel/sched.c | p->prev = timer; |
p | 400 | kernel/sched.c | struct timer_list * p; |
p | 402 | kernel/sched.c | p = &timer_head; |
p | 405 | kernel/sched.c | while ((p = p->next) != &timer_head) { |
p | 406 | kernel/sched.c | if (p == timer) { |
p | 452 | kernel/sched.c | struct task_struct **p; |
p | 455 | kernel/sched.c | for(p = &LAST_TASK; p > &FIRST_TASK; --p) |
p | 456 | kernel/sched.c | if (*p && ((*p)->state == TASK_RUNNING || |
p | 457 | kernel/sched.c | (*p)->state == TASK_UNINTERRUPTIBLE || |
p | 458 | kernel/sched.c | (*p)->state == TASK_SWAPPING)) |
p | 758 | kernel/sched.c | static void show_task(int nr,struct task_struct * p) |
p | 763 | kernel/sched.c | printk("%-8s %3d ", p->comm, (p == current) ? -nr : nr); |
p | 764 | kernel/sched.c | if (((unsigned) p->state) < sizeof(stat_nam)/sizeof(char *)) |
p | 765 | kernel/sched.c | printk(stat_nam[p->state]); |
p | 768 | kernel/sched.c | if (p == current) |
p | 771 | kernel/sched.c | printk(" %08lX ", ((unsigned long *)p->tss.esp)[3]); |
p | 773 | kernel/sched.c | if (((unsigned long *)p->kernel_stack_page)[free]) |
p | 776 | kernel/sched.c | printk("%5lu %5d %6d ", free << 2, p->pid, p->p_pptr->pid); |
p | 777 | kernel/sched.c | if (p->p_cptr) |
p | 778 | kernel/sched.c | printk("%5d ", p->p_cptr->pid); |
p | 781 | kernel/sched.c | if (p->p_ysptr) |
p | 782 | kernel/sched.c | printk("%7d", p->p_ysptr->pid); |
p | 785 | kernel/sched.c | if (p->p_osptr) |
p | 786 | kernel/sched.c | printk(" %5d\n", p->p_osptr->pid); |
p | 805 | kernel/sched.c | struct desc_struct * p; |
p | 814 | kernel/sched.c | p = gdt+2+FIRST_TSS_ENTRY; |
p | 817 | kernel/sched.c | p->a=p->b=0; |
p | 818 | kernel/sched.c | p++; |
p | 819 | kernel/sched.c | p->a=p->b=0; |
p | 820 | kernel/sched.c | p++; |
p | 115 | kernel/signal.c | struct sigaction *p; |
p | 117 | kernel/signal.c | p = signum - 1 + current->sigaction; |
p | 118 | kernel/signal.c | if (p->sa_handler == SIG_IGN) { |
p | 124 | kernel/signal.c | if (p->sa_handler == SIG_DFL) { |
p | 155 | kernel/signal.c | struct sigaction new_sa, *p; |
p | 161 | kernel/signal.c | p = signum - 1 + current->sigaction; |
p | 180 | kernel/signal.c | memcpy_tofs(oldaction, p, sizeof(struct sigaction)); |
p | 183 | kernel/signal.c | *p = new_sa; |
p | 58 | kernel/sys.c | static int proc_sel(struct task_struct *p, int which, int who) |
p | 62 | kernel/sys.c | if (!who && p == current) |
p | 64 | kernel/sys.c | return(p->pid == who); |
p | 68 | kernel/sys.c | return(p->pgrp == who); |
p | 72 | kernel/sys.c | return(p->uid == who); |
p | 79 | kernel/sys.c | struct task_struct **p; |
p | 89 | kernel/sys.c | for(p = &LAST_TASK; p > &FIRST_TASK; --p) { |
p | 90 | kernel/sys.c | if (!*p || !proc_sel(*p, which, who)) |
p | 92 | kernel/sys.c | if ((*p)->uid != current->euid && |
p | 93 | kernel/sys.c | (*p)->uid != current->uid && !suser()) { |
p | 99 | kernel/sys.c | if (priority > (*p)->priority && !suser()) |
p | 102 | kernel/sys.c | (*p)->priority = priority; |
p | 109 | kernel/sys.c | struct task_struct **p; |
p | 115 | kernel/sys.c | for(p = &LAST_TASK; p > &FIRST_TASK; --p) { |
p | 116 | kernel/sys.c | if (!*p || !proc_sel(*p, which, who)) |
p | 118 | kernel/sys.c | if ((*p)->priority > max_prio) |
p | 119 | kernel/sys.c | max_prio = (*p)->priority; |
p | 433 | kernel/sys.c | struct task_struct * p; |
p | 441 | kernel/sys.c | for_each_task(p) { |
p | 442 | kernel/sys.c | if (p->pid == pid) |
p | 448 | kernel/sys.c | if (p->p_pptr == current || p->p_opptr == current) { |
p | 449 | kernel/sys.c | if (p->session != current->session) |
p | 451 | kernel/sys.c | if (p->did_exec) |
p | 453 | kernel/sys.c | } else if (p != current) |
p | 455 | kernel/sys.c | if (p->leader) |
p | 468 | kernel/sys.c | p->pgrp = pgid; |
p | 474 | kernel/sys.c | struct task_struct * p; |
p | 478 | kernel/sys.c | for_each_task(p) { |
p | 479 | kernel/sys.c | if (p->pid == pid) |
p | 480 | kernel/sys.c | return p->pgrp; |
p | 689 | kernel/sys.c | int getrusage(struct task_struct *p, int who, struct rusage *ru) |
p | 701 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(p->utime); |
p | 702 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(p->utime); |
p | 703 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(p->stime); |
p | 704 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(p->stime); |
p | 705 | kernel/sys.c | r.ru_minflt = p->mm->min_flt; |
p | 706 | kernel/sys.c | r.ru_majflt = p->mm->maj_flt; |
p | 709 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(p->cutime); |
p | 710 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(p->cutime); |
p | 711 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(p->cstime); |
p | 712 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(p->cstime); |
p | 713 | kernel/sys.c | r.ru_minflt = p->mm->cmin_flt; |
p | 714 | kernel/sys.c | r.ru_majflt = p->mm->cmaj_flt; |
p | 717 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(p->utime + p->cutime); |
p | 718 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(p->utime + p->cutime); |
p | 719 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(p->stime + p->cstime); |
p | 720 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(p->stime + p->cstime); |
p | 721 | kernel/sys.c | r.ru_minflt = p->mm->min_flt + p->mm->cmin_flt; |
p | 722 | 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 | 80 | mm/memory.c | #define CODE_SPACE(addr,p) ((addr) < (p)->end_code) |
p | 800 | mm/memory.c | struct task_struct ** p; |
p | 815 | mm/memory.c | for (p = &LAST_TASK ; p > &FIRST_TASK ; --p) { |
p | 817 | mm/memory.c | if (!*p) |
p | 819 | mm/memory.c | if (area->vm_task == *p) |
p | 823 | mm/memory.c | for (mpnt = (*p)->mm->mmap; mpnt; mpnt = mpnt->vm_next) { |
p | 853 | mm/memory.c | unsigned long *p; |
p | 855 | mm/memory.c | p = PAGE_DIR_OFFSET(tsk->tss.cr3,address); |
p | 856 | mm/memory.c | if (PAGE_PRESENT & *p) |
p | 857 | mm/memory.c | return *p; |
p | 858 | mm/memory.c | if (*p) { |
p | 860 | mm/memory.c | *p = 0; |
p | 863 | mm/memory.c | p = PAGE_DIR_OFFSET(tsk->tss.cr3,address); |
p | 864 | mm/memory.c | if (PAGE_PRESENT & *p) { |
p | 866 | mm/memory.c | return *p; |
p | 868 | mm/memory.c | if (*p) { |
p | 870 | mm/memory.c | *p = 0; |
p | 873 | mm/memory.c | *p = page | PAGE_TABLE; |
p | 874 | mm/memory.c | return *p; |
p | 877 | mm/memory.c | *p = BAD_PAGETABLE | PAGE_TABLE; |
p | 1289 | mm/memory.c | int i, *p; |
p | 1295 | mm/memory.c | p = nr; |
p | 1297 | mm/memory.c | *p = bmap(inode,block); |
p | 1300 | mm/memory.c | p++; |
p | 110 | mm/swap.c | struct swap_info_struct * p = &swap_info[SWP_TYPE(entry)]; |
p | 115 | mm/swap.c | if ((p->flags & SWP_WRITEOK) == SWP_WRITEOK) { |
p | 163 | 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 | 186 | mm/swap.c | if (p->swap_device) { |
p | 187 | mm/swap.c | ll_rw_page(rw,p->swap_device,offset,buf); |
p | 188 | mm/swap.c | } else if (p->swap_file) { |
p | 193 | mm/swap.c | block = offset << (12 - p->swap_file->i_sb->s_blocksize_bits); |
p | 195 | mm/swap.c | for (i=0, j=0; j< PAGE_SIZE ; i++, j +=p->swap_file->i_sb->s_blocksize) |
p | 196 | mm/swap.c | if (!(zones[i] = bmap(p->swap_file,block++))) { |
p | 200 | mm/swap.c | ll_rw_swap_file(rw,p->swap_file->i_dev, zones, i,buf); |
p | 203 | mm/swap.c | if (offset && !clear_bit(offset,p->swap_lockmap)) |
p | 210 | mm/swap.c | struct swap_info_struct * p; |
p | 213 | mm/swap.c | p = swap_info; |
p | 214 | mm/swap.c | for (type = 0 ; type < nr_swapfiles ; type++,p++) { |
p | 215 | mm/swap.c | if ((p->flags & SWP_WRITEOK) != SWP_WRITEOK) |
p | 217 | mm/swap.c | for (offset = p->lowest_bit; offset <= p->highest_bit ; offset++) { |
p | 218 | mm/swap.c | if (p->swap_map[offset]) |
p | 220 | mm/swap.c | p->swap_map[offset] = 1; |
p | 222 | mm/swap.c | if (offset == p->highest_bit) |
p | 223 | mm/swap.c | p->highest_bit--; |
p | 224 | mm/swap.c | p->lowest_bit = offset; |
p | 233 | mm/swap.c | struct swap_info_struct * p; |
p | 246 | mm/swap.c | p = type + swap_info; |
p | 247 | mm/swap.c | if (offset >= p->max) { |
p | 251 | mm/swap.c | if (!p->swap_map[offset]) { |
p | 255 | mm/swap.c | p->swap_map[offset]++; |
p | 261 | mm/swap.c | struct swap_info_struct * p; |
p | 273 | mm/swap.c | p = & swap_info[type]; |
p | 275 | mm/swap.c | if (offset >= p->max) { |
p | 279 | mm/swap.c | if (!(p->flags & SWP_USED)) { |
p | 283 | mm/swap.c | while (set_bit(offset,p->swap_lockmap)) |
p | 285 | mm/swap.c | if (offset < p->lowest_bit) |
p | 286 | mm/swap.c | p->lowest_bit = offset; |
p | 287 | mm/swap.c | if (offset > p->highest_bit) |
p | 288 | mm/swap.c | p->highest_bit = offset; |
p | 289 | mm/swap.c | if (!p->swap_map[offset]) |
p | 292 | mm/swap.c | if (!--p->swap_map[offset]) |
p | 294 | mm/swap.c | if (!clear_bit(offset,p->swap_lockmap)) |
p | 399 | mm/swap.c | struct task_struct *p; |
p | 417 | mm/swap.c | p = task[swap_task]; |
p | 418 | mm/swap.c | if(p && p->mm->swappable && p->mm->rss) |
p | 427 | mm/swap.c | if(! p->mm->swap_cnt) { |
p | 428 | mm/swap.c | p->mm->dec_flt = (p->mm->dec_flt * 3) / 4 + p->mm->maj_flt - p->mm->old_maj_flt; |
p | 429 | mm/swap.c | p->mm->old_maj_flt = p->mm->maj_flt; |
p | 431 | mm/swap.c | if(p->mm->dec_flt >= SWAP_RATIO / SWAP_MIN) { |
p | 432 | mm/swap.c | p->mm->dec_flt = SWAP_RATIO / SWAP_MIN; |
p | 433 | mm/swap.c | p->mm->swap_cnt = SWAP_MIN; |
p | 434 | mm/swap.c | } else if(p->mm->dec_flt <= SWAP_RATIO / SWAP_MAX) |
p | 435 | mm/swap.c | p->mm->swap_cnt = SWAP_MAX; |
p | 437 | mm/swap.c | p->mm->swap_cnt = SWAP_RATIO / p->mm->dec_flt; |
p | 443 | mm/swap.c | for(table = p->mm->swap_table; table < 1024; table++) { |
p | 444 | mm/swap.c | pg_table = ((unsigned long *) p->tss.cr3)[table]; |
p | 452 | mm/swap.c | ((unsigned long *) p->tss.cr3)[table] = 0; |
p | 460 | mm/swap.c | for(page = p->mm->swap_page; page < 1024; page++) { |
p | 466 | mm/swap.c | p->mm->rss--; |
p | 468 | mm/swap.c | p->mm->swap_table = table; |
p | 469 | mm/swap.c | p->mm->swap_page = page + 1; |
p | 470 | mm/swap.c | if((--p->mm->swap_cnt) == 0) |
p | 475 | mm/swap.c | p->mm->rss--; |
p | 480 | mm/swap.c | p->mm->swap_page = 0; |
p | 487 | mm/swap.c | p->mm->swap_table = 0; |
p | 509 | mm/swap.c | struct task_struct * p; |
p | 519 | mm/swap.c | p = task[swap_task]; |
p | 520 | mm/swap.c | if (!p || !p->mm->swappable) { |
p | 530 | mm/swap.c | pg_table = ((unsigned long *) p->tss.cr3)[swap_table]; |
p | 538 | mm/swap.c | ((unsigned long *) p->tss.cr3)[swap_table] = 0; |
p | 551 | mm/swap.c | case 1: p->mm->rss--; return 1; |
p | 552 | mm/swap.c | default: p->mm->rss--; |
p | 757 | mm/swap.c | struct task_struct *p; |
p | 767 | mm/swap.c | p = task[nr]; |
p | 768 | mm/swap.c | if (!p) |
p | 771 | mm/swap.c | ppage = pgt + ((unsigned long *) p->tss.cr3); |
p | 803 | mm/swap.c | ++p->mm->rss; |
p | 817 | mm/swap.c | struct swap_info_struct * p; |
p | 827 | mm/swap.c | p = swap_info; |
p | 828 | mm/swap.c | for (type = 0 ; type < nr_swapfiles ; type++,p++) { |
p | 829 | mm/swap.c | if ((p->flags & SWP_WRITEOK) != SWP_WRITEOK) |
p | 831 | mm/swap.c | if (p->swap_file) { |
p | 832 | mm/swap.c | if (p->swap_file == inode) |
p | 837 | mm/swap.c | if (p->swap_device == inode->i_rdev) |
p | 844 | mm/swap.c | p->flags = SWP_USED; |
p | 847 | mm/swap.c | p->flags = SWP_WRITEOK; |
p | 850 | mm/swap.c | nr_swap_pages -= p->pages; |
p | 851 | mm/swap.c | iput(p->swap_file); |
p | 852 | mm/swap.c | p->swap_file = NULL; |
p | 853 | mm/swap.c | p->swap_device = 0; |
p | 854 | mm/swap.c | vfree(p->swap_map); |
p | 855 | mm/swap.c | p->swap_map = NULL; |
p | 856 | mm/swap.c | free_page((long) p->swap_lockmap); |
p | 857 | mm/swap.c | p->swap_lockmap = NULL; |
p | 858 | mm/swap.c | p->flags = 0; |
p | 869 | mm/swap.c | struct swap_info_struct * p; |
p | 877 | mm/swap.c | p = swap_info; |
p | 878 | mm/swap.c | for (type = 0 ; type < nr_swapfiles ; type++,p++) |
p | 879 | mm/swap.c | if (!(p->flags & SWP_USED)) |
p | 885 | mm/swap.c | p->flags = SWP_USED; |
p | 886 | mm/swap.c | p->swap_file = NULL; |
p | 887 | mm/swap.c | p->swap_device = 0; |
p | 888 | mm/swap.c | p->swap_map = NULL; |
p | 889 | mm/swap.c | p->swap_lockmap = NULL; |
p | 890 | mm/swap.c | p->lowest_bit = 0; |
p | 891 | mm/swap.c | p->highest_bit = 0; |
p | 892 | mm/swap.c | p->max = 1; |
p | 896 | mm/swap.c | p->swap_file = swap_inode; |
p | 902 | mm/swap.c | p->swap_device = swap_inode->i_rdev; |
p | 903 | mm/swap.c | p->swap_file = NULL; |
p | 906 | mm/swap.c | if (!p->swap_device) |
p | 912 | mm/swap.c | if (p->swap_device == swap_info[i].swap_device) |
p | 917 | mm/swap.c | p->swap_lockmap = (unsigned char *) get_free_page(GFP_USER); |
p | 918 | mm/swap.c | if (!p->swap_lockmap) { |
p | 923 | mm/swap.c | read_swap_page(SWP_ENTRY(type,0), (char *) p->swap_lockmap); |
p | 924 | mm/swap.c | if (memcmp("SWAP-SPACE",p->swap_lockmap+4086,10)) { |
p | 929 | mm/swap.c | memset(p->swap_lockmap+PAGE_SIZE-10,0,10); |
p | 931 | mm/swap.c | p->lowest_bit = 0; |
p | 932 | mm/swap.c | p->highest_bit = 0; |
p | 934 | mm/swap.c | if (test_bit(i,p->swap_lockmap)) { |
p | 935 | mm/swap.c | if (!p->lowest_bit) |
p | 936 | mm/swap.c | p->lowest_bit = i; |
p | 937 | mm/swap.c | p->highest_bit = i; |
p | 938 | mm/swap.c | p->max = i+1; |
p | 947 | mm/swap.c | p->swap_map = (unsigned char *) vmalloc(p->max); |
p | 948 | mm/swap.c | if (!p->swap_map) { |
p | 952 | mm/swap.c | for (i = 1 ; i < p->max ; i++) { |
p | 953 | mm/swap.c | if (test_bit(i,p->swap_lockmap)) |
p | 954 | mm/swap.c | p->swap_map[i] = 0; |
p | 956 | mm/swap.c | p->swap_map[i] = 0x80; |
p | 958 | mm/swap.c | p->swap_map[0] = 0x80; |
p | 959 | mm/swap.c | memset(p->swap_lockmap,0,PAGE_SIZE); |
p | 960 | mm/swap.c | p->flags = SWP_WRITEOK; |
p | 961 | mm/swap.c | p->pages = j; |
p | 966 | mm/swap.c | free_page((long) p->swap_lockmap); |
p | 967 | mm/swap.c | vfree(p->swap_map); |
p | 968 | mm/swap.c | iput(p->swap_file); |
p | 969 | mm/swap.c | p->swap_device = 0; |
p | 970 | mm/swap.c | p->swap_file = NULL; |
p | 971 | mm/swap.c | p->swap_map = NULL; |
p | 972 | mm/swap.c | p->swap_lockmap = NULL; |
p | 973 | mm/swap.c | p->flags = 0; |
p | 1008 | mm/swap.c | unsigned short * p; |
p | 1014 | mm/swap.c | p = mem_map + MAP_NR(end_mem); |
p | 1015 | mm/swap.c | start_mem = (unsigned long) p; |
p | 1016 | mm/swap.c | while (p > mem_map) |
p | 1017 | 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 | 1308 | net/inet/af_inet.c | struct inet_protocol *p; |
p | 1334 | net/inet/af_inet.c | for(p = inet_protocol_base; p != NULL;) |
p | 1336 | net/inet/af_inet.c | struct inet_protocol *tmp = (struct inet_protocol *) p->next; |
p | 1337 | net/inet/af_inet.c | inet_add_protocol(p); |
p | 1338 | net/inet/af_inet.c | printk("%s%s",p->name,tmp?", ":"\n"); |
p | 1339 | net/inet/af_inet.c | p = tmp; |
p | 239 | net/inet/packet.c | struct packet_type *p; |
p | 241 | net/inet/packet.c | p = (struct packet_type *) kmalloc(sizeof(*p), GFP_KERNEL); |
p | 242 | net/inet/packet.c | if (p == NULL) |
p | 245 | net/inet/packet.c | p->func = packet_rcv; |
p | 246 | net/inet/packet.c | p->type = sk->num; |
p | 247 | net/inet/packet.c | p->data = (void *)sk; |
p | 248 | net/inet/packet.c | dev_add_pack(p); |
p | 254 | 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 | 288 | net/inet/raw.c | struct inet_protocol *p; |
p | 290 | net/inet/raw.c | p = (struct inet_protocol *) kmalloc(sizeof (*p), GFP_KERNEL); |
p | 291 | net/inet/raw.c | if (p == NULL) |
p | 294 | net/inet/raw.c | p->handler = raw_rcv; |
p | 295 | net/inet/raw.c | p->protocol = sk->protocol; |
p | 296 | net/inet/raw.c | p->data = (void *)sk; |
p | 297 | net/inet/raw.c | p->err_handler = raw_err; |
p | 298 | net/inet/raw.c | p->name="USER"; |
p | 299 | net/inet/raw.c | p->frag_handler = NULL; /* For now */ |
p | 300 | net/inet/raw.c | inet_add_protocol(p); |
p | 303 | 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]); |