Lines Matching refs:EXTRACT_BITS
9 #define EXTRACT_BITS(val, s, e) ((val & GENMASK(e, s)) >> s) macro
93 fn->max_pasid_log = EXTRACT_BITS(val, 8, 12); in read_pasid()
136 fn->max_afu_index = EXTRACT_BITS(val, 24, 29); in read_dvsec_function()
373 *len = EXTRACT_BITS(val32, 16, 31); in read_template_version()
374 major = EXTRACT_BITS(val32, 8, 15); in read_template_version()
375 minor = EXTRACT_BITS(val32, 0, 7); in read_template_version()
452 afu->global_mmio_bar = EXTRACT_BITS(val, 0, 2); in read_afu_mmio()
453 afu->global_mmio_offset = EXTRACT_BITS(val, 16, 31) << 16; in read_afu_mmio()
471 afu->pp_mmio_bar = EXTRACT_BITS(val, 0, 2); in read_afu_mmio()
472 afu->pp_mmio_offset = EXTRACT_BITS(val, 16, 31) << 16; in read_afu_mmio()
502 afu->pasid_supported_log = EXTRACT_BITS(val8, 0, 4); in read_afu_control()
505 afu->actag_supported = EXTRACT_BITS(val16, 0, 11); in read_afu_control()
594 val32 = EXTRACT_BITS(val32, 0, 7); in read_afu_lpc_memory_info()
675 afu->version_major = EXTRACT_BITS(val32, 24, 31); in ocxl_config_read_afu()
676 afu->version_minor = EXTRACT_BITS(val32, 16, 23); in ocxl_config_read_afu()
677 afu->afuc_type = EXTRACT_BITS(val32, 14, 15); in ocxl_config_read_afu()
678 afu->afum_type = EXTRACT_BITS(val32, 12, 13); in ocxl_config_read_afu()
679 afu->profile = EXTRACT_BITS(val32, 0, 7); in ocxl_config_read_afu()