Searched refs:ACCESS_ONCE (Results 1 – 7 of 7) sorted by relevance
129 uint32_t w_count = ACCESS_ONCE(ch->w_count); in tegra_ivc_channel_empty()130 uint32_t r_count = ACCESS_ONCE(ch->r_count); in tegra_ivc_channel_empty()155 return (ACCESS_ONCE(ch->w_count) - ACCESS_ONCE(ch->r_count)) >= in tegra_ivc_channel_full()161 ACCESS_ONCE(ivc->rx_channel->r_count) = in tegra_ivc_advance_rx()162 ACCESS_ONCE(ivc->rx_channel->r_count) + 1; in tegra_ivc_advance_rx()172 ACCESS_ONCE(ivc->tx_channel->w_count) = in tegra_ivc_advance_tx()173 ACCESS_ONCE(ivc->tx_channel->w_count) + 1; in tegra_ivc_advance_tx()234 return ACCESS_ONCE(ch->w_count) - ACCESS_ONCE(ch->r_count); in tegra_ivc_channel_avail_count()360 peer_state = ACCESS_ONCE(ivc->rx_channel->state); in tegra_ivc_channel_notified()
44 #define WRITE_ONCE(x, val) (ACCESS_ONCE(x) = (val))49 #define READ_ONCE(x) ACCESS_ONCE(x)
25 return ACCESS_ONCE((v)->counter); in atomic_read()
675 + * READ_ONCE, WRITE_ONCE and ACCESS_ONCE (see below), but only when the678 + * WRITE_ONCE or ACCESS_ONCE() in different C statements.680 + * In contrast to ACCESS_ONCE these two macros will also work on aggregate765 * ACCESS_ONCE() in different C statements.771 + * ACCESS_ONCE will only work on scalar types. For union types, ACCESS_ONCE775 + * The major use cases of ACCESS_ONCE used to be (1) Mediating communication787 +#define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))797 -#define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x))
547 #define ACCESS_ONCE(x) (*__ACCESS_ONCE(x)) macro
534 #define ACCESS_ONCE(x) (*__ACCESS_ONCE(x)) macro
2722 ACCESS_ONCE().