Home
last modified time | relevance | path

Searched refs:wm (Results 1 – 25 of 103) sorted by relevance

12345

/linux-6.15/drivers/input/touchscreen/
H A Dwm97xx-core.c140 wm->codec->aux_prepare(wm); in wm97xx_read_aux_adc()
151 wm->codec->dig_restore(wm); in wm97xx_read_aux_adc()
159 wm->codec->dig_enable(wm, false); in wm97xx_read_aux_adc()
345 wm->mach_ops->acc_pen_up(wm); in wm97xx_pen_interrupt()
485 wm->codec->acc_enable(wm, 1); in wm97xx_ts_input_open()
486 wm->codec->dig_enable(wm, 1); in wm97xx_ts_input_open()
534 free_irq(wm->pen_irq, wm); in wm97xx_ts_input_close()
547 wm->codec->dig_enable(wm, 0); in wm97xx_ts_input_close()
549 wm->codec->acc_enable(wm, 0); in wm97xx_ts_input_close()
617 dev_set_drvdata(wm->dev, wm); in _wm97xx_probe()
[all …]
H A Dwm9713.c206 wm->misc = wm97xx_reg_read(wm, 0x5a); in wm9713_phy_init()
221 wm97xx_reg_write(wm, AC97_WM9713_DIG3, wm->dig[2] | in wm9713_dig_enable()
225 wm97xx_reg_write(wm, AC97_WM9713_DIG3, wm->dig[2] & in wm9713_dig_enable()
241 memcpy(wm->dig_save, wm->dig, sizeof(wm->dig)); in wm9713_aux_prepare()
274 if (wm->mach_ops && wm->mach_ops->pre_sample) in wm9713_poll_sample()
298 if (wm->mach_ops && wm->mach_ops->post_sample) in wm9713_poll_sample()
338 if (wm->mach_ops && wm->mach_ops->pre_sample) in wm9713_poll_coord()
369 if (wm->mach_ops && wm->mach_ops->post_sample) in wm9713_poll_coord()
432 (ret = wm->mach_ops->acc_startup(wm)) < 0) in wm9713_acc_enable()
443 WM97XX_SLT(wm->acc_slot) | WM97XX_RATE(wm->acc_rate); in wm9713_acc_enable()
[all …]
H A Dwm9712.c179 dev_dbg(wm->dev, in wm9712_phy_init()
182 dev_dbg(wm->dev, in wm9712_phy_init()
231 memcpy(wm->dig_save, wm->dig, sizeof(wm->dig)); in wm9712_aux_prepare()
238 wm97xx_reg_write(wm, AC97_WM97XX_DIGITISER1, wm->dig_save[1]); in wm9712_dig_restore()
239 wm97xx_reg_write(wm, AC97_WM97XX_DIGITISER2, wm->dig_save[2]); in wm9712_dig_restore()
263 if (wm->mach_ops && wm->mach_ops->pre_sample) in wm9712_poll_sample()
288 if (wm->mach_ops && wm->mach_ops->post_sample) in wm9712_poll_sample()
326 if (wm->mach_ops && wm->mach_ops->pre_sample) in wm9712_poll_coord()
358 if (wm->mach_ops && wm->mach_ops->post_sample) in wm9712_poll_coord()
424 ret = wm->mach_ops->acc_startup(wm); in wm9712_acc_enable()
[all …]
H A Dwm9705.c147 dev_dbg(wm->dev, in wm9705_phy_init()
150 dev_dbg(wm->dev, in wm9705_phy_init()
191 memcpy(wm->dig_save, wm->dig, sizeof(wm->dig)); in wm9705_aux_prepare()
198 wm97xx_reg_write(wm, AC97_WM97XX_DIGITISER1, wm->dig_save[1]); in wm9705_dig_restore()
199 wm97xx_reg_write(wm, AC97_WM97XX_DIGITISER2, wm->dig_save[2]); in wm9705_dig_restore()
223 if (wm->mach_ops && wm->mach_ops->pre_sample) in wm9705_poll_sample()
240 if (is_pden(wm)) in wm9705_poll_sample()
248 if (wm->mach_ops && wm->mach_ops->post_sample) in wm9705_poll_sample()
299 dig1 = wm->dig[1]; in wm9705_acc_enable()
305 (ret = wm->mach_ops->acc_startup(wm)) < 0) in wm9705_acc_enable()
[all …]
H A Dmainstone-wm97xx.c161 input_sync(wm->input_dev); in wm97xx_acc_pen_down()
173 if (wm->ac97 == NULL) in wm97xx_acc_startup()
178 if (wm->id != cinfo[idx].id) in wm97xx_acc_startup()
184 wm->acc_rate = cinfo[sp_idx].code; in wm97xx_acc_startup()
185 wm->acc_slot = ac97_touch_slot; in wm97xx_acc_startup()
186 dev_info(wm->dev, in wm97xx_acc_startup()
197 wm->pen_irq = gpiod_to_irq(gpiod_irq); in wm97xx_acc_startup()
203 switch (wm->id) { in wm97xx_acc_startup()
219 dev_err(wm->dev, in wm97xx_acc_startup()
235 wm->pen_irq = 0; in wm97xx_acc_shutdown()
[all …]
/linux-6.15/sound/pci/ice1712/
H A Dwm8766.c22 wm->ops.write(wm, addr, data); in snd_wm8766_write()
161 snd_wm8766_write(wm, i, wm->regs[i]); in snd_wm8766_resume()
213 wm->ctl[n].get(wm, &val1, &val2); in snd_wm8766_ctl_get()
215 val1 = wm->regs[wm->ctl[n].reg1] & wm->ctl[n].mask1; in snd_wm8766_ctl_get()
218 val2 = wm->regs[wm->ctl[n].reg2] & wm->ctl[n].mask2; in snd_wm8766_ctl_get()
251 wm->ctl[n].set(wm, regval1, regval2); in snd_wm8766_ctl_put()
253 val = wm->regs[wm->ctl[n].reg1] & ~wm->ctl[n].mask1; in snd_wm8766_ctl_put()
257 wm->ctl[n].reg1 == wm->ctl[n].reg2) { in snd_wm8766_ctl_put()
261 snd_wm8766_write(wm, wm->ctl[n].reg1, val); in snd_wm8766_ctl_put()
264 wm->ctl[n].reg1 != wm->ctl[n].reg2) { in snd_wm8766_ctl_put()
[all …]
H A Dwm8776.c25 wm->ops.write(wm, bus_addr, bus_data); in snd_wm8776_write()
434 snd_wm8776_write(wm, i, wm->regs[i]); in snd_wm8776_resume()
483 wm->ctl[n].get(wm, &val1, &val2); in snd_wm8776_ctl_get()
485 val1 = wm->regs[wm->ctl[n].reg1] & wm->ctl[n].mask1; in snd_wm8776_ctl_get()
488 val2 = wm->regs[wm->ctl[n].reg2] & wm->ctl[n].mask2; in snd_wm8776_ctl_get()
521 wm->ctl[n].set(wm, regval1, regval2); in snd_wm8776_ctl_put()
523 val = wm->regs[wm->ctl[n].reg1] & ~wm->ctl[n].mask1; in snd_wm8776_ctl_put()
527 wm->ctl[n].reg1 == wm->ctl[n].reg2) { in snd_wm8776_ctl_put()
531 snd_wm8776_write(wm, wm->ctl[n].reg1, val); in snd_wm8776_ctl_put()
534 wm->ctl[n].reg1 != wm->ctl[n].reg2) { in snd_wm8776_ctl_put()
[all …]
H A Dmaya44.c70 struct snd_wm8776 wm[2]; member
86 wm->regs[reg] = val; in wm8776_write()
96 val |= wm->regs[reg] & ~mask; in wm8776_write_bits()
97 if (val != wm->regs[reg]) { in wm8776_write_bits()
174 struct snd_wm8776 *wm = in maya_vol_get() local
189 struct snd_wm8776 *wm = in maya_vol_put() local
235 struct snd_wm8776 *wm = in maya_sw_get() local
247 struct snd_wm8776 *wm = in maya_sw_put() local
255 wm->switch_bits &= ~mask; in maya_sw_put()
258 wm->switch_bits |= mask; in maya_sw_put()
[all …]
H A Dwm8766.h88 void (*write)(struct snd_wm8766 *wm, u16 addr, u16 data);
125 void (*set)(struct snd_wm8766 *wm, u16 ch1, u16 ch2);
126 void (*get)(struct snd_wm8766 *wm, u16 *ch1, u16 *ch2);
141 void snd_wm8766_init(struct snd_wm8766 *wm);
142 void snd_wm8766_resume(struct snd_wm8766 *wm);
143 void snd_wm8766_set_if(struct snd_wm8766 *wm, u16 dac);
144 void snd_wm8766_volume_restore(struct snd_wm8766 *wm);
145 int snd_wm8766_build_controls(struct snd_wm8766 *wm);
H A Dwm8776.h127 void (*write)(struct snd_wm8776 *wm, u8 addr, u8 data);
181 void (*set)(struct snd_wm8776 *wm, u16 ch1, u16 ch2);
182 void (*get)(struct snd_wm8776 *wm, u16 *ch1, u16 *ch2);
203 void snd_wm8776_init(struct snd_wm8776 *wm);
204 void snd_wm8776_resume(struct snd_wm8776 *wm);
205 void snd_wm8776_set_power(struct snd_wm8776 *wm, u16 power);
206 void snd_wm8776_volume_restore(struct snd_wm8776 *wm);
207 int snd_wm8776_build_controls(struct snd_wm8776 *wm);
/linux-6.15/drivers/gpu/drm/i915/display/
H A Di9xx_wm.c1012 wm = DIV_ROUND_UP(wm, 64) + 2; in g4x_compute_wm()
1415 wm->pipe[pipe] = wm_state->wm; in g4x_merge_wm()
2053 wm->pipe[pipe] = wm_state->wm[wm->level]; in vlv_merge_wm()
2055 wm->sr = wm_state->sr[wm->level]; in vlv_merge_wm()
2807 wm[0] = max(wm[0], min); in ilk_increase_wm_latency()
2956 memset(&pipe_wm->wm, 0, sizeof(pipe_wm->wm)); in ilk_compute_pipe_wm()
2977 memset(wm, 0, sizeof(*wm)); in ilk_compute_pipe_wm()
3792 if (wm->cxsr && wm->hpll_en) in g4x_wm_get_hw_state()
3846 wm->sr.plane, wm->sr.cursor, wm->sr.fbc); in g4x_wm_get_hw_state()
3849 wm->hpll.plane, wm->hpll.cursor, wm->hpll.fbc); in g4x_wm_get_hw_state()
[all …]
H A Dintel_wm.c49 if (i915->display.funcs.wm->update_wm) in intel_update_watermarks()
50 i915->display.funcs.wm->update_wm(i915); in intel_update_watermarks()
58 if (!display->funcs.wm->compute_watermarks) in intel_wm_compute()
107 if (i915->display.funcs.wm->get_hw_state) in intel_wm_get_hw_state()
113 if (i915->display.funcs.wm->sanitize) in intel_wm_sanitize()
141 const char *name, const u16 wm[]) in intel_print_wm_latency() argument
146 unsigned int latency = wm[level]; in intel_print_wm_latency()
186 unsigned int latency = wm[level]; in wm_latency_show()
283 size_t len, loff_t *offp, u16 wm[8]) in wm_latency_write()
303 if (ret != dev_priv->display.wm.num_levels) in wm_latency_write()
[all …]
H A Dskl_watermark.c376 if (!wm->wm[0].enable) in skl_crtc_can_enable_sagv()
400 if (wm->wm[0].enable && !wm->wm[max_level].can_sagv) in skl_crtc_can_enable_sagv()
419 if (wm->wm[0].enable && !wm->sagv.wm0.enable) in tgl_crtc_can_enable_sagv()
1447 return &wm->wm[level]; in skl_plane_wm_level()
1478 memset(wm, 0, sizeof(*wm)); in skl_check_wm_level()
1690 wm->wm[level].blocks = wm->wm[level - 1].blocks; in skl_crtc_allocate_plane_ddb()
1691 wm->wm[level].lines = wm->wm[level - 1].lines; in skl_crtc_allocate_plane_ddb()
1692 wm->wm[level].ignore_lines = wm->wm[level - 1].ignore_lines; in skl_crtc_allocate_plane_ddb()
2234 memset(wm, 0, sizeof(*wm)); in skl_build_plane_wm()
2267 memset(wm, 0, sizeof(*wm)); in icl_build_plane_wm()
[all …]
/linux-6.15/drivers/media/platform/qcom/camss/
H A Dcamss-vfe-780.c58 wm = RDI_WM(wm); in vfe_wm_start()
66 vfe->base + VFE_BUS_WM_FRAME_INCR(wm)); in vfe_wm_start()
68 vfe->base + VFE_BUS_WM_IMAGE_CFG_0(wm)); in vfe_wm_start()
70 vfe->base + VFE_BUS_WM_IMAGE_CFG_2(wm)); in vfe_wm_start()
71 writel(0, vfe->base + VFE_BUS_WM_PACKER_CFG(wm)); in vfe_wm_start()
74 writel(0, vfe->base + VFE_BUS_WM_FRAMEDROP_PERIOD(wm)); in vfe_wm_start()
85 static void vfe_wm_stop(struct vfe_device *vfe, u8 wm) in vfe_wm_stop() argument
87 wm = RDI_WM(wm); in vfe_wm_stop()
88 writel(0, vfe->base + VFE_BUS_WM_CFG(wm)); in vfe_wm_stop()
94 wm = RDI_WM(wm); in vfe_wm_update()
[all …]
H A Dcamss-vfe-gen1.h21 void (*bus_connect_wm_to_rdi)(struct vfe_device *vfe, u8 wm, enum vfe_line_id id);
24 void (*bus_reload_wm)(struct vfe_device *vfe, u8 wm);
36 void (*set_cgc_override)(struct vfe_device *vfe, u8 wm, u8 enable);
47 void (*wm_frame_based)(struct vfe_device *vfe, u8 wm, u8 enable);
50 void (*wm_set_ub_cfg)(struct vfe_device *vfe, u8 wm, u16 offset, u16 depth);
51 void (*wm_set_subsample)(struct vfe_device *vfe, u8 wm);
52 void (*wm_set_framedrop_period)(struct vfe_device *vfe, u8 wm, u8 per);
54 void (*wm_set_ping_addr)(struct vfe_device *vfe, u8 wm, u32 addr);
55 void (*wm_set_pong_addr)(struct vfe_device *vfe, u8 wm, u32 addr);
56 int (*wm_get_ping_pong_status)(struct vfe_device *vfe, u8 wm);
[all …]
H A Dcamss-vfe-480.c104 wm = RDI_WM(wm); /* map to actual WM used (from wm=RDI index) */ in vfe_wm_start()
112 vfe->base + VFE_BUS_WM_FRAME_INCR(wm)); in vfe_wm_start()
113 writel_relaxed(0xf, vfe->base + VFE_BUS_WM_BURST_LIMIT(wm)); in vfe_wm_start()
115 vfe->base + VFE_BUS_WM_IMAGE_CFG_0(wm)); in vfe_wm_start()
117 vfe->base + VFE_BUS_WM_IMAGE_CFG_2(wm)); in vfe_wm_start()
118 writel_relaxed(0, vfe->base + VFE_BUS_WM_PACKER_CFG(wm)); in vfe_wm_start()
127 vfe->base + VFE_BUS_WM_CFG(wm)); in vfe_wm_start()
130 static void vfe_wm_stop(struct vfe_device *vfe, u8 wm) in vfe_wm_stop() argument
132 wm = RDI_WM(wm); /* map to actual WM used (from wm=RDI index) */ in vfe_wm_stop()
133 writel_relaxed(0, vfe->base + VFE_BUS_WM_CFG(wm)); in vfe_wm_stop()
[all …]
H A Dcamss-vfe-4-1.c264 vfe_reg_set(vfe, VFE_0_BUS_IMAGE_MASTER_n_WR_CFG(wm), in vfe_wm_enable()
311 VFE_0_BUS_IMAGE_MASTER_n_WR_IMAGE_SIZE(wm)); in vfe_wm_line_based()
320 VFE_0_BUS_IMAGE_MASTER_n_WR_BUFFER_CFG(wm)); in vfe_wm_line_based()
323 VFE_0_BUS_IMAGE_MASTER_n_WR_IMAGE_SIZE(wm)); in vfe_wm_line_based()
325 VFE_0_BUS_IMAGE_MASTER_n_WR_BUFFER_CFG(wm)); in vfe_wm_line_based()
334 VFE_0_BUS_IMAGE_MASTER_n_WR_ADDR_CFG(wm)); in vfe_wm_set_framedrop_period()
387 return (reg >> wm) & 0x1; in vfe_wm_get_ping_pong_status()
428 if (wm % 2 == 1) in vfe_bus_connect_wm_to_rdi()
431 vfe_reg_set(vfe, VFE_0_BUS_XBAR_CFG_x(wm), reg); in vfe_bus_connect_wm_to_rdi()
468 if (wm % 2 == 1) in vfe_bus_disconnect_wm_from_rdi()
[all …]
H A Dcamss-vfe-17x.c242 writel_relaxed(val, vfe->base + VFE_BUS_WM_STRIDE(wm)); in vfe_wm_start()
247 writel_relaxed(val, vfe->base + VFE_BUS_WM_CFG(wm)); in vfe_wm_start()
250 static void vfe_wm_stop(struct vfe_device *vfe, u8 wm) in vfe_wm_stop() argument
253 writel_relaxed(0, vfe->base + VFE_BUS_WM_CFG(wm)); in vfe_wm_stop()
332 int i, wm; in vfe_isr() local
366 for (wm = 0; wm < MSM_VFE_IMAGE_MASTERS_NUM; wm++) in vfe_isr()
368 if (vfe_bus_status[1] & STATUS1_WM_CLIENT_BUF_DONE(wm)) in vfe_isr()
369 vfe->isr_ops.wm_done(vfe, wm); in vfe_isr()
508 static void vfe_isr_wm_done(struct vfe_device *vfe, u8 wm) in vfe_isr_wm_done() argument
519 if (vfe->wm_output_map[wm] == VFE_LINE_NONE) { in vfe_isr_wm_done()
[all …]
H A Dcamss-vfe-4-7.c313 vfe_reg_set(vfe, VFE_0_BUS_IMAGE_MASTER_n_WR_CFG(wm), in vfe_wm_enable()
402 VFE_0_BUS_IMAGE_MASTER_n_WR_IMAGE_SIZE(wm)); in vfe_wm_line_based()
411 VFE_0_BUS_IMAGE_MASTER_n_WR_BUFFER_CFG(wm)); in vfe_wm_line_based()
414 VFE_0_BUS_IMAGE_MASTER_n_WR_IMAGE_SIZE(wm)); in vfe_wm_line_based()
416 VFE_0_BUS_IMAGE_MASTER_n_WR_BUFFER_CFG(wm)); in vfe_wm_line_based()
425 VFE_0_BUS_IMAGE_MASTER_n_WR_ADDR_CFG(wm)); in vfe_wm_set_framedrop_period()
482 return (reg >> wm) & 0x1; in vfe_wm_get_ping_pong_status()
522 if (wm % 2 == 1) in vfe_bus_connect_wm_to_rdi()
525 vfe_reg_set(vfe, VFE_0_BUS_XBAR_CFG_x(wm), reg); in vfe_bus_connect_wm_to_rdi()
559 if (wm % 2 == 1) in vfe_bus_disconnect_wm_from_rdi()
[all …]
H A Dcamss-vfe-4-8.c375 VFE_0_BUS_IMAGE_MASTER_n_WR_IMAGE_SIZE(wm)); in vfe_wm_line_based()
384 VFE_0_BUS_IMAGE_MASTER_n_WR_BUFFER_CFG(wm)); in vfe_wm_line_based()
387 VFE_0_BUS_IMAGE_MASTER_n_WR_IMAGE_SIZE(wm)); in vfe_wm_line_based()
389 VFE_0_BUS_IMAGE_MASTER_n_WR_BUFFER_CFG(wm)); in vfe_wm_line_based()
398 VFE_0_BUS_IMAGE_MASTER_n_WR_ADDR_CFG(wm)); in vfe_wm_set_framedrop_period()
454 return (reg >> wm) & 0x1; in vfe_wm_get_ping_pong_status()
494 if (wm % 2 == 1) in vfe_bus_connect_wm_to_rdi()
497 vfe_reg_set(vfe, VFE_0_BUS_XBAR_CFG_x(wm), reg); in vfe_bus_connect_wm_to_rdi()
530 if (wm % 2 == 1) in vfe_bus_disconnect_wm_from_rdi()
533 vfe_reg_clr(vfe, VFE_0_BUS_XBAR_CFG_x(wm), reg); in vfe_bus_disconnect_wm_from_rdi()
[all …]
/linux-6.15/tools/testing/selftests/kvm/arm64/
H A Darch_timer_edge_cases.c335 wm(); in test_timer_xval()
382 uint64_t usec, sleep_method_t wm) in test_cval_no_irq() argument
388 sleep_method_t wm) in test_tval_no_irq() argument
427 irq_wait_method_t wm, int num) in test_fire_a_timer_multiple_times() argument
438 wm(); in test_fire_a_timer_multiple_times()
477 wm(); in test_reprogramming_timer()
601 wm(); in test_set_cnt_after_tval_max()
652 wm(); in test_set_cnt_after_xval()
688 irq_wait_method_t wm) in test_set_cnt_after_tval() argument
695 irq_wait_method_t wm) in test_set_cnt_after_cval() argument
[all …]
/linux-6.15/Documentation/devicetree/bindings/pinctrl/
H A Dpinctrl-vt8500.txt7 - compatible: "via,vt8500-pinctrl", "wm,wm8505-pinctrl", "wm,wm8650-pinctrl",
8 "wm8750-pinctrl" or "wm,wm8850-pinctrl"
31 - wm,pins: An array of cells. Each cell contains the ID of a pin.
34 - wm,function: Integer, containing the function to mux to the pin(s):
39 - wm,pull: Integer, representing the pull-down/up to apply to the pin(s):
44 Each of wm,function and wm,pull may contain either a single value which
45 will be applied to all pins in wm,pins, or one value for each entry in
46 wm,pins.
51 compatible = "wm,wm8505-pinctrl";
/linux-6.15/drivers/video/fbdev/
H A Di740fb.c219 u32 wm; in i740_calc_fifo() local
224 wm = 0x18120000; in i740_calc_fifo()
226 wm = 0x16110000; in i740_calc_fifo()
228 wm = 0x120E0000; in i740_calc_fifo()
230 wm = 0x100D0000; in i740_calc_fifo()
236 wm = 0x2C1D0000; in i740_calc_fifo()
238 wm = 0x2C180000; in i740_calc_fifo()
240 wm = 0x24160000; in i740_calc_fifo()
242 wm = 0x18120000; in i740_calc_fifo()
244 wm = 0x16110000; in i740_calc_fifo()
[all …]
/linux-6.15/arch/arm/boot/dts/vt8500/
H A Dwm8850.dtsi11 compatible = "wm,wm8850";
60 compatible = "wm,wm8850-pinctrl";
90 compatible = "wm,wm8850-pll-clock";
97 compatible = "wm,wm8850-pll-clock";
104 compatible = "wm,wm8850-pll-clock";
111 compatible = "wm,wm8850-pll-clock";
118 compatible = "wm,wm8850-pll-clock";
125 compatible = "wm,wm8850-pll-clock";
219 compatible = "wm,wm8505-fb";
224 compatible = "wm,prizm-ge-rops";
[all …]
/linux-6.15/drivers/gpu/drm/radeon/
H A Drs690.c274 struct rs690_watermark *wm, in rs690_crtc_bandwidth_compute() argument
286 wm->lb_request_fifo_depth = 4; in rs690_crtc_bandwidth_compute()
306 wm->num_line_pair.full = dfixed_const(2); in rs690_crtc_bandwidth_compute()
308 wm->num_line_pair.full = dfixed_const(1); in rs690_crtc_bandwidth_compute()
316 wm->lb_request_fifo_depth = 4; in rs690_crtc_bandwidth_compute()
362 wm->active_time.full = dfixed_div(wm->active_time, a); in rs690_crtc_bandwidth_compute()
437 wm->dbpp.full = dfixed_const(4 * 8); in rs690_crtc_bandwidth_compute()
444 wm->priority_mark_max.full = dfixed_div(wm->priority_mark_max, a); in rs690_crtc_bandwidth_compute()
445 wm->priority_mark_max.full = dfixed_ceil(wm->priority_mark_max); in rs690_crtc_bandwidth_compute()
455 wm->priority_mark.full = dfixed_ceil(wm->priority_mark); in rs690_crtc_bandwidth_compute()
[all …]

12345