Lines Matching refs:h
70 pimfor_encode_header(int operation, u32 oid, u32 length, pimfor_header_t *h) in pimfor_encode_header() argument
72 h->version = PIMFOR_VERSION; in pimfor_encode_header()
73 h->operation = operation; in pimfor_encode_header()
74 h->device_id = PIMFOR_DEV_ID_MHLI_MIB; in pimfor_encode_header()
75 h->flags = 0; in pimfor_encode_header()
76 h->oid = cpu_to_be32(oid); in pimfor_encode_header()
77 h->length = cpu_to_be32(length); in pimfor_encode_header()
86 pimfor_header_t *h = data; in pimfor_decode_header() local
88 while ((void *) h < data + len) { in pimfor_decode_header()
89 if (h->flags & PIMFOR_FLAG_LITTLE_ENDIAN) { in pimfor_decode_header()
90 le32_to_cpus(&h->oid); in pimfor_decode_header()
91 le32_to_cpus(&h->length); in pimfor_decode_header()
93 be32_to_cpus(&h->oid); in pimfor_decode_header()
94 be32_to_cpus(&h->length); in pimfor_decode_header()
96 if (h->oid != OID_INL_TUNNEL) in pimfor_decode_header()
97 return h; in pimfor_decode_header()
98 h++; in pimfor_decode_header()
206 pimfor_header_t *h = buf.mem; in islpci_mgt_transmit() local
209 h->operation, oid, h->device_id, h->flags, length); in islpci_mgt_transmit()
212 display_buffer((char *) h, sizeof (pimfor_header_t)); in islpci_mgt_transmit()