tag | line | file | source code |
hdr | 65 | arch/ppc/kernel/stubs.c | _udp_check(unsigned char *buf, int len, int saddr, int daddr, int hdr); |
hdr | 71 | arch/ppc/kernel/stubs.c | int hdr; |
hdr | 72 | arch/ppc/kernel/stubs.c | hdr = (len << 16) + IPPROTO_UDP; |
hdr | 73 | arch/ppc/kernel/stubs.c | _val = _udp_check(buf, len, saddr, daddr, hdr); |
hdr | 82 | arch/ppc/kernel/stubs.c | _tcp_check(unsigned char *buf, int len, int saddr, int daddr, int hdr); |
hdr | 88 | arch/ppc/kernel/stubs.c | int hdr; |
hdr | 89 | arch/ppc/kernel/stubs.c | hdr = (len << 16) + IPPROTO_TCP; |
hdr | 91 | arch/ppc/kernel/stubs.c | _val = _tcp_check(buf, len, saddr, daddr, hdr); |
hdr | 430 | arch/ppc/mm/init.c | MMU_free_item(struct item *hdr, struct item *elem) |
hdr | 432 | arch/ppc/mm/init.c | if (hdr->next == (struct item *)NULL) |
hdr | 437 | arch/ppc/mm/init.c | elem->next = hdr->next; |
hdr | 439 | arch/ppc/mm/init.c | hdr->next = elem; |
hdr | 443 | arch/ppc/mm/init.c | MMU_get_item(struct item *hdr) |
hdr | 446 | arch/ppc/mm/init.c | if ((item = hdr->next) != (struct item *)NULL) |
hdr | 448 | arch/ppc/mm/init.c | item = hdr->next; |
hdr | 449 | arch/ppc/mm/init.c | hdr->next = item->next; |
hdr | 504 | drivers/block/amiflop.c | struct header hdr; |
hdr | 515 | drivers/block/amiflop.c | hdr.magic = 0xFF; |
hdr | 516 | drivers/block/amiflop.c | hdr.track = track; |
hdr | 517 | drivers/block/amiflop.c | hdr.sect = cnt; |
hdr | 518 | drivers/block/amiflop.c | hdr.ord = unit[disk].sects-cnt; |
hdr | 520 | drivers/block/amiflop.c | hdr.labels[i] = 0; |
hdr | 521 | drivers/block/amiflop.c | hdr.hdrchk = checksum((ulong *)&hdr, |
hdr | 522 | drivers/block/amiflop.c | (char *)&hdr.hdrchk-(char *)&hdr); |
hdr | 523 | drivers/block/amiflop.c | hdr.datachk = checksum((ulong *)data, 512); |
hdr | 525 | drivers/block/amiflop.c | encode_block(raw, (ulong *)&hdr.magic, 4); |
hdr | 527 | drivers/block/amiflop.c | encode_block(raw, (ulong *)&hdr.labels, 16); |
hdr | 529 | drivers/block/amiflop.c | encode_block(raw, (ulong *)&hdr.hdrchk, 4); |
hdr | 531 | drivers/block/amiflop.c | encode_block(raw, (ulong *)&hdr.datachk, 4); |
hdr | 614 | drivers/block/amiflop.c | struct header hdr; |
hdr | 625 | drivers/block/amiflop.c | raw = decode ((ulong *)&hdr.magic, (ulong *)raw, 4); |
hdr | 626 | drivers/block/amiflop.c | raw = decode ((ulong *)&hdr.labels, (ulong *)raw, 16); |
hdr | 627 | drivers/block/amiflop.c | raw = decode ((ulong *)&hdr.hdrchk, (ulong *)raw, 4); |
hdr | 628 | drivers/block/amiflop.c | raw = decode ((ulong *)&hdr.datachk, (ulong *)raw, 4); |
hdr | 629 | drivers/block/amiflop.c | csum = checksum((ulong *)&hdr, |
hdr | 630 | drivers/block/amiflop.c | (char *)&hdr.hdrchk-(char *)&hdr); |
hdr | 634 | drivers/block/amiflop.c | hdr.magic, hdr.track, hdr.sect, hdr.ord, |
hdr | 635 | drivers/block/amiflop.c | *(ulong *)&hdr.labels[0], *(ulong *)&hdr.labels[4], |
hdr | 636 | drivers/block/amiflop.c | *(ulong *)&hdr.labels[8], *(ulong *)&hdr.labels[12], |
hdr | 637 | drivers/block/amiflop.c | hdr.hdrchk, hdr.datachk); |
hdr | 640 | drivers/block/amiflop.c | if (hdr.hdrchk != csum) { |
hdr | 641 | drivers/block/amiflop.c | printk("MFM_HEADER: %08lx,%08lx\n", hdr.hdrchk, csum); |
hdr | 646 | drivers/block/amiflop.c | if (hdr.track != track) { |
hdr | 647 | drivers/block/amiflop.c | printk("MFM_TRACK: %d, %d\n", hdr.track, track); |
hdr | 651 | drivers/block/amiflop.c | raw = decode ((ulong *)(track_data + hdr.sect*512), |
hdr | 653 | drivers/block/amiflop.c | csum = checksum((ulong *)(track_data + hdr.sect*512), 512); |
hdr | 655 | drivers/block/amiflop.c | if (hdr.datachk != csum) { |
hdr | 657 | drivers/block/amiflop.c | hdr.magic, hdr.track, hdr.sect, hdr.ord, scnt, |
hdr | 658 | drivers/block/amiflop.c | hdr.datachk, csum); |
hdr | 660 | drivers/block/amiflop.c | ((ulong *)(track_data+hdr.sect*512))[0], |
hdr | 661 | drivers/block/amiflop.c | ((ulong *)(track_data+hdr.sect*512))[1], |
hdr | 662 | drivers/block/amiflop.c | ((ulong *)(track_data+hdr.sect*512))[2], |
hdr | 663 | drivers/block/amiflop.c | ((ulong *)(track_data+hdr.sect*512))[3]); |
hdr | 685 | drivers/block/amiflop.c | static inline ushort dos_hdr_crc (struct dos_header *hdr) |
hdr | 687 | drivers/block/amiflop.c | return dos_crc(&(hdr->track), 0xb2, 0x30, 3); /* precomputed magic */ |
hdr | 847 | drivers/block/amiflop.c | struct dos_header hdr; |
hdr | 864 | drivers/block/amiflop.c | raw = dos_decode((unsigned char *)&hdr,(ushort *) raw,8); |
hdr | 865 | drivers/block/amiflop.c | crc = dos_hdr_crc(&hdr); |
hdr | 868 | drivers/block/amiflop.c | printk("(%3d,%d,%2d,%d) %x\n", hdr.track, hdr.side, |
hdr | 869 | drivers/block/amiflop.c | hdr.sec, hdr.len_desc, hdr.crc); |
hdr | 872 | drivers/block/amiflop.c | if (crc != hdr.crc) { |
hdr | 873 | drivers/block/amiflop.c | printk("dos_read: MFM_HEADER %04x,%04x\n", hdr.crc, crc); |
hdr | 876 | drivers/block/amiflop.c | if (hdr.track != track/unit[drive].type->heads) { |
hdr | 877 | drivers/block/amiflop.c | printk("dos_read: MFM_TRACK %d, %d\n", hdr.track, |
hdr | 882 | drivers/block/amiflop.c | if (hdr.side != track%unit[drive].type->heads) { |
hdr | 883 | drivers/block/amiflop.c | printk("dos_read: MFM_SIDE %d, %d\n", hdr.side, |
hdr | 888 | drivers/block/amiflop.c | if (hdr.len_desc != 2) { |
hdr | 889 | drivers/block/amiflop.c | printk("dos_read: unknown sector len descriptor %d\n", hdr.len_desc); |
hdr | 897 | drivers/block/amiflop.c | track, drive, scnt, hdr.sec); |
hdr | 906 | drivers/block/amiflop.c | hdr.track,hdr.side,hdr.sec,hdr.len_desc,scnt); |
hdr | 911 | drivers/block/amiflop.c | raw = dos_decode((unsigned char *)(track_data + (hdr.sec - 1) * 512), (ushort *) raw, 512); |
hdr | 913 | drivers/block/amiflop.c | crc = dos_data_crc(track_data + (hdr.sec - 1) * 512); |
hdr | 917 | drivers/block/amiflop.c | hdr.track, hdr.side, hdr.sec, hdr.len_desc, |
hdr | 920 | drivers/block/amiflop.c | ((ulong *)(track_data+(hdr.sec-1)*512))[0], |
hdr | 921 | drivers/block/amiflop.c | ((ulong *)(track_data+(hdr.sec-1)*512))[1], |
hdr | 922 | drivers/block/amiflop.c | ((ulong *)(track_data+(hdr.sec-1)*512))[2], |
hdr | 923 | drivers/block/amiflop.c | ((ulong *)(track_data+(hdr.sec-1)*512))[3]); |
hdr | 957 | drivers/block/amiflop.c | static struct dos_header hdr={0,0,0,2,0, |
hdr | 972 | drivers/block/amiflop.c | hdr.track=track/unit[drive].type->heads; |
hdr | 973 | drivers/block/amiflop.c | hdr.side=track%unit[drive].type->heads; |
hdr | 974 | drivers/block/amiflop.c | hdr.sec=cnt+1; |
hdr | 975 | drivers/block/amiflop.c | hdr.crc=dos_hdr_crc(&hdr); |
hdr | 978 | drivers/block/amiflop.c | dos_encode_block((ushort *)raw,(unsigned char *) &hdr.track,28); |
hdr | 1648 | drivers/block/ide-cd.c | struct atapi_toc_header hdr; |
hdr | 1672 | drivers/block/ide-cd.c | stat = cdrom_read_tocentry (drive, 0, 1, 0, (char *)&toc->hdr, |
hdr | 1680 | drivers/block/ide-cd.c | toc->hdr.first_track = bcd2bin (toc->hdr.first_track); |
hdr | 1681 | drivers/block/ide-cd.c | toc->hdr.last_track = bcd2bin (toc->hdr.last_track); |
hdr | 1685 | drivers/block/ide-cd.c | ntracks = toc->hdr.last_track - toc->hdr.first_track + 1; |
hdr | 1690 | drivers/block/ide-cd.c | stat = cdrom_read_tocentry (drive, 0, 1, 0, (char *)&toc->hdr, |
hdr | 1696 | drivers/block/ide-cd.c | toc->hdr.toc_length = ntohs (toc->hdr.toc_length); |
hdr | 1700 | drivers/block/ide-cd.c | toc->hdr.first_track = bcd2bin (toc->hdr.first_track); |
hdr | 1701 | drivers/block/ide-cd.c | toc->hdr.last_track = bcd2bin (toc->hdr.last_track); |
hdr | 1733 | drivers/block/ide-cd.c | toc->xa_flag = (ms_tmp.hdr.first_track != ms_tmp.hdr.last_track); |
hdr | 1890 | drivers/block/ide-cd.c | ntracks = toc->hdr.last_track - toc->hdr.first_track + 1; |
hdr | 1893 | drivers/block/ide-cd.c | else if (track < toc->hdr.first_track || |
hdr | 1894 | drivers/block/ide-cd.c | track > toc->hdr.last_track) |
hdr | 1897 | drivers/block/ide-cd.c | *ent = &toc->ent[track - toc->hdr.first_track]; |
hdr | 2069 | drivers/block/ide-cd.c | tochdr.cdth_trk0 = toc->hdr.first_track; |
hdr | 2070 | drivers/block/ide-cd.c | tochdr.cdth_trk1 = toc->hdr.last_track; |
hdr | 221 | drivers/block/ide.h | struct atapi_toc_header hdr; |
hdr | 2472 | drivers/cdrom/cdu31a.c | struct cdrom_tochdr *hdr; |
hdr | 2481 | drivers/cdrom/cdu31a.c | hdr = (struct cdrom_tochdr *) arg; |
hdr | 2482 | drivers/cdrom/cdu31a.c | i=verify_area(VERIFY_WRITE, hdr, sizeof(*hdr)); |
hdr | 2487 | drivers/cdrom/cdu31a.c | memcpy_tofs(hdr, &loc_hdr, sizeof(*hdr)); |
hdr | 1205 | drivers/cdrom/sonycd535.c | struct cdrom_tochdr *hdr; |
hdr | 1211 | drivers/cdrom/sonycd535.c | hdr = (struct cdrom_tochdr *)arg; |
hdr | 1212 | drivers/cdrom/sonycd535.c | err = verify_area(VERIFY_WRITE, hdr, sizeof *hdr); |
hdr | 1217 | drivers/cdrom/sonycd535.c | memcpy_tofs(hdr, &loc_hdr, sizeof *hdr); |
hdr | 641 | drivers/isdn/pcbit/capi.c | int capi_decode_debug_188(u_char *hdr, ushort hdrlen) |
hdr | 646 | drivers/isdn/pcbit/capi.c | len = hdr[0]; |
hdr | 649 | drivers/isdn/pcbit/capi.c | memcpy(str, hdr + 1, hdrlen - 1); |
hdr | 64 | drivers/isdn/pcbit/capi.h | extern int capi_decode_debug_188(u_char *hdr, ushort hdrlen); |
hdr | 81 | drivers/net/3c503.c | static void el2_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, |
hdr | 507 | drivers/net/3c503.c | el2_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page) |
hdr | 514 | drivers/net/3c503.c | memcpy_fromio(hdr, hdr_start, sizeof(struct e8390_pkt_hdr)); |
hdr | 534 | drivers/net/3c503.c | memset(hdr, 0x00, sizeof(struct e8390_pkt_hdr)); |
hdr | 539 | drivers/net/3c503.c | insw(E33G_FIFOH, hdr, (sizeof(struct e8390_pkt_hdr))>> 1); |
hdr | 79 | drivers/net/ac3200.c | static void ac_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, |
hdr | 260 | drivers/net/ac3200.c | ac_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page) |
hdr | 263 | drivers/net/ac3200.c | memcpy_fromio(hdr, hdr_start, sizeof(struct e8390_pkt_hdr)); |
hdr | 541 | drivers/net/arcnet.c | struct ClientData *hdr; /* clientdata of last packet */ |
hdr | 616 | drivers/net/arcnet.c | static void arcnetAS_prepare_tx(struct device *dev,u_char *hdr,int hdrlen, |
hdr | 1600 | drivers/net/arcnet.c | out->hdr=(struct ClientData*)skb->data; |
hdr | 1605 | drivers/net/arcnet.c | out->hdr->sequence=(lp->sequence++); |
hdr | 1611 | drivers/net/arcnet.c | out->length,out->hdr->split_flag); |
hdr | 1612 | drivers/net/arcnet.c | if (out->hdr->split_flag) |
hdr | 1614 | drivers/net/arcnet.c | out->hdr->split_flag); |
hdr | 1618 | drivers/net/arcnet.c | ((char *)out->hdr)+EXTRA_CLIENTDATA, |
hdr | 1622 | drivers/net/arcnet.c | out->hdr->daddr,1); |
hdr | 1714 | drivers/net/arcnet.c | out->hdr->split_flag=((out->numsegs-2)<<1)+1; |
hdr | 1716 | drivers/net/arcnet.c | out->hdr->split_flag=out->segnum<<1; |
hdr | 1723 | drivers/net/arcnet.c | out->length,out->hdr->split_flag); |
hdr | 1725 | drivers/net/arcnet.c | arcnetAS_prepare_tx(dev,((char *)out->hdr)+EXTRA_CLIENTDATA, |
hdr | 1727 | drivers/net/arcnet.c | out->data,out->seglen,out->hdr->daddr,1); |
hdr | 1739 | drivers/net/arcnet.c | arcnetAS_prepare_tx(struct device *dev,u_char *hdr,int hdrlen, |
hdr | 1757 | drivers/net/arcnet.c | hdr,length,data); |
hdr | 1793 | drivers/net/arcnet.c | arcpacket->raw[offset+0]=hdr[0]; |
hdr | 1814 | drivers/net/arcnet.c | (u_char*)hdr,hdrlen); |
hdr | 2946 | drivers/net/arcnet.c | struct S_ClientData *hdr=(struct S_ClientData *)skb->data; |
hdr | 2971 | drivers/net/arcnet.c | hdr->daddr,0); |
hdr | 123 | drivers/net/dlci.c | struct frhdr hdr; |
hdr | 130 | drivers/net/dlci.c | hdr.control = FRAD_I_UI; |
hdr | 134 | drivers/net/dlci.c | hdr.IP_NLPID = FRAD_P_IP; |
hdr | 135 | drivers/net/dlci.c | hlen = sizeof(hdr.control) + sizeof(hdr.IP_NLPID); |
hdr | 141 | drivers/net/dlci.c | hdr.pad = FRAD_P_PADDING; |
hdr | 142 | drivers/net/dlci.c | hdr.NLPID = FRAD_P_SNAP; |
hdr | 143 | drivers/net/dlci.c | memset(hdr.OUI, 0, sizeof(hdr.OUI)); |
hdr | 144 | drivers/net/dlci.c | hdr.PID = type; |
hdr | 145 | drivers/net/dlci.c | hlen = sizeof(hdr); |
hdr | 153 | drivers/net/dlci.c | memcpy(dest, &hdr, hlen); |
hdr | 161 | drivers/net/dlci.c | struct frhdr *hdr; |
hdr | 165 | drivers/net/dlci.c | hdr = (struct frhdr *) skb->data; |
hdr | 170 | drivers/net/dlci.c | if (hdr->control != FRAD_I_UI) |
hdr | 172 | drivers/net/dlci.c | printk(KERN_NOTICE "%s: Invalid header flag 0x%02X.\n", dev->name, hdr->control); |
hdr | 176 | drivers/net/dlci.c | switch(hdr->IP_NLPID) |
hdr | 179 | drivers/net/dlci.c | if (hdr->NLPID != FRAD_P_SNAP) |
hdr | 181 | drivers/net/dlci.c | printk(KERN_NOTICE "%s: Unsupported NLPID 0x%02X.\n", dev->name, hdr->NLPID); |
hdr | 186 | drivers/net/dlci.c | if (hdr->OUI[0] + hdr->OUI[1] + hdr->OUI[2] != 0) |
hdr | 188 | drivers/net/dlci.c | printk(KERN_NOTICE "%s: Unsupported organizationally unique identifier 0x%02X-%02X-%02X.\n", dev->name, hdr->OUI[0], hdr->OUI[1], hdr->OUI[2]); |
hdr | 195 | drivers/net/dlci.c | skb->protocol = htons(hdr->PID); |
hdr | 200 | drivers/net/dlci.c | header = sizeof(hdr->control) + sizeof(hdr->IP_NLPID); |
hdr | 208 | drivers/net/dlci.c | printk(KERN_NOTICE "%s: Unsupported NLPID 0x%02X.\n", dev->name, hdr->pad); |
hdr | 213 | drivers/net/dlci.c | printk(KERN_NOTICE "%s: Invalid pad byte 0x%02X.\n", dev->name, hdr->pad); |
hdr | 105 | drivers/net/e2100.c | static void e21_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, |
hdr | 294 | drivers/net/e2100.c | e21_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page) |
hdr | 304 | drivers/net/e2100.c | memcpy_fromio(hdr, shared_mem, sizeof(struct e8390_pkt_hdr)); |
hdr | 306 | drivers/net/e2100.c | ((unsigned int*)hdr)[0] = readl(shared_mem); |
hdr | 105 | drivers/net/hp-plus.c | static void hpp_mem_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, |
hdr | 111 | drivers/net/hp-plus.c | static void hpp_io_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, |
hdr | 329 | drivers/net/hp-plus.c | hpp_io_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page) |
hdr | 334 | drivers/net/hp-plus.c | insw(ioaddr + HP_DATAPORT, hdr, sizeof(struct e8390_pkt_hdr)>>1); |
hdr | 354 | drivers/net/hp-plus.c | hpp_mem_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page) |
hdr | 361 | drivers/net/hp-plus.c | memcpy_fromio(hdr, dev->mem_start, sizeof(struct e8390_pkt_hdr)); |
hdr | 363 | drivers/net/hp-plus.c | hdr->count = (hdr->count + 3) & ~3; /* Round up allocation. */ |
hdr | 63 | drivers/net/hp.c | static void hp_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, |
hdr | 249 | drivers/net/hp.c | hp_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page) |
hdr | 263 | drivers/net/hp.c | insw(nic_base - NIC_OFFSET + HP_DATAPORT, hdr, sizeof(struct e8390_pkt_hdr)>>1); |
hdr | 265 | drivers/net/hp.c | insb(nic_base - NIC_OFFSET + HP_DATAPORT, hdr, sizeof(struct e8390_pkt_hdr)); |
hdr | 106 | drivers/net/ne.c | static void ne_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, |
hdr | 461 | drivers/net/ne.c | ne_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page) |
hdr | 484 | drivers/net/ne.c | insw(NE_BASE + NE_DATAPORT, hdr, sizeof(struct e8390_pkt_hdr)>>1); |
hdr | 486 | drivers/net/ne.c | insb(NE_BASE + NE_DATAPORT, hdr, sizeof(struct e8390_pkt_hdr)); |
hdr | 2851 | drivers/net/ppp.c | struct ppp_hdr *hdr; |
hdr | 2956 | drivers/net/ppp.c | hdr = &((struct ppp_hdr *) data)[-1]; |
hdr | 2958 | drivers/net/ppp.c | hdr->address = PPP_ALLSTATIONS; |
hdr | 2959 | drivers/net/ppp.c | hdr->control = PPP_UI; |
hdr | 2960 | drivers/net/ppp.c | hdr->protocol[0] = 0; |
hdr | 2961 | drivers/net/ppp.c | hdr->protocol[1] = proto; |
hdr | 2963 | drivers/net/ppp.c | return ppp_dev_xmit_frame (ppp, ppp->wbuf, (__u8 *) hdr, len); |
hdr | 2977 | drivers/net/ppp.c | struct ppp_hdr *hdr; |
hdr | 3024 | drivers/net/ppp.c | hdr = &((struct ppp_hdr *) data)[-1]; |
hdr | 3026 | drivers/net/ppp.c | hdr->address = PPP_ALLSTATIONS; |
hdr | 3027 | drivers/net/ppp.c | hdr->control = PPP_UI; |
hdr | 3028 | drivers/net/ppp.c | hdr->protocol[0] = proto >> 8; |
hdr | 3029 | drivers/net/ppp.c | hdr->protocol[1] = proto; |
hdr | 3031 | drivers/net/ppp.c | return ppp_dev_xmit_frame (ppp, ppp->wbuf, (__u8 *) hdr, len); |
hdr | 70 | drivers/net/smc-ultra.c | static void ultra_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, |
hdr | 267 | drivers/net/smc-ultra.c | ultra_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page) |
hdr | 275 | drivers/net/smc-ultra.c | memcpy_fromio(hdr, hdr_start, sizeof(struct e8390_pkt_hdr)); |
hdr | 277 | drivers/net/smc-ultra.c | ((unsigned int*)hdr)[0] = readl(hdr_start); |
hdr | 52 | drivers/net/wd.c | static void wd_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, |
hdr | 351 | drivers/net/wd.c | wd_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page) |
hdr | 364 | drivers/net/wd.c | memcpy_fromio(hdr, hdr_start, sizeof(struct e8390_pkt_hdr)); |
hdr | 366 | drivers/net/wd.c | ((unsigned int*)hdr)[0] = readl(hdr_start); |