Lines Matching refs:hip
46 struct hippi_hdr *hip = skb_push(skb, HIPPI_HLEN); in hippi_header() local
58 hip->fp.fixed = htonl(0x04800018); in hippi_header()
59 hip->fp.d2_size = htonl(len + 8); in hippi_header()
60 hip->le.fc = 0; in hippi_header()
61 hip->le.double_wide = 0; /* only HIPPI 800 for the time being */ in hippi_header()
62 hip->le.message_type = 0; /* Data PDU */ in hippi_header()
64 hip->le.dest_addr_type = 2; /* 12 bit SC address */ in hippi_header()
65 hip->le.src_addr_type = 2; /* 12 bit SC address */ in hippi_header()
67 memcpy(hip->le.src_switch_addr, dev->dev_addr + 3, 3); in hippi_header()
68 memset_startat(&hip->le, 0, reserved); in hippi_header()
70 hip->snap.dsap = HIPPI_EXTENDED_SAP; in hippi_header()
71 hip->snap.ssap = HIPPI_EXTENDED_SAP; in hippi_header()
72 hip->snap.ctrl = HIPPI_UI_CMD; in hippi_header()
73 hip->snap.oui[0] = 0x00; in hippi_header()
74 hip->snap.oui[1] = 0x00; in hippi_header()
75 hip->snap.oui[2] = 0x00; in hippi_header()
76 hip->snap.ethertype = htons(type); in hippi_header()
80 memcpy(hip->le.dest_switch_addr, daddr + 3, 3); in hippi_header()
95 struct hippi_hdr *hip; in hippi_type_trans() local
103 hip = (struct hippi_hdr *)skb_mac_header(skb); in hippi_type_trans()
110 return hip->snap.ethertype; in hippi_type_trans()