Searched refs:last_ptr (Results 1 – 4 of 4) sorted by relevance
64 int last_ptr; member204 if (ptr < rec->last_ptr) in emu8k_pcm_timer_func()205 delta = ptr + rec->buf_size - rec->last_ptr; in emu8k_pcm_timer_func()207 delta = ptr - rec->last_ptr; in emu8k_pcm_timer_func()209 rec->last_ptr = ptr; in emu8k_pcm_timer_func()623 rec->last_ptr = 0; in emu8k_pcm_prepare()
7232 struct btrfs_free_cluster *last_ptr = NULL; in find_free_extent() local7283 last_ptr = fetch_cluster_info(fs_info, space_info, &empty_cluster); in find_free_extent()7284 if (last_ptr) { in find_free_extent()7285 spin_lock(&last_ptr->lock); in find_free_extent()7286 if (last_ptr->block_group) in find_free_extent()7287 hint_byte = last_ptr->window_start; in find_free_extent()7288 if (last_ptr->fragmented) { in find_free_extent()7294 hint_byte = last_ptr->window_start; in find_free_extent()7297 spin_unlock(&last_ptr->lock); in find_free_extent()7388 if (last_ptr && use_cluster) { in find_free_extent()[all …]
1765 u64 *sts_ptr, last_ptr = 0, prev_ptr = 0; in tsi721_omsg_handler() local1778 prev_ptr = last_ptr; in tsi721_omsg_handler()1779 last_ptr = le64_to_cpu(sts_ptr[j]); in tsi721_omsg_handler()1788 if (last_ptr == 0) in tsi721_omsg_handler()1799 tx_slot = (last_ptr - (u64)priv->omsg_ring[ch].omd_phys)/ in tsi721_omsg_handler()
2191 unsigned int last_ptr, size;2193 last_ptr = get_hw_ptr(chip);2197 if (last_ptr < chip->last_ptr)2198 size = runtime->buffer_size + last_ptr2199 - chip->last_ptr;2201 size = last_ptr - chip->last_ptr;2203 chip->last_ptr = last_ptr;