Lines Matching refs:data_used
84 unsigned int data_pos, data_used;
96 unsigned int data_used;
130 * subcache->data_used.
147 * idx1 = { data_pos = 0, data_used = 3, id_len = 1, ...}
148 * idx2 = { data_pos = 3, data_used = 3, id_len = 1, ...}
461 subcache->data_pos = subcache->data_used = 0;
593 cache_total += subcache->data_used;
732 subcache->data_used = 0;
742 subcache->data_used -= diff;
775 if (header->subcache_data_size - subcache->data_used < total_len
782 "data_used=%d", subcache->idx_used, subcache->data_used);
792 subcache->data_used = 0;
797 subcache->data_used -= SHMCB_CYCLIC_SPACE(idx->data_pos, idx2->data_pos,
805 } while (header->subcache_data_size - subcache->data_used < total_len);
809 "data_used=%d", subcache->idx_used, subcache->data_used);
820 id_offset = SHMCB_CYCLIC_INCREMENT(subcache->data_pos, subcache->data_used,
825 subcache->data_used += id_len;
827 data_offset = SHMCB_CYCLIC_INCREMENT(subcache->data_pos, subcache->data_used,
832 subcache->data_used += data_len;
839 idx->data_used = total_len;
848 "data_pos/data_used=%d/%d",
850 subcache->data_pos, subcache->data_used);
875 && (idx->data_used - idx->id_len) <= *destlen
889 *destlen = idx->data_used - idx->id_len;
988 dest_len = idx->data_used - idx->id_len;