Home
last modified time | relevance | path

Searched refs:wrap_counter (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dptp.c37 mvm->ptp_data.wrap_counter++; in iwl_mvm_ptp_update_new_read()
40 mvm->ptp_data.wrap_counter); in iwl_mvm_ptp_update_new_read()
58 (unsigned long long)base_time_ns, data->wrap_counter); in iwl_mvm_ptp_get_adj_time()
61 (data->wrap_counter * IWL_PTP_GP2_WRAP * NSEC_PER_USEC); in iwl_mvm_ptp_get_adj_time()
255 data->wrap_counter = 0; in iwl_mvm_ptp_adjfine()
H A Dmvm.h815 u32 wrap_counter; member
/openbmc/linux/drivers/virtio/
H A Dvirtio_ring.c1556 u16 new, old, off_wrap, flags, wrap_counter, event_idx; in virtqueue_kick_prepare_packed() local
1591 wrap_counter = off_wrap >> VRING_PACKED_EVENT_F_WRAP_CTR; in virtqueue_kick_prepare_packed()
1593 if (wrap_counter != vq->packed.avail_wrap_counter) in virtqueue_kick_prepare_packed()
1797 bool wrap_counter; in virtqueue_poll_packed() local
1803 return is_used_desc_packed(vq, used_idx, wrap_counter); in virtqueue_poll_packed()
1809 u16 used_idx, wrap_counter, last_used_idx; in virtqueue_enable_cb_delayed_packed() local
1823 wrap_counter = packed_used_wrap_counter(last_used_idx); in virtqueue_enable_cb_delayed_packed()
1828 wrap_counter ^= 1; in virtqueue_enable_cb_delayed_packed()
1832 (wrap_counter << VRING_PACKED_EVENT_F_WRAP_CTR)); in virtqueue_enable_cb_delayed_packed()
1856 wrap_counter = packed_used_wrap_counter(last_used_idx); in virtqueue_enable_cb_delayed_packed()
[all …]
/openbmc/qemu/hw/virtio/
H A Dvirtio.c661 static inline bool is_desc_avail(uint16_t flags, bool wrap_counter) in is_desc_avail() argument
667 return (avail != used) && (avail == wrap_counter); in is_desc_avail()
980 bool wrap_counter = vq->used_wrap_counter; in virtqueue_packed_fill_desc() local
989 wrap_counter ^= 1; in virtqueue_packed_fill_desc()
991 if (wrap_counter) { in virtqueue_packed_fill_desc()
1397 bool wrap_counter; in virtqueue_packed_get_avail_bytes() local
1402 wrap_counter = vq->last_avail_wrap_counter; in virtqueue_packed_get_avail_bytes()
1414 if (!is_desc_avail(desc.flags, wrap_counter)) { in virtqueue_packed_get_avail_bytes()
1477 wrap_counter ^= 1; in virtqueue_packed_get_avail_bytes()
1483 vq->shadow_avail_wrap_counter = wrap_counter; in virtqueue_packed_get_avail_bytes()
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Dmain.c452 u32 wrap_counter; in iwl_continuous_event_trace() member
466 num_wraps = read.wrap_counter; in iwl_continuous_event_trace()