/openbmc/u-boot/drivers/pinctrl/ |
H A D | pinctrl-generic.c | 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() 54 unsigned ngroups, selector; in pinctrl_group_name_to_selector() local 64 for (selector = 0; selector < ngroups; selector++) { in pinctrl_group_name_to_selector() 65 const char *gname = ops->get_group_name(dev, selector); in pinctrl_group_name_to_selector() 68 return selector; in pinctrl_group_name_to_selector() 86 unsigned nfuncs, selector = 0; in pinmux_func_name_to_selector() local 97 for (selector = 0; selector < nfuncs; selector++) { in pinmux_func_name_to_selector() [all …]
|
H A D | pinctrl-sandbox.c | 62 static const char *sandbox_get_pin_name(struct udevice *dev, unsigned selector) in sandbox_get_pin_name() argument 64 return sandbox_pins[selector]; in sandbox_get_pin_name() 68 unsigned int selector, in sandbox_get_pin_muxing() argument 71 snprintf(buf, size, "%s", sandbox_pins_muxing[selector]); in sandbox_get_pin_muxing() 82 unsigned selector) in sandbox_get_group_name() argument 84 return sandbox_groups[selector]; in sandbox_get_group_name() 93 unsigned selector) in sandbox_get_function_name() argument 95 return sandbox_functions[selector]; in sandbox_get_function_name()
|
/openbmc/linux/lib/ |
H A D | linear_ranges.c | 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() 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 …]
|
/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/openbmc/poky/bitbake/lib/toaster/tests/browser/ |
H A D | selenium_helpers_base.py | 195 def find(self, selector): argument 197 return self.driver.find_element(By.CSS_SELECTOR, selector) 199 def find_all(self, selector): argument 201 return self.driver.find_elements(By.CSS_SELECTOR, selector) 203 def element_exists(self, selector): argument 208 return len(self.find_all(selector)) == 1 214 def wait_until_present(self, selector, timeout=Wait._TIMEOUT): argument 216 is_present = lambda driver: self.find(selector) 217 msg = 'An element matching "%s" should be on the page' % selector 221 def wait_until_visible(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/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/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/linux/kernel/entry/ |
H A D | syscall_user_dispatch.c | 46 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()
|
/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/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/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 …]
|
H A D | pinctrl-mlxbf3.c | 131 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 D | pinmux.c | 40 unsigned selector = 0; in pinmux_check_ops() local 53 while (selector < nfuncs) { in pinmux_check_ops() 55 selector); in pinmux_check_ops() 58 selector); in pinmux_check_ops() 61 selector++; in pinmux_check_ops() 338 unsigned selector = 0; in pinmux_func_name_to_selector() local 341 while (selector < nfuncs) { in pinmux_func_name_to_selector() 342 const char *fname = ops->get_function_name(pctldev, selector); in pinmux_func_name_to_selector() 345 return selector; in pinmux_func_name_to_selector() 347 selector++; in pinmux_func_name_to_selector() [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/ |
H A D | linear_range.h | 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/regulator/ |
H A D | helpers.c | 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() 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 …]
|
/openbmc/qemu/hw/acpi/ |
H A D | cpu.c | 59 if (cpu_st->selector >= cpu_st->dev_count) { in cpu_hotplug_rd() 63 cdev = &cpu_st->devs[cpu_st->selector]; in cpu_hotplug_rd() 70 trace_cpuhp_acpi_read_flags(cpu_st->selector, val); in cpu_hotplug_rd() 75 val = cpu_st->selector; in cpu_hotplug_rd() 83 trace_cpuhp_acpi_read_cmd_data(cpu_st->selector, val); in cpu_hotplug_rd() 96 trace_cpuhp_acpi_read_cmd_data2(cpu_st->selector, val); in cpu_hotplug_rd() 114 if (cpu_st->selector >= cpu_st->dev_count) { in cpu_hotplug_wr() 115 trace_cpuhp_acpi_invalid_idx_selected(cpu_st->selector); in cpu_hotplug_wr() 122 cpu_st->selector = data; in cpu_hotplug_wr() 123 trace_cpuhp_acpi_write_idx(cpu_st->selector); in cpu_hotplug_wr() [all …]
|
/openbmc/linux/drivers/pinctrl/visconti/ |
H A 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 …]
|
/openbmc/linux/drivers/pinctrl/cirrus/ |
H A D | pinctrl-madera-core.c | 455 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 …]
|
/openbmc/linux/drivers/md/ |
H A D | dm-ps-round-robin.c | 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() 179 struct selector *s = ps->context; in rr_reinstate_path() 192 struct selector *s = ps->context; in rr_select_path()
|