Home
last modified time | relevance | path

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

123456

/openbmc/linux/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 …]
/openbmc/linux/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);
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Di9xx_wm.c924 wm = DIV_ROUND_UP(wm, 64) + 2; in g4x_compute_wm()
1311 wm->pipe[pipe] = wm_state->wm; in g4x_merge_wm()
1933 wm->pipe[pipe] = wm_state->wm[wm->level]; in vlv_merge_wm()
1935 wm->sr = wm_state->sr[wm->level]; in vlv_merge_wm()
2679 wm[0] = max(wm[0], min); in ilk_increase_wm_latency()
2828 memset(&pipe_wm->wm, 0, sizeof(pipe_wm->wm)); in ilk_compute_pipe_wm()
2849 memset(wm, 0, sizeof(*wm)); in ilk_compute_pipe_wm()
3643 if (wm->cxsr && wm->hpll_en) in g4x_wm_get_hw_state()
3697 wm->sr.plane, wm->sr.cursor, wm->sr.fbc); in g4x_wm_get_hw_state()
3700 wm->hpll.plane, wm->hpll.cursor, wm->hpll.fbc); in g4x_wm_get_hw_state()
[all …]
H A Dintel_wm.c47 if (i915->display.funcs.wm->update_wm) in intel_update_watermarks()
48 i915->display.funcs.wm->update_wm(i915); in intel_update_watermarks()
56 if (i915->display.funcs.wm->compute_pipe_wm) in intel_compute_pipe_wm()
119 if (i915->display.funcs.wm->get_hw_state) in intel_wm_get_hw_state()
147 const char *name, const u16 wm[]) in intel_print_wm_latency() argument
152 unsigned int latency = wm[level]; in intel_print_wm_latency()
172 wm[level], latency / 10, latency % 10); in intel_print_wm_latency()
192 unsigned int latency = wm[level]; in wm_latency_show()
289 size_t len, loff_t *offp, u16 wm[8]) in wm_latency_write()
309 if (ret != dev_priv->display.wm.num_levels) in wm_latency_write()
[all …]
H A Dskl_watermark.c360 if (!wm->wm[0].enable) in skl_crtc_can_enable_sagv()
384 if (wm->wm[0].enable && !wm->wm[max_level].can_sagv) in skl_crtc_can_enable_sagv()
403 if (wm->wm[0].enable && !wm->sagv.wm0.enable) in tgl_crtc_can_enable_sagv()
1392 return &wm->wm[level]; in skl_plane_wm_level()
1423 memset(wm, 0, sizeof(*wm)); in skl_check_wm_level()
1622 wm->wm[level].blocks = wm->wm[level - 1].blocks; in skl_crtc_allocate_plane_ddb()
1623 wm->wm[level].lines = wm->wm[level - 1].lines; in skl_crtc_allocate_plane_ddb()
1624 wm->wm[level].ignore_lines = wm->wm[level - 1].ignore_lines; in skl_crtc_allocate_plane_ddb()
2146 memset(wm, 0, sizeof(*wm)); in skl_build_plane_wm()
2179 memset(wm, 0, sizeof(*wm)); in icl_build_plane_wm()
[all …]
/openbmc/linux/drivers/media/platform/qcom/camss/
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.c122 wm = RDI_WM(wm); /* map to actual WM used (from wm=RDI index) */ in vfe_wm_start()
130 vfe->base + VFE_BUS_WM_FRAME_INCR(wm)); in vfe_wm_start()
133 vfe->base + VFE_BUS_WM_IMAGE_CFG_0(wm)); in vfe_wm_start()
135 vfe->base + VFE_BUS_WM_IMAGE_CFG_2(wm)); in vfe_wm_start()
145 vfe->base + VFE_BUS_WM_CFG(wm)); in vfe_wm_start()
148 static void vfe_wm_stop(struct vfe_device *vfe, u8 wm) in vfe_wm_stop() argument
150 wm = RDI_WM(wm); /* map to actual WM used (from wm=RDI index) */ in vfe_wm_stop()
151 writel_relaxed(0, vfe->base + VFE_BUS_WM_CFG(wm)); in vfe_wm_stop()
157 wm = RDI_WM(wm); /* map to actual WM used (from wm=RDI index) */ in vfe_wm_update()
455 if (vfe->wm_output_map[wm] == VFE_LINE_NONE) { in vfe_isr_wm_done()
[all …]
H A Dcamss-vfe-4-1.c273 vfe_reg_set(vfe, VFE_0_BUS_IMAGE_MASTER_n_WR_CFG(wm), in vfe_wm_enable()
320 VFE_0_BUS_IMAGE_MASTER_n_WR_IMAGE_SIZE(wm)); in vfe_wm_line_based()
329 VFE_0_BUS_IMAGE_MASTER_n_WR_BUFFER_CFG(wm)); in vfe_wm_line_based()
332 VFE_0_BUS_IMAGE_MASTER_n_WR_IMAGE_SIZE(wm)); in vfe_wm_line_based()
334 VFE_0_BUS_IMAGE_MASTER_n_WR_BUFFER_CFG(wm)); in vfe_wm_line_based()
343 VFE_0_BUS_IMAGE_MASTER_n_WR_ADDR_CFG(wm)); in vfe_wm_set_framedrop_period()
396 return (reg >> wm) & 0x1; in vfe_wm_get_ping_pong_status()
437 if (wm % 2 == 1) in vfe_bus_connect_wm_to_rdi()
440 vfe_reg_set(vfe, VFE_0_BUS_XBAR_CFG_x(wm), reg); in vfe_bus_connect_wm_to_rdi()
477 if (wm % 2 == 1) in vfe_bus_disconnect_wm_from_rdi()
[all …]
H A Dcamss-vfe-4-7.c324 vfe_reg_set(vfe, VFE_0_BUS_IMAGE_MASTER_n_WR_CFG(wm), in vfe_wm_enable()
413 VFE_0_BUS_IMAGE_MASTER_n_WR_IMAGE_SIZE(wm)); in vfe_wm_line_based()
422 VFE_0_BUS_IMAGE_MASTER_n_WR_BUFFER_CFG(wm)); in vfe_wm_line_based()
425 VFE_0_BUS_IMAGE_MASTER_n_WR_IMAGE_SIZE(wm)); in vfe_wm_line_based()
427 VFE_0_BUS_IMAGE_MASTER_n_WR_BUFFER_CFG(wm)); in vfe_wm_line_based()
436 VFE_0_BUS_IMAGE_MASTER_n_WR_ADDR_CFG(wm)); in vfe_wm_set_framedrop_period()
493 return (reg >> wm) & 0x1; in vfe_wm_get_ping_pong_status()
533 if (wm % 2 == 1) in vfe_bus_connect_wm_to_rdi()
536 vfe_reg_set(vfe, VFE_0_BUS_XBAR_CFG_x(wm), reg); in vfe_bus_connect_wm_to_rdi()
570 if (wm % 2 == 1) in vfe_bus_disconnect_wm_from_rdi()
[all …]
H A Dcamss-vfe-4-8.c386 VFE_0_BUS_IMAGE_MASTER_n_WR_IMAGE_SIZE(wm)); in vfe_wm_line_based()
395 VFE_0_BUS_IMAGE_MASTER_n_WR_BUFFER_CFG(wm)); in vfe_wm_line_based()
398 VFE_0_BUS_IMAGE_MASTER_n_WR_IMAGE_SIZE(wm)); in vfe_wm_line_based()
400 VFE_0_BUS_IMAGE_MASTER_n_WR_BUFFER_CFG(wm)); in vfe_wm_line_based()
409 VFE_0_BUS_IMAGE_MASTER_n_WR_ADDR_CFG(wm)); in vfe_wm_set_framedrop_period()
465 return (reg >> wm) & 0x1; in vfe_wm_get_ping_pong_status()
505 if (wm % 2 == 1) in vfe_bus_connect_wm_to_rdi()
508 vfe_reg_set(vfe, VFE_0_BUS_XBAR_CFG_x(wm), reg); in vfe_bus_connect_wm_to_rdi()
541 if (wm % 2 == 1) in vfe_bus_disconnect_wm_from_rdi()
544 vfe_reg_clr(vfe, VFE_0_BUS_XBAR_CFG_x(wm), reg); in vfe_bus_disconnect_wm_from_rdi()
[all …]
H A Dcamss-vfe-170.c257 writel_relaxed(val, vfe->base + VFE_BUS_WM_STRIDE(wm)); in vfe_wm_start()
262 writel_relaxed(val, vfe->base + VFE_BUS_WM_CFG(wm)); in vfe_wm_start()
265 static void vfe_wm_stop(struct vfe_device *vfe, u8 wm) in vfe_wm_stop() argument
268 writel_relaxed(0, vfe->base + VFE_BUS_WM_CFG(wm)); in vfe_wm_stop()
347 int i, wm; in vfe_isr() local
381 for (wm = 0; wm < MSM_VFE_IMAGE_MASTERS_NUM; wm++) in vfe_isr()
383 if (vfe_bus_status[1] & STATUS1_WM_CLIENT_BUF_DONE(wm)) in vfe_isr()
384 vfe->isr_ops.wm_done(vfe, wm); in vfe_isr()
618 static void vfe_isr_wm_done(struct vfe_device *vfe, u8 wm) in vfe_isr_wm_done() argument
629 if (vfe->wm_output_map[wm] == VFE_LINE_NONE) { in vfe_isr_wm_done()
[all …]
/openbmc/linux/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";
/openbmc/linux/drivers/video/fbdev/
H A Di740fb.c220 u32 wm; in i740_calc_fifo() local
225 wm = 0x18120000; in i740_calc_fifo()
227 wm = 0x16110000; in i740_calc_fifo()
229 wm = 0x120E0000; in i740_calc_fifo()
231 wm = 0x100D0000; in i740_calc_fifo()
237 wm = 0x2C1D0000; in i740_calc_fifo()
239 wm = 0x2C180000; in i740_calc_fifo()
241 wm = 0x24160000; in i740_calc_fifo()
243 wm = 0x18120000; in i740_calc_fifo()
245 wm = 0x16110000; in i740_calc_fifo()
[all …]
/openbmc/linux/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 …]
H A Dwm8650.dtsi11 compatible = "wm,wm8650";
57 compatible = "wm,wm8650-pinctrl";
87 compatible = "wm,wm8650-pll-clock";
94 compatible = "wm,wm8650-pll-clock";
101 compatible = "wm,wm8650-pll-clock";
108 compatible = "wm,wm8650-pll-clock";
115 compatible = "wm,wm8650-pll-clock";
195 compatible = "wm,wm8505-sdhc";
204 compatible = "wm,wm8505-fb";
209 compatible = "wm,prizm-ge-rops";
/openbmc/linux/Documentation/devicetree/bindings/arm/
H A Dvt8500.yaml20 - wm,wm8505
21 - wm,wm8650
22 - wm,wm8750
23 - wm,wm8850
/openbmc/linux/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 …]

123456