Searched refs:EXTRACT_BITS (Results 1 – 2 of 2) sorted by relevance
/linux-6.12.1/drivers/misc/ocxl/ |
D | config.c | 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() [all …]
|
/linux-6.12.1/drivers/net/ethernet/sfc/ |
D | ef100.c | 47 #define EXTRACT_BITS(x, lbn, width) \ macro 58 return EXTRACT_BITS(le32_to_cpu(dword.u32[0]), lbn, width); in _ef100_pci_get_bar_bits_with_width() 267 *result = EXTRACT_BITS(temp, lbn, width); in _ef100_pci_get_config_bits_with_width()
|