Lines Matching refs:status
1261 unsigned int status, status2; in hdspm_external_sample_rate() local
1267 status = hdspm_read(hdspm, HDSPM_statusRegister); in hdspm_external_sample_rate()
1303 status = hdspm_read(hdspm, HDSPM_statusRegister); in hdspm_external_sample_rate()
1305 if (!(status & HDSPM_madiLock)) { in hdspm_external_sample_rate()
1308 switch (status & (HDSPM_status1_freqMask)) { in hdspm_external_sample_rate()
1338 status = hdspm_read(hdspm, HDSPM_statusRegister); in hdspm_external_sample_rate()
1390 if (status & HDSPM_madiLock) { in hdspm_external_sample_rate()
1391 rate_bits = status & HDSPM_madiFreqMask; in hdspm_external_sample_rate()
2289 int status; in hdspm_get_wc_sample_rate() local
2294 status = hdspm_read(hdspm, HDSPM_RD_STATUS_1); in hdspm_get_wc_sample_rate()
2295 return (status >> 16) & 0xF; in hdspm_get_wc_sample_rate()
2298 status = hdspm_read(hdspm, HDSPM_statusRegister); in hdspm_get_wc_sample_rate()
2299 return (status >> HDSPM_AES32_wcFreq_bit) & 0xF; in hdspm_get_wc_sample_rate()
2314 int status; in hdspm_get_tco_sample_rate() local
2320 status = hdspm_read(hdspm, HDSPM_RD_STATUS_1); in hdspm_get_tco_sample_rate()
2321 return (status >> 20) & 0xF; in hdspm_get_tco_sample_rate()
2324 status = hdspm_read(hdspm, HDSPM_statusRegister); in hdspm_get_tco_sample_rate()
2325 return (status >> 1) & 0xF; in hdspm_get_tco_sample_rate()
2340 int status; in hdspm_get_sync_in_sample_rate() local
2346 status = hdspm_read(hdspm, HDSPM_RD_STATUS_2); in hdspm_get_sync_in_sample_rate()
2347 return (status >> 12) & 0xF; in hdspm_get_sync_in_sample_rate()
2381 int status = hdspm_read(hdspm, HDSPM_RD_STATUS_2); in hdspm_get_s1_sample_rate() local
2383 return (status >> (idx*4)) & 0xF; in hdspm_get_s1_sample_rate()
3035 unsigned int status = hdspm_read(hdspm, HDSPM_statusRegister); in hdspm_autosync_ref() local
3036 unsigned int syncref = (status >> HDSPM_AES32_syncref_bit) & 0xF; in hdspm_autosync_ref()
3116 u32 status; in snd_hdspm_get_tco_video_input_format() local
3120 status = hdspm_read(hdspm, HDSPM_RD_TCO + 4); in snd_hdspm_get_tco_video_input_format()
3121 switch (status & (HDSPM_TCO1_Video_Input_Format_NTSC | in snd_hdspm_get_tco_video_input_format()
3162 u32 status; in hdspm_tco_ltc_frames() local
3165 status = hdspm_read(hdspm, HDSPM_RD_TCO + 4); in hdspm_tco_ltc_frames()
3166 if (status & HDSPM_TCO1_LTC_Input_valid) { in hdspm_tco_ltc_frames()
3167 switch (status & (HDSPM_TCO1_LTC_Format_LSB | in hdspm_tco_ltc_frames()
3843 int status, status2; in hdspm_wc_sync_check() local
3847 status = hdspm_read(hdspm, HDSPM_statusRegister); in hdspm_wc_sync_check()
3848 if (status & HDSPM_AES32_wcLock) { in hdspm_wc_sync_check()
3849 if (status & HDSPM_AES32_wcSync) in hdspm_wc_sync_check()
3870 status = hdspm_read(hdspm, HDSPM_statusRegister); in hdspm_wc_sync_check()
3872 if (status & 0x2000000) in hdspm_wc_sync_check()
3874 else if (status & 0x1000000) in hdspm_wc_sync_check()
3891 int status = hdspm_read(hdspm, HDSPM_statusRegister); in hdspm_madi_sync_check() local
3892 if (status & HDSPM_madiLock) { in hdspm_madi_sync_check()
3893 if (status & HDSPM_madiSync) in hdspm_madi_sync_check()
3904 int status, lock, sync; in hdspm_s1_sync_check() local
3906 status = hdspm_read(hdspm, HDSPM_RD_STATUS_1); in hdspm_s1_sync_check()
3908 lock = (status & (0x1<<idx)) ? 1 : 0; in hdspm_s1_sync_check()
3909 sync = (status & (0x100<<idx)) ? 1 : 0; in hdspm_s1_sync_check()
3921 int status, lock = 0, sync = 0; in hdspm_sync_in_sync_check() local
3926 status = hdspm_read(hdspm, HDSPM_RD_STATUS_3); in hdspm_sync_in_sync_check()
3927 lock = (status & 0x400) ? 1 : 0; in hdspm_sync_in_sync_check()
3928 sync = (status & 0x800) ? 1 : 0; in hdspm_sync_in_sync_check()
3932 status = hdspm_read(hdspm, HDSPM_statusRegister); in hdspm_sync_in_sync_check()
3933 lock = (status & HDSPM_syncInLock) ? 1 : 0; in hdspm_sync_in_sync_check()
3934 sync = (status & HDSPM_syncInSync) ? 1 : 0; in hdspm_sync_in_sync_check()
3938 status = hdspm_read(hdspm, HDSPM_statusRegister2); in hdspm_sync_in_sync_check()
3939 lock = (status & 0x100000) ? 1 : 0; in hdspm_sync_in_sync_check()
3940 sync = (status & 0x200000) ? 1 : 0; in hdspm_sync_in_sync_check()
3972 u32 status; in hdspm_tco_input_check() local
3973 status = hdspm_read(hdspm, HDSPM_RD_TCO + 4); in hdspm_tco_input_check()
3975 return (status & mask) ? 1 : 0; in hdspm_tco_input_check()
3981 int status; in hdspm_tco_sync_check() local
3986 status = hdspm_read(hdspm, HDSPM_statusRegister); in hdspm_tco_sync_check()
3987 if (status & HDSPM_tcoLockMadi) { in hdspm_tco_sync_check()
3988 if (status & HDSPM_tcoSync) in hdspm_tco_sync_check()
3995 status = hdspm_read(hdspm, HDSPM_statusRegister); in hdspm_tco_sync_check()
3996 if (status & HDSPM_tcoLockAes) { in hdspm_tco_sync_check()
3997 if (status & HDSPM_tcoSync) in hdspm_tco_sync_check()
4005 status = hdspm_read(hdspm, HDSPM_RD_STATUS_1); in hdspm_tco_sync_check()
4007 if (status & 0x8000000) in hdspm_tco_sync_check()
4009 if (status & 0x4000000) in hdspm_tco_sync_check()
4763 unsigned int status, control; in snd_hdspm_proc_read_tco() local
4771 status = hdspm_read(hdspm, HDSPM_statusRegister); in snd_hdspm_proc_read_tco()
4775 if (status & HDSPM_tco_detect) { in snd_hdspm_proc_read_tco()
4875 unsigned int status, status2; in snd_hdspm_proc_read_madi() local
4882 status = hdspm_read(hdspm, HDSPM_statusRegister); in snd_hdspm_proc_read_madi()
4903 status & HDSPM_audioIRQPending, in snd_hdspm_proc_read_madi()
4904 (status & HDSPM_midi0IRQPending) ? 1 : 0, in snd_hdspm_proc_read_madi()
4905 (status & HDSPM_midi1IRQPending) ? 1 : 0, in snd_hdspm_proc_read_madi()
4910 ((status & HDSPM_BufferID) ? 1 : 0), in snd_hdspm_proc_read_madi()
4911 (status & HDSPM_BufferPositionMask), in snd_hdspm_proc_read_madi()
4912 (status & HDSPM_BufferPositionMask) % in snd_hdspm_proc_read_madi()
4914 ((status & HDSPM_BufferPositionMask) - 64) % in snd_hdspm_proc_read_madi()
4932 status, status2); in snd_hdspm_proc_read_madi()
4986 x = status & HDSPM_madiSync; in snd_hdspm_proc_read_madi()
4990 (status & HDSPM_madiLock) ? (x ? "Sync" : "Lock") : in snd_hdspm_proc_read_madi()
5018 (status & HDSPM_madiFreqMask) >> 22, in snd_hdspm_proc_read_madi()
5022 (status & HDSPM_AB_int) ? "Coax" : "Optical", in snd_hdspm_proc_read_madi()
5023 (status & HDSPM_RX_64ch) ? "64 channels" : in snd_hdspm_proc_read_madi()
5037 unsigned int status; in snd_hdspm_proc_read_aes32() local
5045 status = hdspm_read(hdspm, HDSPM_statusRegister); in snd_hdspm_proc_read_aes32()
5060 status & HDSPM_audioIRQPending, in snd_hdspm_proc_read_aes32()
5061 (status & HDSPM_midi0IRQPending) ? 1 : 0, in snd_hdspm_proc_read_aes32()
5062 (status & HDSPM_midi1IRQPending) ? 1 : 0, in snd_hdspm_proc_read_aes32()
5067 ((status & HDSPM_BufferID) ? 1 : 0), in snd_hdspm_proc_read_aes32()
5068 (status & HDSPM_BufferPositionMask), in snd_hdspm_proc_read_aes32()
5069 (status & HDSPM_BufferPositionMask) % in snd_hdspm_proc_read_aes32()
5071 ((status & HDSPM_BufferPositionMask) - 64) % in snd_hdspm_proc_read_aes32()
5089 status, status2); in snd_hdspm_proc_read_aes32()
5134 wcLock = status & HDSPM_AES32_wcLock; in snd_hdspm_proc_read_aes32()
5135 wcSync = wcLock && (status & HDSPM_AES32_wcSync); in snd_hdspm_proc_read_aes32()
5139 HDSPM_bit2freq((status >> HDSPM_AES32_wcFreq_bit) & 0xF)); in snd_hdspm_proc_read_aes32()
5406 unsigned int status; in snd_hdspm_interrupt() local
5410 status = hdspm_read(hdspm, HDSPM_statusRegister); in snd_hdspm_interrupt()
5412 audio = status & HDSPM_audioIRQPending; in snd_hdspm_interrupt()
5413 midi = status & (HDSPM_midi0IRQPending | HDSPM_midi1IRQPending | in snd_hdspm_interrupt()
5453 (status & hdspm->midi[i].irq)) { in snd_hdspm_interrupt()
5499 runtime->status->hw_ptr = hdspm_hw_pointer(hdspm); in snd_hdspm_reset()
5501 runtime->status->hw_ptr = 0; in snd_hdspm_reset()
5507 oruntime->status->hw_ptr = in snd_hdspm_reset()
5508 runtime->status->hw_ptr; in snd_hdspm_reset()
6179 struct hdspm_status status; in snd_hdspm_hwdep_ioctl() local
6303 memset(&status, 0, sizeof(status)); in snd_hdspm_hwdep_ioctl()
6305 status.card_type = hdspm->io_type; in snd_hdspm_hwdep_ioctl()
6307 status.autosync_source = hdspm_autosync_ref(hdspm); in snd_hdspm_hwdep_ioctl()
6309 status.card_clock = 110069313433624ULL; in snd_hdspm_hwdep_ioctl()
6310 status.master_period = hdspm_read(hdspm, HDSPM_RD_PLL_FREQ); in snd_hdspm_hwdep_ioctl()
6315 status.card_specific.madi.sync_wc = in snd_hdspm_hwdep_ioctl()
6317 status.card_specific.madi.sync_madi = in snd_hdspm_hwdep_ioctl()
6319 status.card_specific.madi.sync_tco = in snd_hdspm_hwdep_ioctl()
6321 status.card_specific.madi.sync_in = in snd_hdspm_hwdep_ioctl()
6326 status.card_specific.madi.madi_input = in snd_hdspm_hwdep_ioctl()
6328 status.card_specific.madi.channel_format = in snd_hdspm_hwdep_ioctl()
6331 status.card_specific.madi.frame_format = 0; in snd_hdspm_hwdep_ioctl()
6337 if (copy_to_user(argp, &status, sizeof(status))) in snd_hdspm_hwdep_ioctl()