/Linux-v6.1/lib/ |
D | linear_ranges.c | 79 * @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 …]
|
/Linux-v6.1/drivers/md/ |
D | dm-path-selector.h | 9 * Path-Selector registration. 30 * If a path selector uses this flag, a high resolution timer is used 43 /* Information about a path selector type */ 53 * Constructs a path selector object, takes custom arguments 59 * 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 …]
|
D | dm-ps-queue-length.c | 12 * 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() 117 struct selector *s = ps->context; in ql_add_path() 165 struct selector *s = ps->context; in ql_fail_path() [all …]
|
D | dm-ps-round-robin.c | 9 * 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() 120 struct selector *s = ps->context; in rr_add_path() 164 struct selector *s = ps->context; in rr_fail_path() [all …]
|
D | dm-ps-io-affinity.c | 7 #include "dm-path-selector.h" 21 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() 272 MODULE_DESCRIPTION(DM_NAME " multipath path selector that selects paths based on the CPU IO is bein…
|
D | dm-ps-service-time.c | 8 * Throughput oriented path selector. 12 #include "dm-path-selector.h" 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() 114 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() [all …]
|
D | dm-ps-historical-service-time.c | 25 #include "dm-path-selector.h" 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() 270 struct selector *s = ps->context; in hst_add_path() [all …]
|
/Linux-v6.1/drivers/regulator/ |
D | helpers.c | 166 * @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 …]
|
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 | 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 | 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 …]
|
/Linux-v6.1/drivers/clk/bcm/ |
D | clk-bcm281xx.c | 38 .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 …]
|
D | clk-bcm21664.c | 38 .sel = SELECTOR(0x0a10, 0, 2), 64 .sel = SELECTOR(0x0a28, 0, 3), 76 .sel = SELECTOR(0x0a2c, 0, 3), 88 .sel = SELECTOR(0x0a34, 0, 3), 100 .sel = SELECTOR(0x0a30, 0, 3), 159 .sel = SELECTOR(0x0a10, 0, 2), 169 .sel = SELECTOR(0x0a14, 0, 2), 179 .sel = SELECTOR(0x0a18, 0, 2), 191 .sel = SELECTOR(0x0a64, 0, 3), 202 .sel = SELECTOR(0x0a68, 0, 3), [all …]
|
D | clk-kona-setup.c | 12 /* These are used when a selector or trigger is found to be unneeded */ 143 pr_err("%s: bad selector offset for %s (%u > %u)\n", in peri_clk_data_offsets_valid() 280 * A selector bitfield must be valid. Its parent_sel array must 294 * Make sure the selector field can hold all the in sel_valid() 295 * selector values we expect to be able to use. A in sel_valid() 296 * clock only needs to have a selector defined if it in sel_valid() 298 * highest selector value will be in the last entry in sel_valid() 304 pr_err("%s: bad selector for %s " in sel_valid() 311 pr_warn("%s: ignoring selector for %s (no parents)\n", in sel_valid() 431 if (!sel_valid(sel, "selector", name)) in peri_clk_data_valid() [all …]
|
/Linux-v6.1/include/linux/ |
D | linear_range.h | 10 * 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);
|
/Linux-v6.1/kernel/entry/ |
D | syscall_user_dispatch.c | 45 if (likely(sd->selector)) { in syscall_user_dispatch() 48 * the selector is loaded by userspace. in syscall_user_dispatch() 50 if (unlikely(__get_user(state, sd->selector))) { in syscall_user_dispatch() 72 unsigned long len, char __user *selector) in set_syscall_user_dispatch() argument 76 if (offset || len || selector) in set_syscall_user_dispatch() 89 if (selector && !access_ok(selector, sizeof(*selector))) in set_syscall_user_dispatch() 97 current->syscall_dispatch.selector = selector; in set_syscall_user_dispatch()
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 | 36 unsigned selector = 0; in pinmux_check_ops() local 49 while (selector < nfuncs) { in pinmux_check_ops() 51 selector); in pinmux_check_ops() 54 selector); in pinmux_check_ops() 57 selector++; in pinmux_check_ops() 325 unsigned selector = 0; in pinmux_func_name_to_selector() local 328 while (selector < nfuncs) { in pinmux_func_name_to_selector() 329 const char *fname = ops->get_function_name(pctldev, selector); in pinmux_func_name_to_selector() 332 return selector; in pinmux_func_name_to_selector() 334 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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/include/linux/regulator/ |
D | driver.h | 72 * selector. 73 * @map_voltage: Convert a voltage into a selector 77 * @get_voltage_sel: Return the currently configured voltage selector for the 81 * if the selector indicates a voltage that is unusable on this system; 140 * The function receives the from and to voltage selector as 162 int (*list_voltage) (struct regulator_dev *, unsigned selector); 166 unsigned *selector); 168 int (*set_voltage_sel) (struct regulator_dev *, unsigned selector); 288 * @min_uV: Voltage given by the lowest selector (if linear mapping) 289 * @uV_step: Voltage increase with each selector (if linear mapping) [all …]
|
/Linux-v6.1/drivers/pinctrl/cirrus/ |
D | pinctrl-madera-core.c | 454 unsigned int selector) in madera_get_group_name() argument 458 if (selector < priv->chip->n_pin_groups) in madera_get_group_name() 459 return priv->chip->pin_groups[selector].name; in madera_get_group_name() 461 selector -= priv->chip->n_pin_groups; in madera_get_group_name() 462 return madera_pin_single_group_names[selector]; in madera_get_group_name() 466 unsigned int selector, in madera_get_group_pins() argument 472 if (selector < priv->chip->n_pin_groups) { in madera_get_group_pins() 473 *pins = priv->chip->pin_groups[selector].pins; in madera_get_group_pins() 474 *num_pins = priv->chip->pin_groups[selector].n_pins; in madera_get_group_pins() 477 selector -= priv->chip->n_pin_groups; in madera_get_group_pins() [all …]
|
/Linux-v6.1/tools/testing/selftests/syscall_user_dispatch/ |
D | sud_benchmark.c | 36 * To test returning from a sigsys with selector blocked, the test 59 char selector; variable 60 #define SYSCALL_BLOCK (selector = SYSCALL_DISPATCH_FILTER_BLOCK) 61 #define SYSCALL_UNBLOCK (selector = SYSCALL_DISPATCH_FILTER_ALLOW) 166 &selector)) { in main() 175 if (selector == SYSCALL_DISPATCH_FILTER_ALLOW) { in main() 176 fprintf(stderr, "Failed to return with selector blocked.\n"); in main()
|
D | sud_test.c | 43 * - bad_selector: Test that a bad selector value triggers SIGSYS with 50 * to userspace depending on the value of selector. 121 /* Invalid selector */ in TEST() 143 * Use global selector for handle_sigsys tests, to avoid passing 144 * selector to signal handler 184 /* Make sure selector is good prior to prctl. */ in TEST() 240 /* Make sure selector is good prior to prctl. */ in TEST_SIGNAL() 297 * memory map and lock the selector. in TEST()
|