/Linux-v4.19/arch/mips/include/asm/netlogic/ |
D | mips-extns.h | 174 #define __read_64bit_c2_split(source, sel) \ argument 180 if (sel == 0) \ 192 "dmfc2\t%M0, " #source ", " #sel "\n\t" \ 203 #define __write_64bit_c2_split(source, sel, val) \ argument 208 if (sel == 0) \ 225 "dmtc2\t%L0, " #source ", " #sel "\n\t" \ 231 #define __read_32bit_c2_register(source, sel) \ argument 233 if (sel == 0) \ 242 "mfc2\t%0, " #source ", " #sel "\n\t" \ 248 #define __read_64bit_c2_register(source, sel) \ argument [all …]
|
/Linux-v4.19/drivers/media/platform/vsp1/ |
D | vsp1_rwpf.c | 132 struct v4l2_subdev_selection *sel) in vsp1_rwpf_get_selection() argument 143 if (rwpf->entity.type == VSP1_ENTITY_WPF || sel->pad != RWPF_PAD_SINK) in vsp1_rwpf_get_selection() 148 config = vsp1_entity_get_pad_config(&rwpf->entity, cfg, sel->which); in vsp1_rwpf_get_selection() 154 switch (sel->target) { in vsp1_rwpf_get_selection() 156 sel->r = *vsp1_rwpf_get_crop(rwpf, config); in vsp1_rwpf_get_selection() 162 sel->r.left = 0; in vsp1_rwpf_get_selection() 163 sel->r.top = 0; in vsp1_rwpf_get_selection() 164 sel->r.width = format->width; in vsp1_rwpf_get_selection() 165 sel->r.height = format->height; in vsp1_rwpf_get_selection() 180 struct v4l2_subdev_selection *sel) in vsp1_rwpf_set_selection() argument [all …]
|
D | vsp1_uif.c | 85 struct v4l2_subdev_selection *sel) in uif_get_selection() argument 92 if (sel->pad != UIF_PAD_SINK) in uif_get_selection() 97 config = vsp1_entity_get_pad_config(&uif->entity, cfg, sel->which); in uif_get_selection() 103 switch (sel->target) { in uif_get_selection() 108 sel->r.left = 0; in uif_get_selection() 109 sel->r.top = 0; in uif_get_selection() 110 sel->r.width = format->width; in uif_get_selection() 111 sel->r.height = format->height; in uif_get_selection() 115 sel->r = *vsp1_entity_get_pad_selection(&uif->entity, config, in uif_get_selection() 116 sel->pad, sel->target); in uif_get_selection() [all …]
|
D | vsp1_histo.c | 201 struct v4l2_subdev_selection *sel) in histo_get_selection() argument 209 if (sel->pad != HISTO_PAD_SINK) in histo_get_selection() 214 config = vsp1_entity_get_pad_config(&histo->entity, cfg, sel->which); in histo_get_selection() 220 switch (sel->target) { in histo_get_selection() 226 sel->r.left = 0; in histo_get_selection() 227 sel->r.top = 0; in histo_get_selection() 228 sel->r.width = crop->width; in histo_get_selection() 229 sel->r.height = crop->height; in histo_get_selection() 236 sel->r.left = 0; in histo_get_selection() 237 sel->r.top = 0; in histo_get_selection() [all …]
|
D | vsp1_brx.c | 185 struct v4l2_subdev_selection *sel) in brx_get_selection() argument 190 if (sel->pad == brx->entity.source_pad) in brx_get_selection() 193 switch (sel->target) { in brx_get_selection() 195 sel->r.left = 0; in brx_get_selection() 196 sel->r.top = 0; in brx_get_selection() 197 sel->r.width = BRX_MAX_SIZE; in brx_get_selection() 198 sel->r.height = BRX_MAX_SIZE; in brx_get_selection() 203 sel->which); in brx_get_selection() 208 sel->r = *brx_get_compose(brx, config, sel->pad); in brx_get_selection() 219 struct v4l2_subdev_selection *sel) in brx_set_selection() argument [all …]
|
/Linux-v4.19/drivers/regulator/ |
D | anatop-regulator.c | 39 int sel; member 71 int sel; in anatop_regmap_enable() local 73 sel = anatop_reg->bypass ? LDO_FET_FULL_ON : anatop_reg->sel; in anatop_regmap_enable() 74 return regulator_set_voltage_sel_regmap(reg, sel); in anatop_regmap_enable() 94 anatop_reg->sel = selector; in anatop_regmap_core_set_voltage_sel() 100 anatop_reg->sel = selector; in anatop_regmap_core_set_voltage_sel() 109 return anatop_reg->sel; in anatop_regmap_core_get_voltage_sel() 117 int sel; in anatop_regmap_get_bypass() local 119 sel = regulator_get_voltage_sel_regmap(reg); in anatop_regmap_get_bypass() 120 if (sel == LDO_FET_FULL_ON) in anatop_regmap_get_bypass() [all …]
|
D | max77693-regulator.c | 60 unsigned int reg, sel; in max77693_chg_get_current_limit() local 68 sel = reg & reg_data->linear_mask; in max77693_chg_get_current_limit() 71 if (sel <= reg_data->min_sel) in max77693_chg_get_current_limit() 72 sel = 0; in max77693_chg_get_current_limit() 74 sel -= reg_data->min_sel; in max77693_chg_get_current_limit() 76 val = chg_min_uA + reg_data->uA_step * sel; in max77693_chg_get_current_limit() 88 int sel = 0; in max77693_chg_set_current_limit() local 90 while (chg_min_uA + reg_data->uA_step * sel < min_uA) in max77693_chg_set_current_limit() 91 sel++; in max77693_chg_set_current_limit() 93 if (chg_min_uA + reg_data->uA_step * sel > max_uA) in max77693_chg_set_current_limit() [all …]
|
/Linux-v4.19/Documentation/media/uapi/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-v4.19/drivers/staging/rtl8723bs/core/ |
D | rtw_odm.c | 93 void rtw_odm_dbg_comp_msg(void *sel, struct adapter *adapter) in rtw_odm_dbg_comp_msg() argument 99 DBG_871X_SEL_NL(sel, "odm.DebugComponents = 0x%016llx\n", dbg_comp); in rtw_odm_dbg_comp_msg() 102 DBG_871X_SEL_NL(sel, "%cBIT%-2d %s\n", in rtw_odm_dbg_comp_msg() 113 void rtw_odm_dbg_level_msg(void *sel, struct adapter *adapter) in rtw_odm_dbg_level_msg() argument 119 DBG_871X_SEL_NL(sel, "odm.DebugLevel = %u\n", dbg_level); in rtw_odm_dbg_level_msg() 122 DBG_871X_SEL_NL(sel, "%u %s\n", in rtw_odm_dbg_level_msg() 132 void rtw_odm_ability_msg(void *sel, struct adapter *adapter) in rtw_odm_ability_msg() argument 138 DBG_871X_SEL_NL(sel, "odm.SupportAbility = 0x%08x\n", ability); in rtw_odm_ability_msg() 141 DBG_871X_SEL_NL(sel, "%cBIT%-2d %s\n", in rtw_odm_ability_msg() 152 void rtw_odm_adaptivity_parm_msg(void *sel, struct adapter *adapter) in rtw_odm_adaptivity_parm_msg() argument [all …]
|
/Linux-v4.19/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 | 820 static u8 parent_index(struct bcm_clk_sel *sel, u8 parent_sel) in parent_index() argument 824 BUG_ON(sel->parent_count > (u32)U8_MAX); in parent_index() 825 for (i = 0; i < sel->parent_count; i++) in parent_index() 826 if (sel->parent_sel[i] == parent_sel) in parent_index() 839 static u8 selector_read_index(struct ccu_data *ccu, struct bcm_clk_sel *sel) in selector_read_index() argument 847 if (!selector_exists(sel)) in selector_read_index() 852 reg_val = __ccu_read(ccu, sel->offset); in selector_read_index() 855 parent_sel = bitfield_extract(reg_val, sel->shift, sel->width); in selector_read_index() 858 index = parent_index(sel, parent_sel); in selector_read_index() 861 __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-v4.19/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-v4.19/net/ipv4/ |
D | xfrm4_state.c | 26 __xfrm4_init_tempsel(struct xfrm_selector *sel, const struct flowi *fl) in __xfrm4_init_tempsel() argument 30 sel->daddr.a4 = fl4->daddr; in __xfrm4_init_tempsel() 31 sel->saddr.a4 = fl4->saddr; in __xfrm4_init_tempsel() 32 sel->dport = xfrm_flowi_dport(fl, &fl4->uli); in __xfrm4_init_tempsel() 33 sel->dport_mask = htons(0xffff); in __xfrm4_init_tempsel() 34 sel->sport = xfrm_flowi_sport(fl, &fl4->uli); in __xfrm4_init_tempsel() 35 sel->sport_mask = htons(0xffff); in __xfrm4_init_tempsel() 36 sel->family = AF_INET; in __xfrm4_init_tempsel() 37 sel->prefixlen_d = 32; in __xfrm4_init_tempsel() 38 sel->prefixlen_s = 32; in __xfrm4_init_tempsel() [all …]
|
/Linux-v4.19/drivers/firmware/ |
D | dmi-sysfs.c | 272 struct dmi_system_event_log sel; \ 273 if (sizeof(sel) > dmi_entry_length(dh)) \ 275 memcpy(&sel, dh, sizeof(sel)); \ 276 return sprintf(buf, "%u\n", sel._field); \ 278 static DMI_SYSFS_MAPPED_ATTR(sel, _field) 312 typedef u8 (*sel_io_reader)(const struct dmi_system_event_log *sel, 317 static u8 read_sel_8bit_indexed_io(const struct dmi_system_event_log *sel, in read_sel_8bit_indexed_io() argument 323 outb((u8)offset, sel->io.index_addr); in read_sel_8bit_indexed_io() 324 ret = inb(sel->io.data_addr); in read_sel_8bit_indexed_io() 329 static u8 read_sel_2x8bit_indexed_io(const struct dmi_system_event_log *sel, in read_sel_2x8bit_indexed_io() argument [all …]
|
/Linux-v4.19/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-v4.19/arch/x86/kernel/ |
D | tls.c | 118 unsigned short __maybe_unused sel, modified_sel; in do_set_thread_area() local 155 savesegment(ds, sel); in do_set_thread_area() 156 if (sel == modified_sel) in do_set_thread_area() 157 loadsegment(ds, sel); in do_set_thread_area() 159 savesegment(es, sel); in do_set_thread_area() 160 if (sel == modified_sel) in do_set_thread_area() 161 loadsegment(es, sel); in do_set_thread_area() 163 savesegment(fs, sel); in do_set_thread_area() 164 if (sel == modified_sel) in do_set_thread_area() 165 loadsegment(fs, sel); in do_set_thread_area() [all …]
|
/Linux-v4.19/net/ipv6/ |
D | xfrm6_state.c | 25 __xfrm6_init_tempsel(struct xfrm_selector *sel, const struct flowi *fl) in __xfrm6_init_tempsel() argument 31 *(struct in6_addr *)&sel->daddr = fl6->daddr; in __xfrm6_init_tempsel() 32 *(struct in6_addr *)&sel->saddr = fl6->saddr; in __xfrm6_init_tempsel() 33 sel->dport = xfrm_flowi_dport(fl, &fl6->uli); in __xfrm6_init_tempsel() 34 sel->dport_mask = htons(0xffff); in __xfrm6_init_tempsel() 35 sel->sport = xfrm_flowi_sport(fl, &fl6->uli); in __xfrm6_init_tempsel() 36 sel->sport_mask = htons(0xffff); in __xfrm6_init_tempsel() 37 sel->family = AF_INET6; in __xfrm6_init_tempsel() 38 sel->prefixlen_d = 128; in __xfrm6_init_tempsel() 39 sel->prefixlen_s = 128; in __xfrm6_init_tempsel() [all …]
|
/Linux-v4.19/arch/x86/lib/ |
D | insn-eval.c | 321 unsigned short sel; in get_segment_selector() local 331 savesegment(ds, sel); in get_segment_selector() 332 return sel; in get_segment_selector() 334 savesegment(es, sel); in get_segment_selector() 335 return sel; in get_segment_selector() 337 savesegment(fs, sel); in get_segment_selector() 338 return sel; in get_segment_selector() 340 savesegment(gs, sel); in get_segment_selector() 341 return sel; in get_segment_selector() 570 static struct desc_struct *get_desc(unsigned short sel) in get_desc() argument [all …]
|
/Linux-v4.19/drivers/media/v4l2-core/ |
D | v4l2-subdev.c | 154 struct v4l2_subdev_selection *sel) in check_selection() argument 156 if (sel->which != V4L2_SUBDEV_FORMAT_TRY && in check_selection() 157 sel->which != V4L2_SUBDEV_FORMAT_ACTIVE) in check_selection() 160 if (sel->pad >= sd->entity.num_pads) in check_selection() 319 struct v4l2_subdev_selection sel; in subdev_do_ioctl() local 326 memset(&sel, 0, sizeof(sel)); in subdev_do_ioctl() 327 sel.which = crop->which; in subdev_do_ioctl() 328 sel.pad = crop->pad; in subdev_do_ioctl() 329 sel.target = V4L2_SEL_TGT_CROP; in subdev_do_ioctl() 332 sd, pad, get_selection, subdev_fh->pad, &sel); in subdev_do_ioctl() [all …]
|
/Linux-v4.19/arch/mips/kvm/ |
D | dyntrans.c | 101 u32 rd, sel; in kvm_mips_trans_mfc0() local 104 sel = inst.c0r_format.sel; in kvm_mips_trans_mfc0() 106 if (rd == MIPS_CP0_ERRCTL && sel == 0) { in kvm_mips_trans_mfc0() 114 offsetof(struct kvm_mips_commpage, cop0.reg[rd][sel]); in kvm_mips_trans_mfc0() 128 u32 rd, sel; in kvm_mips_trans_mtc0() local 131 sel = inst.c0r_format.sel; in kvm_mips_trans_mtc0() 136 offsetof(struct kvm_mips_commpage, cop0.reg[rd][sel]); in kvm_mips_trans_mtc0()
|
/Linux-v4.19/drivers/media/tuners/ |
D | mt20xx.c | 107 unsigned int fref,lo1,lo1n,lo1a,s,sel,lo1freq, desired_lo1, in mt2032_compute_freq() local 120 if(s>1890) sel=0; in mt2032_compute_freq() 121 else if(s>1720) sel=1; in mt2032_compute_freq() 122 else if(s>1530) sel=2; in mt2032_compute_freq() 123 else if(s>1370) sel=3; in mt2032_compute_freq() 124 else sel=4; // >1090 in mt2032_compute_freq() 127 if(s>1790) sel=0; // <1958 in mt2032_compute_freq() 128 else if(s>1617) sel=1; in mt2032_compute_freq() 129 else if(s>1449) sel=2; in mt2032_compute_freq() 130 else if(s>1291) sel=3; in mt2032_compute_freq() [all …]
|
/Linux-v4.19/arch/mips/include/asm/ |
D | mipsregs.h | 1340 #define ___read_32bit_c0_register(source, sel, vol) \ argument 1342 if (sel == 0) \ 1349 "mfc0\t%0, " #source ", " #sel "\n\t" \ 1355 #define ___read_64bit_c0_register(source, sel, vol) \ argument 1358 __res = __read_64bit_c0_split(source, sel, vol); \ 1359 else if (sel == 0) \ 1368 "dmfc0\t%0, " #source ", " #sel "\n\t" \ 1374 #define __read_32bit_c0_register(source, sel) \ argument 1375 ___read_32bit_c0_register(source, sel, __volatile__) 1377 #define __read_const_32bit_c0_register(source, sel) \ argument [all …]
|
/Linux-v4.19/tools/testing/selftests/x86/ |
D | fsgsbase.c | 119 unsigned short sel; in check_gs_value() local 125 asm volatile ("mov %%gs, %0" : "=rm" (sel)); in check_gs_value() 129 sel); in check_gs_value() 133 base, sel); in check_gs_value() 140 sel); in check_gs_value() 144 base, sel); in check_gs_value() 196 unsigned short sel; in do_remote_base() local 197 asm volatile ("mov %%gs, %0" : "=rm" (sel)); in do_remote_base() 199 to_set, hard_zero ? " and clear gs" : "", sel); in do_remote_base() 407 unsigned short sel = s; in main() local [all …]
|