| /linux/lib/ |
| H A D | group_cpus.c | 104 unsigned ngroups; member 123 unsigned int ngroups, ncpus; in alloc_groups_to_nodes() local 204 ngroups = max_t(unsigned, 1, in alloc_groups_to_nodes() 206 WARN_ON_ONCE(ngroups > ncpus); in alloc_groups_to_nodes() 208 node_groups[n].ngroups = ngroups; in alloc_groups_to_nodes() 211 numgrps -= ngroups; in alloc_groups_to_nodes() 267 extra_grps = ncpus - nv->ngroups * (ncpus / nv->ngroups); in assign_cpus_to_groups() 270 for (v = 0; v < nv->ngroups; v++, *curgrp += 1) { in assign_cpus_to_groups() 271 cpus_per_grp = ncpus / nv->ngroups; in assign_cpus_to_groups() 290 unsigned int ngroups, in alloc_cluster_groups() argument [all …]
|
| /linux/drivers/pinctrl/ |
| H A D | pinctrl-generic.c | 25 const char **group_names, unsigned int ngroups, in pinctrl_generic_to_map() argument 38 group_names[ngroups] = group_name; in pinctrl_generic_to_map() 95 unsigned int ngroups) in pinctrl_generic_pins_function_dt_subnode_to_map() argument 131 num_reserved_maps, group_names, ngroups, in pinctrl_generic_pins_function_dt_subnode_to_map() 142 unsigned int ngroups) in pinctrl_generic_pinmux_dt_subnode_to_map() argument 176 num_reserved_maps, group_names, ngroups, in pinctrl_generic_pinmux_dt_subnode_to_map() 198 int ngroups = 0; in pinctrl_generic_dt_node_to_map() local 218 &num_reserved_maps, group_names, ngroups); in pinctrl_generic_dt_node_to_map() 234 ngroups += 1; in pinctrl_generic_dt_node_to_map() 236 group_names = devm_kcalloc(dev, ngroups, sizeof(*group_names), GFP_KERNEL); in pinctrl_generic_dt_node_to_map() [all …]
|
| H A D | pinctrl-zynqmp.c | 66 unsigned int ngroups; member 84 unsigned int ngroups; member 108 return pctrl->ngroups + zynqmp_desc.npins; in zynqmp_pctrl_get_groups_count() 116 if (selector < pctrl->ngroups) in zynqmp_pctrl_get_group_name() 119 return zynqmp_desc.pins[selector - pctrl->ngroups].name; in zynqmp_pctrl_get_group_name() 129 if (selector < pctrl->ngroups) { in zynqmp_pctrl_get_group_pins() 133 *pins = &zynqmp_desc.pins[selector - pctrl->ngroups].number; in zynqmp_pctrl_get_group_pins() 196 *num_groups = pctrl->funcs[selector].ngroups; in zynqmp_pmux_get_function_groups() 534 static int zynqmp_pinctrl_get_func_num_groups(u32 fid, unsigned int *ngroups) in zynqmp_pinctrl_get_func_num_groups() argument 547 *ngroups = payload[1]; in zynqmp_pinctrl_get_func_num_groups() [all …]
|
| H A D | pinctrl-k230.c | 64 unsigned int ngroups; member 74 unsigned int ngroups; member 91 return info->ngroups; in k230_get_groups_count() 109 if (selector >= info->ngroups) in k230_get_group_pins() 208 for (i = 0; i < func->ngroups; ++i) { in k230_dt_node_to_map() 221 for (i = 0; i < func->ngroups; ++i) { in k230_dt_node_to_map() 432 *num_groups = info->functions[selector].ngroups; in k230_get_groups() 524 func->ngroups = of_get_child_count(np); in k230_pinctrl_parse_functions() 525 if (func->ngroups <= 0) in k230_pinctrl_parse_functions() 528 func->groups = devm_kcalloc(dev, func->ngroups, in k230_pinctrl_parse_functions() [all …]
|
| H A D | pinctrl-axp209.c | 64 unsigned int ngroups; member 265 *num_groups = pctl->funcs[selector].ngroups; in axp20x_pmx_func_groups() 365 unsigned int ngroups = hweight8(mask); in axp20x_funcs_groups_from_mask() local 368 func->ngroups = ngroups; in axp20x_funcs_groups_from_mask() 369 if (func->ngroups > 0) { in axp20x_funcs_groups_from_mask() 371 ngroups, sizeof(const char *), in axp20x_funcs_groups_from_mask() 404 pctl->funcs[i].ngroups = npins; in axp20x_build_funcs_groups()
|
| H A D | pinctrl-eic7700.c | 481 *num_groups = pc->functions[selector].ngroups; in eic7700_get_function_groups() 558 unsigned int ngroups = 0; in eic7700_pinctrl_init_function_groups() local 577 function->ngroups++; in eic7700_pinctrl_init_function_groups() 578 ngroups++; in eic7700_pinctrl_init_function_groups() 582 groups = devm_kcalloc(dev, ngroups, sizeof(*groups), GFP_KERNEL); in eic7700_pinctrl_init_function_groups() 591 groups += function->ngroups; in eic7700_pinctrl_init_function_groups() 594 function->ngroups = 0; in eic7700_pinctrl_init_function_groups() 614 ((const char **)function->groups)[function->ngroups++] = desc->name; in eic7700_pinctrl_init_function_groups()
|
| /linux/drivers/pinctrl/berlin/ |
| H A D | berlin.c | 39 return pctrl->desc->ngroups; in berlin_pinctrl_get_group_count() 59 int ret, ngroups; in berlin_pinctrl_dt_node_to_map() local 71 ngroups = of_property_count_strings(node, "groups"); in berlin_pinctrl_dt_node_to_map() 72 if (ngroups < 0) { in berlin_pinctrl_dt_node_to_map() 79 num_maps, ngroups); in berlin_pinctrl_dt_node_to_map() 123 unsigned * const ngroups) in berlin_pinmux_get_function_groups() argument 128 *ngroups = pctrl->functions[function].ngroups; in berlin_pinmux_get_function_groups() 187 function->ngroups++; in berlin_pinctrl_add_function() 194 function->ngroups = 1; in berlin_pinctrl_add_function() 211 for (i = 0; i < pctrl->desc->ngroups; i++) { in berlin_pinctrl_build_state() [all …]
|
| /linux/drivers/pinctrl/spear/ |
| H A D | pinctrl-spear310.c | 51 .ngroups = ARRAY_SIZE(emi_cs_0_to_5_grps), 83 .ngroups = ARRAY_SIZE(uart1_grps), 115 .ngroups = ARRAY_SIZE(uart2_grps), 147 .ngroups = ARRAY_SIZE(uart3_grps), 179 .ngroups = ARRAY_SIZE(uart4_grps), 211 .ngroups = ARRAY_SIZE(uart5_grps), 243 .ngroups = ARRAY_SIZE(fsmc_grps), 275 .ngroups = ARRAY_SIZE(rs485_0_grps), 307 .ngroups = ARRAY_SIZE(rs485_1_grps), 339 .ngroups = ARRAY_SIZE(tdm_grps), [all …]
|
| H A D | pinctrl-spear1340.c | 270 .ngroups = ARRAY_SIZE(pads_as_gpio_grps), 364 .ngroups = ARRAY_SIZE(fsmc_grps), 431 .ngroups = ARRAY_SIZE(keyboard_grps), 463 .ngroups = ARRAY_SIZE(spdif_in_grps), 499 .ngroups = ARRAY_SIZE(spdif_out_grps), 539 .ngroups = ARRAY_SIZE(gpt_0_1_grps), 663 .ngroups = ARRAY_SIZE(pwm_grps), 824 .ngroups = ARRAY_SIZE(vip_grps), 861 .ngroups = ARRAY_SIZE(cam0_grps), 902 .ngroups = ARRAY_SIZE(cam1_grps), [all …]
|
| H A D | pinctrl-spear3xx.c | 51 .ngroups = ARRAY_SIZE(firda_grps), 84 .ngroups = ARRAY_SIZE(i2c_grps), 117 .ngroups = ARRAY_SIZE(ssp_cs_grps), 150 .ngroups = ARRAY_SIZE(ssp_grps), 184 .ngroups = ARRAY_SIZE(mii_grps), 349 .ngroups = ARRAY_SIZE(gpio0_grps), 382 .ngroups = ARRAY_SIZE(uart0_ext_grps), 415 .ngroups = ARRAY_SIZE(uart0_grps), 448 .ngroups = ARRAY_SIZE(timer_0_1_grps), 481 .ngroups = ARRAY_SIZE(timer_2_3_grps),
|
| H A D | pinctrl-spear1310.c | 268 .ngroups = ARRAY_SIZE(i2c0_grps), 363 .ngroups = ARRAY_SIZE(ssp0_grps), 399 .ngroups = ARRAY_SIZE(i2s0_grps), 435 .ngroups = ARRAY_SIZE(i2s1_grps), 502 .ngroups = ARRAY_SIZE(clcd_grps), 546 .ngroups = ARRAY_SIZE(arm_gpio_grps), 618 .ngroups = ARRAY_SIZE(smi_grps), 656 .ngroups = ARRAY_SIZE(gmii_grps), 710 .ngroups = ARRAY_SIZE(rgmii_grps), 748 .ngroups = ARRAY_SIZE(smii_0_1_2_grps), [all …]
|
| H A D | pinctrl-spear300.c | 217 .ngroups = ARRAY_SIZE(fsmc_grps), 278 .ngroups = ARRAY_SIZE(clcd_grps), 315 .ngroups = ARRAY_SIZE(tdm_grps), 351 .ngroups = ARRAY_SIZE(i2c_grps), 410 .ngroups = ARRAY_SIZE(cam_grps), 444 .ngroups = ARRAY_SIZE(dac_grps), 480 .ngroups = ARRAY_SIZE(i2s_grps), 550 .ngroups = ARRAY_SIZE(sdhci_grps), 611 .ngroups = ARRAY_SIZE(gpio1_grps), 657 spear3xx_machdata.ngroups = ARRAY_SIZE(spear300_pingroups); in spear300_pinctrl_probe()
|
| H A D | pinctrl-spear320.c | 510 .ngroups = ARRAY_SIZE(clcd_grps), 593 .ngroups = ARRAY_SIZE(emi_grps), 686 .ngroups = ARRAY_SIZE(fsmc_grps), 732 .ngroups = ARRAY_SIZE(spp_grps), 889 .ngroups = ARRAY_SIZE(sdhci_grps), 942 .ngroups = ARRAY_SIZE(i2s_grps), 988 .ngroups = ARRAY_SIZE(uart1_grps), 1154 .ngroups = ARRAY_SIZE(uart1_modem_grps), 1200 .ngroups = ARRAY_SIZE(uart2_grps), 1409 .ngroups = ARRAY_SIZE(uart3_grps), [all …]
|
| H A D | pinctrl-spear.c | 103 for (group = 0; group < machdata->ngroups; group++) { in pmx_init_addr() 120 return pmx->machdata->ngroups; in spear_pinctrl_get_groups_cnt() 228 unsigned * const ngroups) in spear_pinctrl_get_func_groups() argument 233 *ngroups = pmx->machdata->functions[function]->ngroups; in spear_pinctrl_get_func_groups()
|
| /linux/fs/ext4/ |
| H A D | ialloc.c | 437 ext4_group_t i, grp, g, ngroups; in find_group_orlov() local 443 ngroups = real_ngroups; in find_group_orlov() 445 ngroups = (real_ngroups + flex_size - 1) >> in find_group_orlov() 451 avefreei = freei / ngroups; in find_group_orlov() 454 do_div(avefreec, ngroups); in find_group_orlov() 467 parent_group = hinfo.hash % ngroups; in find_group_orlov() 469 parent_group = get_random_u32_below(ngroups); in find_group_orlov() 470 for (i = 0; i < ngroups; i++) { in find_group_orlov() 471 g = (parent_group + i) % ngroups; in find_group_orlov() 513 max_dirs = ndirs / ngroups + inodes_per_group*flex_size / 16; in find_group_orlov() [all …]
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | exp_rcv.c | 40 u32 ngroups; in hfi1_alloc_ctxt_rcv_groups() local 42 ngroups = rcd->expected_count / dd->rcv_entries.group_size; in hfi1_alloc_ctxt_rcv_groups() 44 kcalloc_node(ngroups, sizeof(*rcd->groups), in hfi1_alloc_ctxt_rcv_groups() 49 for (i = 0; i < ngroups; i++) { in hfi1_alloc_ctxt_rcv_groups()
|
| /linux/kernel/ |
| H A D | groups.c | 23 gi->ngroups = gidsetsize; in groups_alloc() 42 unsigned int count = group_info->ngroups; in groups_to_user() 59 unsigned int count = group_info->ngroups; in groups_from_user() 86 sort(group_info->gid, group_info->ngroups, sizeof(*group_info->gid), in groups_sort() 100 right = group_info->ngroups; in groups_search() 170 i = cred->group_info->ngroups; in SYSCALL_DEFINE2()
|
| /linux/drivers/pinctrl/freescale/ |
| H A D | pinctrl-imx1-core.c | 164 for (i = 0; i < info->ngroups; i++) { in imx1_pinctrl_find_group_by_name() 179 return info->ngroups; in imx1_get_groups_count() 198 if (selector >= info->ngroups) in imx1_get_group_pins() 433 if (group >= info->ngroups) in imx1_pinconf_group_dbg_show() 570 u32 ngroups = 0; in imx1_pinctrl_parse_dt() local 579 ngroups = of_get_child_count(np); in imx1_pinctrl_parse_dt() 583 ngroups += of_get_child_count(child); in imx1_pinctrl_parse_dt() 596 info->ngroups = ngroups; in imx1_pinctrl_parse_dt() 598 ngroups, sizeof(struct imx1_pin_group), GFP_KERNEL); in imx1_pinctrl_parse_dt()
|
| H A D | pinctrl-mxs.h | 54 unsigned ngroups; member 78 unsigned ngroups; member
|
| /linux/drivers/pinctrl/sophgo/ |
| H A D | pinctrl-sophgo-common.c | 86 int ngroups = 0; in sophgo_pctrl_dt_node_to_map() local 91 ngroups += 1; in sophgo_pctrl_dt_node_to_map() 93 grpnames = devm_kcalloc(dev, ngroups, sizeof(*grpnames), GFP_KERNEL); in sophgo_pctrl_dt_node_to_map() 97 map = kzalloc_objs(*map, ngroups * 2); in sophgo_pctrl_dt_node_to_map() 101 ngroups = 0; in sophgo_pctrl_dt_node_to_map() 124 grpnames[ngroups++] = grpname; in sophgo_pctrl_dt_node_to_map() 203 grpnames, ngroups, NULL); in sophgo_pctrl_dt_node_to_map()
|
| /linux/drivers/pinctrl/intel/ |
| H A D | pinctrl-broxton.c | 174 .ngroups = ARRAY_SIZE(bxt_north_groups), 291 .ngroups = ARRAY_SIZE(bxt_northwest_groups), 398 .ngroups = ARRAY_SIZE(bxt_west_groups), 474 .ngroups = ARRAY_SIZE(bxt_southwest_groups), 652 .ngroups = ARRAY_SIZE(apl_north_groups), 772 .ngroups = ARRAY_SIZE(apl_northwest_groups), 882 .ngroups = ARRAY_SIZE(apl_west_groups), 974 .ngroups = ARRAY_SIZE(apl_southwest_groups),
|
| /linux/net/netlink/ |
| H A D | diag.c | 16 unsigned int ngroups; in sk_diag_dump_groups() local 27 ngroups = smp_load_acquire(&nlk->ngroups); in sk_diag_dump_groups() 32 return nla_put(nlskb, NETLINK_DIAG_GROUPS, NLGRPSZ(ngroups), groups); in sk_diag_dump_groups()
|
| /linux/drivers/pinctrl/meson/ |
| H A D | pinctrl-amlogic-a4.c | 80 unsigned int ngroups; member 110 int ngroups; member 289 *ngrps = info->functions[selector].ngroups; in aml_pmx_get_groups() 704 return info->ngroups; in aml_get_groups_count() 721 if (selector >= info->ngroups) in aml_get_group_pins() 823 func->ngroups = of_get_child_count(np); in aml_pctl_parse_functions() 824 if (func->ngroups == 0) in aml_pctl_parse_functions() 827 func->groups = devm_kcalloc(dev, func->ngroups, sizeof(*func->groups), GFP_KERNEL); in aml_pctl_parse_functions() 844 dev_dbg(dev, "Function[%d\t name:%s,\tgroups:%d]\n", index, func->name, func->ngroups); in aml_pctl_parse_functions() 903 info->ngroups += of_get_child_count(child); in aml_pctl_dt_child_count() [all …]
|
| /linux/drivers/pinctrl/nomadik/ |
| H A D | pinctrl-abx500.h | 42 unsigned ngroups; member 174 unsigned ngroups; member
|
| /linux/drivers/pinctrl/renesas/ |
| H A D | pinctrl-rzn1.c | 122 unsigned int ngroups; member 291 for (i = 0; i < ipctl->ngroups; i++) { in rzn1_pinctrl_find_group_by_name() 303 return ipctl->ngroups; in rzn1_get_groups_count() 320 if (selector >= ipctl->ngroups) in rzn1_get_group_pins() 784 grp = &ipctl->groups[ipctl->ngroups]; in rzn1_pinctrl_parse_functions() 790 ipctl->ngroups++; in rzn1_pinctrl_parse_functions() 795 grp = &ipctl->groups[ipctl->ngroups]; in rzn1_pinctrl_parse_functions() 801 ipctl->ngroups++; in rzn1_pinctrl_parse_functions() 830 ipctl->ngroups = 0; in rzn1_pinctrl_probe_dt()
|