Lines Matching refs:length
132 .length = cpu_to_le32(sizeof descriptors),
227 __u32 length, fs_count = 0, hs_count = 0, count; in descs_to_legacy() local
241 length = le32_to_cpu(in->header.length); in descs_to_legacy()
242 if (length <= sizeof in->header) in descs_to_legacy()
244 length -= sizeof in->header; in descs_to_legacy()
253 if (length < 4) \ in descs_to_legacy()
256 length -= 4; \ in descs_to_legacy()
278 if (length < *descs_end) in descs_to_legacy()
280 length -= *descs_end; in descs_to_legacy()
294 length = sizeof out->header + (descs_end - descs_start); in descs_to_legacy()
295 out = malloc(length); in descs_to_legacy()
297 out->header.length = cpu_to_le32(length); in descs_to_legacy()
304 return length; in descs_to_legacy()
319 .length = cpu_to_le32(sizeof strings),