Lines Matching refs:len
13 __u32 len) in hci_codec_list_add() argument
17 entry = kzalloc(sizeof(*entry) + len, GFP_KERNEL); in hci_codec_list_add()
27 entry->len = len; in hci_codec_list_add()
31 memcpy(entry->caps, caps, len); in hci_codec_list_add()
60 __u32 len; in hci_read_codec_capabilities() local
83 if (skb->len < sizeof(*rp)) in hci_read_codec_capabilities()
92 len = 0; in hci_read_codec_capabilities()
99 for (j = 0, len = 0; j < rp->num_caps; j++) { in hci_read_codec_capabilities()
101 if (skb->len < sizeof(*caps)) in hci_read_codec_capabilities()
103 if (skb->len < caps->len) in hci_read_codec_capabilities()
105 len += sizeof(caps->len) + caps->len; in hci_read_codec_capabilities()
106 skb_pull(skb, sizeof(caps->len) + caps->len); in hci_read_codec_capabilities()
112 (__u8 *)rp + sizeof(*rp), len); in hci_read_codec_capabilities()
138 if (skb->len < sizeof(*rp)) in hci_read_supported_codecs()
151 if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num) in hci_read_supported_codecs()
170 if (skb->len < in hci_read_supported_codecs()
207 if (skb->len < sizeof(*rp)) in hci_read_supported_codecs_v2()
220 if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num) in hci_read_supported_codecs_v2()
238 if (skb->len < in hci_read_supported_codecs_v2()