Lines Matching refs:start

53 write_smbios_tables(void *ep, void *start,
61 smbios_entry_point_init(void *start,
67 smbios_type_0_init(void *start, const char *xen_version,
70 smbios_type_1_init(void *start, const char *xen_version,
73 smbios_type_2_init(void *start);
75 smbios_type_3_init(void *start);
77 smbios_type_4_init(void *start, unsigned int cpu_number,
80 smbios_type_11_init(void *start);
82 smbios_type_16_init(void *start, uint32_t memory_size_mb, int nr_mem_devs);
84 smbios_type_17_init(void *start, uint32_t memory_size_mb, int instance);
86 smbios_type_19_init(void *start, uint32_t memory_size_mb, int instance);
88 smbios_type_20_init(void *start, uint32_t memory_size_mb, int instance);
90 smbios_type_22_init(void *start);
92 smbios_type_32_init(void *start);
94 smbios_type_39_init(void *start);
96 smbios_type_vendor_oem_init(void *start);
98 smbios_type_127_init(void *start);
175 write_smbios_tables(void *ep, void *start, in write_smbios_tables() argument
190 p = (char *)start; in write_smbios_tables()
231 return ((char *)p - (char *)start); in write_smbios_tables()
340 smbios_entry_point_init(void *start, in smbios_entry_point_init() argument
348 struct smbios_entry_point *ep = start; in smbios_entry_point_init()
367 sum += ((int8_t *)start)[i]; in smbios_entry_point_init()
372 sum += ((int8_t *)start)[i]; in smbios_entry_point_init()
378 smbios_type_0_init(void *start, const char *xen_version, in smbios_type_0_init() argument
381 struct smbios_type_0 *p = (struct smbios_type_0 *)start; in smbios_type_0_init()
390 memcpy(start, pts, length); in smbios_type_0_init()
392 return (start + length); in smbios_type_0_init()
419 start += sizeof(struct smbios_type_0); in smbios_type_0_init()
421 strcpy((char *)start, s); in smbios_type_0_init()
422 start += strlen(s) + 1; in smbios_type_0_init()
425 strcpy((char *)start, s); in smbios_type_0_init()
426 start += strlen(s) + 1; in smbios_type_0_init()
428 strcpy((char *)start, smbios_release_date); in smbios_type_0_init()
429 start += strlen(smbios_release_date) + 1; in smbios_type_0_init()
431 *((uint8_t *)start) = 0; in smbios_type_0_init()
432 return start + 1; in smbios_type_0_init()
437 smbios_type_1_init(void *start, const char *xen_version, in smbios_type_1_init() argument
441 struct smbios_type_1 *p = (struct smbios_type_1 *)start; in smbios_type_1_init()
449 memcpy(start, pts, length); in smbios_type_1_init()
451 return (start + length); in smbios_type_1_init()
471 start += sizeof(struct smbios_type_1); in smbios_type_1_init()
474 strcpy((char *)start, s); in smbios_type_1_init()
475 start += strlen(s) + 1; in smbios_type_1_init()
478 strcpy((char *)start, s); in smbios_type_1_init()
479 start += strlen(s) + 1; in smbios_type_1_init()
482 strcpy((char *)start, s); in smbios_type_1_init()
483 start += strlen(s) + 1; in smbios_type_1_init()
487 strcpy((char *)start, s); in smbios_type_1_init()
488 start += strlen(s) + 1; in smbios_type_1_init()
490 *((uint8_t *)start) = 0; in smbios_type_1_init()
492 return start+1; in smbios_type_1_init()
497 smbios_type_2_init(void *start) in smbios_type_2_init() argument
499 struct smbios_type_2 *p = (struct smbios_type_2 *)start; in smbios_type_2_init()
507 memcpy(start, pts, length); in smbios_type_2_init()
513 ptr = ((uint8_t*)start) + 11; in smbios_type_2_init()
518 return (start + length); in smbios_type_2_init()
522 return start; in smbios_type_2_init()
527 smbios_type_3_init(void *start) in smbios_type_3_init() argument
529 struct smbios_type_3 *p = (struct smbios_type_3 *)start; in smbios_type_3_init()
538 memcpy(start, pts, length); in smbios_type_3_init()
540 return (start + length); in smbios_type_3_init()
559 start += sizeof(struct smbios_type_3); in smbios_type_3_init()
562 strcpy((char *)start, s); in smbios_type_3_init()
563 start += strlen(s) + 1; in smbios_type_3_init()
569 strcpy((char *)start, s); in smbios_type_3_init()
570 start += strlen(s) + 1; in smbios_type_3_init()
576 strcpy(start, s); in smbios_type_3_init()
577 start += strlen(s) + 1; in smbios_type_3_init()
581 *((uint8_t *)start) = 0; in smbios_type_3_init()
582 return start+1; in smbios_type_3_init()
588 void *start, unsigned int cpu_number, char *cpu_manufacturer) in smbios_type_4_init() argument
591 struct smbios_type_4 *p = (struct smbios_type_4 *)start; in smbios_type_4_init()
622 start += sizeof(struct smbios_type_4); in smbios_type_4_init()
628 strcpy((char *)start, buf); in smbios_type_4_init()
629 start += strlen(buf) + 1; in smbios_type_4_init()
631 strcpy((char *)start, cpu_manufacturer); in smbios_type_4_init()
632 start += strlen(cpu_manufacturer) + 1; in smbios_type_4_init()
634 *((uint8_t *)start) = 0; in smbios_type_4_init()
635 return start+1; in smbios_type_4_init()
640 smbios_type_11_init(void *start) in smbios_type_11_init() argument
642 struct smbios_type_11 *p = (struct smbios_type_11 *)start; in smbios_type_11_init()
652 memcpy(start, pts, length); in smbios_type_11_init()
654 return (start + length); in smbios_type_11_init()
663 start += sizeof(struct smbios_type_11); in smbios_type_11_init()
671 strcpy((char *)start, s); in smbios_type_11_init()
672 start += strlen(s) + 1; in smbios_type_11_init()
679 strcpy((char *)start, "Xen"); in smbios_type_11_init()
680 start += strlen("Xen") + 1; in smbios_type_11_init()
683 *((uint8_t *)start) = 0; in smbios_type_11_init()
685 return start+1; in smbios_type_11_init()
690 smbios_type_16_init(void *start, uint32_t memsize, int nr_mem_devs) in smbios_type_16_init() argument
692 struct smbios_type_16 *p = (struct smbios_type_16*)start; in smbios_type_16_init()
707 start += sizeof(struct smbios_type_16); in smbios_type_16_init()
708 *((uint16_t *)start) = 0; in smbios_type_16_init()
709 return start + 2; in smbios_type_16_init()
714 smbios_type_17_init(void *start, uint32_t memory_size_mb, int instance) in smbios_type_17_init() argument
717 struct smbios_type_17 *p = (struct smbios_type_17 *)start; in smbios_type_17_init()
737 start += sizeof(struct smbios_type_17); in smbios_type_17_init()
738 strcpy(start, "DIMM "); in smbios_type_17_init()
739 start += strlen("DIMM "); in smbios_type_17_init()
741 strcpy(start, buf); in smbios_type_17_init()
742 start += strlen(buf) + 1; in smbios_type_17_init()
743 *((uint8_t *)start) = 0; in smbios_type_17_init()
745 return start+1; in smbios_type_17_init()
750 smbios_type_19_init(void *start, uint32_t memory_size_mb, int instance) in smbios_type_19_init() argument
752 struct smbios_type_19 *p = (struct smbios_type_19 *)start; in smbios_type_19_init()
765 start += sizeof(struct smbios_type_19); in smbios_type_19_init()
766 *((uint16_t *)start) = 0; in smbios_type_19_init()
767 return start + 2; in smbios_type_19_init()
772 smbios_type_20_init(void *start, uint32_t memory_size_mb, int instance) in smbios_type_20_init() argument
774 struct smbios_type_20 *p = (struct smbios_type_20 *)start; in smbios_type_20_init()
790 start += sizeof(struct smbios_type_20); in smbios_type_20_init()
792 *((uint16_t *)start) = 0; in smbios_type_20_init()
793 return start+2; in smbios_type_20_init()
798 smbios_type_22_init(void *start) in smbios_type_22_init() argument
800 struct smbios_type_22 *p = (struct smbios_type_22 *)start; in smbios_type_22_init()
809 memcpy(start, pts, length); in smbios_type_22_init()
811 return (start + length); in smbios_type_22_init()
816 return start; in smbios_type_22_init()
840 start += sizeof(struct smbios_type_22); in smbios_type_22_init()
842 strcpy((char *)start, "Primary"); in smbios_type_22_init()
843 start += strlen("Primary") + 1; in smbios_type_22_init()
846 strcpy((char *)start, s); in smbios_type_22_init()
847 start += strlen(s) + 1; in smbios_type_22_init()
849 strcpy((char *)start, smbios_release_date); in smbios_type_22_init()
850 start += strlen(smbios_release_date) + 1; in smbios_type_22_init()
853 strcpy((char *)start, s); in smbios_type_22_init()
854 start += strlen(s) + 1; in smbios_type_22_init()
856 *((uint8_t *)start) = 0; in smbios_type_22_init()
858 return start+1; in smbios_type_22_init()
863 smbios_type_32_init(void *start) in smbios_type_32_init() argument
865 struct smbios_type_32 *p = (struct smbios_type_32 *)start; in smbios_type_32_init()
875 start += sizeof(struct smbios_type_32); in smbios_type_32_init()
876 *((uint16_t *)start) = 0; in smbios_type_32_init()
877 return start+2; in smbios_type_32_init()
882 smbios_type_39_init(void *start) in smbios_type_39_init() argument
884 struct smbios_type_39 *p = (struct smbios_type_39 *)start; in smbios_type_39_init()
891 memcpy(start, pts, length); in smbios_type_39_init()
893 return (start + length); in smbios_type_39_init()
897 return start; in smbios_type_39_init()
901 smbios_type_vendor_oem_init(void *start) in smbios_type_vendor_oem_init() argument
908 return start; in smbios_type_vendor_oem_init()
921 memcpy(start, ptr, *sep); in smbios_type_vendor_oem_init()
922 start += *sep; in smbios_type_vendor_oem_init()
929 return start; in smbios_type_vendor_oem_init()
934 smbios_type_127_init(void *start) in smbios_type_127_init() argument
936 struct smbios_type_127 *p = (struct smbios_type_127 *)start; in smbios_type_127_init()
944 start += sizeof(struct smbios_type_127); in smbios_type_127_init()
945 *((uint16_t *)start) = 0; in smbios_type_127_init()
946 return start + 2; in smbios_type_127_init()