| /linux/drivers/usb/typec/ |
| H A D | mode_selection.c | 80 static int mode_selection_activate(struct mode_selection *sel, in mode_selection_activate() argument 83 __must_hold(&sel->lock) in mode_selection_activate() 95 mutex_unlock(&sel->lock); in mode_selection_activate() 96 device_for_each_child(&sel->partner->dev, &order, activate_altmode); in mode_selection_activate() 97 mutex_lock(&sel->lock); in mode_selection_activate() 102 static void mode_list_clean(struct mode_selection *sel) in mode_list_clean() argument 106 list_for_each_entry_safe(ms, tmp, &sel->mode_list, list) { in mode_list_clean() 132 struct mode_selection *sel = container_of(work, in mode_selection_work_fn() local 135 unsigned int delay = sel->delay; in mode_selection_work_fn() 138 guard(mutex)(&sel->lock); in mode_selection_work_fn() [all …]
|
| /linux/drivers/regulator/ |
| H A D | anatop-regulator.c | 31 int sel; member 63 int sel; in anatop_regmap_enable() local 65 sel = anatop_reg->bypass ? LDO_FET_FULL_ON : anatop_reg->sel; in anatop_regmap_enable() 66 return regulator_set_voltage_sel_regmap(reg, sel); in anatop_regmap_enable() 86 anatop_reg->sel = selector; in anatop_regmap_core_set_voltage_sel() 92 anatop_reg->sel = selector; in anatop_regmap_core_set_voltage_sel() 101 return anatop_reg->sel; in anatop_regmap_core_get_voltage_sel() 109 int sel; in anatop_regmap_get_bypass() local 111 sel = regulator_get_voltage_sel_regmap(reg); in anatop_regmap_get_bypass() 112 if (sel == LDO_FET_FULL_ON) in anatop_regmap_get_bypass() [all …]
|
| H A D | helpers.c | 165 unsigned int sel, unsigned int range) in write_separate_vsel_and_range() argument 184 rdev->desc->vsel_mask, sel); in write_separate_vsel_and_range() 187 rdev->desc->vsel_mask, sel); in write_separate_vsel_and_range() 202 unsigned int sel) in regulator_set_voltage_sel_pickable_regmap() argument 214 if (sel < voltages_in_range) in regulator_set_voltage_sel_pickable_regmap() 216 sel -= voltages_in_range; in regulator_set_voltage_sel_pickable_regmap() 222 sel <<= ffs(rdev->desc->vsel_mask) - 1; in regulator_set_voltage_sel_pickable_regmap() 223 sel += rdev->desc->linear_ranges[i].min_sel; in regulator_set_voltage_sel_pickable_regmap() 231 rdev->desc->vsel_mask, sel | range); in regulator_set_voltage_sel_pickable_regmap() 233 ret = write_separate_vsel_and_range(rdev, sel, range); in regulator_set_voltage_sel_pickable_regmap() [all …]
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | selection-api-examples.rst | 17 struct v4l2_selection sel = { 21 ret = ioctl(fd, VIDIOC_G_SELECTION, &sel); 24 sel.target = V4L2_SEL_TGT_CROP; 25 ret = ioctl(fd, VIDIOC_S_SELECTION, &sel); 37 struct v4l2_selection sel = { 43 ret = ioctl(fd, VIDIOC_G_SELECTION, &sel); 47 r.width = sel.r.width / 2; 48 r.height = sel.r.height / 2; 49 r.left = sel.r.width / 4; 50 r.top = sel.r.height / 4; [all …]
|
| /linux/drivers/clk/bcm/ |
| H A D | clk-bcm281xx.c | 38 .sel = SELECTOR(0x0a10, 0, 2), 47 .sel = SELECTOR(0x0a04, 0, 2), 55 .sel = SELECTOR(0x0a00, 0, 2), 79 .sel = SELECTOR(0x0e74, 0, 2), 101 .sel = SELECTOR(0x0a28, 0, 3), 113 .sel = SELECTOR(0x0a2c, 0, 3), 125 .sel = SELECTOR(0x0a34, 0, 3), 137 .sel = SELECTOR(0x0a30, 0, 3), 148 .sel = SELECTOR(0x0a24, 0, 2), 158 .sel = SELECTOR(0x0a38, 0, 2), [all …]
|
| H A D | clk-kona-setup.c | 13 #define selector_clear_exists(sel) ((sel)->width = 0) argument 46 struct bcm_clk_sel *sel; in clk_requires_trigger() local 52 sel = &peri->sel; in clk_requires_trigger() 53 if (sel->parent_count && selector_exists(sel)) in clk_requires_trigger() 76 struct bcm_clk_sel *sel; in peri_clk_data_offsets_valid() local 140 sel = &peri->sel; in peri_clk_data_offsets_valid() 141 if (selector_exists(sel)) { in peri_clk_data_offsets_valid() 142 if (sel->offset > limit) { in peri_clk_data_offsets_valid() 144 __func__, name, sel->offset, limit); in peri_clk_data_offsets_valid() 283 static bool sel_valid(struct bcm_clk_sel *sel, const char *field_name, in sel_valid() argument [all …]
|
| H A D | clk-kona.c | 796 static u8 parent_index(struct bcm_clk_sel *sel, u8 parent_sel) in parent_index() argument 800 BUG_ON(sel->parent_count > (u32)U8_MAX); in parent_index() 801 for (i = 0; i < sel->parent_count; i++) in parent_index() 802 if (sel->parent_sel[i] == parent_sel) in parent_index() 815 static u8 selector_read_index(struct ccu_data *ccu, struct bcm_clk_sel *sel) in selector_read_index() argument 823 if (!selector_exists(sel)) in selector_read_index() 828 reg_val = __ccu_read(ccu, sel->offset); in selector_read_index() 831 parent_sel = bitfield_extract(reg_val, sel->shift, sel->width); in selector_read_index() 834 index = parent_index(sel, parent_sel); in selector_read_index() 837 __func__, parent_sel, ccu->name, sel->offset); in selector_read_index() [all …]
|
| H A D | clk-bcm21664.c | 38 .sel = SELECTOR(0x0a10, 0, 2), 64 .sel = SELECTOR(0x0a28, 0, 3), 76 .sel = SELECTOR(0x0a2c, 0, 3), 88 .sel = SELECTOR(0x0a34, 0, 3), 100 .sel = SELECTOR(0x0a30, 0, 3), 159 .sel = SELECTOR(0x0a10, 0, 2), 169 .sel = SELECTOR(0x0a14, 0, 2), 179 .sel = SELECTOR(0x0a18, 0, 2), 191 .sel = SELECTOR(0x0a64, 0, 3), 202 .sel = SELECTOR(0x0a68, 0, 3), [all …]
|
| /linux/tools/testing/selftests/syscall_user_dispatch/ |
| H A D | sud_test.c | 67 char sel = SYSCALL_DISPATCH_FILTER_ALLOW; in TEST_SIGNAL() local 74 ret = prctl(PR_SET_SYSCALL_USER_DISPATCH, PR_SYS_DISPATCH_EXCLUSIVE_ON, 0, 0, &sel); in TEST_SIGNAL() 79 SYSCALL_DISPATCH_ON(sel); in TEST_SIGNAL() 90 unsigned long size, void *sel) in prctl_valid() argument 92 EXPECT_EQ(0, prctl(PR_SET_SYSCALL_USER_DISPATCH, op, off, size, sel)); in prctl_valid() 97 unsigned long size, void *sel, int err) in prctl_invalid() argument 99 EXPECT_EQ(-1, prctl(PR_SET_SYSCALL_USER_DISPATCH, op, off, size, sel)); in prctl_invalid() 105 char sel = SYSCALL_DISPATCH_FILTER_ALLOW; in TEST() local 110 prctl_invalid(_metadata, op, 0, 0, &sel, EINVAL); in TEST() 122 prctl_invalid(_metadata, op, 0x0, 0x0, &sel, EINVAL); in TEST() [all …]
|
| /linux/drivers/firmware/ |
| H A 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) 314 typedef u8 (*sel_io_reader)(const struct dmi_system_event_log *sel, 319 static u8 read_sel_8bit_indexed_io(const struct dmi_system_event_log *sel, in read_sel_8bit_indexed_io() argument 325 outb((u8)offset, sel->io.index_addr); in read_sel_8bit_indexed_io() 326 ret = inb(sel->io.data_addr); in read_sel_8bit_indexed_io() 331 static u8 read_sel_2x8bit_indexed_io(const struct dmi_system_event_log *sel, in read_sel_2x8bit_indexed_io() argument [all …]
|
| /linux/drivers/clk/qcom/ |
| H A D | clk-krait.c | 23 static void __krait_mux_set_sel(struct krait_mux_clk *mux, int sel) in __krait_mux_set_sel() argument 39 regval |= (sel & mux->mask) << mux->shift; in __krait_mux_set_sel() 42 regval |= (sel & mux->mask) << (mux->shift + LPL_SHIFT); in __krait_mux_set_sel() 66 u32 sel; in krait_mux_set_parent() local 68 sel = clk_mux_index_to_val(mux->parent_map, 0, index); in krait_mux_set_parent() 69 mux->en_mask = sel; in krait_mux_set_parent() 72 __krait_mux_set_sel(mux, sel); in krait_mux_set_parent() 82 u32 sel; in krait_mux_get_parent() local 84 sel = krait_get_l2_indirect_reg(mux->offset); in krait_mux_get_parent() 85 sel >>= mux->shift; in krait_mux_get_parent() [all …]
|
| /linux/Documentation/devicetree/bindings/net/ |
| H A D | cpsw-phy-sel.txt | 5 - compatible : Should be "ti,am3352-cpsw-phy-sel" for am335x platform and 6 "ti,dra7xx-cpsw-phy-sel" for dra7xx platform 7 "ti,am43xx-cpsw-phy-sel" for am43xx platform 18 phy_sel: cpsw-phy-sel@44e10650 { 19 compatible = "ti,am3352-cpsw-phy-sel"; 21 reg-names = "gmii-sel"; 25 phy_sel: cpsw-phy-sel@44e10650 { 26 compatible = "ti,am3352-cpsw-phy-sel"; 28 reg-names = "gmii-sel";
|
| /linux/drivers/accessibility/speakup/ |
| H A D | selection.c | 21 struct tiocl_selection sel; member 31 struct tiocl_selection sel; in __speakup_set_selection() local 33 sel = ssw->sel; in __speakup_set_selection() 51 set_selection_kernel(&sel, tty); in __speakup_set_selection() 81 speakup_sel_work.sel.xs = spk_xs + 1; in speakup_set_selection() 82 speakup_sel_work.sel.ys = spk_ys + 1; in speakup_set_selection() 83 speakup_sel_work.sel.xe = spk_xe + 1; in speakup_set_selection() 84 speakup_sel_work.sel.ye = spk_ye + 1; in speakup_set_selection() 85 speakup_sel_work.sel.sel_mode = TIOCL_SELCHAR; in speakup_set_selection()
|
| /linux/net/ipv6/ |
| H A 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/drivers/media/tuners/ |
| H A 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 …]
|
| /linux/drivers/clk/imx/ |
| H A D | clk-imx35.c | 33 unsigned char arm, ahb, sel; member 37 { .arm = 1, .ahb = 4, .sel = 0}, 38 { .arm = 1, .ahb = 3, .sel = 1}, 39 { .arm = 2, .ahb = 2, .sel = 0}, 40 { .arm = 0, .ahb = 0, .sel = 0}, 41 { .arm = 0, .ahb = 0, .sel = 0}, 42 { .arm = 0, .ahb = 0, .sel = 0}, 43 { .arm = 4, .ahb = 1, .sel = 0}, 44 { .arm = 1, .ahb = 5, .sel = 0}, 45 { .arm = 1, .ahb = 8, .sel = 0}, [all …]
|
| /linux/drivers/watchdog/ |
| H A D | bd96801_wdt.c | 102 static int find_closest_fast(unsigned int target, int *sel, unsigned int *val) in find_closest_fast() argument 114 *sel = i; in find_closest_fast() 123 int sel; in find_closest_slow_by_fast() local 125 for (sel = 0; sel < ARRAY_SIZE(multipliers) && in find_closest_slow_by_fast() 126 multipliers[sel] * fast_val < *target; sel++) in find_closest_slow_by_fast() 129 if (sel == ARRAY_SIZE(multipliers)) in find_closest_slow_by_fast() 132 *slowsel = sel; in find_closest_slow_by_fast() 133 *target = multipliers[sel] * fast_val; in find_closest_slow_by_fast() 240 unsigned int val, sel, fast; in bd96801_set_heartbeat_from_hw() local 256 sel = FIELD_GET(BD96801_WD_TMO_SHORT_MASK, val); in bd96801_set_heartbeat_from_hw() [all …]
|
| /linux/arch/mips/include/asm/ |
| H A D | mipsregs.h | 1572 #define ___read_32bit_c0_register(source, sel, vol) \ argument 1574 if (sel == 0) \ 1582 "mfc0\t%0, " #source ", " #sel "\n\t" \ 1588 #define ___read_64bit_c0_register(source, sel, vol) \ argument 1591 __res = __read_64bit_c0_split(source, sel, vol); \ 1592 else if (sel == 0) \ 1603 "dmfc0\t%0, " #source ", " #sel "\n\t" \ 1609 #define __read_32bit_c0_register(source, sel) \ argument 1610 ___read_32bit_c0_register(source, sel, __volatile__) 1612 #define __read_const_32bit_c0_register(source, sel) \ argument [all …]
|
| H A D | mipsmtregs.h | 310 _ASM_MACRO_2R_1S(mftc0, rs, rt, sel, \ 312 __rs << 11 | \\sel) \ 314 __rs << 16 | \\sel << 4)) 317 #define mftc0(rt, sel) \ argument 325 " mftc0 %0, " #rt ", " #sel " \n" \ 357 #define mftr(rt, u, sel) \ argument 362 " mftr %0, " #rt ", " #u ", " #sel " \n" \ 389 _ASM_MACRO_2R_1S(mttc0, rt, rs, sel, \ 391 __rs << 11 | \\sel) \ 393 __rs << 16 | \\sel << 4)) [all …]
|
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | cxgb4_tc_u32.c | 55 for (i = 0; i < cls->knode.sel->nkeys; i++) { in fill_match_fields() 56 off = cls->knode.sel->keys[i].off; in fill_match_fields() 57 val = cls->knode.sel->keys[i].val; in fill_match_fields() 58 mask = cls->knode.sel->keys[i].mask; in fill_match_fields() 62 if (!cls->knode.sel->keys[i].offmask) in fill_match_fields() 66 if (cls->knode.sel->keys[i].offmask) in fill_match_fields() 245 if (next[i].sel.offoff != cls->knode.sel->offoff || in cxgb4_config_knode() 246 next[i].sel.offshift != cls->knode.sel->offshift || in cxgb4_config_knode() 247 next[i].sel.offmask != cls->knode.sel->offmask || in cxgb4_config_knode() 248 next[i].sel.off != cls->knode.sel->off) in cxgb4_config_knode() [all …]
|
| /linux/drivers/net/ethernet/netronome/nfp/abm/ |
| H A D | cls.c | 35 if (knode->sel->flags != TC_U32_TERMINAL) { in nfp_abm_u32_check_knode() 40 if (knode->sel->off || knode->sel->offshift || knode->sel->offmask || in nfp_abm_u32_check_knode() 41 knode->sel->offoff || knode->fshift) { in nfp_abm_u32_check_knode() 45 if (knode->sel->hoff || knode->sel->hmask) { in nfp_abm_u32_check_knode() 62 if (knode->sel->nkeys != 1) { in nfp_abm_u32_check_knode() 79 k = &knode->sel->keys[0]; in nfp_abm_u32_check_knode() 185 val = be32_to_cpu(knode->sel->keys[0].val) >> tos_off & 0xff; in nfp_abm_u32_knode_replace() 186 mask = be32_to_cpu(knode->sel->keys[0].mask) >> tos_off & 0xff; in nfp_abm_u32_knode_replace()
|
| /linux/arch/powerpc/perf/ |
| H A D | mpc7450-pmu.c | 79 int pmc, sel; in mpc7450_threshold_use() local 82 sel = event & PM_PMCSEL_MSK; in mpc7450_threshold_use() 85 if (sel == 0x1e || sel == 0x1f) in mpc7450_threshold_use() 87 if (sel == 0x28 || sel == 0x2b) in mpc7450_threshold_use() 91 if (sel == 0x20) in mpc7450_threshold_use() 95 if (sel == 0xc || sel == 0xd) in mpc7450_threshold_use() 97 if (sel == 0x11) in mpc7450_threshold_use() 101 if (sel == 0x10) in mpc7450_threshold_use()
|
| /linux/io_uring/ |
| H A D | net.c | 493 struct io_br_sel *sel) in io_send_finish() argument 496 bool bundle_finished = sel->val <= 0; in io_send_finish() 500 cflags = io_put_kbuf(req, sel->val, sel->buf_list); in io_send_finish() 504 cflags = io_put_kbufs(req, sel->val, sel->buf_list, io_bundle_nbufs(kmsg, sel->val)); in io_send_finish() 517 if (io_req_post_cqe(req, sel->val, cflags | IORING_CQE_F_MORE)) { in io_send_finish() 524 io_req_set_res(req, sel->val, cflags); in io_send_finish() 525 sel->val = IOU_COMPLETE; in io_send_finish() 579 struct io_br_sel *sel, struct io_async_msghdr *kmsg) in io_send_select_buffer() argument 601 ret = io_buffers_select(req, &arg, sel, issue_flags); in io_send_select_buffer() 630 struct io_br_sel sel = { }; in io_send() local [all …]
|
| H A D | kbuf.c | 199 struct io_br_sel sel = { }; in io_ring_buffer_select() local 205 return sel; in io_ring_buffer_select() 214 sel.addr = u64_to_user_ptr(READ_ONCE(buf->addr)); in io_ring_buffer_select() 215 if (unlikely(!access_ok(sel.addr, *len))) { in io_ring_buffer_select() 216 sel.addr = NULL; in io_ring_buffer_select() 217 return sel; in io_ring_buffer_select() 221 sel.buf_list = bl; in io_ring_buffer_select() 224 if (!io_kbuf_commit(req, sel.buf_list, *len, 1)) in io_ring_buffer_select() 226 sel.buf_list = NULL; in io_ring_buffer_select() 228 return sel; in io_ring_buffer_select() [all …]
|
| /linux/drivers/net/ethernet/microchip/sparx5/ |
| H A D | sparx5_vcap_impl.c | 904 enum vcap_selection sel, in sparx5_vcap_is0_cache_write() argument 915 switch (sel) { in sparx5_vcap_is0_cache_write() 938 if (sel & VCAP_SEL_COUNTER) in sparx5_vcap_is0_cache_write() 945 enum vcap_selection sel, in sparx5_vcap_is2_cache_write() argument 956 switch (sel) { in sparx5_vcap_is2_cache_write() 978 if (sel & VCAP_SEL_COUNTER) { in sparx5_vcap_is2_cache_write() 1005 enum vcap_selection sel, in sparx5_vcap_es0_cache_write() argument 1016 switch (sel) { in sparx5_vcap_es0_cache_write() 1038 if (sel & VCAP_SEL_COUNTER) { in sparx5_vcap_es0_cache_write() 1046 enum vcap_selection sel, in sparx5_vcap_es2_cache_write() argument [all …]
|