Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/platform/chrome/
Dcros_ec_debugfs.c74 int buf_space; in cros_ec_console_log_work() local
83 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()
/linux-5.19.10/drivers/net/wwan/t7xx/
Dt7xx_hif_dpmaif_rx.c358 unsigned int buf_space, cur_bat_idx = bat_req->bat_wr_idx; in t7xx_dpmaif_rx_frag_alloc() local
365 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()
/linux-5.19.10/drivers/usb/gadget/udc/
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()