/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ras_eeprom.c | 639 struct eeprom_table_record *recs = kcalloc(1, sizeof(*recs), GFP_KERNEL); 641 if (!recs) 645 recs[i].address = 0xdeadbeef; 646 recs[i].retired_page = i; 649 if (!amdgpu_ras_eeprom_process_recods(control, recs, true, 1)) { 651 memset(recs, 0, sizeof(*recs) * 1); 655 if (!amdgpu_ras_eeprom_process_recods(control, recs, false, 1)) { 658 recs[ [all...] |
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
H A D | xfs_iext_tree.c | 123 struct xfs_iext_rec recs[RECS_PER_LEAF]; member 142 return &cur->leaf->recs[cur->pos]; in cur_rec() 219 if (xfs_iext_rec_is_empty(&cur->leaf->recs[i])) in xfs_iext_last() 382 if (xfs_iext_rec_is_empty(&leaf->recs[i])) in xfs_iext_leaf_nr_entries() 394 return leaf->recs[n].lo & XFS_IEXT_STARTOFF_MASK; in xfs_iext_leaf_key() 559 new->recs[i] = leaf->recs[nr_keep + i]; in xfs_iext_split_leaf() 560 xfs_iext_rec_clear(&leaf->recs[nr_keep + i]); in xfs_iext_split_leaf() 661 cur->leaf->recs[i] = cur->leaf->recs[ in xfs_iext_insert() [all...] |
/kernel/linux/linux-6.6/fs/xfs/libxfs/ |
H A D | xfs_iext_tree.c | 123 struct xfs_iext_rec recs[RECS_PER_LEAF]; member 142 return &cur->leaf->recs[cur->pos]; in cur_rec() 219 if (xfs_iext_rec_is_empty(&cur->leaf->recs[i])) in xfs_iext_last() 382 if (xfs_iext_rec_is_empty(&leaf->recs[i])) in xfs_iext_leaf_nr_entries() 394 return leaf->recs[n].lo & XFS_IEXT_STARTOFF_MASK; in xfs_iext_leaf_key() 559 new->recs[i] = leaf->recs[nr_keep + i]; in xfs_iext_split_leaf() 560 xfs_iext_rec_clear(&leaf->recs[nr_keep + i]); in xfs_iext_split_leaf() 661 cur->leaf->recs[i] = cur->leaf->recs[ in xfs_iext_insert() [all...] |
/kernel/linux/linux-5.10/fs/xfs/ |
H A D | xfs_iwalk.c | 62 struct xfs_inobt_rec_incore *recs; member 64 /* Number of entries allocated for the @recs array. */ 67 /* Number of entries in the @recs array that are in use. */ 153 ASSERT(iwag->recs == NULL); in xfs_iwalk_alloc() 158 iwag->recs = kmem_alloc(size, KM_MAYFAIL); in xfs_iwalk_alloc() 159 if (iwag->recs == NULL) in xfs_iwalk_alloc() 170 kmem_free(iwag->recs); in xfs_iwalk_free() 171 iwag->recs = NULL; in xfs_iwalk_free() 188 struct xfs_inobt_rec_incore *irec = &iwag->recs[i]; in xfs_iwalk_ag_recs() 300 irec = &iwag->recs[iwa in xfs_iwalk_ag_start() [all...] |
H A D | xfs_ioctl.c | 1727 struct fsmap *recs; in xfs_ioc_getfsmap() local 1749 recs = kvzalloc(count * sizeof(struct fsmap), GFP_KERNEL); in xfs_ioc_getfsmap() 1750 if (!recs) { in xfs_ioc_getfsmap() 1753 recs = kvzalloc(count * sizeof(struct fsmap), GFP_KERNEL); in xfs_ioc_getfsmap() 1754 if (!recs) in xfs_ioc_getfsmap() 1776 error = xfs_getfsmap(ip->i_mount, &xhead, recs); in xfs_ioc_getfsmap() 1807 if (copy_to_user(user_recs, recs, in xfs_ioc_getfsmap() 1814 last_rec = &recs[xhead.fmh_entries - 1]; in xfs_ioc_getfsmap() 1846 kmem_free(recs); in xfs_ioc_getfsmap()
|
/kernel/linux/linux-6.6/fs/xfs/ |
H A D | xfs_iwalk.c | 64 struct xfs_inobt_rec_incore *recs; member 66 /* Number of entries allocated for the @recs array. */ 69 /* Number of entries in the @recs array that are in use. */ 158 ASSERT(iwag->recs == NULL); in xfs_iwalk_alloc() 163 iwag->recs = kmem_alloc(size, KM_MAYFAIL); in xfs_iwalk_alloc() 164 if (iwag->recs == NULL) in xfs_iwalk_alloc() 175 kmem_free(iwag->recs); in xfs_iwalk_free() 176 iwag->recs = NULL; in xfs_iwalk_free() 192 struct xfs_inobt_rec_incore *irec = &iwag->recs[i]; in xfs_iwalk_ag_recs() 305 irec = &iwag->recs[iwa in xfs_iwalk_ag_start() [all...] |
H A D | xfs_ioctl.c | 1519 struct fsmap *recs; in xfs_ioc_getfsmap() local 1541 recs = kvcalloc(count, sizeof(struct fsmap), GFP_KERNEL); in xfs_ioc_getfsmap() 1542 if (!recs) { in xfs_ioc_getfsmap() 1545 recs = kvcalloc(count, sizeof(struct fsmap), GFP_KERNEL); in xfs_ioc_getfsmap() 1546 if (!recs) in xfs_ioc_getfsmap() 1568 error = xfs_getfsmap(ip->i_mount, &xhead, recs); in xfs_ioc_getfsmap() 1599 if (copy_to_user(user_recs, recs, in xfs_ioc_getfsmap() 1606 last_rec = &recs[xhead.fmh_entries - 1]; in xfs_ioc_getfsmap() 1638 kmem_free(recs); in xfs_ioc_getfsmap()
|
/kernel/linux/linux-5.10/block/partitions/ |
H A D | ldm.c | 1355 int size, perbuf, skip, finish, s, v, recs; in ldm_get_vblks() local 1381 recs = get_unaligned_be16(data + 0x0E); /* Number of records */ in ldm_get_vblks() 1382 if (recs == 1) { in ldm_get_vblks() 1385 } else if (recs > 1) { in ldm_get_vblks()
|
/kernel/linux/linux-5.10/fs/ntfs/ |
H A D | aops.c | 124 unsigned int i, recs; in ntfs_end_buffer_async_read() local 128 recs = PAGE_SIZE / rec_size; in ntfs_end_buffer_async_read() 130 BUG_ON(!recs); in ntfs_end_buffer_async_read() 132 for (i = 0; i < recs; i++) in ntfs_end_buffer_async_read()
|
/kernel/linux/linux-6.6/fs/ntfs/ |
H A D | aops.c | 124 unsigned int i, recs; in ntfs_end_buffer_async_read() local 128 recs = PAGE_SIZE / rec_size; in ntfs_end_buffer_async_read() 130 BUG_ON(!recs); in ntfs_end_buffer_async_read() 132 for (i = 0; i < recs; i++) in ntfs_end_buffer_async_read()
|
/kernel/linux/linux-6.6/block/partitions/ |
H A D | ldm.c | 1346 int size, perbuf, skip, finish, s, v, recs; in ldm_get_vblks() local 1372 recs = get_unaligned_be16(data + 0x0E); /* Number of records */ in ldm_get_vblks() 1373 if (recs == 1) { in ldm_get_vblks() 1376 } else if (recs > 1) { in ldm_get_vblks()
|
/kernel/linux/linux-6.6/drivers/infiniband/core/ |
H A D | sa_query.c | 873 struct sa_path_rec recs[RDMA_PRIMARY_PATH_MAX_REC_NUM]; in ib_nl_process_good_resolve_rsp() local 926 rec_data->path_rec, &recs[num_prs]); in ib_nl_process_good_resolve_rsp() 927 recs[num_prs].flags = rec_data->flags; in ib_nl_process_good_resolve_rsp() 928 recs[num_prs].rec_type = SA_PATH_REC_TYPE_IB; in ib_nl_process_good_resolve_rsp() 929 sa_path_set_dmac_zero(&recs[num_prs]); in ib_nl_process_good_resolve_rsp() 938 path_query->callback(status, recs, num_prs, in ib_nl_process_good_resolve_rsp()
|
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | linker.c | 75 void *recs; member 207 free(sec->func_info.recs); in bpf_linker__free() 208 free(sec->line_info.recs); in bpf_linker__free() 209 free(sec->core_relo_info.recs); in bpf_linker__free() 2419 tmp = libbpf_reallocarray(ext_data->recs, ext_data->rec_cnt + 1, ext_data->rec_sz); in add_btf_ext_rec() 2422 ext_data->recs = tmp; in add_btf_ext_rec() 2751 memcpy(cur, sec_data->recs, sz); in emit_btf_ext_data()
|