taglinefilesource code
hdr65arch/ppc/kernel/stubs.c_udp_check(unsigned char *buf, int len, int saddr, int daddr, int hdr);
hdr71arch/ppc/kernel/stubs.cint hdr;
hdr72arch/ppc/kernel/stubs.chdr = (len << 16) + IPPROTO_UDP;
hdr73arch/ppc/kernel/stubs.c_val = _udp_check(buf, len, saddr, daddr, hdr);
hdr82arch/ppc/kernel/stubs.c_tcp_check(unsigned char *buf, int len, int saddr, int daddr, int hdr);
hdr88arch/ppc/kernel/stubs.cint hdr;
hdr89arch/ppc/kernel/stubs.chdr = (len << 16) + IPPROTO_TCP;
hdr91arch/ppc/kernel/stubs.c_val = _tcp_check(buf, len, saddr, daddr, hdr);
hdr430arch/ppc/mm/init.cMMU_free_item(struct item *hdr, struct item *elem)
hdr432arch/ppc/mm/init.cif (hdr->next == (struct item *)NULL)
hdr437arch/ppc/mm/init.celem->next = hdr->next;
hdr439arch/ppc/mm/init.chdr->next = elem;
hdr443arch/ppc/mm/init.cMMU_get_item(struct item *hdr)
hdr446arch/ppc/mm/init.cif ((item = hdr->next) != (struct item *)NULL)
hdr448arch/ppc/mm/init.citem = hdr->next;
hdr449arch/ppc/mm/init.chdr->next = item->next;
hdr504drivers/block/amiflop.cstruct header hdr;
hdr515drivers/block/amiflop.chdr.magic = 0xFF;
hdr516drivers/block/amiflop.chdr.track = track;
hdr517drivers/block/amiflop.chdr.sect = cnt;
hdr518drivers/block/amiflop.chdr.ord = unit[disk].sects-cnt;
hdr520drivers/block/amiflop.chdr.labels[i] = 0;
hdr521drivers/block/amiflop.chdr.hdrchk = checksum((ulong *)&hdr,
hdr522drivers/block/amiflop.c(char *)&hdr.hdrchk-(char *)&hdr);
hdr523drivers/block/amiflop.chdr.datachk = checksum((ulong *)data, 512);
hdr525drivers/block/amiflop.cencode_block(raw, (ulong *)&hdr.magic, 4);
hdr527drivers/block/amiflop.cencode_block(raw, (ulong *)&hdr.labels, 16);
hdr529drivers/block/amiflop.cencode_block(raw, (ulong *)&hdr.hdrchk, 4);
hdr531drivers/block/amiflop.cencode_block(raw, (ulong *)&hdr.datachk, 4);
hdr614drivers/block/amiflop.cstruct header hdr;
hdr625drivers/block/amiflop.craw = decode ((ulong *)&hdr.magic, (ulong *)raw, 4);
hdr626drivers/block/amiflop.craw = decode ((ulong *)&hdr.labels, (ulong *)raw, 16);
hdr627drivers/block/amiflop.craw = decode ((ulong *)&hdr.hdrchk, (ulong *)raw, 4);
hdr628drivers/block/amiflop.craw = decode ((ulong *)&hdr.datachk, (ulong *)raw, 4);
hdr629drivers/block/amiflop.ccsum = checksum((ulong *)&hdr,
hdr630drivers/block/amiflop.c(char *)&hdr.hdrchk-(char *)&hdr);
hdr634drivers/block/amiflop.chdr.magic, hdr.track, hdr.sect, hdr.ord,
hdr635drivers/block/amiflop.c*(ulong *)&hdr.labels[0], *(ulong *)&hdr.labels[4],
hdr636drivers/block/amiflop.c*(ulong *)&hdr.labels[8], *(ulong *)&hdr.labels[12],
hdr637drivers/block/amiflop.chdr.hdrchk, hdr.datachk);
hdr640drivers/block/amiflop.cif (hdr.hdrchk != csum) {
hdr641drivers/block/amiflop.cprintk("MFM_HEADER: %08lx,%08lx\n", hdr.hdrchk, csum);
hdr646drivers/block/amiflop.cif (hdr.track != track) {
hdr647drivers/block/amiflop.cprintk("MFM_TRACK: %d, %d\n", hdr.track, track);
hdr651drivers/block/amiflop.craw = decode ((ulong *)(track_data + hdr.sect*512),
hdr653drivers/block/amiflop.ccsum = checksum((ulong *)(track_data + hdr.sect*512), 512);
hdr655drivers/block/amiflop.cif (hdr.datachk != csum) {
hdr657drivers/block/amiflop.chdr.magic, hdr.track, hdr.sect, hdr.ord, scnt,
hdr658drivers/block/amiflop.chdr.datachk, csum);
hdr660drivers/block/amiflop.c((ulong *)(track_data+hdr.sect*512))[0],
hdr661drivers/block/amiflop.c((ulong *)(track_data+hdr.sect*512))[1],
hdr662drivers/block/amiflop.c((ulong *)(track_data+hdr.sect*512))[2],
hdr663drivers/block/amiflop.c((ulong *)(track_data+hdr.sect*512))[3]);
hdr685drivers/block/amiflop.cstatic inline ushort dos_hdr_crc (struct dos_header *hdr)
hdr687drivers/block/amiflop.creturn dos_crc(&(hdr->track), 0xb2, 0x30, 3); /* precomputed magic */
hdr847drivers/block/amiflop.cstruct dos_header hdr;
hdr864drivers/block/amiflop.craw = dos_decode((unsigned char *)&hdr,(ushort *) raw,8);
hdr865drivers/block/amiflop.ccrc = dos_hdr_crc(&hdr);
hdr868drivers/block/amiflop.cprintk("(%3d,%d,%2d,%d) %x\n", hdr.track, hdr.side,
hdr869drivers/block/amiflop.chdr.sec, hdr.len_desc, hdr.crc);
hdr872drivers/block/amiflop.cif (crc != hdr.crc) {
hdr873drivers/block/amiflop.cprintk("dos_read: MFM_HEADER %04x,%04x\n", hdr.crc, crc);
hdr876drivers/block/amiflop.cif (hdr.track != track/unit[drive].type->heads) {
hdr877drivers/block/amiflop.cprintk("dos_read: MFM_TRACK %d, %d\n", hdr.track,
hdr882drivers/block/amiflop.cif (hdr.side != track%unit[drive].type->heads) {
hdr883drivers/block/amiflop.cprintk("dos_read: MFM_SIDE %d, %d\n", hdr.side,
hdr888drivers/block/amiflop.cif (hdr.len_desc != 2) {
hdr889drivers/block/amiflop.cprintk("dos_read: unknown sector len descriptor %d\n", hdr.len_desc);
hdr897drivers/block/amiflop.ctrack, drive, scnt, hdr.sec);
hdr906drivers/block/amiflop.chdr.track,hdr.side,hdr.sec,hdr.len_desc,scnt);
hdr911drivers/block/amiflop.craw = dos_decode((unsigned char *)(track_data + (hdr.sec - 1) * 512), (ushort *) raw, 512);
hdr913drivers/block/amiflop.ccrc = dos_data_crc(track_data + (hdr.sec - 1) * 512);
hdr917drivers/block/amiflop.chdr.track, hdr.side, hdr.sec, hdr.len_desc,
hdr920drivers/block/amiflop.c((ulong *)(track_data+(hdr.sec-1)*512))[0],
hdr921drivers/block/amiflop.c((ulong *)(track_data+(hdr.sec-1)*512))[1],
hdr922drivers/block/amiflop.c((ulong *)(track_data+(hdr.sec-1)*512))[2],
hdr923drivers/block/amiflop.c((ulong *)(track_data+(hdr.sec-1)*512))[3]);
hdr957drivers/block/amiflop.cstatic struct dos_header hdr={0,0,0,2,0,
hdr972drivers/block/amiflop.chdr.track=track/unit[drive].type->heads;
hdr973drivers/block/amiflop.chdr.side=track%unit[drive].type->heads;
hdr974drivers/block/amiflop.chdr.sec=cnt+1;
hdr975drivers/block/amiflop.chdr.crc=dos_hdr_crc(&hdr);
hdr978drivers/block/amiflop.cdos_encode_block((ushort *)raw,(unsigned char *) &hdr.track,28);
hdr1648drivers/block/ide-cd.cstruct atapi_toc_header hdr;
hdr1672drivers/block/ide-cd.cstat = cdrom_read_tocentry (drive, 0, 1, 0, (char *)&toc->hdr,
hdr1680drivers/block/ide-cd.ctoc->hdr.first_track = bcd2bin (toc->hdr.first_track);
hdr1681drivers/block/ide-cd.ctoc->hdr.last_track  = bcd2bin (toc->hdr.last_track);
hdr1685drivers/block/ide-cd.cntracks = toc->hdr.last_track - toc->hdr.first_track + 1;
hdr1690drivers/block/ide-cd.cstat = cdrom_read_tocentry (drive, 0, 1, 0, (char *)&toc->hdr,
hdr1696drivers/block/ide-cd.ctoc->hdr.toc_length = ntohs (toc->hdr.toc_length);
hdr1700drivers/block/ide-cd.ctoc->hdr.first_track = bcd2bin (toc->hdr.first_track);
hdr1701drivers/block/ide-cd.ctoc->hdr.last_track  = bcd2bin (toc->hdr.last_track);
hdr1733drivers/block/ide-cd.ctoc->xa_flag = (ms_tmp.hdr.first_track != ms_tmp.hdr.last_track);
hdr1890drivers/block/ide-cd.cntracks = toc->hdr.last_track - toc->hdr.first_track + 1;
hdr1893drivers/block/ide-cd.celse if (track < toc->hdr.first_track ||
hdr1894drivers/block/ide-cd.ctrack > toc->hdr.last_track)
hdr1897drivers/block/ide-cd.c*ent = &toc->ent[track - toc->hdr.first_track];
hdr2069drivers/block/ide-cd.ctochdr.cdth_trk0 = toc->hdr.first_track;
hdr2070drivers/block/ide-cd.ctochdr.cdth_trk1 = toc->hdr.last_track;
hdr221drivers/block/ide.hstruct atapi_toc_header hdr;
hdr2472drivers/cdrom/cdu31a.cstruct cdrom_tochdr *hdr;
hdr2481drivers/cdrom/cdu31a.chdr = (struct cdrom_tochdr *) arg;
hdr2482drivers/cdrom/cdu31a.ci=verify_area(VERIFY_WRITE, hdr, sizeof(*hdr));
hdr2487drivers/cdrom/cdu31a.cmemcpy_tofs(hdr, &loc_hdr, sizeof(*hdr));
hdr1205drivers/cdrom/sonycd535.cstruct cdrom_tochdr *hdr;
hdr1211drivers/cdrom/sonycd535.chdr = (struct cdrom_tochdr *)arg;
hdr1212drivers/cdrom/sonycd535.cerr = verify_area(VERIFY_WRITE, hdr, sizeof *hdr);
hdr1217drivers/cdrom/sonycd535.cmemcpy_tofs(hdr, &loc_hdr, sizeof *hdr);
hdr641drivers/isdn/pcbit/capi.cint capi_decode_debug_188(u_char *hdr, ushort hdrlen)
hdr646drivers/isdn/pcbit/capi.clen = hdr[0];
hdr649drivers/isdn/pcbit/capi.cmemcpy(str, hdr + 1, hdrlen - 1);
hdr64drivers/isdn/pcbit/capi.hextern int capi_decode_debug_188(u_char *hdr, ushort hdrlen);
hdr81drivers/net/3c503.cstatic void el2_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
hdr507drivers/net/3c503.cel2_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
hdr514drivers/net/3c503.cmemcpy_fromio(hdr, hdr_start, sizeof(struct e8390_pkt_hdr));
hdr534drivers/net/3c503.cmemset(hdr, 0x00, sizeof(struct e8390_pkt_hdr));
hdr539drivers/net/3c503.cinsw(E33G_FIFOH, hdr, (sizeof(struct e8390_pkt_hdr))>> 1);
hdr79drivers/net/ac3200.cstatic void ac_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
hdr260drivers/net/ac3200.cac_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
hdr263drivers/net/ac3200.cmemcpy_fromio(hdr, hdr_start, sizeof(struct e8390_pkt_hdr));
hdr541drivers/net/arcnet.cstruct ClientData *hdr;    /* clientdata of last packet */
hdr616drivers/net/arcnet.cstatic void arcnetAS_prepare_tx(struct device *dev,u_char *hdr,int hdrlen,
hdr1600drivers/net/arcnet.cout->hdr=(struct ClientData*)skb->data;
hdr1605drivers/net/arcnet.cout->hdr->sequence=(lp->sequence++);
hdr1611drivers/net/arcnet.cout->length,out->hdr->split_flag);
hdr1612drivers/net/arcnet.cif (out->hdr->split_flag)
hdr1614drivers/net/arcnet.cout->hdr->split_flag);
hdr1618drivers/net/arcnet.c((char *)out->hdr)+EXTRA_CLIENTDATA,
hdr1622drivers/net/arcnet.cout->hdr->daddr,1);
hdr1714drivers/net/arcnet.cout->hdr->split_flag=((out->numsegs-2)<<1)+1;
hdr1716drivers/net/arcnet.cout->hdr->split_flag=out->segnum<<1;
hdr1723drivers/net/arcnet.cout->length,out->hdr->split_flag);
hdr1725drivers/net/arcnet.carcnetAS_prepare_tx(dev,((char *)out->hdr)+EXTRA_CLIENTDATA,
hdr1727drivers/net/arcnet.cout->data,out->seglen,out->hdr->daddr,1);
hdr1739drivers/net/arcnet.carcnetAS_prepare_tx(struct device *dev,u_char *hdr,int hdrlen,
hdr1757drivers/net/arcnet.chdr,length,data);
hdr1793drivers/net/arcnet.carcpacket->raw[offset+0]=hdr[0];
hdr1814drivers/net/arcnet.c(u_char*)hdr,hdrlen);
hdr2946drivers/net/arcnet.cstruct S_ClientData *hdr=(struct S_ClientData *)skb->data;
hdr2971drivers/net/arcnet.chdr->daddr,0);
hdr123drivers/net/dlci.cstruct frhdr      hdr;
hdr130drivers/net/dlci.chdr.control = FRAD_I_UI;
hdr134drivers/net/dlci.chdr.IP_NLPID = FRAD_P_IP;
hdr135drivers/net/dlci.chlen = sizeof(hdr.control) + sizeof(hdr.IP_NLPID);
hdr141drivers/net/dlci.chdr.pad = FRAD_P_PADDING;
hdr142drivers/net/dlci.chdr.NLPID = FRAD_P_SNAP;
hdr143drivers/net/dlci.cmemset(hdr.OUI, 0, sizeof(hdr.OUI));
hdr144drivers/net/dlci.chdr.PID = type;
hdr145drivers/net/dlci.chlen = sizeof(hdr);
hdr153drivers/net/dlci.cmemcpy(dest, &hdr, hlen);
hdr161drivers/net/dlci.cstruct frhdr      *hdr;
hdr165drivers/net/dlci.chdr = (struct frhdr *) skb->data;
hdr170drivers/net/dlci.cif (hdr->control != FRAD_I_UI)
hdr172drivers/net/dlci.cprintk(KERN_NOTICE "%s: Invalid header flag 0x%02X.\n", dev->name, hdr->control);
hdr176drivers/net/dlci.cswitch(hdr->IP_NLPID)
hdr179drivers/net/dlci.cif (hdr->NLPID != FRAD_P_SNAP)
hdr181drivers/net/dlci.cprintk(KERN_NOTICE "%s: Unsupported NLPID 0x%02X.\n", dev->name, hdr->NLPID);
hdr186drivers/net/dlci.cif (hdr->OUI[0] + hdr->OUI[1] + hdr->OUI[2] != 0)
hdr188drivers/net/dlci.cprintk(KERN_NOTICE "%s: Unsupported organizationally unique identifier 0x%02X-%02X-%02X.\n", dev->name, hdr->OUI[0], hdr->OUI[1], hdr->OUI[2]);
hdr195drivers/net/dlci.cskb->protocol = htons(hdr->PID);
hdr200drivers/net/dlci.cheader = sizeof(hdr->control) + sizeof(hdr->IP_NLPID);
hdr208drivers/net/dlci.cprintk(KERN_NOTICE "%s: Unsupported NLPID 0x%02X.\n", dev->name, hdr->pad);
hdr213drivers/net/dlci.cprintk(KERN_NOTICE "%s: Invalid pad byte 0x%02X.\n", dev->name, hdr->pad);
hdr105drivers/net/e2100.cstatic void e21_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
hdr294drivers/net/e2100.ce21_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
hdr304drivers/net/e2100.cmemcpy_fromio(hdr, shared_mem, sizeof(struct e8390_pkt_hdr));
hdr306drivers/net/e2100.c((unsigned int*)hdr)[0] = readl(shared_mem);
hdr105drivers/net/hp-plus.cstatic void hpp_mem_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
hdr111drivers/net/hp-plus.cstatic void hpp_io_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
hdr329drivers/net/hp-plus.chpp_io_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
hdr334drivers/net/hp-plus.cinsw(ioaddr + HP_DATAPORT, hdr, sizeof(struct e8390_pkt_hdr)>>1);
hdr354drivers/net/hp-plus.chpp_mem_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
hdr361drivers/net/hp-plus.cmemcpy_fromio(hdr, dev->mem_start, sizeof(struct e8390_pkt_hdr));
hdr363drivers/net/hp-plus.chdr->count = (hdr->count + 3) & ~3;  /* Round up allocation. */
hdr63drivers/net/hp.cstatic void hp_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
hdr249drivers/net/hp.chp_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
hdr263drivers/net/hp.cinsw(nic_base - NIC_OFFSET + HP_DATAPORT, hdr, sizeof(struct e8390_pkt_hdr)>>1);
hdr265drivers/net/hp.cinsb(nic_base - NIC_OFFSET + HP_DATAPORT, hdr, sizeof(struct e8390_pkt_hdr));
hdr106drivers/net/ne.cstatic void ne_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
hdr461drivers/net/ne.cne_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
hdr484drivers/net/ne.cinsw(NE_BASE + NE_DATAPORT, hdr, sizeof(struct e8390_pkt_hdr)>>1);
hdr486drivers/net/ne.cinsb(NE_BASE + NE_DATAPORT, hdr, sizeof(struct e8390_pkt_hdr));
hdr2851drivers/net/ppp.cstruct ppp_hdr    *hdr;
hdr2956drivers/net/ppp.chdr   = &((struct ppp_hdr *) data)[-1];
hdr2958drivers/net/ppp.chdr->address   = PPP_ALLSTATIONS;
hdr2959drivers/net/ppp.chdr->control   = PPP_UI;
hdr2960drivers/net/ppp.chdr->protocol[0] = 0;
hdr2961drivers/net/ppp.chdr->protocol[1] = proto;
hdr2963drivers/net/ppp.creturn ppp_dev_xmit_frame (ppp, ppp->wbuf, (__u8 *) hdr, len);
hdr2977drivers/net/ppp.cstruct ppp_hdr    *hdr;
hdr3024drivers/net/ppp.chdr   = &((struct ppp_hdr *) data)[-1];
hdr3026drivers/net/ppp.chdr->address   = PPP_ALLSTATIONS;
hdr3027drivers/net/ppp.chdr->control   = PPP_UI;
hdr3028drivers/net/ppp.chdr->protocol[0] = proto >> 8;
hdr3029drivers/net/ppp.chdr->protocol[1] = proto;
hdr3031drivers/net/ppp.creturn ppp_dev_xmit_frame (ppp, ppp->wbuf, (__u8 *) hdr, len);
hdr70drivers/net/smc-ultra.cstatic void ultra_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, 
hdr267drivers/net/smc-ultra.cultra_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
hdr275drivers/net/smc-ultra.cmemcpy_fromio(hdr, hdr_start, sizeof(struct e8390_pkt_hdr));
hdr277drivers/net/smc-ultra.c((unsigned int*)hdr)[0] = readl(hdr_start);
hdr52drivers/net/wd.cstatic void wd_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
hdr351drivers/net/wd.cwd_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
hdr364drivers/net/wd.cmemcpy_fromio(hdr, hdr_start, sizeof(struct e8390_pkt_hdr));
hdr366drivers/net/wd.c((unsigned int*)hdr)[0] = readl(hdr_start);