Home
last modified time | relevance | path

Searched refs:sel (Results 1 – 25 of 659) sorted by relevance

12345678910>>...27

/openbmc/linux/drivers/media/platform/renesas/vsp1/
H A Dvsp1_rwpf.c134 struct v4l2_subdev_selection *sel) in vsp1_rwpf_get_selection() argument
145 if (rwpf->entity.type == VSP1_ENTITY_WPF || sel->pad != RWPF_PAD_SINK) in vsp1_rwpf_get_selection()
151 sel->which); in vsp1_rwpf_get_selection()
157 switch (sel->target) { in vsp1_rwpf_get_selection()
159 sel->r = *vsp1_rwpf_get_crop(rwpf, config); in vsp1_rwpf_get_selection()
165 sel->r.left = 0; in vsp1_rwpf_get_selection()
166 sel->r.top = 0; in vsp1_rwpf_get_selection()
167 sel->r.width = format->width; in vsp1_rwpf_get_selection()
168 sel->r.height = format->height; in vsp1_rwpf_get_selection()
183 struct v4l2_subdev_selection *sel) in vsp1_rwpf_set_selection() argument
[all …]
H A Dvsp1_histo.c199 struct v4l2_subdev_selection *sel) in histo_get_selection() argument
207 if (sel->pad != HISTO_PAD_SINK) in histo_get_selection()
213 sel->which); in histo_get_selection()
219 switch (sel->target) { in histo_get_selection()
225 sel->r.left = 0; in histo_get_selection()
226 sel->r.top = 0; in histo_get_selection()
227 sel->r.width = crop->width; in histo_get_selection()
228 sel->r.height = crop->height; in histo_get_selection()
235 sel->r.left = 0; in histo_get_selection()
236 sel->r.top = 0; in histo_get_selection()
[all …]
H A Dvsp1_uif.c86 struct v4l2_subdev_selection *sel) in uif_get_selection() argument
93 if (sel->pad != UIF_PAD_SINK) in uif_get_selection()
99 sel->which); in uif_get_selection()
105 switch (sel->target) { in uif_get_selection()
110 sel->r.left = 0; in uif_get_selection()
111 sel->r.top = 0; in uif_get_selection()
112 sel->r.width = format->width; in uif_get_selection()
113 sel->r.height = format->height; in uif_get_selection()
117 sel->r = *vsp1_entity_get_pad_selection(&uif->entity, config, in uif_get_selection()
118 sel->pad, sel->target); in uif_get_selection()
[all …]
H A Dvsp1_brx.c186 struct v4l2_subdev_selection *sel) in brx_get_selection() argument
191 if (sel->pad == brx->entity.source_pad) in brx_get_selection()
194 switch (sel->target) { in brx_get_selection()
196 sel->r.left = 0; in brx_get_selection()
197 sel->r.top = 0; in brx_get_selection()
198 sel->r.width = BRX_MAX_SIZE; in brx_get_selection()
199 sel->r.height = BRX_MAX_SIZE; in brx_get_selection()
204 sel->which); in brx_get_selection()
209 sel->r = *brx_get_compose(brx, config, sel->pad); in brx_get_selection()
220 struct v4l2_subdev_selection *sel) in brx_set_selection() argument
[all …]
/openbmc/linux/lib/
H A Dtest_linear_ranges.c117 unsigned int sel, val; in range_test_get_value() local
120 sel = range1_sels[i]; in range_test_get_value()
121 ret = linear_range_get_value_array(&testr[0], 2, sel, &val); in range_test_get_value()
126 sel = range2_sels[i]; in range_test_get_value()
127 ret = linear_range_get_value_array(&testr[0], 2, sel, &val); in range_test_get_value()
131 ret = linear_range_get_value_array(&testr[0], 2, sel + 1, &val); in range_test_get_value()
138 unsigned int sel; in range_test_get_selector_high() local
143 &sel, &found); in range_test_get_selector_high()
145 KUNIT_EXPECT_EQ(test, sel, range1_sels[i]); in range_test_get_selector_high()
150 &sel, &found); in range_test_get_selector_high()
[all …]
/openbmc/linux/drivers/power/supply/
H A Dmt6360_charger.c264 u32 sel, value; in mt6360_charger_get_ichg() local
266 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL7, &sel); in mt6360_charger_get_ichg()
269 sel = (sel & MT6360_ICHG_MASK) >> MT6360_ICHG_SHFT; in mt6360_charger_get_ichg()
270 ret = linear_range_get_value(&mt6360_chg_range[MT6360_RANGE_ICHG], sel, &value); in mt6360_charger_get_ichg()
287 u32 sel, value; in mt6360_charger_get_cv() local
289 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL4, &sel); in mt6360_charger_get_cv()
292 sel = (sel & MT6360_VOREG_MASK) >> MT6360_VOREG_SHFT; in mt6360_charger_get_cv()
293 ret = linear_range_get_value(&mt6360_chg_range[MT6360_RANGE_VOREG], sel, &value); in mt6360_charger_get_cv()
310 u32 sel, value; in mt6360_charger_get_aicr() local
312 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL3, &sel); in mt6360_charger_get_aicr()
[all …]
/openbmc/linux/drivers/net/ethernet/broadcom/asp2/
H A Dbcmasp.h73 #define ASP_RX_FILTER_MDA_CFG(sel) (((sel) * 0x14) + 0x100) argument
75 #define ASP_RX_FILTER_MDA_CFG_UMC_SEL(sel) ((sel) > 1 ? BIT(17) : \ argument
76 BIT((sel) + 9))
77 #define ASP_RX_FILTER_MDA_PAT_H(sel) (((sel) * 0x14) + 0x104) argument
78 #define ASP_RX_FILTER_MDA_PAT_L(sel) (((sel) * 0x14) + 0x108) argument
79 #define ASP_RX_FILTER_MDA_MSK_H(sel) (((sel) * 0x14) + 0x10c) argument
80 #define ASP_RX_FILTER_MDA_MSK_L(sel) (((sel) * 0x14) + 0x110) argument
81 #define ASP_RX_FILTER_MDA_CFG(sel) (((sel) * 0x14) + 0x100) argument
82 #define ASP_RX_FILTER_MDA_PAT_H(sel) (((sel) * 0x14) + 0x104) argument
83 #define ASP_RX_FILTER_MDA_PAT_L(sel) (((sel) * 0x14) + 0x108) argument
[all …]
/openbmc/linux/drivers/regulator/
H A Danatop-regulator.c31 int sel; member
63 int sel; in anatop_regmap_enable() local
65 sel = anatop_reg->bypass ? LDO_FET_FULL_ON : anatop_reg->sel; in anatop_regmap_enable()
66 return regulator_set_voltage_sel_regmap(reg, sel); in anatop_regmap_enable()
86 anatop_reg->sel = selector; in anatop_regmap_core_set_voltage_sel()
92 anatop_reg->sel = selector; in anatop_regmap_core_set_voltage_sel()
101 return anatop_reg->sel; in anatop_regmap_core_get_voltage_sel()
109 int sel; in anatop_regmap_get_bypass() local
111 sel = regulator_get_voltage_sel_regmap(reg); in anatop_regmap_get_bypass()
112 if (sel == LDO_FET_FULL_ON) in anatop_regmap_get_bypass()
[all …]
H A Dhelpers.c165 unsigned int sel, unsigned int range) in write_separate_vsel_and_range() argument
184 rdev->desc->vsel_mask, sel); in write_separate_vsel_and_range()
187 rdev->desc->vsel_mask, sel); in write_separate_vsel_and_range()
202 unsigned int sel) in regulator_set_voltage_sel_pickable_regmap() argument
214 if (sel < voltages_in_range) in regulator_set_voltage_sel_pickable_regmap()
216 sel -= voltages_in_range; in regulator_set_voltage_sel_pickable_regmap()
222 sel <<= ffs(rdev->desc->vsel_mask) - 1; in regulator_set_voltage_sel_pickable_regmap()
223 sel += rdev->desc->linear_ranges[i].min_sel; in regulator_set_voltage_sel_pickable_regmap()
231 rdev->desc->vsel_mask, sel | range); in regulator_set_voltage_sel_pickable_regmap()
233 ret = write_separate_vsel_and_range(rdev, sel, range); in regulator_set_voltage_sel_pickable_regmap()
[all …]
/openbmc/linux/drivers/clk/bcm/
H A 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 …]
H A Dclk-kona-setup.c13 #define selector_clear_exists(sel) ((sel)->width = 0) argument
46 struct bcm_clk_sel *sel; in clk_requires_trigger() local
52 sel = &peri->sel; in clk_requires_trigger()
53 if (sel->parent_count && selector_exists(sel)) in clk_requires_trigger()
76 struct bcm_clk_sel *sel; in peri_clk_data_offsets_valid() local
140 sel = &peri->sel; in peri_clk_data_offsets_valid()
141 if (selector_exists(sel)) { in peri_clk_data_offsets_valid()
142 if (sel->offset > limit) { in peri_clk_data_offsets_valid()
144 __func__, name, sel->offset, limit); in peri_clk_data_offsets_valid()
283 static bool sel_valid(struct bcm_clk_sel *sel, const char *field_name, in sel_valid() argument
[all …]
H A Dclk-kona.c813 static u8 parent_index(struct bcm_clk_sel *sel, u8 parent_sel) in parent_index() argument
817 BUG_ON(sel->parent_count > (u32)U8_MAX); in parent_index()
818 for (i = 0; i < sel->parent_count; i++) in parent_index()
819 if (sel->parent_sel[i] == parent_sel) in parent_index()
832 static u8 selector_read_index(struct ccu_data *ccu, struct bcm_clk_sel *sel) in selector_read_index() argument
840 if (!selector_exists(sel)) in selector_read_index()
845 reg_val = __ccu_read(ccu, sel->offset); in selector_read_index()
848 parent_sel = bitfield_extract(reg_val, sel->shift, sel->width); in selector_read_index()
851 index = parent_index(sel, parent_sel); in selector_read_index()
854 __func__, parent_sel, ccu->name, sel->offset); in selector_read_index()
[all …]
/openbmc/linux/Documentation/userspace-api/media/v4l/
H A Dselection-api-examples.rst16 struct v4l2_selection sel = {
20 ret = ioctl(fd, VIDIOC_G_SELECTION, &sel);
23 sel.target = V4L2_SEL_TGT_CROP;
24 ret = ioctl(fd, VIDIOC_S_SELECTION, &sel);
36 struct v4l2_selection sel = {
42 ret = ioctl(fd, VIDIOC_G_SELECTION, &sel);
46 r.width = sel.r.width / 2;
47 r.height = sel.r.height / 2;
48 r.left = sel.r.width / 4;
49 r.top = sel.r.height / 4;
[all …]
/openbmc/linux/arch/arm/mach-dove/
H A Dmpp.c68 static void __init dove_mpp_cfg_nfc(int sel) in dove_mpp_cfg_nfc() argument
73 mpp_gen_cfg |= sel; in dove_mpp_cfg_nfc()
79 static void __init dove_mpp_cfg_au1(int sel) in dove_mpp_cfg_au1() argument
91 if (!sel || sel == 0x2) in dove_mpp_cfg_au1()
96 if (sel & 0x1) { in dove_mpp_cfg_au1()
100 if (sel & 0x2) { in dove_mpp_cfg_au1()
104 if (sel & 0x4) { in dove_mpp_cfg_au1()
108 if (sel & 0x8) in dove_mpp_cfg_au1()
126 unsigned int sel = MPP_SEL(*mpp_grp_list); in dove_mpp_conf_grp() local
134 mpp_ctrl4 |= sel << num; in dove_mpp_conf_grp()
[all …]
/openbmc/linux/drivers/media/platform/nxp/imx8-isi/
H A Dimx8-isi-pipe.c547 struct v4l2_subdev_selection *sel) in mxc_isi_pipe_get_selection() argument
553 switch (sel->target) { in mxc_isi_pipe_get_selection()
555 if (sel->pad != MXC_ISI_PIPE_PAD_SINK) in mxc_isi_pipe_get_selection()
562 sel->r.left = 0; in mxc_isi_pipe_get_selection()
563 sel->r.top = 0; in mxc_isi_pipe_get_selection()
564 sel->r.width = format->width; in mxc_isi_pipe_get_selection()
565 sel->r.height = format->height; in mxc_isi_pipe_get_selection()
569 if (sel->pad != MXC_ISI_PIPE_PAD_SOURCE) in mxc_isi_pipe_get_selection()
576 sel->r = *rect; in mxc_isi_pipe_get_selection()
580 if (sel->pad != MXC_ISI_PIPE_PAD_SOURCE) in mxc_isi_pipe_get_selection()
[all …]
/openbmc/phosphor-host-ipmid/
H A Dstoragehandler.cpp60 using namespace xyz::openbmc_project::logging::sel;
62 sdbusplus::error::xyz::openbmc_project::logging::sel::Created;
65 using SELEntry = ipmi::sel::SELEventRecordFormat;
86 return std::string(ipmi::sel::logBasePath) + "/" + std::to_string(id); in getLoggingObjPath()
95 ipmi::sel::GetSELEntryResponse record{}; in parseLoggingEntry()
96 record = ipmi::sel::convertLogEntrytoSEL(p); in parseLoggingEntry()
166 bus, interfacesAdded(ipmi::sel::logWatchPath), in registerSelCallbackHandler()
172 bus, interfacesRemoved(ipmi::sel::logWatchPath), in registerSelCallbackHandler()
181 argN(0, ipmi::sel::logEntryIntf), in registerSelCallbackHandler()
189 ipmi::sel in initSELCache()
[all...]
/openbmc/linux/drivers/firmware/
H A Ddmi-sysfs.c273 struct dmi_system_event_log sel; \
274 if (sizeof(sel) > dmi_entry_length(dh)) \
276 memcpy(&sel, dh, sizeof(sel)); \
277 return sprintf(buf, "%u\n", sel._field); \
279 static DMI_SYSFS_MAPPED_ATTR(sel, _field)
314 typedef u8 (*sel_io_reader)(const struct dmi_system_event_log *sel,
319 static u8 read_sel_8bit_indexed_io(const struct dmi_system_event_log *sel, in read_sel_8bit_indexed_io() argument
325 outb((u8)offset, sel->io.index_addr); in read_sel_8bit_indexed_io()
326 ret = inb(sel->io.data_addr); in read_sel_8bit_indexed_io()
331 static u8 read_sel_2x8bit_indexed_io(const struct dmi_system_event_log *sel, in read_sel_2x8bit_indexed_io() argument
[all …]
/openbmc/linux/drivers/clk/qcom/
H A Dclk-krait.c23 static void __krait_mux_set_sel(struct krait_mux_clk *mux, int sel) in __krait_mux_set_sel() argument
39 regval |= (sel & mux->mask) << mux->shift; in __krait_mux_set_sel()
42 regval |= (sel & mux->mask) << (mux->shift + LPL_SHIFT); in __krait_mux_set_sel()
66 u32 sel; in krait_mux_set_parent() local
68 sel = clk_mux_index_to_val(mux->parent_map, 0, index); in krait_mux_set_parent()
69 mux->en_mask = sel; in krait_mux_set_parent()
72 __krait_mux_set_sel(mux, sel); in krait_mux_set_parent()
82 u32 sel; in krait_mux_get_parent() local
84 sel = krait_get_l2_indirect_reg(mux->offset); in krait_mux_get_parent()
85 sel >>= mux->shift; in krait_mux_get_parent()
[all …]
/openbmc/linux/tools/testing/selftests/syscall_user_dispatch/
H A Dsud_test.c61 char sel = SYSCALL_DISPATCH_FILTER_ALLOW; in TEST_SIGNAL() local
68 ret = prctl(PR_SET_SYSCALL_USER_DISPATCH, PR_SYS_DISPATCH_ON, 0, 0, &sel); in TEST_SIGNAL()
73 SYSCALL_DISPATCH_ON(sel); in TEST_SIGNAL()
84 char sel = SYSCALL_DISPATCH_FILTER_ALLOW; in TEST() local
89 prctl(PR_SET_SYSCALL_USER_DISPATCH, op, 0, 0, &sel); in TEST()
104 prctl(PR_SET_SYSCALL_USER_DISPATCH, op, 0x0, 0x0, &sel); in TEST()
116 prctl(PR_SET_SYSCALL_USER_DISPATCH, op, 0x1, 0x0, &sel); in TEST()
118 prctl(PR_SET_SYSCALL_USER_DISPATCH, op, -1L, 0x0, &sel); in TEST()
128 prctl(PR_SET_SYSCALL_USER_DISPATCH, PR_SYS_DISPATCH_ON, 1, -1L, &sel); in TEST()
136 prctl(PR_SET_SYSCALL_USER_DISPATCH, PR_SYS_DISPATCH_ON, -1L, 0x1, &sel); in TEST()
[all …]
/openbmc/u-boot/drivers/power/regulator/
H A Dstpmu1.c44 static int stpmu1_output_find_uv(int sel, in stpmu1_output_find_uv() argument
52 if (sel >= range->min_sel && sel <= range->max_sel) in stpmu1_output_find_uv()
54 (sel - range->min_sel) * range->step; in stpmu1_output_find_uv()
140 int sel; in stpmu1_buck_get_uv() local
142 sel = pmic_reg_read(dev, STPMU1_BUCKX_CTRL_REG(buck)); in stpmu1_buck_get_uv()
143 if (sel < 0) in stpmu1_buck_get_uv()
144 return sel; in stpmu1_buck_get_uv()
146 sel &= STPMU1_BUCK_OUTPUT_MASK; in stpmu1_buck_get_uv()
147 sel >>= STPMU1_BUCK_OUTPUT_SHIFT; in stpmu1_buck_get_uv()
149 return stpmu1_output_find_uv(sel, &buck_voltage_range[buck]); in stpmu1_buck_get_uv()
[all …]
/openbmc/linux/include/linux/iio/
H A Diio-gts-helper.h28 int sel; member
55 int sel; member
75 .sel = (_sel), \
81 .sel = (_sel), \
101 iio_gts_find_itime_by_sel(struct iio_gts *gts, int sel) in iio_gts_find_itime_by_sel() argument
106 if (gts->itime_table[i].sel == sel) in iio_gts_find_itime_by_sel()
124 static inline int iio_gts_find_int_time_by_sel(struct iio_gts *gts, int sel) in iio_gts_find_int_time_by_sel() argument
128 itime = iio_gts_find_itime_by_sel(gts, sel); in iio_gts_find_int_time_by_sel()
151 return itime->sel; in iio_gts_find_sel_by_int_time()
181 int iio_gts_find_gain_by_sel(struct iio_gts *gts, int sel);
[all …]
/openbmc/linux/Documentation/devicetree/bindings/net/
H A Dcpsw-phy-sel.txt5 - compatible : Should be "ti,am3352-cpsw-phy-sel" for am335x platform and
6 "ti,dra7xx-cpsw-phy-sel" for dra7xx platform
7 "ti,am43xx-cpsw-phy-sel" for am43xx platform
18 phy_sel: cpsw-phy-sel@44e10650 {
19 compatible = "ti,am3352-cpsw-phy-sel";
21 reg-names = "gmii-sel";
25 phy_sel: cpsw-phy-sel@44e10650 {
26 compatible = "ti,am3352-cpsw-phy-sel";
28 reg-names = "gmii-sel";
/openbmc/linux/drivers/accessibility/speakup/
H A Dselection.c21 struct tiocl_selection sel; member
31 struct tiocl_selection sel; in __speakup_set_selection() local
33 sel = ssw->sel; in __speakup_set_selection()
51 set_selection_kernel(&sel, tty); in __speakup_set_selection()
81 speakup_sel_work.sel.xs = spk_xs + 1; in speakup_set_selection()
82 speakup_sel_work.sel.ys = spk_ys + 1; in speakup_set_selection()
83 speakup_sel_work.sel.xe = spk_xe + 1; in speakup_set_selection()
84 speakup_sel_work.sel.ye = spk_ye + 1; in speakup_set_selection()
85 speakup_sel_work.sel.sel_mode = TIOCL_SELCHAR; in speakup_set_selection()
/openbmc/u-boot/arch/arm/mach-exynos/
H A Dclock.c640 unsigned int sel; in exynos4_get_pwm_clk() local
648 sel = readl(&clk->src_peril0); in exynos4_get_pwm_clk()
649 sel = (sel >> 24) & 0xf; in exynos4_get_pwm_clk()
651 if (sel == 0x6) in exynos4_get_pwm_clk()
653 else if (sel == 0x7) in exynos4_get_pwm_clk()
655 else if (sel == 0x8) in exynos4_get_pwm_clk()
697 unsigned int sel; in exynos4_get_uart_clk() local
709 sel = readl(&clk->src_peril0); in exynos4_get_uart_clk()
710 sel = (sel >> (dev_index << 2)) & 0xf; in exynos4_get_uart_clk()
712 if (sel == 0x6) in exynos4_get_uart_clk()
[all …]
/openbmc/linux/arch/x86/kernel/
H A Dtls.c120 unsigned short __maybe_unused sel, modified_sel; in do_set_thread_area() local
157 savesegment(ds, sel); in do_set_thread_area()
158 if (sel == modified_sel) in do_set_thread_area()
159 loadsegment(ds, sel); in do_set_thread_area()
161 savesegment(es, sel); in do_set_thread_area()
162 if (sel == modified_sel) in do_set_thread_area()
163 loadsegment(es, sel); in do_set_thread_area()
165 savesegment(fs, sel); in do_set_thread_area()
166 if (sel == modified_sel) in do_set_thread_area()
167 loadsegment(fs, sel); in do_set_thread_area()
[all …]

12345678910>>...27