/linux-5.19.10/drivers/media/platform/renesas/vsp1/ |
D | vsp1_rwpf.c | 134 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 …]
|
D | vsp1_uif.c | 86 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 …]
|
D | vsp1_histo.c | 203 struct v4l2_subdev_selection *sel) in histo_get_selection() argument 211 if (sel->pad != HISTO_PAD_SINK) in histo_get_selection() 217 sel->which); in histo_get_selection() 223 switch (sel->target) { in histo_get_selection() 229 sel->r.left = 0; in histo_get_selection() 230 sel->r.top = 0; in histo_get_selection() 231 sel->r.width = crop->width; in histo_get_selection() 232 sel->r.height = crop->height; in histo_get_selection() 239 sel->r.left = 0; in histo_get_selection() 240 sel->r.top = 0; in histo_get_selection() [all …]
|
D | vsp1_brx.c | 186 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 …]
|
/linux-5.19.10/lib/ |
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() 130 ret = linear_range_get_value_array(&testr[0], 2, sel, &val); in range_test_get_value() 135 sel = range2_sels[i]; in range_test_get_value() 136 ret = linear_range_get_value_array(&testr[0], 2, sel, &val); in range_test_get_value() 140 ret = linear_range_get_value_array(&testr[0], 2, sel + 1, &val); 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() 154 KUNIT_EXPECT_EQ(test, sel, range1_sels[i]); in range_test_get_selector_high() 159 &sel, &found); in range_test_get_selector_high() [all …]
|
/linux-5.19.10/drivers/power/supply/ |
D | mt6360_charger.c | 267 u32 sel, value; in mt6360_charger_get_ichg() local 269 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL7, &sel); in mt6360_charger_get_ichg() 272 sel = (sel & MT6360_ICHG_MASK) >> MT6360_ICHG_SHFT; in mt6360_charger_get_ichg() 273 ret = linear_range_get_value(&mt6360_chg_range[MT6360_RANGE_ICHG], sel, &value); in mt6360_charger_get_ichg() 290 u32 sel, value; in mt6360_charger_get_cv() local 292 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL4, &sel); in mt6360_charger_get_cv() 295 sel = (sel & MT6360_VOREG_MASK) >> MT6360_VOREG_SHFT; in mt6360_charger_get_cv() 296 ret = linear_range_get_value(&mt6360_chg_range[MT6360_RANGE_VOREG], sel, &value); in mt6360_charger_get_cv() 313 u32 sel, value; in mt6360_charger_get_aicr() local 315 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL3, &sel); in mt6360_charger_get_aicr() [all …]
|
/linux-5.19.10/drivers/regulator/ |
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() 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 …]
|
D | helpers.c | 174 unsigned int sel) in regulator_set_voltage_sel_pickable_regmap() argument 186 if (sel < voltages_in_range) in regulator_set_voltage_sel_pickable_regmap() 188 sel -= voltages_in_range; in regulator_set_voltage_sel_pickable_regmap() 194 sel <<= ffs(rdev->desc->vsel_mask) - 1; in regulator_set_voltage_sel_pickable_regmap() 195 sel += rdev->desc->linear_ranges[i].min_sel; in regulator_set_voltage_sel_pickable_regmap() 203 rdev->desc->vsel_mask, sel | range); in regulator_set_voltage_sel_pickable_regmap() 212 rdev->desc->vsel_mask, sel); in regulator_set_voltage_sel_pickable_regmap() 261 int regulator_set_voltage_sel_regmap(struct regulator_dev *rdev, unsigned sel) in regulator_set_voltage_sel_regmap() argument 265 sel <<= ffs(rdev->desc->vsel_mask) - 1; in regulator_set_voltage_sel_regmap() 268 rdev->desc->vsel_mask, sel); in regulator_set_voltage_sel_regmap() [all …]
|
/linux-5.19.10/Documentation/userspace-api/media/v4l/ |
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; 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 …]
|
/linux-5.19.10/drivers/clk/bcm/ |
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 …]
|
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() 149 if (selector_exists(sel)) { in peri_clk_data_offsets_valid() 150 if (sel->offset > limit) { in peri_clk_data_offsets_valid() 152 __func__, name, sel->offset, limit); in peri_clk_data_offsets_valid() 291 static bool sel_valid(struct bcm_clk_sel *sel, const char *field_name, in sel_valid() argument [all …]
|
D | clk-kona.c | 821 static u8 parent_index(struct bcm_clk_sel *sel, u8 parent_sel) in parent_index() argument 825 BUG_ON(sel->parent_count > (u32)U8_MAX); in parent_index() 826 for (i = 0; i < sel->parent_count; i++) in parent_index() 827 if (sel->parent_sel[i] == parent_sel) in parent_index() 840 static u8 selector_read_index(struct ccu_data *ccu, struct bcm_clk_sel *sel) in selector_read_index() argument 848 if (!selector_exists(sel)) in selector_read_index() 853 reg_val = __ccu_read(ccu, sel->offset); in selector_read_index() 856 parent_sel = bitfield_extract(reg_val, sel->shift, sel->width); in selector_read_index() 859 index = parent_index(sel, parent_sel); in selector_read_index() 862 __func__, parent_sel, ccu->name, sel->offset); in selector_read_index() [all …]
|
D | clk-bcm21664.c | 46 .sel = SELECTOR(0x0a10, 0, 2), 72 .sel = SELECTOR(0x0a28, 0, 3), 84 .sel = SELECTOR(0x0a2c, 0, 3), 96 .sel = SELECTOR(0x0a34, 0, 3), 108 .sel = SELECTOR(0x0a30, 0, 3), 167 .sel = SELECTOR(0x0a10, 0, 2), 177 .sel = SELECTOR(0x0a14, 0, 2), 187 .sel = SELECTOR(0x0a18, 0, 2), 199 .sel = SELECTOR(0x0a64, 0, 3), 210 .sel = SELECTOR(0x0a68, 0, 3), [all …]
|
/linux-5.19.10/drivers/clk/qcom/ |
D | clk-krait.c | 21 static void __krait_mux_set_sel(struct krait_mux_clk *mux, int sel) in __krait_mux_set_sel() argument 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() 50 u32 sel; in krait_mux_set_parent() local 52 sel = clk_mux_index_to_val(mux->parent_map, 0, index); in krait_mux_set_parent() 53 mux->en_mask = sel; in krait_mux_set_parent() 56 __krait_mux_set_sel(mux, sel); in krait_mux_set_parent() 66 u32 sel; in krait_mux_get_parent() local 68 sel = krait_get_l2_indirect_reg(mux->offset); in krait_mux_get_parent() 69 sel >>= mux->shift; in krait_mux_get_parent() [all …]
|
/linux-5.19.10/arch/arm/mach-dove/ |
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-5.19.10/drivers/firmware/ |
D | dmi-sysfs.c | 273 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) 313 typedef u8 (*sel_io_reader)(const struct dmi_system_event_log *sel, 318 static u8 read_sel_8bit_indexed_io(const struct dmi_system_event_log *sel, in read_sel_8bit_indexed_io() argument 324 outb((u8)offset, sel->io.index_addr); in read_sel_8bit_indexed_io() 325 ret = inb(sel->io.data_addr); in read_sel_8bit_indexed_io() 330 static u8 read_sel_2x8bit_indexed_io(const struct dmi_system_event_log *sel, in read_sel_2x8bit_indexed_io() argument [all …]
|
/linux-5.19.10/tools/testing/selftests/syscall_user_dispatch/ |
D | sud_test.c | 61 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 …]
|
/linux-5.19.10/Documentation/devicetree/bindings/mmc/ |
D | sdhci-am654.yaml | 59 ti,otap-del-sel-legacy: 65 ti,otap-del-sel-mmc-hs: 71 ti,otap-del-sel-sd-hs: 77 ti,otap-del-sel-sdr12: 83 ti,otap-del-sel-sdr25: 89 ti,otap-del-sel-sdr50: 95 ti,otap-del-sel-sdr104: 101 ti,otap-del-sel-ddr50: 107 ti,otap-del-sel-ddr52: 113 ti,otap-del-sel-hs200: [all …]
|
/linux-5.19.10/Documentation/devicetree/bindings/net/ |
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-5.19.10/Documentation/devicetree/bindings/phy/ |
D | ti,phy-gmii-sel.yaml | 5 $id: "http://devicetree.org/schemas/phy/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 [all …]
|
/linux-5.19.10/drivers/accessibility/speakup/ |
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-5.19.10/arch/x86/kernel/ |
D | tls.c | 119 unsigned short __maybe_unused sel, modified_sel; in do_set_thread_area() local 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() [all …]
|
/linux-5.19.10/arch/x86/lib/ |
D | insn-eval.c | 345 unsigned short sel; in get_segment_selector() local 356 savesegment(ds, sel); in get_segment_selector() 357 return sel; in get_segment_selector() 359 savesegment(es, sel); in get_segment_selector() 360 return sel; in get_segment_selector() 362 savesegment(fs, sel); in get_segment_selector() 363 return sel; in get_segment_selector() 365 savesegment(gs, sel); in get_segment_selector() 366 return sel; in get_segment_selector() 405 savesegment(gs, sel); in get_segment_selector() [all …]
|
/linux-5.19.10/net/ipv6/ |
D | mip6.c | 203 struct xfrm_selector sel; in mip6_destopt_reject() local 226 memset(&sel, 0, sizeof(sel)); in mip6_destopt_reject() 227 memcpy(&sel.daddr, (xfrm_address_t *)&ipv6_hdr(skb)->daddr, in mip6_destopt_reject() 228 sizeof(sel.daddr)); in mip6_destopt_reject() 229 sel.prefixlen_d = 128; in mip6_destopt_reject() 230 memcpy(&sel.saddr, (xfrm_address_t *)&ipv6_hdr(skb)->saddr, 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() 234 sel.proto = fl6->flowi6_proto; in mip6_destopt_reject() [all …]
|
/linux-5.19.10/drivers/media/tuners/ |
D | mt20xx.c | 108 unsigned int fref,lo1,lo1n,lo1a,s,sel,lo1freq, desired_lo1, in mt2032_compute_freq() local 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() 124 else if(s>1370) sel=3; in mt2032_compute_freq() 125 else sel=4; // >1090 in mt2032_compute_freq() 128 if(s>1790) sel=0; // <1958 in mt2032_compute_freq() 129 else if(s>1617) sel=1; in mt2032_compute_freq() 130 else if(s>1449) sel=2; in mt2032_compute_freq() 131 else if(s>1291) sel=3; in mt2032_compute_freq() [all …]
|