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 | 1206 | drivers/block/mcd.c | bin2bcd(unsigned char *p) |
p | 1210 | drivers/block/mcd.c | u = *p % 10; |
p | 1211 | drivers/block/mcd.c | t = *p / 10; |
p | 1212 | drivers/block/mcd.c | *p = u | (t << 4); |
p | 646 | drivers/block/sbpcd.c | static void bin2bcdx(u_char *p) /* must work only up to 75 or 99 */ |
p | 648 | drivers/block/sbpcd.c | *p=((*p/10)<<4)|(*p%10); |
p | 1677 | drivers/block/sbpcd.c | static int convert_UPC(u_char *p) |
p | 1681 | drivers/block/sbpcd.c | p++; |
p | 1682 | drivers/block/sbpcd.c | if (!new_drive) p[13]=0; |
p | 1685 | drivers/block/sbpcd.c | if (new_drive) DriveStruct[d].UPC_buf[i]=swap_nibbles(*p++); |
p | 1688 | drivers/block/sbpcd.c | DriveStruct[d].UPC_buf[i]=((*p++)<<4)&0xFF; |
p | 1689 | drivers/block/sbpcd.c | DriveStruct[d].UPC_buf[i] |= *p++; |
p | 2663 | drivers/block/sbpcd.c | u_char *p; |
p | 2772 | drivers/block/sbpcd.c | p = DriveStruct[d].aud_buf; |
p | 2777 | drivers/block/sbpcd.c | READ_DATA(CDi_data, p, read_audio.nframes*CD_FRAMESIZE_RAW); |
p | 3095 | drivers/block/sbpcd.c | u_char *p; |
p | 3144 | drivers/block/sbpcd.c | p = DriveStruct[d].sbp_buf + frame * CD_FRAMESIZE; |
p | 3148 | drivers/block/sbpcd.c | READ_DATA(CDi_data, p, CD_FRAMESIZE); |
p | 3376 | drivers/block/sbpcd.c | void sbpcd_setup(char *s, int *p) |
p | 3378 | drivers/block/sbpcd.c | DPRINTF((DBG_INI,"SBPCD: sbpcd_setup called with %04X,%s\n",p[1], s)); |
p | 3382 | drivers/block/sbpcd.c | if (p[0]>0) sbpcd_ioaddr=p[1]; |
p | 787 | drivers/char/console.c | static void respond_string(char * p, struct tty_struct * tty) |
p | 789 | drivers/char/console.c | while (*p) { |
p | 790 | drivers/char/console.c | tty_insert_flip_char(tty, *p, 0); |
p | 791 | drivers/char/console.c | p++; |
p | 827 | drivers/char/console.c | unsigned char *p; |
p | 830 | drivers/char/console.c | for (p = (unsigned char *)origin+1; p < (unsigned char *)scr_end; p+=2) |
p | 831 | drivers/char/console.c | *p = (*p & 0x88) | (((*p >> 4) | (*p << 4)) & 0x77); |
p | 833 | drivers/char/console.c | for (p = (unsigned char *)origin+1; p < (unsigned char *)scr_end; p+=2) |
p | 834 | drivers/char/console.c | *p ^= *p & 0x07 == 1 ? 0x70 : 0x77; |
p | 928 | drivers/char/console.c | unsigned short * p = (unsigned short *) pos; |
p | 931 | drivers/char/console.c | tmp = *p; |
p | 932 | drivers/char/console.c | *p = old; |
p | 934 | drivers/char/console.c | p++; |
p | 948 | drivers/char/console.c | unsigned short * p = (unsigned short *) pos; |
p | 951 | drivers/char/console.c | *p = *(p+1); |
p | 952 | drivers/char/console.c | p++; |
p | 954 | drivers/char/console.c | *p = video_erase_char; |
p | 1819 | drivers/char/console.c | unsigned char *p, *p1, *p2; |
p | 1825 | drivers/char/console.c | p = p1; |
p | 1827 | drivers/char/console.c | p2 = p; |
p | 1829 | drivers/char/console.c | for (p = p1; p <= p2; p += 2) |
p | 1830 | drivers/char/console.c | *p = (*p & 0x88) | ((*p << 4) & 0x70) | ((*p >> 4) & 0x07); |
p | 1836 | drivers/char/console.c | unsigned char *p; |
p | 1849 | drivers/char/console.c | p = (unsigned char *)origin - hwscroll_offset + where + 1; |
p | 1850 | drivers/char/console.c | *p ^= 0x77; |
p | 1852 | drivers/char/console.c | prev=p; |
p | 1878 | drivers/char/console.c | static inline int atedge(const int p) |
p | 1880 | 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 | 521 | drivers/char/n_tty.c | unsigned char *p; |
p | 543 | drivers/char/n_tty.c | for (i=count, p = cp, f = fp; i; i--, p++) { |
p | 548 | drivers/char/n_tty.c | n_tty_receive_char(tty, *p); |
p | 555 | 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 | 885 | drivers/char/tty_io.c | struct task_struct **p; |
p | 978 | drivers/char/tty_io.c | for (p = &LAST_TASK ; p > &FIRST_TASK ; --p) { |
p | 979 | drivers/char/tty_io.c | if ((*p) && (*p)->tty == tty) |
p | 980 | drivers/char/tty_io.c | (*p)->tty = NULL; |
p | 1199 | drivers/char/tty_io.c | struct task_struct **p; |
p | 1206 | drivers/char/tty_io.c | for (p = &FIRST_TASK ; p <= &LAST_TASK ; p++, n++) |
p | 1207 | drivers/char/tty_io.c | if (*p) |
p | 1209 | drivers/char/tty_io.c | c = (char *)(*p); |
p | 1330 | drivers/char/tty_io.c | struct task_struct *p; |
p | 1332 | drivers/char/tty_io.c | for_each_task(p) |
p | 1333 | drivers/char/tty_io.c | if (p->tty == tty) |
p | 1334 | drivers/char/tty_io.c | p->tty = NULL; |
p | 1449 | drivers/char/tty_io.c | struct task_struct **p; |
p | 1458 | drivers/char/tty_io.c | for (p = &LAST_TASK ; p > &FIRST_TASK ; --p) { |
p | 1459 | drivers/char/tty_io.c | if (!(*p)) |
p | 1461 | drivers/char/tty_io.c | if (((*p)->tty == tty) || |
p | 1462 | drivers/char/tty_io.c | ((session > 0) && ((*p)->session == session))) |
p | 1463 | drivers/char/tty_io.c | send_sig(SIGKILL, *p, 1); |
p | 1466 | drivers/char/tty_io.c | filp = (*p)->files->fd[i]; |
p | 1469 | 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 | 839 | drivers/net/depca.c | char *p = (char *) skb->data; |
p | 873 | drivers/net/depca.c | for (p += len; skbL > 0; p += len) { |
p | 898 | drivers/net/depca.c | memcpy((unsigned char *)(buf + PKT_HDR_LEN), (unsigned char *)p, len); |
p | 79 | drivers/net/ni52.c | #define make32(ptr16) (p->memtop + (short) (ptr16) ) |
p | 80 | drivers/net/ni52.c | #define make24(ptr32) ((char *) (ptr32) - p->base) |
p | 81 | drivers/net/ni52.c | #define make16(ptr32) ((unsigned short) ((unsigned long) (ptr32) - (unsigned long) p->memtop )) |
p | 281 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 285 | drivers/net/ni52.c | p->base = (unsigned long) where + size - 0x01000000; |
p | 286 | drivers/net/ni52.c | p->memtop = where + size; |
p | 287 | drivers/net/ni52.c | p->scp = (struct scp_struct *)(p->base + SCP_DEFAULT_ADDRESS); |
p | 288 | drivers/net/ni52.c | memset((char *)p->scp,0, sizeof(struct scp_struct)); |
p | 289 | drivers/net/ni52.c | p->scp->sysbus = SYSBUSVAL; /* 1 = 8Bit-Bus */ |
p | 292 | drivers/net/ni52.c | iscp_addrs[1]= (char *) p->scp - sizeof(struct iscp_struct); |
p | 296 | drivers/net/ni52.c | p->iscp = (struct iscp_struct *) iscp_addrs[i]; |
p | 297 | drivers/net/ni52.c | memset((char *)p->iscp,0, sizeof(struct iscp_struct)); |
p | 299 | drivers/net/ni52.c | p->scp->iscp = make24(p->iscp); |
p | 300 | drivers/net/ni52.c | p->iscp->busy = 1; |
p | 306 | drivers/net/ni52.c | if(p->iscp->busy) |
p | 318 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 320 | drivers/net/ni52.c | p->scp = (struct scp_struct *) (p->base + SCP_DEFAULT_ADDRESS); |
p | 321 | drivers/net/ni52.c | p->scb = (struct scb_struct *) (dev->mem_start); |
p | 322 | drivers/net/ni52.c | p->iscp = (struct iscp_struct *) ((char *)p->scp - sizeof(struct iscp_struct)); |
p | 324 | drivers/net/ni52.c | memset((char *) p->iscp,0,sizeof(struct iscp_struct)); |
p | 325 | drivers/net/ni52.c | memset((char *) p->scp ,0,sizeof(struct scp_struct)); |
p | 327 | drivers/net/ni52.c | p->scp->iscp = make24(p->iscp); |
p | 328 | drivers/net/ni52.c | p->scp->sysbus = SYSBUSVAL; |
p | 329 | drivers/net/ni52.c | p->iscp->scb_offset = make16(p->scb); |
p | 331 | drivers/net/ni52.c | p->iscp->busy = 1; |
p | 338 | drivers/net/ni52.c | if(p->iscp->busy) |
p | 342 | drivers/net/ni52.c | memset((char *)p->scb,0,sizeof(struct scb_struct)); |
p | 478 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 483 | drivers/net/ni52.c | ptr = (void *) ((char *)p->scb + sizeof(struct scb_struct)); |
p | 495 | drivers/net/ni52.c | p->scb->cbl_offset = make16(cfg_cmd); |
p | 497 | drivers/net/ni52.c | p->scb->cmd = CUC_START; /* cmd.-unit start */ |
p | 521 | drivers/net/ni52.c | p->scb->cbl_offset = make16(ias_cmd); |
p | 523 | drivers/net/ni52.c | p->scb->cmd = CUC_START; /* cmd.-unit start */ |
p | 545 | drivers/net/ni52.c | p->scb->cbl_offset = make16(tdr_cmd); |
p | 547 | drivers/net/ni52.c | p->scb->cmd = CUC_START; /* cmd.-unit start */ |
p | 562 | drivers/net/ni52.c | p->scb->cmd = p->scb->status & STAT_MASK; |
p | 582 | drivers/net/ni52.c | p->scb->cmd = p->scb->status & STAT_MASK; |
p | 591 | drivers/net/ni52.c | p->nop_cmds[i] = (struct nop_cmd_struct *)ptr; |
p | 592 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_cmd = 0; |
p | 593 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_status = 0; |
p | 594 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_link = make16((p->nop_cmds[i])); |
p | 597 | drivers/net/ni52.c | p->xmit_cmds[0] = (struct transmit_cmd_struct *)ptr; /* transmit cmd/buff 0 */ |
p | 602 | drivers/net/ni52.c | p->nop_cmds[i] = (struct nop_cmd_struct *)ptr; |
p | 603 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_cmd = 0; |
p | 604 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_status = 0; |
p | 605 | drivers/net/ni52.c | p->nop_cmds[i]->cmd_link = make16((p->nop_cmds[i])); |
p | 607 | drivers/net/ni52.c | p->xmit_cmds[i] = (struct transmit_cmd_struct *)ptr; /* transmit cmd/buff 0 */ |
p | 619 | drivers/net/ni52.c | p->xmit_cbuffs[i] = (char *)ptr; /* char-buffs */ |
p | 621 | drivers/net/ni52.c | p->xmit_buffs[i] = (struct tbd_struct *)ptr; /* TBD */ |
p | 623 | drivers/net/ni52.c | if((void *)ptr > (void *)p->iscp) |
p | 628 | drivers/net/ni52.c | memset((char *)(p->xmit_cmds[i]) ,0, sizeof(struct transmit_cmd_struct)); |
p | 629 | drivers/net/ni52.c | memset((char *)(p->xmit_buffs[i]),0, sizeof(struct tbd_struct)); |
p | 630 | drivers/net/ni52.c | p->xmit_cmds[i]->cmd_status = STAT_COMPL; |
p | 631 | drivers/net/ni52.c | p->xmit_cmds[i]->tbd_offset = make16((p->xmit_buffs[i])); |
p | 632 | drivers/net/ni52.c | p->xmit_buffs[i]->next = 0xffff; |
p | 633 | drivers/net/ni52.c | p->xmit_buffs[i]->buffer = make24((p->xmit_cbuffs[i])); |
p | 636 | drivers/net/ni52.c | p->xmit_count = 0; |
p | 637 | drivers/net/ni52.c | p->xmit_last = 0; |
p | 639 | drivers/net/ni52.c | p->nop_point = 0; |
p | 646 | drivers/net/ni52.c | p->scb->cbl_offset = make16(p->nop_cmds[0]); |
p | 647 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
p | 649 | drivers/net/ni52.c | while(p->scb->cmd); |
p | 655 | drivers/net/ni52.c | p->xmit_cmds[0]->cmd_link = 0xffff; |
p | 656 | drivers/net/ni52.c | p->xmit_cmds[0]->cmd_cmd = CMD_XMIT | CMD_LAST | CMD_INT; |
p | 672 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 675 | drivers/net/ni52.c | p->rfd_first = rfd; |
p | 689 | drivers/net/ni52.c | p->min_cbuff32 = ptr; |
p | 698 | drivers/net/ni52.c | p->max_cbuff32 = ptr; |
p | 699 | drivers/net/ni52.c | p->max_cbuff24 = make24(p->max_cbuff32); |
p | 701 | drivers/net/ni52.c | p->rfd_top = p->rfd_first; |
p | 702 | drivers/net/ni52.c | p->rfd_last = p->rfd_first + NUM_RECV_FRAMES - 1; |
p | 704 | drivers/net/ni52.c | p->rbd_last = rbd + NUM_RECV_BUFFS - 1; |
p | 706 | drivers/net/ni52.c | p->scb->rfa_offset = make16(p->rfd_first); |
p | 707 | drivers/net/ni52.c | p->rfd_first->rbd_offset = make16(rbd); |
p | 722 | drivers/net/ni52.c | struct priv *p; |
p | 732 | drivers/net/ni52.c | p = (struct priv *) dev->priv; |
p | 742 | drivers/net/ni52.c | while((stat=p->scb->status & STAT_MASK)) |
p | 744 | drivers/net/ni52.c | p->scb->cmd = stat; |
p | 748 | drivers/net/ni52.c | printk("ni52-%04x/%04x-",(int) stat,(int) p->scb->status); /* debug */ |
p | 761 | drivers/net/ni52.c | printk("%s: oops! CU has left active state. stat: %04x/%04x.\n",dev->name,(int) stat,(int) p->scb->status); |
p | 765 | drivers/net/ni52.c | printk("%s: rnr: %04x/%04x.\n",dev->name,(int) stat,(int) p->scb->status); |
p | 774 | drivers/net/ni52.c | while(p->scb->cmd) |
p | 785 | drivers/net/ni52.c | if((l = p->scb->ovrn_errs - old_ovr)) |
p | 788 | drivers/net/ni52.c | p->stats.rx_over_errors += l; |
p | 812 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 814 | drivers/net/ni52.c | for(;(status = p->rfd_top->status) & STAT_COMPL;) |
p | 816 | drivers/net/ni52.c | rbd = rbd_first = (struct rbd_struct *) make32(p->rfd_top->rbd_offset); |
p | 821 | drivers/net/ni52.c | if(rbd1==p->rbd_last) |
p | 827 | drivers/net/ni52.c | if(rbd1 == p->rbd_last) |
p | 834 | drivers/net/ni52.c | struct rfd_struct *rfd1 = p->rfd_top; |
p | 835 | drivers/net/ni52.c | if(rfd1==p->rfd_last) |
p | 839 | drivers/net/ni52.c | for(;rfd1 != p->rfd_top;rfd1 = (struct rfd_struct *) make32(rfd1->next)) |
p | 841 | drivers/net/ni52.c | if(rfd1 == p->rfd_last) |
p | 849 | drivers/net/ni52.c | p->rfd_top->status = 0; |
p | 850 | drivers/net/ni52.c | p->rfd_top->last = RFD_LAST; |
p | 851 | drivers/net/ni52.c | p->rfd_last->last = 0; /* delete RFD_LAST, no RU suspend */ |
p | 852 | drivers/net/ni52.c | p->rfd_last = p->rfd_top; |
p | 853 | drivers/net/ni52.c | p->rfd_top = (struct rfd_struct *) make32(p->rfd_top->next); |
p | 876 | drivers/net/ni52.c | pnt = p->max_cbuff24 - rbd_first->buffer; |
p | 877 | drivers/net/ni52.c | memcpy( (char *) skb->data,p->max_cbuff32-pnt,pnt); |
p | 878 | drivers/net/ni52.c | memcpy( (char *) skb->data+pnt,p->min_cbuff32,totlen-pnt); |
p | 881 | drivers/net/ni52.c | memcpy( (char *) skb->data,(char *) p->base+(unsigned long) rbd_first->buffer, totlen); |
p | 884 | drivers/net/ni52.c | p->rbd_last->size &= ~RBD_LAST; |
p | 885 | drivers/net/ni52.c | p->rbd_last = rbd; |
p | 888 | drivers/net/ni52.c | p->stats.rx_packets++; |
p | 893 | drivers/net/ni52.c | p->rbd_last->size &= ~RBD_LAST; |
p | 894 | drivers/net/ni52.c | p->rbd_last = rbd; |
p | 900 | drivers/net/ni52.c | p->stats.rx_errors++; |
p | 913 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 915 | drivers/net/ni52.c | p->stats.rx_errors++; |
p | 917 | drivers/net/ni52.c | while(p->scb->cmd); /* wait for the last cmd */ |
p | 918 | drivers/net/ni52.c | p->scb->cmd = RUC_ABORT; |
p | 920 | drivers/net/ni52.c | while(p->scb->cmd); /* wait for accept cmd. */ |
p | 922 | drivers/net/ni52.c | alloc_rfa(dev,(char *)p->rfd_first); |
p | 933 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 940 | drivers/net/ni52.c | if( (status=p->xmit_cmds[p->xmit_last]->cmd_status) & STAT_OK) |
p | 942 | drivers/net/ni52.c | p->stats.tx_packets++; |
p | 943 | drivers/net/ni52.c | p->stats.collisions += (status & TCMD_MAXCOLLMASK); |
p | 949 | drivers/net/ni52.c | p->stats.tx_errors++; |
p | 952 | drivers/net/ni52.c | p->stats.collisions++; |
p | 955 | drivers/net/ni52.c | p->stats.tx_carrier_errors++; |
p | 965 | drivers/net/ni52.c | p->stats.collisions += 16; |
p | 970 | drivers/net/ni52.c | if( (++p->xmit_last) == NUM_XMIT_BUFFS) |
p | 971 | drivers/net/ni52.c | p->xmit_last = 0; |
p | 982 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 984 | drivers/net/ni52.c | p->scb->rfa_offset = make16(p->rfd_first); |
p | 985 | drivers/net/ni52.c | p->scb->cmd = RUC_START; |
p | 987 | drivers/net/ni52.c | while(p->scb->cmd); /* wait for accept cmd. (no timeout!!) */ |
p | 991 | drivers/net/ni52.c | p->scb->cmd = p->scb->status & STAT_MASK; |
p | 1005 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 1015 | drivers/net/ni52.c | printk("%s: xmitter timed out, try to restart! stat: %04x\n",dev->name,p->scb->status); |
p | 1016 | drivers/net/ni52.c | printk("%s: command-stats: %04x %04x\n",dev->name,p->xmit_cmds[0]->cmd_status,p->xmit_cmds[1]->cmd_status); |
p | 1037 | drivers/net/ni52.c | memcpy((char *)p->xmit_cbuffs[p->xmit_count],(char *)(skb->data),skb->len); |
p | 1042 | drivers/net/ni52.c | p->xmit_buffs[0]->size = TBD_LAST | len; |
p | 1043 | drivers/net/ni52.c | p->xmit_cmds[0]->cmd_status = 0; |
p | 1044 | drivers/net/ni52.c | p->scb->cbl_offset = make16(p->xmit_cmds[0]); |
p | 1045 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
p | 1049 | drivers/net/ni52.c | while(p->scb->cmd) |
p | 1054 | drivers/net/ni52.c | next_nop = (p->nop_point + 1) & 0x1; |
p | 1055 | drivers/net/ni52.c | p->xmit_buffs[0]->size = TBD_LAST | len; |
p | 1057 | drivers/net/ni52.c | p->xmit_cmds[0]->cmd_cmd = CMD_XMIT | CMD_INT; |
p | 1058 | drivers/net/ni52.c | p->xmit_cmds[0]->cmd_status = 0; |
p | 1059 | drivers/net/ni52.c | p->xmit_cmds[0]->cmd_link = p->nop_cmds[next_nop]->cmd_link |
p | 1060 | drivers/net/ni52.c | = make16((p->nop_cmds[next_nop])); |
p | 1061 | drivers/net/ni52.c | p->nop_cmds[next_nop]->cmd_status = 0; |
p | 1063 | drivers/net/ni52.c | p->nop_cmds[p->nop_point]->cmd_link = make16((p->xmit_cmds[0])); |
p | 1065 | drivers/net/ni52.c | p->nop_point = next_nop; |
p | 1068 | drivers/net/ni52.c | p->xmit_buffs[p->xmit_count]->size = TBD_LAST | len; |
p | 1069 | drivers/net/ni52.c | if( (next_nop = p->xmit_count + 1) == NUM_XMIT_BUFFS ) |
p | 1072 | drivers/net/ni52.c | p->xmit_cmds[p->xmit_count]->cmd_cmd = CMD_XMIT | CMD_INT; |
p | 1073 | drivers/net/ni52.c | p->xmit_cmds[p->xmit_count]->cmd_status = 0; |
p | 1074 | drivers/net/ni52.c | p->xmit_cmds[p->xmit_count]->cmd_link = p->nop_cmds[next_nop]->cmd_link |
p | 1075 | drivers/net/ni52.c | = make16((p->nop_cmds[next_nop])); |
p | 1076 | drivers/net/ni52.c | p->nop_cmds[next_nop]->cmd_status = 0; |
p | 1078 | drivers/net/ni52.c | p->nop_cmds[p->xmit_count]->cmd_link = make16((p->xmit_cmds[p->xmit_count])); |
p | 1080 | drivers/net/ni52.c | p->xmit_count = next_nop; |
p | 1083 | drivers/net/ni52.c | if(p->xmit_count != p->xmit_last) |
p | 1096 | drivers/net/ni52.c | struct priv *p = (struct priv *) dev->priv; |
p | 1098 | drivers/net/ni52.c | printk("ni52: errs, crc %d, align %d, resource %d, ovrn %d.\n",(int) p->scb->crc_errs,(int) p->scb->aln_errs,(int) p->scb->rsc_errs,(int) p->scb->ovrn_errs); |
p | 1100 | drivers/net/ni52.c | return &p->stats; |
p | 1114 | drivers/net/ni52.c | p->scb->cmd = CUC_SUSPEND; |
p | 1116 | drivers/net/ni52.c | while(p->scb->cmd); |
p | 1117 | drivers/net/ni52.c | p->scb->cmd = RUC_SUSPEND; |
p | 1119 | drivers/net/ni52.c | while(p->scb->cmd); |
p | 1121 | drivers/net/ni52.c | cfg_cmd = (struct configure_cmd_struct *) p->xmit_cbuffs[0]; /* we're using a transmitcommand */ |
p | 1138 | drivers/net/ni52.c | p->scb->cbl_offset = make16(cfg_cmd); |
p | 1140 | drivers/net/ni52.c | p->scb->cmd = CUC_START; /* cmd.-unit start */ |
p | 1142 | drivers/net/ni52.c | while(p->scb->cmd); |
p | 1144 | drivers/net/ni52.c | p->scb->cbl_offset = p->nop_cmds[0]->cmd_link = make16(p->nop_cmds[0]); |
p | 1145 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
p | 1147 | drivers/net/ni52.c | while(p->scb->cmd); |
p | 1148 | drivers/net/ni52.c | p->scb->cmd = RUC_RESUME; |
p | 1150 | drivers/net/ni52.c | while(p->scb->cmd); |
p | 211 | drivers/net/ni65.c | struct priv *p; |
p | 249 | drivers/net/ni65.c | p = dev->priv = (void *) kmalloc(sizeof(struct priv),GFP_KERNEL); |
p | 264 | drivers/net/ni65.c | if( (p->memptr = kmalloc(MEMSIZE,GFP_KERNEL)) == NULL) { |
p | 268 | drivers/net/ni65.c | if( (unsigned long) (p->memptr + MEMSIZE) & 0xff000000) { |
p | 272 | drivers/net/ni65.c | p->tmdhead = (struct tmd *) ((( (unsigned long)p->memptr ) + 8) & 0xfffffff8); |
p | 273 | drivers/net/ni65.c | p->rmdhead = (struct rmd *) (p->tmdhead + TMDNUM); |
p | 278 | drivers/net/ni65.c | if( (p->tmdbufs[i] = kmalloc(T_BUF_SIZE,GFP_ATOMIC)) == NULL) { |
p | 282 | drivers/net/ni65.c | if( (unsigned long) (p->tmdbufs[i]+T_BUF_SIZE) & 0xff000000) { |
p | 291 | drivers/net/ni65.c | if( (p->recv_skb[i] = (struct sk_buff *) alloc_skb(R_BUF_SIZE,GFP_ATOMIC)) == NULL) { |
p | 295 | drivers/net/ni65.c | if( (unsigned long) (p->recv_skb[i]->data + R_BUF_SIZE) & 0xff000000) { |
p | 313 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
p | 315 | drivers/net/ni65.c | p->lock = 0; |
p | 316 | drivers/net/ni65.c | p->xmit_queued = 0; |
p | 334 | drivers/net/ni65.c | memset(p->memptr,0,MEMSIZE); |
p | 336 | drivers/net/ni65.c | p->tmdnum = 0; p->tmdlast = 0; |
p | 339 | drivers/net/ni65.c | tmdp = p->tmdhead + i; |
p | 341 | drivers/net/ni65.c | tmdp->u.buffer = (unsigned long) p->tmdbufs[i]; |
p | 346 | drivers/net/ni65.c | p->rmdnum = 0; |
p | 349 | drivers/net/ni65.c | rmdp = p->rmdhead + i; |
p | 350 | drivers/net/ni65.c | rmdp->u.buffer = (unsigned long) p->recv_skb[i]->data; |
p | 358 | drivers/net/ni65.c | p->ib.eaddr[i] = dev->dev_addr[i]; |
p | 360 | drivers/net/ni65.c | p->ib.mode = 0; |
p | 362 | drivers/net/ni65.c | p->ib.filter[i] = 0; |
p | 363 | drivers/net/ni65.c | p->ib.trplow = (unsigned short) (( (unsigned long) p->tmdhead ) & 0xffff); |
p | 364 | drivers/net/ni65.c | p->ib.trphigh = (unsigned short) ((( (unsigned long) p->tmdhead )>>16) & 0x00ff) | TMDNUMMASK; |
p | 365 | drivers/net/ni65.c | p->ib.rrplow = (unsigned short) (( (unsigned long) p->rmdhead ) & 0xffff); |
p | 366 | drivers/net/ni65.c | p->ib.rrphigh = (unsigned short) ((( (unsigned long) p->rmdhead )>>16) & 0x00ff) | RMDNUMMASK; |
p | 369 | drivers/net/ni65.c | writereg((unsigned short) (((unsigned long) &(p->ib)) & 0xffff),CSR1); |
p | 370 | drivers/net/ni65.c | writereg((unsigned short) (((unsigned long) &(p->ib))>>16),CSR2); |
p | 419 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
p | 422 | drivers/net/ni65.c | p->stats.tx_errors++; |
p | 424 | drivers/net/ni65.c | p->stats.rx_errors++; |
p | 451 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
p | 457 | drivers/net/ni65.c | while(p->xmit_queued) |
p | 459 | drivers/net/ni65.c | tmdp = p->tmdhead + p->tmdlast; |
p | 464 | drivers/net/ni65.c | skb = (struct sk_buff *) p->tmdbufs[p->tmdlast]; |
p | 476 | drivers/net/ni65.c | p->stats.tx_aborted_errors++; |
p | 478 | drivers/net/ni65.c | p->stats.tx_carrier_errors++; |
p | 479 | drivers/net/ni65.c | p->stats.tx_errors++; |
p | 483 | drivers/net/ni65.c | p->stats.tx_packets++; |
p | 485 | drivers/net/ni65.c | p->tmdlast = (p->tmdlast + 1) & (TMDNUM-1); |
p | 486 | drivers/net/ni65.c | if(p->tmdlast == p->tmdnum) |
p | 487 | drivers/net/ni65.c | p->xmit_queued = 0; |
p | 503 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
p | 505 | drivers/net/ni65.c | rmdp = p->rmdhead + p->rmdnum; |
p | 512 | drivers/net/ni65.c | p->stats.rx_errors++; |
p | 513 | drivers/net/ni65.c | p->stats.rx_length_errors++; |
p | 521 | drivers/net/ni65.c | p->stats.rx_errors++; |
p | 522 | drivers/net/ni65.c | if(rmdstat & RCV_FRAM) p->stats.rx_frame_errors++; |
p | 523 | drivers/net/ni65.c | if(rmdstat & RCV_OFLO) p->stats.rx_over_errors++; |
p | 524 | drivers/net/ni65.c | if(rmdstat & RCV_CRC) p->stats.rx_crc_errors++; |
p | 535 | drivers/net/ni65.c | memcpy(skb->data,p->recv_skb[p->rmdnum]->data,len); |
p | 539 | drivers/net/ni65.c | skb1 = p->recv_skb[p->rmdnum]; |
p | 540 | drivers/net/ni65.c | p->recv_skb[p->rmdnum] = skb; |
p | 547 | drivers/net/ni65.c | p->stats.rx_packets++; |
p | 554 | drivers/net/ni65.c | p->stats.rx_dropped++; |
p | 557 | drivers/net/ni65.c | p->rmdnum++; p->rmdnum &= RMDNUM-1; |
p | 558 | drivers/net/ni65.c | rmdp = p->rmdhead + p->rmdnum; |
p | 568 | drivers/net/ni65.c | struct priv *p = (struct priv *) dev->priv; |
p | 597 | drivers/net/ni65.c | if(set_bit(0,(void*) &p->lock) != 0) |
p | 606 | drivers/net/ni65.c | tmdp = p->tmdhead + p->tmdnum; |
p | 610 | drivers/net/ni65.c | p->tmdbufs[p->tmdnum] = skb; |
p | 619 | drivers/net/ni65.c | p->xmit_queued = 1; |
p | 621 | drivers/net/ni65.c | p->tmdnum++; p->tmdnum &= TMDNUM-1; |
p | 623 | drivers/net/ni65.c | if( !((p->tmdhead + p->tmdnum)->u.s.status & XMIT_OWN) ) |
p | 625 | drivers/net/ni65.c | p->lock = 0; |
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 | 1467 | drivers/scsi/NCR5380.c | register unsigned char p = *phase, tmp; |
p | 1478 | drivers/scsi/NCR5380.c | NCR5380_write(TARGET_COMMAND_REG, PHASE_SR_TO_TCR(p)); |
p | 1492 | drivers/scsi/NCR5380.c | if ((tmp & PHASE_MASK) != p) { |
p | 1501 | drivers/scsi/NCR5380.c | if (!(p & SR_IO)) |
p | 1515 | drivers/scsi/NCR5380.c | if (!(p & SR_IO)) { |
p | 1516 | drivers/scsi/NCR5380.c | if (!((p & SR_MSG) && c > 1)) { |
p | 1557 | drivers/scsi/NCR5380.c | if (!(p == PHASE_MSGIN && c == 1)) { |
p | 1558 | drivers/scsi/NCR5380.c | if (p == PHASE_MSGOUT && c > 1) |
p | 1577 | drivers/scsi/NCR5380.c | if (!c || (*phase == p)) |
p | 1608 | drivers/scsi/NCR5380.c | register unsigned char p = *phase; |
p | 1622 | drivers/scsi/NCR5380.c | if ((tmp = (NCR5380_read(STATUS_REG) & PHASE_MASK)) != p) { |
p | 1628 | drivers/scsi/NCR5380.c | if (p & SR_IO) { |
p | 1634 | drivers/scsi/NCR5380.c | instance->host_no, instance->dma_channel, (p & SR_IO) ? "reading" : |
p | 1635 | drivers/scsi/NCR5380.c | "writing", c, (p & SR_IO) ? "to" : "from", (unsigned) d); |
p | 1637 | drivers/scsi/NCR5380.c | hostdata->dma_len = (p & SR_IO) ? |
p | 1642 | drivers/scsi/NCR5380.c | NCR5380_write(TARGET_COMMAND_REG, PHASE_SR_TO_TCR(p)); |
p | 1674 | drivers/scsi/NCR5380.c | if (p & SR_IO) { |
p | 1735 | drivers/scsi/NCR5380.c | if (p & SR_IO) { |
p | 1769 | drivers/scsi/NCR5380.c | if (*phase == p && (p & SR_IO) && residue == 0) { |
p | 1799 | 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 | 78 | drivers/scsi/scsicam.c | struct partition *p, *largest = NULL; |
p | 85 | drivers/scsi/scsicam.c | for (largest_cyl = -1, p = (struct partition *) |
p | 86 | drivers/scsi/scsicam.c | (0x1BE + bh->b_data), i = 0; i < 4; ++i, ++p) { |
p | 87 | drivers/scsi/scsicam.c | if (!p->sys_ind) |
p | 93 | drivers/scsi/scsicam.c | cyl = p->cyl + ((p->sector & 0xc0) << 2); |
p | 96 | drivers/scsi/scsicam.c | largest = p; |
p | 847 | drivers/scsi/ultrastor.c | unsigned char p = inb(port0 + i); |
p | 848 | drivers/scsi/ultrastor.c | out[28 + i * 3] = "0123456789abcdef"[p >> 4]; |
p | 849 | drivers/scsi/ultrastor.c | out[29 + i * 3] = "0123456789abcdef"[p & 15]; |
p | 518 | drivers/scsi/wd7000.c | #define any2scsi(up, p) \ |
p | 519 | drivers/scsi/wd7000.c | (up)[0] = (((unsigned long)(p)) >> 16); \ |
p | 520 | drivers/scsi/wd7000.c | (up)[1] = ((unsigned long)(p)) >> 8; \ |
p | 521 | drivers/scsi/wd7000.c | (up)[2] = ((unsigned long)(p)); |
p | 597 | drivers/scsi/wd7000.c | register Scb *scb, *p; |
p | 634 | drivers/scsi/wd7000.c | for (i = 0; i < needed; i++) { p = scbfree; scbfree = p->next; } |
p | 635 | 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 | 33 | fs/block_dev.c | register char * p; |
p | 112 | fs/block_dev.c | p = offset + bh->b_data; |
p | 117 | fs/block_dev.c | memcpy_fromfs(p,buf,chars); |
p | 118 | fs/block_dev.c | p += chars; |
p | 1030 | fs/buffer.c | int * p; |
p | 1037 | fs/buffer.c | p = b; |
p | 1039 | fs/buffer.c | block = *(p++); |
p | 1046 | fs/buffer.c | p = b; |
p | 1056 | fs/buffer.c | bh->b_blocknr = *(p++); |
p | 1212 | fs/buffer.c | struct buffer_head * tmp, * p; |
p | 1228 | fs/buffer.c | p = tmp; |
p | 1232 | fs/buffer.c | if (p == *bhp) |
p | 1234 | fs/buffer.c | *bhp = p->b_prev_free; |
p | 1235 | fs/buffer.c | if (p == *bhp) /* Was this the last in the list? */ |
p | 1238 | fs/buffer.c | remove_from_queues(p); |
p | 1239 | fs/buffer.c | put_unused_buffer_head(p); |
p | 1427 | fs/buffer.c | struct buffer_head * tmp, * p; |
p | 1450 | fs/buffer.c | p = tmp; |
p | 1452 | fs/buffer.c | remove_from_queues(p); |
p | 1453 | fs/buffer.c | p->b_dev=dev; |
p | 1454 | fs/buffer.c | p->b_uptodate = 0; |
p | 1455 | fs/buffer.c | p->b_req = 0; |
p | 1456 | fs/buffer.c | p->b_blocknr=starting_block++; |
p | 1457 | fs/buffer.c | insert_into_queues(p); |
p | 216 | fs/dcache.c | struct dir_cache_entry * p; |
p | 221 | fs/dcache.c | p = level1_cache; |
p | 223 | fs/dcache.c | p[1].prev_lru = p; |
p | 224 | fs/dcache.c | p[0].next_lru = p+1; |
p | 225 | fs/dcache.c | p[0].lru_head = &level1_head; |
p | 226 | fs/dcache.c | } while (++p < level1_cache + DCACHE_SIZE-1); |
p | 227 | fs/dcache.c | level1_cache[0].prev_lru = p; |
p | 228 | fs/dcache.c | p[0].next_lru = &level1_cache[0]; |
p | 229 | fs/dcache.c | p[0].lru_head = &level1_head; |
p | 235 | fs/dcache.c | p = level2_cache; |
p | 237 | fs/dcache.c | p[1].prev_lru = p; |
p | 238 | fs/dcache.c | p[0].next_lru = p+1; |
p | 239 | fs/dcache.c | p[0].lru_head = &level2_head; |
p | 240 | fs/dcache.c | } while (++p < level2_cache + DCACHE_SIZE-1); |
p | 241 | fs/dcache.c | level2_cache[0].prev_lru = p; |
p | 242 | fs/dcache.c | p[0].next_lru = &level2_cache[0]; |
p | 243 | fs/dcache.c | p[0].lru_head = &level2_head; |
p | 311 | fs/exec.c | unsigned long * create_tables(char * p,int argc,int envc,int ibcs) |
p | 320 | fs/exec.c | mpnt->vm_start = PAGE_MASK & (unsigned long) p; |
p | 331 | fs/exec.c | sp = (unsigned long *) (0xfffffffc & (unsigned long) p); |
p | 341 | fs/exec.c | current->mm->arg_start = (unsigned long) p; |
p | 343 | fs/exec.c | put_fs_long((unsigned long) p,argv++); |
p | 344 | fs/exec.c | while (get_fs_byte(p++)) /* nothing */ ; |
p | 347 | fs/exec.c | current->mm->arg_end = current->mm->env_start = (unsigned long) p; |
p | 349 | fs/exec.c | put_fs_long((unsigned long) p,envp++); |
p | 350 | fs/exec.c | while (get_fs_byte(p++)) /* nothing */ ; |
p | 353 | fs/exec.c | current->mm->env_end = (unsigned long) p; |
p | 390 | fs/exec.c | unsigned long p, int from_kmem) |
p | 396 | fs/exec.c | if (!p) |
p | 413 | fs/exec.c | if (p < len) { /* this shouldn't happen - 128kB */ |
p | 418 | fs/exec.c | --p; --tmp; --len; |
p | 420 | fs/exec.c | offset = p % PAGE_SIZE; |
p | 423 | fs/exec.c | if (!(pag = (char *) page[p/PAGE_SIZE]) && |
p | 424 | fs/exec.c | !(pag = (char *) page[p/PAGE_SIZE] = |
p | 436 | fs/exec.c | return p; |
p | 590 | fs/exec.c | bprm.p = PAGE_SIZE*MAX_ARG_PAGES-4; |
p | 683 | fs/exec.c | bprm.p = copy_strings(bprm.envc, envp, bprm.page, bprm.p, 0); |
p | 684 | fs/exec.c | bprm.p = copy_strings(--bprm.argc, argv+1, bprm.page, bprm.p, 0); |
p | 694 | fs/exec.c | bprm.p = copy_strings(1, &bprm.filename, bprm.page, bprm.p, 2); |
p | 697 | fs/exec.c | bprm.p = copy_strings(1, &i_arg, bprm.page, bprm.p, 2); |
p | 700 | fs/exec.c | bprm.p = copy_strings(1, &i_name, bprm.page, bprm.p, 2); |
p | 702 | fs/exec.c | if (!bprm.p) { |
p | 717 | fs/exec.c | bprm.p = copy_strings(bprm.envc,envp,bprm.page,bprm.p,0); |
p | 718 | fs/exec.c | bprm.p = copy_strings(bprm.argc,argv,bprm.page,bprm.p,0); |
p | 719 | fs/exec.c | if (!bprm.p) { |
p | 784 | fs/exec.c | unsigned long p = bprm->p; |
p | 881 | fs/exec.c | p += change_ldt(ex.a_text,bprm->page); |
p | 882 | fs/exec.c | p -= MAX_ARG_PAGES*PAGE_SIZE; |
p | 883 | fs/exec.c | p = (unsigned long)create_tables((char *)p, |
p | 886 | fs/exec.c | current->mm->start_stack = p; |
p | 888 | 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 | 257 | fs/ext2/balloc.c | char * p, * r; |
p | 338 | fs/ext2/balloc.c | p = ((char *) bh->b_data) + (j >> 3); |
p | 339 | fs/ext2/balloc.c | r = memscan(p, 0, (EXT2_BLOCKS_PER_GROUP(sb) - j + 7) >> 3); |
p | 236 | fs/ext2/file.c | char * p; |
p | 292 | fs/ext2/file.c | p = (pos % sb->s_blocksize) + bh->b_data; |
p | 295 | fs/ext2/file.c | memcpy_fromfs (p, buf, c); |
p | 185 | fs/ext2/inode.c | unsigned long * p; |
p | 189 | fs/ext2/inode.c | p = inode->u.ext2_i.i_data + nr; |
p | 191 | fs/ext2/inode.c | tmp = *p; |
p | 194 | fs/ext2/inode.c | if (tmp == *p) |
p | 229 | fs/ext2/inode.c | if (*p) { |
p | 234 | fs/ext2/inode.c | *p = tmp; |
p | 252 | fs/ext2/inode.c | unsigned long * p; |
p | 266 | fs/ext2/inode.c | p = (unsigned long *) bh->b_data + nr; |
p | 268 | fs/ext2/inode.c | tmp = *p; |
p | 271 | fs/ext2/inode.c | if (tmp == *p) { |
p | 303 | fs/ext2/inode.c | if (*p) { |
p | 308 | fs/ext2/inode.c | *p = tmp; |
p | 327 | fs/ext2/inode.c | unsigned long * p; |
p | 340 | fs/ext2/inode.c | p = (unsigned long *) bh->b_data + nr + i; |
p | 343 | fs/ext2/inode.c | if(*p == 0) goto out; |
p | 346 | fs/ext2/inode.c | if(i==0) firstblock = *p; |
p | 347 | fs/ext2/inode.c | else if(*p != firstblock + i) goto out; |
p | 350 | fs/ext2/inode.c | p = (unsigned long *) bh->b_data + nr; |
p | 351 | fs/ext2/inode.c | result = generate_cluster(bh->b_dev, (int *) p, blocksize); |
p | 49 | fs/ext2/truncate.c | unsigned long * p; |
p | 61 | fs/ext2/truncate.c | p = inode->u.ext2_i.i_data + i; |
p | 62 | fs/ext2/truncate.c | tmp = *p; |
p | 75 | fs/ext2/truncate.c | if ((bh && bh->b_count != 1) || tmp != *p) { |
p | 80 | fs/ext2/truncate.c | *p = 0; |
p | 105 | fs/ext2/truncate.c | static int trunc_indirect (struct inode * inode, int offset, unsigned long * p) |
p | 119 | fs/ext2/truncate.c | tmp = *p; |
p | 123 | fs/ext2/truncate.c | if (tmp != *p) { |
p | 128 | fs/ext2/truncate.c | *p = 0; |
p | 187 | fs/ext2/truncate.c | tmp = *p; |
p | 188 | fs/ext2/truncate.c | *p = 0; |
p | 202 | fs/ext2/truncate.c | unsigned long * p) |
p | 213 | fs/ext2/truncate.c | tmp = *p; |
p | 217 | fs/ext2/truncate.c | if (tmp != *p) { |
p | 222 | fs/ext2/truncate.c | *p = 0; |
p | 247 | fs/ext2/truncate.c | tmp = *p; |
p | 248 | fs/ext2/truncate.c | *p = 0; |
p | 265 | fs/ext2/truncate.c | unsigned long * tind, * p; |
p | 274 | fs/ext2/truncate.c | p = inode->u.ext2_i.i_data + EXT2_TIND_BLOCK; |
p | 275 | fs/ext2/truncate.c | if (!(tmp = *p)) |
p | 278 | fs/ext2/truncate.c | if (tmp != *p) { |
p | 283 | fs/ext2/truncate.c | *p = 0; |
p | 306 | fs/ext2/truncate.c | tmp = *p; |
p | 307 | 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 | 288 | fs/isofs/rock.c | { int p; |
p | 289 | 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 | 311 | fs/namei.c | struct task_struct ** p; |
p | 383 | fs/namei.c | for (p = &LAST_TASK ; p > &FIRST_TASK ; --p) { |
p | 385 | fs/namei.c | if (!*p) |
p | 387 | fs/namei.c | for(mpnt = (*p)->mm->mmap; mpnt; mpnt = mpnt->vm_next) { |
p | 66 | fs/nfs/proc.c | static int *nfs_rpc_header(int *p, int procedure, int ruid); |
p | 67 | fs/nfs/proc.c | static int *nfs_rpc_verify(int *p); |
p | 101 | fs/nfs/proc.c | static inline void nfs_rpc_free(int *p) |
p | 103 | fs/nfs/proc.c | kfree((void *)p); |
p | 113 | fs/nfs/proc.c | static inline int *xdr_encode_fhandle(int *p, struct nfs_fh *fhandle) |
p | 115 | fs/nfs/proc.c | *((struct nfs_fh *) p) = *fhandle; |
p | 116 | fs/nfs/proc.c | return p + QUADLEN(sizeof(*fhandle)); |
p | 119 | fs/nfs/proc.c | static inline int *xdr_decode_fhandle(int *p, struct nfs_fh *fhandle) |
p | 121 | fs/nfs/proc.c | *fhandle = *((struct nfs_fh *) p); |
p | 122 | fs/nfs/proc.c | return p + QUADLEN(sizeof(*fhandle)); |
p | 125 | fs/nfs/proc.c | static inline int *xdr_encode_string(int *p, const char *string) |
p | 130 | fs/nfs/proc.c | p[quadlen] = 0; |
p | 131 | fs/nfs/proc.c | *p++ = htonl(len); |
p | 132 | fs/nfs/proc.c | memcpy(p, string, len); |
p | 133 | fs/nfs/proc.c | return p + quadlen; |
p | 136 | fs/nfs/proc.c | static inline int *xdr_decode_string(int *p, char *string, unsigned int maxlen) |
p | 138 | fs/nfs/proc.c | unsigned int len = ntohl(*p++); |
p | 141 | fs/nfs/proc.c | memcpy(string, p, len); |
p | 143 | fs/nfs/proc.c | return p + QUADLEN(len); |
p | 146 | fs/nfs/proc.c | static inline int *xdr_decode_string2(int *p, char **string, unsigned int *len, |
p | 149 | fs/nfs/proc.c | *len = ntohl(*p++); |
p | 152 | fs/nfs/proc.c | *string = (char *) p; |
p | 153 | fs/nfs/proc.c | return p + QUADLEN(*len); |
p | 157 | fs/nfs/proc.c | static inline int *xdr_encode_data(int *p, char *data, int len) |
p | 161 | fs/nfs/proc.c | p[quadlen] = 0; |
p | 162 | fs/nfs/proc.c | *p++ = htonl(len); |
p | 163 | fs/nfs/proc.c | memcpy_fromfs(p, data, len); |
p | 164 | fs/nfs/proc.c | return p + quadlen; |
p | 167 | fs/nfs/proc.c | static inline int *xdr_decode_data(int *p, char *data, int *lenp, int maxlen, |
p | 170 | fs/nfs/proc.c | unsigned len = *lenp = ntohl(*p++); |
p | 174 | fs/nfs/proc.c | memcpy_tofs(data, p, len); |
p | 176 | fs/nfs/proc.c | memcpy(data, p, len); |
p | 177 | fs/nfs/proc.c | return p + QUADLEN(len); |
p | 180 | fs/nfs/proc.c | static int *xdr_decode_fattr(int *p, struct nfs_fattr *fattr) |
p | 182 | fs/nfs/proc.c | fattr->type = (enum nfs_ftype) ntohl(*p++); |
p | 183 | fs/nfs/proc.c | fattr->mode = ntohl(*p++); |
p | 184 | fs/nfs/proc.c | fattr->nlink = ntohl(*p++); |
p | 185 | fs/nfs/proc.c | fattr->uid = ntohl(*p++); |
p | 186 | fs/nfs/proc.c | fattr->gid = ntohl(*p++); |
p | 187 | fs/nfs/proc.c | fattr->size = ntohl(*p++); |
p | 188 | fs/nfs/proc.c | fattr->blocksize = ntohl(*p++); |
p | 189 | fs/nfs/proc.c | fattr->rdev = ntohl(*p++); |
p | 190 | fs/nfs/proc.c | fattr->blocks = ntohl(*p++); |
p | 191 | fs/nfs/proc.c | fattr->fsid = ntohl(*p++); |
p | 192 | fs/nfs/proc.c | fattr->fileid = ntohl(*p++); |
p | 193 | fs/nfs/proc.c | fattr->atime.seconds = ntohl(*p++); |
p | 194 | fs/nfs/proc.c | fattr->atime.useconds = ntohl(*p++); |
p | 195 | fs/nfs/proc.c | fattr->mtime.seconds = ntohl(*p++); |
p | 196 | fs/nfs/proc.c | fattr->mtime.useconds = ntohl(*p++); |
p | 197 | fs/nfs/proc.c | fattr->ctime.seconds = ntohl(*p++); |
p | 198 | fs/nfs/proc.c | fattr->ctime.useconds = ntohl(*p++); |
p | 199 | fs/nfs/proc.c | return p; |
p | 202 | fs/nfs/proc.c | static int *xdr_encode_sattr(int *p, struct nfs_sattr *sattr) |
p | 204 | fs/nfs/proc.c | *p++ = htonl(sattr->mode); |
p | 205 | fs/nfs/proc.c | *p++ = htonl(sattr->uid); |
p | 206 | fs/nfs/proc.c | *p++ = htonl(sattr->gid); |
p | 207 | fs/nfs/proc.c | *p++ = htonl(sattr->size); |
p | 208 | fs/nfs/proc.c | *p++ = htonl(sattr->atime.seconds); |
p | 209 | fs/nfs/proc.c | *p++ = htonl(sattr->atime.useconds); |
p | 210 | fs/nfs/proc.c | *p++ = htonl(sattr->mtime.seconds); |
p | 211 | fs/nfs/proc.c | *p++ = htonl(sattr->mtime.useconds); |
p | 212 | fs/nfs/proc.c | return p; |
p | 215 | fs/nfs/proc.c | static int *xdr_decode_entry(int *p, struct nfs_entry *entry) |
p | 217 | fs/nfs/proc.c | entry->fileid = ntohl(*p++); |
p | 218 | fs/nfs/proc.c | if (!(p = xdr_decode_string(p, entry->name, NFS_MAXNAMLEN))) |
p | 220 | fs/nfs/proc.c | entry->cookie = ntohl(*p++); |
p | 222 | fs/nfs/proc.c | return p; |
p | 225 | fs/nfs/proc.c | static int *xdr_decode_fsinfo(int *p, struct nfs_fsinfo *res) |
p | 227 | fs/nfs/proc.c | res->tsize = ntohl(*p++); |
p | 228 | fs/nfs/proc.c | res->bsize = ntohl(*p++); |
p | 229 | fs/nfs/proc.c | res->blocks = ntohl(*p++); |
p | 230 | fs/nfs/proc.c | res->bfree = ntohl(*p++); |
p | 231 | fs/nfs/proc.c | res->bavail = ntohl(*p++); |
p | 232 | fs/nfs/proc.c | return p; |
p | 242 | fs/nfs/proc.c | int *p, *p0; |
p | 250 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_GETATTR, ruid); |
p | 251 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 252 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 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 | 278 | fs/nfs/proc.c | int *p, *p0; |
p | 286 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_SETATTR, ruid); |
p | 287 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 288 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 289 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 293 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 295 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 296 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 315 | fs/nfs/proc.c | int *p, *p0; |
p | 327 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_LOOKUP, ruid); |
p | 328 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 329 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 330 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
p | 334 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 336 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 337 | fs/nfs/proc.c | p = xdr_decode_fhandle(p, fhandle); |
p | 338 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 357 | fs/nfs/proc.c | int *p; |
p | 364 | fs/nfs/proc.c | p = nfs_rpc_header(*p0, NFSPROC_READLINK, ruid); |
p | 365 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 366 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, *p0, p, server->rsize)) < 0) |
p | 368 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(*p0))) |
p | 370 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 371 | fs/nfs/proc.c | if (!(p = xdr_decode_string2(p, string, len, maxlen))) { |
p | 392 | fs/nfs/proc.c | int *p, *p0; |
p | 401 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_READ, ruid); |
p | 402 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 403 | fs/nfs/proc.c | *p++ = htonl(offset); |
p | 404 | fs/nfs/proc.c | *p++ = htonl(count); |
p | 405 | fs/nfs/proc.c | *p++ = htonl(count); /* traditional, could be any value */ |
p | 406 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
p | 410 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 412 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 413 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 414 | fs/nfs/proc.c | if (!(p = xdr_decode_data(p, data, &len, count, fs))) { |
p | 438 | fs/nfs/proc.c | int *p, *p0; |
p | 446 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_WRITE, ruid); |
p | 447 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 448 | fs/nfs/proc.c | *p++ = htonl(offset); /* traditional, could be any value */ |
p | 449 | fs/nfs/proc.c | *p++ = htonl(offset); |
p | 450 | fs/nfs/proc.c | *p++ = htonl(count); /* traditional, could be any value */ |
p | 451 | fs/nfs/proc.c | p = xdr_encode_data(p, data, count); |
p | 452 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 456 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 458 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 459 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 479 | fs/nfs/proc.c | int *p, *p0; |
p | 487 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_CREATE, ruid); |
p | 488 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 489 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 490 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 491 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 495 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 497 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 498 | fs/nfs/proc.c | p = xdr_decode_fhandle(p, fhandle); |
p | 499 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 517 | fs/nfs/proc.c | int *p, *p0; |
p | 525 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_REMOVE, ruid); |
p | 526 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 527 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 528 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 532 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 534 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 554 | fs/nfs/proc.c | int *p, *p0; |
p | 562 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_RENAME, ruid); |
p | 563 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, old_dir); |
p | 564 | fs/nfs/proc.c | p = xdr_encode_string(p, old_name); |
p | 565 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, new_dir); |
p | 566 | fs/nfs/proc.c | p = xdr_encode_string(p, new_name); |
p | 567 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 571 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 573 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 592 | fs/nfs/proc.c | int *p, *p0; |
p | 600 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_LINK, ruid); |
p | 601 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 602 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 603 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 604 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 608 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 610 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 629 | fs/nfs/proc.c | int *p, *p0; |
p | 637 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_SYMLINK, ruid); |
p | 638 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 639 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 640 | fs/nfs/proc.c | p = xdr_encode_string(p, path); |
p | 641 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 642 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 646 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 648 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 668 | fs/nfs/proc.c | int *p, *p0; |
p | 676 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_MKDIR, ruid); |
p | 677 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 678 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 679 | fs/nfs/proc.c | p = xdr_encode_sattr(p, sattr); |
p | 680 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 684 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 686 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 687 | fs/nfs/proc.c | p = xdr_decode_fhandle(p, fhandle); |
p | 688 | fs/nfs/proc.c | p = xdr_decode_fattr(p, fattr); |
p | 706 | fs/nfs/proc.c | int *p, *p0; |
p | 714 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_RMDIR, ruid); |
p | 715 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, dir); |
p | 716 | fs/nfs/proc.c | p = xdr_encode_string(p, name); |
p | 717 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
p | 721 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 723 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 742 | fs/nfs/proc.c | int *p, *p0; |
p | 754 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_READDIR, ruid); |
p | 755 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 756 | fs/nfs/proc.c | *p++ = htonl(cookie); |
p | 757 | fs/nfs/proc.c | *p++ = htonl(size); |
p | 758 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
p | 762 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 764 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 765 | fs/nfs/proc.c | for (i = 0; i < count && *p++; i++) { |
p | 766 | fs/nfs/proc.c | if (!(p = xdr_decode_entry(p, entry++))) |
p | 769 | fs/nfs/proc.c | if (!p) { |
p | 774 | fs/nfs/proc.c | eof = (i == count && !*p++ && *p++) |
p | 775 | fs/nfs/proc.c | || (i < count && *p++); |
p | 798 | fs/nfs/proc.c | int *p, *p0; |
p | 806 | fs/nfs/proc.c | p = nfs_rpc_header(p0, NFSPROC_STATFS, ruid); |
p | 807 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, fhandle); |
p | 808 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
p | 812 | fs/nfs/proc.c | if (!(p = nfs_rpc_verify(p0))) |
p | 814 | fs/nfs/proc.c | else if ((status = ntohl(*p++)) == NFS_OK) { |
p | 815 | fs/nfs/proc.c | p = xdr_decode_fsinfo(p, res); |
p | 835 | fs/nfs/proc.c | static int *nfs_rpc_header(int *p, int procedure, int ruid) |
p | 846 | fs/nfs/proc.c | *p++ = htonl(++xid); |
p | 847 | fs/nfs/proc.c | *p++ = htonl(RPC_CALL); |
p | 848 | fs/nfs/proc.c | *p++ = htonl(RPC_VERSION); |
p | 849 | fs/nfs/proc.c | *p++ = htonl(NFS_PROGRAM); |
p | 850 | fs/nfs/proc.c | *p++ = htonl(NFS_VERSION); |
p | 851 | fs/nfs/proc.c | *p++ = htonl(procedure); |
p | 852 | fs/nfs/proc.c | *p++ = htonl(RPC_AUTH_UNIX); |
p | 853 | fs/nfs/proc.c | p1 = p++; |
p | 854 | fs/nfs/proc.c | *p++ = htonl(CURRENT_TIME); /* traditional, could be anything */ |
p | 855 | fs/nfs/proc.c | p = xdr_encode_string(p, (char *) sys); |
p | 856 | fs/nfs/proc.c | *p++ = htonl(ruid ? current->uid : current->fsuid); |
p | 857 | fs/nfs/proc.c | *p++ = htonl(current->egid); |
p | 858 | fs/nfs/proc.c | p2 = p++; |
p | 860 | fs/nfs/proc.c | *p++ = htonl(current->groups[i]); |
p | 862 | fs/nfs/proc.c | *p1 = htonl((p - (p1 + 1)) << 2); |
p | 863 | fs/nfs/proc.c | *p++ = htonl(RPC_AUTH_NULL); |
p | 864 | fs/nfs/proc.c | *p++ = htonl(0); |
p | 865 | fs/nfs/proc.c | return p; |
p | 868 | fs/nfs/proc.c | static int *nfs_rpc_verify(int *p) |
p | 872 | fs/nfs/proc.c | p++; |
p | 873 | fs/nfs/proc.c | if ((n = ntohl(*p++)) != RPC_REPLY) { |
p | 877 | fs/nfs/proc.c | if ((n = ntohl(*p++)) != RPC_MSG_ACCEPTED) { |
p | 881 | fs/nfs/proc.c | switch (n = ntohl(*p++)) { |
p | 888 | fs/nfs/proc.c | if ((n = ntohl(*p++)) > 400) { |
p | 892 | fs/nfs/proc.c | p += QUADLEN(n); |
p | 893 | fs/nfs/proc.c | if ((n = ntohl(*p++)) != RPC_SUCCESS) { |
p | 897 | fs/nfs/proc.c | return p; |
p | 42 | fs/proc/array.c | unsigned long p = file->f_pos; |
p | 54 | fs/proc/array.c | if (p >= high_memory + PAGE_SIZE) |
p | 56 | fs/proc/array.c | if (count > high_memory + PAGE_SIZE - p) |
p | 57 | fs/proc/array.c | count = high_memory + PAGE_SIZE - p; |
p | 60 | fs/proc/array.c | if (p < sizeof(struct user) && count > 0) { |
p | 62 | fs/proc/array.c | if (p + count1 > sizeof(struct user)) |
p | 63 | fs/proc/array.c | count1 = sizeof(struct user)-p; |
p | 64 | fs/proc/array.c | pnt = (char *) &dump + p; |
p | 67 | fs/proc/array.c | p += count1; |
p | 72 | fs/proc/array.c | while (p < 2*PAGE_SIZE && count > 0) { |
p | 75 | fs/proc/array.c | p++; |
p | 79 | fs/proc/array.c | memcpy_tofs(buf,(void *) (p - PAGE_SIZE),count); |
p | 181 | fs/proc/array.c | struct task_struct ** p; |
p | 183 | fs/proc/array.c | p = task; |
p | 184 | fs/proc/array.c | while (++p < task+NR_TASKS) { |
p | 185 | fs/proc/array.c | if (*p && (*p)->pid == pid) |
p | 186 | fs/proc/array.c | return p; |
p | 191 | fs/proc/array.c | static unsigned long get_phys_addr(struct task_struct ** p, unsigned long ptr) |
p | 195 | fs/proc/array.c | if (!p || !*p || ptr >= TASK_SIZE) |
p | 197 | fs/proc/array.c | page = *PAGE_DIR_OFFSET((*p)->tss.cr3,ptr); |
p | 210 | fs/proc/array.c | static int get_array(struct task_struct ** p, unsigned long start, unsigned long end, char * buffer) |
p | 219 | fs/proc/array.c | addr = get_phys_addr(p, start); |
p | 245 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
p | 247 | fs/proc/array.c | if (!p || !*p) |
p | 249 | fs/proc/array.c | return get_array(p, (*p)->mm->env_start, (*p)->mm->env_end, buffer); |
p | 254 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
p | 256 | fs/proc/array.c | if (!p || !*p) |
p | 258 | fs/proc/array.c | return get_array(p, (*p)->mm->arg_start, (*p)->mm->arg_end, buffer); |
p | 261 | fs/proc/array.c | static unsigned long get_wchan(struct task_struct *p) |
p | 267 | fs/proc/array.c | if (!p || p == current || p->state == TASK_RUNNING) |
p | 269 | fs/proc/array.c | stack_page = p->kernel_stack_page; |
p | 272 | fs/proc/array.c | ebp = p->tss.ebp; |
p | 290 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
p | 296 | fs/proc/array.c | if (!p || !*p) |
p | 298 | fs/proc/array.c | if ((*p)->state < 0 || (*p)->state > 5) |
p | 301 | fs/proc/array.c | state = "RSDZTD"[(*p)->state]; |
p | 303 | fs/proc/array.c | vsize = (*p)->kernel_stack_page; |
p | 307 | fs/proc/array.c | vsize = (*p)->mm->brk - (*p)->mm->start_code + PAGE_SIZE-1; |
p | 311 | fs/proc/array.c | wchan = get_wchan(*p); |
p | 313 | fs/proc/array.c | switch((int) (*p)->sigaction[i].sa_handler) { |
p | 319 | fs/proc/array.c | if ((*p)->tty) |
p | 320 | fs/proc/array.c | tty_pgrp = (*p)->tty->pgrp; |
p | 327 | fs/proc/array.c | (*p)->comm, |
p | 329 | fs/proc/array.c | (*p)->p_pptr->pid, |
p | 330 | fs/proc/array.c | (*p)->pgrp, |
p | 331 | fs/proc/array.c | (*p)->session, |
p | 332 | fs/proc/array.c | (*p)->tty ? (*p)->tty->device : 0, |
p | 334 | fs/proc/array.c | (*p)->flags, |
p | 335 | fs/proc/array.c | (*p)->mm->min_flt, |
p | 336 | fs/proc/array.c | (*p)->mm->cmin_flt, |
p | 337 | fs/proc/array.c | (*p)->mm->maj_flt, |
p | 338 | fs/proc/array.c | (*p)->mm->cmaj_flt, |
p | 339 | fs/proc/array.c | (*p)->utime, |
p | 340 | fs/proc/array.c | (*p)->stime, |
p | 341 | fs/proc/array.c | (*p)->cutime, |
p | 342 | fs/proc/array.c | (*p)->cstime, |
p | 343 | fs/proc/array.c | (*p)->counter, /* this is the kernel priority --- |
p | 345 | fs/proc/array.c | (*p)->priority, /* this is the nice value --- |
p | 347 | fs/proc/array.c | (*p)->timeout, |
p | 348 | fs/proc/array.c | (*p)->it_real_value, |
p | 349 | fs/proc/array.c | (*p)->start_time, |
p | 351 | fs/proc/array.c | (*p)->mm->rss, /* you might want to shift this left 3 */ |
p | 352 | fs/proc/array.c | (*p)->rlim[RLIMIT_RSS].rlim_cur, |
p | 353 | fs/proc/array.c | (*p)->mm->start_code, |
p | 354 | fs/proc/array.c | (*p)->mm->end_code, |
p | 355 | fs/proc/array.c | (*p)->mm->start_stack, |
p | 358 | fs/proc/array.c | (*p)->signal, |
p | 359 | fs/proc/array.c | (*p)->blocked, |
p | 367 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
p | 372 | fs/proc/array.c | if (!p || !*p) |
p | 374 | fs/proc/array.c | tpag = (*p)->mm->end_code / PAGE_SIZE; |
p | 375 | fs/proc/array.c | if ((*p)->state != TASK_ZOMBIE) { |
p | 376 | fs/proc/array.c | pagedir = (unsigned long *) (*p)->tss.cr3; |
p | 415 | fs/proc/array.c | struct task_struct **p = get_task(pid); |
p | 418 | fs/proc/array.c | if (!p || !*p) |
p | 421 | 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 | 121 | fs/proc/fd.c | struct task_struct * p; |
p | 151 | fs/proc/fd.c | if ((p = task[i]) && p->pid == pid) |
p | 158 | fs/proc/fd.c | if (!p->files->fd[fd] || !p->files->fd[fd]->f_inode) |
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 | 138 | fs/proc/inode.c | inode->i_uid = p->euid; |
p | 139 | fs/proc/inode.c | inode->i_gid = p->egid; |
p | 174 | fs/proc/inode.c | if (ino >= NR_OPEN || !p->files->fd[ino]) |
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 | struct vm_area_struct * vma = p->mm->mmap; |
p | 89 | fs/proc/link.c | if (ino < NR_OPEN && p->files->fd[ino]) |
p | 90 | fs/proc/link.c | inode = p->files->fd[ino]->f_inode; |
p | 139 | fs/proc/root.c | struct task_struct * p; |
p | 164 | fs/proc/root.c | p = task[nr]; |
p | 165 | 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 | 248 | fs/sysv/file.c | char * p; |
p | 293 | fs/sysv/file.c | p = (pos & sb->sv_block_size_1) + bh_data; |
p | 300 | fs/sysv/file.c | memcpy_fromfs(p,buf,c); |
p | 480 | fs/sysv/inode.c | unsigned long *p; |
p | 484 | fs/sysv/inode.c | p = inode->u.sysv_i.i_data + nr; |
p | 486 | fs/sysv/inode.c | tmp = *p; |
p | 489 | fs/sysv/inode.c | if (tmp == *p) { |
p | 502 | fs/sysv/inode.c | if (*p) { |
p | 507 | fs/sysv/inode.c | *p = tmp; |
p | 519 | fs/sysv/inode.c | sysv_zone_t *p; |
p | 533 | fs/sysv/inode.c | p = nr + (sysv_zone_t *) *start; |
p | 535 | fs/sysv/inode.c | block = tmp = *p; |
p | 540 | fs/sysv/inode.c | if (tmp == *p) { |
p | 558 | fs/sysv/inode.c | if (*p) { |
p | 563 | fs/sysv/inode.c | *p = (sb->sv_convert ? to_coh_ulong(block) : block); |
p | 620 | fs/sysv/inode.c | static inline unsigned long read3byte (char * p) |
p | 622 | fs/sysv/inode.c | return (unsigned long)(*(unsigned short *)p) |
p | 623 | fs/sysv/inode.c | | (unsigned long)(*(unsigned char *)(p+2)) << 16; |
p | 626 | fs/sysv/inode.c | static inline void write3byte (char * p, unsigned long val) |
p | 628 | fs/sysv/inode.c | *(unsigned short *)p = (unsigned short) val; |
p | 629 | fs/sysv/inode.c | *(unsigned char *)(p+2) = val >> 16; |
p | 632 | fs/sysv/inode.c | static inline unsigned long coh_read3byte (char * p) |
p | 634 | fs/sysv/inode.c | return (unsigned long)(*(unsigned char *)p) << 16 |
p | 635 | fs/sysv/inode.c | | (unsigned long)(*(unsigned short *)(p+1)); |
p | 638 | fs/sysv/inode.c | static inline void coh_write3byte (char * p, unsigned long val) |
p | 640 | fs/sysv/inode.c | *(unsigned char *)p = val >> 16; |
p | 641 | 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 | 233 | fs/umsdos/inode.c | || inode->u.umsdos_i.u.dir_info.p != NULL)){ |
p | 237 | fs/umsdos/inode.c | ,inode->u.umsdos_i.u.dir_info.p)); |
p | 36 | fs/umsdos/namei.c | sleep_on(&dir->u.umsdos_i.u.dir_info.p); |
p | 47 | fs/umsdos/namei.c | sleep_on(&dir->u.umsdos_i.u.dir_info.p); |
p | 137 | fs/umsdos/namei.c | wake_up (&dir->u.umsdos_i.u.dir_info.p); |
p | 149 | fs/umsdos/namei.c | wake_up (&dir->u.umsdos_i.u.dir_info.p); |
p | 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 | 77 | ibcs/binfmt_elf.c | sp = (unsigned long *) (0xfffffffc & (unsigned long) p); |
p | 106 | ibcs/binfmt_elf.c | current->mm->arg_start = (unsigned long) p; |
p | 108 | ibcs/binfmt_elf.c | put_fs_long((unsigned long) p,argv++); |
p | 109 | ibcs/binfmt_elf.c | while (get_fs_byte(p++)) /* nothing */ ; |
p | 112 | ibcs/binfmt_elf.c | current->mm->arg_end = current->mm->env_start = (unsigned long) p; |
p | 114 | ibcs/binfmt_elf.c | put_fs_long((unsigned long) p,envp++); |
p | 115 | ibcs/binfmt_elf.c | while (get_fs_byte(p++)) /* nothing */ ; |
p | 118 | ibcs/binfmt_elf.c | current->mm->env_end = (unsigned long) p; |
p | 412 | ibcs/binfmt_elf.c | bprm->p = copy_strings(1,&passed_p,bprm->page,bprm->p,2); |
p | 416 | ibcs/binfmt_elf.c | if (!bprm->p) { |
p | 437 | ibcs/binfmt_elf.c | bprm->p += change_ldt(0, bprm->page); |
p | 438 | ibcs/binfmt_elf.c | current->mm->start_stack = bprm->p; |
p | 522 | ibcs/binfmt_elf.c | current->start_stack = p = elf_stack - 4; |
p | 524 | ibcs/binfmt_elf.c | bprm->p -= MAX_ARG_PAGES*PAGE_SIZE; |
p | 525 | ibcs/binfmt_elf.c | bprm->p = (unsigned long) |
p | 526 | ibcs/binfmt_elf.c | create_elf_tables((char *)bprm->p, |
p | 538 | ibcs/binfmt_elf.c | current->mm->start_stack = bprm->p; |
p | 557 | ibcs/binfmt_elf.c | regs->esp = bprm->p; /* stack pointer */ |
p | 124 | include/asm-generic/string.h | const char *p; |
p | 128 | include/asm-generic/string.h | for (p = s; *p != '\0'; ++p) |
p | 131 | include/asm-generic/string.h | if (*p == *a) |
p | 97 | include/asm-i386/bitops.h | unsigned long * p = ((unsigned long *) addr) + (offset >> 5); |
p | 110 | include/asm-i386/bitops.h | : "r" (~(*p >> bit))); |
p | 114 | include/asm-i386/bitops.h | p++; |
p | 119 | include/asm-i386/bitops.h | res = find_first_zero_bit (p, size - 32 * (p - (unsigned long *) addr)); |
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 | 368 | include/linux/sched.h | extern void sleep_on(struct wait_queue ** p); |
p | 369 | include/linux/sched.h | extern void interruptible_sleep_on(struct wait_queue ** p); |
p | 370 | include/linux/sched.h | extern void wake_up(struct wait_queue ** p); |
p | 371 | include/linux/sched.h | extern void wake_up_interruptible(struct wait_queue ** p); |
p | 374 | 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 | 141 | include/linux/tqueue.h | register struct tq_struct *p; |
p | 146 | include/linux/tqueue.h | p = &tq_last; |
p | 147 | include/linux/tqueue.h | __asm__ __volatile__("xchgl %0,%2" : "=r" (p) : |
p | 148 | include/linux/tqueue.h | "0" (p), "m" (*list) : "memory"); |
p | 149 | include/linux/tqueue.h | if(p == &tq_last) |
p | 153 | include/linux/tqueue.h | arg = p -> data; |
p | 154 | include/linux/tqueue.h | f = p -> routine; |
p | 155 | include/linux/tqueue.h | save_p = p -> next; |
p | 156 | include/linux/tqueue.h | p -> sync = 0; |
p | 158 | include/linux/tqueue.h | p = save_p; |
p | 159 | include/linux/tqueue.h | } while(p != &tq_last); |
p | 108 | include/linux/ultrasound.h | #define GUS_VOICEFREQ(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICEFREQ, \ |
p | 109 | include/linux/ultrasound.h | (p) & 0xffff, ((p) >> 16) & 0xffff) |
p | 118 | include/linux/ultrasound.h | #define GUS_VOICE_POS(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICE_POS, \ |
p | 119 | include/linux/ultrasound.h | (p) & 0xffff, ((p) >> 16) & 0xffff) |
p | 48 | include/linux/umsdos_fs_i.h | struct wait_queue *p; |
p | 118 | include/linux/umsdos_fs_i.h | struct wait_queue *p; |
p | 54 | kernel/dma.c | static __inline__ unsigned int mutex_atomic_swap(volatile unsigned int * p, unsigned int newval) |
p | 67 | kernel/dma.c | : /* inputs: newval, p */ "0" (semval), "m" (*p) |
p | 25 | kernel/exit.c | static int generate(unsigned long sig, struct task_struct * p) |
p | 28 | kernel/exit.c | struct sigaction * sa = sig + p->sigaction - 1; |
p | 31 | kernel/exit.c | if (p->flags & PF_PTRACED) { |
p | 32 | kernel/exit.c | p->signal |= mask; |
p | 42 | kernel/exit.c | p->signal |= mask; |
p | 46 | kernel/exit.c | int send_sig(unsigned long sig,struct task_struct * p,int priv) |
p | 48 | kernel/exit.c | if (!p || sig > 32) |
p | 50 | kernel/exit.c | if (!priv && ((sig != SIGCONT) || (current->session != p->session)) && |
p | 51 | kernel/exit.c | (current->euid != p->euid) && (current->uid != p->uid) && !suser()) |
p | 58 | kernel/exit.c | if (p->state == TASK_ZOMBIE) |
p | 61 | kernel/exit.c | if (p->state == TASK_STOPPED) |
p | 62 | kernel/exit.c | p->state = TASK_RUNNING; |
p | 63 | kernel/exit.c | p->exit_code = 0; |
p | 64 | kernel/exit.c | p->signal &= ~( (1<<(SIGSTOP-1)) | (1<<(SIGTSTP-1)) | |
p | 69 | kernel/exit.c | p->signal &= ~(1<<(SIGCONT-1)); |
p | 71 | kernel/exit.c | generate(sig,p); |
p | 83 | kernel/exit.c | void release(struct task_struct * p) |
p | 87 | kernel/exit.c | if (!p) |
p | 89 | kernel/exit.c | if (p == current) { |
p | 94 | kernel/exit.c | if (task[i] == p) { |
p | 96 | kernel/exit.c | REMOVE_LINKS(p); |
p | 97 | kernel/exit.c | if (STACK_MAGIC != *(unsigned long *)p->kernel_stack_page) |
p | 98 | kernel/exit.c | printk(KERN_ALERT "release: %s kernel stack corruption. Aiee\n", p->comm); |
p | 99 | kernel/exit.c | free_page(p->kernel_stack_page); |
p | 100 | kernel/exit.c | free_page((long) p); |
p | 111 | kernel/exit.c | int bad_task_ptr(struct task_struct *p) |
p | 115 | kernel/exit.c | if (!p) |
p | 118 | kernel/exit.c | if (task[i] == p) |
p | 206 | kernel/exit.c | struct task_struct *p; |
p | 210 | kernel/exit.c | for_each_task(p) { |
p | 211 | kernel/exit.c | if (p->session <= 0) |
p | 213 | kernel/exit.c | if (p->pgrp == pgrp) |
p | 214 | kernel/exit.c | return p->session; |
p | 215 | kernel/exit.c | if (p->pid == pgrp) |
p | 216 | kernel/exit.c | fallback = p->session; |
p | 227 | kernel/exit.c | struct task_struct *p; |
p | 233 | kernel/exit.c | for_each_task(p) { |
p | 234 | kernel/exit.c | if (p->pgrp == pgrp) { |
p | 235 | kernel/exit.c | if ((err = send_sig(sig,p,priv)) != 0) |
p | 251 | kernel/exit.c | struct task_struct *p; |
p | 257 | kernel/exit.c | for_each_task(p) { |
p | 258 | kernel/exit.c | if (p->session == sess && p->leader) { |
p | 259 | kernel/exit.c | if ((err = send_sig(sig,p,priv)) != 0) |
p | 270 | kernel/exit.c | struct task_struct *p; |
p | 274 | kernel/exit.c | for_each_task(p) { |
p | 275 | kernel/exit.c | if (p && p->pid == pid) |
p | 276 | kernel/exit.c | return send_sig(sig,p,priv); |
p | 292 | kernel/exit.c | struct task_struct * p; |
p | 293 | kernel/exit.c | for_each_task(p) { |
p | 294 | kernel/exit.c | if (p->pid > 1 && p != current) { |
p | 296 | kernel/exit.c | if ((err = send_sig(sig,p,0)) != -EPERM) |
p | 318 | kernel/exit.c | struct task_struct *p; |
p | 320 | kernel/exit.c | for_each_task(p) { |
p | 321 | kernel/exit.c | if ((p->pgrp != pgrp) || |
p | 322 | kernel/exit.c | (p->state == TASK_ZOMBIE) || |
p | 323 | kernel/exit.c | (p->p_pptr->pid == 1)) |
p | 325 | kernel/exit.c | if ((p->p_pptr->pgrp != pgrp) && |
p | 326 | kernel/exit.c | (p->p_pptr->session == p->session)) |
p | 334 | kernel/exit.c | struct task_struct * p; |
p | 336 | kernel/exit.c | for_each_task(p) { |
p | 337 | kernel/exit.c | if (p->pgrp != pgrp) |
p | 339 | kernel/exit.c | if (p->state == TASK_STOPPED) |
p | 347 | kernel/exit.c | struct task_struct * p; |
p | 349 | kernel/exit.c | for_each_task(p) { |
p | 350 | kernel/exit.c | if (p->p_opptr == father) |
p | 352 | kernel/exit.c | p->p_opptr = task[1]; |
p | 354 | kernel/exit.c | p->p_opptr = task[0]; |
p | 407 | kernel/exit.c | struct task_struct *p; |
p | 449 | kernel/exit.c | while ((p = current->p_cptr) != NULL) { |
p | 450 | kernel/exit.c | current->p_cptr = p->p_osptr; |
p | 451 | kernel/exit.c | p->p_ysptr = NULL; |
p | 452 | kernel/exit.c | p->flags &= ~(PF_PTRACED|PF_TRACESYS); |
p | 454 | kernel/exit.c | p->p_pptr = task[1]; |
p | 456 | kernel/exit.c | p->p_pptr = task[0]; |
p | 457 | kernel/exit.c | p->p_osptr = p->p_pptr->p_cptr; |
p | 458 | kernel/exit.c | p->p_osptr->p_ysptr = p; |
p | 459 | kernel/exit.c | p->p_pptr->p_cptr = p; |
p | 460 | kernel/exit.c | if (p->state == TASK_ZOMBIE) |
p | 461 | kernel/exit.c | notify_parent(p); |
p | 468 | kernel/exit.c | if ((p->pgrp != current->pgrp) && |
p | 469 | kernel/exit.c | (p->session == current->session) && |
p | 470 | kernel/exit.c | is_orphaned_pgrp(p->pgrp) && |
p | 471 | kernel/exit.c | has_stopped_jobs(p->pgrp)) { |
p | 472 | kernel/exit.c | kill_pg(p->pgrp,SIGHUP,1); |
p | 473 | kernel/exit.c | kill_pg(p->pgrp,SIGCONT,1); |
p | 516 | kernel/exit.c | struct task_struct *p; |
p | 526 | kernel/exit.c | for (p = current->p_cptr ; p ; p = p->p_osptr) { |
p | 528 | kernel/exit.c | if (p->pid != pid) |
p | 531 | kernel/exit.c | if (p->pgrp != current->pgrp) |
p | 534 | kernel/exit.c | if (p->pgrp != -pid) |
p | 538 | kernel/exit.c | if ((p->exit_signal != SIGCHLD) ^ ((options & __WCLONE) != 0)) |
p | 541 | kernel/exit.c | switch (p->state) { |
p | 543 | kernel/exit.c | if (!p->exit_code) |
p | 545 | kernel/exit.c | if (!(options & WUNTRACED) && !(p->flags & PF_PTRACED)) |
p | 548 | kernel/exit.c | put_fs_long((p->exit_code << 8) | 0x7f, |
p | 550 | kernel/exit.c | p->exit_code = 0; |
p | 552 | kernel/exit.c | getrusage(p, RUSAGE_BOTH, ru); |
p | 553 | kernel/exit.c | retval = p->pid; |
p | 556 | kernel/exit.c | current->cutime += p->utime + p->cutime; |
p | 557 | kernel/exit.c | current->cstime += p->stime + p->cstime; |
p | 558 | kernel/exit.c | current->mm->cmin_flt += p->mm->min_flt + p->mm->cmin_flt; |
p | 559 | kernel/exit.c | current->mm->cmaj_flt += p->mm->maj_flt + p->mm->cmaj_flt; |
p | 561 | kernel/exit.c | getrusage(p, RUSAGE_BOTH, ru); |
p | 562 | kernel/exit.c | flag = p->pid; |
p | 564 | kernel/exit.c | put_fs_long(p->exit_code, stat_addr); |
p | 565 | kernel/exit.c | if (p->p_opptr != p->p_pptr) { |
p | 566 | kernel/exit.c | REMOVE_LINKS(p); |
p | 567 | kernel/exit.c | p->p_pptr = p->p_opptr; |
p | 568 | kernel/exit.c | SET_LINKS(p); |
p | 569 | kernel/exit.c | notify_parent(p); |
p | 571 | 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 | 171 | kernel/fork.c | struct task_struct *p; |
p | 175 | kernel/fork.c | if(!(p = (struct task_struct*)__get_free_page(GFP_KERNEL))) |
p | 180 | kernel/fork.c | task[nr] = p; |
p | 181 | kernel/fork.c | *p = *current; |
p | 183 | kernel/fork.c | if (p->exec_domain && p->exec_domain->use_count) |
p | 184 | kernel/fork.c | (*p->exec_domain->use_count)++; |
p | 185 | kernel/fork.c | if (p->binfmt && p->binfmt->use_count) |
p | 186 | kernel/fork.c | (*p->binfmt->use_count)++; |
p | 188 | kernel/fork.c | p->did_exec = 0; |
p | 189 | kernel/fork.c | p->kernel_stack_page = 0; |
p | 190 | kernel/fork.c | p->state = TASK_UNINTERRUPTIBLE; |
p | 191 | kernel/fork.c | p->flags &= ~(PF_PTRACED|PF_TRACESYS); |
p | 192 | kernel/fork.c | p->pid = last_pid; |
p | 193 | kernel/fork.c | p->p_pptr = p->p_opptr = current; |
p | 194 | kernel/fork.c | p->p_cptr = NULL; |
p | 195 | kernel/fork.c | SET_LINKS(p); |
p | 196 | kernel/fork.c | p->signal = 0; |
p | 197 | kernel/fork.c | p->it_real_value = p->it_virt_value = p->it_prof_value = 0; |
p | 198 | kernel/fork.c | p->it_real_incr = p->it_virt_incr = p->it_prof_incr = 0; |
p | 199 | kernel/fork.c | p->leader = 0; /* process leadership doesn't inherit */ |
p | 200 | kernel/fork.c | p->utime = p->stime = 0; |
p | 201 | kernel/fork.c | p->cutime = p->cstime = 0; |
p | 202 | kernel/fork.c | p->start_time = jiffies; |
p | 206 | kernel/fork.c | if (!(p->kernel_stack_page = get_free_page(GFP_KERNEL))) |
p | 208 | kernel/fork.c | *(unsigned long *)p->kernel_stack_page = STACK_MAGIC; |
p | 209 | kernel/fork.c | p->tss.es = KERNEL_DS; |
p | 210 | kernel/fork.c | p->tss.cs = KERNEL_CS; |
p | 211 | kernel/fork.c | p->tss.ss = KERNEL_DS; |
p | 212 | kernel/fork.c | p->tss.ds = KERNEL_DS; |
p | 213 | kernel/fork.c | p->tss.fs = USER_DS; |
p | 214 | kernel/fork.c | p->tss.gs = KERNEL_DS; |
p | 215 | kernel/fork.c | p->tss.ss0 = KERNEL_DS; |
p | 216 | kernel/fork.c | p->tss.esp0 = p->kernel_stack_page + PAGE_SIZE; |
p | 217 | kernel/fork.c | p->tss.tr = _TSS(nr); |
p | 218 | kernel/fork.c | childregs = ((struct pt_regs *) (p->kernel_stack_page + PAGE_SIZE)) - 1; |
p | 219 | kernel/fork.c | p->tss.esp = (unsigned long) childregs; |
p | 220 | kernel/fork.c | p->tss.eip = (unsigned long) ret_from_sys_call; |
p | 223 | kernel/fork.c | p->tss.back_link = 0; |
p | 224 | kernel/fork.c | p->tss.eflags = regs.eflags & 0xffffcfff; /* iopl is always 0 for a new process */ |
p | 232 | kernel/fork.c | p->exit_signal = clone_flags & CSIGNAL; |
p | 233 | kernel/fork.c | p->tss.ldt = _LDT(nr); |
p | 234 | kernel/fork.c | if (p->ldt) { |
p | 235 | kernel/fork.c | p->ldt = (struct desc_struct*) vmalloc(LDT_ENTRIES*LDT_ENTRY_SIZE); |
p | 236 | kernel/fork.c | if (p->ldt != NULL) |
p | 237 | kernel/fork.c | memcpy(p->ldt, current->ldt, LDT_ENTRIES*LDT_ENTRY_SIZE); |
p | 239 | kernel/fork.c | p->tss.bitmap = offsetof(struct tss_struct,io_bitmap); |
p | 241 | kernel/fork.c | p->tss.io_bitmap[i] = ~0; |
p | 243 | kernel/fork.c | __asm__("clts ; fnsave %0 ; frstor %0":"=m" (p->tss.i387)); |
p | 244 | kernel/fork.c | if (copy_mm(clone_flags, p)) |
p | 246 | kernel/fork.c | copy_files(clone_flags, p); |
p | 247 | kernel/fork.c | copy_fs(clone_flags, p); |
p | 248 | kernel/fork.c | set_tss_desc(gdt+(nr<<1)+FIRST_TSS_ENTRY,&(p->tss)); |
p | 249 | kernel/fork.c | if (p->ldt) |
p | 250 | kernel/fork.c | set_ldt_desc(gdt+(nr<<1)+FIRST_LDT_ENTRY,p->ldt, 512); |
p | 254 | kernel/fork.c | p->counter = current->counter >> 1; |
p | 255 | kernel/fork.c | p->state = TASK_RUNNING; /* do this last, just in case */ |
p | 256 | kernel/fork.c | return p->pid; |
p | 259 | kernel/fork.c | REMOVE_LINKS(p); |
p | 260 | kernel/fork.c | free_page(p->kernel_stack_page); |
p | 262 | kernel/fork.c | free_page((long) p); |
p | 21 | kernel/info.c | struct task_struct **p; |
p | 34 | kernel/info.c | for (p = &LAST_TASK; p > &FIRST_TASK; p--) |
p | 35 | kernel/info.c | if (*p) val.procs++; |
p | 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 | 145 | kernel/printk.c | char *msg, *p, *buf_end; |
p | 155 | kernel/printk.c | for (p = buf + 3; p < buf_end; p++) { |
p | 156 | kernel/printk.c | msg = p; |
p | 159 | kernel/printk.c | p[0] != '<' || |
p | 160 | kernel/printk.c | p[1] < '0' || |
p | 161 | kernel/printk.c | p[1] > '7' || |
p | 162 | kernel/printk.c | p[2] != '>' |
p | 164 | kernel/printk.c | p -= 3; |
p | 165 | kernel/printk.c | p[0] = '<'; |
p | 166 | kernel/printk.c | p[1] = DEFAULT_MESSAGE_LOGLEVEL - 1 + '0'; |
p | 167 | kernel/printk.c | p[2] = '>'; |
p | 170 | kernel/printk.c | msg_level = p[1] - '0'; |
p | 172 | kernel/printk.c | for (; p < buf_end; p++) { |
p | 173 | kernel/printk.c | log_buf[(log_start+log_size) & (LOG_BUF_LEN-1)] = *p; |
p | 179 | kernel/printk.c | if (*p == '\n') |
p | 183 | kernel/printk.c | char tmp = p[1]; |
p | 184 | kernel/printk.c | p[1] = '\0'; |
p | 186 | kernel/printk.c | p[1] = tmp; |
p | 188 | kernel/printk.c | if (*p == '\n') |
p | 205 | kernel/printk.c | int p = log_start; |
p | 213 | kernel/printk.c | buf[j++] = log_buf[p]; |
p | 214 | kernel/printk.c | p++; p &= LOG_BUF_LEN-1; |
p | 171 | kernel/sched.c | struct task_struct * p; |
p | 187 | kernel/sched.c | p = &init_task; |
p | 189 | kernel/sched.c | if ((p = p->next_task) == &init_task) |
p | 191 | kernel/sched.c | if (ticks && p->it_real_value) { |
p | 192 | kernel/sched.c | if (p->it_real_value <= ticks) { |
p | 193 | kernel/sched.c | send_sig(SIGALRM, p, 1); |
p | 194 | kernel/sched.c | if (!p->it_real_incr) { |
p | 195 | kernel/sched.c | p->it_real_value = 0; |
p | 199 | kernel/sched.c | p->it_real_value += p->it_real_incr; |
p | 200 | kernel/sched.c | } while (p->it_real_value <= ticks); |
p | 202 | kernel/sched.c | p->it_real_value -= ticks; |
p | 203 | kernel/sched.c | if (p->it_real_value < itimer_next) |
p | 204 | kernel/sched.c | itimer_next = p->it_real_value; |
p | 207 | kernel/sched.c | if (p->state != TASK_INTERRUPTIBLE) |
p | 209 | kernel/sched.c | if (p->signal & ~p->blocked) { |
p | 210 | kernel/sched.c | p->state = TASK_RUNNING; |
p | 213 | kernel/sched.c | if (p->timeout && p->timeout <= jiffies) { |
p | 214 | kernel/sched.c | p->timeout = 0; |
p | 215 | kernel/sched.c | p->state = TASK_RUNNING; |
p | 232 | kernel/sched.c | next = p = &init_task; |
p | 234 | kernel/sched.c | if ((p = p->next_task) == &init_task) |
p | 236 | kernel/sched.c | if (p->state == TASK_RUNNING && p->counter > c) |
p | 237 | kernel/sched.c | c = p->counter, next = p; |
p | 241 | kernel/sched.c | for_each_task(p) |
p | 242 | kernel/sched.c | p->counter = (p->counter >> 1) + p->priority; |
p | 276 | kernel/sched.c | struct task_struct * p; |
p | 281 | kernel/sched.c | if ((p = tmp->task) != NULL) { |
p | 282 | kernel/sched.c | if ((p->state == TASK_UNINTERRUPTIBLE) || |
p | 283 | kernel/sched.c | (p->state == TASK_INTERRUPTIBLE)) { |
p | 284 | kernel/sched.c | p->state = TASK_RUNNING; |
p | 285 | kernel/sched.c | if (p->counter > current->counter + 3) |
p | 304 | kernel/sched.c | struct task_struct * p; |
p | 309 | kernel/sched.c | if ((p = tmp->task) != NULL) { |
p | 310 | kernel/sched.c | if (p->state == TASK_INTERRUPTIBLE) { |
p | 311 | kernel/sched.c | p->state = TASK_RUNNING; |
p | 312 | kernel/sched.c | if (p->counter > current->counter + 3) |
p | 341 | kernel/sched.c | static inline void __sleep_on(struct wait_queue **p, int state) |
p | 346 | kernel/sched.c | if (!p) |
p | 351 | kernel/sched.c | add_wait_queue(p, &wait); |
p | 355 | kernel/sched.c | remove_wait_queue(p, &wait); |
p | 359 | kernel/sched.c | void interruptible_sleep_on(struct wait_queue **p) |
p | 361 | kernel/sched.c | __sleep_on(p,TASK_INTERRUPTIBLE); |
p | 364 | kernel/sched.c | void sleep_on(struct wait_queue **p) |
p | 366 | kernel/sched.c | __sleep_on(p,TASK_UNINTERRUPTIBLE); |
p | 379 | kernel/sched.c | struct timer_list *p; |
p | 388 | kernel/sched.c | p = &timer_head; |
p | 393 | kernel/sched.c | p = p->next; |
p | 394 | kernel/sched.c | } while (timer->expires > p->expires); |
p | 395 | kernel/sched.c | timer->next = p; |
p | 396 | kernel/sched.c | timer->prev = p->prev; |
p | 397 | kernel/sched.c | p->prev = timer; |
p | 406 | kernel/sched.c | struct timer_list * p; |
p | 408 | kernel/sched.c | p = &timer_head; |
p | 411 | kernel/sched.c | while ((p = p->next) != &timer_head) { |
p | 412 | kernel/sched.c | if (p == timer) { |
p | 458 | kernel/sched.c | struct task_struct **p; |
p | 461 | kernel/sched.c | for(p = &LAST_TASK; p > &FIRST_TASK; --p) |
p | 462 | kernel/sched.c | if (*p && ((*p)->state == TASK_RUNNING || |
p | 463 | kernel/sched.c | (*p)->state == TASK_UNINTERRUPTIBLE || |
p | 464 | kernel/sched.c | (*p)->state == TASK_SWAPPING)) |
p | 774 | kernel/sched.c | static void show_task(int nr,struct task_struct * p) |
p | 779 | kernel/sched.c | printk("%-8s %3d ", p->comm, (p == current) ? -nr : nr); |
p | 780 | kernel/sched.c | if (((unsigned) p->state) < sizeof(stat_nam)/sizeof(char *)) |
p | 781 | kernel/sched.c | printk(stat_nam[p->state]); |
p | 784 | kernel/sched.c | if (p == current) |
p | 787 | kernel/sched.c | printk(" %08lX ", ((unsigned long *)p->tss.esp)[3]); |
p | 789 | kernel/sched.c | if (((unsigned long *)p->kernel_stack_page)[free]) |
p | 792 | kernel/sched.c | printk("%5lu %5d %6d ", free << 2, p->pid, p->p_pptr->pid); |
p | 793 | kernel/sched.c | if (p->p_cptr) |
p | 794 | kernel/sched.c | printk("%5d ", p->p_cptr->pid); |
p | 797 | kernel/sched.c | if (p->p_ysptr) |
p | 798 | kernel/sched.c | printk("%7d", p->p_ysptr->pid); |
p | 801 | kernel/sched.c | if (p->p_osptr) |
p | 802 | kernel/sched.c | printk(" %5d\n", p->p_osptr->pid); |
p | 821 | kernel/sched.c | struct desc_struct * p; |
p | 830 | kernel/sched.c | p = gdt+2+FIRST_TSS_ENTRY; |
p | 833 | kernel/sched.c | p->a=p->b=0; |
p | 834 | kernel/sched.c | p++; |
p | 835 | kernel/sched.c | p->a=p->b=0; |
p | 836 | 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 | 466 | kernel/sys.c | struct task_struct * p; |
p | 474 | kernel/sys.c | for_each_task(p) { |
p | 475 | kernel/sys.c | if (p->pid == pid) |
p | 481 | kernel/sys.c | if (p->p_pptr == current || p->p_opptr == current) { |
p | 482 | kernel/sys.c | if (p->session != current->session) |
p | 484 | kernel/sys.c | if (p->did_exec) |
p | 486 | kernel/sys.c | } else if (p != current) |
p | 488 | kernel/sys.c | if (p->leader) |
p | 501 | kernel/sys.c | p->pgrp = pgid; |
p | 507 | kernel/sys.c | struct task_struct * p; |
p | 511 | kernel/sys.c | for_each_task(p) { |
p | 512 | kernel/sys.c | if (p->pid == pid) |
p | 513 | kernel/sys.c | return p->pgrp; |
p | 725 | kernel/sys.c | int getrusage(struct task_struct *p, int who, struct rusage *ru) |
p | 736 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(p->utime); |
p | 737 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(p->utime); |
p | 738 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(p->stime); |
p | 739 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(p->stime); |
p | 740 | kernel/sys.c | r.ru_minflt = p->mm->min_flt; |
p | 741 | kernel/sys.c | r.ru_majflt = p->mm->maj_flt; |
p | 744 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(p->cutime); |
p | 745 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(p->cutime); |
p | 746 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(p->cstime); |
p | 747 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(p->cstime); |
p | 748 | kernel/sys.c | r.ru_minflt = p->mm->cmin_flt; |
p | 749 | kernel/sys.c | r.ru_majflt = p->mm->cmaj_flt; |
p | 752 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(p->utime + p->cutime); |
p | 753 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(p->utime + p->cutime); |
p | 754 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(p->stime + p->cstime); |
p | 755 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(p->stime + p->cstime); |
p | 756 | kernel/sys.c | r.ru_minflt = p->mm->min_flt + p->mm->cmin_flt; |
p | 757 | 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 | 808 | mm/memory.c | struct task_struct ** p; |
p | 823 | mm/memory.c | for (p = &LAST_TASK ; p > &FIRST_TASK ; --p) { |
p | 825 | mm/memory.c | if (!*p) |
p | 827 | mm/memory.c | if (area->vm_task == *p) |
p | 831 | mm/memory.c | for (mpnt = (*p)->mm->mmap; mpnt; mpnt = mpnt->vm_next) { |
p | 861 | mm/memory.c | unsigned long *p; |
p | 863 | mm/memory.c | p = PAGE_DIR_OFFSET(tsk->tss.cr3,address); |
p | 864 | mm/memory.c | if (PAGE_PRESENT & *p) |
p | 865 | mm/memory.c | return *p; |
p | 866 | mm/memory.c | if (*p) { |
p | 868 | mm/memory.c | *p = 0; |
p | 871 | mm/memory.c | p = PAGE_DIR_OFFSET(tsk->tss.cr3,address); |
p | 872 | mm/memory.c | if (PAGE_PRESENT & *p) { |
p | 874 | mm/memory.c | return *p; |
p | 876 | mm/memory.c | if (*p) { |
p | 878 | mm/memory.c | *p = 0; |
p | 881 | mm/memory.c | *p = page | PAGE_TABLE; |
p | 882 | mm/memory.c | return *p; |
p | 885 | mm/memory.c | *p = BAD_PAGETABLE | PAGE_TABLE; |
p | 1297 | mm/memory.c | int i, *p; |
p | 1303 | mm/memory.c | p = nr; |
p | 1305 | mm/memory.c | *p = bmap(inode,block); |
p | 1308 | mm/memory.c | p++; |
p | 370 | mm/mmap.c | struct vm_area_struct **p, *mpnt; |
p | 372 | mm/mmap.c | p = &t->mm->mmap; |
p | 373 | mm/mmap.c | while ((mpnt = *p) != NULL) { |
p | 378 | mm/mmap.c | p = &mpnt->vm_next; |
p | 381 | mm/mmap.c | *p = vmp; |
p | 72 | mm/swap.c | struct swap_info_struct * p = &swap_info[SWP_TYPE(entry)]; |
p | 77 | mm/swap.c | if ((p->flags & SWP_WRITEOK) == SWP_WRITEOK) { |
p | 111 | mm/swap.c | struct swap_info_struct * p; |
p | 118 | mm/swap.c | p = &swap_info[type]; |
p | 120 | mm/swap.c | if (offset >= p->max) { |
p | 124 | mm/swap.c | if (!(p->flags & SWP_USED)) { |
p | 128 | mm/swap.c | while (set_bit(offset,p->swap_lockmap)) |
p | 134 | mm/swap.c | if (p->swap_device) { |
p | 135 | mm/swap.c | ll_rw_page(rw,p->swap_device,offset,buf); |
p | 136 | mm/swap.c | } else if (p->swap_file) { |
p | 137 | mm/swap.c | struct inode *swapf = p->swap_file; |
p | 177 | mm/swap.c | if (offset && !clear_bit(offset,p->swap_lockmap)) |
p | 184 | mm/swap.c | struct swap_info_struct * p; |
p | 187 | mm/swap.c | p = swap_info; |
p | 188 | mm/swap.c | for (type = 0 ; type < nr_swapfiles ; type++,p++) { |
p | 189 | mm/swap.c | if ((p->flags & SWP_WRITEOK) != SWP_WRITEOK) |
p | 191 | mm/swap.c | for (offset = p->lowest_bit; offset <= p->highest_bit ; offset++) { |
p | 192 | mm/swap.c | if (p->swap_map[offset]) |
p | 194 | mm/swap.c | p->swap_map[offset] = 1; |
p | 196 | mm/swap.c | if (offset == p->highest_bit) |
p | 197 | mm/swap.c | p->highest_bit--; |
p | 198 | mm/swap.c | p->lowest_bit = offset; |
p | 207 | mm/swap.c | struct swap_info_struct * p; |
p | 220 | mm/swap.c | p = type + swap_info; |
p | 221 | mm/swap.c | if (offset >= p->max) { |
p | 225 | mm/swap.c | if (!p->swap_map[offset]) { |
p | 229 | mm/swap.c | p->swap_map[offset]++; |
p | 235 | mm/swap.c | struct swap_info_struct * p; |
p | 247 | mm/swap.c | p = & swap_info[type]; |
p | 249 | mm/swap.c | if (offset >= p->max) { |
p | 253 | mm/swap.c | if (!(p->flags & SWP_USED)) { |
p | 257 | mm/swap.c | while (set_bit(offset,p->swap_lockmap)) |
p | 259 | mm/swap.c | if (offset < p->lowest_bit) |
p | 260 | mm/swap.c | p->lowest_bit = offset; |
p | 261 | mm/swap.c | if (offset > p->highest_bit) |
p | 262 | mm/swap.c | p->highest_bit = offset; |
p | 263 | mm/swap.c | if (!p->swap_map[offset]) |
p | 266 | mm/swap.c | if (!--p->swap_map[offset]) |
p | 268 | mm/swap.c | if (!clear_bit(offset,p->swap_lockmap)) |
p | 365 | mm/swap.c | static int swap_out_process(struct task_struct * p) |
p | 375 | mm/swap.c | address = p->mm->swap_address; |
p | 376 | mm/swap.c | pgdir = (address >> PGDIR_SHIFT) + (unsigned long *) p->tss.cr3; |
p | 388 | mm/swap.c | p->comm, address + offset, pg_table); |
p | 403 | mm/swap.c | p->mm->rss--; |
p | 405 | mm/swap.c | p->mm->swap_address = address + offset + PAGE_SIZE; |
p | 409 | mm/swap.c | p->mm->rss--; |
p | 418 | mm/swap.c | p->mm->swap_address = 0; |
p | 427 | mm/swap.c | struct task_struct *p; |
p | 445 | mm/swap.c | p = task[swap_task]; |
p | 446 | mm/swap.c | if (p && p->mm->swappable && p->mm->rss) |
p | 455 | mm/swap.c | if (!p->mm->swap_cnt) { |
p | 456 | mm/swap.c | p->mm->dec_flt = (p->mm->dec_flt * 3) / 4 + p->mm->maj_flt - p->mm->old_maj_flt; |
p | 457 | mm/swap.c | p->mm->old_maj_flt = p->mm->maj_flt; |
p | 459 | mm/swap.c | if (p->mm->dec_flt >= SWAP_RATIO / SWAP_MIN) { |
p | 460 | mm/swap.c | p->mm->dec_flt = SWAP_RATIO / SWAP_MIN; |
p | 461 | mm/swap.c | p->mm->swap_cnt = SWAP_MIN; |
p | 462 | mm/swap.c | } else if (p->mm->dec_flt <= SWAP_RATIO / SWAP_MAX) |
p | 463 | mm/swap.c | p->mm->swap_cnt = SWAP_MAX; |
p | 465 | mm/swap.c | p->mm->swap_cnt = SWAP_RATIO / p->mm->dec_flt; |
p | 467 | mm/swap.c | if (swap_out_process(p)) { |
p | 468 | mm/swap.c | if ((--p->mm->swap_cnt) == 0) |
p | 679 | mm/swap.c | struct task_struct *p; |
p | 689 | mm/swap.c | p = task[nr]; |
p | 690 | mm/swap.c | if (!p) |
p | 693 | mm/swap.c | ppage = pgt + ((unsigned long *) p->tss.cr3); |
p | 725 | mm/swap.c | ++p->mm->rss; |
p | 739 | mm/swap.c | struct swap_info_struct * p; |
p | 749 | mm/swap.c | p = swap_info; |
p | 750 | mm/swap.c | for (type = 0 ; type < nr_swapfiles ; type++,p++) { |
p | 751 | mm/swap.c | if ((p->flags & SWP_WRITEOK) != SWP_WRITEOK) |
p | 753 | mm/swap.c | if (p->swap_file) { |
p | 754 | mm/swap.c | if (p->swap_file == inode) |
p | 759 | mm/swap.c | if (p->swap_device == inode->i_rdev) |
p | 766 | mm/swap.c | p->flags = SWP_USED; |
p | 769 | mm/swap.c | p->flags = SWP_WRITEOK; |
p | 772 | mm/swap.c | nr_swap_pages -= p->pages; |
p | 773 | mm/swap.c | iput(p->swap_file); |
p | 774 | mm/swap.c | p->swap_file = NULL; |
p | 775 | mm/swap.c | p->swap_device = 0; |
p | 776 | mm/swap.c | vfree(p->swap_map); |
p | 777 | mm/swap.c | p->swap_map = NULL; |
p | 778 | mm/swap.c | free_page((long) p->swap_lockmap); |
p | 779 | mm/swap.c | p->swap_lockmap = NULL; |
p | 780 | mm/swap.c | p->flags = 0; |
p | 791 | mm/swap.c | struct swap_info_struct * p; |
p | 799 | mm/swap.c | p = swap_info; |
p | 800 | mm/swap.c | for (type = 0 ; type < nr_swapfiles ; type++,p++) |
p | 801 | mm/swap.c | if (!(p->flags & SWP_USED)) |
p | 807 | mm/swap.c | p->flags = SWP_USED; |
p | 808 | mm/swap.c | p->swap_file = NULL; |
p | 809 | mm/swap.c | p->swap_device = 0; |
p | 810 | mm/swap.c | p->swap_map = NULL; |
p | 811 | mm/swap.c | p->swap_lockmap = NULL; |
p | 812 | mm/swap.c | p->lowest_bit = 0; |
p | 813 | mm/swap.c | p->highest_bit = 0; |
p | 814 | mm/swap.c | p->max = 1; |
p | 818 | mm/swap.c | p->swap_file = swap_inode; |
p | 824 | mm/swap.c | p->swap_device = swap_inode->i_rdev; |
p | 825 | mm/swap.c | p->swap_file = NULL; |
p | 828 | mm/swap.c | if (!p->swap_device) |
p | 834 | mm/swap.c | if (p->swap_device == swap_info[i].swap_device) |
p | 839 | mm/swap.c | p->swap_lockmap = (unsigned char *) get_free_page(GFP_USER); |
p | 840 | mm/swap.c | if (!p->swap_lockmap) { |
p | 845 | mm/swap.c | read_swap_page(SWP_ENTRY(type,0), (char *) p->swap_lockmap); |
p | 846 | mm/swap.c | if (memcmp("SWAP-SPACE",p->swap_lockmap+4086,10)) { |
p | 851 | mm/swap.c | memset(p->swap_lockmap+PAGE_SIZE-10,0,10); |
p | 853 | mm/swap.c | p->lowest_bit = 0; |
p | 854 | mm/swap.c | p->highest_bit = 0; |
p | 856 | mm/swap.c | if (test_bit(i,p->swap_lockmap)) { |
p | 857 | mm/swap.c | if (!p->lowest_bit) |
p | 858 | mm/swap.c | p->lowest_bit = i; |
p | 859 | mm/swap.c | p->highest_bit = i; |
p | 860 | mm/swap.c | p->max = i+1; |
p | 869 | mm/swap.c | p->swap_map = (unsigned char *) vmalloc(p->max); |
p | 870 | mm/swap.c | if (!p->swap_map) { |
p | 874 | mm/swap.c | for (i = 1 ; i < p->max ; i++) { |
p | 875 | mm/swap.c | if (test_bit(i,p->swap_lockmap)) |
p | 876 | mm/swap.c | p->swap_map[i] = 0; |
p | 878 | mm/swap.c | p->swap_map[i] = 0x80; |
p | 880 | mm/swap.c | p->swap_map[0] = 0x80; |
p | 881 | mm/swap.c | memset(p->swap_lockmap,0,PAGE_SIZE); |
p | 882 | mm/swap.c | p->flags = SWP_WRITEOK; |
p | 883 | mm/swap.c | p->pages = j; |
p | 888 | mm/swap.c | free_page((long) p->swap_lockmap); |
p | 889 | mm/swap.c | vfree(p->swap_map); |
p | 890 | mm/swap.c | iput(p->swap_file); |
p | 891 | mm/swap.c | p->swap_device = 0; |
p | 892 | mm/swap.c | p->swap_file = NULL; |
p | 893 | mm/swap.c | p->swap_map = NULL; |
p | 894 | mm/swap.c | p->swap_lockmap = NULL; |
p | 895 | mm/swap.c | p->flags = 0; |
p | 930 | mm/swap.c | unsigned short * p; |
p | 936 | mm/swap.c | p = mem_map + MAP_NR(end_mem); |
p | 937 | mm/swap.c | start_mem = (unsigned long) p; |
p | 938 | mm/swap.c | while (p > mem_map) |
p | 939 | 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 | 1317 | net/inet/af_inet.c | struct inet_protocol *p; |
p | 1343 | net/inet/af_inet.c | for(p = inet_protocol_base; p != NULL;) |
p | 1345 | net/inet/af_inet.c | struct inet_protocol *tmp = (struct inet_protocol *) p->next; |
p | 1346 | net/inet/af_inet.c | inet_add_protocol(p); |
p | 1347 | net/inet/af_inet.c | printk("%s%s",p->name,tmp?", ":"\n"); |
p | 1348 | net/inet/af_inet.c | p = tmp; |
p | 240 | net/inet/packet.c | struct packet_type *p; |
p | 242 | net/inet/packet.c | p = (struct packet_type *) kmalloc(sizeof(*p), GFP_KERNEL); |
p | 243 | net/inet/packet.c | if (p == NULL) |
p | 246 | net/inet/packet.c | p->func = packet_rcv; |
p | 247 | net/inet/packet.c | p->type = sk->num; |
p | 248 | net/inet/packet.c | p->data = (void *)sk; |
p | 249 | net/inet/packet.c | dev_add_pack(p); |
p | 255 | 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 | 232 | net/inet/tcp.c | struct sk_buff *p=skb_peek(&s->receive_queue); |
p | 233 | net/inet/tcp.c | if(p==NULL) |
p | 237 | net/inet/tcp.c | if(p->sk->state>=TCP_ESTABLISHED) |
p | 238 | net/inet/tcp.c | return p; |
p | 239 | net/inet/tcp.c | p=p->next; |
p | 241 | net/inet/tcp.c | while(p!=skb_peek(&s->receive_queue)); |
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]); |