Home
last modified time | relevance | path

Searched full:selector (Results 1 – 25 of 1322) sorted by relevance

12345678910>>...53

/kernel/linux/linux-6.6/lib/
Dlinear_ranges.c79 * @selector: selector for which the value is searched
82 * Search given ranges for value which matches given selector.
84 * Return: 0 on success, -EINVAL given selector is not found from any of the
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()
103 * @selector: selector for which the value is searched
106 * Search through an array of ranges for value which matches given selector.
108 * Return: 0 on success, -EINVAL given selector is not found from any of the
112 unsigned int selector, unsigned int *val) in linear_range_get_value_array() argument
[all …]
/kernel/linux/linux-5.10/lib/
Dlinear_ranges.c79 * @selector: selector for which the value is searched
82 * Search given ranges for value which matches given selector.
84 * Return: 0 on success, -EINVAL given selector is not found from any of the
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()
103 * @selector: selector for which the value is searched
106 * Search through an array of ranges for value which matches given selector.
108 * Return: 0 on success, -EINVAL given selector is not found from any of the
112 unsigned int selector, unsigned int *val) in linear_range_get_value_array() argument
[all …]
/kernel/linux/linux-6.6/kernel/entry/
Dsyscall_user_dispatch.c46 if (likely(sd->selector)) { in syscall_user_dispatch()
49 * the selector is loaded by userspace. 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()
95 * To enable a tracer to set a tracees selector the in task_set_syscall_user_dispatch()
96 * selector address must be untagged for access_ok(), in task_set_syscall_user_dispatch()
98 * tagged tracees 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()
[all …]
/kernel/linux/linux-6.6/drivers/md/
Ddm-path-selector.h10 * Path-Selector registration.
31 * If a path selector uses this flag, a high resolution timer is used
44 /* Information about a path selector type */
54 * Constructs a path selector object, takes custom arguments
60 * Add an opaque path object, along with some selector specific
73 * Notify the selector that a path has failed.
78 * Ask selector to reinstate a path.
84 * or path selector status
95 /* Register a path selector */
98 /* Unregister a path selector */
[all …]
Ddm-ps-round-robin.c10 * Round-robin path selector.
15 #include "dm-path-selector.h"
47 * Round-robin selector
50 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()
[all …]
Ddm-ps-queue-length.c13 * queue-length path selector - choose a path with the least number of
18 #include "dm-path-selector.h"
30 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()
93 /* When called with NULL path, return selector status/args. */ in ql_status()
118 struct selector *s = ps->context; in ql_add_path()
166 struct selector *s = ps->context; in ql_fail_path()
[all …]
/kernel/linux/linux-5.10/drivers/md/
Ddm-path-selector.h9 * Path-Selector registration.
29 /* Information about a path selector type */
38 * Constructs a path selector object, takes custom arguments
44 * Add an opaque path object, along with some selector specific
58 * Notify the selector that a path has failed.
63 * Ask selector to reinstate a path.
69 * or path selector status
80 /* Register a path selector */
83 /* Unregister a path selector */
86 /* Returns a registered path selector type */
[all …]
Ddm-round-robin.c9 * Round-robin path selector.
14 #include "dm-path-selector.h"
43 * Round-robin selector
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()
[all …]
Ddm-queue-length.c12 * queue-length path selector - choose a path with the least number of
17 #include "dm-path-selector.h"
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()
92 /* When called with NULL path, return selector status/args. */ in ql_status()
114 struct selector *s = ps->context; in ql_add_path()
162 struct selector *s = ps->context; in ql_fail_path()
[all …]
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/include/linux/
Dlinear_range.h10 * struct linear_range - table of selector - value pairs
18 * @min_sel: Lowest selector for range
19 * @max_sel: Highest selector for range
45 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);
/kernel/linux/linux-6.6/drivers/clk/bcm/
Dclk-bcm281xx.c38 .sel = SELECTOR(0x0a10, 0, 2),
47 .sel = SELECTOR(0x0a04, 0, 2),
55 .sel = SELECTOR(0x0a00, 0, 2),
79 .sel = SELECTOR(0x0e74, 0, 2),
101 .sel = SELECTOR(0x0a28, 0, 3),
113 .sel = SELECTOR(0x0a2c, 0, 3),
125 .sel = SELECTOR(0x0a34, 0, 3),
137 .sel = SELECTOR(0x0a30, 0, 3),
148 .sel = SELECTOR(0x0a24, 0, 2),
158 .sel = SELECTOR(0x0a38, 0, 2),
[all …]
/kernel/linux/linux-5.10/drivers/clk/bcm/
Dclk-bcm281xx.c46 .sel = SELECTOR(0x0a10, 0, 2),
55 .sel = SELECTOR(0x0a04, 0, 2),
63 .sel = SELECTOR(0x0a00, 0, 2),
87 .sel = SELECTOR(0x0e74, 0, 2),
109 .sel = SELECTOR(0x0a28, 0, 3),
121 .sel = SELECTOR(0x0a2c, 0, 3),
133 .sel = SELECTOR(0x0a34, 0, 3),
145 .sel = SELECTOR(0x0a30, 0, 3),
156 .sel = SELECTOR(0x0a24, 0, 2),
166 .sel = SELECTOR(0x0a38, 0, 2),
[all …]
/kernel/linux/linux-5.10/include/linux/
Dlinear_range.h10 * struct linear_range - table of selector - value pairs
18 * @min_sel: Lowest selector for range
19 * @max_sel: Highest selector for range
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-6.6/drivers/regulator/
Dhelpers.c178 * written if the range changed, even if the old selector was same as in write_separate_vsel_and_range()
194 * @sel: Selector to set
275 * @sel: Selector to set
316 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()
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/drivers/media/usb/uvc/
Duvc_ctrl.c40 .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/regulator/
Dhelpers.c166 * @sel: Selector to set
255 * @sel: Selector to set
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()
[all …]
/kernel/linux/linux-5.10/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.c35 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 …]
/kernel/linux/linux-5.10/sound/usb/
Dclock.c135 "setting selector (id %d) unexpected length %d\n", in uac_clock_selector_set_val()
146 "setting selector (id %d) to %x failed (current: %d)\n", in uac_clock_selector_set_val()
173 * (there is no clock selector) and clock type is internal. in uac_clock_source_is_valid_quirk()
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()
301 /* the entity ID we are looking for is a selector. in __uac_clock_find_source()
303 ret = uac_clock_selector_get_val(chip, selector->bClockID); in __uac_clock_find_source()
307 /* Selector values are one-based */ in __uac_clock_find_source()
309 if (ret > selector->bNrInPins || ret < 1) { in __uac_clock_find_source()
[all …]
/kernel/linux/linux-6.6/include/linux/iio/
Diio-gts-helper.h15 * struct iio_gain_sel_pair - gain - selector values
19 * and corresponding selector (register value)
23 * @sel: Selector (usually register value) used to indicate this gain.
37 * integration time and amplification as well as corresponding selector
48 * @sel: Selector (usually register value) used to indicate this time
117 * iio_gts_find_int_time_by_sel - find integration time matching a selector
119 * @sel: selector for which matching integration time is searched for
121 * Return: integration time matching given selector or -EINVAL if
136 * iio_gts_find_sel_by_int_time - find selector matching integration time
138 * @time: Integration time for which matching selector is searched for
[all …]
/kernel/linux/linux-5.10/include/linux/regulator/
Ddriver.h63 * selector.
64 * @map_voltage: Convert a voltage into a selector
68 * @get_voltage_sel: Return the currently configured voltage selector for the
72 * if the selector indicates a voltage that is unusable on this system;
108 * The function receives the from and to voltage selector as
130 int (*list_voltage) (struct regulator_dev *, unsigned selector);
134 unsigned *selector);
136 int (*set_voltage_sel) (struct regulator_dev *, unsigned selector);
247 * @min_uV: Voltage given by the lowest selector (if linear mapping)
248 * @uV_step: Voltage increase with each selector (if linear mapping)
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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 …]

12345678910>>...53