tag | line | file | source code |
ip | 347 | arch/i386/kernel/vm86.c | unsigned long ip, sp; |
ip | 352 | arch/i386/kernel/vm86.c | ip = IP(regs); |
ip | 354 | arch/i386/kernel/vm86.c | switch (popb(csp, ip)) { |
ip | 358 | arch/i386/kernel/vm86.c | switch (popb(csp, ip)) { |
ip | 400 | arch/i386/kernel/vm86.c | do_int(regs, popb(csp, ip), ssp, sp); |
ip | 602 | arch/i386/math-emu/fpu_entry.c | unsigned char *ip = *fpu_eip; |
ip | 608 | arch/i386/math-emu/fpu_entry.c | byte = get_fs_byte(ip); |
ip | 651 | arch/i386/math-emu/fpu_entry.c | ip++; |
ip | 654 | arch/i386/math-emu/fpu_entry.c | byte = get_fs_byte(ip); |
ip | 664 | arch/i386/math-emu/fpu_entry.c | *fpu_eip = ip; |
ip | 617 | drivers/block/aztcd.c | static int aztcd_ioctl(struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg) |
ip | 632 | drivers/block/aztcd.c | if (!ip) RETURNM("aztcd_ioctl 1",-EINVAL); |
ip | 1444 | drivers/block/aztcd.c | int aztcd_open(struct inode *ip, struct file *fp) |
ip | 541 | drivers/block/cm206.c | static int cm206_open(struct inode *ip, struct file *fp) |
ip | 578 | drivers/block/cm206.c | static void cm206_release(struct inode *ip, struct file *fp) |
ip | 588 | drivers/block/cm206.c | sync_dev(ip -> i_rdev); /* These two lines are stolen */ |
ip | 589 | drivers/block/cm206.c | invalidate_buffers(ip -> i_rdev); |
ip | 210 | drivers/block/gscd.c | static int gscd_ioctl (struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg) |
ip | 370 | drivers/block/gscd.c | static int gscd_open (struct inode *ip, struct file *fp) |
ip | 2483 | drivers/block/ide-cd.c | int ide_cdrom_open (struct inode *ip, struct file *fp, ide_drive_t *drive) |
ip | 293 | drivers/block/mcd.c | mcd_ioctl(struct inode *ip, struct file *fp, unsigned int cmd, |
ip | 306 | drivers/block/mcd.c | if (!ip) |
ip | 1102 | drivers/block/mcd.c | mcd_open(struct inode *ip, struct file *fp) |
ip | 286 | drivers/block/mcdx.c | struct inode* ip, struct file* fp, |
ip | 289 | drivers/block/mcdx.c | struct s_drive_stuff *stuffp = mcdx_stuffp[MINOR(ip->i_rdev)]; |
ip | 292 | drivers/block/mcdx.c | if (!ip) return -EINVAL; |
ip | 614 | drivers/block/mcdx.c | mcdx_open(struct inode *ip, struct file *fp) |
ip | 619 | drivers/block/mcdx.c | stuffp = mcdx_stuffp[MINOR(ip->i_rdev)]; |
ip | 748 | drivers/block/mcdx.c | mcdx_close(struct inode *ip, struct file *fp) |
ip | 754 | drivers/block/mcdx.c | stuffp = mcdx_stuffp[MINOR(ip->i_rdev)]; |
ip | 757 | drivers/block/mcdx.c | sync_dev(ip->i_rdev); /* needed for r/o device? */ |
ip | 760 | drivers/block/mcdx.c | invalidate_buffers(ip->i_rdev); |
ip | 1356 | drivers/block/mcdx.c | static char* port(int *ip) { return (char*) ip[0]; } |
ip | 1357 | drivers/block/mcdx.c | static int irq(int *ip) { return ip[1]; } |
ip | 1045 | drivers/block/optcd.c | static int opt_ioctl(struct inode *ip, struct file *fp, |
ip | 1052 | drivers/block/optcd.c | if (!ip) |
ip | 1302 | drivers/block/optcd.c | static int opt_open(struct inode *ip, struct file *fp) { |
ip | 1335 | drivers/block/optcd.c | static void opt_release(struct inode *ip, struct file *fp) { |
ip | 1339 | drivers/block/optcd.c | ip, ip -> i_rdev, fp); |
ip | 1343 | drivers/block/optcd.c | sync_dev(ip -> i_rdev); |
ip | 1344 | drivers/block/optcd.c | invalidate_buffers(ip -> i_rdev); |
ip | 4822 | drivers/block/sbpcd.c | static int sbpcd_open(struct inode *ip, struct file *fp) |
ip | 4826 | drivers/block/sbpcd.c | i = MINOR(ip->i_rdev); |
ip | 4829 | drivers/block/sbpcd.c | msg(DBG_INF, "open: bad device: %04X\n", ip->i_rdev); |
ip | 4907 | drivers/block/sbpcd.c | static void sbpcd_release(struct inode * ip, struct file * file) |
ip | 4911 | drivers/block/sbpcd.c | i = MINOR(ip->i_rdev); |
ip | 4914 | drivers/block/sbpcd.c | msg(DBG_INF, "release: bad device: %04X\n", ip->i_rdev); |
ip | 4920 | drivers/block/sbpcd.c | sync_dev(ip->i_rdev); /* nonsense if read only device? */ |
ip | 4921 | drivers/block/sbpcd.c | invalidate_buffers(ip->i_rdev); |
ip | 637 | drivers/block/sjcd.c | static int sjcd_ioctl( struct inode *ip, struct file *fp, |
ip | 643 | drivers/block/sjcd.c | if( ip == NULL ) return( -EINVAL ); |
ip | 1271 | drivers/block/sjcd.c | int sjcd_open( struct inode *ip, struct file *fp ){ |
ip | 253 | drivers/net/slhc.c | struct iphdr *ip; |
ip | 256 | drivers/net/slhc.c | ip = (struct iphdr *) icp; |
ip | 259 | drivers/net/slhc.c | if(ip->protocol != IPPROTO_TCP || (ntohs(ip->frag_off) & 0x1fff) || |
ip | 260 | drivers/net/slhc.c | (ip->frag_off & 32)){ |
ip | 262 | drivers/net/slhc.c | if(ip->protocol != IPPROTO_TCP) |
ip | 270 | drivers/net/slhc.c | th = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4); |
ip | 271 | drivers/net/slhc.c | hlen = ip->ihl*4 + th->doff*4; |
ip | 297 | drivers/net/slhc.c | if( ip->saddr == cs->cs_ip.saddr |
ip | 298 | drivers/net/slhc.c | && ip->daddr == cs->cs_ip.daddr |
ip | 354 | drivers/net/slhc.c | || ip->version != cs->cs_ip.version || ip->ihl != cs->cs_ip.ihl |
ip | 355 | drivers/net/slhc.c | || ip->tos != cs->cs_ip.tos |
ip | 356 | drivers/net/slhc.c | || (ip->frag_off & 64) != (cs->cs_ip.frag_off & 64) |
ip | 357 | drivers/net/slhc.c | || ip->ttl != cs->cs_ip.ttl |
ip | 359 | drivers/net/slhc.c | || (ip->ihl > 5 && memcmp(ip+1,cs->cs_ipopt,((ip->ihl)-5)*4) != 0) |
ip | 406 | drivers/net/slhc.c | if(ip->tot_len != cs->cs_ip.tot_len && |
ip | 433 | drivers/net/slhc.c | deltaS = ntohs(ip->id) - ntohs(cs->cs_ip.id); |
ip | 444 | drivers/net/slhc.c | memcpy(&cs->cs_ip,ip,20); |
ip | 477 | drivers/net/slhc.c | memcpy(&cs->cs_ip,ip,20); |
ip | 479 | drivers/net/slhc.c | if (ip->ihl > 5) |
ip | 480 | drivers/net/slhc.c | memcpy(cs->cs_ipopt, ip+1, ((ip->ihl) - 5) * 4); |
ip | 499 | drivers/net/slhc.c | register struct iphdr *ip; |
ip | 532 | drivers/net/slhc.c | ip = &cs->cs_ip; |
ip | 546 | drivers/net/slhc.c | hdrlen = ip->ihl * 4 + thp->doff * 4; |
ip | 552 | drivers/net/slhc.c | i = ntohs(ip->tot_len) - hdrlen; |
ip | 560 | drivers/net/slhc.c | ntohs(ip->tot_len) - hdrlen); |
ip | 596 | drivers/net/slhc.c | ip->id = htons (ntohs (ip->id) + x); |
ip | 598 | drivers/net/slhc.c | ip->id = htons (ntohs (ip->id) + 1); |
ip | 610 | drivers/net/slhc.c | ip->tot_len = htons(len); |
ip | 611 | drivers/net/slhc.c | ip->check = 0; |
ip | 616 | drivers/net/slhc.c | memcpy(cp, ip, 20); |
ip | 619 | drivers/net/slhc.c | if (ip->ihl > 5) { |
ip | 620 | drivers/net/slhc.c | memcpy(cp, cs->cs_ipopt, (ip->ihl - 5) * 4); |
ip | 621 | drivers/net/slhc.c | cp += (ip->ihl - 5) * 4; |
ip | 97 | drivers/net/tunnel.c | void print_ip(struct iphdr *ip) |
ip | 102 | drivers/net/tunnel.c | printk("--- header len = %d\n", ip->ihl*4); |
ip | 103 | drivers/net/tunnel.c | printk("--- ip version: %d\n", ip->version); |
ip | 104 | drivers/net/tunnel.c | printk("--- ip protocol: %d\n", ip->protocol); |
ip | 105 | drivers/net/tunnel.c | ipaddr=(unsigned char *)&ip->saddr; |
ip | 108 | drivers/net/tunnel.c | ipaddr=(unsigned char *)&ip->daddr; |
ip | 111 | drivers/net/tunnel.c | printk("--- total packet len: %d\n", ntohs(ip->tot_len)); |
ip | 1228 | drivers/scsi/aha1542.c | int aha1542_biosparam(Scsi_Disk * disk, int dev, int * ip) |
ip | 1237 | drivers/scsi/aha1542.c | ip[0] = 255; |
ip | 1238 | drivers/scsi/aha1542.c | ip[1] = 63; |
ip | 1239 | drivers/scsi/aha1542.c | ip[2] = size /255/63; |
ip | 1241 | drivers/scsi/aha1542.c | ip[0] = 64; |
ip | 1242 | drivers/scsi/aha1542.c | ip[1] = 32; |
ip | 1243 | drivers/scsi/aha1542.c | ip[2] = size >> 11; |
ip | 500 | drivers/scsi/aha1740.c | int aha1740_biosparam(Disk * disk, int dev, int* ip) |
ip | 504 | drivers/scsi/aha1740.c | ip[0] = 64; |
ip | 505 | drivers/scsi/aha1740.c | ip[1] = 32; |
ip | 506 | drivers/scsi/aha1740.c | ip[2] = size >> 11; |
ip | 1501 | drivers/scsi/buslogic.c | int buslogic_biosparam(Disk *disk, int dev, int *ip) |
ip | 1511 | drivers/scsi/buslogic.c | ip[0] = 256; |
ip | 1512 | drivers/scsi/buslogic.c | ip[1] = 64; |
ip | 1514 | drivers/scsi/buslogic.c | ip[0] = 256; |
ip | 1515 | drivers/scsi/buslogic.c | ip[1] = 32; |
ip | 1518 | drivers/scsi/buslogic.c | ip[0] = 255; |
ip | 1519 | drivers/scsi/buslogic.c | ip[1] = 63; |
ip | 1522 | drivers/scsi/buslogic.c | ip[0] = 128; |
ip | 1523 | drivers/scsi/buslogic.c | ip[1] = 32; |
ip | 1526 | drivers/scsi/buslogic.c | ip[0] = 64; |
ip | 1527 | drivers/scsi/buslogic.c | ip[1] = 32; |
ip | 1529 | drivers/scsi/buslogic.c | ip[2] = size / (ip[0] * ip[1]); |
ip | 451 | drivers/scsi/pas16.c | int pas16_biosparam(Disk * disk, int dev, int * ip) |
ip | 454 | drivers/scsi/pas16.c | ip[0] = 64; |
ip | 455 | drivers/scsi/pas16.c | ip[1] = 32; |
ip | 456 | drivers/scsi/pas16.c | ip[2] = size >> 11; /* I think I have it as /(32*64) */ |
ip | 457 | drivers/scsi/pas16.c | if( ip[2] > 1024 ) { /* yes, >, not >= */ |
ip | 458 | drivers/scsi/pas16.c | ip[0]=255; |
ip | 459 | drivers/scsi/pas16.c | ip[1]=63; |
ip | 460 | drivers/scsi/pas16.c | ip[2]=size/(63*255); |
ip | 461 | drivers/scsi/pas16.c | if( ip[2] > 1023 ) /* yes >1023... */ |
ip | 462 | drivers/scsi/pas16.c | ip[2] = 1023; |
ip | 627 | drivers/scsi/qlogic.c | int qlogic_biosparam(Disk * disk, int dev, int ip[]) |
ip | 630 | drivers/scsi/qlogic.c | ip[0] = 0x40; |
ip | 631 | drivers/scsi/qlogic.c | ip[1] = 0x20; |
ip | 632 | drivers/scsi/qlogic.c | ip[2] = disk->capacity / (ip[0] * ip[1]); |
ip | 633 | drivers/scsi/qlogic.c | if (ip[2] > 1024) { |
ip | 634 | drivers/scsi/qlogic.c | ip[0] = 0xff; |
ip | 635 | drivers/scsi/qlogic.c | ip[1] = 0x3f; |
ip | 636 | drivers/scsi/qlogic.c | ip[2] = disk->capacity / (ip[0] * ip[1]); |
ip | 637 | drivers/scsi/qlogic.c | if (ip[2] > 1023) |
ip | 638 | drivers/scsi/qlogic.c | ip[2] = 1023; |
ip | 53 | drivers/scsi/scsicam.c | int *ip /* Heads, sectors, cylinders in that order */) { |
ip | 64 | drivers/scsi/scsicam.c | ret_code = partsize (bh, (unsigned long) size, (unsigned int *) ip + 2, |
ip | 65 | drivers/scsi/scsicam.c | (unsigned int *) ip + 0, (unsigned int *) ip + 1); |
ip | 72 | drivers/scsi/scsicam.c | ret_code = setsize ((unsigned long) size, (unsigned int *) ip + 2, |
ip | 73 | drivers/scsi/scsicam.c | (unsigned int *) ip + 0, (unsigned int *) ip + 1); |
ip | 1603 | drivers/scsi/seagate.c | int seagate_st0x_biosparam(Disk * disk, int dev, int* ip) { |
ip | 1689 | drivers/scsi/seagate.c | ip[0] = heads; |
ip | 1690 | drivers/scsi/seagate.c | ip[1] = sectors; |
ip | 1691 | drivers/scsi/seagate.c | ip[2] = cylinders; |
ip | 292 | drivers/scsi/t128.c | int t128_biosparam(Disk * disk, int dev, int * ip) |
ip | 295 | drivers/scsi/t128.c | ip[0] = 64; |
ip | 296 | drivers/scsi/t128.c | ip[1] = 32; |
ip | 297 | drivers/scsi/t128.c | ip[2] = size >> 11; |
ip | 1213 | drivers/scsi/wd7000.c | int wd7000_biosparam(Disk * disk, int dev, int* ip) |
ip | 1216 | drivers/scsi/wd7000.c | ip[0] = 64; |
ip | 1217 | drivers/scsi/wd7000.c | ip[1] = 32; |
ip | 1218 | drivers/scsi/wd7000.c | ip[2] = size >> 11; |
ip | 15 | include/linux/scsicam.h | extern int scsicam_bios_param (Disk *disk, int dev, int *ip); |
ip | 78 | include/net/ip.h | extern void ip_print(const struct iphdr *ip); |
ip | 92 | include/net/ip.h | extern void ip_send_check(struct iphdr *ip); |
ip | 245 | lib/vsprintf.c | long * ip = va_arg(args, long *); |
ip | 246 | lib/vsprintf.c | *ip = (str - buf); |
ip | 248 | lib/vsprintf.c | int * ip = va_arg(args, int *); |
ip | 249 | lib/vsprintf.c | *ip = (str - buf); |
ip | 106 | net/ipv4/arp.c | u32 ip; /* ip address of entry */ |
ip | 435 | net/ipv4/arp.c | u32 ip = entry->ip; |
ip | 443 | net/ipv4/arp.c | arp_send(ARPOP_REQUEST, ETH_P_ARP, ip, dev, dev->pa_addr, |
ip | 455 | net/ipv4/arp.c | hash = HASH(entry->ip); |
ip | 511 | net/ipv4/arp.c | in_ntoa(entry->ip)); |
ip | 559 | net/ipv4/arp.c | if (entry->ip == ip_addr) |
ip | 770 | net/ipv4/arp.c | !((proxy_entry->ip^tip)&proxy_entry->mask)) |
ip | 808 | net/ipv4/arp.c | if(entry->ip==sip && entry->htype==htype) |
ip | 856 | net/ipv4/arp.c | entry->ip = sip; |
ip | 893 | net/ipv4/arp.c | if (entry->ip == paddr && entry->htype == type) |
ip | 1007 | net/ipv4/arp.c | entry->ip = paddr; |
ip | 1100 | net/ipv4/arp.c | in_ntoa(entry->ip), |
ip | 1143 | net/ipv4/arp.c | if (entry->ip == paddr && entry->htype == type) |
ip | 1149 | net/ipv4/arp.c | if ((proxy==PROXY_EXACT) ? (entry->ip==paddr) |
ip | 1150 | net/ipv4/arp.c | : !((entry->ip^paddr)&entry->mask)) |
ip | 1219 | net/ipv4/arp.c | u32 ip; |
ip | 1265 | net/ipv4/arp.c | ip = si->sin_addr.s_addr; |
ip | 1266 | net/ipv4/arp.c | if (ip == 0) |
ip | 1276 | net/ipv4/arp.c | rt = ip_rt_route(ip, NULL, NULL); |
ip | 1289 | net/ipv4/arp.c | entry = arp_lookup(ip, PROXY_EXACT, htype); |
ip | 1293 | net/ipv4/arp.c | arp_destroy(ip,1); |
ip | 1304 | net/ipv4/arp.c | unsigned long hash = HASH(ip); |
ip | 1315 | net/ipv4/arp.c | entry->ip = ip; |
ip | 440 | net/ipv4/icmp.c | unsigned long ip; |
ip | 447 | net/ipv4/icmp.c | ip = iph->daddr; |
ip | 465 | net/ipv4/icmp.c | ip, 0, icmph->un.gateway, dev,0, 0, 0); |
ip | 477 | net/ipv4/icmp.c | rt = ip_rt_route(ip, NULL, NULL); |
ip | 486 | net/ipv4/icmp.c | ip, 0, icmph->un.gateway, dev,0, 0, 0, 0); |
ip | 187 | net/ipv4/ip_fw.c | int ip_fw_chk(struct iphdr *ip, struct device *rif, struct ip_fw *chain, int policy, int opt) |
ip | 190 | net/ipv4/ip_fw.c | struct tcphdr *tcp=(struct tcphdr *)((unsigned long *)ip+ip->ihl); |
ip | 191 | net/ipv4/ip_fw.c | struct udphdr *udp=(struct udphdr *)((unsigned long *)ip+ip->ihl); |
ip | 192 | net/ipv4/ip_fw.c | struct icmphdr *icmp=(struct icmphdr *)((unsigned long *)ip+ip->ihl); |
ip | 206 | net/ipv4/ip_fw.c | src = ip->saddr; |
ip | 207 | net/ipv4/ip_fw.c | dst = ip->daddr; |
ip | 223 | net/ipv4/ip_fw.c | offset = ntohs(ip->frag_off) & IP_OFFSET; |
ip | 234 | net/ipv4/ip_fw.c | if (offset == 1 && ip->protocol == IPPROTO_TCP) |
ip | 237 | net/ipv4/ip_fw.c | if (!frag1 && (opt != 1) && (ip->protocol == IPPROTO_TCP || |
ip | 238 | net/ipv4/ip_fw.c | ip->protocol == IPPROTO_UDP)) |
ip | 245 | net/ipv4/ip_fw.c | if(ip->protocol==IPPROTO_TCP && (ip->ihl<<2)+16 > ntohs(ip->tot_len)) |
ip | 252 | net/ipv4/ip_fw.c | else if(ntohs(ip->tot_len)<8+(ip->ihl<<2)) |
ip | 255 | net/ipv4/ip_fw.c | src = ip->saddr; |
ip | 256 | net/ipv4/ip_fw.c | dst = ip->daddr; |
ip | 267 | net/ipv4/ip_fw.c | switch(ip->protocol) |
ip | 299 | net/ipv4/ip_fw.c | dprintf2("p=%d ",ip->protocol); |
ip | 304 | net/ipv4/ip_fw.c | dprint_ip(ip->saddr); |
ip | 306 | net/ipv4/ip_fw.c | if (ip->protocol==IPPROTO_TCP || ip->protocol==IPPROTO_UDP) |
ip | 309 | net/ipv4/ip_fw.c | dprint_ip(ip->daddr); |
ip | 310 | net/ipv4/ip_fw.c | if (ip->protocol==IPPROTO_TCP || ip->protocol==IPPROTO_UDP) |
ip | 436 | net/ipv4/ip_fw.c | switch(ip->protocol) |
ip | 447 | net/ipv4/ip_fw.c | printk("p=%d ",ip->protocol); |
ip | 450 | net/ipv4/ip_fw.c | print_ip(ip->saddr); |
ip | 451 | net/ipv4/ip_fw.c | if(ip->protocol == IPPROTO_TCP || ip->protocol == IPPROTO_UDP) |
ip | 454 | net/ipv4/ip_fw.c | print_ip(ip->daddr); |
ip | 455 | net/ipv4/ip_fw.c | if(ip->protocol == IPPROTO_TCP || ip->protocol == IPPROTO_UDP) |
ip | 461 | net/ipv4/ip_fw.c | f->fw_bcnt+=ntohs(ip->tot_len); |
ip | 1349 | net/ipv4/ip_fw.c | struct iphdr *ip; |
ip | 1361 | net/ipv4/ip_fw.c | ip = &(ipfwp->fwp_iph); |
ip | 1363 | net/ipv4/ip_fw.c | if ( ip->ihl != sizeof(struct iphdr) / sizeof(int)) |
ip | 1366 | net/ipv4/ip_fw.c | printk("ip_fw_ctl: ip->ihl=%d, want %d\n",ip->ihl, |
ip | 1374 | net/ipv4/ip_fw.c | if ((ret = ip_fw_chk(ip, &viadev, |
ip | 83 | net/ipv4/rarp.c | unsigned long ip; /* ip address of entry */ |
ip | 129 | net/ipv4/rarp.c | if (entry->ip == ip_addr) |
ip | 270 | net/ipv4/rarp.c | sip=entry->ip; |
ip | 294 | net/ipv4/rarp.c | unsigned long ip; |
ip | 323 | net/ipv4/rarp.c | ip = si->sin_addr.s_addr; |
ip | 324 | net/ipv4/rarp.c | if (ip == 0) |
ip | 334 | net/ipv4/rarp.c | rt = ip_rt_route(ip, NULL, NULL); |
ip | 344 | net/ipv4/rarp.c | if (entry->ip == ip) |
ip | 370 | net/ipv4/rarp.c | entry->ip = ip; |
ip | 391 | net/ipv4/rarp.c | unsigned long ip; |
ip | 407 | net/ipv4/rarp.c | ip = si->sin_addr.s_addr; |
ip | 411 | net/ipv4/rarp.c | if (entry->ip == ip) |
ip | 507 | net/ipv4/rarp.c | netip=htonl(entry->ip); /* switch to network order */ |
ip | 158 | net/ipv4/udp.c | struct iphdr *ip=(struct iphdr *)header; |
ip | 160 | net/ipv4/udp.c | header += 4*ip->ihl; |