Home
last modified time | relevance | path

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

12345678910>>...17

/linux/lib/
H A Dlinear_ranges.c90 if (r->min_sel > selector || r->max_sel < selector) 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()
148 *selector = r->max_sel; in linear_range_get_selector_low()
155 *selector = r->min_sel; in linear_range_get_selector_low()
184 unsigned int *selector, bool *found) in linear_range_get_selector_low_array() argument
229 *selector = r->min_sel; in linear_range_get_selector_high()
236 *selector = r->max_sel; in linear_range_get_selector_high()
259 *selector = r->min_sel; in linear_range_get_selector_within()
264 *selector = r->max_sel; in linear_range_get_selector_within()
[all …]
/linux/drivers/firmware/arm_scmi/
H A Dpinctrl.c175 u32 selector, in scmi_pinctrl_validate_id() argument
244 u32 selector; member
287 u32 selector, in scmi_pinctrl_list_associations() argument
299 .selector = selector, in scmi_pinctrl_list_associations()
322 u32 selector; member
409 .selector = selector, in scmi_pinctrl_settings_get()
437 u32 selector, in scmi_pinctrl_settings_get_one() argument
449 u32 selector, in scmi_pinctrl_settings_get_all() argument
464 u32 selector, in scmi_pinctrl_settings_conf() argument
803 ret = scmi_pinctrl_get_pin_info(ph, selector, &pi->pins[selector]); in scmi_pinctrl_get_pin_name()
[all …]
/linux/kernel/entry/
H A 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/arch/x86/include/asm/
H A 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/drivers/pinctrl/
H A Dpinctrl-da850-pupd.c41 unsigned int selector) in da850_pupd_get_group_name() argument
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()
125 ena |= BIT(selector); in da850_pupd_pin_config_group_set()
[all …]
H A 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 …]
H A Dpinmux.c54 selector); in pinmux_check_ops()
57 selector); in pinmux_check_ops()
60 selector++; in pinmux_check_ops()
333 return selector; in pinmux_func_name_to_selector()
335 selector++; in pinmux_func_name_to_selector()
795 selector); in pinmux_generic_get_function_name()
818 selector); in pinmux_generic_get_function_groups()
842 selector); in pinmux_generic_get_function()
871 if (selector >= 0) in pinmux_generic_add_function()
872 return selector; in pinmux_generic_add_function()
[all …]
H A 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()
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()
360 seq_printf(s, "%u (%s): ", selector, gname); in pinconf_groups_show()
361 pinconf_dump_group(pctldev, s, selector, gname); in pinconf_groups_show()
[all …]
H A 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()
H A 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()
/linux/drivers/media/usb/uvc/
H A Duvc_ctrl.c60 .selector = UVC_PU_HUE_CONTROL,
88 .selector = UVC_PU_GAMMA_CONTROL,
126 .selector = UVC_PU_GAIN_CONTROL,
484 .selector = UVC_PU_HUE_CONTROL,
2054 u8 selector; in uvc_ctrl_fixup_xu_info() member
2080 fixups[i].selector == info->selector) { in uvc_ctrl_fixup_xu_info()
2322 ctrl->info.selector); in uvc_ctrl_restore_values()
2427 ctrl->info.selector); in __uvc_ctrl_add_mapping()
2641 ctrl->info.selector == mapping->selector) { in uvc_ctrl_init_ctrl()
2656 ctrl->info.selector == mapping->selector) in uvc_ctrl_init_ctrl()
[all …]
/linux/include/linux/
H A 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/drivers/regulator/
H A 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
544 unsigned int selector) in regulator_desc_list_voltage_linear() argument
569 unsigned int selector) in regulator_list_voltage_linear() argument
585 unsigned int selector) in regulator_list_voltage_pickable_linear_range() argument
604 selector -= all_sels; in regulator_list_voltage_pickable_linear_range()
638 unsigned int selector) in regulator_desc_list_voltage_linear_range() argument
666 unsigned int selector) in regulator_list_voltage_linear_range() argument
[all …]
H A 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()
H A Dtps65910-regulator.c595 unsigned selector) in tps65910_set_voltage_dcdc_sel() argument
623 vsel = selector + 3; in tps65910_set_voltage_dcdc_sel()
632 unsigned selector) in tps65910_set_voltage_sel() argument
663 unsigned selector) in tps65911_set_voltage_sel() argument
699 unsigned selector) in tps65910_list_voltage_dcdc() argument
731 if (selector < 5) in tps65911_list_voltage()
732 selector = 0; in tps65911_list_voltage()
734 selector -= 4; in tps65911_list_voltage()
744 if (selector < 3) in tps65911_list_voltage()
745 selector = 0; in tps65911_list_voltage()
[all …]
H A 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()
227 return selector; in max8660_ldo67_get_voltage_sel()
231 unsigned int selector) in max8660_ldo67_set_voltage_sel() argument
[all …]
H A 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/drivers/pinctrl/visconti/
H A 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()
200 unsigned int selector) in visconti_get_function_name() argument
204 return priv->devdata->functions[selector].name; in visconti_get_function_name()
[all …]
/linux/drivers/md/
H A 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()
H A 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()
H A Ddm-ps-historical-service-time.c44 struct selector { struct
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()
333 struct selector *s = ps->context; in hst_reinstate_path()
370 struct selector *s = ps->context; in hst_compare()
[all …]
H A 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()
H A Ddm-ps-io-affinity.c21 struct selector { struct
27 static void ioa_free_path(struct selector *s, unsigned int cpu) in ioa_free_path() argument
46 struct selector *s = ps->context; in ioa_add_path()
113 struct selector *s; in ioa_create()
140 struct selector *s = ps->context; in ioa_destroy()
156 struct selector *s = ps->context; in ioa_status()
200 struct selector *s = ps->context; in ioa_select_path()
/linux/drivers/pinctrl/cirrus/
H A Dpinctrl-madera-core.c455 unsigned int selector) in madera_get_group_name() argument
462 selector -= priv->chip->n_pin_groups; in madera_get_group_name()
467 unsigned int selector, in madera_get_group_pins() argument
478 selector -= priv->chip->n_pin_groups; in madera_get_group_pins()
585 unsigned int selector) in madera_mux_get_func_name() argument
591 unsigned int selector, in madera_mux_get_groups() argument
611 unsigned int selector, in madera_mux_set_mux() argument
623 __func__, selector, func_name, group, in madera_mux_set_mux()
948 unsigned int selector, in madera_pin_conf_group_set() argument
960 if (selector >= n_groups) { in madera_pin_conf_group_set()
[all …]
/linux/drivers/net/ethernet/microchip/lan966x/
H A 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