Home
last modified time | relevance | path

Searched full:wp (Results 1 – 25 of 732) sorted by relevance

12345678910>>...30

/linux/drivers/video/fbdev/omap2/omapfb/dss/
H A Dhdmi_wp.c21 void hdmi_wp_dump(struct hdmi_wp_data *wp, struct seq_file *s) in hdmi_wp_dump() argument
23 #define DUMPREG(r) seq_printf(s, "%-35s %08x\n", #r, hdmi_read_reg(wp->base, r)) in hdmi_wp_dump()
45 u32 hdmi_wp_get_irqstatus(struct hdmi_wp_data *wp) in hdmi_wp_get_irqstatus() argument
47 return hdmi_read_reg(wp->base, HDMI_WP_IRQSTATUS); in hdmi_wp_get_irqstatus()
50 void hdmi_wp_set_irqstatus(struct hdmi_wp_data *wp, u32 irqstatus) in hdmi_wp_set_irqstatus() argument
52 hdmi_write_reg(wp->base, HDMI_WP_IRQSTATUS, irqstatus); in hdmi_wp_set_irqstatus()
54 hdmi_read_reg(wp->base, HDMI_WP_IRQSTATUS); in hdmi_wp_set_irqstatus()
57 void hdmi_wp_set_irqenable(struct hdmi_wp_data *wp, u32 mask) in hdmi_wp_set_irqenable() argument
59 hdmi_write_reg(wp->base, HDMI_WP_IRQENABLE_SET, mask); in hdmi_wp_set_irqenable()
62 void hdmi_wp_clear_irqenable(struct hdmi_wp_data *wp, u32 mask) in hdmi_wp_clear_irqenable() argument
[all …]
H A Dhdmi.h41 /* HDMI WP IRQ flags */
233 struct hdmi_wp_data *wp; member
277 int hdmi_wp_video_start(struct hdmi_wp_data *wp);
278 void hdmi_wp_video_stop(struct hdmi_wp_data *wp);
279 void hdmi_wp_dump(struct hdmi_wp_data *wp, struct seq_file *s);
280 u32 hdmi_wp_get_irqstatus(struct hdmi_wp_data *wp);
281 void hdmi_wp_set_irqstatus(struct hdmi_wp_data *wp, u32 irqstatus);
282 void hdmi_wp_set_irqenable(struct hdmi_wp_data *wp, u32 mask);
283 void hdmi_wp_clear_irqenable(struct hdmi_wp_data *wp, u32 mask);
284 int hdmi_wp_set_phy_pwr(struct hdmi_wp_data *wp, enum hdmi_phy_pwr val);
[all …]
H A Dhdmi5.c65 struct hdmi_wp_data *wp = data; in hdmi_irq_handler() local
68 irqstatus = hdmi_wp_get_irqstatus(wp); in hdmi_irq_handler()
69 hdmi_wp_set_irqstatus(wp, irqstatus); in hdmi_irq_handler()
81 hdmi_wp_set_phy_pwr(wp, HDMI_PHYPWRCMD_OFF); in hdmi_irq_handler()
93 hdmi_wp_set_irqstatus(wp, HDMI_IRQ_LINK_CONNECT | in hdmi_irq_handler()
96 hdmi_wp_set_phy_pwr(wp, HDMI_PHYPWRCMD_LDOON); in hdmi_irq_handler()
101 hdmi_wp_set_phy_pwr(wp, HDMI_PHYPWRCMD_TXON); in hdmi_irq_handler()
103 hdmi_wp_set_phy_pwr(wp, HDMI_PHYPWRCMD_LDOON); in hdmi_irq_handler()
178 hdmi_wp_clear_irqenable(&hdmi.wp, 0xffffffff); in hdmi_power_on_full()
179 hdmi_wp_set_irqstatus(&hdmi.wp, in hdmi_power_on_full()
[all …]
H A Dhdmi4.c61 struct hdmi_wp_data *wp = data; in hdmi_irq_handler() local
64 irqstatus = hdmi_wp_get_irqstatus(wp); in hdmi_irq_handler()
65 hdmi_wp_set_irqstatus(wp, irqstatus); in hdmi_irq_handler()
75 hdmi_wp_set_phy_pwr(wp, HDMI_PHYPWRCMD_OFF); in hdmi_irq_handler()
77 hdmi_wp_set_irqstatus(wp, HDMI_IRQ_LINK_CONNECT | in hdmi_irq_handler()
80 hdmi_wp_set_phy_pwr(wp, HDMI_PHYPWRCMD_LDOON); in hdmi_irq_handler()
82 hdmi_wp_set_phy_pwr(wp, HDMI_PHYPWRCMD_TXON); in hdmi_irq_handler()
84 hdmi_wp_set_phy_pwr(wp, HDMI_PHYPWRCMD_LDOON); in hdmi_irq_handler()
148 struct hdmi_wp_data *wp = &hdmi.wp; in hdmi_power_on_full() local
156 hdmi_wp_clear_irqenable(wp, 0xffffffff); in hdmi_power_on_full()
[all …]
H A Dhdmi_pll.c102 struct hdmi_wp_data *wp = pll->wp; in hdmi_pll_enable() local
106 return hdmi_wp_set_pll_pwr(wp, HDMI_PLLPWRCMD_BOTHON_ALLCLKS); in hdmi_pll_enable()
112 struct hdmi_wp_data *wp = pll->wp; in hdmi_pll_disable() local
114 hdmi_wp_set_pll_pwr(wp, HDMI_PLLPWRCMD_ALLOFF); in hdmi_pll_disable()
209 struct hdmi_wp_data *wp) in hdmi_pll_init() argument
213 pll->wp = wp; in hdmi_pll_init()
/linux/drivers/gpu/drm/omapdrm/dss/
H A Dhdmi_wp.c20 void hdmi_wp_dump(struct hdmi_wp_data *wp, struct seq_file *s) in hdmi_wp_dump() argument
22 #define DUMPREG(r) seq_printf(s, "%-35s %08x\n", #r, hdmi_read_reg(wp->base, r)) in hdmi_wp_dump()
44 u32 hdmi_wp_get_irqstatus(struct hdmi_wp_data *wp) in hdmi_wp_get_irqstatus() argument
46 return hdmi_read_reg(wp->base, HDMI_WP_IRQSTATUS); in hdmi_wp_get_irqstatus()
49 void hdmi_wp_set_irqstatus(struct hdmi_wp_data *wp, u32 irqstatus) in hdmi_wp_set_irqstatus() argument
51 hdmi_write_reg(wp->base, HDMI_WP_IRQSTATUS, irqstatus); in hdmi_wp_set_irqstatus()
53 hdmi_read_reg(wp->base, HDMI_WP_IRQSTATUS); in hdmi_wp_set_irqstatus()
56 void hdmi_wp_set_irqenable(struct hdmi_wp_data *wp, u32 mask) in hdmi_wp_set_irqenable() argument
58 hdmi_write_reg(wp->base, HDMI_WP_IRQENABLE_SET, mask); in hdmi_wp_set_irqenable()
61 void hdmi_wp_clear_irqenable(struct hdmi_wp_data *wp, u32 mask) in hdmi_wp_clear_irqenable() argument
[all …]
H A Dhdmi.h45 /* HDMI WP IRQ flags */
239 struct hdmi_wp_data *wp; member
261 struct hdmi_wp_data *wp; member
296 int hdmi_wp_video_start(struct hdmi_wp_data *wp);
297 void hdmi_wp_video_stop(struct hdmi_wp_data *wp);
298 void hdmi_wp_dump(struct hdmi_wp_data *wp, struct seq_file *s);
299 u32 hdmi_wp_get_irqstatus(struct hdmi_wp_data *wp);
300 void hdmi_wp_set_irqstatus(struct hdmi_wp_data *wp, u32 irqstatus);
301 void hdmi_wp_set_irqenable(struct hdmi_wp_data *wp, u32 mask);
302 void hdmi_wp_clear_irqenable(struct hdmi_wp_data *wp, u32 mask);
[all …]
H A Dhdmi_pll.c42 struct hdmi_wp_data *wp = pll->wp; in hdmi_pll_enable() local
50 r = hdmi_wp_set_pll_pwr(wp, HDMI_PLLPWRCMD_BOTHON_ALLCLKS); in hdmi_pll_enable()
60 struct hdmi_wp_data *wp = pll->wp; in hdmi_pll_disable() local
63 hdmi_wp_set_pll_pwr(wp, HDMI_PLLPWRCMD_ALLOFF); in hdmi_pll_disable()
147 if (hpll->wp->version == 4) in hdmi_init_pll_data()
162 struct hdmi_pll_data *pll, struct hdmi_wp_data *wp) in hdmi_pll_init() argument
167 pll->wp = wp; in hdmi_pll_init()
H A Dhdmi4_cec.c164 hdmi_wp_clear_irqenable(core->wp, HDMI_IRQ_CORE); in hdmi_cec_adap_enable()
165 hdmi_wp_set_irqstatus(core->wp, HDMI_IRQ_CORE); in hdmi_cec_adap_enable()
166 REG_FLD_MOD(core->wp->base, HDMI_WP_CLK, 0, 5, 0); in hdmi_cec_adap_enable()
178 REG_FLD_MOD(core->wp->base, HDMI_WP_CLK, 0x18, 5, 0); in hdmi_cec_adap_enable()
201 hdmi_wp_set_irqenable(core->wp, HDMI_IRQ_CORE); in hdmi_cec_adap_enable()
238 REG_FLD_MOD(core->wp->base, HDMI_WP_CLK, 0, 5, 0); in hdmi_cec_adap_enable()
326 struct hdmi_wp_data *wp) in hdmi4_cec_init() argument
337 core->wp = wp; in hdmi4_cec_init()
340 REG_FLD_MOD(core->wp->base, HDMI_WP_CLK, 0, 5, 0); in hdmi4_cec_init()
/linux/arch/powerpc/math-emu/
H A Dmath_efp.c109 u32 wp[2]; member
200 vc.wp[0] = current->thread.evr[fc]; in do_spe_mathemu()
201 vc.wp[1] = regs->gpr[fc]; in do_spe_mathemu()
202 va.wp[0] = current->thread.evr[fa]; in do_spe_mathemu()
203 va.wp[1] = regs->gpr[fa]; in do_spe_mathemu()
204 vb.wp[0] = current->thread.evr[fb]; in do_spe_mathemu()
205 vb.wp[1] = regs->gpr[fb]; in do_spe_mathemu()
210 pr_debug("vc: %08x %08x\n", vc.wp[0], vc.wp[1]); in do_spe_mathemu()
211 pr_debug("va: %08x %08x\n", va.wp[0], va.wp[1]); in do_spe_mathemu()
212 pr_debug("vb: %08x %08x\n", vb.wp[0], vb.wp[1]); in do_spe_mathemu()
[all …]
/linux/lib/crypto/mpi/
H A Dmpi-mul.c21 mpi_ptr_t up, vp, wp; in mpi_mul() local
45 wp = w->d; in mpi_mul()
50 if (wp == up || wp == vp) { in mpi_mul()
51 wp = mpi_alloc_limb_space(wsize); in mpi_mul()
52 if (!wp) in mpi_mul()
59 wp = w->d; in mpi_mul()
62 if (wp == up) { in mpi_mul()
68 if (wp == vp) in mpi_mul()
71 MPN_COPY(up, wp, usize); in mpi_mul()
72 } else if (wp == vp) { in mpi_mul()
[all …]
H A Dmpi-add.c20 mpi_ptr_t wp, up, vp; in mpi_add() local
50 wp = w->d; in mpi_add()
54 MPN_COPY(wp, up, usize); in mpi_add()
60 mpihelp_sub(wp, up, usize, vp, vsize); in mpi_add()
62 MPN_NORMALIZE(wp, wsize); in mpi_add()
65 mpihelp_sub_n(wp, vp, up, usize); in mpi_add()
67 MPN_NORMALIZE(wp, wsize); in mpi_add()
71 mpihelp_sub_n(wp, up, vp, usize); in mpi_add()
73 MPN_NORMALIZE(wp, wsize); in mpi_add()
78 mpi_limb_t cy = mpihelp_add(wp, up, usize, vp, vsize); in mpi_add()
[all …]
H A Dgeneric_mpih-lshift.c19 * and store the USIZE least significant digits of the result at WP.
24 * 2. If the result is to be written over the input, WP must be >= UP.
28 mpihelp_lshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize, unsigned int cnt) in mpihelp_lshift() argument
36 wp += 1; in mpihelp_lshift()
44 wp[i] = (high_limb << sh_1) | (low_limb >> sh_2); in mpihelp_lshift()
47 wp[i] = high_limb << sh_1; in mpihelp_lshift()
H A Dgeneric_mpih-rshift.c20 * and store the USIZE least significant limbs of the result at WP.
25 * 2. If the result is to be written over the input, WP must be <= UP.
29 mpihelp_rshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize, unsigned cnt) in mpihelp_rshift() argument
37 wp -= 1; in mpihelp_rshift()
44 wp[i] = (low_limb >> sh_1) | (high_limb << sh_2); in mpihelp_rshift()
47 wp[i] = low_limb >> sh_1; in mpihelp_rshift()
/linux/tools/testing/selftests/breakpoints/
H A Dbreakpoint_test_arm64.c81 static bool set_watchpoint(pid_t pid, int size, int wp) in set_watchpoint() argument
83 const volatile uint8_t *addr = &var[32 + wp]; in set_watchpoint()
112 static bool run_test(int wr_size, int wp_size, int wr, int wp) in run_test() argument
143 if (!set_watchpoint(pid, wp_size, wp)) in run_test()
204 int wr, wp, size; in main() local
216 for (wp = wr - size; wp <= wr + size; wp = wp + size) { in main()
217 result = run_test(size, MIN(size, 8), wr, wp); in main()
218 if ((result && wr == wp) || in main()
219 (!result && wr != wp)) in main()
222 size, wr, wp); in main()
[all …]
/linux/drivers/block/null_blk/
H A Dzoned.c137 zone->wp = zone->start + zone->len; in null_init_zoned_dev()
158 zone->wp = zone->start + zone->capacity; in null_init_zoned_dev()
161 zone->wp = zone->start; in null_init_zoned_dev()
222 blkz.wp = zone->wp; in null_report_zones()
249 sector + nr_sectors <= zone->wp) in null_zone_valid_read_len()
252 if (sector > zone->wp) in null_zone_valid_read_len()
255 return (zone->wp - sector) << SECTOR_SHIFT; in null_zone_valid_read_len()
275 if (zone->wp == zone->start) { in null_close_imp_open_zone()
379 zone->wp == NULL_ZONE_INVALID_WP) { in null_zone_write()
383 sector = zone->wp; in null_zone_write()
[all …]
/linux/tools/testing/selftests/mm/
H A Duffd-unit-tests.c207 #define pagemap_check_wp(value, wp) do { \ argument
208 if (!!(value & PM_UFFD_WP) != wp) \
209 err("pagemap uffd-wp bit error: 0x%"PRIx64, value); \
314 * After fork(), we should handle uffd-wp bit differently: in pagemap_test_fork()
402 uffd_test_fail("Detected %s uffd-wp bit in child in present pte", in uffd_wp_fork_test_common()
429 /* Uffd-wp should persist even swapped out */ in uffd_wp_fork_test_common()
433 uffd_test_fail("Detected %s uffd-wp bit in child in zapped pte", in uffd_wp_fork_test_common()
493 uffd_test_fail("Detected %s uffd-wp bit in early CoW of fork()", in uffd_wp_fork_pin_test_common()
506 uffd_test_fail("Detected %s uffd-wp bit when RO pin", in uffd_wp_fork_pin_test_common()
551 * NOTE: MADV_COLLAPSE is not yet compatible with WP, so testing in uffd_minor_test_common()
[all …]
/linux/lib/raid6/
H A Dneon.uc63 register unative_t wd$$, wq$$, wp$$, w1$$, w2$$;
71 wq$$ = wp$$ = vld1q_u8(&dptr[z0][d+$$*NSIZE]);
74 wp$$ = veorq_u8(wp$$, wd$$);
82 vst1q_u8(&p[d+NSIZE*$$], wp$$);
94 register unative_t wd$$, wq$$, wp$$, w1$$, w2$$;
103 wp$$ = veorq_u8(vld1q_u8(&p[d+$$*NSIZE]), wq$$);
108 wp$$ = veorq_u8(wp$$, wd$$);
150 vst1q_u8(&p[d+NSIZE*$$], wp$$);
H A Dint.uc81 unative_t wd$$, wq$$, wp$$, w1$$, w2$$;
88 wq$$ = wp$$ = *(unative_t *)&dptr[z0][d+$$*NSIZE];
91 wp$$ ^= wd$$;
98 *(unative_t *)&p[d+NSIZE*$$] = wp$$;
110 unative_t wd$$, wq$$, wp$$, w1$$, w2$$;
118 wq$$ = wp$$ = *(unative_t *)&dptr[z0][d+$$*NSIZE];
121 wp$$ ^= wd$$;
135 *(unative_t *)&p[d+NSIZE*$$] ^= wp$$;
/linux/Documentation/mhi/
H A Dmhi.rst96 [Write Pointer (WP)]- [Ring Element]
106 * Ring is considered empty when RP == WP.
107 * Ring is considered full when WP + 1 == RP.
110 buffer information, increments the WP to the next element and rings the
123 [Write Pointer (WP)]- [Ring Element]
133 * Both host and device has a local copy of RP, WP.
134 * Ring is considered empty (no events to service) when WP + 1 == RP.
135 * Ring is considered full of events when RP == WP.
209 * Host increments the WP of the corresponding channel transfer ring.
216 * Host updates the WP of the corresponding event ring to indicate that the
/linux/tools/perf/tests/
H A Dbp_account.c89 TEST_ASSERT_VAL("failed to create wp\n", fd[i] != -1); in bp_accounting()
90 pr_debug("wp %d created\n", i); in bp_accounting()
99 TEST_ASSERT_VAL("failed to modify wp\n", ret == 0); in bp_accounting()
101 pr_debug("wp 0 modified to bp\n"); in bp_accounting()
105 TEST_ASSERT_VAL("failed to create max wp\n", fd_wp != -1); in bp_accounting()
106 pr_debug("wp max created\n"); in bp_accounting()
169 pr_err("failed to create wp\n"); in detect_share()
200 * - in case wp and bp do not share slots,
/linux/sound/hda/core/
H A Dcontroller.c71 bus->rirb.wp = bus->rirb.rp = 0; in snd_hdac_bus_init_cmd_io()
222 unsigned int wp, rp;
229 wp = snd_hdac_chip_readw(bus, CORBWP); in snd_hdac_bus_send_cmd_corb() local
230 if (wp == 0xffff) { in snd_hdac_bus_send_cmd_corb()
234 wp++; in snd_hdac_bus_send_cmd_corb()
235 wp %= AZX_MAX_CORB_ENTRIES; in snd_hdac_bus_send_cmd_corb()
238 if (wp == rp) { in snd_hdac_bus_send_cmd_corb()
244 bus->corb.buf[wp] = cpu_to_le32(val); in snd_hdac_bus_send_cmd_corb()
245 snd_hdac_chip_writew(bus, CORBWP, wp); in snd_hdac_bus_send_cmd_corb()
261 unsigned int rp, wp;
272 unsigned int rp, wp; snd_hdac_bus_update_rirb() local
[all...]
/linux/Documentation/virt/kvm/x86/
H A Dmmu.rst66 pages, pae, pse, pse36, cr0.wp, and 1GB pages. Emulated hardware also
186 Contains the value of cr0.wp for which the page is valid.
188 Contains the value of cr4.smep && !cr0.wp for which the page is valid
190 treatment of cr0.wp=0 below).
192 Contains the value of cr4.smap && !cr0.wp for which the page is valid
194 treatment of cr0.wp=0 below).
401 Emulating cr0.wp
404 If tdp is not enabled, the host must keep cr0.wp=1 so page write protection
406 cr0.wp=1, this does not present a problem. However when the guest cr0.wp=0,
429 CR4.SMAP && !CR0.WP into shadow page's role to avoid this case. Note,
[all …]
/linux/include/linux/
H A Duserfaultfd_k.h69 * Prevents userfaultfd operations (fill/move/wp) from happening while
168 * Don't do fault around for either WP or MINOR registered uffd range. For in uffd_disable_huge_pmd_share()
170 * be installed without notifications; for WP it should mostly be fine as long
225 * If wp async enabled, and WP is the only mode enabled, allow any in vma_can_userfault()
233 * If user requested uffd-wp but not enabled pte markers for in vma_can_userfault()
234 * uffd-wp, then shmem & hugetlbfs are not supported but only in vma_can_userfault()
426 /* File-based uffd-wp always need markers */ in userfaultfd_wp_use_markers()
431 * Anonymous uffd-wp only needs the markers if WP_UNPOPULATED in userfaultfd_wp_use_markers()
464 * Returns true if this is a swap pte and was uffd-wp w
[all...]
/linux/sound/pci/lola/
H A Dlola.c87 unsigned int wp = chip->corb.wp + 1; in corb_send_verb()
88 wp %= LOLA_CORB_ENTRIES; in corb_send_verb() local
89 chip->corb.wp = wp; in corb_send_verb()
90 chip->corb.buf[wp * 2] = cpu_to_le32(data); in corb_send_verb()
91 chip->corb.buf[wp * 2 + 1] = cpu_to_le32(extdata); in corb_send_verb()
92 lola_writew(chip, BAR0, CORBWP, wp); in corb_send_verb()
109 unsigned int rp, wp; in lola_update_rirb()
112 wp in lola_update_rirb()
111 unsigned int rp, wp; lola_update_rirb() local
[all...]

12345678910>>...30