Lines Matching refs:mask
149 u16 mask, data; in subdev_s_clock_freq() local
151 mask = itv->card->gpio_audio_freq.mask; in subdev_s_clock_freq()
164 if (mask) in subdev_s_clock_freq()
165 write_reg((read_reg(IVTV_REG_GPIO_OUT) & ~mask) | (data & mask), IVTV_REG_GPIO_OUT); in subdev_s_clock_freq()
172 u16 mask; in subdev_g_tuner() local
174 mask = itv->card->gpio_audio_detect.mask; in subdev_g_tuner()
175 if (mask == 0 || (read_reg(IVTV_REG_GPIO_IN) & mask)) in subdev_g_tuner()
186 u16 mask, data; in subdev_s_tuner() local
188 mask = itv->card->gpio_audio_mode.mask; in subdev_s_tuner()
205 if (mask) in subdev_s_tuner()
206 write_reg((read_reg(IVTV_REG_GPIO_OUT) & ~mask) | (data & mask), IVTV_REG_GPIO_OUT); in subdev_s_tuner()
213 u16 mask, data; in subdev_s_radio() local
215 mask = itv->card->gpio_audio_input.mask; in subdev_s_radio()
217 if (mask) in subdev_s_radio()
218 write_reg((read_reg(IVTV_REG_GPIO_OUT) & ~mask) | (data & mask), IVTV_REG_GPIO_OUT); in subdev_s_radio()
226 u16 mask, data; in subdev_s_audio_routing() local
230 mask = itv->card->gpio_audio_input.mask; in subdev_s_audio_routing()
243 if (mask) in subdev_s_audio_routing()
244 write_reg((read_reg(IVTV_REG_GPIO_OUT) & ~mask) | (data & mask), IVTV_REG_GPIO_OUT); in subdev_s_audio_routing()
252 u16 mask, data; in subdev_s_ctrl() local
256 mask = itv->card->gpio_audio_mute.mask; in subdev_s_ctrl()
258 if (mask) in subdev_s_ctrl()
259 write_reg((read_reg(IVTV_REG_GPIO_OUT) & ~mask) | in subdev_s_ctrl()
260 (data & mask), IVTV_REG_GPIO_OUT); in subdev_s_ctrl()
282 u16 mask, data; in subdev_s_video_routing() local
286 mask = itv->card->gpio_video_input.mask; in subdev_s_video_routing()
293 if (mask) in subdev_s_video_routing()
294 write_reg((read_reg(IVTV_REG_GPIO_OUT) & ~mask) | (data & mask), IVTV_REG_GPIO_OUT); in subdev_s_video_routing()