Home
last modified time | relevance | path

Searched refs:TICKS_PER_CYCLE (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/sound/firewire/motu/
H A Damdtp-motu.c19 #define TICKS_PER_CYCLE 3072 macro
21 #define TICKS_PER_SECOND (TICKS_PER_CYCLE * CYCLES_PER_SECOND)
309 unsigned int base_tick = cache->tx_cycle_count * TICKS_PER_CYCLE; in cache_event_offsets()
316 tick = ((sph & CIP_SPH_CYCLE_MASK) >> CIP_SPH_CYCLE_SHIFT) * TICKS_PER_CYCLE + in cache_event_offsets()
379 unsigned int base_tick = cache->rx_cycle_count * TICKS_PER_CYCLE; in write_sph()
384 u32 sph = ((tick / TICKS_PER_CYCLE) << CIP_SPH_CYCLE_SHIFT) | (tick % TICKS_PER_CYCLE); in write_sph()
/openbmc/linux/sound/firewire/
H A Damdtp-stream.c19 #define TICKS_PER_CYCLE 3072 macro
21 #define TICKS_PER_SECOND (TICKS_PER_CYCLE * CYCLES_PER_SECOND)
297 s->transfer_delay = TRANSFER_DELAY_TICKS - TICKS_PER_CYCLE; in amdtp_stream_set_parameters()
423 if (*last_syt_offset < TICKS_PER_CYCLE) { in calculate_syt_offset()
448 syt_offset = *last_syt_offset - TICKS_PER_CYCLE; in calculate_syt_offset()
451 if (syt_offset >= TICKS_PER_CYCLE) in calculate_syt_offset()
491 syt_offset = syt_cycle_lo * TICKS_PER_CYCLE + (syt & 0x0fff); in compute_syt_offset()
493 syt_offset += CIP_SYT_CYCLE_MODULUS * TICKS_PER_CYCLE; in compute_syt_offset()
1000 syt = ((cycle + syt_offset / TICKS_PER_CYCLE) << 12) | in compute_syt()
1001 (syt_offset % TICKS_PER_CYCLE); in compute_syt()
[all …]