/linux/drivers/pinctrl/sunxi/ |
H A D | pinctrl-sunxi-dt.c | 151 int num_funcs, irq_bank, last_bank, i; in prepare_function_table() local 159 num_funcs = 3 * npins; in prepare_function_table() 173 num_funcs++; in prepare_function_table() 192 num_funcs++; in prepare_function_table() 202 func = devm_kzalloc(dev, num_funcs * sizeof(*func), GFP_KERNEL); in prepare_function_table()
|
/linux/drivers/pinctrl/vt8500/ |
H A D | pinctrl-wmt.c | 303 int num_pins, num_funcs, num_pulls, maps_per_pin; in wmt_pctl_dt_node_to_map() local 326 num_funcs = funcs ? (funcs->length / sizeof(u32)) : 0; in wmt_pctl_dt_node_to_map() 329 if (num_funcs > 1 && num_funcs != num_pins) { in wmt_pctl_dt_node_to_map() 342 if (num_funcs) in wmt_pctl_dt_node_to_map() 363 if (num_funcs) { in wmt_pctl_dt_node_to_map() 365 (num_funcs > 1 ? i : 0), &func); in wmt_pctl_dt_node_to_map()
|
/linux/drivers/accessibility/speakup/ |
H A D | keyhelp.c | 118 int num_funcs = MSG_FUNCNAMES_END - MSG_FUNCNAMES_START + 1; in help_init() local 121 for (i = 0; i < num_funcs; i++) { in help_init()
|
/linux/drivers/pinctrl/bcm/ |
H A D | pinctrl-bcm2835.c | 826 int num_pins, num_funcs, num_pulls, maps_per_pin; in bcm2835_pctl_dt_node_to_map() local 854 num_funcs = funcs ? (funcs->length / 4) : 0; in bcm2835_pctl_dt_node_to_map() 857 if (num_funcs > 1 && num_funcs != num_pins) { in bcm2835_pctl_dt_node_to_map() 872 if (num_funcs) in bcm2835_pctl_dt_node_to_map() 892 if (num_funcs) { in bcm2835_pctl_dt_node_to_map() 894 (num_funcs > 1) ? i : 0, &func); in bcm2835_pctl_dt_node_to_map()
|
/linux/drivers/pinctrl/ |
H A D | pinctrl-lantiq.c | 185 return info->num_funcs; in ltq_pmx_func_count() 193 if (selector >= info->num_funcs) in ltq_pmx_func_name()
|
H A D | pinctrl-lantiq.h | 89 unsigned int num_funcs; member
|
H A D | pinctrl-rp1.c | 1182 int num_pins, num_funcs, num_pulls, maps_per_pin; in rp1_pctl_dt_node_to_map() local 1213 num_funcs = funcs ? (funcs->length / 4) : 0; in rp1_pctl_dt_node_to_map() 1216 if (num_funcs > 1 && num_funcs != num_pins) { in rp1_pctl_dt_node_to_map() 1231 if (function || num_funcs) in rp1_pctl_dt_node_to_map() 1246 if (num_funcs) { in rp1_pctl_dt_node_to_map() 1248 (num_funcs > 1) ? i : 0, in rp1_pctl_dt_node_to_map()
|
H A D | pinctrl-xway.c | 1372 unsigned int num_funcs; member 1384 .num_funcs = ARRAY_SIZE(ase_funcs), 1396 .num_funcs = ARRAY_SIZE(danube_funcs), 1408 .num_funcs = ARRAY_SIZE(xrx100_funcs), 1420 .num_funcs = ARRAY_SIZE(xrx200_funcs), 1432 .num_funcs = ARRAY_SIZE(xrx300_funcs), 1497 xway_info.num_funcs = xway_soc->num_funcs; in pinmux_xway_probe()
|
H A D | pinctrl-falcon.c | 486 falcon_info.num_funcs = ARRAY_SIZE(falcon_funcs); in pinctrl_falcon_probe()
|
/linux/drivers/pinctrl/tegra/ |
H A D | pinctrl-tegra-xusb.c | 77 unsigned int num_funcs; member 305 for (i = 0; i < lane->num_funcs; i++) in tegra_xusb_padctl_pinmux_set() 309 if (i >= lane->num_funcs) in tegra_xusb_padctl_pinmux_set() 834 .num_funcs = ARRAY_SIZE(tegra124_##_funcs##_functions), \
|
/linux/drivers/pinctrl/meson/ |
H A D | pinctrl-meson.h | 117 unsigned int num_funcs; member
|
H A D | pinctrl-meson-gxl.c | 834 .num_funcs = ARRAY_SIZE(meson_gxl_periphs_functions), 847 .num_funcs = ARRAY_SIZE(meson_gxl_aobus_functions),
|
H A D | pinctrl-meson8b.c | 954 .num_funcs = ARRAY_SIZE(meson8b_cbus_functions), 967 .num_funcs = ARRAY_SIZE(meson8b_aobus_functions),
|
H A D | pinctrl-meson-axg.c | 1051 .num_funcs = ARRAY_SIZE(meson_axg_periphs_functions), 1065 .num_funcs = ARRAY_SIZE(meson_axg_aobus_functions),
|
H A D | pinctrl-meson8.c | 1090 .num_funcs = ARRAY_SIZE(meson8_cbus_functions), 1103 .num_funcs = ARRAY_SIZE(meson8_aobus_functions),
|
H A D | pinctrl-meson-g12a.c | 1402 .num_funcs = ARRAY_SIZE(meson_g12a_periphs_functions), 1416 .num_funcs = ARRAY_SIZE(meson_g12a_aobus_functions),
|
/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_dev.c | 3769 u8 num_funcs = p_hwfn->num_funcs_on_engine; in qed_hw_get_dflt_resc() local 3774 *p_resc_num = NUM_OF_L2_QUEUES(cdev) / num_funcs; in qed_hw_get_dflt_resc() 3777 *p_resc_num = NUM_OF_VPORTS(cdev) / num_funcs; in qed_hw_get_dflt_resc() 3780 *p_resc_num = NUM_OF_RSS_ENGINES(cdev) / num_funcs; in qed_hw_get_dflt_resc() 3783 *p_resc_num = NUM_OF_QM_TX_QUEUES(cdev) / num_funcs; in qed_hw_get_dflt_resc() 3787 *p_resc_num = NUM_OF_QM_GLOBAL_RLS(cdev) / num_funcs; in qed_hw_get_dflt_resc() 3792 *p_resc_num = ETH_NUM_MAC_FILTERS / num_funcs; in qed_hw_get_dflt_resc() 3795 *p_resc_num = NUM_OF_PXP_ILT_RECORDS(cdev) / num_funcs; in qed_hw_get_dflt_resc() 3798 *p_resc_num = MAX_NUM_LL2_RX_RAM_QUEUES / num_funcs; in qed_hw_get_dflt_resc() 3801 *p_resc_num = MAX_NUM_LL2_RX_CTX_QUEUES / num_funcs; in qed_hw_get_dflt_resc() [all …]
|
/linux/kernel/bpf/ |
H A D | dispatcher.c | 89 int __weak arch_prepare_bpf_dispatcher(void *image, void *buf, s64 *funcs, int num_funcs) in arch_prepare_bpf_dispatcher() argument
|
/linux/drivers/pinctrl/mediatek/ |
H A D | pinctrl-paris.c | 442 int num_pins, num_funcs, maps_per_pin, i, err; in mtk_pctrl_dt_subnode_to_map() local 467 num_funcs = num_pins; in mtk_pctrl_dt_subnode_to_map() 469 if (num_funcs) in mtk_pctrl_dt_subnode_to_map()
|
H A D | pinctrl-mtk-common.c | 530 int num_pins, num_funcs, maps_per_pin; in mtk_pctrl_dt_subnode_to_map() local 555 num_funcs = num_pins; in mtk_pctrl_dt_subnode_to_map() 557 if (num_funcs) in mtk_pctrl_dt_subnode_to_map()
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_common.c | 2454 if (hw->dev_caps.num_funcs > 4) { in ice_recalc_port_limited_caps() 2695 dev_p->num_funcs = hweight32(number); in ice_parse_valid_functions_cap() 2697 dev_p->num_funcs); in ice_parse_valid_functions_cap() 3135 u32 num_funcs; in ice_set_safe_mode_caps() local 3167 num_funcs = dev_caps->num_funcs; in ice_set_safe_mode_caps() 3185 dev_caps->num_funcs = num_funcs; in ice_set_safe_mode_caps() 3188 dev_caps->common_cap.num_rxq = num_funcs; in ice_set_safe_mode_caps() 3189 dev_caps->common_cap.num_txq = num_funcs; in ice_set_safe_mode_caps() 3192 dev_caps->common_cap.num_msix_vectors = 2 * num_funcs; in ice_set_safe_mode_caps()
|
/linux/drivers/phy/tegra/ |
H A D | xusb.h | 39 unsigned int num_funcs; member
|
H A D | xusb.c | 126 err = match_string(lane->soc->funcs, lane->soc->num_funcs, function); in tegra_xusb_lane_parse_dt() 327 if (soc->num_funcs < 2) in tegra_xusb_lane_program()
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_lrc.c | 1030 unsigned int num_funcs; member 1054 for (size_t i = 0; i < state->num_funcs; i++) { in setup_bo() 1101 .num_funcs = ARRAY_SIZE(funcs), in setup_wa_bb() 1139 state.num_funcs = ARRAY_SIZE(rcs_funcs); in setup_indirect_ctx()
|
/linux/drivers/pinctrl/stm32/ |
H A D | pinctrl-stm32.c | 718 int num_pins, num_funcs, maps_per_pin, i, err = 0; in stm32_pctrl_dt_subnode_to_map() local 738 num_funcs = num_pins; in stm32_pctrl_dt_subnode_to_map() 740 if (num_funcs) in stm32_pctrl_dt_subnode_to_map()
|