| /linux/drivers/pinctrl/sophgo/ |
| H A D | pinctrl-sophgo-common.c | 87 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() 179 &map[nmaps].data.configs.num_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() 198 map[nmaps].data.configs.group_or_pin = grpname; in sophgo_pctrl_dt_node_to_map() [all …]
|
| /linux/drivers/pinctrl/ |
| H A D | pinctrl-th1520.c | 408 struct pinctrl_map *map, unsigned int nmaps) in th1520_pinctrl_dt_free_map() argument 413 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() 450 map = kzalloc_objs(*map, nmaps); 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() [all …]
|
| /linux/drivers/pinctrl/starfive/ |
| H A D | pinctrl-starfive-jh7100.c | 489 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() 520 map = kzalloc_objs(*map, nmaps); 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() [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 = kzalloc_objs(*map, nmaps); 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].data.configs.num_configs); in jh7110_dt_node_to_map() [all …]
|
| /linux/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()
|
| /linux/drivers/pinctrl/spacemit/ |
| H A D | pinctrl-k1.c | 492 int nmaps = 0; in spacemit_pctrl_dt_node_to_map() local 556 map[nmaps].type = PIN_MAP_TYPE_MUX_GROUP; in spacemit_pctrl_dt_node_to_map() 557 map[nmaps].data.mux.function = np->name; in spacemit_pctrl_dt_node_to_map() 558 map[nmaps].data.mux.group = grpname; in spacemit_pctrl_dt_node_to_map() 559 nmaps += 1; in spacemit_pctrl_dt_node_to_map() 567 &map[nmaps].data.configs.configs, in spacemit_pctrl_dt_node_to_map() 568 &map[nmaps].data.configs.num_configs); in spacemit_pctrl_dt_node_to_map() 573 if (map[nmaps].data.configs.num_configs == 0) in spacemit_pctrl_dt_node_to_map() 576 map[nmaps].type = PIN_MAP_TYPE_CONFIGS_GROUP; in spacemit_pctrl_dt_node_to_map() 577 map[nmaps].data.configs.group_or_pin = grpname; in spacemit_pctrl_dt_node_to_map() [all …]
|
| /linux/fs/xfs/ |
| H A D | xfs_buf.c | 256 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 = kzalloc_objs(struct xfs_buf_map, nmaps, in xfs_buf_alloc() 300 for (i = 0; i < nmaps; i++) { in xfs_buf_alloc() 494 int nmaps, in xfs_buf_find_insert() argument 502 error = xfs_buf_alloc(btp, map, nmaps, flags, &new_bp); in xfs_buf_find_insert() 571 int nmaps, in xfs_buf_get_map() argument 584 for (i = 0; i < nmaps; i++) in xfs_buf_get_map() 606 error = xfs_buf_find_insert(btp, bch, pag, &cmap, map, nmaps, in xfs_buf_get_map() [all …]
|
| H A D | xfs_buf.h | 217 int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp); 219 int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp, 222 struct xfs_buf_map *map, int nmaps,
|
| H A D | xfs_qm.c | 1156 int i, nmaps; /* number of map entries */ in xfs_qm_reset_dqcounts_buf() local 1181 nmaps = XFS_DQITER_MAP_SIZE; in xfs_qm_reset_dqcounts_buf() 1189 map, &nmaps, 0); in xfs_qm_reset_dqcounts_buf() 1194 ASSERT(nmaps <= XFS_DQITER_MAP_SIZE); in xfs_qm_reset_dqcounts_buf() 1195 for (i = 0; i < nmaps; i++) { in xfs_qm_reset_dqcounts_buf() 1210 if ((i+1 < nmaps) && in xfs_qm_reset_dqcounts_buf() 1233 } while (nmaps > 0); in xfs_qm_reset_dqcounts_buf()
|
| H A D | xfs_dquot.c | 353 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()
|
| H A D | xfs_zone_alloc.c | 247 int nmaps = 1; in xfs_zoned_map_extent() local 252 &nmaps, 0); in xfs_zoned_map_extent()
|
| H A D | xfs_iomap.c | 1132 int nmaps = 1; in xfs_atomic_write_cow_iomap_begin() local 1221 XFS_BMAPI_EXTSZALIGN, 0, &cmap, &nmaps); in xfs_atomic_write_cow_iomap_begin()
|
| /linux/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_objs(**map, nmaps); in mvebu_pinctrl_dt_node_to_map() 459 *num_maps = nmaps; in mvebu_pinctrl_dt_node_to_map()
|
| /linux/include/linux/ |
| H A D | vhost_iotlb.h | 29 unsigned int nmaps; member
|
| /linux/drivers/pinctrl/renesas/ |
| H A D | pinctrl-rzv2m.c | 220 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()
|
| H A D | pinctrl-rzg2l.c | 648 unsigned int nmaps = *num_maps; in rzg2l_dt_subnode_to_map() local 696 nmaps += 1; in rzg2l_dt_subnode_to_map() 698 nmaps += 1; in rzg2l_dt_subnode_to_map() 702 nmaps += num_pins; in rzg2l_dt_subnode_to_map() 704 maps = krealloc_array(maps, nmaps, sizeof(*maps), GFP_KERNEL); in rzg2l_dt_subnode_to_map() 711 *num_maps = nmaps; in rzg2l_dt_subnode_to_map()
|
| /linux/drivers/infiniband/sw/rdmavt/ |
| H A D | qp.c | 309 qpt->nmaps = rdi->dparms.qpn_res_start / RVT_BITS_PER_PAGE; in init_qpn_table() 315 map = &qpt->map[qpt->nmaps]; in init_qpn_table() 331 qpt->nmaps++; in init_qpn_table() 523 max_scan = qpt->nmaps - !offset; in alloc_qpn() 550 if (qpt->nmaps == RVT_QPNMAP_ENTRIES) in alloc_qpn() 552 map = &qpt->map[qpt->nmaps++]; in alloc_qpn() 555 } else if (map < &qpt->map[qpt->nmaps]) { in alloc_qpn()
|
| /linux/tools/testing/selftests/net/ |
| H A D | bpf_offload.py | 210 nmaps = None 213 nmaps = len(maps) 214 if nmaps == expected: 217 raise Exception("Time out waiting for map counts to stabilize want %d, have %d" % (expected, nmaps))
|
| /linux/drivers/pinctrl/sunxi/ |
| H A D | pinctrl-sunxi.c | 436 int ret, npins, nmaps, configlen = 0, i = 0; in sunxi_pctrl_dt_node_to_map() local 463 nmaps = npins * 2; in sunxi_pctrl_dt_node_to_map() 464 *map = kmalloc_objs(struct pinctrl_map, nmaps); in sunxi_pctrl_dt_node_to_map()
|
| /linux/include/rdma/ |
| H A D | rdmavt_qp.h | 489 u32 nmaps; /* size of the map table */ member
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_da_btree.c | 2695 int *nmaps) in xfs_dabuf_map() argument 2739 *nmaps = nirecs; in xfs_dabuf_map() 2764 *nmaps = 0; in xfs_dabuf_map()
|