Lines Matching refs:val32
347 u32 val32; in read_template_version() local
351 rc = read_afu_info(dev, fn, OCXL_DVSEC_TEMPL_VERSION, &val32); in read_template_version()
355 *len = EXTRACT_BITS(val32, 16, 31); in read_template_version()
356 major = EXTRACT_BITS(val32, 8, 15); in read_template_version()
357 minor = EXTRACT_BITS(val32, 0, 7); in read_template_version()
551 u32 val32; in read_afu_lpc_memory_info() local
572 rc = read_afu_info(dev, fn, OCXL_DVSEC_TEMPL_ALL_MEM_SZ, &val32); in read_afu_lpc_memory_info()
576 val32 = EXTRACT_BITS(val32, 0, 7); in read_afu_lpc_memory_info()
577 if (!val32) in read_afu_lpc_memory_info()
590 total_mem_size = 1ull << val32; in read_afu_lpc_memory_info()
592 rc = read_afu_info(dev, fn, OCXL_DVSEC_TEMPL_LPC_MEM_START, &val32); in read_afu_lpc_memory_info()
596 afu->lpc_mem_offset = val32; in read_afu_lpc_memory_info()
598 rc = read_afu_info(dev, fn, OCXL_DVSEC_TEMPL_LPC_MEM_START + 4, &val32); in read_afu_lpc_memory_info()
602 afu->lpc_mem_offset |= (u64) val32 << 32; in read_afu_lpc_memory_info()
610 OCXL_DVSEC_TEMPL_LPC_MEM_SZ, &val32); in read_afu_lpc_memory_info()
613 lpc_mem_size = val32; in read_afu_lpc_memory_info()
616 OCXL_DVSEC_TEMPL_LPC_MEM_SZ + 4, &val32); in read_afu_lpc_memory_info()
619 lpc_mem_size |= (u64) val32 << 32; in read_afu_lpc_memory_info()
638 u32 val32; in ocxl_config_read_afu() local
654 rc = read_afu_info(dev, fn, OCXL_DVSEC_TEMPL_AFU_VERSION, &val32); in ocxl_config_read_afu()
657 afu->version_major = EXTRACT_BITS(val32, 24, 31); in ocxl_config_read_afu()
658 afu->version_minor = EXTRACT_BITS(val32, 16, 23); in ocxl_config_read_afu()
659 afu->afuc_type = EXTRACT_BITS(val32, 14, 15); in ocxl_config_read_afu()
660 afu->afum_type = EXTRACT_BITS(val32, 12, 13); in ocxl_config_read_afu()
661 afu->profile = EXTRACT_BITS(val32, 0, 7); in ocxl_config_read_afu()
743 u32 val32; in ocxl_config_set_afu_pasid() local
749 &val32); in ocxl_config_set_afu_pasid()
750 val32 &= ~OCXL_DVSEC_PASID_MASK; in ocxl_config_set_afu_pasid()
751 val32 |= pasid_base & OCXL_DVSEC_PASID_MASK; in ocxl_config_set_afu_pasid()
753 val32); in ocxl_config_set_afu_pasid()