Lines Matching refs:chip_num

643 	u8 val, chip_num;  in tw28_get_video_status()  local
646 chip_num = ch / 4; in tw28_get_video_status()
649 val = tw_readbyte(solo_dev, chip_num, TW286x_AV_STAT_ADDR, in tw28_get_video_status()
683 u8 chip_num; in tw28_set_ctrl_val() local
686 chip_num = ch / 4; in tw28_set_ctrl_val()
695 if (is_tw286x(solo_dev, chip_num)) { in tw28_set_ctrl_val()
697 TW_CHIP_OFFSET_ADDR(chip_num), in tw28_set_ctrl_val()
698 TW286x_SHARPNESS(chip_num)); in tw28_set_ctrl_val()
702 TW_CHIP_OFFSET_ADDR(chip_num), in tw28_set_ctrl_val()
703 TW286x_SHARPNESS(chip_num), v); in tw28_set_ctrl_val()
710 if (is_tw286x(solo_dev, chip_num)) in tw28_set_ctrl_val()
714 tw_writebyte(solo_dev, chip_num, TW286x_HUE_ADDR(ch), in tw28_set_ctrl_val()
721 if (is_tw286x(solo_dev, chip_num)) { in tw28_set_ctrl_val()
723 TW_CHIP_OFFSET_ADDR(chip_num), in tw28_set_ctrl_val()
726 tw_writebyte(solo_dev, chip_num, TW286x_SATURATIONV_ADDR(ch), in tw28_set_ctrl_val()
732 tw_writebyte(solo_dev, chip_num, TW286x_CONTRAST_ADDR(ch), in tw28_set_ctrl_val()
737 if (is_tw286x(solo_dev, chip_num)) in tw28_set_ctrl_val()
741 tw_writebyte(solo_dev, chip_num, TW286x_BRIGHTNESS_ADDR(ch), in tw28_set_ctrl_val()
755 u8 rval, chip_num; in tw28_get_ctrl_val() local
758 chip_num = ch / 4; in tw28_get_ctrl_val()
764 if (is_tw286x(solo_dev, chip_num)) { in tw28_get_ctrl_val()
766 TW_CHIP_OFFSET_ADDR(chip_num), in tw28_get_ctrl_val()
767 TW286x_SHARPNESS(chip_num)); in tw28_get_ctrl_val()
773 rval = tw_readbyte(solo_dev, chip_num, TW286x_HUE_ADDR(ch), in tw28_get_ctrl_val()
775 if (is_tw286x(solo_dev, chip_num)) in tw28_get_ctrl_val()
781 *val = tw_readbyte(solo_dev, chip_num, in tw28_get_ctrl_val()
786 *val = tw_readbyte(solo_dev, chip_num, in tw28_get_ctrl_val()
791 rval = tw_readbyte(solo_dev, chip_num, in tw28_get_ctrl_val()
794 if (is_tw286x(solo_dev, chip_num)) in tw28_get_ctrl_val()
815 unsigned int chip_num;
817 chip_num = (solo_dev->nr_chans - 1) / 4;
819 val = tw_readbyte(solo_dev, chip_num, TW286x_AUDIO_OUTPUT_VOL_ADDR,
824 tw_writebyte(solo_dev, chip_num, TW286x_AUDIO_OUTPUT_VOL_ADDR,
832 u8 chip_num; in tw28_get_audio_gain() local
835 chip_num = ch / 4; in tw28_get_audio_gain()
838 val = tw_readbyte(solo_dev, chip_num, in tw28_get_audio_gain()
848 u8 chip_num; in tw28_set_audio_gain() local
851 chip_num = ch / 4; in tw28_set_audio_gain()
854 old_val = tw_readbyte(solo_dev, chip_num, in tw28_set_audio_gain()
861 tw_writebyte(solo_dev, chip_num, TW286x_AUDIO_INPUT_GAIN_ADDR(ch), in tw28_set_audio_gain()