Lines Matching refs:cnt
102 static int cnt; in produce_cpy() local
107 cnt = 0; in produce_cpy()
111 buf[i] = (uint8_t)cnt++; in produce_cpy()
115 cnt -= (sizeof(buf) - len); in produce_cpy()
122 static int cnt; in consume_cpy() local
127 cnt = 0; in consume_cpy()
132 zassert_equal(buf[i], (uint8_t)cnt); in consume_cpy()
133 cnt++; in consume_cpy()
139 static bool produce_item(void *user_data, uint32_t cnt, bool last, int prio) in produce_item() argument
145 if (cnt == 0) { in produce_item()
157 static bool consume_item(void *user_data, uint32_t cnt, bool last, int prio) in consume_item() argument
166 if (cnt == 0) { in consume_item()
184 static int cnt; in produce() local
190 cnt = 0; in produce()
203 data[i] = cnt++; in produce()
213 zassert_equal(err, 0, "cnt: %d", cnt); in produce()
221 static int cnt; in consume() local
226 cnt = 0; in consume()
239 zassert_equal(data[i], (uint8_t)cnt, in consume()
240 "Got %02x, exp: %02x", data[i], (uint8_t)cnt); in consume()
241 cnt++; in consume()