/linux/drivers/md/dm-vdo/indexer/ |
H A D | geometry.c | 62 struct index_geometry *geometry; in uds_make_index_geometry() local 64 result = vdo_allocate(1, struct index_geometry, "geometry", &geometry); in uds_make_index_geometry() 68 geometry->bytes_per_page = bytes_per_page; in uds_make_index_geometry() 69 geometry->record_pages_per_chapter = record_pages_per_chapter; in uds_make_index_geometry() 70 geometry->chapters_per_volume = chapters_per_volume; in uds_make_index_geometry() 71 geometry->sparse_chapters_per_volume = sparse_chapters_per_volume; in uds_make_index_geometry() 72 geometry->dense_chapters_per_volume = chapters_per_volume - sparse_chapters_per_volume; in uds_make_index_geometry() 73 geometry->remapped_virtual = remapped_virtual; in uds_make_index_geometry() 74 geometry->remapped_physical = remapped_physical; in uds_make_index_geometry() 76 geometry->records_per_page = bytes_per_page / BYTES_PER_RECORD; in uds_make_index_geometry() [all …]
|
H A D | config.c | 32 struct index_geometry *geometry = user->geometry; in are_matching_configurations() local 35 if (saved_geometry->record_pages_per_chapter != geometry->record_pages_per_chapter) { in are_matching_configurations() 38 geometry->record_pages_per_chapter); in are_matching_configurations() 42 if (saved_geometry->chapters_per_volume != geometry->chapters_per_volume) { in are_matching_configurations() 45 geometry->chapters_per_volume); in are_matching_configurations() 49 if (saved_geometry->sparse_chapters_per_volume != geometry->sparse_chapters_per_volume) { in are_matching_configurations() 52 geometry->sparse_chapters_per_volume); in are_matching_configurations() 69 if (saved_geometry->bytes_per_page != geometry->bytes_per_page) { in are_matching_configurations() 71 saved_geometry->bytes_per_page, geometry->bytes_per_page); in are_matching_configurations() 98 struct index_geometry geometry; in uds_validate_config_contents() local [all …]
|
H A D | chapter-index.c | 17 const struct index_geometry *geometry, u64 volume_nonce) in uds_make_open_chapter_index() argument 31 memory_size = ((geometry->index_pages_per_chapter + 1) * geometry->bytes_per_page); in uds_make_open_chapter_index() 32 index->geometry = geometry; in uds_make_open_chapter_index() 35 geometry->delta_lists_per_chapter, in uds_make_open_chapter_index() 36 geometry->chapter_mean_delta, in uds_make_open_chapter_index() 37 geometry->chapter_payload_bits, in uds_make_open_chapter_index() 82 const struct index_geometry *geometry = chapter_index->geometry; in uds_put_open_chapter_index_record() local 84 u32 record_pages = geometry->record_pages_per_chapter; in uds_put_open_chapter_index_record() 92 address = uds_hash_to_chapter_delta_address(name, geometry); in uds_put_open_chapter_index_record() 93 list_number = uds_hash_to_chapter_delta_list(name, geometry); in uds_put_open_chapter_index_record() [all …]
|
H A D | volume.c | 86 static inline u32 map_to_page_number(struct index_geometry *geometry, u32 physical_page) in map_to_page_number() argument 88 return (physical_page - HEADER_PAGES_PER_VOLUME) % geometry->pages_per_chapter; in map_to_page_number() 91 static inline u32 map_to_chapter_number(struct index_geometry *geometry, u32 physical_page) in map_to_chapter_number() argument 93 return (physical_page - HEADER_PAGES_PER_VOLUME) / geometry->pages_per_chapter; in map_to_chapter_number() 96 static inline bool is_record_page(struct index_geometry *geometry, u32 physical_page) in is_record_page() argument 98 return map_to_page_number(geometry, physical_page) >= geometry->index_pages_per_chapter; in is_record_page() 101 static u32 map_to_physical_page(const struct index_geometry *geometry, u32 chapter, u32 page) in map_to_physical_page() argument 104 return HEADER_PAGES_PER_VOLUME + (geometry->pages_per_chapter * chapter) + page; in map_to_physical_page() 425 struct index_geometry *geometry = volume->geometry; in init_chapter_index_page() local 428 result = uds_initialize_chapter_index_page(chapter_index_page, geometry, in init_chapter_index_page() [all …]
|
H A D | index-page-map.c | 30 static inline u32 get_entry_count(const struct index_geometry *geometry) in get_entry_count() argument 32 return geometry->chapters_per_volume * (geometry->index_pages_per_chapter - 1); in get_entry_count() 35 int uds_make_index_page_map(const struct index_geometry *geometry, in uds_make_index_page_map() argument 45 map->geometry = geometry; in uds_make_index_page_map() 46 map->entries_per_chapter = geometry->index_pages_per_chapter - 1; in uds_make_index_page_map() 47 result = vdo_allocate(get_entry_count(geometry), u16, "Index Page Map Entries", in uds_make_index_page_map() 83 u32 delta_list_number = uds_hash_to_chapter_delta_list(name, map->geometry); in uds_find_index_page_number() 105 map->geometry->delta_lists_per_chapter - 1); in uds_get_list_number_bounds() 108 u64 uds_compute_index_page_map_save_size(const struct index_geometry *geometry) in uds_compute_index_page_map_save_size() argument 110 return PAGE_MAP_MAGIC_LENGTH + sizeof(u64) + sizeof(u16) * get_entry_count(geometry); in uds_compute_index_page_map_save_size() [all …]
|
H A D | geometry.h | 107 void uds_free_index_geometry(struct index_geometry *geometry); 109 u32 __must_check uds_map_to_physical_chapter(const struct index_geometry *geometry, 117 uds_is_reduced_index_geometry(const struct index_geometry *geometry) in uds_is_reduced_index_geometry() argument 119 return !!(geometry->chapters_per_volume & 1); in uds_is_reduced_index_geometry() 123 uds_is_sparse_index_geometry(const struct index_geometry *geometry) in uds_is_sparse_index_geometry() argument 125 return geometry->sparse_chapters_per_volume > 0; in uds_is_sparse_index_geometry() 128 bool __must_check uds_has_sparse_chapters(const struct index_geometry *geometry, 132 bool __must_check uds_is_chapter_sparse(const struct index_geometry *geometry, 137 u32 __must_check uds_chapters_to_expire(const struct index_geometry *geometry,
|
H A D | hash-utils.h | 47 const struct index_geometry *geometry) in uds_hash_to_chapter_delta_list() argument 49 return ((uds_extract_chapter_index_bytes(name) >> geometry->chapter_address_bits) & in uds_hash_to_chapter_delta_list() 50 ((1 << geometry->chapter_delta_list_bits) - 1)); in uds_hash_to_chapter_delta_list() 55 const struct index_geometry *geometry) in uds_hash_to_chapter_delta_address() argument 57 return uds_extract_chapter_index_bytes(name) & ((1 << geometry->chapter_address_bits) - 1); in uds_hash_to_chapter_delta_address()
|
H A D | chapter-index.h | 25 const struct index_geometry *geometry; member 33 const struct index_geometry *geometry, 50 const struct index_geometry *geometry, 54 const struct index_geometry *geometry); 57 const struct index_geometry *geometry,
|
H A D | index.c | 80 return uds_is_chapter_sparse(zone->index->volume->geometry, in is_zone_chapter_sparse() 157 !uds_is_sparse_index_geometry(zone->index->volume->geometry)) in simulate_index_zone_barrier_message() 281 expire_chapters = uds_chapters_to_expire(zone->index->volume->geometry, in open_next_chapter() 356 chapter = uds_map_to_physical_chapter(volume->geometry, virtual_chapter); in search_sparse_cache_in_zone() 473 } else if (uds_is_sparse_index_geometry(zone->index->volume->geometry) && in search_index_zone() 648 const struct index_geometry *geometry) in initialize_index_queues() argument 661 if ((index->zone_count > 1) && uds_is_sparse_index_geometry(geometry)) { in initialize_index_queues() 723 uds_chapters_to_expire(index->volume->geometry, in close_chapters() 765 (sizeof(struct uds_volume_record) * index->volume->geometry->records_per_chapter); in make_chapter_writer() 785 index->volume->geometry, in make_chapter_writer() [all …]
|
H A D | sparse-cache.c | 155 const struct index_geometry *geometry; member 218 const struct index_geometry *geometry) in initialize_cached_chapter_index() argument 223 chapter->index_pages_count = geometry->index_pages_per_chapter; in initialize_cached_chapter_index() 258 int uds_make_sparse_cache(const struct index_geometry *geometry, unsigned int capacity, in uds_make_sparse_cache() argument 271 cache->geometry = geometry; in uds_make_sparse_cache() 285 result = initialize_cached_chapter_index(&cache->chapters[i], geometry); in uds_make_sparse_cache() 559 const struct index_geometry *geometry, in search_cached_chapter_index() argument 565 uds_map_to_physical_chapter(geometry, chapter->virtual_chapter); in search_cached_chapter_index() 571 return uds_search_chapter_index_page(index_page, geometry, name, in search_cached_chapter_index() 596 result = search_cached_chapter_index(chapter, cache->geometry, in uds_search_sparse_cache()
|
H A D | index-page-map.h | 19 const struct index_geometry *geometry; member 25 int __must_check uds_make_index_page_map(const struct index_geometry *geometry, 48 u64 uds_compute_index_page_map_save_size(const struct index_geometry *geometry);
|
H A D | open-chapter.c | 63 int uds_make_open_chapter(const struct index_geometry *geometry, unsigned int zone_count, in uds_make_open_chapter() argument 68 size_t capacity = geometry->records_per_chapter / zone_count; in uds_make_open_chapter() 233 records_per_chapter = index->geometry->records_per_chapter; in fill_delta_chapter_index() 234 records_per_page = index->geometry->records_per_page; in fill_delta_chapter_index() 348 u64 uds_compute_saved_open_chapter_size(struct index_geometry *geometry) in uds_compute_saved_open_chapter_size() argument 350 unsigned int records_per_chapter = geometry->records_per_chapter; in uds_compute_saved_open_chapter_size()
|
H A D | volume-index.c | 210 struct index_geometry *geometry = config->geometry; in compute_volume_sub_index_parameters() local 211 u64 records_per_chapter = geometry->records_per_chapter; in compute_volume_sub_index_parameters() 213 params->chapter_count = geometry->chapters_per_volume; in compute_volume_sub_index_parameters() 220 if (uds_is_reduced_index_geometry(geometry)) in compute_volume_sub_index_parameters() 326 split->hook_geometry = *config->geometry; in split_configuration() 327 split->hook_config.geometry = &split->hook_geometry; in split_configuration() 329 split->non_hook_geometry = *config->geometry; in split_configuration() 330 split->non_hook_config.geometry = &split->non_hook_geometry; in split_configuration() 333 sparse_chapters = config->geometry->sparse_chapters_per_volume; in split_configuration() 334 dense_chapters = config->geometry->chapters_per_volume - sparse_chapters; in split_configuration() [all …]
|
H A D | open-chapter.h | 46 int __must_check uds_make_open_chapter(const struct index_geometry *geometry, 77 u64 uds_compute_saved_open_chapter_size(struct index_geometry *geometry);
|
/linux/Documentation/fb/ |
H A D | viafb.modes | 30 geometry 640 480 640 480 32 33 geometry 480 640 480 640 32 timings 39722 72 24 19 1 48 3 endmode 54 geometry 640 480 640 480 32 timings 31747 120 16 16 1 64 3 endmode 75 geometry 640 480 640 480 32 timings 27777 80 56 25 1 56 3 endmode 96 geometry 640 480 640 480 32 timings 23168 104 40 25 1 64 3 endmode 117 geometry 640 480 640 480 32 timings 19081 104 40 31 1 64 3 endmode 138 geometry 720 480 720 480 32 timings 37202 88 16 14 1 72 3 endmode 159 geometry 800 480 800 480 32 timings 33805 96 24 10 3 72 7 endmode 180 geometry 720 576 720 576 32 timings 30611 96 24 17 1 72 3 endmode 201 geometry 800 600 800 600 32 [all …]
|
/linux/Documentation/devicetree/bindings/powerpc/fsl/ |
H A D | pamu.txt | 57 - fsl,primary-cache-geometry 59 Two cells that specify the geometry of the primary PAMU 63 - fsl,secondary-cache-geometry 65 Two cells that specify the geometry of the secondary PAMU 107 fsl,primary-cache-geometry = <32 1>; 108 fsl,secondary-cache-geometry = <128 2>; 113 fsl,primary-cache-geometry = <32 1>; 114 fsl,secondary-cache-geometry = <128 2>; 119 fsl,primary-cache-geometry = <32 1>; 120 fsl,secondary-cache-geometry = <128 2>; [all …]
|
/linux/drivers/iommu/ |
H A D | sprd-iommu.c | 131 return ((domain->geometry.aperture_end - in sprd_iommu_pgt_size() 132 domain->geometry.aperture_start + 1) >> in sprd_iommu_pgt_size() 146 dom->domain.geometry.aperture_start = 0; in sprd_iommu_domain_alloc_paging() 147 dom->domain.geometry.aperture_end = SZ_256M - 1; in sprd_iommu_domain_alloc_paging() 148 dom->domain.geometry.force_aperture = true; in sprd_iommu_domain_alloc_paging() 164 val = dom->domain.geometry.aperture_start >> SPRD_IOMMU_PAGE_SHIFT; in sprd_iommu_first_vpn() 179 val = (dom->domain.geometry.aperture_end - in sprd_iommu_vpn_range() 180 dom->domain.geometry.aperture_start) >> SPRD_IOMMU_PAGE_SHIFT; in sprd_iommu_vpn_range() 294 unsigned long start = domain->geometry.aperture_start; in sprd_iommu_map() 295 unsigned long end = domain->geometry.aperture_end; in sprd_iommu_map() [all …]
|
H A D | fsl_pamu_domain.c | 175 if (iova < domain->geometry.aperture_start || in fsl_pamu_iova_to_phys() 176 iova > domain->geometry.aperture_end) in fsl_pamu_iova_to_phys() 218 dma_domain->iommu_domain. geometry.aperture_start = 0; in fsl_pamu_domain_alloc() 219 dma_domain->iommu_domain.geometry.aperture_end = (1ULL << 36) - 1; in fsl_pamu_domain_alloc() 220 dma_domain->iommu_domain.geometry.force_aperture = true; in fsl_pamu_domain_alloc()
|
/linux/arch/powerpc/boot/dts/fsl/ |
H A D | p5040si-post.dtsi | 274 fsl,primary-cache-geometry = <32 1>; 275 fsl,secondary-cache-geometry = <128 2>; 280 fsl,primary-cache-geometry = <32 1>; 281 fsl,secondary-cache-geometry = <128 2>; 286 fsl,primary-cache-geometry = <32 1>; 287 fsl,secondary-cache-geometry = <128 2>; 292 fsl,primary-cache-geometry = <32 1>; 293 fsl,secondary-cache-geometry = <128 2>; 298 fsl,primary-cache-geometry = <32 1>; 299 fsl,secondary-cache-geometry = <128 2>;
|
H A D | p4080si-post.dtsi | 323 fsl,primary-cache-geometry = <32 1>; 324 fsl,secondary-cache-geometry = <128 2>; 329 fsl,primary-cache-geometry = <32 1>; 330 fsl,secondary-cache-geometry = <128 2>; 335 fsl,primary-cache-geometry = <32 1>; 336 fsl,secondary-cache-geometry = <128 2>; 341 fsl,primary-cache-geometry = <32 1>; 342 fsl,secondary-cache-geometry = <128 2>; 347 fsl,primary-cache-geometry = <32 1>; 348 fsl,secondary-cache-geometry = <128 2>;
|
H A D | p3041si-post.dtsi | 315 fsl,primary-cache-geometry = <32 1>; 316 fsl,secondary-cache-geometry = <128 2>; 321 fsl,primary-cache-geometry = <32 1>; 322 fsl,secondary-cache-geometry = <128 2>; 327 fsl,primary-cache-geometry = <32 1>; 328 fsl,secondary-cache-geometry = <128 2>; 333 fsl,primary-cache-geometry = <32 1>; 334 fsl,secondary-cache-geometry = <128 2>;
|
H A D | p2041si-post.dtsi | 288 fsl,primary-cache-geometry = <32 1>; 289 fsl,secondary-cache-geometry = <128 2>; 294 fsl,primary-cache-geometry = <32 1>; 295 fsl,secondary-cache-geometry = <128 2>; 300 fsl,primary-cache-geometry = <32 1>; 301 fsl,secondary-cache-geometry = <128 2>; 306 fsl,primary-cache-geometry = <32 1>; 307 fsl,secondary-cache-geometry = <128 2>;
|
H A D | p5020si-post.dtsi | 320 fsl,primary-cache-geometry = <32 1>; 321 fsl,secondary-cache-geometry = <128 2>; 326 fsl,primary-cache-geometry = <32 1>; 327 fsl,secondary-cache-geometry = <128 2>; 332 fsl,primary-cache-geometry = <32 1>; 333 fsl,secondary-cache-geometry = <128 2>; 338 fsl,primary-cache-geometry = <32 1>; 339 fsl,secondary-cache-geometry = <128 2>;
|
/linux/Documentation/scsi/ |
H A D | aha152x.rst | 130 The number of cylinders/heads/sectors is called geometry and is required 135 geometry just to be able to support that addressing scheme. The geometry 137 do with the real/physical geometry of the disk (which is usually 143 the right geometry to be able to interpret it. 149 The AHA-1522 BIOS calculates the geometry by fixing the number of heads 167 geometry right in most cases: 173 - take current geometry from the partition table
|
/linux/drivers/md/dm-vdo/ |
H A D | encodings.h | 801 vdo_get_index_region_start(struct volume_geometry geometry) in vdo_get_index_region_start() argument 803 return geometry.regions[VDO_INDEX_REGION].start_block; in vdo_get_index_region_start() 813 vdo_get_data_region_start(struct volume_geometry geometry) in vdo_get_data_region_start() argument 815 return geometry.regions[VDO_DATA_REGION].start_block; in vdo_get_data_region_start() 825 vdo_get_index_region_size(struct volume_geometry geometry) in vdo_get_index_region_size() argument 827 return vdo_get_data_region_start(geometry) - in vdo_get_index_region_size() 828 vdo_get_index_region_start(geometry); in vdo_get_index_region_size() 832 struct volume_geometry *geometry); 1281 struct volume_geometry *geometry,
|