Home
last modified time | relevance | path

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

123

/linux/sound/pci/ice1712/
H A Dwm8766.c18 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 …]
H A Dwm8776.c18 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()
51 static void snd_wm8776_update_agc_ctl(struct snd_wm8776 *wm) in snd_wm8776_update_agc_ctl() argument
55 switch (wm->agc_mode) { in snd_wm8776_update_agc_ctl()
72 if (wm->ctl[i].flags & flags_off) in snd_wm8776_update_agc_ctl()
73 snd_wm8776_activate_ctl(wm, wm->ctl[i].name, false); in snd_wm8776_update_agc_ctl()
74 else if (wm->ctl[i].flags & flags_on) in snd_wm8776_update_agc_ctl()
[all …]
H A Dmaya44.c70 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 …]
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/drivers/input/touchscreen/
H A Dmainstone-wm97xx.c100 static void wm97xx_acc_pen_up(struct wm97xx *wm) in wm97xx_acc_pen_up() argument
115 static int wm97xx_acc_pen_down(struct wm97xx *wm) in wm97xx_acc_pen_down() argument
146 dev_dbg(wm->dev, "Raw coordinates: x=%x, y=%x, p=%x\n", in wm97xx_acc_pen_down()
157 input_report_abs(wm->input_dev, ABS_X, x & 0xfff); in wm97xx_acc_pen_down()
158 input_report_abs(wm->input_dev, ABS_Y, y & 0xfff); in wm97xx_acc_pen_down()
159 input_report_abs(wm->input_dev, ABS_PRESSURE, p & 0xfff); in wm97xx_acc_pen_down()
160 input_report_key(wm->input_dev, BTN_TOUCH, (p != 0)); in wm97xx_acc_pen_down()
161 input_sync(wm->input_dev); in wm97xx_acc_pen_down()
168 static int wm97xx_acc_startup(struct wm97xx *wm) in wm97xx_acc_startup() argument
173 if (wm->ac97 == NULL) in wm97xx_acc_startup()
[all …]
/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);
22 void (*bus_disconnect_wm_from_rdi)(struct vfe_device *vfe, u8 wm, enum vfe_line_id id);
24 void (*bus_reload_wm)(struct vfe_device *vfe, u8 wm);
27 void (*enable_irq_wm_line)(struct vfe_device *vfe, u8 wm, enum vfe_line_id line_id,
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);
48 void (*wm_line_based)(struct vfe_device *vfe, u32 wm, struct v4l2_pix_format_mplane *pix,
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);
[all …]
/linux/tools/testing/selftests/kvm/arm64/
H A Darch_timer_edge_cases.c325 enum timer_view tv, irq_wait_method_t wm, bool reset_state, in test_timer_xval() argument
336 wm(); in test_timer_xval()
352 irq_wait_method_t wm, bool reset_state, in test_timer_cval() argument
355 test_timer_xval(timer, cval, TIMER_CVAL, wm, reset_state, reset_cnt); in test_timer_cval()
359 irq_wait_method_t wm, bool reset_state, in test_timer_tval() argument
362 test_timer_xval(timer, (u64)tval, TIMER_TVAL, wm, reset_state, in test_timer_tval()
383 u64 usec, sleep_method_t wm) in test_cval_no_irq() argument
385 test_xval_check_no_irq(timer, cval, usec, TIMER_CVAL, wm); in test_cval_no_irq()
389 sleep_method_t wm) in test_tval_no_irq() argument
392 test_xval_check_no_irq(timer, (u64)tval, usec, TIMER_TVAL, wm); in test_tval_no_irq()
[all …]
/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";
/linux/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/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()
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 …]
H A Drv515.c925 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()
956 wm->num_line_pair.full = dfixed_const(1); in rv515_crtc_bandwidth_compute()
961 request_fifo_depth.full = dfixed_mul(a, wm->num_line_pair); in rv515_crtc_bandwidth_compute()
964 wm->lb_request_fifo_depth = 4; in rv515_crtc_bandwidth_compute()
966 wm->lb_request_fifo_depth = dfixed_trunc(request_fifo_depth); in rv515_crtc_bandwidth_compute()
991 wm->consumption_rate.full = dfixed_div(a, consumption_time); in rv515_crtc_bandwidth_compute()
1009 wm->active_time.full = dfixed_mul(line_time, b); in rv515_crtc_bandwidth_compute()
1010 wm->active_time.full = dfixed_div(wm->active_time, a); in rv515_crtc_bandwidth_compute()
[all …]
/linux/arch/arm/boot/dts/vt8500/
H A Dwm8650.dtsi11 compatible = "wm,wm8650";
53 compatible = "wm,wm8650-pinctrl";
88 compatible = "wm,wm8650-pll-clock";
95 compatible = "wm,wm8650-pll-clock";
102 compatible = "wm,wm8650-pll-clock";
109 compatible = "wm,wm8650-pll-clock";
116 compatible = "wm,wm8650-pll-clock";
196 compatible = "wm,wm8505-sdhc";
205 compatible = "wm,wm8505-fb";
210 compatible = "wm,prizm-ge-rops";
H A Dwm8850.dtsi11 compatible = "wm,wm8850";
56 compatible = "wm,wm8850-pinctrl";
91 compatible = "wm,wm8850-pll-clock";
98 compatible = "wm,wm8850-pll-clock";
105 compatible = "wm,wm8850-pll-clock";
112 compatible = "wm,wm8850-pll-clock";
119 compatible = "wm,wm8850-pll-clock";
126 compatible = "wm,wm8850-pll-clock";
133 compatible = "wm,wm8850-pll-clock";
220 compatible = "wm,wm8505-fb";
[all …]
H A Dwm8750.dtsi11 compatible = "wm,wm8750";
59 compatible = "wm,wm8750-pinctrl";
94 compatible = "wm,wm8750-pll-clock";
101 compatible = "wm,wm8750-pll-clock";
108 compatible = "wm,wm8750-pll-clock";
115 compatible = "wm,wm8750-pll-clock";
122 compatible = "wm,wm8750-pll-clock";
328 compatible = "wm,wm8505-sdhc";
337 compatible = "wm,wm8505-i2c";
345 compatible = "wm,wm8505-i2c";
H A Dwm8750-apc8750.dts26 wm,pins = <168 169 170 171>;
27 wm,function = <2>; /* alt */
28 wm,pull = <2>; /* pull-up */
H A Dwm8505.dtsi11 compatible = "wm,wm8505";
57 compatible = "wm,wm8505-pinctrl";
224 compatible = "wm,wm8505-fb";
229 compatible = "wm,prizm-ge-rops";
288 compatible = "wm,wm8505-sdhc";
/linux/include/linux/
H A Dwm97xx.h311 enum wm97xx_gpio_status wm97xx_get_gpio(struct wm97xx *wm, u32 gpio);
312 void wm97xx_set_gpio(struct wm97xx *wm, u32 gpio,
314 void wm97xx_config_gpio(struct wm97xx *wm, u32 gpio,
320 void wm97xx_set_suspend_mode(struct wm97xx *wm, u16 mode);
323 int wm97xx_reg_read(struct wm97xx *wm, u16 reg);
324 void wm97xx_reg_write(struct wm97xx *wm, u16 reg, u16 val);
327 int wm97xx_read_aux_adc(struct wm97xx *wm, u16 adcsel);
H A Dparport_pc.h162 const unsigned char wm = (PARPORT_CONTROL_STROBE | in parport_pc_write_control() local
174 __parport_pc_frob_control (p, wm, d & wm); in parport_pc_write_control()
191 const unsigned char wm = (PARPORT_CONTROL_STROBE | in parport_pc_frob_control() local
208 mask &= wm; in parport_pc_frob_control()
209 val &= wm; in parport_pc_frob_control()
/linux/drivers/parport/
H A Dparport_gsc.h119 const unsigned char wm = (PARPORT_CONTROL_STROBE | in parport_gsc_write_control() local
131 __parport_gsc_frob_control (p, wm, d & wm); in parport_gsc_write_control()
148 const unsigned char wm = (PARPORT_CONTROL_STROBE | in parport_gsc_frob_control() local
165 mask &= wm; in parport_gsc_frob_control()
166 val &= wm; in parport_gsc_frob_control()
/linux/Documentation/devicetree/bindings/clock/
H A Dvt8500.txt10 "wm,wm8650-pll-clock" - for a WM8650 PLL clock
11 "wm,wm8750-pll-clock" - for a WM8750 PLL clock
12 "wm,wm8850-pll-clock" - for a WM8850 PLL clock
61 compatible = "wm,wm8650-pll-clock";
/linux/Documentation/devicetree/bindings/display/
H A Dwm,prizm-ge-rops.txt5 - compatible : "wm,prizm-ge-rops"
11 compatible = "wm,prizm-ge-rops";
H A Dwm,wm8505-fb.txt5 - compatible : "wm,wm8505-fb"
15 compatible = "wm,wm8505-fb";
/linux/drivers/net/ethernet/mscc/
H A Docelot_devlink.c223 int wm = ocelot_read_gix(ocelot, QSYS_RES_CFG, index); in ocelot_wm_read() local
225 return ocelot->ops->wm_dec(wm); in ocelot_wm_read()
230 u32 wm = ocelot->ops->wm_enc(val); in ocelot_wm_write() local
232 ocelot_write_gix(ocelot, wm, QSYS_RES_CFG, index); in ocelot_wm_write()
505 u16 ocelot_wm_dec(u16 wm) in ocelot_wm_dec() argument
507 if (wm & BIT(8)) in ocelot_wm_dec()
508 return (wm & GENMASK(7, 0)) * 16; in ocelot_wm_dec()
510 return wm; in ocelot_wm_dec()
/linux/drivers/gpu/drm/amd/display/dc/hubbub/dcn20/
H A Ddcn20_hubbub.c507 struct dcn_hubbub_wm *wm) in hubbub2_wm_read_state() argument
513 memset(wm, 0, sizeof(struct dcn_hubbub_wm)); in hubbub2_wm_read_state()
515 s = &wm->sets[0]; in hubbub2_wm_read_state()
526 s = &wm->sets[1]; in hubbub2_wm_read_state()
537 s = &wm->sets[2]; in hubbub2_wm_read_state()
548 s = &wm->sets[3]; in hubbub2_wm_read_state()

123