Home
last modified time | relevance | path

Searched refs:selector (Results 1 – 25 of 419) sorted by relevance

12345678910>>...17

/linux-6.12.1/lib/
Dlinear_ranges.c87 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 …]
/linux-6.12.1/drivers/firmware/arm_scmi/
Dpinctrl.c175 u32 selector, in scmi_pinctrl_validate_id() argument
184 if (selector >= value || value == 0) in scmi_pinctrl_validate_id()
192 u32 selector, char *name, in scmi_pinctrl_attributes() argument
204 ret = scmi_pinctrl_validate_id(ph, selector, type); in scmi_pinctrl_attributes()
215 tx->identifier = cpu_to_le32(selector); in scmi_pinctrl_attributes()
238 selector, (u32 *)&type, name, in scmi_pinctrl_attributes()
244 u32 selector; member
256 msg->identifier = cpu_to_le32(p->selector); in iter_pinctrl_assoc_prepare_message()
287 u32 selector, in scmi_pinctrl_list_associations() argument
299 .selector = selector, in scmi_pinctrl_list_associations()
[all …]
/linux-6.12.1/kernel/entry/
Dsyscall_user_dispatch.c46 if (likely(sd->selector)) { in syscall_user_dispatch()
51 if (unlikely(__get_user(state, sd->selector))) { in syscall_user_dispatch()
74 char __user *selector) in task_set_syscall_user_dispatch() argument
78 if (offset || len || selector) in task_set_syscall_user_dispatch()
100 if (selector && !access_ok(untagged_addr(selector), sizeof(*selector))) in task_set_syscall_user_dispatch()
108 task->syscall_dispatch.selector = selector; in task_set_syscall_user_dispatch()
122 unsigned long len, char __user *selector) in set_syscall_user_dispatch() argument
124 return task_set_syscall_user_dispatch(current, mode, offset, len, selector); in set_syscall_user_dispatch()
143 cfg.selector = (__u64)(uintptr_t)sd->selector; in syscall_user_dispatch_get_config()
163 (char __user *)(uintptr_t)cfg.selector); in syscall_user_dispatch_set_config()
/linux-6.12.1/arch/x86/include/asm/
Dgsseg.h15 extern asmlinkage void asm_load_gs_index(u16 selector);
20 static inline void native_lkgs(unsigned int selector) in native_lkgs() argument
22 u16 sel = selector; in native_lkgs()
28 static inline void native_load_gs_index(unsigned int selector) in native_load_gs_index() argument
31 native_lkgs(selector); in native_load_gs_index()
36 asm_load_gs_index(selector); in native_load_gs_index()
55 static inline void load_gs_index(unsigned int selector) in load_gs_index() argument
58 native_load_gs_index(selector); in load_gs_index()
60 loadsegment(gs, selector); in load_gs_index()
/linux-6.12.1/drivers/pinctrl/
Dpinctrl-da850-pupd.c41 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 …]
Dpinmux.c39 unsigned int selector = 0; in pinmux_check_ops() local
52 while (selector < nfuncs) { in pinmux_check_ops()
54 selector); in pinmux_check_ops()
57 selector); in pinmux_check_ops()
60 selector++; in pinmux_check_ops()
326 unsigned int selector = 0; in pinmux_func_name_to_selector() local
329 while (selector < nfuncs) { in pinmux_func_name_to_selector()
330 const char *fname = ops->get_function_name(pctldev, selector); in pinmux_func_name_to_selector()
333 return selector; in pinmux_func_name_to_selector()
335 selector++; in pinmux_func_name_to_selector()
[all …]
Dpinctrl-mlxbf3.c131 unsigned int selector) in mlxbf3_get_group_name() argument
133 return mlxbf3_pinctrl_single_group_names[selector]; in mlxbf3_get_group_name()
137 unsigned int selector, in mlxbf3_get_group_pins() argument
142 *pins = &selector; in mlxbf3_get_group_pins()
173 unsigned int selector) in mlxbf3_pmx_get_func_name() argument
175 return mlxbf3_pmx_funcs[selector].name; in mlxbf3_pmx_get_func_name()
179 unsigned int selector, in mlxbf3_pmx_get_groups() argument
183 *groups = mlxbf3_pmx_funcs[selector].groups; in mlxbf3_pmx_get_groups()
190 unsigned int selector, in mlxbf3_pmx_set() argument
195 if (selector == MLXBF3_GPIO_HW_MODE) { in mlxbf3_pmx_set()
[all …]
Dpinconf.c77 int selector, ret; in pin_config_group_get() local
96 selector = pinctrl_get_group_selector(pctldev, pin_group); in pin_config_group_get()
97 if (selector < 0) { in pin_config_group_get()
98 ret = selector; in pin_config_group_get()
102 ret = ops->pin_config_group_get(pctldev, selector, config); in pin_config_group_get()
336 struct seq_file *s, unsigned int selector, in pinconf_dump_group() argument
344 ops->pin_config_group_dbg_show(pctldev, s, selector); in pinconf_dump_group()
352 unsigned int selector = 0; in pinconf_groups_show() local
357 while (selector < ngroups) { in pinconf_groups_show()
358 const char *gname = pctlops->get_group_name(pctldev, selector); in pinconf_groups_show()
[all …]
Dpinctrl-loongson2.c172 unsigned int selector) in loongson2_get_group_name() argument
174 return loongson2_pmx_groups[selector].grp.name; in loongson2_get_group_name()
177 static int loongson2_get_group_pins(struct pinctrl_dev *pcdev, unsigned int selector, in loongson2_get_group_pins() argument
180 *pins = loongson2_pmx_groups[selector].grp.pins; in loongson2_get_group_pins()
181 *num_pins = loongson2_pmx_groups[selector].grp.npins; in loongson2_get_group_pins()
229 unsigned int selector) in loongson2_pmx_get_func_name() argument
231 return loongson2_pmx_functions[selector].name; in loongson2_pmx_get_func_name()
235 unsigned int selector, in loongson2_pmx_get_groups() argument
239 *groups = loongson2_pmx_functions[selector].groups; in loongson2_pmx_get_groups()
240 *num_groups = loongson2_pmx_functions[selector].num_groups; in loongson2_pmx_get_groups()
Dpinctrl-lantiq.c26 unsigned selector) in ltq_get_group_name() argument
29 if (selector >= info->num_grps) in ltq_get_group_name()
31 return info->grps[selector].name; in ltq_get_group_name()
35 unsigned selector, in ltq_get_group_pins() argument
40 if (selector >= info->num_grps) in ltq_get_group_pins()
42 *pins = info->grps[selector].pins; in ltq_get_group_pins()
43 *num_pins = info->grps[selector].npins; in ltq_get_group_pins()
189 unsigned selector) in ltq_pmx_func_name() argument
193 if (selector >= info->num_funcs) in ltq_pmx_func_name()
196 return info->funcs[selector].name; in ltq_pmx_func_name()
Dpinctrl-zynqmp.c105 unsigned int selector) in zynqmp_pctrl_get_group_name() argument
109 if (selector < pctrl->ngroups) in zynqmp_pctrl_get_group_name()
110 return pctrl->groups[selector].name; in zynqmp_pctrl_get_group_name()
112 return zynqmp_desc.pins[selector - pctrl->ngroups].name; in zynqmp_pctrl_get_group_name()
116 unsigned int selector, in zynqmp_pctrl_get_group_pins() argument
122 if (selector < pctrl->ngroups) { in zynqmp_pctrl_get_group_pins()
123 *pins = pctrl->groups[selector].pins; in zynqmp_pctrl_get_group_pins()
124 *npins = pctrl->groups[selector].npins; in zynqmp_pctrl_get_group_pins()
126 *pins = &zynqmp_desc.pins[selector - pctrl->ngroups].number; in zynqmp_pctrl_get_group_pins()
163 unsigned int selector) in zynqmp_pmux_get_function_name() argument
[all …]
/linux-6.12.1/drivers/media/usb/uvc/
Duvc_ctrl.c42 .selector = UVC_PU_BRIGHTNESS_CONTROL,
51 .selector = UVC_PU_CONTRAST_CONTROL,
60 .selector = UVC_PU_HUE_CONTROL,
70 .selector = UVC_PU_SATURATION_CONTROL,
79 .selector = UVC_PU_SHARPNESS_CONTROL,
88 .selector = UVC_PU_GAMMA_CONTROL,
97 .selector = UVC_PU_WHITE_BALANCE_TEMPERATURE_CONTROL,
107 .selector = UVC_PU_WHITE_BALANCE_COMPONENT_CONTROL,
117 .selector = UVC_PU_BACKLIGHT_COMPENSATION_CONTROL,
126 .selector = UVC_PU_GAIN_CONTROL,
[all …]
/linux-6.12.1/include/linux/
Dlinear_range.h45 int linear_range_get_value(const struct linear_range *r, unsigned int selector,
48 unsigned int selector, unsigned int *val);
50 unsigned int val, unsigned int *selector,
53 unsigned int val, unsigned int *selector,
56 unsigned int val, unsigned int *selector);
59 unsigned int *selector, bool *found);
/linux-6.12.1/drivers/regulator/
Dhelpers.c316 int selector = 0; in regulator_map_voltage_iterate() local
329 selector = i; in regulator_map_voltage_iterate()
334 return selector; in regulator_map_voltage_iterate()
482 unsigned int selector = 0; in regulator_map_voltage_pickable_linear_range() local
498 selector += linear_range_values_in_range(range); in regulator_map_voltage_pickable_linear_range()
505 selector += linear_range_values_in_range(range); in regulator_map_voltage_pickable_linear_range()
509 ret = selector + sel - range->min_sel; in regulator_map_voltage_pickable_linear_range()
519 selector += linear_range_values_in_range(range); in regulator_map_voltage_pickable_linear_range()
544 unsigned int selector) in regulator_desc_list_voltage_linear() argument
546 if (selector >= desc->n_voltages) in regulator_desc_list_voltage_linear()
[all …]
Dad5398.c31 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()
Dtps65910-regulator.c595 unsigned selector) in tps65910_set_voltage_dcdc_sel() argument
603 dcdc_mult = (selector / VDD1_2_NUM_VOLT_FINE) + 1; in tps65910_set_voltage_dcdc_sel()
606 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3; in tps65910_set_voltage_dcdc_sel()
613 dcdc_mult = (selector / VDD1_2_NUM_VOLT_FINE) + 1; in tps65910_set_voltage_dcdc_sel()
616 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3; in tps65910_set_voltage_dcdc_sel()
623 vsel = selector + 3; in tps65910_set_voltage_dcdc_sel()
632 unsigned selector) in tps65910_set_voltage_sel() argument
653 selector << LDO_SEL_SHIFT); in tps65910_set_voltage_sel()
656 selector << BBCH_BBSEL_SHIFT); in tps65910_set_voltage_sel()
663 unsigned selector) in tps65911_set_voltage_sel() argument
[all …]
Dmax8660.c127 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 …]
Dmax1586.c64 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()
/linux-6.12.1/drivers/pinctrl/visconti/
Dpinctrl-common.c123 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 …]
/linux-6.12.1/drivers/pinctrl/cirrus/
Dpinctrl-madera-core.c455 unsigned int selector) in madera_get_group_name() argument
459 if (selector < priv->chip->n_pin_groups) in madera_get_group_name()
460 return priv->chip->pin_groups[selector].name; in madera_get_group_name()
462 selector -= priv->chip->n_pin_groups; in madera_get_group_name()
463 return madera_pin_single_group_names[selector]; in madera_get_group_name()
467 unsigned int selector, in madera_get_group_pins() argument
473 if (selector < priv->chip->n_pin_groups) { in madera_get_group_pins()
474 *pins = priv->chip->pin_groups[selector].pins; in madera_get_group_pins()
475 *num_pins = priv->chip->pin_groups[selector].n_pins; in madera_get_group_pins()
478 selector -= priv->chip->n_pin_groups; in madera_get_group_pins()
[all …]
/linux-6.12.1/drivers/md/
Ddm-ps-round-robin.c50 struct selector { struct
56 static struct selector *alloc_selector(void) in alloc_selector() argument
58 struct selector *s = kmalloc(sizeof(*s), GFP_KERNEL); in alloc_selector()
71 struct selector *s; in rr_create()
83 struct selector *s = ps->context; in rr_destroy()
124 struct selector *s = ps->context; in rr_add_path()
168 struct selector *s = ps->context; in rr_fail_path()
179 struct selector *s = ps->context; in rr_reinstate_path()
192 struct selector *s = ps->context; in rr_select_path()
Ddm-ps-historical-service-time.c44 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()
270 struct selector *s = ps->context; in hst_add_path()
321 struct selector *s = ps->context; in hst_fail_path()
[all …]
Ddm-ps-queue-length.c30 struct selector { struct
43 static struct selector *alloc_selector(void) in alloc_selector() argument
45 struct selector *s = kmalloc(sizeof(*s), GFP_KERNEL); in alloc_selector()
58 struct selector *s = alloc_selector(); in ql_create()
79 struct selector *s = ps->context; in ql_destroy()
118 struct selector *s = ps->context; in ql_add_path()
166 struct selector *s = ps->context; in ql_fail_path()
177 struct selector *s = ps->context; in ql_reinstate_path()
193 struct selector *s = ps->context; in ql_select_path()
Ddm-ps-service-time.c25 struct selector { struct
39 static struct selector *alloc_selector(void) in alloc_selector() argument
41 struct selector *s = kmalloc(sizeof(*s), GFP_KERNEL); in alloc_selector()
54 struct selector *s = alloc_selector(); in st_create()
75 struct selector *s = ps->context; in st_destroy()
115 struct selector *s = ps->context; in st_add_path()
178 struct selector *s = ps->context; in st_fail_path()
189 struct selector *s = ps->context; in st_reinstate_path()
279 struct selector *s = ps->context; in st_select_path()
/linux-6.12.1/drivers/net/ethernet/microchip/lan966x/
Dlan966x_dcb.c36 static bool lan966x_dcb_apptrust_contains(int portno, u8 selector) in lan966x_dcb_apptrust_contains() argument
41 if (conf->selectors[i] == selector) in lan966x_dcb_apptrust_contains()
59 app_itr.selector = DCB_APP_SEL_PCP; in lan966x_dcb_app_update()
66 app_itr.selector = IEEE_8021QAZ_APP_SEL_DSCP; in lan966x_dcb_app_update()
145 switch (app->selector) { in lan966x_dcb_app_validate()
183 if (app->selector == IEEE_8021QAZ_APP_SEL_DSCP) in lan966x_dcb_ieee_delapp()
214 if (app->selector == IEEE_8021QAZ_APP_SEL_DSCP) in lan966x_dcb_ieee_setapp()
291 if (app->selector == IEEE_8021QAZ_APP_SEL_DSCP) in lan966x_dcb_delrewr()
322 if (app->selector == IEEE_8021QAZ_APP_SEL_DSCP) in lan966x_dcb_setrewr()

12345678910>>...17