Searched refs:buf_space (Results 1 – 3 of 3) sorted by relevance
74 int buf_space; in cros_ec_console_log_work() local83 buf_space = CIRC_SPACE(cb->head, cb->tail, LOG_SIZE); in cros_ec_console_log_work()86 if (!buf_space) { in cros_ec_console_log_work()104 while (idx < ret && ec_buffer[idx] != '\0' && buf_space > 0) { in cros_ec_console_log_work()108 buf_space--; in cros_ec_console_log_work()
358 unsigned int buf_space, cur_bat_idx = bat_req->bat_wr_idx; in t7xx_dpmaif_rx_frag_alloc() local365 buf_space = t7xx_ring_buf_rd_wr_count(bat_req->bat_size_cnt, in t7xx_dpmaif_rx_frag_alloc()368 if (buf_cnt > buf_space) { in t7xx_dpmaif_rx_frag_alloc()
720 unsigned buf_space; in udc_rxfifo_read() local728 buf_space = req->req.length - req->req.actual; in udc_rxfifo_read()730 if (bytes > buf_space) { in udc_rxfifo_read()731 if ((buf_space % ep->ep.maxpacket) != 0) { in udc_rxfifo_read()734 ep->ep.name, bytes, buf_space); in udc_rxfifo_read()737 bytes = buf_space; in udc_rxfifo_read()