Lines Matching refs:total_len
110 uint32_t total_len; in remove_from_tail() local
121 total_len = offsetof(struct shell_history_item, data) + in remove_from_tail()
123 ring_buf_get(history->ring_buf, NULL, total_len); in remove_from_tail()
139 uint32_t total_len = len + offsetof(struct shell_history_item, data); in z_shell_history_put() local
142 uint16_t padding = (~total_len + 1) & (sizeof(void *) - 1); in z_shell_history_put()
145 total_len += padding; in z_shell_history_put()
147 if (total_len > ring_buf_capacity_get(history->ring_buf)) { in z_shell_history_put()
180 (uint8_t **)&h_item, total_len); in z_shell_history_put()
184 if (claim_len < total_len) { in z_shell_history_put()
187 (uint8_t **)&h_item, total_len); in z_shell_history_put()
188 if (claim2_len == total_len) { in z_shell_history_put()
194 total_len += claim_len; in z_shell_history_put()
195 claim_len = total_len; in z_shell_history_put()
199 if (claim_len == total_len) { in z_shell_history_put()