Home
last modified time | relevance | path

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

/linux-4.1.27/arch/mips/include/asm/netlogic/
Dmips-extns.h174 #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-4.1.27/drivers/media/platform/vsp1/
Dvsp1_rwpf.c150 struct v4l2_subdev_selection *sel) in vsp1_rwpf_get_selection() argument
156 if (sel->pad != RWPF_PAD_SINK) in vsp1_rwpf_get_selection()
159 switch (sel->target) { in vsp1_rwpf_get_selection()
161 sel->r = *vsp1_rwpf_get_crop(rwpf, cfg, sel->which); in vsp1_rwpf_get_selection()
166 RWPF_PAD_SINK, sel->which); in vsp1_rwpf_get_selection()
167 sel->r.left = 0; in vsp1_rwpf_get_selection()
168 sel->r.top = 0; in vsp1_rwpf_get_selection()
169 sel->r.width = format->width; in vsp1_rwpf_get_selection()
170 sel->r.height = format->height; in vsp1_rwpf_get_selection()
182 struct v4l2_subdev_selection *sel) in vsp1_rwpf_set_selection() argument
[all …]
Dvsp1_bru.c324 struct v4l2_subdev_selection *sel) in bru_get_selection() argument
328 if (sel->pad == BRU_PAD_SOURCE) in bru_get_selection()
331 switch (sel->target) { in bru_get_selection()
333 sel->r.left = 0; in bru_get_selection()
334 sel->r.top = 0; in bru_get_selection()
335 sel->r.width = BRU_MAX_SIZE; in bru_get_selection()
336 sel->r.height = BRU_MAX_SIZE; in bru_get_selection()
340 sel->r = *bru_get_compose(bru, cfg, sel->pad, sel->which); in bru_get_selection()
350 struct v4l2_subdev_selection *sel) in bru_set_selection() argument
356 if (sel->pad == BRU_PAD_SOURCE) in bru_set_selection()
[all …]
Dvsp1_rwpf.h65 struct v4l2_subdev_selection *sel);
68 struct v4l2_subdev_selection *sel);
/linux-4.1.27/drivers/clk/bcm/
Dclk-bcm281xx.c46 .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 …]
Dclk-kona-setup.c21 #define selector_clear_exists(sel) ((sel)->width = 0) argument
56 struct bcm_clk_sel *sel; in clk_requires_trigger() local
62 sel = &peri->sel; in clk_requires_trigger()
63 if (sel->parent_count && selector_exists(sel)) in clk_requires_trigger()
86 struct bcm_clk_sel *sel; in peri_clk_data_offsets_valid() local
150 sel = &peri->sel; in peri_clk_data_offsets_valid()
151 if (selector_exists(sel)) { in peri_clk_data_offsets_valid()
152 if (sel->offset > limit) { in peri_clk_data_offsets_valid()
154 __func__, name, sel->offset, limit); in peri_clk_data_offsets_valid()
293 static bool sel_valid(struct bcm_clk_sel *sel, const char *field_name, in sel_valid() argument
[all …]
Dclk-kona.c819 static u8 parent_index(struct bcm_clk_sel *sel, u8 parent_sel) in parent_index() argument
823 BUG_ON(sel->parent_count > (u32)U8_MAX); in parent_index()
824 for (i = 0; i < sel->parent_count; i++) in parent_index()
825 if (sel->parent_sel[i] == parent_sel) in parent_index()
838 static u8 selector_read_index(struct ccu_data *ccu, struct bcm_clk_sel *sel) in selector_read_index() argument
846 if (!selector_exists(sel)) in selector_read_index()
851 reg_val = __ccu_read(ccu, sel->offset); in selector_read_index()
854 parent_sel = bitfield_extract(reg_val, sel->shift, sel->width); in selector_read_index()
857 index = parent_index(sel, parent_sel); in selector_read_index()
860 __func__, parent_sel, ccu->name, sel->offset); in selector_read_index()
[all …]
Dclk-bcm21664.c46 .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 …]
Dclk-kona.h70 #define selector_exists(sel) ((sel)->width != 0) argument
398 struct bcm_clk_sel sel; member
/linux-4.1.27/drivers/regulator/
Danatop-regulator.c55 int sel; member
87 int sel; in anatop_regmap_enable() local
89 sel = anatop_reg->bypass ? LDO_FET_FULL_ON : anatop_reg->sel; in anatop_regmap_enable()
90 return regulator_set_voltage_sel_regmap(reg, sel); in anatop_regmap_enable()
110 anatop_reg->sel = selector; in anatop_regmap_core_set_voltage_sel()
116 anatop_reg->sel = selector; in anatop_regmap_core_set_voltage_sel()
125 return anatop_reg->sel; in anatop_regmap_core_get_voltage_sel()
133 int sel; in anatop_regmap_get_bypass() local
135 sel = regulator_get_voltage_sel_regmap(reg); in anatop_regmap_get_bypass()
136 if (sel == LDO_FET_FULL_ON) in anatop_regmap_get_bypass()
[all …]
Dmax77693.c61 unsigned int reg, sel; in max77693_chg_get_current_limit() local
69 sel = reg & CHG_CNFG_09_CHGIN_ILIM_MASK; in max77693_chg_get_current_limit()
72 if (sel <= 3) in max77693_chg_get_current_limit()
73 sel = 0; in max77693_chg_get_current_limit()
75 sel -= 3; in max77693_chg_get_current_limit()
77 val = chg_min_uA + CHGIN_ILIM_STEP_20mA * sel; in max77693_chg_get_current_limit()
88 int sel = 0; in max77693_chg_set_current_limit() local
90 while (chg_min_uA + CHGIN_ILIM_STEP_20mA * sel < min_uA) in max77693_chg_set_current_limit()
91 sel++; in max77693_chg_set_current_limit()
93 if (chg_min_uA + CHGIN_ILIM_STEP_20mA * sel > max_uA) in max77693_chg_set_current_limit()
[all …]
Dmax77843.c58 unsigned int reg, sel; in max77843_reg_get_current_limit() local
66 sel = reg & MAX77843_CHG_FAST_CHG_CURRENT_MASK; in max77843_reg_get_current_limit()
68 if (sel < 0x03) in max77843_reg_get_current_limit()
69 sel = 0; in max77843_reg_get_current_limit()
71 sel -= 2; in max77843_reg_get_current_limit()
73 val = chg_min_uA + MAX77843_CHG_FAST_CHG_CURRENT_STEP * sel; in max77843_reg_get_current_limit()
85 int sel = 0; in max77843_reg_set_current_limit() local
87 while (chg_min_uA + MAX77843_CHG_FAST_CHG_CURRENT_STEP * sel < min_uA) in max77843_reg_set_current_limit()
88 sel++; in max77843_reg_set_current_limit()
90 if (chg_min_uA + MAX77843_CHG_FAST_CHG_CURRENT_STEP * sel > max_uA) in max77843_reg_set_current_limit()
[all …]
Dda9210-regulator.c88 unsigned int sel; in da9210_set_current_limit() local
95 sel = i; in da9210_set_current_limit()
96 sel = sel << DA9210_BUCK_ILIM_SHIFT; in da9210_set_current_limit()
99 DA9210_BUCK_ILIM_MASK, sel); in da9210_set_current_limit()
110 unsigned int sel; in da9210_get_current_limit() local
118 sel = (data & DA9210_BUCK_ILIM_MASK) >> DA9210_BUCK_ILIM_SHIFT; in da9210_get_current_limit()
120 return da9210_buck_limits[sel]; in da9210_get_current_limit()
Darizona-ldo1.c54 int sel; in arizona_ldo1_hc_map_voltage() local
56 sel = DIV_ROUND_UP(min_uV - rdev->desc->min_uV, rdev->desc->uV_step); in arizona_ldo1_hc_map_voltage()
57 if (sel >= rdev->desc->n_voltages) in arizona_ldo1_hc_map_voltage()
58 sel = rdev->desc->n_voltages - 1; in arizona_ldo1_hc_map_voltage()
60 return sel; in arizona_ldo1_hc_map_voltage()
64 unsigned sel) in arizona_ldo1_hc_set_voltage_sel() argument
71 if (sel == rdev->desc->n_voltages - 1) in arizona_ldo1_hc_set_voltage_sel()
89 val = sel << ARIZONA_LDO1_VSEL_SHIFT; in arizona_ldo1_hc_set_voltage_sel()
Dwm831x-ldo.c75 int sel, reg = ldo->base + WM831X_LDO_SLEEP_CONTROL; in wm831x_gp_ldo_set_suspend_voltage() local
77 sel = regulator_map_voltage_linear_range(rdev, uV, uV); in wm831x_gp_ldo_set_suspend_voltage()
78 if (sel < 0) in wm831x_gp_ldo_set_suspend_voltage()
79 return sel; in wm831x_gp_ldo_set_suspend_voltage()
81 return wm831x_set_bits(wm831x, reg, WM831X_LDO1_ON_VSEL_MASK, sel); in wm831x_gp_ldo_set_suspend_voltage()
327 int sel, reg = ldo->base + WM831X_LDO_SLEEP_CONTROL; in wm831x_aldo_set_suspend_voltage() local
329 sel = regulator_map_voltage_linear_range(rdev, uV, uV); in wm831x_aldo_set_suspend_voltage()
330 if (sel < 0) in wm831x_aldo_set_suspend_voltage()
331 return sel; in wm831x_aldo_set_suspend_voltage()
333 return wm831x_set_bits(wm831x, reg, WM831X_LDO7_ON_VSEL_MASK, sel); in wm831x_aldo_set_suspend_voltage()
[all …]
Dltc3589.c113 int sel, shift; in ltc3589_set_ramp_delay() local
122 for (sel = 0; sel < 4; sel++) { in ltc3589_set_ramp_delay()
123 if ((880 << sel) >= ramp_delay) { in ltc3589_set_ramp_delay()
126 0x3 << shift, sel << shift); in ltc3589_set_ramp_delay()
135 int sel; in ltc3589_set_suspend_voltage() local
137 sel = regulator_map_voltage_linear(rdev, uV, uV); in ltc3589_set_suspend_voltage()
138 if (sel < 0) in ltc3589_set_suspend_voltage()
139 return sel; in ltc3589_set_suspend_voltage()
143 rdev->desc->vsel_mask, sel); in ltc3589_set_suspend_voltage()
Dti-abb-regulator.c322 static int ti_abb_set_voltage_sel(struct regulator_dev *rdev, unsigned sel) in ti_abb_set_voltage_sel() argument
343 if (sel >= desc->n_voltages) { in ti_abb_set_voltage_sel()
345 sel, desc->n_voltages); in ti_abb_set_voltage_sel()
350 if (sel == abb->current_info_idx) { in ti_abb_set_voltage_sel()
351 dev_dbg(dev, "%s: Already at sel=%d\n", __func__, sel); in ti_abb_set_voltage_sel()
356 info = &abb->info[sel]; in ti_abb_set_voltage_sel()
360 sel, abb->current_info_idx); in ti_abb_set_voltage_sel()
368 abb->current_info_idx = sel; in ti_abb_set_voltage_sel()
372 __func__, desc->volt_table[sel], sel, in ti_abb_set_voltage_sel()
Dda9063-regulator.c186 unsigned int sel; in da9063_get_current_limit() local
189 ret = regmap_field_read(regl->ilimit, &sel); in da9063_get_current_limit()
193 if (sel >= rinfo->n_current_limits) in da9063_get_current_limit()
194 sel = rinfo->n_current_limits - 1; in da9063_get_current_limit()
196 return rinfo->current_limits[sel]; in da9063_get_current_limit()
364 int ret, sel; in da9063_set_suspend_voltage() local
366 sel = regulator_map_voltage_linear(rdev, uV, uV); in da9063_set_suspend_voltage()
367 if (sel < 0) in da9063_set_suspend_voltage()
368 return sel; in da9063_set_suspend_voltage()
370 sel <<= ffs(rdev->desc->vsel_mask) - 1; in da9063_set_suspend_voltage()
[all …]
Dtps80031-regulator.c165 static int tps80031_dcdc_list_voltage(struct regulator_dev *rdev, unsigned sel) in tps80031_dcdc_list_voltage() argument
170 if (sel == 0) in tps80031_dcdc_list_voltage()
172 else if (sel < 58) in tps80031_dcdc_list_voltage()
173 return regulator_list_voltage_linear(rdev, sel - 1); in tps80031_dcdc_list_voltage()
175 return tps80031_dcdc_voltages[volt_index][sel - 58] * 1000; in tps80031_dcdc_list_voltage()
242 unsigned int sel) in tps80031_ldo_list_voltage() argument
250 unsigned nvsel = (sel) & 0x1F; in tps80031_ldo_list_voltage()
262 return regulator_list_voltage_linear(rdev, sel); in tps80031_ldo_list_voltage()
Dda9052-regulator.c188 int ret, sel; in da9052_map_voltage() local
199 sel = DA9052_BUCK_PERI_REG_MAP_UPTO_3uV + in da9052_map_voltage()
203 sel = DIV_ROUND_UP(min_uV - info->min_uV, info->step_uV); in da9052_map_voltage()
206 ret = da9052_list_voltage(rdev, sel); in da9052_map_voltage()
210 return sel; in da9052_map_voltage()
Dwm8350-regulator.c338 int sel, volt_reg, dcdc = rdev_get_id(rdev); in wm8350_dcdc_set_suspend_voltage() local
362 sel = regulator_map_voltage_linear(rdev, uV, uV); in wm8350_dcdc_set_suspend_voltage()
363 if (sel < 0) in wm8350_dcdc_set_suspend_voltage()
364 return sel; in wm8350_dcdc_set_suspend_voltage()
368 wm8350_reg_write(wm8350, volt_reg, val | sel); in wm8350_dcdc_set_suspend_voltage()
553 int sel, volt_reg, ldo = rdev_get_id(rdev); in wm8350_ldo_set_suspend_voltage() local
575 sel = regulator_map_voltage_linear_range(rdev, uV, uV); in wm8350_ldo_set_suspend_voltage()
576 if (sel < 0) in wm8350_ldo_set_suspend_voltage()
577 return sel; in wm8350_ldo_set_suspend_voltage()
581 wm8350_reg_write(wm8350, volt_reg, val | sel); in wm8350_ldo_set_suspend_voltage()
Dda903x.c197 int thresh, sel; in da9030_map_ldo14_voltage() local
206 sel = DIV_ROUND_UP(thresh - min_uV, info->desc.uV_step); in da9030_map_ldo14_voltage()
207 sel |= 0x4; in da9030_map_ldo14_voltage()
209 sel = DIV_ROUND_UP(min_uV - thresh, info->desc.uV_step); in da9030_map_ldo14_voltage()
212 return sel; in da9030_map_ldo14_voltage()
Dhelpers.c141 int regulator_set_voltage_sel_regmap(struct regulator_dev *rdev, unsigned sel) in regulator_set_voltage_sel_regmap() argument
145 sel <<= ffs(rdev->desc->vsel_mask) - 1; in regulator_set_voltage_sel_regmap()
148 rdev->desc->vsel_mask, sel); in regulator_set_voltage_sel_regmap()
Drk808-regulator.c103 int sel = regulator_map_voltage_linear_range(rdev, uv, uv); in rk808_set_suspend_voltage() local
105 if (sel < 0) in rk808_set_suspend_voltage()
112 sel); in rk808_set_suspend_voltage()
Dwm831x-dcdc.c577 int sel; in wm831x_buckp_set_suspend_voltage() local
579 sel = regulator_map_voltage_linear(rdev, uV, uV); in wm831x_buckp_set_suspend_voltage()
580 if (sel < 0) in wm831x_buckp_set_suspend_voltage()
581 return sel; in wm831x_buckp_set_suspend_voltage()
583 return wm831x_set_bits(wm831x, reg, WM831X_DC3_ON_VSEL_MASK, sel); in wm831x_buckp_set_suspend_voltage()
Dda9055-regulator.c209 int ret, sel; in da9055_regulator_get_voltage_sel() local
231 sel = (ret & volt.v_mask); in da9055_regulator_get_voltage_sel()
232 return sel; in da9055_regulator_get_voltage_sel()
Dmax8997.c813 int sel, rid = rdev_get_id(rdev); in max8997_get_current_limit() local
818 sel = max8997_get_voltage_sel(rdev); in max8997_get_current_limit()
819 if (sel < 0) in max8997_get_current_limit()
820 return sel; in max8997_get_current_limit()
823 return max8997_list_voltage(rdev, sel); in max8997_get_current_limit()
Dtwl-regulator.c557 static int twl6030ldo_list_voltage(struct regulator_dev *rdev, unsigned sel) in twl6030ldo_list_voltage() argument
561 switch (sel) { in twl6030ldo_list_voltage()
568 return (info->min_mV + 100 * (sel - 1)) * 1000; in twl6030ldo_list_voltage()
Dcore.c2870 int sel, ret; in _regulator_get_voltage() local
2873 sel = rdev->desc->ops->get_voltage_sel(rdev); in _regulator_get_voltage()
2874 if (sel < 0) in _regulator_get_voltage()
2875 return sel; in _regulator_get_voltage()
2876 ret = rdev->desc->ops->list_voltage(rdev, sel); in _regulator_get_voltage()
/linux-4.1.27/arch/arm/mach-dove/
Dmpp.c71 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-4.1.27/net/ipv4/
Dxfrm4_state.c25 __xfrm4_init_tempsel(struct xfrm_selector *sel, const struct flowi *fl) in __xfrm4_init_tempsel() argument
29 sel->daddr.a4 = fl4->daddr; in __xfrm4_init_tempsel()
30 sel->saddr.a4 = fl4->saddr; in __xfrm4_init_tempsel()
31 sel->dport = xfrm_flowi_dport(fl, &fl4->uli); in __xfrm4_init_tempsel()
32 sel->dport_mask = htons(0xffff); in __xfrm4_init_tempsel()
33 sel->sport = xfrm_flowi_sport(fl, &fl4->uli); in __xfrm4_init_tempsel()
34 sel->sport_mask = htons(0xffff); in __xfrm4_init_tempsel()
35 sel->family = AF_INET; in __xfrm4_init_tempsel()
36 sel->prefixlen_d = 32; in __xfrm4_init_tempsel()
37 sel->prefixlen_s = 32; in __xfrm4_init_tempsel()
[all …]
Dxfrm4_mode_beet.c52 if (x->sel.family != AF_INET6) in xfrm4_beet_output()
121 iph->daddr = x->sel.daddr.a4; in xfrm4_beet_input()
122 iph->saddr = x->sel.saddr.a4; in xfrm4_beet_input()
Dipcomp.c72 memcpy(&t->sel, &x->sel, sizeof(t->sel)); in ipcomp_tunnel_create()
Desp4.c656 else if (x->props.mode == XFRM_MODE_BEET && x->sel.family != AF_INET6) in esp_init_state()
/linux-4.1.27/drivers/firmware/
Ddmi-sysfs.c271 struct dmi_system_event_log sel; \
272 if (sizeof(sel) > dmi_entry_length(dh)) \
274 memcpy(&sel, dh, sizeof(sel)); \
275 return sprintf(buf, "%u\n", sel._field); \
277 static DMI_SYSFS_MAPPED_ATTR(sel, _field)
311 typedef u8 (*sel_io_reader)(const struct dmi_system_event_log *sel,
316 static u8 read_sel_8bit_indexed_io(const struct dmi_system_event_log *sel, in read_sel_8bit_indexed_io() argument
322 outb((u8)offset, sel->io.index_addr); in read_sel_8bit_indexed_io()
323 ret = inb(sel->io.data_addr); in read_sel_8bit_indexed_io()
328 static u8 read_sel_2x8bit_indexed_io(const struct dmi_system_event_log *sel, in read_sel_2x8bit_indexed_io() argument
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/net/
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";
/linux-4.1.27/net/ipv6/
Dxfrm6_state.c24 __xfrm6_init_tempsel(struct xfrm_selector *sel, const struct flowi *fl) in __xfrm6_init_tempsel() argument
30 *(struct in6_addr *)&sel->daddr = fl6->daddr; in __xfrm6_init_tempsel()
31 *(struct in6_addr *)&sel->saddr = fl6->saddr; in __xfrm6_init_tempsel()
32 sel->dport = xfrm_flowi_dport(fl, &fl6->uli); in __xfrm6_init_tempsel()
33 sel->dport_mask = htons(0xffff); in __xfrm6_init_tempsel()
34 sel->sport = xfrm_flowi_sport(fl, &fl6->uli); in __xfrm6_init_tempsel()
35 sel->sport_mask = htons(0xffff); in __xfrm6_init_tempsel()
36 sel->family = AF_INET6; in __xfrm6_init_tempsel()
37 sel->prefixlen_d = 128; in __xfrm6_init_tempsel()
38 sel->prefixlen_s = 128; in __xfrm6_init_tempsel()
[all …]
Dmip6.c217 struct xfrm_selector sel; in mip6_destopt_reject() local
240 memset(&sel, 0, sizeof(sel)); in mip6_destopt_reject()
241 memcpy(&sel.daddr, (xfrm_address_t *)&ipv6_hdr(skb)->daddr, in mip6_destopt_reject()
242 sizeof(sel.daddr)); in mip6_destopt_reject()
243 sel.prefixlen_d = 128; in mip6_destopt_reject()
244 memcpy(&sel.saddr, (xfrm_address_t *)&ipv6_hdr(skb)->saddr, in mip6_destopt_reject()
245 sizeof(sel.saddr)); in mip6_destopt_reject()
246 sel.prefixlen_s = 128; in mip6_destopt_reject()
247 sel.family = AF_INET6; in mip6_destopt_reject()
248 sel.proto = fl6->flowi6_proto; in mip6_destopt_reject()
[all …]
Dxfrm6_mode_beet.c52 if (x->sel.family != AF_INET6) in xfrm6_beet_output()
98 ip6h->daddr = x->sel.daddr.in6; in xfrm6_beet_input()
99 ip6h->saddr = x->sel.saddr.in6; in xfrm6_beet_input()
Dipcomp6.c100 memcpy(&t->sel, &x->sel, sizeof(t->sel)); in ipcomp6_tunnel_create()
Dipv6_sockglue.c61 int ip6_ra_control(struct sock *sk, int sel) in ip6_ra_control() argument
69 new_ra = (sel >= 0) ? kmalloc(sizeof(*new_ra), GFP_KERNEL) : NULL; in ip6_ra_control()
74 if (sel >= 0) { in ip6_ra_control()
93 new_ra->sel = sel; in ip6_ra_control()
Dip6_output.c239 static int ip6_call_ra_chain(struct sk_buff *skb, int sel) in ip6_call_ra_chain() argument
247 if (sk && ra->sel == sel && in ip6_call_ra_chain()
Desp6.c601 if (x->sel.family != AF_INET6) in esp6_init_state()
/linux-4.1.27/drivers/media/v4l2-core/
Dv4l2-subdev.c155 struct v4l2_subdev_selection *sel) in check_selection() argument
157 if (sel->which != V4L2_SUBDEV_FORMAT_TRY && in check_selection()
158 sel->which != V4L2_SUBDEV_FORMAT_ACTIVE) in check_selection()
161 if (sel->pad >= sd->entity.num_pads) in check_selection()
279 struct v4l2_subdev_selection sel; in subdev_do_ioctl() local
285 memset(&sel, 0, sizeof(sel)); in subdev_do_ioctl()
286 sel.which = crop->which; in subdev_do_ioctl()
287 sel.pad = crop->pad; in subdev_do_ioctl()
288 sel.target = V4L2_SEL_TGT_CROP; in subdev_do_ioctl()
291 sd, pad, get_selection, subdev_fh->pad, &sel); in subdev_do_ioctl()
[all …]
/linux-4.1.27/drivers/media/tuners/
Dmt20xx.c109 unsigned int fref,lo1,lo1n,lo1a,s,sel,lo1freq, desired_lo1, in mt2032_compute_freq() local
122 if(s>1890) sel=0; in mt2032_compute_freq()
123 else if(s>1720) sel=1; in mt2032_compute_freq()
124 else if(s>1530) sel=2; in mt2032_compute_freq()
125 else if(s>1370) sel=3; in mt2032_compute_freq()
126 else sel=4; // >1090 in mt2032_compute_freq()
129 if(s>1790) sel=0; // <1958 in mt2032_compute_freq()
130 else if(s>1617) sel=1; in mt2032_compute_freq()
131 else if(s>1449) sel=2; in mt2032_compute_freq()
132 else if(s>1291) sel=3; in mt2032_compute_freq()
[all …]
/linux-4.1.27/drivers/media/i2c/smiapp/
Dsmiapp-core.c1882 struct v4l2_subdev_selection *sel, in smiapp_set_compose_binner() argument
1891 crops[SMIAPP_PAD_SINK]->width, sel->r.width, in smiapp_set_compose_binner()
1892 crops[SMIAPP_PAD_SINK]->height, sel->r.height, sel->flags); in smiapp_set_compose_binner()
1899 sel->r.width, in smiapp_set_compose_binner()
1902 sel->r.height, sel->flags); in smiapp_set_compose_binner()
1910 if (sel->which == V4L2_SUBDEV_FORMAT_ACTIVE) { in smiapp_set_compose_binner()
1915 sel->r.width = (crops[SMIAPP_PAD_SINK]->width / binh) & ~1; in smiapp_set_compose_binner()
1916 sel->r.height = (crops[SMIAPP_PAD_SINK]->height / binv) & ~1; in smiapp_set_compose_binner()
1930 struct v4l2_subdev_selection *sel, in smiapp_set_compose_scaler() argument
1944 sel->r.width = min_t(unsigned int, sel->r.width, in smiapp_set_compose_scaler()
[all …]
/linux-4.1.27/arch/arm/mach-imx/
Dclk-imx35.c23 unsigned char arm, ahb, sel; member
27 { .arm = 1, .ahb = 4, .sel = 0},
28 { .arm = 1, .ahb = 3, .sel = 1},
29 { .arm = 2, .ahb = 2, .sel = 0},
30 { .arm = 0, .ahb = 0, .sel = 0},
31 { .arm = 0, .ahb = 0, .sel = 0},
32 { .arm = 0, .ahb = 0, .sel = 0},
33 { .arm = 4, .ahb = 1, .sel = 0},
34 { .arm = 1, .ahb = 5, .sel = 0},
35 { .arm = 1, .ahb = 8, .sel = 0},
[all …]
/linux-4.1.27/arch/powerpc/perf/
Dmpc7450-pmu.c83 int pmc, sel; in mpc7450_threshold_use() local
86 sel = event & PM_PMCSEL_MSK; in mpc7450_threshold_use()
89 if (sel == 0x1e || sel == 0x1f) in mpc7450_threshold_use()
91 if (sel == 0x28 || sel == 0x2b) in mpc7450_threshold_use()
95 if (sel == 0x20) in mpc7450_threshold_use()
99 if (sel == 0xc || sel == 0xd) in mpc7450_threshold_use()
101 if (sel == 0x11) in mpc7450_threshold_use()
105 if (sel == 0x10) in mpc7450_threshold_use()
/linux-4.1.27/arch/mips/kvm/
Ddyntrans.c75 int32_t rt, rd, sel; in kvm_mips_trans_mfc0() local
81 sel = inst & 0x7; in kvm_mips_trans_mfc0()
83 if ((rd == MIPS_CP0_ERRCTL) && (sel == 0)) { in kvm_mips_trans_mfc0()
91 reg[rd][sel]) + offsetof(struct kvm_mips_commpage, in kvm_mips_trans_mfc0()
117 int32_t rt, rd, sel; in kvm_mips_trans_mtc0() local
123 sel = inst & 0x7; in kvm_mips_trans_mtc0()
128 reg[rd][sel]) + offsetof(struct kvm_mips_commpage, cop0); in kvm_mips_trans_mtc0()
Demulate.c982 int32_t rt, rd, copz, sel, co_bit, op; in kvm_mips_emulate_CP0() local
998 sel = inst & 0x7; in kvm_mips_emulate_CP0()
1032 cop0->stat[rd][sel]++; in kvm_mips_emulate_CP0()
1035 if ((rd == MIPS_CP0_COUNT) && (sel == 0)) { in kvm_mips_emulate_CP0()
1037 } else if ((rd == MIPS_CP0_ERRCTL) && (sel == 0)) { in kvm_mips_emulate_CP0()
1043 vcpu->arch.gprs[rt] = cop0->reg[rd][sel]; in kvm_mips_emulate_CP0()
1052 pc, rd, sel, rt, vcpu->arch.gprs[rt]); in kvm_mips_emulate_CP0()
1057 vcpu->arch.gprs[rt] = cop0->reg[rd][sel]; in kvm_mips_emulate_CP0()
1062 cop0->stat[rd][sel]++; in kvm_mips_emulate_CP0()
1073 if ((rd == MIPS_CP0_PRID) && (sel == 1)) { in kvm_mips_emulate_CP0()
[all …]
/linux-4.1.27/sound/soc/sh/rcar/
Dadg.c130 int idx, sel, div, step, ret; in rsnd_adg_set_convert_clk_gen2() local
144 for (sel = 0; sel < ARRAY_SIZE(sel_rate); sel++) { in rsnd_adg_set_convert_clk_gen2()
148 if (!sel_rate[sel]) in rsnd_adg_set_convert_clk_gen2()
152 diff = abs(src_rate - sel_rate[sel] / div); in rsnd_adg_set_convert_clk_gen2()
154 val = (sel << 8) | idx; in rsnd_adg_set_convert_clk_gen2()
156 en = 1 << (sel + 1); /* fixme */ in rsnd_adg_set_convert_clk_gen2()
206 int idx, sel, div, shift; in rsnd_adg_set_convert_clk_gen1() local
219 for (sel = 0; sel < ARRAY_SIZE(sel_rate); sel++) { in rsnd_adg_set_convert_clk_gen1()
223 if (src_rate == sel_rate[sel] / div) { in rsnd_adg_set_convert_clk_gen1()
224 val = (idx << 4) | sel; in rsnd_adg_set_convert_clk_gen1()
/linux-4.1.27/arch/mips/include/asm/
Dmipsmtregs.h284 #define mftc0(rt,sel) \ argument
292 " # mftc0 $1, $" #rt ", " #sel " \n" \
293 " .word 0x41000800 | (" #rt " << 16) | " #sel " \n" \
318 #define mftr(rt, u, sel) \ argument
323 " mftr %0, " #rt ", " #u ", " #sel " \n" \
342 #define mttc0(rd, sel, v) \ argument
349 " # mttc0 %0," #rd ", " #sel " \n" \
350 " .word 0x41810000 | (" #rd " << 11) | " #sel " \n" \
357 #define mttr(rd, u, sel, v) \ argument
360 "mttr %0," #rd ", " #u ", " #sel \
Dmipsregs.h903 #define __read_32bit_c0_register(source, sel) \ argument
905 if (sel == 0) \
912 "mfc0\t%0, " #source ", " #sel "\n\t" \
918 #define __read_64bit_c0_register(source, sel) \ argument
921 __res = __read_64bit_c0_split(source, sel); \
922 else if (sel == 0) \
931 "dmfc0\t%0, " #source ", " #sel "\n\t" \
937 #define __write_32bit_c0_register(register, sel, value) \ argument
939 if (sel == 0) \
946 "mtc0\t%z0, " #register ", " #sel "\n\t" \
[all …]
Dasmmacro.h205 .macro MFTR rt=0, rd=0, u=0, sel=0
206 .word 0x41000000 | (\rt << 16) | (\rd << 11) | (\u << 5) | (\sel)
209 .macro MTTR rt=0, rd=0, u=0, sel=0
210 .word 0x41800000 | (\rt << 16) | (\rd << 11) | (\u << 5) | (\sel)
/linux-4.1.27/drivers/media/i2c/
Dths7303.c88 u8 val, sel = 0; in ths7303_setval() local
96 sel = 0x3; /*1080p and SXGA/UXGA */ in ths7303_setval()
99 sel = 0x2; /*720p, 1080i and SVGA/XGA */ in ths7303_setval()
102 sel = 0x1; /* EDTV 480p/576p and VGA */ in ths7303_setval()
105 sel = 0x0; /* SDTV, S-Video, 480i/576i */ in ths7303_setval()
112 val = (sel << 6) | (sel << 3); in ths7303_setval()
119 val = (sel << 6) | (sel << 3); in ths7303_setval()
126 val = (sel << 6) | (sel << 3); in ths7303_setval()
Dmt9m032.c427 struct v4l2_subdev_selection *sel) in mt9m032_get_pad_selection() argument
431 if (sel->target != V4L2_SEL_TGT_CROP) in mt9m032_get_pad_selection()
435 sel->r = *__mt9m032_get_pad_crop(sensor, cfg, sel->which); in mt9m032_get_pad_selection()
443 struct v4l2_subdev_selection *sel) in mt9m032_set_pad_selection() argument
451 if (sel->target != V4L2_SEL_TGT_CROP) in mt9m032_set_pad_selection()
456 if (sensor->streaming && sel->which == V4L2_SUBDEV_FORMAT_ACTIVE) { in mt9m032_set_pad_selection()
464 rect.left = clamp(ALIGN(sel->r.left, 2), MT9M032_COLUMN_START_MIN, in mt9m032_set_pad_selection()
466 rect.top = clamp(ALIGN(sel->r.top, 2), MT9M032_ROW_START_MIN, in mt9m032_set_pad_selection()
468 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9m032_set_pad_selection()
470 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9m032_set_pad_selection()
[all …]
Dmt9t001.c406 struct v4l2_subdev_selection *sel) in mt9t001_get_selection() argument
410 if (sel->target != V4L2_SEL_TGT_CROP) in mt9t001_get_selection()
413 sel->r = *__mt9t001_get_pad_crop(mt9t001, cfg, sel->pad, sel->which); in mt9t001_get_selection()
419 struct v4l2_subdev_selection *sel) in mt9t001_set_selection() argument
426 if (sel->target != V4L2_SEL_TGT_CROP) in mt9t001_set_selection()
432 rect.left = clamp(ALIGN(sel->r.left, 2), in mt9t001_set_selection()
435 rect.top = clamp(ALIGN(sel->r.top, 2), in mt9t001_set_selection()
438 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9t001_set_selection()
441 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9t001_set_selection()
450 __crop = __mt9t001_get_pad_crop(mt9t001, cfg, sel->pad, sel->which); in mt9t001_set_selection()
[all …]
Dmt9v032.c560 struct v4l2_subdev_selection *sel) in mt9v032_get_selection() argument
564 if (sel->target != V4L2_SEL_TGT_CROP) in mt9v032_get_selection()
567 sel->r = *__mt9v032_get_pad_crop(mt9v032, cfg, sel->pad, sel->which); in mt9v032_get_selection()
573 struct v4l2_subdev_selection *sel) in mt9v032_set_selection() argument
580 if (sel->target != V4L2_SEL_TGT_CROP) in mt9v032_set_selection()
586 rect.left = clamp(ALIGN(sel->r.left + 1, 2) - 1, in mt9v032_set_selection()
589 rect.top = clamp(ALIGN(sel->r.top + 1, 2) - 1, in mt9v032_set_selection()
592 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9v032_set_selection()
595 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9v032_set_selection()
604 __crop = __mt9v032_get_pad_crop(mt9v032, cfg, sel->pad, sel->which); in mt9v032_set_selection()
[all …]
Ds5k5baf.c1375 struct v4l2_subdev_selection *sel) in s5k5baf_get_selection() argument
1380 rtype = s5k5baf_get_sel_rect(sel->pad, sel->target); in s5k5baf_get_selection()
1386 sel->r = s5k5baf_cis_rect; in s5k5baf_get_selection()
1392 if (sel->which == V4L2_SUBDEV_FORMAT_TRY) { in s5k5baf_get_selection()
1394 sel->r = *v4l2_subdev_get_try_compose(sd, cfg, sel->pad); in s5k5baf_get_selection()
1396 sel->r = *v4l2_subdev_get_try_crop(sd, cfg, sel->pad); in s5k5baf_get_selection()
1403 sel->r = state->crop_sink; in s5k5baf_get_selection()
1406 sel->r = state->compose; in s5k5baf_get_selection()
1409 sel->r = state->crop_source; in s5k5baf_get_selection()
1414 if (s5k5baf_is_bound_target(sel->target)) { in s5k5baf_get_selection()
[all …]
Dmt9p031.c586 struct v4l2_subdev_selection *sel) in mt9p031_get_selection() argument
590 if (sel->target != V4L2_SEL_TGT_CROP) in mt9p031_get_selection()
593 sel->r = *__mt9p031_get_pad_crop(mt9p031, cfg, sel->pad, sel->which); in mt9p031_get_selection()
599 struct v4l2_subdev_selection *sel) in mt9p031_set_selection() argument
606 if (sel->target != V4L2_SEL_TGT_CROP) in mt9p031_set_selection()
612 rect.left = clamp(ALIGN(sel->r.left, 2), MT9P031_COLUMN_START_MIN, in mt9p031_set_selection()
614 rect.top = clamp(ALIGN(sel->r.top, 2), MT9P031_ROW_START_MIN, in mt9p031_set_selection()
616 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9p031_set_selection()
619 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9p031_set_selection()
628 __crop = __mt9p031_get_pad_crop(mt9p031, cfg, sel->pad, sel->which); in mt9p031_set_selection()
[all …]
Ds5k6aa.c1166 struct v4l2_subdev_selection *sel) in s5k6aa_get_selection() argument
1171 if (sel->target != V4L2_SEL_TGT_CROP) in s5k6aa_get_selection()
1174 memset(sel->reserved, 0, sizeof(sel->reserved)); in s5k6aa_get_selection()
1177 rect = __s5k6aa_get_crop_rect(s5k6aa, cfg, sel->which); in s5k6aa_get_selection()
1178 sel->r = *rect; in s5k6aa_get_selection()
1189 struct v4l2_subdev_selection *sel) in s5k6aa_set_selection() argument
1196 if (sel->target != V4L2_SEL_TGT_CROP) in s5k6aa_set_selection()
1200 crop_r = __s5k6aa_get_crop_rect(s5k6aa, cfg, sel->which); in s5k6aa_set_selection()
1202 if (sel->which == V4L2_SUBDEV_FORMAT_ACTIVE) { in s5k6aa_set_selection()
1208 v4l_bound_align_image(&sel->r.width, mf->width, in s5k6aa_set_selection()
[all …]
/linux-4.1.27/net/sched/
Dcls_u32.c71 struct tc_u32_sel sel; member
97 const struct tc_u32_sel *sel, in u32_hash_fold() argument
100 unsigned int h = ntohl(key & sel->hmask) >> fshift; in u32_hash_fold()
117 int sel = 0; in u32_classify() local
124 n = rcu_dereference_bh(ht->ht[sel]); in u32_classify()
128 struct tc_u32_key *key = n->sel.keys; in u32_classify()
144 for (i = n->sel.nkeys; i > 0; i--, key++) { in u32_classify()
167 if (n->sel.flags & TC_U32_TERMINAL) { in u32_classify()
199 sel = 0; in u32_classify()
203 data = skb_header_pointer(skb, off + n->sel.hoff, 4, in u32_classify()
[all …]
/linux-4.1.27/drivers/media/platform/omap3isp/
Dispresizer.c1227 struct v4l2_subdev_selection *sel) in resizer_get_selection() argument
1234 if (sel->pad != RESZ_PAD_SINK) in resizer_get_selection()
1238 sel->which); in resizer_get_selection()
1240 sel->which); in resizer_get_selection()
1242 switch (sel->target) { in resizer_get_selection()
1244 sel->r.left = 0; in resizer_get_selection()
1245 sel->r.top = 0; in resizer_get_selection()
1246 sel->r.width = INT_MAX; in resizer_get_selection()
1247 sel->r.height = INT_MAX; in resizer_get_selection()
1249 resizer_try_crop(format_sink, format_source, &sel->r); in resizer_get_selection()
[all …]
Disppreview.c1937 struct v4l2_subdev_selection *sel) in preview_get_selection() argument
1942 if (sel->pad != PREV_PAD_SINK) in preview_get_selection()
1945 switch (sel->target) { in preview_get_selection()
1947 sel->r.left = 0; in preview_get_selection()
1948 sel->r.top = 0; in preview_get_selection()
1949 sel->r.width = INT_MAX; in preview_get_selection()
1950 sel->r.height = INT_MAX; in preview_get_selection()
1953 sel->which); in preview_get_selection()
1954 preview_try_crop(prev, format, &sel->r); in preview_get_selection()
1958 sel->r = *__preview_get_crop(prev, cfg, sel->which); in preview_get_selection()
[all …]
Dispccdc.c2227 struct v4l2_subdev_selection *sel) in ccdc_get_selection() argument
2232 if (sel->pad != CCDC_PAD_SOURCE_OF) in ccdc_get_selection()
2235 switch (sel->target) { in ccdc_get_selection()
2237 sel->r.left = 0; in ccdc_get_selection()
2238 sel->r.top = 0; in ccdc_get_selection()
2239 sel->r.width = INT_MAX; in ccdc_get_selection()
2240 sel->r.height = INT_MAX; in ccdc_get_selection()
2242 format = __ccdc_get_format(ccdc, cfg, CCDC_PAD_SINK, sel->which); in ccdc_get_selection()
2243 ccdc_try_crop(ccdc, format, &sel->r); in ccdc_get_selection()
2247 sel->r = *__ccdc_get_crop(ccdc, cfg, sel->which); in ccdc_get_selection()
[all …]
/linux-4.1.27/net/xfrm/
Dxfrm_hash.h139 static inline unsigned int __sel_hash(const struct xfrm_selector *sel, in __sel_hash() argument
143 const xfrm_address_t *daddr = &sel->daddr; in __sel_hash()
144 const xfrm_address_t *saddr = &sel->saddr; in __sel_hash()
149 if (sel->prefixlen_d < dbits || in __sel_hash()
150 sel->prefixlen_s < sbits) in __sel_hash()
157 if (sel->prefixlen_d < dbits || in __sel_hash()
158 sel->prefixlen_s < sbits) in __sel_hash()
Dxfrm_policy.c63 __xfrm4_selector_match(const struct xfrm_selector *sel, const struct flowi *fl) in __xfrm4_selector_match() argument
67 return addr4_match(fl4->daddr, sel->daddr.a4, sel->prefixlen_d) && in __xfrm4_selector_match()
68 addr4_match(fl4->saddr, sel->saddr.a4, sel->prefixlen_s) && in __xfrm4_selector_match()
69 !((xfrm_flowi_dport(fl, &fl4->uli) ^ sel->dport) & sel->dport_mask) && in __xfrm4_selector_match()
70 !((xfrm_flowi_sport(fl, &fl4->uli) ^ sel->sport) & sel->sport_mask) && in __xfrm4_selector_match()
71 (fl4->flowi4_proto == sel->proto || !sel->proto) && in __xfrm4_selector_match()
72 (fl4->flowi4_oif == sel->ifindex || !sel->ifindex); in __xfrm4_selector_match()
76 __xfrm6_selector_match(const struct xfrm_selector *sel, const struct flowi *fl) in __xfrm6_selector_match() argument
80 return addr_match(&fl6->daddr, &sel->daddr, sel->prefixlen_d) && in __xfrm6_selector_match()
81 addr_match(&fl6->saddr, &sel->saddr, sel->prefixlen_s) && in __xfrm6_selector_match()
[all …]
Dxfrm_state.c641 afinfo->init_tempsel(&x->sel, fl); in xfrm_init_tempstate()
743 if ((x->sel.family && in xfrm_state_look_at()
744 !xfrm_selector_match(&x->sel, fl, x->sel.family)) || in xfrm_state_look_at()
757 if (xfrm_selector_match(&x->sel, fl, x->sel.family) && in xfrm_state_look_at()
1037 x->sel.daddr.a4 = daddr->a4; in __find_acq_core()
1038 x->sel.saddr.a4 = saddr->a4; in __find_acq_core()
1039 x->sel.prefixlen_d = 32; in __find_acq_core()
1040 x->sel.prefixlen_s = 32; in __find_acq_core()
1046 x->sel.daddr.in6 = daddr->in6; in __find_acq_core()
1047 x->sel.saddr.in6 = saddr->in6; in __find_acq_core()
[all …]
Dxfrm_user.c442 memcpy(&x->sel, &p->sel, sizeof(x->sel)); in copy_from_user_state()
452 if (!x->sel.family && !(p->flags & XFRM_STATE_AF_UNSPEC)) in copy_from_user_state()
453 x->sel.family = p->family; in copy_from_user_state()
706 memcpy(&p->sel, &x->sel, sizeof(p->sel)); in copy_to_user_state()
1286 switch (p->sel.family) { in verify_newpolicy_info()
1424 memcpy(&xp->selector, &p->sel, sizeof(xp->selector)); in copy_from_user_policy()
1428 xp->family = p->sel.family; in copy_from_user_policy()
1435 memcpy(&p->sel, &xp->selector, sizeof(p->sel)); in copy_to_user_policy()
1440 p->sel.family = xp->family; in copy_to_user_policy()
1724 xp = xfrm_policy_bysel_ctx(net, mark, type, p->dir, &p->sel, in xfrm_get_policy()
[all …]
Dxfrm_input.c171 if (x->sel.family == AF_UNSPEC) { in xfrm_prepare_input()
331 if (x->sel.family == AF_UNSPEC) { in xfrm_input()
Dxfrm_output.c207 if (x->sel.family == AF_UNSPEC) in xfrm_inner_extract_output()
/linux-4.1.27/drivers/tty/vt/
Dselection.c159 int set_selection(const struct tiocl_selection __user *sel, struct tty_struct *tty) in set_selection() argument
172 if (!access_ok(VERIFY_READ, sel, sizeof(*sel))) in set_selection()
174 __get_user(xs, &sel->xs); in set_selection()
175 __get_user(ys, &sel->ys); in set_selection()
176 __get_user(xe, &sel->xe); in set_selection()
177 __get_user(ye, &sel->ye); in set_selection()
178 __get_user(sel_mode, &sel->sel_mode); in set_selection()
/linux-4.1.27/drivers/media/platform/s3c-camif/
Dcamif-capture.c1000 struct v4l2_selection *sel) in s3c_camif_g_selection() argument
1004 if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) in s3c_camif_g_selection()
1007 switch (sel->target) { in s3c_camif_g_selection()
1010 sel->r.left = 0; in s3c_camif_g_selection()
1011 sel->r.top = 0; in s3c_camif_g_selection()
1012 sel->r.width = vp->out_frame.f_width; in s3c_camif_g_selection()
1013 sel->r.height = vp->out_frame.f_height; in s3c_camif_g_selection()
1017 sel->r = vp->out_frame.rect; in s3c_camif_g_selection()
1037 struct v4l2_selection *sel) in s3c_camif_s_selection() argument
1041 struct v4l2_rect rect = sel->r; in s3c_camif_s_selection()
[all …]
/linux-4.1.27/drivers/media/platform/exynos4-is/
Dfimc-lite.c910 struct v4l2_selection *sel) in fimc_lite_g_selection() argument
915 if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) in fimc_lite_g_selection()
918 switch (sel->target) { in fimc_lite_g_selection()
921 sel->r.left = 0; in fimc_lite_g_selection()
922 sel->r.top = 0; in fimc_lite_g_selection()
923 sel->r.width = f->f_width; in fimc_lite_g_selection()
924 sel->r.height = f->f_height; in fimc_lite_g_selection()
928 sel->r = f->rect; in fimc_lite_g_selection()
936 struct v4l2_selection *sel) in fimc_lite_s_selection() argument
940 struct v4l2_rect rect = sel->r; in fimc_lite_s_selection()
[all …]
Dfimc-capture.c1606 struct v4l2_subdev_selection *sel) in fimc_subdev_get_selection() argument
1611 struct v4l2_rect *r = &sel->r; in fimc_subdev_get_selection()
1614 if (sel->pad == FIMC_SD_PAD_SOURCE) in fimc_subdev_get_selection()
1619 switch (sel->target) { in fimc_subdev_get_selection()
1631 try_sel = v4l2_subdev_get_try_crop(sd, cfg, sel->pad); in fimc_subdev_get_selection()
1634 try_sel = v4l2_subdev_get_try_compose(sd, cfg, sel->pad); in fimc_subdev_get_selection()
1642 if (sel->which == V4L2_SUBDEV_FORMAT_TRY) { in fimc_subdev_get_selection()
1643 sel->r = *try_sel; in fimc_subdev_get_selection()
1652 sel->pad, r->left, r->top, r->width, r->height, in fimc_subdev_get_selection()
1661 struct v4l2_subdev_selection *sel) in fimc_subdev_set_selection() argument
[all …]
/linux-4.1.27/drivers/media/platform/ti-vpe/
Dcsc.c126 int sel = 0; in csc_set_coeff() local
137 sel = 1; in csc_set_coeff()
143 sel = 3; in csc_set_coeff()
150 sd_hd_coeffs = &colorspace_coeffs[sel]; in csc_set_coeff()
Dvpe.c1717 struct v4l2_selection sel = *s; in vpe_s_selection() local
1720 ret = __vpe_try_selection(ctx, &sel); in vpe_s_selection()
1724 q_data = get_q_data(ctx, sel.type); in vpe_s_selection()
1728 if ((q_data->c_rect.left == sel.r.left) && in vpe_s_selection()
1729 (q_data->c_rect.top == sel.r.top) && in vpe_s_selection()
1730 (q_data->c_rect.width == sel.r.width) && in vpe_s_selection()
1731 (q_data->c_rect.height == sel.r.height)) { in vpe_s_selection()
1737 q_data->c_rect = sel.r; in vpe_s_selection()
/linux-4.1.27/scripts/
Dget_maintainer.pl1490 my $sel = "";
1491 $sel = "*" if ($selected{$count});
1498 printf STDERR "%1s %2d %-65s", $sel, $count + 1, $email;
1563 my $sel = substr($nr, 0, 1);
1568 if ($sel eq "y") {
1576 } elsif ($sel eq "*" || $sel eq '^') {
1578 $toggle = 1 if ($sel eq '*');
1582 } elsif ($sel eq "0") {
1586 } elsif ($sel eq "t") {
1608 } elsif ($sel eq "a") {
[all …]
/linux-4.1.27/arch/alpha/kernel/
Dtime.c211 unsigned char x, sel = 0; in common_init_rtc() local
219 sel = RTC_REF_CLCK_32KHZ + 6; in common_init_rtc()
222 sel = RTC_REF_CLCK_32KHZ + __builtin_ffs(32768 / CONFIG_HZ); in common_init_rtc()
226 if (sel) { in common_init_rtc()
228 CONFIG_HZ, sel); in common_init_rtc()
229 CMOS_WRITE(sel, RTC_FREQ_SELECT); in common_init_rtc()
/linux-4.1.27/drivers/staging/media/davinci_vpfe/
Ddm365_isif.c1548 struct v4l2_subdev_selection *sel) in isif_pad_set_selection() argument
1554 if (sel->pad != ISIF_PAD_SINK || sel->target != V4L2_SEL_TGT_CROP) in isif_pad_set_selection()
1557 format = __isif_get_format(vpfe_isif, cfg, sel->pad, sel->which); in isif_pad_set_selection()
1562 if (sel->r.top < 0 || sel->r.left < 0 || in isif_pad_set_selection()
1563 (sel->r.left + sel->r.width > in isif_pad_set_selection()
1565 (sel->r.top + sel->r.height > in isif_pad_set_selection()
1567 sel->r.left = 0; in isif_pad_set_selection()
1568 sel->r.top = 0; in isif_pad_set_selection()
1569 sel->r.width = format->width; in isif_pad_set_selection()
1570 sel->r.height = format->height; in isif_pad_set_selection()
[all …]
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb/
Despi.c317 u32 sel; in t1_espi_get_mon() local
322 sel = V_MONITORED_PORT_NUM((addr & 0x3c) >> 2); in t1_espi_get_mon()
329 if ((sel != (espi->misc_ctrl & MON_MASK))) { in t1_espi_get_mon()
330 writel(((espi->misc_ctrl & ~MON_MASK) | sel), in t1_espi_get_mon()
332 sel = readl(adapter->regs + A_ESPI_SCH_TOKEN3); in t1_espi_get_mon()
335 sel = readl(adapter->regs + A_ESPI_SCH_TOKEN3); in t1_espi_get_mon()
337 return sel; in t1_espi_get_mon()
/linux-4.1.27/drivers/media/pci/ivtv/
Divtv-ioctl.c844 struct v4l2_selection *sel) in ivtv_s_selection() argument
852 if (sel->type != V4L2_BUF_TYPE_VIDEO_OUTPUT || in ivtv_s_selection()
856 if (sel->target != V4L2_SEL_TGT_COMPOSE) in ivtv_s_selection()
860 if (sel->type != V4L2_BUF_TYPE_VIDEO_OUTPUT || in ivtv_s_selection()
869 sel->r.width = clamp(sel->r.width, 16U, r.width); in ivtv_s_selection()
870 sel->r.height = clamp(sel->r.height, 16U, r.height); in ivtv_s_selection()
871 sel->r.left = clamp_t(unsigned, sel->r.left, 0, r.width - sel->r.width); in ivtv_s_selection()
872 sel->r.top = clamp_t(unsigned, sel->r.top, 0, r.height - sel->r.height); in ivtv_s_selection()
875 yi->main_rect = sel->r; in ivtv_s_selection()
879 sel->r.width, sel->r.height, sel->r.left, sel->r.top)) { in ivtv_s_selection()
[all …]
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/
Dphy_shim.c206 int len, u32 sel) in wlapi_copyfrom_objmem() argument
208 brcms_b_copyfrom_objmem(physhim->wlc_hw, offset, buf, len, sel); in wlapi_copyfrom_objmem()
213 int l, u32 sel) in wlapi_copyto_objmem() argument
215 brcms_b_copyto_objmem(physhim->wlc_hw, offset, buf, l, sel); in wlapi_copyto_objmem()
Dantsel.h23 void brcms_c_antsel_antcfg_get(struct antsel_info *asi, bool usedef, bool sel,
Dantsel.c261 brcms_c_antsel_antcfg_get(struct antsel_info *asi, bool usedef, bool sel, in brcms_c_antsel_antcfg_get() argument
274 if (!sel) { in brcms_c_antsel_antcfg_get()
Dphy_shim.h165 int, u32 sel);
Dmain.h657 const void *buf, int len, u32 sel);
659 void *buf, int len, u32 sel);
Dmain.c2918 brcms_b_read_objmem(struct brcms_hardware *wlc_hw, uint offset, u32 sel) in brcms_b_read_objmem() argument
2923 bcma_write32(core, D11REGOFFS(objaddr), sel | (offset >> 2)); in brcms_b_read_objmem()
2933 u32 sel) in brcms_b_write_objmem() argument
2938 bcma_write32(core, D11REGOFFS(objaddr), sel | (offset >> 2)); in brcms_b_write_objmem()
2972 const void *buf, int len, u32 sel) in brcms_b_copyto_objmem() argument
2983 brcms_b_write_objmem(wlc_hw, offset + i, v, sel); in brcms_b_copyto_objmem()
2995 int len, u32 sel) in brcms_b_copyfrom_objmem() argument
3005 v = brcms_b_read_objmem(wlc_hw, offset + i, sel); in brcms_b_copyfrom_objmem()
/linux-4.1.27/sound/soc/codecs/
Dmax98088.c640 unsigned int sel = ucontrol->value.integer.value[0]; in max98088_mic1pre_set() local
642 max98088->mic1pre = sel; in max98088_mic1pre_set()
644 (1+sel)<<M98088_MICPRE_SHIFT); in max98088_mic1pre_set()
664 unsigned int sel = ucontrol->value.integer.value[0]; in max98088_mic2pre_set() local
666 max98088->mic2pre = sel; in max98088_mic2pre_set()
668 (1+sel)<<M98088_MICPRE_SHIFT); in max98088_mic2pre_set()
1660 int best, best_val, save, i, sel, fs; in max98088_setup_eq1() local
1670 sel = cdata->eq_sel; in max98088_setup_eq1()
1675 if (strcmp(pdata->eq_cfg[i].name, max98088->eq_texts[sel]) == 0 && in max98088_setup_eq1()
1690 coef_set = &pdata->eq_cfg[sel]; in max98088_setup_eq1()
[all …]
Dmax98095.c621 unsigned int sel = ucontrol->value.integer.value[0]; in max98095_mic1pre_set() local
623 max98095->mic1pre = sel; in max98095_mic1pre_set()
625 (1+sel)<<M98095_MICPRE_SHIFT); in max98095_mic1pre_set()
645 unsigned int sel = ucontrol->value.integer.value[0]; in max98095_mic2pre_set() local
647 max98095->mic2pre = sel; in max98095_mic2pre_set()
649 (1+sel)<<M98095_MICPRE_SHIFT); in max98095_mic2pre_set()
1767 unsigned int sel = ucontrol->value.integer.value[0]; in max98095_put_eq_enum() local
1778 if (sel >= pdata->eq_cfgcnt) in max98095_put_eq_enum()
1782 cdata->eq_sel = sel; in max98095_put_eq_enum()
1789 if (strcmp(pdata->eq_cfg[i].name, max98095->eq_texts[sel]) == 0 && in max98095_put_eq_enum()
[all …]
Dwm8580.c724 int ret, sel, sel_mask, sel_shift; in wm8580_set_sysclk() local
746 sel = 0 << sel_shift; in wm8580_set_sysclk()
749 sel = 1 << sel_shift; in wm8580_set_sysclk()
752 sel = 2 << sel_shift; in wm8580_set_sysclk()
755 sel = 3 << sel_shift; in wm8580_set_sysclk()
765 ret = snd_soc_update_bits(codec, WM8580_CLKSEL, sel_mask, sel); in wm8580_set_sysclk()
Dmax98090.c475 unsigned int sel = ucontrol->value.integer.value[0]; in max98090_put_enab_tlv() local
495 *select = sel; in max98090_put_enab_tlv()
499 sel = sel + 1; in max98090_put_enab_tlv()
502 sel = val; in max98090_put_enab_tlv()
507 sel << mc->shift); in max98090_put_enab_tlv()
Dda732x.c337 unsigned int sel = ucontrol->value.integer.value[0]; in da732x_hpf_set() local
340 switch (sel) { in da732x_hpf_set()
/linux-4.1.27/Documentation/devicetree/bindings/i2c/
Di2c-cbus-gpio.txt5 - gpios: clk, dat, sel
18 &gpio 64 0 /* sel */
/linux-4.1.27/net/key/
Daf_key.c762 if (!xfrm_addr_equal(&x->sel.saddr, &x->props.saddr, x->props.family)) in __pfkey_xfrm_state2msg()
912 if (!xfrm_addr_equal(&x->sel.saddr, &x->props.saddr, in __pfkey_xfrm_state2msg()
921 pfkey_proto_from_xfrm(x->sel.proto); in __pfkey_xfrm_state2msg()
922 addr->sadb_address_prefixlen = x->sel.prefixlen_s; in __pfkey_xfrm_state2msg()
925 pfkey_sockaddr_fill(&x->sel.saddr, x->sel.sport, in __pfkey_xfrm_state2msg()
1217 x->sel.family = pfkey_sadb_addr2xfrm_addr(addr, &x->sel.saddr); in pfkey_msg2xfrm_state()
1218 x->sel.prefixlen_s = addr->sadb_address_prefixlen; in pfkey_msg2xfrm_state()
1221 if (!x->sel.family) in pfkey_msg2xfrm_state()
1222 x->sel.family = x->props.family; in pfkey_msg2xfrm_state()
2310 struct xfrm_selector sel; in pfkey_spddelete() local
[all …]
/linux-4.1.27/drivers/clk/tegra/
Dclk-pll.c397 struct tegra_clk_pll_freq_table *sel; in _get_table_rate() local
399 for (sel = pll->params->freq_table; sel->input_rate != 0; sel++) in _get_table_rate()
400 if (sel->input_rate == parent_rate && in _get_table_rate()
401 sel->output_rate == rate) in _get_table_rate()
404 if (sel->input_rate == 0) in _get_table_rate()
407 cfg->input_rate = sel->input_rate; in _get_table_rate()
408 cfg->output_rate = sel->output_rate; in _get_table_rate()
409 cfg->m = sel->m; in _get_table_rate()
410 cfg->n = sel->n; in _get_table_rate()
411 cfg->p = sel->p; in _get_table_rate()
[all …]
/linux-4.1.27/arch/arm/plat-orion/
Dmpp.c44 unsigned int sel = MPP_SEL(*mpp_list); in orion_mpp_conf() local
61 mpp_ctrl[num / 8] |= sel << shift; in orion_mpp_conf()
/linux-4.1.27/drivers/staging/iio/light/
Disl29028.c87 int sel; in isl29028_set_proxim_sampling() local
90 for (sel = 0; sel < ARRAY_SIZE(prox_period); ++sel) { in isl29028_set_proxim_sampling()
91 if (period >= prox_period[sel]) in isl29028_set_proxim_sampling()
95 CONFIGURE_PROX_SLP_MASK, sel << CONFIGURE_PROX_SLP_SH); in isl29028_set_proxim_sampling()
/linux-4.1.27/include/uapi/linux/
Dxfrm.h360 struct xfrm_selector sel; member
405 struct xfrm_selector sel; member
422 struct xfrm_selector sel; member
430 struct xfrm_selector sel; member
454 struct xfrm_selector sel; member
/linux-4.1.27/drivers/ide/
Dicside.c72 unsigned int sel; member
333 writeb(state->sel | hwif->channel, state->ioc_base); in icside_dma_setup()
468 unsigned int sel = 0; in icside_register_v6() local
491 sel = 1 << 5; in icside_register_v6()
494 writeb(sel, ioc_base); in icside_register_v6()
500 state->sel = sel; in icside_register_v6()
Dit821x.c174 int clock, altclock, sel = 0; in it821x_clock_strategy() local
204 sel = 1; in it821x_clock_strategy()
209 v |= sel << (1 + hwif->channel); in it821x_clock_strategy()
/linux-4.1.27/arch/x86/boot/
Dvideo.c203 unsigned int sel; in mode_menu() local
224 sel = get_entry(); in mode_menu()
225 if (sel != SCAN) in mode_menu()
226 return sel; in mode_menu()
/linux-4.1.27/drivers/input/serio/
Dps2mult.c30 unsigned char sel; member
71 serio_write(mx_serio, port->sel); in ps2mult_select_port()
73 dev_dbg(&mx_serio->dev, "switched to sel %02x\n", port->sel); in ps2mult_select_port()
183 psm->ports[i].sel = ps2mult_controls[i]; in ps2mult_connect()
/linux-4.1.27/sound/pci/ice1712/
Dmaya44.c369 int sel; in maya_rec_src_get() local
372 sel = 1; in maya_rec_src_get()
374 sel = 0; in maya_rec_src_get()
375 ucontrol->value.enumerated.item[0] = sel; in maya_rec_src_get()
383 int sel = ucontrol->value.enumerated.item[0]; in maya_rec_src_put() local
388 sel ? (1 << GPIO_MIC_RELAY) : 0); in maya_rec_src_put()
389 wm8776_select_input(chip, 0, sel ? MAYA_MIC_IN : MAYA_LINE_IN); in maya_rec_src_put()
Dse.c260 unsigned int sel) in se200pci_WM8776_set_input_selector() argument
266 if (sel > 4) in se200pci_WM8776_set_input_selector()
267 sel = 4; in se200pci_WM8776_set_input_selector()
268 se200pci_WM8776_write(ice, 0x15, vals[sel]); in se200pci_WM8776_set_input_selector()
/linux-4.1.27/drivers/staging/rts5208/
Drtsx_card.c715 u8 sel, div, mcu_cnt; in switch_normal_clock() local
724 sel = SSC_80; in switch_normal_clock()
731 sel = SSC_120; in switch_normal_clock()
738 sel = SSC_80; in switch_normal_clock()
745 sel = SSC_100; in switch_normal_clock()
752 sel = SSC_120; in switch_normal_clock()
759 sel = SSC_80; in switch_normal_clock()
766 sel = SSC_100; in switch_normal_clock()
773 sel = SSC_120; in switch_normal_clock()
780 sel = SSC_150; in switch_normal_clock()
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/input/touchscreen/
Dstmpe.txt12 - st,ref-sel: ADC reference source (0 -> internal reference, 1 -> external
36 st,ref-sel = <0>;
/linux-4.1.27/Documentation/devicetree/bindings/input/
Dti,drv260x.txt16 - library-sel - These are ROM based waveforms pre-programmed into the IC.
44 library-sel = <DRV260X_LIB_LRA>;
/linux-4.1.27/drivers/ata/
Dpata_icside.c398 unsigned int sel = 0; in pata_icside_register_v6() local
414 sel = 1 << 5; in pata_icside_register_v6()
417 writeb(sel, ioc_base); in pata_icside_register_v6()
421 state->port[0].port_sel = sel; in pata_icside_register_v6()
422 state->port[1].port_sel = sel | 1; in pata_icside_register_v6()
Dpata_it821x.c194 int sel = 0; in it821x_clock_strategy() local
221 sel = 1; in it821x_clock_strategy()
225 v |= sel << (1 + ap->port_no); in it821x_clock_strategy()
Dlibata.h88 extern int ata_down_xfermask_limit(struct ata_device *dev, unsigned int sel);
Dlibata-eh.c2067 int sel; in ata_eh_speed_down() local
2070 sel = dma_dnxfer_sel[dev->spdn_cnt]; in ata_eh_speed_down()
2072 sel = pio_dnxfer_sel[dev->spdn_cnt]; in ata_eh_speed_down()
2076 if (ata_down_xfermask_limit(dev, sel) == 0) { in ata_eh_speed_down()
Dlibata-core.c3130 int ata_down_xfermask_limit(struct ata_device *dev, unsigned int sel) in ata_down_xfermask_limit() argument
3137 quiet = !!(sel & ATA_DNXFER_QUIET); in ata_down_xfermask_limit()
3138 sel &= ~ATA_DNXFER_QUIET; in ata_down_xfermask_limit()
3145 switch (sel) { in ata_down_xfermask_limit()
/linux-4.1.27/drivers/scsi/ufs/
Dufshci.h209 #define UIC_ARG_MIB_SEL(attr, sel) ((((attr) & 0xFFFF) << 16) |\ argument
210 ((sel) & 0xFFFF))
/linux-4.1.27/drivers/scsi/fcoe/
Dfcoe_ctlr.c328 struct fcoe_fcf *sel; in fcoe_ctlr_announce() local
340 sel = fip->sel_fcf; in fcoe_ctlr_announce()
342 if (sel && ether_addr_equal(sel->fcf_mac, fip->dest_addr)) in fcoe_ctlr_announce()
350 if (sel) { in fcoe_ctlr_announce()
353 fip->lp->host->host_no, sel->fcf_mac); in fcoe_ctlr_announce()
354 memcpy(fip->dest_addr, sel->fcoe_mac, ETH_ALEN); in fcoe_ctlr_announce()
1146 struct fcoe_fcf *sel; in fcoe_ctlr_recv_els() local
1185 sel = fip->sel_fcf; in fcoe_ctlr_recv_els()
1207 if ((desc_cnt == 3) && (sel)) in fcoe_ctlr_recv_els()
1208 memcpy(sel->fcoe_mac, in fcoe_ctlr_recv_els()
[all …]
/linux-4.1.27/sound/soc/au1x/
Dpsc-i2s.c298 unsigned long sel; in au1xpsc_i2s_drvprobe() local
335 sel = __raw_readl(PSC_SEL(wd)) & PSC_SEL_CLK_MASK; in au1xpsc_i2s_drvprobe()
338 __raw_writel(PSC_SEL_PS_I2SMODE | sel, PSC_SEL(wd)); in au1xpsc_i2s_drvprobe()
Dpsc-ac97.c371 unsigned long sel; in au1xpsc_ac97_drvprobe() local
401 sel = __raw_readl(PSC_SEL(wd)) & PSC_SEL_CLK_MASK; in au1xpsc_ac97_drvprobe()
406 __raw_writel(PSC_SEL_PS_AC97MODE | sel, PSC_SEL(wd)); in au1xpsc_ac97_drvprobe()
/linux-4.1.27/Documentation/devicetree/bindings/leds/
Dleds-lp55xx.txt21 - pwr-sel: LP8501 specific property. Power selection for output channels.
166 9 channels are defined. The 'pwr-sel' is LP8501 specific property.
173 pwr-sel = /bits/ 8 <3>; /* D1~9 connected to VOUT */
/linux-4.1.27/drivers/iio/adc/
Dtwl4030-madc.c180 .sel = TWL4030_MADC_RTSELECT_LSB,
185 .sel = TWL4030_MADC_SW1SELECT_LSB,
191 .sel = TWL4030_MADC_SW2SELECT_LSB,
585 ret = twl_i2c_write_u16(TWL4030_MODULE_MADC, req->channels, method->sel); in twl4030_madc_conversion()
588 "unable to write sel register 0x%X\n", method->sel); in twl4030_madc_conversion()
/linux-4.1.27/drivers/media/platform/vivid/
Dvivid-vid-out.c619 struct v4l2_selection *sel) in vivid_vid_out_g_selection() argument
625 if (sel->type != V4L2_BUF_TYPE_VIDEO_OUTPUT) in vivid_vid_out_g_selection()
628 sel->r.left = sel->r.top = 0; in vivid_vid_out_g_selection()
629 switch (sel->target) { in vivid_vid_out_g_selection()
633 sel->r = dev->crop_out; in vivid_vid_out_g_selection()
638 sel->r = dev->fmt_out_rect; in vivid_vid_out_g_selection()
643 sel->r = vivid_max_rect; in vivid_vid_out_g_selection()
648 sel->r = dev->compose_out; in vivid_vid_out_g_selection()
654 sel->r = dev->sink_rect; in vivid_vid_out_g_selection()
Dvivid-vid-out.h36 int vivid_vid_out_g_selection(struct file *file, void *priv, struct v4l2_selection *sel);
Dvivid-vid-cap.c813 struct v4l2_selection *sel) in vivid_vid_cap_g_selection() argument
819 if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) in vivid_vid_cap_g_selection()
824 sel->r.left = sel->r.top = 0; in vivid_vid_cap_g_selection()
825 switch (sel->target) { in vivid_vid_cap_g_selection()
829 sel->r = dev->crop_cap; in vivid_vid_cap_g_selection()
835 sel->r = dev->src_rect; in vivid_vid_cap_g_selection()
840 sel->r = vivid_max_rect; in vivid_vid_cap_g_selection()
845 sel->r = dev->compose_cap; in vivid_vid_cap_g_selection()
850 sel->r = dev->fmt_cap_rect; in vivid_vid_cap_g_selection()
Dvivid-vid-cap.h41 int vivid_vid_cap_g_selection(struct file *file, void *priv, struct v4l2_selection *sel);
Dvivid-core.c356 struct v4l2_selection *sel) in vidioc_g_selection() argument
361 return vivid_vid_cap_g_selection(file, fh, sel); in vidioc_g_selection()
362 return vivid_vid_out_g_selection(file, fh, sel); in vidioc_g_selection()
366 struct v4l2_selection *sel) in vidioc_s_selection() argument
371 return vivid_vid_cap_s_selection(file, fh, sel); in vidioc_s_selection()
372 return vivid_vid_out_s_selection(file, fh, sel); in vidioc_s_selection()
/linux-4.1.27/drivers/net/ethernet/ti/
DMakefile13 obj-$(CONFIG_TI_CPSW_PHY_SEL) += cpsw-phy-sel.o
DKconfig53 bool "TI CPSW Switch Phy sel Support"
/linux-4.1.27/arch/x86/oprofile/
Dop_model_p4.c353 #define ESCR_SET_EVENT_SELECT(escr, sel) ((escr) |= (((sel) & 0x3f) << 25)) argument
359 #define CCCR_SET_ESCR_SELECT(cccr, sel) ((cccr) |= (((sel) & 0x07) << 13)) argument
/linux-4.1.27/include/linux/
Dselection.h19 extern int set_selection(const struct tiocl_selection __user *sel, struct tty_struct *tty);
Dusb.h460 unsigned int sel; member
/linux-4.1.27/Documentation/sound/oss/
DWaveArtist32 08 | 1 | 0 0 1 1 | mono mixer gain |right ADC mux sel|left ADC mux sel |
/linux-4.1.27/arch/arm/boot/dts/
Dtegra124-jetson-tk1-emc.dtsi101 nvidia,emc-sel-dpd-ctrl = <0x00040128>;
269 nvidia,emc-sel-dpd-ctrl = <0x00040128>;
437 nvidia,emc-sel-dpd-ctrl = <0x00040128>;
605 nvidia,emc-sel-dpd-ctrl = <0x00040128>;
773 nvidia,emc-sel-dpd-ctrl = <0x00040128>;
941 nvidia,emc-sel-dpd-ctrl = <0x00040128>;
1109 nvidia,emc-sel-dpd-ctrl = <0x00040128>;
1277 nvidia,emc-sel-dpd-ctrl = <0x00040008>;
1445 nvidia,emc-sel-dpd-ctrl = <0x00040008>;
1613 nvidia,emc-sel-dpd-ctrl = <0x00040008>;
[all …]
Dtegra124-nyan-blaze-emc.dtsi90 nvidia,emc-sel-dpd-ctrl = <0x00040128>;
258 nvidia,emc-sel-dpd-ctrl = <0x00040128>;
426 nvidia,emc-sel-dpd-ctrl = <0x00040128>;
594 nvidia,emc-sel-dpd-ctrl = <0x00040128>;
762 nvidia,emc-sel-dpd-ctrl = <0x00040128>;
930 nvidia,emc-sel-dpd-ctrl = <0x00040008>;
1098 nvidia,emc-sel-dpd-ctrl = <0x00040128>;
1266 nvidia,emc-sel-dpd-ctrl = <0x00040008>;
1434 nvidia,emc-sel-dpd-ctrl = <0x00040008>;
1602 nvidia,emc-sel-dpd-ctrl = <0x00040000>;
Dtegra124-nyan-big-emc.dtsi90 nvidia,emc-sel-dpd-ctrl = <0x00040128>;
258 nvidia,emc-sel-dpd-ctrl = <0x00040128>;
426 nvidia,emc-sel-dpd-ctrl = <0x00040128>;
594 nvidia,emc-sel-dpd-ctrl = <0x00040128>;
762 nvidia,emc-sel-dpd-ctrl = <0x00040128>;
930 nvidia,emc-sel-dpd-ctrl = <0x00040008>;
1098 nvidia,emc-sel-dpd-ctrl = <0x00040128>;
1266 nvidia,emc-sel-dpd-ctrl = <0x00040008>;
1434 nvidia,emc-sel-dpd-ctrl = <0x00040008>;
1602 nvidia,emc-sel-dpd-ctrl = <0x00040000>;
Domap2420-n8x0-common.dtsi14 &gpio3 0 0 /* gpio64 sel */
Dimx53-m53.dtsi70 st,ref-sel = <0>;
Dam33xx.dtsi753 phy_sel: cpsw-phy-sel@44e10650 {
754 compatible = "ti,am3352-cpsw-phy-sel";
756 reg-names = "gmii-sel";
Dspear320-hmi.dts263 ts,ref-sel = <0>;
Dam4372.dtsi559 phy_sel: cpsw-phy-sel@44e10650 {
560 compatible = "ti,am43xx-cpsw-phy-sel";
562 reg-names = "gmii-sel";
Dtegra124-nyan-big.dts462 nvidia,rcv-sel = <TEGRA_PIN_DISABLE>;
846 nvidia,rcv-sel = <TEGRA_PIN_DISABLE>;
854 nvidia,rcv-sel = <TEGRA_PIN_DISABLE>;
1320 nvidia,rcv-sel = <TEGRA_PIN_DISABLE>;
Dtegra124-nyan-blaze.dts458 nvidia,rcv-sel = <TEGRA_PIN_DISABLE>;
842 nvidia,rcv-sel = <TEGRA_PIN_DISABLE>;
850 nvidia,rcv-sel = <TEGRA_PIN_DISABLE>;
1316 nvidia,rcv-sel = <TEGRA_PIN_DISABLE>;
Dspear1310-evb.dts378 ts,ref-sel = <0>;
Dspear1340-evb.dts489 ts,ref-sel = <0>;
Dtegra124-jetson-tk1.dts495 nvidia,rcv-sel = <TEGRA_PIN_DISABLE>;
875 nvidia,rcv-sel = <TEGRA_PIN_DISABLE>;
883 nvidia,rcv-sel = <TEGRA_PIN_DISABLE>;
1343 nvidia,rcv-sel = <TEGRA_PIN_DISABLE>;
Ddra7.dtsi1456 phy_sel: cpsw-phy-sel@4a002554 {
1457 compatible = "ti,dra7xx-cpsw-phy-sel";
1459 reg-names = "gmii-sel";
Dtegra30-apalis.dtsi562 st,ref-sel = <0>;
Dtegra114-roth.dts501 nvidia,rcv-sel = <TEGRA_PIN_ENABLE>;
Dtegra124-venice2.dts380 nvidia,rcv-sel = <TEGRA_PIN_ENABLE>;
Dtegra114-dalmore.dts496 nvidia,rcv-sel = <TEGRA_PIN_ENABLE>;
/linux-4.1.27/include/linux/i2c/
Dtwl4030-madc.h27 u8 sel; member
/linux-4.1.27/drivers/media/pci/cx18/
Dcx18-ioctl.c460 struct v4l2_selection *sel) in cx18_g_selection() argument
464 if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) in cx18_g_selection()
466 switch (sel->target) { in cx18_g_selection()
469 sel->r.top = sel->r.left = 0; in cx18_g_selection()
470 sel->r.width = 720; in cx18_g_selection()
471 sel->r.height = cx->is_50hz ? 576 : 480; in cx18_g_selection()
/linux-4.1.27/drivers/usb/renesas_usbhs/
Dfifo.c307 usbhs_write(priv, fifo->sel, 0); in usbhsf_fifo_unselect()
333 usbhs_write(priv, fifo->sel, base); in usbhsf_fifo_select()
335 usbhs_write(priv, fifo->sel, base | MBW_32); in usbhsf_fifo_select()
339 if (base == (mask & usbhs_read(priv, fifo->sel))) { in usbhsf_fifo_select()
794 usbhs_bset(priv, fifo->sel, DREQE, dreqe); in __usbhsf_dma_ctrl()
1407 fifo->sel = D##channel##FIFOSEL; \
1429 fifo->sel = CFIFOSEL; in usbhs_fifo_probe()
Dfifo.h29 u32 sel; /* xFIFOSEL */ member
/linux-4.1.27/drivers/mtd/nand/
Ds3c2410.c1082 unsigned long sel; in s3c24xx_nand_resume() local
1090 sel = readl(info->sel_reg); in s3c24xx_nand_resume()
1091 sel &= ~info->sel_bit; in s3c24xx_nand_resume()
1092 sel |= info->save_sel & info->sel_bit; in s3c24xx_nand_resume()
1093 writel(sel, info->sel_reg); in s3c24xx_nand_resume()
Dsunxi_nand.c377 struct sunxi_nand_chip_sel *sel; in sunxi_nfc_select_chip() local
390 sel = &sunxi_nand->sels[chip]; in sunxi_nfc_select_chip()
392 ctl |= (sel->cs << 24) | NFC_EN | in sunxi_nfc_select_chip()
394 if (sel->rb.type == RB_NONE) { in sunxi_nfc_select_chip()
398 if (sel->rb.type == RB_NATIVE) in sunxi_nfc_select_chip()
399 ctl |= (sel->rb.info.nativeid << 3); in sunxi_nfc_select_chip()
/linux-4.1.27/include/net/
Dxfrm.h141 struct xfrm_selector sel; member
326 void (*init_tempsel)(struct xfrm_selector *sel,
596 int (*report)(struct net *net, u8 proto, struct xfrm_selector *sel, xfrm_address_t *addr);
597 int (*migrate)(const struct xfrm_selector *sel,
905 bool xfrm_selector_match(const struct xfrm_selector *sel,
1584 struct xfrm_selector *sel,
1602 int km_migrate(const struct xfrm_selector *sel, u8 dir, u8 type,
1608 int xfrm_migrate(const struct xfrm_selector *sel, u8 dir, u8 type,
1615 int km_report(struct net *net, u8 proto, struct xfrm_selector *sel,
Dipv6.h195 int sel; member
294 int ip6_ra_control(struct sock *sk, int sel);
/linux-4.1.27/Documentation/devicetree/bindings/drm/msm/
Dhdmi.txt22 - qcom,hdmi-tx-mux-sel-gpio: hdmi mux select pin
/linux-4.1.27/drivers/media/usb/uvc/
Duvc_v4l2.c1051 struct v4l2_selection *sel) in uvc_ioctl_g_selection() argument
1056 if (sel->type != stream->type) in uvc_ioctl_g_selection()
1059 switch (sel->target) { in uvc_ioctl_g_selection()
1074 sel->r.left = 0; in uvc_ioctl_g_selection()
1075 sel->r.top = 0; in uvc_ioctl_g_selection()
1077 sel->r.width = stream->cur_frame->wWidth; in uvc_ioctl_g_selection()
1078 sel->r.height = stream->cur_frame->wHeight; in uvc_ioctl_g_selection()
/linux-4.1.27/Documentation/devicetree/bindings/pinctrl/
Dnvidia,tegra114-pinmux.txt21 - nvidia,rcv-sel: Integer. Select VIL/VIH receivers. 0: normal, 1: high.
33 nvidia,io-reset and nvidia,rcv-sel.
Dnvidia,tegra124-pinmux.txt32 - nvidia,rcv-sel: Integer. Select VIL/VIH receivers.
45 nvidia,io-reset and nvidia,rcv-sel.
Dbrcm,cygnus-gpio.txt97 bcm,rfkill-bank-sel = <&gpio_asiu 5 1>
/linux-4.1.27/drivers/acpi/
Dsbs.c411 u16 value, sel = 1 << (battery->id + 12); in acpi_battery_set_alarm() local
421 if ((value & 0xf000) != sel) { in acpi_battery_set_alarm()
423 value |= sel; in acpi_battery_set_alarm()
/linux-4.1.27/scripts/kconfig/
Dgconf.c227 GtkTreeSelection *sel; in init_left_tree() local
256 sel = gtk_tree_view_get_selection(view); in init_left_tree()
257 gtk_tree_selection_set_mode(sel, GTK_SELECTION_SINGLE); in init_left_tree()
269 GtkTreeSelection *sel; in init_right_tree() local
359 sel = gtk_tree_view_get_selection(view); in init_right_tree()
360 gtk_tree_selection_set_mode(sel, GTK_SELECTION_SINGLE); in init_right_tree()
/linux-4.1.27/drivers/media/usb/em28xx/
Dem28xx-core.c490 int sel = ac97_return_record_select(dev->ctl_aoutput); in em28xx_audio_analog_set() local
494 sel |= (sel << 8); in em28xx_audio_analog_set()
496 em28xx_write_ac97(dev, AC97_REC_SEL, sel); in em28xx_audio_analog_set()
/linux-4.1.27/arch/cris/include/arch-v32/arch/hwregs/
Data_defs.h121 unsigned int sel : 2; member
/linux-4.1.27/arch/mips/include/asm/octeon/
Dcvmx-gpio-defs.h356 uint64_t sel:4; member
358 uint64_t sel:4;
Dcvmx-lmcx-defs.h253 uint64_t sel:1; member
259 uint64_t sel:1;
271 uint64_t sel:1; member
277 uint64_t sel:1;
Dcvmx-ciu-defs.h6989 uint64_t sel:3; member
6999 uint64_t sel:3;
7006 uint64_t sel:3; member
7016 uint64_t sel:3;
7023 uint64_t sel:3; member
7033 uint64_t sel:3;
Dcvmx-mio-defs.h2981 uint64_t sel:5; member
2983 uint64_t sel:5;
/linux-4.1.27/drivers/usb/host/
Dxhci.c4305 unsigned long long sel; in xhci_get_timeout_no_hub_lpm() local
4313 sel = DIV_ROUND_UP(udev->u1_params.sel, 1000); in xhci_get_timeout_no_hub_lpm()
4319 sel = DIV_ROUND_UP(udev->u2_params.sel, 1000); in xhci_get_timeout_no_hub_lpm()
4330 if (sel <= max_sel_pel && pel <= max_sel_pel) in xhci_get_timeout_no_hub_lpm()
4333 if (sel > max_sel_pel) in xhci_get_timeout_no_hub_lpm()
4336 state_name, sel); in xhci_get_timeout_no_hub_lpm()
4363 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout()
4366 timeout_ns = udev->u1_params.sel * 5; in xhci_calculate_intel_u1_timeout()
4371 timeout_ns = udev->u1_params.sel * 3; in xhci_calculate_intel_u1_timeout()
4378 if (timeout_ns < udev->u1_params.sel * 2) in xhci_calculate_intel_u1_timeout()
[all …]
/linux-4.1.27/include/media/
Dv4l2-subdev.h519 struct v4l2_subdev_selection *sel);
522 struct v4l2_subdev_selection *sel);
/linux-4.1.27/arch/x86/kvm/
Demulate.c488 u16 sel; in stack_mask() local
493 ctxt->ops->get_segment(ctxt, &sel, &ss, NULL, VCPU_SREG_SS); in stack_mask()
653 u16 sel; in __linearize() local
667 usable = ctxt->ops->get_segment(ctxt, &sel, &desc, NULL, in __linearize()
1467 u16 sel; in get_descriptor_table_ptr() local
1470 if (!ops->get_segment(ctxt, &sel, &desc, &base3, in get_descriptor_table_ptr()
2099 unsigned short sel, old_sel; in em_jmp_far() local
2109 memcpy(&sel, ctxt->src.valptr + ctxt->op_bytes, 2); in em_jmp_far()
2111 rc = __load_segment_descriptor(ctxt, sel, VCPU_SREG_CS, cpl, in em_jmp_far()
2252 unsigned short sel; in em_lseg() local
[all …]
/linux-4.1.27/include/linux/regulator/
Ddriver.h424 int regulator_set_voltage_sel_regmap(struct regulator_dev *rdev, unsigned sel);
/linux-4.1.27/arch/x86/include/asm/
Dperf_event_p4.h296 #define P4_OPCODE_PACK(event, sel) (((event) << 8) | sel) argument
Dkvm_host.h1056 static inline void kvm_load_ldt(u16 sel) in kvm_load_ldt() argument
1058 asm("lldt %0" : : "rm"(sel)); in kvm_load_ldt()
/linux-4.1.27/drivers/block/
Dswim.c272 static inline void swim_select(struct swim __iomem *base, int sel) in swim_select() argument
276 via1_set_head(sel & 0x100); in swim_select()
278 swim_write(base, phase, sel & CA_MASK); in swim_select()
Dswim3.c277 static void swim3_select(struct floppy_state *fs, int sel) in swim3_select() argument
282 if (sel & 8) in swim3_select()
286 out_8(&sw->select, sel & CA_MASK); in swim3_select()
/linux-4.1.27/drivers/media/dvb-frontends/
Dlgs8gxx.c556 u8 sel) in lgs8g75_set_adc_vpp() argument
563 r26 |= (sel & 0x01) << 7; in lgs8g75_set_adc_vpp()
564 r27 |= (sel & 0x02) >> 1; in lgs8g75_set_adc_vpp()
/linux-4.1.27/arch/mips/include/asm/netlogic/xlr/
Dfmn.h182 #define nlm_read_c2_status(sel) __read_32bit_c2_register($2, 0) argument
/linux-4.1.27/drivers/net/wireless/rt2x00/
Drt73usb.c695 const struct antenna_sel *sel; in rt73usb_config_ant() local
708 sel = antenna_sel_a; in rt73usb_config_ant()
711 sel = antenna_sel_bg; in rt73usb_config_ant()
716 rt73usb_bbp_write(rt2x00dev, sel[i].word, sel[i].value[lna]); in rt73usb_config_ant()
Drt61pci.c799 const struct antenna_sel *sel; in rt61pci_config_ant() local
812 sel = antenna_sel_a; in rt61pci_config_ant()
815 sel = antenna_sel_bg; in rt61pci_config_ant()
820 rt61pci_bbp_write(rt2x00dev, sel[i].word, sel[i].value[lna]); in rt61pci_config_ant()
/linux-4.1.27/sound/pci/hda/
Dpatch_ca0132.c3607 int sel = ucontrol->value.enumerated.item[0]; in ca0132_voicefx_put() local
3611 if (sel >= items) in ca0132_voicefx_put()
3615 sel, ca0132_voicefx_presets[sel].name); in ca0132_voicefx_put()
3624 ca0132_voicefx_presets[sel].vals[i]); in ca0132_voicefx_put()
3630 spec->voicefx_val = sel; in ca0132_voicefx_put()
3632 ca0132_voicefx_set(codec, (sel ? 1 : 0)); in ca0132_voicefx_put()
/linux-4.1.27/drivers/staging/iio/accel/
Dsca3000_core.c168 uint8_t sel, in sca3000_write_ctrl_reg() argument
184 ret = sca3000_write_reg(st, SCA3000_REG_ADDR_CTRL_SEL, sel); in sca3000_write_ctrl_reg()
/linux-4.1.27/drivers/hwmon/
Dw83627hf.c1642 int res = 0xff, sel; in w83627thf_read_gpio5() local
1657 sel = superio_inb(sio_data, W83627THF_GPIO5_IOSR) & 0x3f; in w83627thf_read_gpio5()
1658 if ((sel & 0x1f) != 0x1f) { in w83627thf_read_gpio5()
1665 res = superio_inb(sio_data, W83627THF_GPIO5_DR) & sel; in w83627thf_read_gpio5()
Dnct6775.c2388 int i, sel = 0; in show_pwm_temp_sel_common() local
2394 sel = i + 1; in show_pwm_temp_sel_common()
2399 return sprintf(buf, "%d\n", sel); in show_pwm_temp_sel_common()
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_mad.c1264 __be16 sel) in get_counter() argument
1268 switch (sel) { in get_counter()
1318 __be16 sel) in get_cache_hw_sample_counters() argument
1322 switch (sel) { in get_cache_hw_sample_counters()
/linux-4.1.27/arch/mips/include/uapi/asm/
Dinst.h605 __BITFIELD_FIELD(unsigned int sel : 4,
/linux-4.1.27/arch/powerpc/boot/dts/
Dmpc832x_mds.dts235 * port pin dir drain sel irq
/linux-4.1.27/drivers/infiniband/hw/ipath/
Dipath_mad.c933 __be16 sel) in get_counter() argument
937 switch (sel) { in get_counter()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
Dt4_hw.c5333 unsigned int sel; in t4_filter_field_shift() local
5339 for (sel = 1, field_shift = 0; sel < filter_sel; sel <<= 1) { in t4_filter_field_shift()
5340 switch (filter_mode & sel) { in t4_filter_field_shift()
/linux-4.1.27/drivers/isdn/hisax/
Dhisax.h1294 void HiSax_reportcard(int cardnr, int sel);
Dconfig.c1290 void HiSax_reportcard(int cardnr, int sel) in HiSax_reportcard() argument
1317 if (sel == 99) { in HiSax_reportcard()
/linux-4.1.27/drivers/firewire/
Dohci.c1556 int tcode, length, ext_tcode, sel, try; in handle_local_lock() local
1578 sel = (csr - CSR_BUS_MANAGER_ID) / 4; in handle_local_lock()
1581 reg_write(ohci, OHCI1394_CSRControl, sel); in handle_local_lock()
/linux-4.1.27/drivers/usb/core/
Dhub.c289 udev_lpm_params->sel = total_sel; in usb_set_lpm_sel()
3661 u1_sel = DIV_ROUND_UP(udev->u1_params.sel, 1000); in usb_req_set_sel()
3663 u2_sel = DIV_ROUND_UP(udev->u2_params.sel, 1000); in usb_req_set_sel()
/linux-4.1.27/drivers/gpu/drm/radeon/
Dr600.c2882 unsigned sel = emit_wait ? PACKET3_SEM_SEL_WAIT : PACKET3_SEM_SEL_SIGNAL; in r600_semaphore_ring_emit() local
2885 sel |= PACKET3_SEM_WAIT_ON_SIGNAL; in r600_semaphore_ring_emit()
2889 radeon_ring_write(ring, (upper_32_bits(addr) & 0xff) | sel); in r600_semaphore_ring_emit()
Dcik.c4014 unsigned sel = emit_wait ? PACKET3_SEM_SEL_WAIT : PACKET3_SEM_SEL_SIGNAL; in cik_semaphore_ring_emit() local
4018 radeon_ring_write(ring, (upper_32_bits(addr) & 0xffff) | sel); in cik_semaphore_ring_emit()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
Dsdio.c557 u8 sel; /* Chip-specific select value */ member
3728 drivestrength_sel = str_tab[i].sel; in brcmf_sdio_drivestrengthinit()
/linux-4.1.27/drivers/gpu/drm/i915/
Dintel_display.c4009 u32 sel; in ironlake_pch_enable() local
4013 sel = TRANS_DPLLB_SEL(pipe); in ironlake_pch_enable()
4015 temp |= sel; in ironlake_pch_enable()
4017 temp &= ~sel; in ironlake_pch_enable()
/linux-4.1.27/Documentation/virtual/kvm/
Dapi.txt2044 0x7020 0000 0001 00 <reg:5> <sel:3> (32-bit)
2045 0x7030 0000 0001 00 <reg:5> <sel:3> (64-bit)