Lines Matching full:segment

11 	u32 seg_id = cache_seg->segment.seg_id;  in get_seg_info_addr()
42 u32 seg_id = cache_seg->segment.seg_id; in cache_seg_info_load()
67 pcache_dev_err(pcache, "can't read segment info of segment: %u, ret: %d\n", in cache_seg_info_load()
68 cache_seg->segment.seg_id, ret); in cache_seg_info_load()
110 * cache_seg_ctrl_write - write cache segment control information
111 * @seg: the cache segment to update
113 * This function writes the control information of a cache segment to media.
121 * to the segment is dropped in cache_seg_put().
167 * cache_seg_set_next_seg - Sets the ID of the next segment
168 * @cache_seg: Pointer to the cache segment structure.
169 * @seg_id: The segment ID to set as the next segment.
172 * through next_seg. When loading a pcache_cache, the first cache segment can
188 struct pcache_segment *segment = &cache_seg->segment; in cache_seg_init() local
202 pcache_segment_init(cache_dev, segment, &seg_options); in cache_seg_init()
216 /* clear outdated kset in segment */ in cache_seg_init()
217 memcpy_flushcache(segment->data, &pcache_empty_kset, sizeof(struct pcache_cache_kset_onmedia)); in cache_seg_init()
231 * get_cache_segment - Retrieves a free cache segment from the cache.
234 * This function attempts to find a free cache segment that can be used.
235 * It locks the segment map and checks for the next available segment ID.
236 * If a free segment is found, it initializes it and returns a pointer to the
237 * cache segment structure. Returns NULL if no segments are available.