/kernel/linux/linux-5.10/fs/xfs/ |
H A D | xfs_symlink.c | 37 int nmaps = XFS_SYMLINK_MAPS; in xfs_readlink_bmap_ilocked() local 47 error = xfs_bmapi_read(ip, 0, fsblocks, mval, &nmaps, 0); in xfs_readlink_bmap_ilocked() 52 for (n = 0; n < nmaps; n++) { in xfs_readlink_bmap_ilocked() 151 int nmaps; in xfs_symlink() local 260 nmaps = XFS_SYMLINK_MAPS; in xfs_symlink() 263 XFS_BMAPI_METADATA, resblks, mval, &nmaps); in xfs_symlink() 273 for (n = 0; n < nmaps; n++) { in xfs_symlink() 375 int nmaps; in xfs_inactive_symlink_rmt() local 411 nmaps = ARRAY_SIZE(mval); in xfs_inactive_symlink_rmt() 413 mval, &nmaps, in xfs_inactive_symlink_rmt() [all...] |
H A D | xfs_trans_buf.c | 27 int nmaps) in xfs_trans_buf_item_match() 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() 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() 216 int nmaps, in xfs_trans_read_buf_map() 235 bp = xfs_trans_buf_item_match(tp, target, map, nmaps); in xfs_trans_read_buf_map() 289 error = xfs_buf_read_map(target, map, nmaps, flag in xfs_trans_read_buf_map() 23 xfs_trans_buf_item_match( struct xfs_trans *tp, struct xfs_buftarg *target, struct xfs_buf_map *map, int nmaps) xfs_trans_buf_item_match() argument 116 xfs_trans_get_buf_map( struct xfs_trans *tp, struct xfs_buftarg *target, struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp) xfs_trans_get_buf_map() argument 211 xfs_trans_read_buf_map( struct xfs_mount *mp, struct xfs_trans *tp, struct xfs_buftarg *target, struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp, const struct xfs_buf_ops *ops) xfs_trans_read_buf_map() argument [all...] |
H A D | xfs_buf.h | 201 int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp); 203 int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp, 206 struct xfs_buf_map *map, int nmaps,
|
H A D | xfs_buf.c | 217 int nmaps, in _xfs_buf_alloc() 251 error = xfs_buf_get_maps(bp, nmaps); in _xfs_buf_alloc() 259 for (i = 0; i < nmaps; i++) { in _xfs_buf_alloc() 587 int nmaps, in xfs_buf_find() 600 for (i = 0; i < nmaps; i++) in xfs_buf_find() 704 int nmaps, in xfs_buf_get_map() 713 error = xfs_buf_find(target, map, nmaps, flags, NULL, &bp); in xfs_buf_get_map() 719 error = _xfs_buf_alloc(target, map, nmaps, flags, &new_bp); in xfs_buf_get_map() 729 error = xfs_buf_find(target, map, nmaps, flags, new_bp, &bp); in xfs_buf_get_map() 816 int nmaps, in xfs_buf_read_map() 214 _xfs_buf_alloc( struct xfs_buftarg *target, struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp) _xfs_buf_alloc() argument 584 xfs_buf_find( struct xfs_buftarg *btp, struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags, struct xfs_buf *new_bp, struct xfs_buf **found_bp) xfs_buf_find() argument 701 xfs_buf_get_map( struct xfs_buftarg *target, struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp) xfs_buf_get_map() argument 813 xfs_buf_read_map( struct xfs_buftarg *target, struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp, const struct xfs_buf_ops *ops, xfs_failaddr_t fa) xfs_buf_read_map() argument 890 xfs_buf_readahead_map( struct xfs_buftarg *target, struct xfs_buf_map *map, int nmaps, const struct xfs_buf_ops *ops) xfs_buf_readahead_map() argument [all...] |
H A D | xfs_trans.h | 189 struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags, 208 struct xfs_buf_map *map, int nmaps,
|
/kernel/linux/linux-6.6/fs/xfs/ |
H A D | xfs_symlink.c | 39 int nmaps = XFS_SYMLINK_MAPS; in xfs_readlink_bmap_ilocked() local 49 error = xfs_bmapi_read(ip, 0, fsblocks, mval, &nmaps, 0); in xfs_readlink_bmap_ilocked() 54 for (n = 0; n < nmaps; n++) { in xfs_readlink_bmap_ilocked() 162 int nmaps; in xfs_symlink() local 269 nmaps = XFS_SYMLINK_MAPS; in xfs_symlink() 272 XFS_BMAPI_METADATA, resblks, mval, &nmaps); in xfs_symlink() 282 for (n = 0; n < nmaps; n++) { in xfs_symlink() 383 int nmaps; in xfs_inactive_symlink_rmt() local 419 nmaps = ARRAY_SIZE(mval); in xfs_inactive_symlink_rmt() 421 mval, &nmaps, in xfs_inactive_symlink_rmt() [all...] |
H A D | xfs_trans_buf.c | 27 int nmaps) in xfs_trans_buf_item_match() 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() 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() 216 int nmaps, in xfs_trans_read_buf_map() 235 bp = xfs_trans_buf_item_match(tp, target, map, nmaps); in xfs_trans_read_buf_map() 289 error = xfs_buf_read_map(target, map, nmaps, flag in xfs_trans_read_buf_map() 23 xfs_trans_buf_item_match( struct xfs_trans *tp, struct xfs_buftarg *target, struct xfs_buf_map *map, int nmaps) xfs_trans_buf_item_match() argument 116 xfs_trans_get_buf_map( struct xfs_trans *tp, struct xfs_buftarg *target, struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp) xfs_trans_get_buf_map() argument 211 xfs_trans_read_buf_map( struct xfs_mount *mp, struct xfs_trans *tp, struct xfs_buftarg *target, struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp, const struct xfs_buf_ops *ops) xfs_trans_read_buf_map() argument [all...] |
H A D | xfs_buf.h | 219 int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp); 221 int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp, 224 struct xfs_buf_map *map, int nmaps,
|
H A D | xfs_buf.c | 216 int nmaps, in _xfs_buf_alloc() 250 error = xfs_buf_get_maps(bp, nmaps); in _xfs_buf_alloc() 258 for (i = 0; i < nmaps; i++) { in _xfs_buf_alloc() 613 int nmaps, in xfs_buf_find_insert() 621 error = _xfs_buf_alloc(btp, map, nmaps, flags, &new_bp); in xfs_buf_find_insert() 680 int nmaps, in xfs_buf_get_map() 692 for (i = 0; i < nmaps; i++) in xfs_buf_get_map() 714 error = xfs_buf_find_insert(btp, pag, &cmap, map, nmaps, in xfs_buf_get_map() 805 int nmaps, in xfs_buf_read_map() 817 error = xfs_buf_get_map(target, map, nmaps, flag in xfs_buf_read_map() 213 _xfs_buf_alloc( struct xfs_buftarg *target, struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp) _xfs_buf_alloc() argument 608 xfs_buf_find_insert( struct xfs_buftarg *btp, struct xfs_perag *pag, struct xfs_buf_map *cmap, struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp) xfs_buf_find_insert() argument 677 xfs_buf_get_map( struct xfs_buftarg *btp, struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp) xfs_buf_get_map() argument 802 xfs_buf_read_map( struct xfs_buftarg *target, struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp, const struct xfs_buf_ops *ops, xfs_failaddr_t fa) xfs_buf_read_map() argument 887 xfs_buf_readahead_map( struct xfs_buftarg *target, struct xfs_buf_map *map, int nmaps, const struct xfs_buf_ops *ops) xfs_buf_readahead_map() argument [all...] |
H A D | xfs_qm.c | 981 int i, nmaps; /* number of map entries */ in xfs_qm_reset_dqcounts_buf() local 1005 nmaps = XFS_DQITER_MAP_SIZE; in xfs_qm_reset_dqcounts_buf() 1013 map, &nmaps, 0); in xfs_qm_reset_dqcounts_buf() 1018 ASSERT(nmaps <= XFS_DQITER_MAP_SIZE); in xfs_qm_reset_dqcounts_buf() 1019 for (i = 0; i < nmaps; i++) { in xfs_qm_reset_dqcounts_buf() 1034 if ((i+1 < nmaps) && in xfs_qm_reset_dqcounts_buf() 1057 } while (nmaps > 0); in xfs_qm_reset_dqcounts_buf()
|
H A D | xfs_trans.h | 176 struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags, 195 struct xfs_buf_map *map, int nmaps,
|
/kernel/linux/linux-5.10/drivers/mtd/maps/ |
H A D | physmap-core.c | 50 unsigned int nmaps; member 86 for (i = 0; i < info->nmaps; i++) { in physmap_flash_remove() 371 for (i = 0; i < info->nmaps; i++) { in physmap_flash_of_init() 446 for (i = 0; i < info->nmaps; i++) { in physmap_flash_pdata_init() 468 while (platform_get_resource(dev, IORESOURCE_MEM, info->nmaps)) in physmap_flash_probe() 469 info->nmaps++; in physmap_flash_probe() 471 if (!info->nmaps) in physmap_flash_probe() 475 sizeof(*info->maps) * info->nmaps, in physmap_flash_probe() 481 sizeof(*info->mtds) * info->nmaps, in physmap_flash_probe() 493 if (info->gpios && info->nmaps > in physmap_flash_probe() [all...] |
/kernel/linux/linux-6.6/drivers/mtd/maps/ |
H A D | physmap-core.c | 50 unsigned int nmaps; member 80 for (i = 0; i < info->nmaps; i++) { in physmap_flash_remove() 367 for (i = 0; i < info->nmaps; i++) { in physmap_flash_of_init() 442 for (i = 0; i < info->nmaps; i++) { in physmap_flash_pdata_init() 464 while (platform_get_resource(dev, IORESOURCE_MEM, info->nmaps)) in physmap_flash_probe() 465 info->nmaps++; in physmap_flash_probe() 467 if (!info->nmaps) in physmap_flash_probe() 471 sizeof(*info->maps) * info->nmaps, in physmap_flash_probe() 477 sizeof(*info->mtds) * info->nmaps, in physmap_flash_probe() 489 if (info->gpios && info->nmaps > in physmap_flash_probe() [all...] |
/kernel/linux/linux-5.10/drivers/vhost/ |
H A D | iotlb.c | 34 iotlb->nmaps--; in vhost_iotlb_map_free() 59 iotlb->nmaps == iotlb->limit && in vhost_iotlb_add_range() 75 iotlb->nmaps++; in vhost_iotlb_add_range() 117 iotlb->nmaps = 0; in vhost_iotlb_alloc()
|
/kernel/linux/linux-6.6/drivers/vhost/ |
H A D | iotlb.c | 34 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()
|
/kernel/linux/linux-6.6/drivers/pinctrl/starfive/ |
H A D | pinctrl-starfive-jh7100.c | 490 int nmaps; in starfive_dt_node_to_map() local 493 nmaps = 0; in starfive_dt_node_to_map() 513 nmaps += 2; in starfive_dt_node_to_map() 515 nmaps += 1; in starfive_dt_node_to_map() 523 map = kcalloc(nmaps, sizeof(*map), GFP_KERNEL); in starfive_dt_node_to_map() 527 nmaps = 0; in starfive_dt_node_to_map() 565 map[nmaps].type = PIN_MAP_TYPE_MUX_GROUP; in starfive_dt_node_to_map() 566 map[nmaps].data.mux.function = np->name; in starfive_dt_node_to_map() 567 map[nmaps].data.mux.group = grpname; in starfive_dt_node_to_map() 568 nmaps in starfive_dt_node_to_map() [all...] |
H A D | pinctrl-starfive-jh7110.c | 134 int nmaps; in jh7110_dt_node_to_map() local 140 nmaps = 2 * ngroups; in jh7110_dt_node_to_map() 146 map = kcalloc(nmaps, sizeof(*map), GFP_KERNEL); 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() 208 &map[nmaps] in jh7110_dt_node_to_map() [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/ |
H A D | qib_qp.c | 159 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()
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/qib/ |
H A D | qib_qp.c | 159 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()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | vhost_iotlb.h | 28 unsigned int nmaps; member
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | vhost_iotlb.h | 29 unsigned int nmaps; member
|
/kernel/linux/linux-5.10/drivers/pinctrl/mvebu/ |
H A D | pinctrl-mvebu.c | 404 int ret, nmaps, n; in mvebu_pinctrl_dt_node_to_map() local 416 nmaps = of_property_count_strings(np, "marvell,pins"); in mvebu_pinctrl_dt_node_to_map() 417 if (nmaps < 0) { in mvebu_pinctrl_dt_node_to_map() 423 *map = kmalloc_array(nmaps, sizeof(**map), GFP_KERNEL); in mvebu_pinctrl_dt_node_to_map() 449 *num_maps = nmaps; in mvebu_pinctrl_dt_node_to_map()
|
/kernel/linux/linux-5.10/drivers/pinctrl/renesas/ |
H A D | pinctrl.c | 110 unsigned int nmaps = *num_maps; in sh_pfc_dt_subnode_to_map() local 187 nmaps += num_groups; in sh_pfc_dt_subnode_to_map() 189 nmaps += num_pins + num_groups; in sh_pfc_dt_subnode_to_map() 191 maps = krealloc(maps, sizeof(*maps) * nmaps, GFP_KERNEL); in sh_pfc_dt_subnode_to_map() 198 *num_maps = nmaps; in sh_pfc_dt_subnode_to_map()
|
/kernel/linux/linux-6.6/drivers/pinctrl/renesas/ |
H A D | pinctrl.c | 107 unsigned int nmaps = *num_maps; in sh_pfc_dt_subnode_to_map() local 167 nmaps += num_groups; in sh_pfc_dt_subnode_to_map() 169 nmaps += num_pins + num_groups; in sh_pfc_dt_subnode_to_map() 171 maps = krealloc(maps, sizeof(*maps) * nmaps, GFP_KERNEL); in sh_pfc_dt_subnode_to_map() 178 *num_maps = nmaps; in sh_pfc_dt_subnode_to_map()
|
/kernel/linux/linux-6.6/drivers/pinctrl/mvebu/ |
H A D | pinctrl-mvebu.c | 414 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()
|