/linux/drivers/input/touchscreen/ |
A D | wm97xx-core.c | 140 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() 344 wm->mach_ops->acc_pen_up(wm); in wm97xx_pen_irq_worker() 508 wm->codec->acc_enable(wm, 1); in wm97xx_ts_input_open() 509 wm->codec->dig_enable(wm, 1); in wm97xx_ts_input_open() 558 free_irq(wm->pen_irq, wm); in wm97xx_ts_input_close() 575 wm->codec->dig_enable(wm, 0); in wm97xx_ts_input_close() 577 wm->codec->acc_enable(wm, 0); in wm97xx_ts_input_close() 651 dev_set_drvdata(wm->dev, wm); in _wm97xx_probe() [all …]
|
A D | wm9713.c | 206 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 …]
|
A D | wm9712.c | 179 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 …]
|
A D | wm9705.c | 147 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 …]
|
A D | mainstone-wm97xx.c | 165 input_sync(wm->input_dev); in wm97xx_acc_pen_down() 177 if (wm->ac97 == NULL) in wm97xx_acc_startup() 182 if (wm->id != cinfo[idx].id) in wm97xx_acc_startup() 189 wm->acc_slot = ac97_touch_slot; in wm97xx_acc_startup() 190 dev_info(wm->dev, in wm97xx_acc_startup() 200 wm->variant = WM97xx_WM1613; in wm97xx_acc_startup() 222 switch (wm->id) { in wm97xx_acc_startup() 238 dev_err(wm->dev, in wm97xx_acc_startup() 255 wm->pen_irq = 0; in wm97xx_acc_shutdown() 262 enable_irq(wm->pen_irq); in wm97xx_irq_enable() [all …]
|
A D | zylonite-wm97xx.c | 76 static void wm97xx_acc_pen_up(struct wm97xx *wm) in wm97xx_acc_pen_up() argument 132 input_sync(wm->input_dev); in wm97xx_acc_pen_down() 144 if (wm->ac97 == NULL) in wm97xx_acc_startup() 149 if (wm->id != cinfo[idx].id) in wm97xx_acc_startup() 155 wm->acc_rate = cinfo[sp_idx].code; in wm97xx_acc_startup() 156 wm->acc_slot = ac97_touch_slot; in wm97xx_acc_startup() 157 dev_info(wm->dev, in wm97xx_acc_startup() 167 enable_irq(wm->pen_irq); in wm97xx_irq_enable() 169 disable_irq_nosync(wm->pen_irq); in wm97xx_irq_enable() 191 wm->pen_irq = gpio_to_irq(gpio_touch_irq); in zylonite_wm97xx_probe() [all …]
|
/linux/sound/pci/ice1712/ |
A D | wm8766.c | 22 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 …]
|
A D | wm8776.c | 25 wm->ops.write(wm, bus_addr, bus_data); in snd_wm8776_write() 438 snd_wm8776_write(wm, i, wm->regs[i]); in snd_wm8776_resume() 487 wm->ctl[n].get(wm, &val1, &val2); in snd_wm8776_ctl_get() 489 val1 = wm->regs[wm->ctl[n].reg1] & wm->ctl[n].mask1; in snd_wm8776_ctl_get() 492 val2 = wm->regs[wm->ctl[n].reg2] & wm->ctl[n].mask2; in snd_wm8776_ctl_get() 525 wm->ctl[n].set(wm, regval1, regval2); in snd_wm8776_ctl_put() 527 val = wm->regs[wm->ctl[n].reg1] & ~wm->ctl[n].mask1; in snd_wm8776_ctl_put() 531 wm->ctl[n].reg1 == wm->ctl[n].reg2) { in snd_wm8776_ctl_put() 535 snd_wm8776_write(wm, wm->ctl[n].reg1, val); in snd_wm8776_ctl_put() 538 wm->ctl[n].reg1 != wm->ctl[n].reg2) { in snd_wm8776_ctl_put() [all …]
|
A D | maya44.c | 70 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 …]
|
A D | wm8766.h | 88 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);
|
A D | wm8776.h | 127 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/drivers/gpu/drm/i915/ |
A D | intel_pm.c | 2190 wm->pipe[pipe] = wm_state->wm[wm->level]; in vlv_merge_wm() 3915 if (!wm->wm[0].enable) in skl_crtc_can_enable_sagv() 3939 if (wm->wm[0].enable && !wm->wm[max_level].can_sagv) in skl_crtc_can_enable_sagv() 3958 if (wm->wm[0].enable && !wm->sagv.wm0.enable) in tgl_crtc_can_enable_sagv() 5052 return &wm->wm[level]; in skl_plane_wm_level() 5273 wm->wm[level].blocks = wm->wm[0].blocks; in skl_allocate_plane_ddb() 5274 wm->wm[level].lines = wm->wm[0].lines; in skl_allocate_plane_ddb() 5275 wm->wm[level].ignore_lines = wm->wm[0].ignore_lines; in skl_allocate_plane_ddb() 6590 wm->sagv.wm0 = wm->wm[0]; in skl_pipe_wm_get_hw_state() 6886 wm->sr.plane, wm->sr.cursor, wm->sr.fbc); in g4x_wm_get_hw_state() [all …]
|
/linux/drivers/media/platform/qcom/camss/ |
A D | camss-vfe-gen1.h | 21 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 …]
|
A D | camss-vfe-4-1.c | 273 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 …]
|
A D | camss-vfe-4-7.c | 324 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 …]
|
A D | camss-vfe-4-8.c | 386 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 …]
|
A D | camss-vfe-170.c | 265 writel_relaxed(val, vfe->base + VFE_BUS_WM_STRIDE(wm)); in vfe_wm_start() 270 writel_relaxed(val, vfe->base + VFE_BUS_WM_CFG(wm)); in vfe_wm_start() 273 static void vfe_wm_stop(struct vfe_device *vfe, u8 wm) in vfe_wm_stop() argument 276 writel_relaxed(0, vfe->base + VFE_BUS_WM_CFG(wm)); in vfe_wm_stop() 355 int i, wm; in vfe_isr() local 389 for (wm = 0; wm < MSM_VFE_IMAGE_MASTERS_NUM; wm++) in vfe_isr() 391 if (vfe_bus_status[1] & STATUS1_WM_CLIENT_BUF_DONE(wm)) in vfe_isr() 392 vfe->isr_ops.wm_done(vfe, wm); in vfe_isr() 651 static void vfe_isr_wm_done(struct vfe_device *vfe, u8 wm) in vfe_isr_wm_done() argument 662 if (vfe->wm_output_map[wm] == VFE_LINE_NONE) { in vfe_isr_wm_done() [all …]
|
/linux/Documentation/devicetree/bindings/pinctrl/ |
A D | pinctrl-vt8500.txt | 7 - 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/drivers/video/fbdev/ |
A D | i740fb.c | 219 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/drivers/gpu/drm/radeon/ |
A D | rs690.c | 274 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 …]
|
A D | rv515.c | 925 struct rv515_watermark *wm, in rv515_crtc_bandwidth_compute() argument 937 wm->lb_request_fifo_depth = 4; in rv515_crtc_bandwidth_compute() 954 wm->num_line_pair.full = dfixed_const(2); in rv515_crtc_bandwidth_compute() 964 wm->lb_request_fifo_depth = 4; in rv515_crtc_bandwidth_compute() 1010 wm->active_time.full = dfixed_div(wm->active_time, a); in rv515_crtc_bandwidth_compute() 1056 wm->dbpp.full = dfixed_const(2 * 16); in rv515_crtc_bandwidth_compute() 1063 wm->priority_mark_max.full = dfixed_div(wm->priority_mark_max, a); in rv515_crtc_bandwidth_compute() 1064 wm->priority_mark_max.full = dfixed_ceil(wm->priority_mark_max); in rv515_crtc_bandwidth_compute() 1070 wm->priority_mark.full = wm->priority_mark_max.full; in rv515_crtc_bandwidth_compute() 1074 wm->priority_mark.full = dfixed_ceil(wm->priority_mark); in rv515_crtc_bandwidth_compute() [all …]
|
/linux/arch/arm/boot/dts/ |
A D | wm8850.dtsi | 11 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 …]
|
A D | wm8650.dtsi | 11 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";
|
/linux/include/linux/ |
A D | wm97xx.h | 315 enum wm97xx_gpio_status wm97xx_get_gpio(struct wm97xx *wm, u32 gpio); 316 void wm97xx_set_gpio(struct wm97xx *wm, u32 gpio, 318 void wm97xx_config_gpio(struct wm97xx *wm, u32 gpio, 324 void wm97xx_set_suspend_mode(struct wm97xx *wm, u16 mode); 327 int wm97xx_reg_read(struct wm97xx *wm, u16 reg); 328 void wm97xx_reg_write(struct wm97xx *wm, u16 reg, u16 val); 331 int wm97xx_read_aux_adc(struct wm97xx *wm, u16 adcsel);
|
/linux/Documentation/devicetree/bindings/arm/ |
A D | vt8500.yaml | 20 - wm,wm8505 21 - wm,wm8650 22 - wm,wm8750 23 - wm,wm8850
|