/Linux-v4.19/drivers/input/touchscreen/ |
D | wm97xx-core.c | 89 int wm97xx_reg_read(struct wm97xx *wm, u16 reg) in wm97xx_reg_read() argument 91 if (wm->ac97) in wm97xx_reg_read() 92 return wm->ac97->bus->ops->read(wm->ac97, reg); in wm97xx_reg_read() 98 void wm97xx_reg_write(struct wm97xx *wm, u16 reg, u16 val) in wm97xx_reg_write() argument 102 wm->dig[(reg - AC97_WM9713_DIG1) >> 1] = val; in wm97xx_reg_write() 106 wm->gpio[(reg - AC97_GPIO_CFG) >> 1] = val; in wm97xx_reg_write() 110 wm->misc = val; in wm97xx_reg_write() 112 if (wm->ac97) in wm97xx_reg_write() 113 wm->ac97->bus->ops->write(wm->ac97, reg, val); in wm97xx_reg_write() 125 int wm97xx_read_aux_adc(struct wm97xx *wm, u16 adcsel) in wm97xx_read_aux_adc() argument [all …]
|
D | wm9713.c | 156 static void wm9713_phy_init(struct wm97xx *wm) in wm9713_phy_init() argument 168 dev_info(wm->dev, "setting pen detect pull-up to %d Ohms\n", in wm9713_phy_init() 175 dev_info(wm->dev, "setting 5-wire touchscreen mode."); in wm9713_phy_init() 178 dev_warn(wm->dev, in wm9713_phy_init() 188 dev_info(wm->dev, in wm9713_phy_init() 191 dev_info(wm->dev, in wm9713_phy_init() 198 dev_info(wm->dev, "supplied delay out of range."); in wm9713_phy_init() 200 dev_info(wm->dev, "setting adc sample delay to %d u Secs.", in wm9713_phy_init() 211 wm->misc = wm97xx_reg_read(wm, 0x5a); in wm9713_phy_init() 213 wm97xx_reg_write(wm, AC97_WM9713_DIG1, dig1); in wm9713_phy_init() [all …]
|
D | wm9712.c | 156 static void wm9712_phy_init(struct wm97xx *wm) in wm9712_phy_init() argument 165 dev_dbg(wm->dev, "setting pen detect pull-up to %d Ohms\n", in wm9712_phy_init() 172 dev_dbg(wm->dev, "setting 5-wire touchscreen mode.\n"); in wm9712_phy_init() 175 dev_warn(wm->dev, "pressure measurement is not " in wm9712_phy_init() 184 dev_dbg(wm->dev, in wm9712_phy_init() 187 dev_dbg(wm->dev, in wm9712_phy_init() 194 dev_dbg(wm->dev, "supplied delay out of range.\n"); in wm9712_phy_init() 199 dev_dbg(wm->dev, "setting adc sample delay to %d u Secs.\n", in wm9712_phy_init() 207 reg = wm97xx_reg_read(wm, AC97_MISC_AFE); in wm9712_phy_init() 208 wm97xx_reg_write(wm, AC97_MISC_AFE, reg | WM97XX_GPIO_4); in wm9712_phy_init() [all …]
|
D | wm9705.c | 138 static void wm9705_phy_init(struct wm97xx *wm) in wm9705_phy_init() argument 146 wm97xx_reg_write(wm, AC97_AUX, 0x8000); in wm9705_phy_init() 147 wm97xx_reg_write(wm, AC97_VIDEO, 0x8000); in wm9705_phy_init() 152 dev_dbg(wm->dev, in wm9705_phy_init() 155 dev_dbg(wm->dev, in wm9705_phy_init() 163 dev_dbg(wm->dev, "supplied delay out of range."); in wm9705_phy_init() 169 dev_dbg(wm->dev, "setting adc sample delay to %d u Secs.", in wm9705_phy_init() 174 dev_dbg(wm->dev, "setting pdd to Vmid/%d", 1 - (pdd & 0x000f)); in wm9705_phy_init() 179 wm97xx_reg_write(wm, AC97_WM97XX_DIGITISER1, dig1); in wm9705_phy_init() 180 wm97xx_reg_write(wm, AC97_WM97XX_DIGITISER2, dig2); in wm9705_phy_init() [all …]
|
D | mainstone-wm97xx.c | 106 static void wm97xx_acc_pen_up(struct wm97xx *wm) in wm97xx_acc_pen_up() argument 114 static void wm97xx_acc_pen_up(struct wm97xx *wm) in wm97xx_acc_pen_up() argument 125 static int wm97xx_acc_pen_down(struct wm97xx *wm) in wm97xx_acc_pen_down() argument 155 dev_dbg(wm->dev, "Raw coordinates: x=%x, y=%x, p=%x\n", in wm97xx_acc_pen_down() 166 input_report_abs(wm->input_dev, ABS_X, x & 0xfff); in wm97xx_acc_pen_down() 167 input_report_abs(wm->input_dev, ABS_Y, y & 0xfff); in wm97xx_acc_pen_down() 168 input_report_abs(wm->input_dev, ABS_PRESSURE, p & 0xfff); in wm97xx_acc_pen_down() 169 input_report_key(wm->input_dev, BTN_TOUCH, (p != 0)); in wm97xx_acc_pen_down() 170 input_sync(wm->input_dev); in wm97xx_acc_pen_down() 177 static int wm97xx_acc_startup(struct wm97xx *wm) in wm97xx_acc_startup() argument [all …]
|
D | zylonite-wm97xx.c | 80 static void wm97xx_acc_pen_up(struct wm97xx *wm) in wm97xx_acc_pen_up() argument 90 static int wm97xx_acc_pen_down(struct wm97xx *wm) in wm97xx_acc_pen_down() argument 121 dev_dbg(wm->dev, "Raw coordinates: x=%x, y=%x, p=%x\n", in wm97xx_acc_pen_down() 132 input_report_abs(wm->input_dev, ABS_X, x & 0xfff); in wm97xx_acc_pen_down() 133 input_report_abs(wm->input_dev, ABS_Y, y & 0xfff); in wm97xx_acc_pen_down() 134 input_report_abs(wm->input_dev, ABS_PRESSURE, p & 0xfff); in wm97xx_acc_pen_down() 135 input_report_key(wm->input_dev, BTN_TOUCH, (p != 0)); in wm97xx_acc_pen_down() 136 input_sync(wm->input_dev); in wm97xx_acc_pen_down() 143 static int wm97xx_acc_startup(struct wm97xx *wm) in wm97xx_acc_startup() argument 148 if (wm->ac97 == NULL) in wm97xx_acc_startup() [all …]
|
/Linux-v4.19/sound/pci/ice1712/ |
D | wm8766.c | 32 static void snd_wm8766_write(struct snd_wm8766 *wm, u16 addr, u16 data) in snd_wm8766_write() argument 35 wm->regs[addr] = data; in snd_wm8766_write() 36 wm->ops.write(wm, addr, data); in snd_wm8766_write() 151 void snd_wm8766_init(struct snd_wm8766 *wm) in snd_wm8766_init() argument 161 memcpy(wm->ctl, snd_wm8766_default_ctl, sizeof(wm->ctl)); in snd_wm8766_init() 163 snd_wm8766_write(wm, WM8766_REG_RESET, 0x00); /* reset */ in snd_wm8766_init() 167 snd_wm8766_write(wm, i, default_values[i]); in snd_wm8766_init() 170 void snd_wm8766_resume(struct snd_wm8766 *wm) in snd_wm8766_resume() argument 175 snd_wm8766_write(wm, i, wm->regs[i]); in snd_wm8766_resume() 178 void snd_wm8766_set_if(struct snd_wm8766 *wm, u16 dac) in snd_wm8766_set_if() argument [all …]
|
D | wm8776.c | 32 static void snd_wm8776_write(struct snd_wm8776 *wm, u16 addr, u16 data) in snd_wm8776_write() argument 38 wm->regs[addr] = data; in snd_wm8776_write() 39 wm->ops.write(wm, bus_addr, bus_data); in snd_wm8776_write() 44 static void snd_wm8776_activate_ctl(struct snd_wm8776 *wm, in snd_wm8776_activate_ctl() argument 48 struct snd_card *card = wm->card; in snd_wm8776_activate_ctl() 69 static void snd_wm8776_update_agc_ctl(struct snd_wm8776 *wm) in snd_wm8776_update_agc_ctl() argument 73 switch (wm->agc_mode) { in snd_wm8776_update_agc_ctl() 90 if (wm->ctl[i].flags & flags_off) in snd_wm8776_update_agc_ctl() 91 snd_wm8776_activate_ctl(wm, wm->ctl[i].name, false); in snd_wm8776_update_agc_ctl() 92 else if (wm->ctl[i].flags & flags_on) in snd_wm8776_update_agc_ctl() [all …]
|
D | maya44.c | 84 struct snd_wm8776 wm[2]; member 90 static void wm8776_write(struct snd_ice1712 *ice, struct snd_wm8776 *wm, in wm8776_write() argument 97 snd_vt1724_write_i2c(ice, wm->addr, in wm8776_write() 100 wm->regs[reg] = val; in wm8776_write() 106 static int wm8776_write_bits(struct snd_ice1712 *ice, struct snd_wm8776 *wm, in wm8776_write_bits() argument 110 val |= wm->regs[reg] & ~mask; in wm8776_write_bits() 111 if (val != wm->regs[reg]) { in wm8776_write_bits() 112 wm8776_write(ice, wm, reg, val); in wm8776_write_bits() 188 struct snd_wm8776 *wm = in maya_vol_get() local 189 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_vol_get() [all …]
|
D | wm8766.h | 102 void (*write)(struct snd_wm8766 *wm, u16 addr, u16 data); 139 void (*set)(struct snd_wm8766 *wm, u16 ch1, u16 ch2); 140 void (*get)(struct snd_wm8766 *wm, u16 *ch1, u16 *ch2); 155 void snd_wm8766_init(struct snd_wm8766 *wm); 156 void snd_wm8766_resume(struct snd_wm8766 *wm); 157 void snd_wm8766_set_if(struct snd_wm8766 *wm, u16 dac); 158 void snd_wm8766_volume_restore(struct snd_wm8766 *wm); 159 int snd_wm8766_build_controls(struct snd_wm8766 *wm);
|
D | wm8776.h | 141 void (*write)(struct snd_wm8776 *wm, u8 addr, u8 data); 195 void (*set)(struct snd_wm8776 *wm, u16 ch1, u16 ch2); 196 void (*get)(struct snd_wm8776 *wm, u16 *ch1, u16 *ch2); 217 void snd_wm8776_init(struct snd_wm8776 *wm); 218 void snd_wm8776_resume(struct snd_wm8776 *wm); 219 void snd_wm8776_set_power(struct snd_wm8776 *wm, u16 power); 220 void snd_wm8776_volume_restore(struct snd_wm8776 *wm); 221 int snd_wm8776_build_controls(struct snd_wm8776 *wm);
|
/Linux-v4.19/drivers/gpu/drm/i915/ |
D | intel_pm.c | 443 mutex_lock(&dev_priv->wm.wm_mutex); in intel_set_memory_cxsr() 446 dev_priv->wm.vlv.cxsr = enable; in intel_set_memory_cxsr() 448 dev_priv->wm.g4x.cxsr = enable; in intel_set_memory_cxsr() 449 mutex_unlock(&dev_priv->wm.wm_mutex); in intel_set_memory_cxsr() 477 struct vlv_fifo_state *fifo_state = &crtc_state->wm.vlv.fifo_state; in vlv_get_fifo_size() 748 const struct intel_watermark_params *wm, in intel_calculate_wm() argument 762 entries = DIV_ROUND_UP(entries, wm->cacheline_size) + in intel_calculate_wm() 763 wm->guard_size; in intel_calculate_wm() 770 if (wm_size > wm->max_wm) in intel_calculate_wm() 771 wm_size = wm->max_wm; in intel_calculate_wm() [all …]
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/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";
|
/Linux-v4.19/drivers/video/fbdev/ |
D | i740fb.c | 218 u32 wm; in i740_calc_fifo() local 223 wm = 0x18120000; in i740_calc_fifo() 225 wm = 0x16110000; in i740_calc_fifo() 227 wm = 0x120E0000; in i740_calc_fifo() 229 wm = 0x100D0000; in i740_calc_fifo() 235 wm = 0x2C1D0000; in i740_calc_fifo() 237 wm = 0x2C180000; in i740_calc_fifo() 239 wm = 0x24160000; in i740_calc_fifo() 241 wm = 0x18120000; in i740_calc_fifo() 243 wm = 0x16110000; in i740_calc_fifo() [all …]
|
/Linux-v4.19/arch/arm/boot/dts/ |
D | wm8650.dtsi | 12 compatible = "wm,wm8650"; 53 compatible = "wm,wm8650-pinctrl"; 83 compatible = "wm,wm8650-pll-clock"; 90 compatible = "wm,wm8650-pll-clock"; 97 compatible = "wm,wm8650-pll-clock"; 104 compatible = "wm,wm8650-pll-clock"; 111 compatible = "wm,wm8650-pll-clock"; 191 compatible = "wm,wm8505-sdhc"; 200 compatible = "wm,wm8505-fb"; 205 compatible = "wm,prizm-ge-rops";
|
D | wm8850.dtsi | 12 compatible = "wm,wm8850"; 56 compatible = "wm,wm8850-pinctrl"; 86 compatible = "wm,wm8850-pll-clock"; 93 compatible = "wm,wm8850-pll-clock"; 100 compatible = "wm,wm8850-pll-clock"; 107 compatible = "wm,wm8850-pll-clock"; 114 compatible = "wm,wm8850-pll-clock"; 121 compatible = "wm,wm8850-pll-clock"; 128 compatible = "wm,wm8850-pll-clock"; 215 compatible = "wm,wm8505-fb"; [all …]
|
D | wm8750.dtsi | 12 compatible = "wm,wm8750"; 59 compatible = "wm,wm8750-pinctrl"; 89 compatible = "wm,wm8750-pll-clock"; 96 compatible = "wm,wm8750-pll-clock"; 103 compatible = "wm,wm8750-pll-clock"; 110 compatible = "wm,wm8750-pll-clock"; 117 compatible = "wm,wm8750-pll-clock"; 323 compatible = "wm,wm8505-sdhc"; 332 compatible = "wm,wm8505-i2c"; 340 compatible = "wm,wm8505-i2c";
|
/Linux-v4.19/drivers/gpu/drm/radeon/ |
D | rs690.c | 272 struct rs690_watermark *wm, in rs690_crtc_bandwidth_compute() argument 284 wm->lb_request_fifo_depth = 4; in rs690_crtc_bandwidth_compute() 304 wm->num_line_pair.full = dfixed_const(2); in rs690_crtc_bandwidth_compute() 306 wm->num_line_pair.full = dfixed_const(1); in rs690_crtc_bandwidth_compute() 311 request_fifo_depth.full = dfixed_mul(a, wm->num_line_pair); in rs690_crtc_bandwidth_compute() 314 wm->lb_request_fifo_depth = 4; in rs690_crtc_bandwidth_compute() 316 wm->lb_request_fifo_depth = dfixed_trunc(request_fifo_depth); in rs690_crtc_bandwidth_compute() 341 wm->consumption_rate.full = dfixed_div(a, consumption_time); in rs690_crtc_bandwidth_compute() 359 wm->active_time.full = dfixed_mul(line_time, b); in rs690_crtc_bandwidth_compute() 360 wm->active_time.full = dfixed_div(wm->active_time, a); in rs690_crtc_bandwidth_compute() [all …]
|
/Linux-v4.19/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);
|
/Linux-v4.19/arch/xtensa/kernel/ |
D | process.c | 337 unsigned long wb, ws, wm; in xtensa_elf_core_copy_regs() local 342 wm = regs->wmask; in xtensa_elf_core_copy_regs() 361 live = (wm & 2) ? 4 : (wm & 4) ? 8 : (wm & 8) ? 12 : 16; in xtensa_elf_core_copy_regs() 362 last = XCHAL_NUM_AREGS - (wm >> 4) * 4; in xtensa_elf_core_copy_regs() 364 memcpy(elfregs->a + last, regs->areg + last, (wm >> 4) * 16); in xtensa_elf_core_copy_regs()
|
/Linux-v4.19/drivers/parport/ |
D | parport_gsc.h | 136 const unsigned char wm = (PARPORT_CONTROL_STROBE | in parport_gsc_write_control() local 148 __parport_gsc_frob_control (p, wm, d & wm); in parport_gsc_write_control() 165 const unsigned char wm = (PARPORT_CONTROL_STROBE | in parport_gsc_frob_control() local 182 mask &= wm; in parport_gsc_frob_control() 183 val &= wm; in parport_gsc_frob_control()
|
/Linux-v4.19/Documentation/devicetree/bindings/arm/ |
D | vt8500.txt | 10 compatible = "wm,wm8505"; 14 compatible = "wm,wm8650"; 18 compatible = "wm,wm8750"; 22 compatible = "wm,wm8850";
|