Home
last modified time | relevance | path

Searched refs:buf_space (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/platform/chrome/
H A Dcros_ec_debugfs.c77 int buf_space; in cros_ec_console_log_work() local
86 buf_space = CIRC_SPACE(cb->head, cb->tail, LOG_SIZE); in cros_ec_console_log_work()
89 if (!buf_space) { in cros_ec_console_log_work()
107 while (idx < ret && ec_buffer[idx] != '\0' && buf_space > 0) { in cros_ec_console_log_work()
111 buf_space--; in cros_ec_console_log_work()
/openbmc/linux/drivers/net/wwan/t7xx/
H A Dt7xx_hif_dpmaif_rx.c322 unsigned int buf_space, cur_bat_idx = bat_req->bat_wr_idx; in t7xx_dpmaif_rx_frag_alloc() local
329 buf_space = t7xx_ring_buf_rd_wr_count(bat_req->bat_size_cnt, in t7xx_dpmaif_rx_frag_alloc()
332 if (buf_cnt > buf_space) { in t7xx_dpmaif_rx_frag_alloc()
/openbmc/linux/drivers/usb/gadget/udc/
H A Dsnps_udc_core.c720 unsigned buf_space; in udc_rxfifo_read() local
728 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()