Lines Matching +full:enable +full:- +full:mask

4  * Copyright (C) 2009 Texas Instruments Incorporated - https://www.ti.com/
147 /* Macro for Generating mask */
153 ((((0xFFFFFFFF) << (32 - bits)) >> (32 - bits)) << pos)
176 /* Mask various length */
191 /* bit position of clock and channel enable in vpif_chn_ctrl register */
270 /* inline function to enable/disable channel0 */
271 static inline void enable_channel0(int enable) in enable_channel0() argument
273 if (enable) in enable_channel0()
279 /* inline function to enable/disable channel1 */
280 static inline void enable_channel1(int enable) in enable_channel1() argument
282 if (enable) in enable_channel1()
288 /* inline function to enable interrupt for channel0 */
289 static inline void channel0_intr_enable(int enable) in channel0_intr_enable() argument
295 if (enable) { in channel0_intr_enable()
310 /* inline function to enable interrupt for channel1 */
311 static inline void channel1_intr_enable(int enable) in channel1_intr_enable() argument
317 if (enable) { in channel1_intr_enable()
396 /* Inline function to enable raw vbi in the given channel */
425 /* inline function to enable/disable channel2 */
426 static inline void enable_channel2(int enable) in enable_channel2() argument
428 if (enable) { in enable_channel2()
437 /* inline function to enable/disable channel3 */
438 static inline void enable_channel3(int enable) in enable_channel3() argument
440 if (enable) { in enable_channel3()
449 /* inline function to enable interrupt for channel2 */
450 static inline void channel2_intr_enable(int enable) in channel2_intr_enable() argument
456 if (enable) { in channel2_intr_enable()
470 /* inline function to enable interrupt for channel3 */
471 static inline void channel3_intr_enable(int enable) in channel3_intr_enable() argument
477 if (enable) { in channel3_intr_enable()
492 /* inline function to enable raw vbi data for channel2 */
493 static inline void channel2_raw_enable(int enable, u8 index) in channel2_raw_enable() argument
495 u32 mask; in channel2_raw_enable() local
498 mask = VPIF_CH_VANC_EN_BIT; in channel2_raw_enable()
500 mask = VPIF_CH_HANC_EN_BIT; in channel2_raw_enable()
502 if (enable) in channel2_raw_enable()
503 vpif_set_bit(VPIF_CH2_CTRL, mask); in channel2_raw_enable()
505 vpif_clr_bit(VPIF_CH2_CTRL, mask); in channel2_raw_enable()
508 /* inline function to enable raw vbi data for channel3*/
509 static inline void channel3_raw_enable(int enable, u8 index) in channel3_raw_enable() argument
511 u32 mask; in channel3_raw_enable() local
514 mask = VPIF_CH_VANC_EN_BIT; in channel3_raw_enable()
516 mask = VPIF_CH_HANC_EN_BIT; in channel3_raw_enable()
518 if (enable) in channel3_raw_enable()
519 vpif_set_bit(VPIF_CH3_CTRL, mask); in channel3_raw_enable()
521 vpif_clr_bit(VPIF_CH3_CTRL, mask); in channel3_raw_enable()
524 /* function to enable clipping (for both active and blanking regions) on ch 2 */
525 static inline void channel2_clipping_enable(int enable) in channel2_clipping_enable() argument
527 if (enable) { in channel2_clipping_enable()
536 /* function to enable clipping (for both active and blanking regions) on ch 3 */
537 static inline void channel3_clipping_enable(int enable) in channel3_clipping_enable() argument
539 if (enable) { in channel3_clipping_enable()
605 int mask; in vpif_intr_status() local
610 mask = 1 << channel; in vpif_intr_status()
611 status = regr(VPIF_STATUS) & mask; in vpif_intr_status()