/openbmc/linux/lib/ |
H A 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 …]
|
/openbmc/u-boot/drivers/pinctrl/ |
H A D | pinctrl-generic.c | 14 * pinctrl_pin_name_to_selector() - return the pin selector for a pin 18 * @return: pin selector, or negative error code on failure 23 unsigned npins, selector; in pinctrl_pin_name_to_selector() local 33 for (selector = 0; selector < npins; selector++) { in pinctrl_pin_name_to_selector() 34 const char *pname = ops->get_pin_name(dev, selector); in pinctrl_pin_name_to_selector() 37 return selector; in pinctrl_pin_name_to_selector() 44 * pinctrl_group_name_to_selector() - return the group selector for a group 48 * @return: pin group selector, or negative error code on failure 54 unsigned ngroups, selector; in pinctrl_group_name_to_selector() local 64 for (selector = 0; selector < ngroups; selector++) { in pinctrl_group_name_to_selector() [all …]
|
/openbmc/openbmc/poky/bitbake/lib/toaster/tests/browser/ |
H A D | selenium_helpers_base.py | 195 def find(self, selector): argument 196 """ Find single element by CSS selector """ 197 return self.driver.find_element(By.CSS_SELECTOR, selector) 199 def find_all(self, selector): argument 200 """ Find all elements matching CSS selector """ 201 return self.driver.find_elements(By.CSS_SELECTOR, selector) 203 def element_exists(self, selector): argument 205 Return True if one element matching selector exists, 208 return len(self.find_all(selector)) == 1 214 def wait_until_present(self, selector, timeout=Wait._TIMEOUT): argument [all …]
|
H A D | test_builddashboard_page_artifacts.py | 118 selector = '[data-value="target-package-count"]' 119 self.assertFalse(self.element_exists(selector), 122 selector = '[data-value="target-package-size"]' 123 self.assertFalse(self.element_exists(selector), 126 selector = '[data-link="target-packages"]' 127 self.assertFalse(self.element_exists(selector), 180 selector = '[data-links="image-artifacts"] li' 181 self.assertTrue(self.element_exists(selector), 182 'should be a link to the image file (selector %s)' % selector) 191 selector = 'a[data-link="license-manifest"]' [all …]
|
H A D | test_most_recent_builds_states.py | 47 selector = base_selector + '[data-build-state="Queued"]' 48 element = self.wait_until_visible(selector) 63 selector = base_selector + '[data-build-state="Parsing"]' 64 element = self.wait_until_visible(selector) 77 element = self.wait_until_visible(selector) 97 selector = base_selector + '[data-build-state="Starting"]' 98 element = self.wait_until_visible(selector) 108 selector = base_selector + '[data-build-state="In Progress"]' 109 element = self.wait_until_visible(selector) 125 element = self.wait_until_visible(selector) [all …]
|
/openbmc/docs/designs/ |
H A D | multihost-phosphor-buttons.md | 57 example for a multihost platform yosemite-V2 it has host selector switch mux as 74 | | | | | | selector |------+ | | 95 ## 1.Host selector switch (selector switch) 97 This host selector switch/selector switch has 4 gpio connected as input and 98 based on the gpio state values the host selector switch value is derived. The 100 values and host selector values can be stored as part of gpio json config. 105 For example, when the power button is pressed, The value of the host selector 112 selector switch position. 116 host selector position value = 0,bmc is mapped to power and reset buttons host 117 selector position value = 1,host 1 is mapped to power and reset buttons host [all …]
|
/openbmc/openbmc/poky/bitbake/lib/bs4/ |
H A D | css.py | 9 CSS selector API. 13 starting point for a CSS selector. 26 selector. 56 # If the selector is a precompiled pattern, it already has 75 """Pre-compile a selector and return the compiled object. 77 :param selector: A CSS selector. 80 used in the CSS selector to namespace URIs. By default, 90 :return: A precompiled selector object. 105 :param selector: A CSS selector. 108 used in the CSS selector to namespace URIs. By default, [all …]
|
/openbmc/linux/kernel/entry/ |
H A D | syscall_user_dispatch.c | 46 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 …]
|
/openbmc/qemu/tests/image-fuzzer/qcow2/ |
H A D | fuzz.py | 121 def selector(current, constraints, validate=int_validator): function 167 return selector(current, constraints) 173 return selector(current, constraints) 179 return selector(current, constraints) 188 return selector(current, constraints) 194 return selector(current, constraints) 203 return selector(current, constraints) 209 return selector(current, constraints) 215 return selector(current, constraints) 221 return selector(current, constraints) [all …]
|
/openbmc/qemu/target/i386/tcg/ |
H A D | seg_helper.c | 133 uint32_t *e2_ptr, int selector, in load_segment_ra() argument 140 if (selector & 0x4) { in load_segment_ra() 145 index = selector & ~7; in load_segment_ra() 156 uint32_t *e2_ptr, int selector) in load_segment() argument 158 return load_segment_ra(env, e1_ptr, e2_ptr, selector, 0); in load_segment() 186 static inline void load_seg_vm(CPUX86State *env, int seg, int selector) in load_seg_vm() argument 188 selector &= 0xffff; in load_seg_vm() 190 cpu_x86_load_seg_cache(env, seg, selector, (selector << 4), 0xffff, in load_seg_vm() 226 raise_exception_err_ra(env, EXCP0A_TSS, env->tr.selector & 0xfffc, retaddr); in get_ss_esp_from_tss() 237 static void tss_load_seg(CPUX86State *env, X86Seg seg_reg, int selector, in tss_load_seg() argument [all …]
|
/openbmc/openbmc/poky/bitbake/lib/toaster/toastergui/static/js/ |
H A D | mrbsection.js | 79 var selector; 100 selector = '[data-latest-build-result="' + build.id + '"] ' + 102 container = $(selector); 111 selector = '#repos-cloned-percentage-' + build.id; 112 $(selector).html(build.repos_cloned_percentage); 113 selector = '#repos-cloned-progressitem-' + build.id; 114 $(selector).html('('+build.progress_item+')'); 117 selector = '#repos-cloned-percentage-bar-' + build.id; 118 $(selector).width(build.repos_cloned_percentage + '%'); 122 selector = '#build-pc-done-' + build.id; [all …]
|
/openbmc/linux/drivers/md/ |
H A D | dm-path-selector.h | 10 * 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 …]
|
H A D | dm-ps-round-robin.c | 10 * 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 …]
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | gsseg.h | 15 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()
|
/openbmc/u-boot/arch/arm/mach-snapdragon/ |
H A D | pinctrl-apq8096.c | 29 unsigned int selector) in apq8096_get_function_name() argument 31 return msm_pinctrl_functions[selector].name; in apq8096_get_function_name() 35 unsigned int selector) in apq8096_get_pin_name() argument 37 if (selector < 150) { in apq8096_get_pin_name() 38 snprintf(pin_name, MAX_PIN_NAME_LEN, "GPIO_%u", selector); in apq8096_get_pin_name() 41 return msm_pinctrl_pins[selector - 150]; in apq8096_get_pin_name() 45 static unsigned int apq8096_get_function_mux(unsigned int selector) in apq8096_get_function_mux() argument 47 return msm_pinctrl_functions[selector].val; in apq8096_get_function_mux()
|
H A D | pinctrl-apq8016.c | 34 unsigned int selector) in apq8016_get_function_name() argument 36 return msm_pinctrl_functions[selector].name; in apq8016_get_function_name() 40 unsigned int selector) in apq8016_get_pin_name() argument 42 if (selector < 122) { in apq8016_get_pin_name() 43 snprintf(pin_name, MAX_PIN_NAME_LEN, "GPIO_%u", selector); in apq8016_get_pin_name() 46 return msm_pinctrl_pins[selector - 122]; in apq8016_get_pin_name() 50 static unsigned int apq8016_get_function_mux(unsigned int selector) in apq8016_get_function_mux() argument 52 return msm_pinctrl_functions[selector].val; in apq8016_get_function_mux()
|
/openbmc/linux/include/linux/ |
H A 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);
|
/openbmc/linux/drivers/clk/bcm/ |
H A 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 …]
|
/openbmc/qemu/docs/specs/ |
H A D | fw_cfg.rst | 14 Selector (Control) Register 25 Setting the selector register will cause the data offset to be set 29 Bit14 of the selector register indicates whether the configuration 34 the selector value is between 0x4000-0x7fff or 0xc000-0xffff. 43 governed independently of Bit14 in the selector key value. 45 Bit15 of the selector register indicates whether the configuration 49 items are accessed with a selector value between 0x0000-0x7fff, and 50 architecture specific configuration items are accessed with a selector 64 selector register. In other words, the two ports overlap, and can not 69 the selector register, as described above. [all …]
|
H A D | acpi_cpu_hotplug.rst | 46 The last stored value in 'CPU selector' must refer to a possible CPU, otherwise 51 On QEMU start, 'CPU selector' is initialized to a valid value, on reset it 100 contains 'CPU selector' value of a CPU with pending event[s] 111 CPU selector: (DWORD access) 153 selected CPU ('CPU selector' value). 154 If no CPU with events found, the current 'CPU selector' doesn't 200 #. Store 0x0 to the 'CPU selector' register, attempting to switch to modern mode 201 #. Store 0x0 to the 'CPU selector' register, to ensure valid selector value 210 #. Store 0x0 to the 'CPU selector' register. 216 selector of the CPU with the pending event (which is already selected). [all …]
|
/openbmc/linux/drivers/regulator/ |
H A D | helpers.c | 178 * 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 …]
|
/openbmc/linux/drivers/pinctrl/ |
H A 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 …]
|
/openbmc/linux/drivers/media/usb/uvc/ |
H A D | uvc_ctrl.c | 42 .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 …]
|
/openbmc/qemu/target/i386/hvf/ |
H A D | x86_descr.c | 26 .selector = VMCS_GUEST_##seg##_SELECTOR, \ 33 int selector; member 66 sel.sel = rvmcs(cpu->accel->fd, vmx_segment_fields[seg].selector); in vmx_read_segment_selector() 70 void vmx_write_segment_selector(CPUState *cpu, x68_segment_selector selector, X86Seg seg) in vmx_write_segment_selector() argument 72 wvmcs(cpu->accel->fd, vmx_segment_fields[seg].selector, selector.sel); in vmx_write_segment_selector() 77 desc->sel = rvmcs(cpu->accel->fd, vmx_segment_fields[seg].selector); in vmx_read_segment_descriptor() 89 wvmcs(cpu->accel->fd, sf->selector, desc->sel); in vmx_write_segment_descriptor() 93 void x86_segment_descriptor_to_vmx(CPUState *cpu, x68_segment_selector selector, in x86_segment_descriptor_to_vmx() argument 97 vmx_desc->sel = selector.sel; in x86_segment_descriptor_to_vmx() 101 vmx_desc->ar = (selector.sel ? 0 : 1) << 16 | in x86_segment_descriptor_to_vmx()
|
/openbmc/linux/include/linux/iio/ |
H A D | iio-gts-helper.h | 15 * 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 …]
|