/linux/drivers/media/platform/vsp1/ |
A D | vsp1_rwpf.c | 165 sel->r.left = 0; in vsp1_rwpf_get_selection() 166 sel->r.top = 0; in vsp1_rwpf_get_selection() 219 sel->r.left = ALIGN(sel->r.left, 2); in vsp1_rwpf_set_selection() 220 sel->r.top = ALIGN(sel->r.top, 2); in vsp1_rwpf_set_selection() 221 sel->r.width = round_down(sel->r.width, 2); in vsp1_rwpf_set_selection() 222 sel->r.height = round_down(sel->r.height, 2); in vsp1_rwpf_set_selection() 225 sel->r.left = min_t(unsigned int, sel->r.left, format->width - 2); in vsp1_rwpf_set_selection() 226 sel->r.top = min_t(unsigned int, sel->r.top, format->height - 2); in vsp1_rwpf_set_selection() 227 sel->r.width = min_t(unsigned int, sel->r.width, in vsp1_rwpf_set_selection() 229 sel->r.height = min_t(unsigned int, sel->r.height, in vsp1_rwpf_set_selection() [all …]
|
A D | vsp1_uif.c | 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() 118 sel->pad, sel->target); in uif_get_selection() 148 sel->which); in uif_set_selection() 157 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1); in uif_set_selection() 158 sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1); in uif_set_selection() 159 sel->r.width = clamp_t(unsigned int, sel->r.width, UIF_MIN_SIZE, in uif_set_selection() 161 sel->r.height = clamp_t(unsigned int, sel->r.height, UIF_MIN_SIZE, in uif_set_selection() [all …]
|
A D | vsp1_histo.c | 229 sel->r.left = 0; in histo_get_selection() 230 sel->r.top = 0; in histo_get_selection() 239 sel->r.left = 0; in histo_get_selection() 240 sel->r.top = 0; in histo_get_selection() 248 sel->pad, sel->target); in histo_get_selection() 274 sel->r.width = clamp_t(unsigned int, sel->r.width, HISTO_MIN_SIZE, in histo_set_crop() 285 sel->pad, in histo_set_crop() 306 sel->r.left = 0; in histo_set_compose() 307 sel->r.top = 0; in histo_set_compose() 327 sel->r.width = clamp(sel->r.width, crop->width / 4, crop->width); in histo_set_compose() [all …]
|
A D | vsp1_brx.c | 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() 204 sel->which); in brx_get_selection() 209 sel->r = *brx_get_compose(brx, config, sel->pad); in brx_get_selection() 237 sel->which); in brx_set_selection() 249 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1); in brx_set_selection() 250 sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1); in brx_set_selection() 257 sel->r.width = format->width; in brx_set_selection() [all …]
|
/linux/drivers/power/supply/ |
A D | mt6360_charger.c | 272 sel = (sel & MT6360_ICHG_MASK) >> MT6360_ICHG_SHFT; in mt6360_charger_get_ichg() 295 sel = (sel & MT6360_VOREG_MASK) >> MT6360_VOREG_SHFT; in mt6360_charger_get_cv() 318 sel = (sel & MT6360_IAICR_MASK) >> MT6360_IAICR_SHFT; in mt6360_charger_get_aicr() 366 sel = (sel & MT6360_IEOC_MASK) >> MT6360_IEOC_SHFT; in mt6360_charger_get_ieoc() 387 u32 sel; in mt6360_charger_set_ichg() local 399 u32 sel; in mt6360_charger_set_cv() local 411 u32 sel; in mt6360_charger_set_aicr() local 423 u32 sel; in mt6360_charger_set_mivr() local 435 u32 sel; in mt6360_charger_set_iprechg() local 447 u32 sel; in mt6360_charger_set_ieoc() local [all …]
|
/linux/lib/ |
A D | test_linear_ranges.c | 126 unsigned int sel, val; in range_test_get_value() local 129 sel = range1_sels[i]; in range_test_get_value() 135 sel = range2_sels[i]; in range_test_get_value() 147 unsigned int sel; in range_test_get_selector_high() local 152 &sel, &found); in range_test_get_selector_high() 159 &sel, &found); in range_test_get_selector_high() 163 &sel, &found); in range_test_get_selector_high() 180 unsigned int sel; in range_test_get_selector_low() local 185 range1_vals[i], &sel, in range_test_get_selector_low() 193 range2_vals[i], &sel, in range_test_get_selector_low() [all …]
|
/linux/drivers/regulator/ |
A D | anatop-regulator.c | 31 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() 101 return anatop_reg->sel; in anatop_regmap_core_get_voltage_sel() 109 int sel; in anatop_regmap_get_bypass() local 112 if (sel == LDO_FET_FULL_ON) in anatop_regmap_get_bypass() 124 int sel; in anatop_regmap_set_bypass() local 129 sel = enable ? LDO_FET_FULL_ON : anatop_reg->sel; in anatop_regmap_set_bypass() 269 sreg->sel = 0; in anatop_regulator_probe() 279 sreg->sel = 22; in anatop_regulator_probe() [all …]
|
A D | helpers.c | 188 sel -= voltages_in_range; in regulator_set_voltage_sel_pickable_regmap() 412 unsigned int sel; in regulator_map_voltage_linear_range() local 428 ret = sel; in regulator_map_voltage_linear_range() 472 unsigned int sel; in regulator_map_voltage_pickable_linear_range() local 801 int i, sel = -1; in regulator_set_current_limit_regmap() local 815 sel = i; in regulator_set_current_limit_regmap() 823 sel = i; in regulator_set_current_limit_regmap() 830 if (sel < 0) in regulator_set_current_limit_regmap() 921 *sel = s; in find_closest_bigger() 930 *sel = maxsel; in find_closest_bigger() [all …]
|
/linux/drivers/clk/bcm/ |
A D | clk-kona-setup.c | 21 #define selector_clear_exists(sel) ((sel)->width = 0) argument 54 struct bcm_clk_sel *sel; in clk_requires_trigger() local 60 sel = &peri->sel; in clk_requires_trigger() 61 if (sel->parent_count && selector_exists(sel)) in clk_requires_trigger() 84 struct bcm_clk_sel *sel; in peri_clk_data_offsets_valid() local 148 sel = &peri->sel; in peri_clk_data_offsets_valid() 294 if (!bitfield_valid(sel->shift, sel->width, field_name, clock_name)) in sel_valid() 309 max_sel = sel->parent_sel[sel->parent_count - 1]; in sel_valid() 315 sel->width); in sel_valid() 437 sel = &peri->sel; in peri_clk_data_valid() [all …]
|
A D | clk-bcm281xx.c | 46 .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 …]
|
A D | clk-kona.c | 848 if (!selector_exists(sel)) in selector_read_index() 856 parent_sel = bitfield_extract(reg_val, sel->shift, sel->width); in selector_read_index() 893 parent_sel = bitfield_extract(reg_val, sel->shift, sel->width); in __sel_commit() 897 sel->clk_index = index; in __sel_commit() 902 BUG_ON((u32)sel->clk_index >= sel->parent_count); in __sel_commit() 903 parent_sel = sel->parent_sel[sel->clk_index]; in __sel_commit() 912 reg_val = bitfield_replace(reg_val, sel->shift, sel->width, parent_sel); in __sel_commit() 934 if (!selector_exists(sel)) in sel_init() 952 previous = sel->clk_index; in selector_write() 956 sel->clk_index = index; in selector_write() [all …]
|
/linux/Documentation/userspace-api/media/v4l/ |
A D | selection-api-examples.rst | 16 struct v4l2_selection sel = { 20 ret = ioctl(fd, VIDIOC_G_SELECTION, &sel); 23 sel.target = V4L2_SEL_TGT_CROP; 36 struct v4l2_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; 50 sel.r = r; 51 sel.target = V4L2_SEL_TGT_COMPOSE; [all …]
|
/linux/Documentation/devicetree/bindings/mmc/ |
A D | sdhci-am654.yaml | 56 ti,otap-del-sel-legacy: 62 ti,otap-del-sel-mmc-hs: 68 ti,otap-del-sel-sd-hs: 74 ti,otap-del-sel-sdr12: 80 ti,otap-del-sel-sdr25: 86 ti,otap-del-sel-sdr50: 98 ti,otap-del-sel-ddr50: 104 ti,otap-del-sel-ddr52: 110 ti,otap-del-sel-hs200: 178 ti,strobe-sel: [all …]
|
/linux/drivers/firmware/ |
A D | dmi-sysfs.c | 273 struct dmi_system_event_log sel; \ 276 memcpy(&sel, dh, sizeof(sel)); \ 325 ret = inb(sel->io.data_addr); in read_sel_8bit_indexed_io() 338 ret = inb(sel->io.data_addr); in read_sel_2x8bit_indexed_io() 350 ret = inb(sel->io.data_addr); in read_sel_16bit_indexed_io() 371 *(buf++) = io_reader(sel, pos++); in dmi_sel_raw_read_io() 385 mapped = dmi_remap(sel->access_method_address, sel->area_length); in dmi_sel_raw_read_phys32() 404 struct dmi_system_event_log sel; in dmi_sel_raw_read_helper() local 409 memcpy(&sel, dh, sizeof(sel)); in dmi_sel_raw_read_helper() 411 switch (sel.access_method) { in dmi_sel_raw_read_helper() [all …]
|
/linux/drivers/clk/qcom/ |
A D | clk-krait.c | 29 regval |= (sel & mux->mask) << mux->shift; in __krait_mux_set_sel() 32 regval |= (sel & mux->mask) << (mux->shift + LPL_SHIFT); in __krait_mux_set_sel() 45 u32 sel; in krait_mux_set_parent() local 47 sel = clk_mux_index_to_val(mux->parent_map, 0, index); in krait_mux_set_parent() 48 mux->en_mask = sel; in krait_mux_set_parent() 51 __krait_mux_set_sel(mux, sel); in krait_mux_set_parent() 61 u32 sel; in krait_mux_get_parent() local 63 sel = krait_get_l2_indirect_reg(mux->offset); in krait_mux_get_parent() 64 sel >>= mux->shift; in krait_mux_get_parent() 65 sel &= mux->mask; in krait_mux_get_parent() [all …]
|
/linux/arch/arm/mach-dove/ |
A D | mpp.c | 71 static void __init dove_mpp_cfg_nfc(int sel) in dove_mpp_cfg_nfc() argument 76 mpp_gen_cfg |= sel; in dove_mpp_cfg_nfc() 82 static void __init dove_mpp_cfg_au1(int sel) in dove_mpp_cfg_au1() argument 94 if (!sel || sel == 0x2) in dove_mpp_cfg_au1() 99 if (sel & 0x1) { in dove_mpp_cfg_au1() 103 if (sel & 0x2) { in dove_mpp_cfg_au1() 107 if (sel & 0x4) { in dove_mpp_cfg_au1() 111 if (sel & 0x8) in dove_mpp_cfg_au1() 129 unsigned int sel = MPP_SEL(*mpp_grp_list); in dove_mpp_conf_grp() local 137 mpp_ctrl4 |= sel << num; in dove_mpp_conf_grp() [all …]
|
/linux/tools/testing/selftests/syscall_user_dispatch/ |
A D | sud_test.c | 61 char sel = SYSCALL_DISPATCH_FILTER_ALLOW; in TEST_SIGNAL() local 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() 265 char sel = 0; in TEST() local 293 char sel = SYSCALL_DISPATCH_FILTER_ALLOW; in TEST() local [all …]
|
/linux/Documentation/devicetree/bindings/phy/ |
A D | ti,phy-gmii-sel.yaml | 51 - ti,am3352-phy-gmii-sel 52 - ti,dra7xx-phy-gmii-sel 53 - ti,am43xx-phy-gmii-sel 54 - ti,dm814-phy-gmii-sel 55 - ti,am654-phy-gmii-sel 68 - ti,dra7xx-phy-gmii-sel 69 - ti,dm814-phy-gmii-sel 70 - ti,am654-phy-gmii-sel 81 - ti,am3352-phy-gmii-sel 82 - ti,am43xx-phy-gmii-sel [all …]
|
/linux/Documentation/devicetree/bindings/net/ |
A D | cpsw-phy-sel.txt | 5 - 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";
|
/linux/drivers/accessibility/speakup/ |
A D | selection.c | 21 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()
|
/linux/arch/x86/lib/ |
A D | insn-eval.c | 359 return sel; in get_segment_selector() 362 return sel; in get_segment_selector() 365 return sel; in get_segment_selector() 368 return sel; in get_segment_selector() 610 sel >>= 3; in get_desc() 662 short sel; in insn_get_seg_base() local 665 if (sel < 0) in insn_get_seg_base() 700 if (!sel) in insn_get_seg_base() 730 short sel; in get_seg_limit() local 739 if (!sel) in get_seg_limit() [all …]
|
/linux/arch/x86/kernel/ |
A D | tls.c | 156 savesegment(ds, sel); in do_set_thread_area() 157 if (sel == modified_sel) in do_set_thread_area() 158 loadsegment(ds, sel); in do_set_thread_area() 160 savesegment(es, sel); in do_set_thread_area() 161 if (sel == modified_sel) in do_set_thread_area() 162 loadsegment(es, sel); in do_set_thread_area() 164 savesegment(fs, sel); in do_set_thread_area() 165 if (sel == modified_sel) in do_set_thread_area() 166 loadsegment(fs, sel); in do_set_thread_area() 169 savesegment(gs, sel); in do_set_thread_area() [all …]
|
/linux/drivers/media/v4l2-core/ |
A D | v4l2-subdev.c | 249 if (!sel) in check_selection() 252 return check_which(sel->which) ? : check_pad(sd, sel->pad) ? : in check_selection() 506 memset(&sel, 0, sizeof(sel)); in subdev_do_ioctl() 508 sel.pad = crop->pad; in subdev_do_ioctl() 514 crop->rect = sel.r; in subdev_do_ioctl() 527 memset(&sel, 0, sizeof(sel)); in subdev_do_ioctl() 529 sel.pad = crop->pad; in subdev_do_ioctl() 531 sel.r = crop->rect; in subdev_do_ioctl() 536 crop->rect = sel.r; in subdev_do_ioctl() 585 memset(sel->reserved, 0, sizeof(sel->reserved)); in subdev_do_ioctl() [all …]
|
/linux/net/ipv6/ |
A D | mip6.c | 203 struct xfrm_selector sel; in mip6_destopt_reject() local 226 memset(&sel, 0, sizeof(sel)); in mip6_destopt_reject() 228 sizeof(sel.daddr)); in mip6_destopt_reject() 229 sel.prefixlen_d = 128; in mip6_destopt_reject() 231 sizeof(sel.saddr)); in mip6_destopt_reject() 232 sel.prefixlen_s = 128; in mip6_destopt_reject() 233 sel.family = AF_INET6; in mip6_destopt_reject() 236 if (sel.dport) in mip6_destopt_reject() 237 sel.dport_mask = htons(~0); in mip6_destopt_reject() 239 if (sel.sport) in mip6_destopt_reject() [all …]
|
/linux/drivers/media/tuners/ |
A D | mt20xx.c | 121 if(s>1890) sel=0; in mt2032_compute_freq() 122 else if(s>1720) sel=1; in mt2032_compute_freq() 123 else if(s>1530) sel=2; in mt2032_compute_freq() 125 else sel=4; // >1090 in mt2032_compute_freq() 132 else sel=4; // >1090 in mt2032_compute_freq() 134 *ret_sel=sel; in mt2032_compute_freq() 220 if(sel==0) in mt2032_optimize_vco() 222 else sel--; in mt2032_optimize_vco() 225 if(sel<4) in mt2032_optimize_vco() 226 sel++; in mt2032_optimize_vco() [all …]
|