Searched refs:avail_bytes (Results 1 – 2 of 2) sorted by relevance
540 int avail_bytes, data_count = count; in sprd_platform_compr_copy() local550 avail_bytes = runtime->fragment_size - stream->received_stage0; in sprd_platform_compr_copy()553 if (avail_bytes >= data_count) { in sprd_platform_compr_copy()571 if (copy_from_user(dst, buf, avail_bytes)) in sprd_platform_compr_copy()574 data_count -= avail_bytes; in sprd_platform_compr_copy()575 stream->received_stage0 += avail_bytes; in sprd_platform_compr_copy()576 stream->copied_total += avail_bytes; in sprd_platform_compr_copy()577 buf += avail_bytes; in sprd_platform_compr_copy()592 avail_bytes = stream->compr_buffer.bytes - stream->stage1_pointer; in sprd_platform_compr_copy()594 if (copy_from_user(dst, buf, avail_bytes)) in sprd_platform_compr_copy()[all …]
201 unsigned int isr_status, avail_bytes, updatetx; in cdns_i2c_isr() local317 avail_bytes = CDNS_I2C_FIFO_DEPTH - in cdns_i2c_isr()319 if (id->send_count > avail_bytes) in cdns_i2c_isr()320 bytes_to_send = avail_bytes; in cdns_i2c_isr()422 unsigned int avail_bytes; in cdns_i2c_msend() local456 avail_bytes = CDNS_I2C_FIFO_DEPTH - in cdns_i2c_msend()459 if (id->send_count > avail_bytes) in cdns_i2c_msend()460 bytes_to_send = avail_bytes; in cdns_i2c_msend()