Lines Matching refs:hdr
23 struct qlink_tlv_hdr *hdr = skb_put(skb, sizeof(*hdr) + arr_len); in qtnf_cmd_skb_put_tlv_arr() local
25 hdr->type = cpu_to_le16(tlv_id); in qtnf_cmd_skb_put_tlv_arr()
26 hdr->len = cpu_to_le16(arr_len); in qtnf_cmd_skb_put_tlv_arr()
27 memcpy(hdr->val, arr, arr_len); in qtnf_cmd_skb_put_tlv_arr()
32 struct qlink_tlv_hdr *hdr = skb_put(skb, sizeof(*hdr)); in qtnf_cmd_skb_put_tlv_tag() local
34 hdr->type = cpu_to_le16(tlv_id); in qtnf_cmd_skb_put_tlv_tag()
35 hdr->len = cpu_to_le16(0); in qtnf_cmd_skb_put_tlv_tag()
41 struct qlink_tlv_hdr *hdr = skb_put(skb, sizeof(*hdr) + sizeof(value)); in qtnf_cmd_skb_put_tlv_u8() local
43 hdr->type = cpu_to_le16(tlv_id); in qtnf_cmd_skb_put_tlv_u8()
44 hdr->len = cpu_to_le16(sizeof(value)); in qtnf_cmd_skb_put_tlv_u8()
45 *hdr->val = value; in qtnf_cmd_skb_put_tlv_u8()
51 struct qlink_tlv_hdr *hdr = skb_put(skb, sizeof(*hdr) + sizeof(value)); in qtnf_cmd_skb_put_tlv_u16() local
54 hdr->type = cpu_to_le16(tlv_id); in qtnf_cmd_skb_put_tlv_u16()
55 hdr->len = cpu_to_le16(sizeof(value)); in qtnf_cmd_skb_put_tlv_u16()
56 memcpy(hdr->val, &tmp, sizeof(tmp)); in qtnf_cmd_skb_put_tlv_u16()
62 struct qlink_tlv_hdr *hdr = skb_put(skb, sizeof(*hdr) + sizeof(value)); in qtnf_cmd_skb_put_tlv_u32() local
65 hdr->type = cpu_to_le16(tlv_id); in qtnf_cmd_skb_put_tlv_u32()
66 hdr->len = cpu_to_le16(sizeof(value)); in qtnf_cmd_skb_put_tlv_u32()
67 memcpy(hdr->val, &tmp, sizeof(tmp)); in qtnf_cmd_skb_put_tlv_u32()