Lines Matching refs:len
43 uint16_t len; member
54 uint8_t *dst, uint16_t *len) in z_shell_history_get() argument
60 *len = 0U; in z_shell_history_get()
67 *len = 0U; in z_shell_history_get()
85 memcpy(dst, h_item->data, h_item->len); in z_shell_history_get()
86 *len = h_item->len; in z_shell_history_get()
87 dst[*len] = '\0'; in z_shell_history_get()
91 *len = 0U; in z_shell_history_get()
97 uint8_t *src, size_t len, uint16_t padding) in add_to_head() argument
99 item->len = len; in add_to_head()
101 memcpy(item->data, src, len); in add_to_head()
122 h_item->len + h_item->padding; in remove_from_tail()
135 size_t len) in z_shell_history_put() argument
139 uint32_t total_len = len + offsetof(struct shell_history_item, data); in z_shell_history_put()
153 if (len == 0) { in z_shell_history_put()
161 (h_prev_item->len == len) && in z_shell_history_put()
162 (memcmp(h_prev_item->data, line, len) == 0)) { in z_shell_history_put()
200 add_to_head(history, h_item, line, len, padding); in z_shell_history_put()