/kernel/linux/linux-5.10/drivers/input/touchscreen/ |
D | wm97xx-core.c | 84 int wm97xx_reg_read(struct wm97xx *wm, u16 reg) in wm97xx_reg_read() argument 86 if (wm->ac97) in wm97xx_reg_read() 87 return wm->ac97->bus->ops->read(wm->ac97, reg); in wm97xx_reg_read() 93 void wm97xx_reg_write(struct wm97xx *wm, u16 reg, u16 val) in wm97xx_reg_write() argument 97 wm->dig[(reg - AC97_WM9713_DIG1) >> 1] = val; in wm97xx_reg_write() 101 wm->gpio[(reg - AC97_GPIO_CFG) >> 1] = val; in wm97xx_reg_write() 105 wm->misc = val; in wm97xx_reg_write() 107 if (wm->ac97) in wm97xx_reg_write() 108 wm->ac97->bus->ops->write(wm->ac97, reg, val); in wm97xx_reg_write() 120 int wm97xx_read_aux_adc(struct wm97xx *wm, u16 adcsel) in wm97xx_read_aux_adc() argument [all …]
|
D | wm9713.c | 151 static void wm9713_phy_init(struct wm97xx *wm) in wm9713_phy_init() argument 163 dev_info(wm->dev, "setting pen detect pull-up to %d Ohms\n", in wm9713_phy_init() 170 dev_info(wm->dev, "setting 5-wire touchscreen mode."); in wm9713_phy_init() 173 dev_warn(wm->dev, in wm9713_phy_init() 183 dev_info(wm->dev, in wm9713_phy_init() 186 dev_info(wm->dev, in wm9713_phy_init() 193 dev_info(wm->dev, "supplied delay out of range."); in wm9713_phy_init() 195 dev_info(wm->dev, "setting adc sample delay to %d u Secs.", in wm9713_phy_init() 206 wm->misc = wm97xx_reg_read(wm, 0x5a); in wm9713_phy_init() 208 wm97xx_reg_write(wm, AC97_WM9713_DIG1, dig1); in wm9713_phy_init() [all …]
|
D | wm9712.c | 151 static void wm9712_phy_init(struct wm97xx *wm) in wm9712_phy_init() argument 160 dev_dbg(wm->dev, "setting pen detect pull-up to %d Ohms\n", in wm9712_phy_init() 167 dev_dbg(wm->dev, "setting 5-wire touchscreen mode.\n"); in wm9712_phy_init() 170 dev_warn(wm->dev, "pressure measurement is not " in wm9712_phy_init() 179 dev_dbg(wm->dev, in wm9712_phy_init() 182 dev_dbg(wm->dev, in wm9712_phy_init() 189 dev_dbg(wm->dev, "supplied delay out of range.\n"); in wm9712_phy_init() 194 dev_dbg(wm->dev, "setting adc sample delay to %d u Secs.\n", in wm9712_phy_init() 202 reg = wm97xx_reg_read(wm, AC97_MISC_AFE); in wm9712_phy_init() 203 wm97xx_reg_write(wm, AC97_MISC_AFE, reg | WM97XX_GPIO_4); in wm9712_phy_init() [all …]
|
D | wm9705.c | 133 static void wm9705_phy_init(struct wm97xx *wm) in wm9705_phy_init() argument 141 wm97xx_reg_write(wm, AC97_AUX, 0x8000); in wm9705_phy_init() 142 wm97xx_reg_write(wm, AC97_VIDEO, 0x8000); in wm9705_phy_init() 147 dev_dbg(wm->dev, in wm9705_phy_init() 150 dev_dbg(wm->dev, in wm9705_phy_init() 158 dev_dbg(wm->dev, "supplied delay out of range."); in wm9705_phy_init() 164 dev_dbg(wm->dev, "setting adc sample delay to %d u Secs.", in wm9705_phy_init() 169 dev_dbg(wm->dev, "setting pdd to Vmid/%d", 1 - (pdd & 0x000f)); in wm9705_phy_init() 174 wm97xx_reg_write(wm, AC97_WM97XX_DIGITISER1, dig1); in wm9705_phy_init() 175 wm97xx_reg_write(wm, AC97_WM97XX_DIGITISER2, dig2); in wm9705_phy_init() [all …]
|
D | mainstone-wm97xx.c | 101 static void wm97xx_acc_pen_up(struct wm97xx *wm) in wm97xx_acc_pen_up() argument 109 static void wm97xx_acc_pen_up(struct wm97xx *wm) in wm97xx_acc_pen_up() argument 120 static int wm97xx_acc_pen_down(struct wm97xx *wm) in wm97xx_acc_pen_down() argument 150 dev_dbg(wm->dev, "Raw coordinates: x=%x, y=%x, p=%x\n", in wm97xx_acc_pen_down() 161 input_report_abs(wm->input_dev, ABS_X, x & 0xfff); in wm97xx_acc_pen_down() 162 input_report_abs(wm->input_dev, ABS_Y, y & 0xfff); in wm97xx_acc_pen_down() 163 input_report_abs(wm->input_dev, ABS_PRESSURE, p & 0xfff); in wm97xx_acc_pen_down() 164 input_report_key(wm->input_dev, BTN_TOUCH, (p != 0)); in wm97xx_acc_pen_down() 165 input_sync(wm->input_dev); in wm97xx_acc_pen_down() 172 static int wm97xx_acc_startup(struct wm97xx *wm) in wm97xx_acc_startup() argument [all …]
|
D | zylonite-wm97xx.c | 76 static void wm97xx_acc_pen_up(struct wm97xx *wm) in wm97xx_acc_pen_up() argument 86 static int wm97xx_acc_pen_down(struct wm97xx *wm) in wm97xx_acc_pen_down() argument 117 dev_dbg(wm->dev, "Raw coordinates: x=%x, y=%x, p=%x\n", in wm97xx_acc_pen_down() 128 input_report_abs(wm->input_dev, ABS_X, x & 0xfff); in wm97xx_acc_pen_down() 129 input_report_abs(wm->input_dev, ABS_Y, y & 0xfff); in wm97xx_acc_pen_down() 130 input_report_abs(wm->input_dev, ABS_PRESSURE, p & 0xfff); in wm97xx_acc_pen_down() 131 input_report_key(wm->input_dev, BTN_TOUCH, (p != 0)); in wm97xx_acc_pen_down() 132 input_sync(wm->input_dev); in wm97xx_acc_pen_down() 139 static int wm97xx_acc_startup(struct wm97xx *wm) in wm97xx_acc_startup() argument 144 if (wm->ac97 == NULL) in wm97xx_acc_startup() [all …]
|
/kernel/linux/linux-5.10/sound/pci/ice1712/ |
D | wm8766.c | 18 static void snd_wm8766_write(struct snd_wm8766 *wm, u16 addr, u16 data) in snd_wm8766_write() argument 21 wm->regs[addr] = data; in snd_wm8766_write() 22 wm->ops.write(wm, addr, data); in snd_wm8766_write() 137 void snd_wm8766_init(struct snd_wm8766 *wm) in snd_wm8766_init() argument 147 memcpy(wm->ctl, snd_wm8766_default_ctl, sizeof(wm->ctl)); in snd_wm8766_init() 149 snd_wm8766_write(wm, WM8766_REG_RESET, 0x00); /* reset */ in snd_wm8766_init() 153 snd_wm8766_write(wm, i, default_values[i]); in snd_wm8766_init() 156 void snd_wm8766_resume(struct snd_wm8766 *wm) in snd_wm8766_resume() argument 161 snd_wm8766_write(wm, i, wm->regs[i]); in snd_wm8766_resume() 164 void snd_wm8766_set_if(struct snd_wm8766 *wm, u16 dac) in snd_wm8766_set_if() argument [all …]
|
D | wm8776.c | 18 static void snd_wm8776_write(struct snd_wm8776 *wm, u16 addr, u16 data) in snd_wm8776_write() argument 24 wm->regs[addr] = data; in snd_wm8776_write() 25 wm->ops.write(wm, bus_addr, bus_data); in snd_wm8776_write() 30 static void snd_wm8776_activate_ctl(struct snd_wm8776 *wm, in snd_wm8776_activate_ctl() argument 34 struct snd_card *card = wm->card; in snd_wm8776_activate_ctl() 55 static void snd_wm8776_update_agc_ctl(struct snd_wm8776 *wm) in snd_wm8776_update_agc_ctl() argument 59 switch (wm->agc_mode) { in snd_wm8776_update_agc_ctl() 76 if (wm->ctl[i].flags & flags_off) in snd_wm8776_update_agc_ctl() 77 snd_wm8776_activate_ctl(wm, wm->ctl[i].name, false); in snd_wm8776_update_agc_ctl() 78 else if (wm->ctl[i].flags & flags_on) in snd_wm8776_update_agc_ctl() [all …]
|
D | maya44.c | 70 struct snd_wm8776 wm[2]; member 76 static void wm8776_write(struct snd_ice1712 *ice, struct snd_wm8776 *wm, in wm8776_write() argument 83 snd_vt1724_write_i2c(ice, wm->addr, in wm8776_write() 86 wm->regs[reg] = val; in wm8776_write() 92 static int wm8776_write_bits(struct snd_ice1712 *ice, struct snd_wm8776 *wm, in wm8776_write_bits() argument 96 val |= wm->regs[reg] & ~mask; in wm8776_write_bits() 97 if (val != wm->regs[reg]) { in wm8776_write_bits() 98 wm8776_write(ice, wm, reg, val); in wm8776_write_bits() 174 struct snd_wm8776 *wm = in maya_vol_get() local 175 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_vol_get() [all …]
|
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);
|
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);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
D | intel_pm.c | 455 mutex_lock(&dev_priv->wm.wm_mutex); in intel_set_memory_cxsr() 458 dev_priv->wm.vlv.cxsr = enable; in intel_set_memory_cxsr() 460 dev_priv->wm.g4x.cxsr = enable; in intel_set_memory_cxsr() 461 mutex_unlock(&dev_priv->wm.wm_mutex); in intel_set_memory_cxsr() 489 struct vlv_fifo_state *fifo_state = &crtc_state->wm.vlv.fifo_state; in vlv_get_fifo_size() 769 const struct intel_watermark_params *wm, in intel_calculate_wm() argument 783 entries = DIV_ROUND_UP(entries, wm->cacheline_size) + in intel_calculate_wm() 784 wm->guard_size; in intel_calculate_wm() 791 if (wm_size > wm->max_wm) in intel_calculate_wm() 792 wm_size = wm->max_wm; in intel_calculate_wm() [all …]
|
/kernel/linux/linux-5.10/drivers/media/platform/qcom/camss/ |
D | camss-vfe.h | 86 void (*wm_enable)(struct vfe_device *vfe, u8 wm, u8 enable); 87 void (*wm_frame_based)(struct vfe_device *vfe, u8 wm, u8 enable); 88 void (*wm_line_based)(struct vfe_device *vfe, u32 wm, 91 void (*wm_set_framedrop_period)(struct vfe_device *vfe, u8 wm, u8 per); 92 void (*wm_set_framedrop_pattern)(struct vfe_device *vfe, u8 wm, 94 void (*wm_set_ub_cfg)(struct vfe_device *vfe, u8 wm, u16 offset, 96 void (*bus_reload_wm)(struct vfe_device *vfe, u8 wm); 97 void (*wm_set_ping_addr)(struct vfe_device *vfe, u8 wm, u32 addr); 98 void (*wm_set_pong_addr)(struct vfe_device *vfe, u8 wm, u32 addr); 99 int (*wm_get_ping_pong_status)(struct vfe_device *vfe, u8 wm); [all …]
|
D | camss-vfe-4-1.c | 266 static void vfe_wm_enable(struct vfe_device *vfe, u8 wm, u8 enable) in vfe_wm_enable() argument 269 vfe_reg_set(vfe, VFE_0_BUS_IMAGE_MASTER_n_WR_CFG(wm), in vfe_wm_enable() 272 vfe_reg_clr(vfe, VFE_0_BUS_IMAGE_MASTER_n_WR_CFG(wm), in vfe_wm_enable() 276 static void vfe_wm_frame_based(struct vfe_device *vfe, u8 wm, u8 enable) in vfe_wm_frame_based() argument 279 vfe_reg_set(vfe, VFE_0_BUS_IMAGE_MASTER_n_WR_CFG(wm), in vfe_wm_frame_based() 282 vfe_reg_clr(vfe, VFE_0_BUS_IMAGE_MASTER_n_WR_CFG(wm), in vfe_wm_frame_based() 331 static void vfe_wm_line_based(struct vfe_device *vfe, u32 wm, in vfe_wm_line_based() argument 348 VFE_0_BUS_IMAGE_MASTER_n_WR_IMAGE_SIZE(wm)); in vfe_wm_line_based() 357 VFE_0_BUS_IMAGE_MASTER_n_WR_BUFFER_CFG(wm)); in vfe_wm_line_based() 360 VFE_0_BUS_IMAGE_MASTER_n_WR_IMAGE_SIZE(wm)); in vfe_wm_line_based() [all …]
|
D | camss-vfe-4-7.c | 302 static void vfe_wm_enable(struct vfe_device *vfe, u8 wm, u8 enable) in vfe_wm_enable() argument 305 vfe_reg_set(vfe, VFE_0_BUS_IMAGE_MASTER_n_WR_CFG(wm), in vfe_wm_enable() 308 vfe_reg_clr(vfe, VFE_0_BUS_IMAGE_MASTER_n_WR_CFG(wm), in vfe_wm_enable() 312 static void vfe_wm_frame_based(struct vfe_device *vfe, u8 wm, u8 enable) in vfe_wm_frame_based() argument 315 vfe_reg_set(vfe, VFE_0_BUS_IMAGE_MASTER_n_WR_ADDR_CFG(wm), in vfe_wm_frame_based() 318 vfe_reg_clr(vfe, VFE_0_BUS_IMAGE_MASTER_n_WR_ADDR_CFG(wm), in vfe_wm_frame_based() 381 static void vfe_wm_line_based(struct vfe_device *vfe, u32 wm, in vfe_wm_line_based() argument 398 VFE_0_BUS_IMAGE_MASTER_n_WR_IMAGE_SIZE(wm)); in vfe_wm_line_based() 407 VFE_0_BUS_IMAGE_MASTER_n_WR_BUFFER_CFG(wm)); in vfe_wm_line_based() 410 VFE_0_BUS_IMAGE_MASTER_n_WR_IMAGE_SIZE(wm)); in vfe_wm_line_based() [all …]
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/pinctrl/ |
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";
|
/kernel/linux/linux-5.10/drivers/video/fbdev/ |
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 …]
|
/kernel/linux/linux-5.10/arch/arm/boot/dts/ |
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"; 132 compatible = "wm,wm8850-pll-clock"; 219 compatible = "wm,wm8505-fb"; [all …]
|
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";
|
D | wm8750.dtsi | 11 compatible = "wm,wm8750"; 63 compatible = "wm,wm8750-pinctrl"; 93 compatible = "wm,wm8750-pll-clock"; 100 compatible = "wm,wm8750-pll-clock"; 107 compatible = "wm,wm8750-pll-clock"; 114 compatible = "wm,wm8750-pll-clock"; 121 compatible = "wm,wm8750-pll-clock"; 327 compatible = "wm,wm8505-sdhc"; 336 compatible = "wm,wm8505-i2c"; 344 compatible = "wm,wm8505-i2c";
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
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() 313 request_fifo_depth.full = dfixed_mul(a, wm->num_line_pair); in rs690_crtc_bandwidth_compute() 316 wm->lb_request_fifo_depth = 4; in rs690_crtc_bandwidth_compute() 318 wm->lb_request_fifo_depth = dfixed_trunc(request_fifo_depth); in rs690_crtc_bandwidth_compute() 343 wm->consumption_rate.full = dfixed_div(a, consumption_time); in rs690_crtc_bandwidth_compute() 361 wm->active_time.full = dfixed_mul(line_time, b); in rs690_crtc_bandwidth_compute() 362 wm->active_time.full = dfixed_div(wm->active_time, a); in rs690_crtc_bandwidth_compute() [all …]
|
D | rv515.c | 957 struct rv515_watermark *wm, in rv515_crtc_bandwidth_compute() argument 969 wm->lb_request_fifo_depth = 4; in rv515_crtc_bandwidth_compute() 986 wm->num_line_pair.full = dfixed_const(2); in rv515_crtc_bandwidth_compute() 988 wm->num_line_pair.full = dfixed_const(1); in rv515_crtc_bandwidth_compute() 993 request_fifo_depth.full = dfixed_mul(a, wm->num_line_pair); in rv515_crtc_bandwidth_compute() 996 wm->lb_request_fifo_depth = 4; in rv515_crtc_bandwidth_compute() 998 wm->lb_request_fifo_depth = dfixed_trunc(request_fifo_depth); in rv515_crtc_bandwidth_compute() 1023 wm->consumption_rate.full = dfixed_div(a, consumption_time); in rv515_crtc_bandwidth_compute() 1041 wm->active_time.full = dfixed_mul(line_time, b); in rv515_crtc_bandwidth_compute() 1042 wm->active_time.full = dfixed_div(wm->active_time, a); in rv515_crtc_bandwidth_compute() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | wm97xx.h | 316 enum wm97xx_gpio_status wm97xx_get_gpio(struct wm97xx *wm, u32 gpio); 317 void wm97xx_set_gpio(struct wm97xx *wm, u32 gpio, 319 void wm97xx_config_gpio(struct wm97xx *wm, u32 gpio, 325 void wm97xx_set_suspend_mode(struct wm97xx *wm, u16 mode); 328 int wm97xx_reg_read(struct wm97xx *wm, u16 reg); 329 void wm97xx_reg_write(struct wm97xx *wm, u16 reg, u16 val); 332 int wm97xx_read_aux_adc(struct wm97xx *wm, u16 adcsel);
|
D | parport_pc.h | 159 const unsigned char wm = (PARPORT_CONTROL_STROBE | in parport_pc_write_control() local 171 __parport_pc_frob_control (p, wm, d & wm); in parport_pc_write_control() 188 const unsigned char wm = (PARPORT_CONTROL_STROBE | in parport_pc_frob_control() local 205 mask &= wm; in parport_pc_frob_control() 206 val &= wm; in parport_pc_frob_control()
|
/kernel/linux/linux-5.10/drivers/parport/ |
D | parport_gsc.h | 121 const unsigned char wm = (PARPORT_CONTROL_STROBE | in parport_gsc_write_control() local 133 __parport_gsc_frob_control (p, wm, d & wm); in parport_gsc_write_control() 150 const unsigned char wm = (PARPORT_CONTROL_STROBE | in parport_gsc_frob_control() local 167 mask &= wm; in parport_gsc_frob_control() 168 val &= wm; in parport_gsc_frob_control()
|