/kernel/linux/linux-5.10/lib/ |
D | linear_ranges.c | 87 int linear_range_get_value(const struct linear_range *r, unsigned int selector, in linear_range_get_value() argument 90 if (r->min_sel > selector || r->max_sel < selector) in linear_range_get_value() 93 *val = r->min + (selector - r->min_sel) * r->step; in linear_range_get_value() 112 unsigned int selector, unsigned int *val) in linear_range_get_value_array() argument 117 if (r[i].min_sel <= selector && r[i].max_sel >= selector) in linear_range_get_value_array() 118 return linear_range_get_value(&r[i], selector, val); in linear_range_get_value_array() 139 unsigned int val, unsigned int *selector, in linear_range_get_selector_low() argument 148 *selector = r->max_sel; in linear_range_get_selector_low() 155 *selector = r->min_sel; in linear_range_get_selector_low() 157 *selector = (val - r->min) / r->step + r->min_sel; in linear_range_get_selector_low() [all …]
|
/kernel/linux/linux-5.10/drivers/pinctrl/ |
D | pinctrl-da850-pupd.c | 41 unsigned int selector) in da850_pupd_get_group_name() argument 43 return da850_pupd_group_names[selector]; in da850_pupd_get_group_name() 47 unsigned int selector, in da850_pupd_get_group_pins() argument 65 unsigned int selector, in da850_pupd_pin_config_group_get() argument 74 arg = !!(~val & BIT(selector)); in da850_pupd_pin_config_group_get() 89 arg = !!(val & BIT(selector)); in da850_pupd_pin_config_group_get() 101 unsigned int selector, in da850_pupd_pin_config_group_set() argument 118 ena &= ~BIT(selector); in da850_pupd_pin_config_group_set() 121 ena |= BIT(selector); in da850_pupd_pin_config_group_set() 122 sel |= BIT(selector); in da850_pupd_pin_config_group_set() [all …]
|
D | pinmux.c | 35 unsigned selector = 0; in pinmux_check_ops() local 48 while (selector < nfuncs) { in pinmux_check_ops() 50 selector); in pinmux_check_ops() 53 selector); in pinmux_check_ops() 56 selector++; in pinmux_check_ops() 324 unsigned selector = 0; in pinmux_func_name_to_selector() local 327 while (selector < nfuncs) { in pinmux_func_name_to_selector() 328 const char *fname = ops->get_function_name(pctldev, selector); in pinmux_func_name_to_selector() 331 return selector; in pinmux_func_name_to_selector() 333 selector++; in pinmux_func_name_to_selector() [all …]
|
D | pinconf.c | 75 int selector, ret; in pin_config_group_get() local 94 selector = pinctrl_get_group_selector(pctldev, pin_group); in pin_config_group_get() 95 if (selector < 0) { in pin_config_group_get() 96 ret = selector; in pin_config_group_get() 100 ret = ops->pin_config_group_get(pctldev, selector, config); in pin_config_group_get() 334 struct seq_file *s, unsigned selector, in pinconf_dump_group() argument 342 ops->pin_config_group_dbg_show(pctldev, s, selector); in pinconf_dump_group() 350 unsigned selector = 0; in pinconf_groups_show() local 355 while (selector < ngroups) { in pinconf_groups_show() 356 const char *gname = pctlops->get_group_name(pctldev, selector); in pinconf_groups_show() [all …]
|
D | pinctrl-lantiq.c | 25 unsigned selector) in ltq_get_group_name() argument 28 if (selector >= info->num_grps) in ltq_get_group_name() 30 return info->grps[selector].name; in ltq_get_group_name() 34 unsigned selector, in ltq_get_group_pins() argument 39 if (selector >= info->num_grps) in ltq_get_group_pins() 41 *pins = info->grps[selector].pins; in ltq_get_group_pins() 42 *num_pins = info->grps[selector].npins; in ltq_get_group_pins() 188 unsigned selector) in ltq_pmx_func_name() argument 192 if (selector >= info->num_funcs) in ltq_pmx_func_name() 195 return info->funcs[selector].name; in ltq_pmx_func_name()
|
/kernel/linux/linux-5.10/drivers/media/usb/uvc/ |
D | uvc_ctrl.c | 40 .selector = UVC_PU_BRIGHTNESS_CONTROL, 49 .selector = UVC_PU_CONTRAST_CONTROL, 58 .selector = UVC_PU_HUE_CONTROL, 68 .selector = UVC_PU_SATURATION_CONTROL, 77 .selector = UVC_PU_SHARPNESS_CONTROL, 86 .selector = UVC_PU_GAMMA_CONTROL, 95 .selector = UVC_PU_WHITE_BALANCE_TEMPERATURE_CONTROL, 105 .selector = UVC_PU_WHITE_BALANCE_COMPONENT_CONTROL, 115 .selector = UVC_PU_BACKLIGHT_COMPENSATION_CONTROL, 124 .selector = UVC_PU_GAIN_CONTROL, [all …]
|
/kernel/linux/linux-5.10/drivers/pinctrl/visconti/ |
D | pinctrl-common.c | 123 unsigned int selector, in visconti_pin_config_group_set() argument 132 pins = priv->devdata->groups[selector].pins; in visconti_pin_config_group_set() 133 num_pins = priv->devdata->groups[selector].nr_pins; in visconti_pin_config_group_set() 136 __func__, selector, num_pins, num_configs); in visconti_pin_config_group_set() 163 unsigned int selector) in visconti_get_group_name() argument 167 return priv->devdata->groups[selector].name; in visconti_get_group_name() 171 unsigned int selector, in visconti_get_group_pins() argument 177 *pins = priv->devdata->groups[selector].pins; in visconti_get_group_pins() 178 *num_pins = priv->devdata->groups[selector].nr_pins; in visconti_get_group_pins() 200 unsigned int selector) in visconti_get_function_name() argument [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | linear_range.h | 34 int linear_range_get_value(const struct linear_range *r, unsigned int selector, 37 unsigned int selector, unsigned int *val); 39 unsigned int val, unsigned int *selector, 42 unsigned int val, unsigned int *selector, 46 unsigned int *selector, bool *found);
|
/kernel/linux/linux-5.10/drivers/regulator/ |
D | helpers.c | 296 int selector = 0; in regulator_map_voltage_iterate() local 309 selector = i; in regulator_map_voltage_iterate() 314 return selector; in regulator_map_voltage_iterate() 462 unsigned int selector = 0; in regulator_map_voltage_pickable_linear_range() local 478 selector += linear_range_values_in_range(range); in regulator_map_voltage_pickable_linear_range() 485 selector += linear_range_values_in_range(range); in regulator_map_voltage_pickable_linear_range() 489 ret = selector + sel - range->min_sel; in regulator_map_voltage_pickable_linear_range() 499 selector += linear_range_values_in_range(range); in regulator_map_voltage_pickable_linear_range() 522 unsigned int selector) in regulator_list_voltage_linear() argument 524 if (selector >= rdev->desc->n_voltages) in regulator_list_voltage_linear() [all …]
|
D | ad5398.c | 31 unsigned selector) in ad5398_calc_current() argument 35 return chip->min_uA + (selector * range_uA / chip->current_level); in ad5398_calc_current() 89 unsigned selector; in ad5398_set_current_limit() local 101 selector = DIV_ROUND_UP((min_uA - chip->min_uA) * chip->current_level, in ad5398_set_current_limit() 103 if (ad5398_calc_current(chip, selector) > max_uA) in ad5398_set_current_limit() 107 ad5398_calc_current(chip, selector)); in ad5398_set_current_limit() 115 selector = (selector << chip->current_offset) & chip->current_mask; in ad5398_set_current_limit() 116 data = (unsigned short)selector | (data & AD5398_CURRENT_EN_MASK); in ad5398_set_current_limit()
|
D | tps65910-regulator.c | 596 unsigned selector) in tps65910_set_voltage_dcdc_sel() argument 604 dcdc_mult = (selector / VDD1_2_NUM_VOLT_FINE) + 1; in tps65910_set_voltage_dcdc_sel() 607 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3; in tps65910_set_voltage_dcdc_sel() 614 dcdc_mult = (selector / VDD1_2_NUM_VOLT_FINE) + 1; in tps65910_set_voltage_dcdc_sel() 617 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3; in tps65910_set_voltage_dcdc_sel() 624 vsel = selector + 3; in tps65910_set_voltage_dcdc_sel() 633 unsigned selector) in tps65910_set_voltage_sel() argument 654 selector << LDO_SEL_SHIFT); in tps65910_set_voltage_sel() 657 selector << BBCH_BBSEL_SHIFT); in tps65910_set_voltage_sel() 664 unsigned selector) in tps65911_set_voltage_sel() argument [all …]
|
D | max8660.c | 127 u8 selector = max8660->shadow_regs[reg]; in max8660_dcdc_get_voltage_sel() local 129 return selector; in max8660_dcdc_get_voltage_sel() 133 unsigned int selector) in max8660_dcdc_set_voltage_sel() argument 140 ret = max8660_write(max8660, reg, 0, selector); in max8660_dcdc_set_voltage_sel() 166 u8 selector = max8660->shadow_regs[MAX8660_MDTV2]; in max8660_ldo5_get_voltage_sel() local 167 return selector; in max8660_ldo5_get_voltage_sel() 171 unsigned int selector) in max8660_ldo5_set_voltage_sel() argument 176 ret = max8660_write(max8660, MAX8660_MDTV2, 0, selector); in max8660_ldo5_set_voltage_sel() 225 u8 selector = (max8660->shadow_regs[MAX8660_L12VCR] >> shift) & 0xf; in max8660_ldo67_get_voltage_sel() local 227 return selector; in max8660_ldo67_get_voltage_sel() [all …]
|
D | max1586.c | 64 unsigned selector) in max1586_v3_set_voltage_sel() argument 72 regulator_list_voltage_linear(rdev, selector) / 1000); in max1586_v3_set_voltage_sel() 74 v3_prog = I2C_V3_SELECT | (u8) selector; in max1586_v3_set_voltage_sel() 79 max1586->v3_curr_sel = selector; in max1586_v3_set_voltage_sel() 92 unsigned int selector) in max1586_v6_set_voltage_sel() argument 100 rdev->desc->volt_table[selector] / 1000); in max1586_v6_set_voltage_sel() 102 v6_prog = I2C_V6_SELECT | (u8) selector; in max1586_v6_set_voltage_sel() 107 max1586->v6_curr_sel = selector; in max1586_v6_set_voltage_sel()
|
D | wm8994-regulator.c | 42 unsigned int selector) in wm8994_ldo2_list_voltage() argument 46 if (selector > WM8994_LDO2_MAX_SELECTOR) in wm8994_ldo2_list_voltage() 51 return (selector * 100000) + 900000; in wm8994_ldo2_list_voltage() 53 return (selector * 100000) + 1000000; in wm8994_ldo2_list_voltage() 55 switch (selector) { in wm8994_ldo2_list_voltage() 59 return (selector * 100000) + 950000; in wm8994_ldo2_list_voltage()
|
D | vctrl-regulator.c | 96 unsigned int *selector) in vctrl_set_voltage() argument 160 unsigned int selector) in vctrl_set_voltage_sel() argument 169 if (selector >= rdev->desc->n_voltages) in vctrl_set_voltage_sel() 172 if (selector >= vctrl->sel || !vctrl->ovp_threshold) { in vctrl_set_voltage_sel() 175 vctrl->vtable[selector].ctrl, in vctrl_set_voltage_sel() 176 vctrl->vtable[selector].ctrl, in vctrl_set_voltage_sel() 179 vctrl->sel = selector; in vctrl_set_voltage_sel() 184 while (vctrl->sel != selector) { in vctrl_set_voltage_sel() 188 if (selector >= vctrl->vtable[vctrl->sel].ovp_min_sel) in vctrl_set_voltage_sel() 189 next_sel = selector; in vctrl_set_voltage_sel() [all …]
|
/kernel/linux/linux-5.10/drivers/md/ |
D | dm-round-robin.c | 46 struct selector { struct 52 static struct selector *alloc_selector(void) in alloc_selector() argument 54 struct selector *s = kmalloc(sizeof(*s), GFP_KERNEL); in alloc_selector() 67 struct selector *s; in rr_create() 79 struct selector *s = ps->context; in rr_destroy() 116 struct selector *s = ps->context; in rr_add_path() 160 struct selector *s = ps->context; in rr_fail_path() 171 struct selector *s = ps->context; in rr_reinstate_path() 184 struct selector *s = ps->context; in rr_select_path()
|
D | dm-queue-length.c | 29 struct selector { struct 42 static struct selector *alloc_selector(void) in alloc_selector() argument 44 struct selector *s = kmalloc(sizeof(*s), GFP_KERNEL); in alloc_selector() 57 struct selector *s = alloc_selector(); in ql_create() 78 struct selector *s = ps->context; in ql_destroy() 114 struct selector *s = ps->context; in ql_add_path() 162 struct selector *s = ps->context; in ql_fail_path() 173 struct selector *s = ps->context; in ql_reinstate_path() 189 struct selector *s = ps->context; in ql_select_path()
|
D | dm-historical-service-time.c | 44 struct selector { struct 130 static struct selector *alloc_selector(void) in alloc_selector() 132 struct selector *s = kmalloc(sizeof(*s), GFP_KERNEL); in alloc_selector() 149 struct selector *s = ps->context; in hst_weight() 164 struct selector *s = ps->context; in hst_set_weights() 177 struct selector *s; in hst_create() 229 struct selector *s = ps->context; in hst_destroy() 244 struct selector *s = ps->context; in hst_status() 267 struct selector *s = ps->context; in hst_add_path() 318 struct selector *s = ps->context; in hst_fail_path() [all …]
|
D | dm-service-time.c | 24 struct selector { struct 38 static struct selector *alloc_selector(void) in alloc_selector() argument 40 struct selector *s = kmalloc(sizeof(*s), GFP_KERNEL); in alloc_selector() 53 struct selector *s = alloc_selector(); in st_create() 74 struct selector *s = ps->context; in st_destroy() 111 struct selector *s = ps->context; in st_add_path() 175 struct selector *s = ps->context; in st_fail_path() 186 struct selector *s = ps->context; in st_reinstate_path() 276 struct selector *s = ps->context; in st_select_path()
|
/kernel/linux/linux-5.10/drivers/pinctrl/cirrus/ |
D | pinctrl-madera-core.c | 452 unsigned int selector) in madera_get_group_name() argument 456 if (selector < priv->chip->n_pin_groups) in madera_get_group_name() 457 return priv->chip->pin_groups[selector].name; in madera_get_group_name() 459 selector -= priv->chip->n_pin_groups; in madera_get_group_name() 460 return madera_pin_single_group_names[selector]; in madera_get_group_name() 464 unsigned int selector, in madera_get_group_pins() argument 470 if (selector < priv->chip->n_pin_groups) { in madera_get_group_pins() 471 *pins = priv->chip->pin_groups[selector].pins; in madera_get_group_pins() 472 *num_pins = priv->chip->pin_groups[selector].n_pins; in madera_get_group_pins() 475 selector -= priv->chip->n_pin_groups; in madera_get_group_pins() [all …]
|
/kernel/linux/linux-5.10/sound/usb/ |
D | clock.c | 271 struct uac_clock_selector_descriptor *selector; in __uac_clock_find_source() local 297 selector = snd_usb_find_clock_selector(chip->ctrl_intf, entity_id); in __uac_clock_find_source() 298 if (selector) { in __uac_clock_find_source() 303 ret = uac_clock_selector_get_val(chip, selector->bClockID); in __uac_clock_find_source() 309 if (ret > selector->bNrInPins || ret < 1) { in __uac_clock_find_source() 312 __func__, selector->bClockID, ret); in __uac_clock_find_source() 319 selector->baCSourceID[ret - 1], in __uac_clock_find_source() 337 for (i = 1; i <= selector->bNrInPins; i++) { in __uac_clock_find_source() 342 selector->baCSourceID[i - 1], in __uac_clock_find_source() 375 struct uac3_clock_selector_descriptor *selector; in __uac3_clock_find_source() local [all …]
|
/kernel/linux/linux-5.10/drivers/pinctrl/bcm/ |
D | pinctrl-ns.c | 157 unsigned int selector) in ns_pinctrl_get_group_name() argument 161 return ns_pinctrl->groups[selector].name; in ns_pinctrl_get_group_name() 165 unsigned int selector, in ns_pinctrl_get_group_pins() argument 171 *pins = ns_pinctrl->groups[selector].pins; in ns_pinctrl_get_group_pins() 172 *num_pins = ns_pinctrl->groups[selector].num_pins; in ns_pinctrl_get_group_pins() 197 unsigned int selector) in ns_pinctrl_get_function_name() argument 201 return ns_pinctrl->functions[selector].name; in ns_pinctrl_get_function_name() 205 unsigned int selector, in ns_pinctrl_get_function_groups() argument 211 *groups = ns_pinctrl->functions[selector].groups; in ns_pinctrl_get_function_groups() 212 *num_groups = ns_pinctrl->functions[selector].num_groups; in ns_pinctrl_get_function_groups()
|
/kernel/linux/linux-5.10/include/linux/regulator/ |
D | driver.h | 130 int (*list_voltage) (struct regulator_dev *, unsigned selector); 134 unsigned *selector); 136 int (*set_voltage_sel) (struct regulator_dev *, unsigned selector); 500 unsigned int selector); 502 unsigned int selector); 504 unsigned int selector); 506 unsigned int selector); 546 unsigned int selector);
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
D | special_insns.h | 135 extern asmlinkage void asm_load_gs_index(unsigned int selector); 137 static inline void native_load_gs_index(unsigned int selector) in native_load_gs_index() argument 142 asm_load_gs_index(selector); in native_load_gs_index() 201 static inline void load_gs_index(unsigned int selector) in load_gs_index() argument 203 native_load_gs_index(selector); in load_gs_index()
|
/kernel/linux/linux-5.10/drivers/pinctrl/renesas/ |
D | pinctrl-rzn1.c | 303 unsigned int selector) in rzn1_get_group_name() argument 307 return ipctl->groups[selector].name; in rzn1_get_group_name() 311 unsigned int selector, const unsigned int **pins, in rzn1_get_group_pins() argument 316 if (selector >= ipctl->ngroups) in rzn1_get_group_pins() 319 *pins = ipctl->groups[selector].pins; in rzn1_get_group_pins() 320 *npins = ipctl->groups[selector].npins; in rzn1_get_group_pins() 440 unsigned int selector) in rzn1_pmx_get_func_name() argument 444 return ipctl->functions[selector].name; in rzn1_pmx_get_func_name() 448 unsigned int selector, in rzn1_pmx_get_groups() argument 454 *groups = ipctl->functions[selector].groups; in rzn1_pmx_get_groups() [all …]
|