Searched refs:mpsc_pbuf_buffer (Results 1 – 11 of 11) sorted by relevance
/Zephyr-latest/include/zephyr/sys/ |
D | mpsc_pbuf.h | 70 struct mpsc_pbuf_buffer; 86 typedef void (*mpsc_pbuf_notify_drop)(const struct mpsc_pbuf_buffer *buffer, 90 struct mpsc_pbuf_buffer { struct 152 void mpsc_pbuf_init(struct mpsc_pbuf_buffer *buffer, 171 union mpsc_pbuf_generic *mpsc_pbuf_alloc(struct mpsc_pbuf_buffer *buffer, 180 void mpsc_pbuf_commit(struct mpsc_pbuf_buffer *buffer, 193 void mpsc_pbuf_put_word(struct mpsc_pbuf_buffer *buffer, 208 void mpsc_pbuf_put_word_ext(struct mpsc_pbuf_buffer *buffer, 223 void mpsc_pbuf_put_data(struct mpsc_pbuf_buffer *buffer, 232 const union mpsc_pbuf_generic *mpsc_pbuf_claim(struct mpsc_pbuf_buffer *buffer); [all …]
|
/Zephyr-latest/lib/os/ |
D | mpsc_pbuf.c | 19 static inline void mpsc_state_print(struct mpsc_pbuf_buffer *buffer) in mpsc_state_print() 28 void mpsc_pbuf_init(struct mpsc_pbuf_buffer *buffer, in mpsc_pbuf_init() 31 memset(buffer, 0, offsetof(struct mpsc_pbuf_buffer, buf)); in mpsc_pbuf_init() 61 static inline bool free_space(struct mpsc_pbuf_buffer *buffer, uint32_t *res) in free_space() 86 static inline bool available(struct mpsc_pbuf_buffer *buffer, uint32_t *res) in available() 98 static inline uint32_t get_usage(struct mpsc_pbuf_buffer *buffer) in get_usage() 109 static inline void max_utilization_update(struct mpsc_pbuf_buffer *buffer) in max_utilization_update() 128 static inline uint32_t idx_inc(struct mpsc_pbuf_buffer *buffer, in idx_inc() 150 static ALWAYS_INLINE void tmp_wr_idx_inc(struct mpsc_pbuf_buffer *buffer, int32_t wlen) in tmp_wr_idx_inc() 158 static void rd_idx_inc(struct mpsc_pbuf_buffer *buffer, int32_t wlen) in rd_idx_inc() [all …]
|
/Zephyr-latest/tests/lib/mpsc_pbuf/src/ |
D | main.c | 59 static void drop(const struct mpsc_pbuf_buffer *buffer, const union mpsc_pbuf_generic *item) in drop() 90 static void init(struct mpsc_pbuf_buffer *buffer, uint32_t wlen, bool overwrite) in init() 116 struct mpsc_pbuf_buffer buffer; in item_put_no_overwrite() 147 struct mpsc_pbuf_buffer buffer; in item_put_overwrite() 174 struct mpsc_pbuf_buffer buffer; in item_put_saturate() 219 struct mpsc_pbuf_buffer buffer; in benchmark_item_put() 260 struct mpsc_pbuf_buffer buffer; in item_put_ext_no_overwrite() 298 struct mpsc_pbuf_buffer buffer; in item_put_word_ext_overwrite() 333 struct mpsc_pbuf_buffer buffer; in item_put_ext_saturate() 383 struct mpsc_pbuf_buffer buffer; in benchmark_item_put_ext() [all …]
|
D | concurrent.c | 18 static struct mpsc_pbuf_buffer mpsc_buffer; 141 static void drop(const struct mpsc_pbuf_buffer *buffer, const union mpsc_pbuf_generic *item) in drop() 151 struct mpsc_pbuf_buffer *buffer = user_data; in consume() 168 struct mpsc_pbuf_buffer *buffer = user_data; in produce()
|
/Zephyr-latest/include/zephyr/logging/ |
D | log_internal.h | 25 struct mpsc_pbuf_buffer buf; 133 static inline void z_log_notify_drop(const struct mpsc_pbuf_buffer *buffer, in z_log_notify_drop()
|
D | log_link.h | 67 struct mpsc_pbuf_buffer *mpsc_pbuf; 99 mpsc_pbuf_buffer, \
|
/Zephyr-latest/include/zephyr/shell/ |
D | shell_log_backend.h | 42 struct mpsc_pbuf_buffer *mpsc_buffer; 84 struct mpsc_pbuf_buffer _name##_mpsc_buffer; \
|
/Zephyr-latest/subsys/logging/ |
D | log_core.c | 120 static STRUCT_SECTION_ITERABLE_ALTERNATE(log_mpsc_pbuf, mpsc_pbuf_buffer, log_buffer); 121 static struct mpsc_pbuf_buffer *curr_log_buffer; 127 static void z_log_notify_drop(const struct mpsc_pbuf_buffer *buffer, 646 static struct log_msg *msg_alloc(struct mpsc_pbuf_buffer *buffer, uint32_t wlen) in msg_alloc() 664 static void msg_commit(struct mpsc_pbuf_buffer *buffer, struct log_msg *msg) in msg_commit() 787 static void msg_free(struct mpsc_pbuf_buffer *buffer, const union log_msg_generic *msg) in msg_free() 799 static bool msg_pending(struct mpsc_pbuf_buffer *buffer) in msg_pending() 842 struct mpsc_pbuf_buffer *mpsc_pbuffer = link->mpsc_pbuf ? link->mpsc_pbuf : &log_buffer; in z_log_msg_enqueue()
|
/Zephyr-latest/subsys/shell/ |
D | shell_log_backend.c | 126 static bool copy_to_pbuffer(struct mpsc_pbuf_buffer *mpsc_buffer, in copy_to_pbuffer() 207 struct mpsc_pbuf_buffer *mpsc_buffer = log_backend->mpsc_buffer; in process_msg_from_buffer() 230 struct mpsc_pbuf_buffer *mpsc_buffer = log_backend->mpsc_buffer; in process()
|
/Zephyr-latest/subsys/logging/frontends/ |
D | log_frontend_dict_uart.c | 56 static void notify_drop(const struct mpsc_pbuf_buffer *buffer, in notify_drop() 70 static struct mpsc_pbuf_buffer buf;
|
D | log_frontend_stmesp_demux.c | 61 struct mpsc_pbuf_buffer pbuf; 90 static void notify_drop(const struct mpsc_pbuf_buffer *buffer, in notify_drop()
|