Home
last modified time | relevance | path

Searched refs:recs (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ras_eeprom.c639 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[i].address, recs[i].retired_page);
/Linux-v5.10/fs/xfs/
Dxfs_iwalk.c62 struct xfs_inobt_rec_incore *recs; member
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[iwag->nr_recs]; in xfs_iwalk_ag_start()
365 irec = &iwag->recs[iwag->nr_recs - 1]; in xfs_iwalk_run_callbacks()
414 irec = &iwag->recs[iwag->nr_recs]; in xfs_iwalk_ag()
Dxfs_ioctl.c1726 struct fsmap *recs; in xfs_ioc_getfsmap() local
1748 recs = kvzalloc(count * sizeof(struct fsmap), GFP_KERNEL); in xfs_ioc_getfsmap()
1749 if (!recs) { in xfs_ioc_getfsmap()
1752 recs = kvzalloc(count * sizeof(struct fsmap), GFP_KERNEL); in xfs_ioc_getfsmap()
1753 if (!recs) in xfs_ioc_getfsmap()
1775 error = xfs_getfsmap(ip->i_mount, &xhead, recs); in xfs_ioc_getfsmap()
1806 if (copy_to_user(user_recs, recs, in xfs_ioc_getfsmap()
1813 last_rec = &recs[xhead.fmh_entries - 1]; in xfs_ioc_getfsmap()
1845 kmem_free(recs); in xfs_ioc_getfsmap()
/Linux-v5.10/fs/xfs/libxfs/
Dxfs_iext_tree.c123 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[i - 1]; in xfs_iext_insert()
808 leaf->prev->recs[nr_prev + i] = leaf->recs[i]; in xfs_iext_rebalance_leaf()
828 leaf->recs[nr_entries + i] = in xfs_iext_rebalance_leaf()
[all …]
/Linux-v5.10/block/partitions/
Dldm.c1355 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()
/Linux-v5.10/fs/ntfs/
Daops.c124 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()