Home
last modified time | relevance | path

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

/drivers/pinctrl/sophgo/
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 …]
/drivers/mtd/maps/
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 …]
/drivers/pinctrl/
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 …]
/drivers/pinctrl/starfive/
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 …]
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 …]
/drivers/pinctrl/spacemit/
A Dpinctrl-k1.c309 int nmaps = 0; in spacemit_pctrl_dt_node_to_map() local
373 map[nmaps].type = PIN_MAP_TYPE_MUX_GROUP; in spacemit_pctrl_dt_node_to_map()
374 map[nmaps].data.mux.function = np->name; in spacemit_pctrl_dt_node_to_map()
375 map[nmaps].data.mux.group = grpname; in spacemit_pctrl_dt_node_to_map()
376 nmaps += 1; in spacemit_pctrl_dt_node_to_map()
384 &map[nmaps].data.configs.configs, in spacemit_pctrl_dt_node_to_map()
390 if (map[nmaps].data.configs.num_configs == 0) in spacemit_pctrl_dt_node_to_map()
393 map[nmaps].type = PIN_MAP_TYPE_CONFIGS_GROUP; in spacemit_pctrl_dt_node_to_map()
395 nmaps += 1; in spacemit_pctrl_dt_node_to_map()
401 pinctrl_utils_free_map(pctldev, map, nmaps); in spacemit_pctrl_dt_node_to_map()
[all …]
/drivers/vhost/
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()
/drivers/pinctrl/mvebu/
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()
/drivers/pinctrl/renesas/
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()
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()
A Dpinctrl-rzg2l.c615 unsigned int nmaps = *num_maps; in rzg2l_dt_subnode_to_map() local
663 nmaps += 1; in rzg2l_dt_subnode_to_map()
665 nmaps += 1; in rzg2l_dt_subnode_to_map()
669 nmaps += num_pins; in rzg2l_dt_subnode_to_map()
671 maps = krealloc_array(maps, nmaps, sizeof(*maps), GFP_KERNEL); in rzg2l_dt_subnode_to_map()
678 *num_maps = nmaps; in rzg2l_dt_subnode_to_map()
/drivers/infiniband/sw/rdmavt/
A Dqp.c309 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()
522 max_scan = qpt->nmaps - !offset; in alloc_qpn()
548 if (qpt->nmaps == RVT_QPNMAP_ENTRIES) in alloc_qpn()
550 map = &qpt->map[qpt->nmaps++]; in alloc_qpn()
553 } else if (map < &qpt->map[qpt->nmaps]) { in alloc_qpn()
/drivers/pinctrl/sunxi/
A Dpinctrl-sunxi.c410 int ret, npins, nmaps, configlen = 0, i = 0; in sunxi_pctrl_dt_node_to_map() local
437 nmaps = npins * 2; in sunxi_pctrl_dt_node_to_map()
438 *map = kmalloc_array(nmaps, sizeof(struct pinctrl_map), GFP_KERNEL); in sunxi_pctrl_dt_node_to_map()

Completed in 61 milliseconds