/kernel/linux/linux-5.10/fs/ocfs2/ |
H A D | reservations.c | 41 static unsigned int ocfs2_resv_window_bits(struct ocfs2_reservation_map *resmap, in ocfs2_resv_window_bits() argument 44 struct ocfs2_super *osb = resmap->m_osb; in ocfs2_resv_window_bits() 68 static inline int ocfs2_resmap_disabled(struct ocfs2_reservation_map *resmap) in ocfs2_resmap_disabled() argument 70 if (resmap->m_osb->osb_resv_level == 0) in ocfs2_resmap_disabled() 75 static void ocfs2_dump_resv(struct ocfs2_reservation_map *resmap) in ocfs2_dump_resv() argument 77 struct ocfs2_super *osb = resmap->m_osb; in ocfs2_dump_resv() 82 mlog(ML_NOTICE, "Dumping resmap for device %s. Bitmap length: %u\n", in ocfs2_dump_resv() 83 osb->dev_str, resmap->m_bitmap_len); in ocfs2_dump_resv() 85 node = rb_first(&resmap->m_reservations); in ocfs2_dump_resv() 101 list_for_each_entry(resv, &resmap in ocfs2_dump_resv() 112 ocfs2_validate_resmap_bits(struct ocfs2_reservation_map *resmap, int i, struct ocfs2_alloc_reservation *resv) ocfs2_validate_resmap_bits() argument 133 ocfs2_check_resmap(struct ocfs2_reservation_map *resmap) ocfs2_check_resmap() argument 183 ocfs2_check_resmap(struct ocfs2_reservation_map *resmap) ocfs2_check_resmap() argument 203 ocfs2_resmap_init(struct ocfs2_super *osb, struct ocfs2_reservation_map *resmap) ocfs2_resmap_init() argument 216 ocfs2_resv_mark_lru(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv) ocfs2_resv_mark_lru() argument 233 ocfs2_resv_remove(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv) ocfs2_resv_remove() argument 243 __ocfs2_resv_discard(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv) __ocfs2_resv_discard() argument 259 ocfs2_resv_discard(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv) ocfs2_resv_discard() argument 269 ocfs2_resmap_clear_all_resv(struct ocfs2_reservation_map *resmap) ocfs2_resmap_clear_all_resv() argument 283 ocfs2_resmap_restart(struct ocfs2_reservation_map *resmap, unsigned int clen, char *disk_bitmap) ocfs2_resmap_restart() argument 298 ocfs2_resmap_uninit(struct ocfs2_reservation_map *resmap) ocfs2_resmap_uninit() argument 303 ocfs2_resv_insert(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *new) ocfs2_resv_insert() argument 356 ocfs2_find_resv_lhs(struct ocfs2_reservation_map *resmap, unsigned int goal) ocfs2_find_resv_lhs() argument 403 ocfs2_resmap_find_free_bits(struct ocfs2_reservation_map *resmap, unsigned int wanted, unsigned int search_start, unsigned int search_len, unsigned int *rstart, unsigned int *rlen) ocfs2_resmap_find_free_bits() argument 459 __ocfs2_resv_find_window(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, unsigned int goal, unsigned int wanted) __ocfs2_resv_find_window() argument 619 ocfs2_cannibalize_resv(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, unsigned int wanted) ocfs2_cannibalize_resv() argument 680 ocfs2_resv_find_window(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, unsigned int wanted) ocfs2_resv_find_window() argument 716 ocfs2_resmap_resv_bits(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, int *cstart, int *clen) ocfs2_resmap_resv_bits() argument 757 ocfs2_adjust_resv_from_alloc(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, unsigned int start, unsigned int end) ocfs2_adjust_resv_from_alloc() argument 785 ocfs2_resmap_claimed_bits(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, u32 cstart, u32 clen) ocfs2_resmap_claimed_bits() argument [all...] |
H A D | reservations.h | 66 * @resmap: 72 void ocfs2_resv_discard(struct ocfs2_reservation_map *resmap, 78 * @resmap: struct ocfs2_reservation_map to initialize 87 struct ocfs2_reservation_map *resmap); 91 * @resmap: reservations bitmap 93 * @disk_bitmap: the disk bitmap this resmap should refer to. 102 void ocfs2_resmap_restart(struct ocfs2_reservation_map *resmap, 107 * @resmap: the struct ocfs2_reservation_map to uninitialize 109 void ocfs2_resmap_uninit(struct ocfs2_reservation_map *resmap); 113 * @resmap [all...] |
H A D | localalloc.c | 833 struct ocfs2_reservation_map *resmap = &osb->osb_la_resmap; in ocfs2_local_alloc_find_clear_bits() local 848 if (ocfs2_resmap_resv_bits(resmap, resv, &bitoff, &numfound) == 0) { in ocfs2_local_alloc_find_clear_bits() 903 ocfs2_resv_discard(resmap, resv); in ocfs2_local_alloc_find_clear_bits()
|
/kernel/linux/linux-6.6/fs/ocfs2/ |
H A D | reservations.c | 39 static unsigned int ocfs2_resv_window_bits(struct ocfs2_reservation_map *resmap, in ocfs2_resv_window_bits() argument 42 struct ocfs2_super *osb = resmap->m_osb; in ocfs2_resv_window_bits() 66 static inline int ocfs2_resmap_disabled(struct ocfs2_reservation_map *resmap) in ocfs2_resmap_disabled() argument 68 if (resmap->m_osb->osb_resv_level == 0) in ocfs2_resmap_disabled() 73 static void ocfs2_dump_resv(struct ocfs2_reservation_map *resmap) in ocfs2_dump_resv() argument 75 struct ocfs2_super *osb = resmap->m_osb; in ocfs2_dump_resv() 80 mlog(ML_NOTICE, "Dumping resmap for device %s. Bitmap length: %u\n", in ocfs2_dump_resv() 81 osb->dev_str, resmap->m_bitmap_len); in ocfs2_dump_resv() 83 node = rb_first(&resmap->m_reservations); in ocfs2_dump_resv() 99 list_for_each_entry(resv, &resmap in ocfs2_dump_resv() 110 ocfs2_validate_resmap_bits(struct ocfs2_reservation_map *resmap, int i, struct ocfs2_alloc_reservation *resv) ocfs2_validate_resmap_bits() argument 131 ocfs2_check_resmap(struct ocfs2_reservation_map *resmap) ocfs2_check_resmap() argument 181 ocfs2_check_resmap(struct ocfs2_reservation_map *resmap) ocfs2_check_resmap() argument 201 ocfs2_resmap_init(struct ocfs2_super *osb, struct ocfs2_reservation_map *resmap) ocfs2_resmap_init() argument 212 ocfs2_resv_mark_lru(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv) ocfs2_resv_mark_lru() argument 229 ocfs2_resv_remove(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv) ocfs2_resv_remove() argument 239 __ocfs2_resv_discard(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv) __ocfs2_resv_discard() argument 255 ocfs2_resv_discard(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv) ocfs2_resv_discard() argument 265 ocfs2_resmap_clear_all_resv(struct ocfs2_reservation_map *resmap) ocfs2_resmap_clear_all_resv() argument 279 ocfs2_resmap_restart(struct ocfs2_reservation_map *resmap, unsigned int clen, char *disk_bitmap) ocfs2_resmap_restart() argument 294 ocfs2_resmap_uninit(struct ocfs2_reservation_map *resmap) ocfs2_resmap_uninit() argument 299 ocfs2_resv_insert(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *new) ocfs2_resv_insert() argument 352 ocfs2_find_resv_lhs(struct ocfs2_reservation_map *resmap, unsigned int goal) ocfs2_find_resv_lhs() argument 399 ocfs2_resmap_find_free_bits(struct ocfs2_reservation_map *resmap, unsigned int wanted, unsigned int search_start, unsigned int search_len, unsigned int *rstart, unsigned int *rlen) ocfs2_resmap_find_free_bits() argument 455 __ocfs2_resv_find_window(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, unsigned int goal, unsigned int wanted) __ocfs2_resv_find_window() argument 615 ocfs2_cannibalize_resv(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, unsigned int wanted) ocfs2_cannibalize_resv() argument 676 ocfs2_resv_find_window(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, unsigned int wanted) ocfs2_resv_find_window() argument 712 ocfs2_resmap_resv_bits(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, int *cstart, int *clen) ocfs2_resmap_resv_bits() argument 753 ocfs2_adjust_resv_from_alloc(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, unsigned int start, unsigned int end) ocfs2_adjust_resv_from_alloc() argument 781 ocfs2_resmap_claimed_bits(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, u32 cstart, u32 clen) ocfs2_resmap_claimed_bits() argument [all...] |
H A D | reservations.h | 64 * @resmap: 70 void ocfs2_resv_discard(struct ocfs2_reservation_map *resmap, 76 * @osb: struct ocfs2_super to be saved in resmap 77 * @resmap: struct ocfs2_reservation_map to initialize 80 struct ocfs2_reservation_map *resmap); 84 * @resmap: reservations bitmap 86 * @disk_bitmap: the disk bitmap this resmap should refer to. 95 void ocfs2_resmap_restart(struct ocfs2_reservation_map *resmap, 100 * @resmap: the struct ocfs2_reservation_map to uninitialize 102 void ocfs2_resmap_uninit(struct ocfs2_reservation_map *resmap); [all...] |
H A D | localalloc.c | 831 struct ocfs2_reservation_map *resmap = &osb->osb_la_resmap; in ocfs2_local_alloc_find_clear_bits() local 846 if (ocfs2_resmap_resv_bits(resmap, resv, &bitoff, &numfound) == 0) { in ocfs2_local_alloc_find_clear_bits() 901 ocfs2_resv_discard(resmap, resv); in ocfs2_local_alloc_find_clear_bits()
|
/kernel/linux/linux-5.10/sound/pci/au88x0/ |
H A D | au88x0.h | 238 static int vortex_adb_checkinout(vortex_t * vortex, int resmap[], int out,
|
H A D | au88x0_core.c | 1996 resmap: resource map to be used. If NULL means that we want to allocate 2002 vortex_adb_checkinout(vortex_t * vortex, int resmap[], int out, int restype) in vortex_adb_checkinout() argument 2015 if (resmap != NULL) in vortex_adb_checkinout() 2016 resmap[restype] |= (1 << i); in vortex_adb_checkinout() 2028 if (resmap == NULL) in vortex_adb_checkinout() 2032 if (resmap[restype] & (1 << i)) { in vortex_adb_checkinout() 2033 resmap[restype] &= ~(1 << i); in vortex_adb_checkinout()
|
/kernel/linux/linux-6.6/sound/pci/au88x0/ |
H A D | au88x0.h | 238 static int vortex_adb_checkinout(vortex_t * vortex, int resmap[], int out,
|
H A D | au88x0_core.c | 1996 resmap: resource map to be used. If NULL means that we want to allocate 2002 vortex_adb_checkinout(vortex_t * vortex, int resmap[], int out, int restype) in vortex_adb_checkinout() argument 2015 if (resmap != NULL) in vortex_adb_checkinout() 2016 resmap[restype] |= (1 << i); in vortex_adb_checkinout() 2028 if (resmap == NULL) in vortex_adb_checkinout() 2032 if (resmap[restype] & (1 << i)) { in vortex_adb_checkinout() 2033 resmap[restype] &= ~(1 << i); in vortex_adb_checkinout()
|