| /linux/sound/pci/ice1712/ |
| H A 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 …]
|
| H A 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() 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 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 …]
|
| H 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);
|
| H 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/input/touchscreen/ |
| H A D | mainstone-wm97xx.c | 100 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 D | camss-vfe-gen1.h | 21 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 D | arch_timer_edge_cases.c | 325 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 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/ |
| H 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/ |
| H 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() 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 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() 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 D | wm8650.dtsi | 11 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 D | wm8850.dtsi | 11 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 D | wm8750.dtsi | 11 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 D | wm8750-apc8750.dts | 26 wm,pins = <168 169 170 171>; 27 wm,function = <2>; /* alt */ 28 wm,pull = <2>; /* pull-up */
|
| H A D | wm8505.dtsi | 11 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 D | wm97xx.h | 311 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 D | parport_pc.h | 162 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 D | parport_gsc.h | 119 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 D | vt8500.txt | 10 "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 D | wm,prizm-ge-rops.txt | 5 - compatible : "wm,prizm-ge-rops" 11 compatible = "wm,prizm-ge-rops";
|
| H A D | wm,wm8505-fb.txt | 5 - compatible : "wm,wm8505-fb" 15 compatible = "wm,wm8505-fb";
|
| /linux/drivers/net/ethernet/mscc/ |
| H A D | ocelot_devlink.c | 223 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 D | dcn20_hubbub.c | 507 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()
|