Home
last modified time | relevance | path

Searched refs:nmaps (Results 1 – 25 of 34) sorted by relevance

12

/linux-6.15/fs/xfs/scrub/
H A Ddqiterate.c51 int nmaps = 1; in xchk_dquot_iter_revalidate_bmap() local
67 XFS_MAX_FILEOFF - fileoff, &cursor->bmap, &nmaps, 0); in xchk_dquot_iter_revalidate_bmap()
70 if (!nmaps) { in xchk_dquot_iter_revalidate_bmap()
71 ASSERT(nmaps > 0); in xchk_dquot_iter_revalidate_bmap()
95 int nmaps = 1; in xchk_dquot_iter_advance_bmap() local
109 &nmaps, 0); in xchk_dquot_iter_advance_bmap()
112 if (!nmaps) { in xchk_dquot_iter_advance_bmap()
H A Dtempfile.c426 int nmaps = 1; in xrep_tempfile_prealloc() local
432 error = xfs_bmapi_read(sc->tempip, off, end - off, &map, &nmaps, in xrep_tempfile_prealloc()
436 if (nmaps == 0) { in xrep_tempfile_prealloc()
437 ASSERT(nmaps != 0); in xrep_tempfile_prealloc()
455 nmaps = 1; in xrep_tempfile_prealloc()
458 &nmaps); in xrep_tempfile_prealloc()
461 if (nmaps != 1) in xrep_tempfile_prealloc()
502 int nmaps = 1; in xrep_tempfile_copyin() local
505 error = xfs_bmapi_read(sc->tempip, off, 1, &map, &nmaps, 0); in xrep_tempfile_copyin()
508 if (nmaps == 0 || !xfs_bmap_is_written_extent(&map)) { in xrep_tempfile_copyin()
H A Drtbitmap_repair.c418 int nmaps = 1; in xrep_rtbitmap_data_mappings() local
424 error = xfs_bmapi_read(sc->ip, off, len - off, &map, &nmaps, in xrep_rtbitmap_data_mappings()
428 if (nmaps == 0) { in xrep_rtbitmap_data_mappings()
429 ASSERT(nmaps != 0); in xrep_rtbitmap_data_mappings()
457 nmaps = 1; in xrep_rtbitmap_data_mappings()
461 0, &map, &nmaps); in xrep_rtbitmap_data_mappings()
H A Dquota_repair.c63 int nmaps = 1; in xrep_quota_item_fill_bmap_hole() local
76 irec, &nmaps); in xrep_quota_item_fill_bmap_hole()
115 int nmaps = 1; in xrep_quota_item_bmap() local
125 error = xfs_bmapi_read(sc->ip, offset, 1, &irec, &nmaps, 0); in xrep_quota_item_bmap()
129 if (nmaps < 1 || !xfs_bmap_is_real_extent(&irec)) { in xrep_quota_item_bmap()
H A Dquota.c89 int nmaps = 1; in xchk_quota_item_bmap() local
102 error = xfs_bmapi_read(sc->ip, offset, 1, &irec, &nmaps, 0); in xchk_quota_item_bmap()
106 if (nmaps != 1) { in xchk_quota_item_bmap()
H A Dsymlink_repair.c110 int nmaps = XFS_SYMLINK_MAPS; in xrep_symlink_salvage_remote() local
116 error = xfs_bmapi_read(ip, 0, fsblocks, mval, &nmaps, 0); in xrep_symlink_salvage_remote()
120 for (n = 0; n < nmaps; n++) { in xrep_symlink_salvage_remote()
/linux-6.15/drivers/pinctrl/sophgo/
H A Dpinctrl-sophgo-common.c87 int nmaps = 0; in sophgo_pctrl_dt_node_to_map() local
172 map[nmaps].type = PIN_MAP_TYPE_MUX_GROUP; in sophgo_pctrl_dt_node_to_map()
173 map[nmaps].data.mux.function = np->name; in sophgo_pctrl_dt_node_to_map()
174 map[nmaps].data.mux.group = grpname; in sophgo_pctrl_dt_node_to_map()
175 nmaps += 1; in sophgo_pctrl_dt_node_to_map()
178 &map[nmaps].data.configs.configs, in sophgo_pctrl_dt_node_to_map()
194 if (map[nmaps].data.configs.num_configs == 0) in sophgo_pctrl_dt_node_to_map()
197 map[nmaps].type = PIN_MAP_TYPE_CONFIGS_GROUP; in sophgo_pctrl_dt_node_to_map()
199 nmaps += 1; in sophgo_pctrl_dt_node_to_map()
210 *num_maps = nmaps; in sophgo_pctrl_dt_node_to_map()
[all …]
/linux-6.15/fs/xfs/libxfs/
H A Dxfs_symlink_remote.c249 int nmaps = XFS_SYMLINK_MAPS; in xfs_symlink_remote_read() local
259 error = xfs_bmapi_read(ip, 0, fsblocks, mval, &nmaps, 0); in xfs_symlink_remote_read()
264 for (n = 0; n < nmaps; n++) { in xfs_symlink_remote_read()
328 int nmaps; in xfs_symlink_write_target() local
345 nmaps = XFS_SYMLINK_MAPS; in xfs_symlink_write_target()
347 resblks, mval, &nmaps); in xfs_symlink_write_target()
356 for (n = 0; n < nmaps; n++) { in xfs_symlink_write_target()
396 int nmaps = XFS_SYMLINK_MAPS; in xfs_symlink_remote_truncate() local
402 error = xfs_bmapi_read(ip, 0, XFS_MAX_FILEOFF, mval, &nmaps, 0); in xfs_symlink_remote_truncate()
406 for (i = 0; i < nmaps; i++) { in xfs_symlink_remote_truncate()
[all …]
/linux-6.15/drivers/mtd/maps/
H A Dphysmap-core.c51 unsigned int nmaps; member
81 for (i = 0; i < info->nmaps; i++) { in physmap_flash_remove()
362 for (i = 0; i < info->nmaps; i++) { in physmap_flash_of_init()
437 for (i = 0; i < info->nmaps; i++) { in physmap_flash_pdata_init()
460 info->nmaps++; in physmap_flash_probe()
462 if (!info->nmaps) in physmap_flash_probe()
466 sizeof(*info->maps) * info->nmaps, in physmap_flash_probe()
472 sizeof(*info->mtds) * info->nmaps, in physmap_flash_probe()
484 if (info->gpios && info->nmaps > 1) { in physmap_flash_probe()
503 for (i = 0; i < info->nmaps; i++) { in physmap_flash_probe()
[all …]
/linux-6.15/fs/xfs/
H A Dxfs_trans_buf.c27 int nmaps) in xfs_trans_buf_item_match() argument
34 for (i = 0; i < nmaps; i++) in xfs_trans_buf_item_match()
43 ASSERT(blip->bli_buf->b_map_count == nmaps); in xfs_trans_buf_item_match()
120 int nmaps, in xfs_trans_get_buf_map() argument
130 return xfs_buf_get_map(target, map, nmaps, flags, bpp); in xfs_trans_get_buf_map()
138 bp = xfs_trans_buf_item_match(tp, target, map, nmaps); in xfs_trans_get_buf_map()
156 error = xfs_buf_get_map(target, map, nmaps, flags, &bp); in xfs_trans_get_buf_map()
231 int nmaps, in xfs_trans_read_buf_map() argument
250 bp = xfs_trans_buf_item_match(tp, target, map, nmaps); in xfs_trans_read_buf_map()
304 error = xfs_buf_read_map(target, map, nmaps, flags, &bp, ops, in xfs_trans_read_buf_map()
H A Dxfs_buf.c256 int nmaps, in xfs_buf_alloc() argument
294 bp->b_map_count = nmaps; in xfs_buf_alloc()
295 if (nmaps == 1) in xfs_buf_alloc()
298 bp->b_maps = kcalloc(nmaps, sizeof(struct xfs_buf_map), in xfs_buf_alloc()
300 for (i = 0; i < nmaps; i++) { in xfs_buf_alloc()
497 int nmaps, in xfs_buf_find_insert() argument
505 error = xfs_buf_alloc(btp, map, nmaps, flags, &new_bp); in xfs_buf_find_insert()
574 int nmaps, in xfs_buf_get_map() argument
587 for (i = 0; i < nmaps; i++) in xfs_buf_get_map()
688 int nmaps, in xfs_buf_read_map() argument
[all …]
H A Dxfs_buf.h216 int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp);
218 int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp,
221 struct xfs_buf_map *map, int nmaps,
H A Dxfs_trans.h176 struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags,
195 struct xfs_buf_map *map, int nmaps,
H A Dxfs_qm.c1228 int i, nmaps; /* number of map entries */ in xfs_qm_reset_dqcounts_buf() local
1253 nmaps = XFS_DQITER_MAP_SIZE; in xfs_qm_reset_dqcounts_buf()
1261 map, &nmaps, 0); in xfs_qm_reset_dqcounts_buf()
1266 ASSERT(nmaps <= XFS_DQITER_MAP_SIZE); in xfs_qm_reset_dqcounts_buf()
1267 for (i = 0; i < nmaps; i++) { in xfs_qm_reset_dqcounts_buf()
1282 if ((i+1 < nmaps) && in xfs_qm_reset_dqcounts_buf()
1305 } while (nmaps > 0); in xfs_qm_reset_dqcounts_buf()
H A Dxfs_dquot.c353 int nmaps = 1; in xfs_dquot_disk_alloc() local
383 &nmaps); in xfs_dquot_disk_alloc()
466 int nmaps = 1; in xfs_dquot_disk_read() local
483 XFS_DQUOT_CLUSTER_SIZE_FSB, &map, &nmaps, 0); in xfs_dquot_disk_read()
488 ASSERT(nmaps == 1); in xfs_dquot_disk_read()
/linux-6.15/drivers/pinctrl/
H A Dpinctrl-th1520.c413 for (i = 0; i < nmaps; i++) { in th1520_pinctrl_dt_free_map()
433 unsigned int nmaps; in th1520_pinctrl_dt_node_to_map() local
436 nmaps = 0; in th1520_pinctrl_dt_node_to_map()
445 nmaps += npins; in th1520_pinctrl_dt_node_to_map()
447 nmaps += npins; in th1520_pinctrl_dt_node_to_map()
454 nmaps = 0; in th1520_pinctrl_dt_node_to_map()
457 unsigned int rollback = nmaps; in th1520_pinctrl_dt_node_to_map()
507 nmaps = rollback; in th1520_pinctrl_dt_node_to_map()
519 nmaps += 1; in th1520_pinctrl_dt_node_to_map()
526 nmaps += 1; in th1520_pinctrl_dt_node_to_map()
[all …]
/linux-6.15/drivers/vhost/
H A Diotlb.c34 iotlb->nmaps--; in vhost_iotlb_map_free()
76 iotlb->nmaps == iotlb->limit && in vhost_iotlb_add_range_ctx()
93 iotlb->nmaps++; in vhost_iotlb_add_range_ctx()
139 iotlb->nmaps = 0; in vhost_iotlb_init()
/linux-6.15/drivers/pinctrl/starfive/
H A Dpinctrl-starfive-jh7110.c134 int nmaps; in jh7110_dt_node_to_map() local
140 nmaps = 2 * ngroups; in jh7110_dt_node_to_map()
150 nmaps = 0; in jh7110_dt_node_to_map()
194 map[nmaps].type = PIN_MAP_TYPE_MUX_GROUP; in jh7110_dt_node_to_map()
195 map[nmaps].data.mux.function = np->name; in jh7110_dt_node_to_map()
196 map[nmaps].data.mux.group = grpname; in jh7110_dt_node_to_map()
197 nmaps += 1; in jh7110_dt_node_to_map()
207 &map[nmaps].data.configs.configs, in jh7110_dt_node_to_map()
221 nmaps += 1; in jh7110_dt_node_to_map()
233 *num_maps = nmaps; in jh7110_dt_node_to_map()
[all …]
H A Dpinctrl-starfive-jh7100.c489 int nmaps; in starfive_dt_node_to_map() local
492 nmaps = 0; in starfive_dt_node_to_map()
510 nmaps += 2; in starfive_dt_node_to_map()
512 nmaps += 1; in starfive_dt_node_to_map()
524 nmaps = 0; in starfive_dt_node_to_map()
562 map[nmaps].type = PIN_MAP_TYPE_MUX_GROUP; in starfive_dt_node_to_map()
563 map[nmaps].data.mux.function = np->name; in starfive_dt_node_to_map()
564 map[nmaps].data.mux.group = grpname; in starfive_dt_node_to_map()
565 nmaps += 1; in starfive_dt_node_to_map()
609 nmaps += 1; in starfive_dt_node_to_map()
[all …]
/linux-6.15/drivers/pinctrl/spacemit/
H A Dpinctrl-k1.c308 int nmaps = 0; in spacemit_pctrl_dt_node_to_map() local
372 map[nmaps].type = PIN_MAP_TYPE_MUX_GROUP; in spacemit_pctrl_dt_node_to_map()
373 map[nmaps].data.mux.function = np->name; in spacemit_pctrl_dt_node_to_map()
374 map[nmaps].data.mux.group = grpname; in spacemit_pctrl_dt_node_to_map()
375 nmaps += 1; in spacemit_pctrl_dt_node_to_map()
383 &map[nmaps].data.configs.configs, in spacemit_pctrl_dt_node_to_map()
389 if (map[nmaps].data.configs.num_configs == 0) in spacemit_pctrl_dt_node_to_map()
392 map[nmaps].type = PIN_MAP_TYPE_CONFIGS_GROUP; in spacemit_pctrl_dt_node_to_map()
394 nmaps += 1; in spacemit_pctrl_dt_node_to_map()
400 pinctrl_utils_free_map(pctldev, map, nmaps); in spacemit_pctrl_dt_node_to_map()
[all …]
/linux-6.15/drivers/infiniband/hw/qib/
H A Dqib_qp.c159 max_scan = qpt->nmaps - !offset; in qib_alloc_qpn()
190 if (qpt->nmaps == RVT_QPNMAP_ENTRIES) in qib_alloc_qpn()
192 map = &qpt->map[qpt->nmaps++]; in qib_alloc_qpn()
194 } else if (map < &qpt->map[qpt->nmaps]) { in qib_alloc_qpn()
/linux-6.15/include/linux/
H A Dvhost_iotlb.h29 unsigned int nmaps; member
/linux-6.15/drivers/pinctrl/renesas/
H A Dpinctrl.c106 unsigned int nmaps = *num_maps; in sh_pfc_dt_subnode_to_map() local
166 nmaps += num_groups; in sh_pfc_dt_subnode_to_map()
168 nmaps += num_pins + num_groups; in sh_pfc_dt_subnode_to_map()
170 maps = krealloc(maps, sizeof(*maps) * nmaps, GFP_KERNEL); in sh_pfc_dt_subnode_to_map()
177 *num_maps = nmaps; in sh_pfc_dt_subnode_to_map()
H A Dpinctrl-rzv2m.c220 unsigned int nmaps = *num_maps; in rzv2m_dt_subnode_to_map() local
268 nmaps += 1; in rzv2m_dt_subnode_to_map()
271 nmaps += num_pins; in rzv2m_dt_subnode_to_map()
273 maps = krealloc_array(maps, nmaps, sizeof(*maps), GFP_KERNEL); in rzv2m_dt_subnode_to_map()
280 *num_maps = nmaps; in rzv2m_dt_subnode_to_map()
/linux-6.15/drivers/pinctrl/mvebu/
H A Dpinctrl-mvebu.c414 int ret, nmaps, n; in mvebu_pinctrl_dt_node_to_map() local
426 nmaps = of_property_count_strings(np, "marvell,pins"); in mvebu_pinctrl_dt_node_to_map()
427 if (nmaps < 0) { in mvebu_pinctrl_dt_node_to_map()
433 *map = kmalloc_array(nmaps, sizeof(**map), GFP_KERNEL); in mvebu_pinctrl_dt_node_to_map()
459 *num_maps = nmaps; in mvebu_pinctrl_dt_node_to_map()

12