Lines Matching defs:header
537 static void GetCountAndHead(struct UsbFunctionfsDescsHeadV2 *header, uint32_t *fsCount, uint32_t *hsCount,
562 header->flags |= htole32(FUNCTIONFS_HAS_FS_DESC);
566 header->flags |= htole32(FUNCTIONFS_HAS_HS_DESC);
570 header->flags |= htole32(FUNCTIONFS_HAS_SS_DESC);
573 header->magic = htole32(FUNCTIONFS_DESCRIPTORS_MAGIC_V2);
574 header->length = htole32(sizeof(struct UsbFunctionfsDescsHeadV2) + lenCount + lenDes);
584 struct UsbFunctionfsDescsHeadV2 header = {0};
586 GetCountAndHead(&header, &fsCount, &hsCount, &ssCount, func);
588 dec = UsbFnMemCalloc(header.length);
595 int32_t ret = memcpy_s(whereDec, header.length, &header, sizeof(struct UsbFunctionfsDescsHeadV2));
626 if (write(ep0, dec, header.length) < 0) {