Home
last modified time | relevance | path

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

/linux-4.1.27/fs/xfs/
Dxfs_symlink.c56 int nmaps = XFS_SYMLINK_MAPS; in xfs_readlink_bmap() local
64 error = xfs_bmapi_read(ip, 0, fsblocks, mval, &nmaps, 0); in xfs_readlink_bmap()
69 for (n = 0; n < nmaps; n++) { in xfs_readlink_bmap()
185 int nmaps; in xfs_symlink() local
326 nmaps = XFS_SYMLINK_MAPS; in xfs_symlink()
330 mval, &nmaps, &free_list); in xfs_symlink()
341 for (n = 0; n < nmaps; n++) { in xfs_symlink()
449 int nmaps; in xfs_inactive_symlink_rmt() local
488 nmaps = ARRAY_SIZE(mval); in xfs_inactive_symlink_rmt()
490 mval, &nmaps, 0); in xfs_inactive_symlink_rmt()
[all …]
Dxfs_trans_buf.c41 int nmaps) in xfs_trans_buf_item_match() argument
48 for (i = 0; i < nmaps; i++) in xfs_trans_buf_item_match()
57 ASSERT(blip->bli_buf->b_map_count == nmaps); in xfs_trans_buf_item_match()
138 int nmaps, in xfs_trans_get_buf_map() argument
145 return xfs_buf_get_map(target, map, nmaps, flags); in xfs_trans_get_buf_map()
153 bp = xfs_trans_buf_item_match(tp, target, map, nmaps); in xfs_trans_get_buf_map()
170 bp = xfs_buf_get_map(target, map, nmaps, flags); in xfs_trans_get_buf_map()
246 int nmaps, in xfs_trans_read_buf_map() argument
265 bp = xfs_trans_buf_item_match(tp, target, map, nmaps); in xfs_trans_read_buf_map()
291 bp = xfs_buf_read_map(target, map, nmaps, flags, ops); in xfs_trans_read_buf_map()
Dxfs_buf.h193 struct xfs_buf_map *map, int nmaps,
208 struct xfs_buf_map *map, int nmaps,
223 struct xfs_buf_map *map, int nmaps,
226 struct xfs_buf_map *map, int nmaps,
230 struct xfs_buf_map *map, int nmaps,
Dxfs_buf.c152 int nmaps, in _xfs_buf_alloc() argument
186 error = xfs_buf_get_maps(bp, nmaps); in _xfs_buf_alloc()
194 for (i = 0; i < nmaps; i++) { in _xfs_buf_alloc()
437 int nmaps, in _xfs_buf_find() argument
451 for (i = 0; i < nmaps; i++) in _xfs_buf_find()
567 int nmaps, in xfs_buf_get_map() argument
574 bp = _xfs_buf_find(target, map, nmaps, flags, NULL); in xfs_buf_get_map()
578 new_bp = _xfs_buf_alloc(target, map, nmaps, flags); in xfs_buf_get_map()
588 bp = _xfs_buf_find(target, map, nmaps, flags, new_bp); in xfs_buf_get_map()
642 int nmaps, in xfs_buf_read_map() argument
[all …]
Dxfs_dquot.c309 int nmaps, error, committed; in xfs_qm_dqalloc() local
332 nmaps = 1; in xfs_qm_dqalloc()
336 &map, &nmaps, &flist); in xfs_qm_dqalloc()
340 ASSERT(nmaps == 1); in xfs_qm_dqalloc()
464 int nmaps = 1, error; in xfs_qm_dqtobp() local
488 XFS_DQUOT_CLUSTER_SIZE_FSB, &map, &nmaps, 0); in xfs_qm_dqtobp()
494 ASSERT(nmaps == 1); in xfs_qm_dqtobp()
Dxfs_trans.h163 struct xfs_buf_map *map, int nmaps,
181 struct xfs_buf_map *map, int nmaps,
Dxfs_qm.c947 int i, nmaps; /* number of map entries */ in xfs_qm_dqiterate() local
971 nmaps = XFS_DQITER_MAP_SIZE; in xfs_qm_dqiterate()
979 map, &nmaps, 0); in xfs_qm_dqiterate()
984 ASSERT(nmaps <= XFS_DQITER_MAP_SIZE); in xfs_qm_dqiterate()
985 for (i = 0; i < nmaps; i++) { in xfs_qm_dqiterate()
1000 if ((i+1 < nmaps) && in xfs_qm_dqiterate()
1023 } while (nmaps > 0); in xfs_qm_dqiterate()
Dxfs_iomap.c118 int nmaps) in xfs_iomap_write_direct() argument
149 if (nmaps && (imap->br_startblock == HOLESTARTBLOCK)) in xfs_iomap_write_direct()
/linux-4.1.27/drivers/pinctrl/samsung/
Dpinctrl-exynos5440.c181 unsigned *nmaps) in exynos5440_dt_node_to_map() argument
214 *nmaps = 0; in exynos5440_dt_node_to_map()
250 map[*nmaps].data.configs.group_or_pin = gname; in exynos5440_dt_node_to_map()
251 map[*nmaps].data.configs.configs = cfg; in exynos5440_dt_node_to_map()
252 map[*nmaps].data.configs.num_configs = cfg_cnt; in exynos5440_dt_node_to_map()
253 map[*nmaps].type = PIN_MAP_TYPE_CONFIGS_GROUP; in exynos5440_dt_node_to_map()
254 *nmaps += 1; in exynos5440_dt_node_to_map()
267 map[*nmaps].data.mux.group = gname; in exynos5440_dt_node_to_map()
268 map[*nmaps].data.mux.function = fname; in exynos5440_dt_node_to_map()
269 map[*nmaps].type = PIN_MAP_TYPE_MUX_GROUP; in exynos5440_dt_node_to_map()
[all …]
/linux-4.1.27/drivers/pinctrl/qcom/
Dpinctrl-spmi-mpp.c245 unsigned *reserv, unsigned *nmaps, in pmic_mpp_dt_subnode_to_map() argument
265 ret = pinctrl_utils_reserve_map(pctldev, map, reserv, nmaps, ret); in pmic_mpp_dt_subnode_to_map()
271 reserv, nmaps, group, in pmic_mpp_dt_subnode_to_map()
283 struct pinctrl_map **map, unsigned *nmaps) in pmic_mpp_dt_node_to_map() argument
292 *nmaps = 0; in pmic_mpp_dt_node_to_map()
298 &reserv, nmaps, type); in pmic_mpp_dt_node_to_map()
303 nmaps, type); in pmic_mpp_dt_node_to_map()
309 pinctrl_utils_dt_free_map(pctldev, *map, *nmaps); in pmic_mpp_dt_node_to_map()
/linux-4.1.27/drivers/pinctrl/sh-pfc/
Dpinctrl.c104 unsigned int nmaps = *num_maps; in sh_pfc_dt_subnode_to_map() local
163 nmaps += num_groups; in sh_pfc_dt_subnode_to_map()
165 nmaps += num_pins + num_groups; in sh_pfc_dt_subnode_to_map()
167 maps = krealloc(maps, sizeof(*maps) * nmaps, GFP_KERNEL); in sh_pfc_dt_subnode_to_map()
174 *num_maps = nmaps; in sh_pfc_dt_subnode_to_map()
/linux-4.1.27/drivers/pinctrl/mvebu/
Dpinctrl-mvebu.c382 int ret, nmaps, n; in mvebu_pinctrl_dt_node_to_map() local
394 nmaps = of_property_count_strings(np, "marvell,pins"); in mvebu_pinctrl_dt_node_to_map()
395 if (nmaps < 0) { in mvebu_pinctrl_dt_node_to_map()
401 *map = kmalloc(nmaps * sizeof(struct pinctrl_map), GFP_KERNEL); in mvebu_pinctrl_dt_node_to_map()
431 *num_maps = nmaps; in mvebu_pinctrl_dt_node_to_map()
/linux-4.1.27/drivers/staging/lustre/lnet/lnet/
Dlib-ptl.c265 unsigned int nmaps; in lnet_mt_of_match() local
299 nmaps = ptl->ptl_mt_nmaps; in lnet_mt_of_match()
301 if (nmaps != 0) { in lnet_mt_of_match()
305 cpt = ptl->ptl_mt_maps[rotor % nmaps]; in lnet_mt_of_match()
/linux-4.1.27/drivers/pinctrl/sunxi/
Dpinctrl-sunxi.c159 int ret, nmaps, i = 0; in sunxi_pctrl_dt_node_to_map() local
173 nmaps = of_property_count_strings(node, "allwinner,pins") * 2; in sunxi_pctrl_dt_node_to_map()
174 if (nmaps < 0) { in sunxi_pctrl_dt_node_to_map()
181 *map = kmalloc(nmaps * sizeof(struct pinctrl_map), GFP_KERNEL); in sunxi_pctrl_dt_node_to_map()
245 *num_maps = nmaps; in sunxi_pctrl_dt_node_to_map()
/linux-4.1.27/drivers/infiniband/hw/ipath/
Dipath_qp.c137 max_scan = qpt->nmaps - !offset; in alloc_qpn()
170 if (qpt->nmaps == QPNMAP_ENTRIES) in alloc_qpn()
172 map = &qpt->map[qpt->nmaps++]; in alloc_qpn()
174 } else if (map < &qpt->map[qpt->nmaps]) { in alloc_qpn()
1029 idev->qp_table.nmaps = 1; in ipath_init_qp_table()
Dipath_verbs.h516 u32 nmaps; /* size of the map table */ member
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_qp.c152 max_scan = qpt->nmaps - !offset; in alloc_qpn()
183 if (qpt->nmaps == QPNMAP_ENTRIES) in alloc_qpn()
185 map = &qpt->map[qpt->nmaps++]; in alloc_qpn()
187 } else if (map < &qpt->map[qpt->nmaps]) { in alloc_qpn()
1259 qpt->nmaps = 1; in qib_init_qpn_table()
Dqib_verbs.h643 u32 nmaps; /* size of the map table */ member
/linux-4.1.27/fs/xfs/libxfs/
Dxfs_da_btree.c2410 int *nmaps, in xfs_buf_map_from_irec() argument
2417 ASSERT(*nmaps == 1); in xfs_buf_map_from_irec()
2428 *nmaps = nirecs; in xfs_buf_map_from_irec()
2430 for (i = 0; i < *nmaps; i++) { in xfs_buf_map_from_irec()
2454 int *nmaps) in xfs_dabuf_map() argument
2464 ASSERT(*nmaps == 1); in xfs_dabuf_map()
2504 for (i = 0; i < *nmaps; i++) { in xfs_dabuf_map()
2519 error = xfs_buf_map_from_irec(mp, map, nmaps, irecs, nirecs); in xfs_dabuf_map()