/kernel/linux/linux-5.10/fs/hfsplus/ |
H A D | brec.c | 92 end_rec_off = tree->node_size - (node->num_recs + 1) * 2; in hfs_brec_insert() 109 node->num_recs++; in hfs_brec_insert() 112 offsetof(struct hfs_bnode_desc, num_recs), in hfs_brec_insert() 113 node->num_recs); in hfs_brec_insert() 189 end_off = tree->node_size - (node->num_recs + 1) * 2; in hfs_brec_remove() 198 if (!--node->num_recs) { in hfs_brec_remove() 212 offsetof(struct hfs_bnode_desc, num_recs), in hfs_brec_remove() 213 node->num_recs); in hfs_brec_remove() 240 int num_recs, new_rec_off, new_off, old_rec_off; in hfs_bnode_split() local 268 size = tree->node_size / 2 - node->num_recs * in hfs_bnode_split() [all...] |
H A D | bfind.c | 124 e = bnode->num_recs - 1; in __hfs_brec_find() 245 fd->record = bnode->num_recs - 1; in hfs_brec_goto() 261 while (cnt >= bnode->num_recs - fd->record) { in hfs_brec_goto() 262 cnt -= bnode->num_recs - fd->record; in hfs_brec_goto()
|
H A D | bnode.c | 308 desc.type, desc.height, be16_to_cpu(desc.num_recs)); in hfs_bnode_dump() 311 for (i = be16_to_cpu(desc.num_recs); i >= 0; off -= 2, i--) { in hfs_bnode_dump() 509 node->num_recs = be16_to_cpu(desc->num_recs); in hfs_bnode_find() 536 for (i = 1; i <= node->num_recs; off = next_off, i++) { in hfs_bnode_find()
|
H A D | btree.c | 329 node->num_recs = 1; in hfs_bmap_new_bmap() 335 desc.num_recs = cpu_to_be16(1); in hfs_bmap_new_bmap()
|
H A D | hfsplus_raw.h | 156 __be16 num_recs; member
|
/kernel/linux/linux-5.10/fs/hfs/ |
H A D | brec.c | 94 end_rec_off = tree->node_size - (node->num_recs + 1) * 2; in hfs_brec_insert() 111 node->num_recs++; in hfs_brec_insert() 113 hfs_bnode_write_u16(node, offsetof(struct hfs_bnode_desc, num_recs), node->num_recs); in hfs_brec_insert() 187 end_off = tree->node_size - (node->num_recs + 1) * 2; in hfs_brec_remove() 196 if (!--node->num_recs) { in hfs_brec_remove() 209 hfs_bnode_write_u16(node, offsetof(struct hfs_bnode_desc, num_recs), node->num_recs); in hfs_brec_remove() 236 int num_recs, new_rec_off, new_off, old_rec_off; in hfs_bnode_split() local 264 size = tree->node_size / 2 - node->num_recs * in hfs_bnode_split() [all...] |
H A D | bfind.c | 66 e = bnode->num_recs - 1; in __hfs_brec_find() 190 fd->record = bnode->num_recs - 1; in hfs_brec_goto() 206 while (cnt >= bnode->num_recs - fd->record) { in hfs_brec_goto() 207 cnt -= bnode->num_recs - fd->record; in hfs_brec_goto()
|
H A D | btree.h | 61 u16 num_recs; member 138 __be16 num_recs; /* (V) The number of records in this node */ member
|
H A D | bnode.c | 159 desc.type, desc.height, be16_to_cpu(desc.num_recs)); in hfs_bnode_dump() 162 for (i = be16_to_cpu(desc.num_recs); i >= 0; off -= 2, i--) { in hfs_bnode_dump() 357 node->num_recs = be16_to_cpu(desc->num_recs); in hfs_bnode_find() 384 for (i = 1; i <= node->num_recs; off = next_off, i++) { in hfs_bnode_find()
|
H A D | btree.c | 207 node->num_recs = 1; in hfs_bmap_new_bmap() 213 desc.num_recs = cpu_to_be16(1); in hfs_bmap_new_bmap()
|
/kernel/linux/linux-6.6/fs/hfs/ |
H A D | brec.c | 94 end_rec_off = tree->node_size - (node->num_recs + 1) * 2; in hfs_brec_insert() 111 node->num_recs++; in hfs_brec_insert() 113 hfs_bnode_write_u16(node, offsetof(struct hfs_bnode_desc, num_recs), node->num_recs); in hfs_brec_insert() 187 end_off = tree->node_size - (node->num_recs + 1) * 2; in hfs_brec_remove() 196 if (!--node->num_recs) { in hfs_brec_remove() 209 hfs_bnode_write_u16(node, offsetof(struct hfs_bnode_desc, num_recs), node->num_recs); in hfs_brec_remove() 236 int num_recs, new_rec_off, new_off, old_rec_off; in hfs_bnode_split() local 264 size = tree->node_size / 2 - node->num_recs * in hfs_bnode_split() [all...] |
H A D | bfind.c | 64 e = bnode->num_recs - 1; in __hfs_brec_find() 188 fd->record = bnode->num_recs - 1; in hfs_brec_goto() 204 while (cnt >= bnode->num_recs - fd->record) { in hfs_brec_goto() 205 cnt -= bnode->num_recs - fd->record; in hfs_brec_goto()
|
H A D | bnode.c | 152 desc.type, desc.height, be16_to_cpu(desc.num_recs)); in hfs_bnode_dump() 155 for (i = be16_to_cpu(desc.num_recs); i >= 0; off -= 2, i--) { in hfs_bnode_dump() 347 node->num_recs = be16_to_cpu(desc->num_recs); in hfs_bnode_find() 374 for (i = 1; i <= node->num_recs; off = next_off, i++) { in hfs_bnode_find()
|
H A D | btree.h | 61 u16 num_recs; member 138 __be16 num_recs; /* (V) The number of records in this node */ member
|
H A D | btree.c | 210 node->num_recs = 1; in hfs_bmap_new_bmap() 216 desc.num_recs = cpu_to_be16(1); in hfs_bmap_new_bmap()
|
/kernel/linux/linux-6.6/fs/hfsplus/ |
H A D | brec.c | 92 end_rec_off = tree->node_size - (node->num_recs + 1) * 2; in hfs_brec_insert() 109 node->num_recs++; in hfs_brec_insert() 112 offsetof(struct hfs_bnode_desc, num_recs), in hfs_brec_insert() 113 node->num_recs); in hfs_brec_insert() 189 end_off = tree->node_size - (node->num_recs + 1) * 2; in hfs_brec_remove() 198 if (!--node->num_recs) { in hfs_brec_remove() 212 offsetof(struct hfs_bnode_desc, num_recs), in hfs_brec_remove() 213 node->num_recs); in hfs_brec_remove() 240 int num_recs, new_rec_off, new_off, old_rec_off; in hfs_bnode_split() local 268 size = tree->node_size / 2 - node->num_recs * in hfs_bnode_split() [all...] |
H A D | bfind.c | 124 e = bnode->num_recs - 1; in __hfs_brec_find() 245 fd->record = bnode->num_recs - 1; in hfs_brec_goto() 261 while (cnt >= bnode->num_recs - fd->record) { in hfs_brec_goto() 262 cnt -= bnode->num_recs - fd->record; in hfs_brec_goto()
|
H A D | bnode.c | 301 desc.type, desc.height, be16_to_cpu(desc.num_recs)); in hfs_bnode_dump() 304 for (i = be16_to_cpu(desc.num_recs); i >= 0; off -= 2, i--) { in hfs_bnode_dump() 498 node->num_recs = be16_to_cpu(desc->num_recs); in hfs_bnode_find() 525 for (i = 1; i <= node->num_recs; off = next_off, i++) { in hfs_bnode_find()
|
H A D | btree.c | 330 node->num_recs = 1; in hfs_bmap_new_bmap() 336 desc.num_recs = cpu_to_be16(1); in hfs_bmap_new_bmap()
|
H A D | hfsplus_raw.h | 156 __be16 num_recs; member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ras_eeprom.c | 311 control->num_recs = (hdr->tbl_size - EEPROM_TABLE_HEADER_SIZE) / in amdgpu_ras_eeprom_init() 317 control->num_recs); in amdgpu_ras_eeprom_init() 321 if (ras->bad_page_cnt_threshold > control->num_recs) { in amdgpu_ras_eeprom_init() 511 ((control->num_recs + num) >= ras->bad_page_cnt_threshold)) { in amdgpu_ras_eeprom_process_recods() 514 control->num_recs + num, ras->bad_page_cnt_threshold); in amdgpu_ras_eeprom_process_recods() 588 control->num_recs += num; in amdgpu_ras_eeprom_process_recods() 589 control->num_recs %= EEPROM_MAX_RECORD_NUM; in amdgpu_ras_eeprom_process_recods() 593 control->num_recs * EEPROM_TABLE_RECORD_SIZE; in amdgpu_ras_eeprom_process_recods()
|
H A D | amdgpu_ras_eeprom.h | 48 unsigned int num_recs; member
|
H A D | amdgpu_ras.c | 1683 save_count = data->count - control->num_recs; in amdgpu_ras_save_bad_pages() 1687 &data->bps[control->num_recs], in amdgpu_ras_save_bad_pages() 1712 if (!control->num_recs || (amdgpu_bad_page_threshold == 0)) in amdgpu_ras_load_bad_pages() 1715 bps = kcalloc(control->num_recs, sizeof(*bps), GFP_KERNEL); in amdgpu_ras_load_bad_pages() 1720 control->num_recs)) { in amdgpu_ras_load_bad_pages() 1726 ret = amdgpu_ras_add_bad_pages(adev, bps, control->num_recs); in amdgpu_ras_load_bad_pages() 1916 if (con->eeprom_control.num_recs) { in amdgpu_ras_recovery_init()
|
/kernel/linux/linux-5.10/fs/ocfs2/ |
H A D | xattr.c | 6218 int *num_recs, in ocfs2_value_metas_in_xattr_header() 6248 *num_recs += le16_to_cpu(xv->xr_list.l_next_free_rec); in ocfs2_value_metas_in_xattr_header() 6250 *num_recs += ocfs2_clusters_for_bytes(sb, in ocfs2_value_metas_in_xattr_header() 6288 int ret, meta_add = 0, num_recs = 0; in ocfs2_reflink_lock_xattr_allocators() local 6295 &meta_add, credits, &num_recs, in ocfs2_reflink_lock_xattr_allocators() 6304 * We need to add/modify num_recs in refcount tree, so just calculate in ocfs2_reflink_lock_xattr_allocators() 6310 num_recs = num_recs / ocfs2_refcount_recs_per_rb(osb->sb) * 2; in ocfs2_reflink_lock_xattr_allocators() 6311 meta_add += num_recs; in ocfs2_reflink_lock_xattr_allocators() 6312 *credits += num_recs in ocfs2_reflink_lock_xattr_allocators() 6214 ocfs2_value_metas_in_xattr_header(struct super_block *sb, struct buffer_head *bh, struct ocfs2_xattr_header *xh, int *metas, int *credits, int *num_recs, get_xattr_value_root *func, void *para) ocfs2_value_metas_in_xattr_header() argument 6706 int num_recs; global() member [all...] |
/kernel/linux/linux-6.6/fs/ocfs2/ |
H A D | xattr.c | 6212 int *num_recs, in ocfs2_value_metas_in_xattr_header() 6242 *num_recs += le16_to_cpu(xv->xr_list.l_next_free_rec); in ocfs2_value_metas_in_xattr_header() 6244 *num_recs += ocfs2_clusters_for_bytes(sb, in ocfs2_value_metas_in_xattr_header() 6282 int ret, meta_add = 0, num_recs = 0; in ocfs2_reflink_lock_xattr_allocators() local 6289 &meta_add, credits, &num_recs, in ocfs2_reflink_lock_xattr_allocators() 6298 * We need to add/modify num_recs in refcount tree, so just calculate in ocfs2_reflink_lock_xattr_allocators() 6304 num_recs = num_recs / ocfs2_refcount_recs_per_rb(osb->sb) * 2; in ocfs2_reflink_lock_xattr_allocators() 6305 meta_add += num_recs; in ocfs2_reflink_lock_xattr_allocators() 6306 *credits += num_recs in ocfs2_reflink_lock_xattr_allocators() 6208 ocfs2_value_metas_in_xattr_header(struct super_block *sb, struct buffer_head *bh, struct ocfs2_xattr_header *xh, int *metas, int *credits, int *num_recs, get_xattr_value_root *func, void *para) ocfs2_value_metas_in_xattr_header() argument 6700 int num_recs; global() member [all...] |