Lines Matching defs:header
330 static void GetCountAndHead(struct UsbFunctionfsDescsHeadV2 *header, uint32_t *fsCount, uint32_t *hsCount,
355 header->flags |= htole32(FUNCTIONFS_HAS_FS_DESC);
359 header->flags |= htole32(FUNCTIONFS_HAS_HS_DESC);
363 header->flags |= htole32(FUNCTIONFS_HAS_SS_DESC);
366 header->magic = htole32(FUNCTIONFS_DESCRIPTORS_MAGIC_V2);
367 header->length = htole32(sizeof(struct UsbFunctionfsDescsHeadV2) + lenCount + lenDes);
418 struct UsbFunctionfsDescsHeadV2 header = {0};
420 GetCountAndHead(&header, &fsCount, &hsCount, &ssCount, func);
422 dec = UsbFnMemCalloc(header.length);
429 ret = memcpy_s(whereDec, header.length, &header, sizeof(struct UsbFunctionfsDescsHeadV2));
460 if (handle_write(ep0, dec, header.length) < 0) {