Searched refs:STbuffer (Results 1 – 2 of 2) sorted by relevance
413 ST_buffer *STbuffer; in write_behind_check() local416 STbuffer = STp->buffer; in write_behind_check()431 STbuffer->buffer_bytes -= STbuffer->writing; in write_behind_check()437 STps->drv_block += STbuffer->writing / STp->block_size; in write_behind_check()439 STbuffer->writing = 0; in write_behind_check()559 ST_buffer *STbuffer; in flush_buffer() local562 STbuffer = STp->buffer; in flush_buffer()3515 static int enlarge_buffer(ST_buffer * STbuffer, int new_size, int need_dma) in enlarge_buffer() argument3519 normalize_buffer(STbuffer); in enlarge_buffer()3521 max_segs = STbuffer->use_sg; in enlarge_buffer()[all …]
373 OSST_buffer * STbuffer; in osst_write_behind_check() local375 STbuffer = STp->buffer; in osst_write_behind_check()396 if (STbuffer->writing < STbuffer->buffer_bytes) in osst_write_behind_check()399 STbuffer->buffer_bytes -= STbuffer->writing; in osst_write_behind_check()400 STbuffer->writing = 0; in osst_write_behind_check()5221 static int enlarge_buffer(OSST_buffer *STbuffer, int new_size, int need_dma) in enlarge_buffer() argument5225 normalize_buffer(STbuffer); in enlarge_buffer()5227 max_segs = STbuffer->use_sg; in enlarge_buffer()5230 nbr = max_segs - STbuffer->sg_segs; in enlarge_buffer()5238 b_size * nbr < new_size - STbuffer->buffer_size; in enlarge_buffer()[all …]