/linux-6.12.1/lib/ |
D | group_cpus.c | 104 unsigned ngroups; member 230 unsigned ngroups, ncpus; in alloc_nodes_groups() local 238 ngroups = max_t(unsigned, 1, in alloc_nodes_groups() 240 WARN_ON_ONCE(ngroups > ncpus); in alloc_nodes_groups() 242 node_groups[n].ngroups = ngroups; in alloc_nodes_groups() 245 numgrps -= ngroups; in alloc_nodes_groups() 293 if (nv->ngroups == UINT_MAX) in __group_cpus_evenly() 302 WARN_ON_ONCE(nv->ngroups > ncpus); in __group_cpus_evenly() 305 extra_grps = ncpus - nv->ngroups * (ncpus / nv->ngroups); in __group_cpus_evenly() 308 for (v = 0; v < nv->ngroups; v++, curgrp++) { in __group_cpus_evenly() [all …]
|
D | hexdump.c | 131 int ngroups; in hex_dump_to_buffer() local 147 ngroups = len / groupsize; in hex_dump_to_buffer() 159 for (j = 0; j < ngroups; j++) { in hex_dump_to_buffer() 170 for (j = 0; j < ngroups; j++) { in hex_dump_to_buffer() 181 for (j = 0; j < ngroups; j++) { in hex_dump_to_buffer() 225 return ascii ? ascii_column + len : (groupsize * 2 + 1) * ngroups - 1; in hex_dump_to_buffer()
|
/linux-6.12.1/drivers/pinctrl/berlin/ |
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() 210 for (i = 0; i < pctrl->desc->ngroups; i++) { in berlin_pinctrl_build_state() [all …]
|
/linux-6.12.1/fs/ext2/ |
D | ialloc.c | 201 int ngroups = EXT2_SB(sb)->s_groups_count; in find_group_dir() local 202 int avefreei = ext2_count_free_inodes(sb) / ngroups; in find_group_dir() 206 for (group = 0; group < ngroups; group++) { in find_group_dir() 256 int ngroups = sbi->s_groups_count; in find_group_orlov() local 269 avefreei = freei / ngroups; in find_group_orlov() 271 avefreeb = free_blocks / ngroups; in find_group_orlov() 279 parent_group = get_random_u32_below(ngroups); in find_group_orlov() 280 for (i = 0; i < ngroups; i++) { in find_group_orlov() 281 group = (parent_group + i) % ngroups; in find_group_orlov() 306 max_dirs = ndirs / ngroups + inodes_per_group / 16; in find_group_orlov() [all …]
|
/linux-6.12.1/fs/smb/server/mgmt/ |
D | user_config.c | 52 user->ngroups = 0; in ksmbd_alloc_user() 59 if (resp_ext->ngroups > NGROUPS_MAX) { in ksmbd_alloc_user() 61 resp_ext->ngroups, NGROUPS_MAX); in ksmbd_alloc_user() 66 resp_ext->ngroups * sizeof(gid_t), in ksmbd_alloc_user() 71 user->ngroups = resp_ext->ngroups; in ksmbd_alloc_user() 72 ksmbd_debug(SMB, "supplementary groups : %d\n", user->ngroups); in ksmbd_alloc_user()
|
/linux-6.12.1/drivers/pinctrl/spear/ |
D | pinctrl-spear310.c | 52 .ngroups = ARRAY_SIZE(emi_cs_0_to_5_grps), 84 .ngroups = ARRAY_SIZE(uart1_grps), 116 .ngroups = ARRAY_SIZE(uart2_grps), 148 .ngroups = ARRAY_SIZE(uart3_grps), 180 .ngroups = ARRAY_SIZE(uart4_grps), 212 .ngroups = ARRAY_SIZE(uart5_grps), 244 .ngroups = ARRAY_SIZE(fsmc_grps), 276 .ngroups = ARRAY_SIZE(rs485_0_grps), 308 .ngroups = ARRAY_SIZE(rs485_1_grps), 340 .ngroups = ARRAY_SIZE(tdm_grps), [all …]
|
D | pinctrl-spear1340.c | 271 .ngroups = ARRAY_SIZE(pads_as_gpio_grps), 365 .ngroups = ARRAY_SIZE(fsmc_grps), 432 .ngroups = ARRAY_SIZE(keyboard_grps), 464 .ngroups = ARRAY_SIZE(spdif_in_grps), 500 .ngroups = ARRAY_SIZE(spdif_out_grps), 540 .ngroups = ARRAY_SIZE(gpt_0_1_grps), 664 .ngroups = ARRAY_SIZE(pwm_grps), 825 .ngroups = ARRAY_SIZE(vip_grps), 862 .ngroups = ARRAY_SIZE(cam0_grps), 903 .ngroups = ARRAY_SIZE(cam1_grps), [all …]
|
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),
|
D | pinctrl-spear1310.c | 269 .ngroups = ARRAY_SIZE(i2c0_grps), 364 .ngroups = ARRAY_SIZE(ssp0_grps), 400 .ngroups = ARRAY_SIZE(i2s0_grps), 436 .ngroups = ARRAY_SIZE(i2s1_grps), 503 .ngroups = ARRAY_SIZE(clcd_grps), 547 .ngroups = ARRAY_SIZE(arm_gpio_grps), 619 .ngroups = ARRAY_SIZE(smi_grps), 657 .ngroups = ARRAY_SIZE(gmii_grps), 711 .ngroups = ARRAY_SIZE(rgmii_grps), 749 .ngroups = ARRAY_SIZE(smii_0_1_2_grps), [all …]
|
D | pinctrl-spear300.c | 218 .ngroups = ARRAY_SIZE(fsmc_grps), 279 .ngroups = ARRAY_SIZE(clcd_grps), 316 .ngroups = ARRAY_SIZE(tdm_grps), 352 .ngroups = ARRAY_SIZE(i2c_grps), 411 .ngroups = ARRAY_SIZE(cam_grps), 445 .ngroups = ARRAY_SIZE(dac_grps), 481 .ngroups = ARRAY_SIZE(i2s_grps), 551 .ngroups = ARRAY_SIZE(sdhci_grps), 612 .ngroups = ARRAY_SIZE(gpio1_grps), 658 spear3xx_machdata.ngroups = ARRAY_SIZE(spear300_pingroups); in spear300_pinctrl_probe()
|
D | pinctrl-spear320.c | 511 .ngroups = ARRAY_SIZE(clcd_grps), 594 .ngroups = ARRAY_SIZE(emi_grps), 687 .ngroups = ARRAY_SIZE(fsmc_grps), 733 .ngroups = ARRAY_SIZE(spp_grps), 890 .ngroups = ARRAY_SIZE(sdhci_grps), 943 .ngroups = ARRAY_SIZE(i2s_grps), 989 .ngroups = ARRAY_SIZE(uart1_grps), 1155 .ngroups = ARRAY_SIZE(uart1_modem_grps), 1201 .ngroups = ARRAY_SIZE(uart2_grps), 1410 .ngroups = ARRAY_SIZE(uart3_grps), [all …]
|
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-6.12.1/drivers/pinctrl/ |
D | pinctrl-zynqmp.c | 60 unsigned int ngroups; member 78 unsigned int ngroups; member 101 return pctrl->ngroups + zynqmp_desc.npins; in zynqmp_pctrl_get_groups_count() 109 if (selector < pctrl->ngroups) in zynqmp_pctrl_get_group_name() 112 return zynqmp_desc.pins[selector - pctrl->ngroups].name; in zynqmp_pctrl_get_group_name() 122 if (selector < pctrl->ngroups) { in zynqmp_pctrl_get_group_pins() 126 *pins = &zynqmp_desc.pins[selector - pctrl->ngroups].number; in zynqmp_pctrl_get_group_pins() 189 *num_groups = pctrl->funcs[selector].ngroups; in zynqmp_pmux_get_function_groups() 527 static int zynqmp_pinctrl_get_func_num_groups(u32 fid, unsigned int *ngroups) in zynqmp_pinctrl_get_func_num_groups() argument 540 *ngroups = payload[1]; in zynqmp_pinctrl_get_func_num_groups() [all …]
|
D | pinctrl-rk805.c | 37 unsigned int ngroups; member 153 .ngroups = ARRAY_SIZE(rk805_gpio_groups), 162 .ngroups = ARRAY_SIZE(rk806_gpio_groups), 168 .ngroups = ARRAY_SIZE(rk806_gpio_groups), 174 .ngroups = ARRAY_SIZE(rk806_gpio_groups), 180 .ngroups = ARRAY_SIZE(rk806_gpio_groups), 186 .ngroups = ARRAY_SIZE(rk806_gpio_groups), 192 .ngroups = ARRAY_SIZE(rk806_gpio_groups), 201 .ngroups = ARRAY_SIZE(rk816_gpio_groups), 207 .ngroups = ARRAY_SIZE(rk816_gpio_groups), [all …]
|
D | pinctrl-axp209.c | 64 unsigned int ngroups; member 270 *num_groups = pctl->funcs[selector].ngroups; in axp20x_pmx_func_groups() 370 unsigned int ngroups = hweight8(mask); in axp20x_funcs_groups_from_mask() local 373 func->ngroups = ngroups; in axp20x_funcs_groups_from_mask() 374 if (func->ngroups > 0) { in axp20x_funcs_groups_from_mask() 376 ngroups, sizeof(const char *), in axp20x_funcs_groups_from_mask() 409 pctl->funcs[i].ngroups = npins; in axp20x_build_funcs_groups()
|
/linux-6.12.1/fs/ext4/ |
D | ialloc.c | 434 ext4_group_t i, grp, g, ngroups; in find_group_orlov() local 440 ngroups = real_ngroups; in find_group_orlov() 442 ngroups = (real_ngroups + flex_size - 1) >> in find_group_orlov() 448 avefreei = freei / ngroups; in find_group_orlov() 451 do_div(avefreec, ngroups); in find_group_orlov() 464 parent_group = hinfo.hash % ngroups; in find_group_orlov() 466 parent_group = get_random_u32_below(ngroups); in find_group_orlov() 467 for (i = 0; i < ngroups; i++) { in find_group_orlov() 468 g = (parent_group + i) % ngroups; in find_group_orlov() 510 max_dirs = ndirs / ngroups + inodes_per_group*flex_size / 16; in find_group_orlov() [all …]
|
/linux-6.12.1/drivers/infiniband/hw/hfi1/ |
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-6.12.1/kernel/ |
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-6.12.1/drivers/pinctrl/pxa/ |
D | pinctrl-pxa2xx.c | 28 return pctl->ngroups; in pxa2xx_pctrl_get_groups_count() 133 *num_groups = pf->ngroups; in pxa2xx_pmx_get_func_groups() 296 int i, j, ngroups; in pxa2xx_build_groups() local 307 ngroups = 0; in pxa2xx_build_groups() 313 gtmp[ngroups++] = (char *) in pxa2xx_build_groups() 316 func->ngroups = ngroups; in pxa2xx_build_groups() 317 func->groups = devm_kmemdup(pctl->dev, gtmp, ngroups * sizeof(*gtmp), GFP_KERNEL); in pxa2xx_build_groups() 335 pctl->ngroups = npins; in pxa2xx_build_state() 346 pctl->groups = devm_kmalloc_array(pctl->dev, pctl->ngroups, in pxa2xx_build_state()
|
/linux-6.12.1/drivers/pinctrl/qcom/ |
D | pinctrl-lpass-lpi.h | 43 .ngroups = ARRAY_SIZE(fname##_groups), \ 77 unsigned int ngroups; member 84 int ngroups; member
|
/linux-6.12.1/drivers/pinctrl/mvebu/ |
D | pinctrl-armada-37xx.c | 76 int ngroups; member 82 unsigned int ngroups; member 107 unsigned int ngroups; member 217 .ngroups = ARRAY_SIZE(armada_37xx_nb_groups), 224 .ngroups = ARRAY_SIZE(armada_37xx_sb_groups), 240 while (*grp < info->ngroups) { in armada_37xx_find_next_grp_by_pin() 275 return info->ngroups; in armada_37xx_get_groups_count() 293 if (selector >= info->ngroups) in armada_37xx_get_group_pins() 338 *num_groups = info->funcs[selector].ngroups; in armada_37xx_pmx_get_groups() 840 while (funcs->ngroups) { in armada_37xx_add_function() [all …]
|
/linux-6.12.1/drivers/pinctrl/sprd/ |
D | pinctrl-sprd.c | 138 unsigned int ngroups; member 200 for (i = 0; i < info->ngroups; i++) { in sprd_pinctrl_find_group_by_name() 215 return info->ngroups; in sprd_pctrl_group_count() 235 if (selector >= info->ngroups) in sprd_pctrl_group_pins() 381 *num_groups = info->ngroups; in sprd_pmx_get_function_groups() 397 if (group_selector >= info->ngroups) in sprd_pmx_set_mux() 751 if (selector >= info->ngroups) in sprd_pinconf_group_get() 770 if (selector >= info->ngroups) in sprd_pinconf_group_set() 830 if (selector >= info->ngroups) in sprd_pinconf_group_dbg_show() 944 info->ngroups = sprd_pinctrl_get_groups(np); in sprd_pinctrl_parse_dt() [all …]
|
/linux-6.12.1/drivers/pinctrl/freescale/ |
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() 434 if (group >= info->ngroups) in imx1_pinconf_group_dbg_show() 550 u32 ngroups = 0; in imx1_pinctrl_parse_dt() local 558 ngroups += of_get_child_count(child); in imx1_pinctrl_parse_dt() 570 info->ngroups = ngroups; in imx1_pinctrl_parse_dt() 572 ngroups, sizeof(struct imx1_pin_group), GFP_KERNEL); in imx1_pinctrl_parse_dt()
|
D | pinctrl-mxs.h | 54 unsigned ngroups; member 78 unsigned ngroups; member
|
/linux-6.12.1/drivers/pinctrl/intel/ |
D | pinctrl-broxton.c | 175 .ngroups = ARRAY_SIZE(bxt_north_groups), 292 .ngroups = ARRAY_SIZE(bxt_northwest_groups), 399 .ngroups = ARRAY_SIZE(bxt_west_groups), 475 .ngroups = ARRAY_SIZE(bxt_southwest_groups), 653 .ngroups = ARRAY_SIZE(apl_north_groups), 773 .ngroups = ARRAY_SIZE(apl_northwest_groups), 883 .ngroups = ARRAY_SIZE(apl_west_groups), 975 .ngroups = ARRAY_SIZE(apl_southwest_groups),
|