Lines Matching refs:data_len
19 u8 data_len);
21 static inline u16 eir_precalc_len(u8 data_len) in eir_precalc_len() argument
23 return sizeof(u8) * 2 + data_len; in eir_precalc_len()
27 u8 *data, u8 data_len) in eir_append_data() argument
29 eir[eir_len++] = sizeof(type) + data_len; in eir_append_data()
31 memcpy(&eir[eir_len], data, data_len); in eir_append_data()
32 eir_len += data_len; in eir_append_data()
47 static inline u16 eir_skb_put_data(struct sk_buff *skb, u8 type, u8 *data, u8 data_len) in eir_skb_put_data() argument
52 eir_len = eir_precalc_len(data_len); in eir_skb_put_data()
54 WARN_ON(sizeof(type) + data_len > U8_MAX); in eir_skb_put_data()
55 eir[0] = sizeof(type) + data_len; in eir_skb_put_data()
57 memcpy(&eir[2], data, data_len); in eir_skb_put_data()
63 size_t *data_len) in eir_get_data() argument
90 if (data_len) in eir_get_data()
91 *data_len = field_len - 1; in eir_get_data()