Lines Matching refs:cp

419 	u8	*cp, *cpe, checksum;  in acpi_checksum()  local
424 for (cp=(u8*)p, cpe=cp+p->length; cp<cpe; cp++) in acpi_checksum()
425 checksum += *cp; in acpi_checksum()
432 u8 *cp, *cpe, checksum; in acpi_checksum_rsdp20() local
438 for (cp=(u8*)p, cpe=cp+20; cp<cpe; cp++) in acpi_checksum_rsdp20()
439 checksum += *cp; in acpi_checksum_rsdp20()
443 for (cp=(u8*)p, cpe=cp+length; cp<cpe; cp++) in acpi_checksum_rsdp20()
444 checksum += *cp; in acpi_checksum_rsdp20()
487 static char *cp, *cmd_line, *vendor; in sys_fw_init() local
510 cp = fw_mem; in sys_fw_init()
511 efi_systab = (void *) cp; cp += ALIGN8(sizeof(*efi_systab)); in sys_fw_init()
512 efi_runtime_p = efi_runtime = (void *) cp; cp += ALIGN8(sizeof(*efi_runtime)); in sys_fw_init()
513 efi_tables = (void *) cp; cp += ALIGN8(NUM_EFI_DESCS*sizeof(*efi_tables)); in sys_fw_init()
514 sal_systab = (void *) cp; cp += ALIGN8(sizeof(*sal_systab)); in sys_fw_init()
515 sal_ed = (void *) cp; cp += ALIGN8(sizeof(*sal_ed)); in sys_fw_init()
516 sal_ptc = (void *) cp; cp += ALIGN8(sizeof(*sal_ptc)); in sys_fw_init()
517 sal_apwake = (void *) cp; cp += ALIGN8(sizeof(*sal_apwake)); in sys_fw_init()
518 sal_feature = (void *) cp; cp += ALIGN8(sizeof(*sal_feature)); in sys_fw_init()
519 acpi20_rsdp = (void *) cp; cp += ALIGN8(sizeof(*acpi20_rsdp)); in sys_fw_init()
520 acpi_xsdt = (void *) cp; cp += ALIGN8(sizeof(*acpi_xsdt) + 64); in sys_fw_init()
523 acpi_dsdt = (void *) cp; cp += ALIGN8(sizeof(*acpi_dsdt)); in sys_fw_init()
524 acpi_fadt = (void *) cp; cp += ALIGN8(sizeof(*acpi_fadt)); in sys_fw_init()
525 acpi_slit = (void *) cp; cp += ALIGN8(sizeof(*acpi_slit) + 8 + (max_nasid+1)*(max_nasid+1)); in sys_fw_init()
526 …acpi_madt = (void *) cp; cp += ALIGN8(sizeof(*acpi_madt) + sizeof(struct acpi_table_lsapic) * (n… in sys_fw_init()
527 acpi_srat = (void *) cp; cp += ALIGN8(sizeof(struct acpi_table_srat)); in sys_fw_init()
528cp += sizeof(struct acpi_table_processor_affinity)*num_cpus + sizeof(struct acpi_table_mem… in sys_fw_init()
529 vendor = (char *) cp; cp += ALIGN8(40); in sys_fw_init()
530 efi_memmap = (void *) cp; cp += ALIGN8(8*32*sizeof(*efi_memmap)); in sys_fw_init()
531 sal_ptcdi = (void *) cp; cp += ALIGN8(CPUS_PER_FSB*(1+num_nodes)*sizeof(*sal_ptcdi)); in sys_fw_init()
532 sal_ptclid = (void *) cp; cp += ALIGN8(((3+num_cpus)*sizeof(*sal_ptclid)+7)/8*8); in sys_fw_init()
533 cmd_line = (void *) cp; in sys_fw_init()
668 cp=acpi_slit->entry; in sys_fw_init()
669 memset(cp, 255, acpi_slit->localities*acpi_slit->localities); in sys_fw_init()
676 *(cp+PROXIMITY_DOMAIN(i)*acpi_slit->localities+PROXIMITY_DOMAIN(j)) = 10 + MIN(254, 5*ABS(i-j)); in sys_fw_init()
678 cp = acpi_slit->entry + acpi_slit->localities*acpi_slit->localities; in sys_fw_init()
679 acpi_checksum(&acpi_slit->header, cp - (char*)acpi_slit); in sys_fw_init()
740 for (checksum=0, cp=(char*)sal_systab; cp < (char *)efi_memmap; ++cp) in sys_fw_init()
741 checksum += *cp; in sys_fw_init()