Searched refs:st_bp (Results 1 – 2 of 2) sorted by relevance
/linux-2.4.37.9/drivers/scsi/ |
D | st.c | 3591 static int append_to_buffer(const char *ubp, ST_buffer * st_bp, int do_count) in append_to_buffer() argument 3595 for (i = 0, offset = st_bp->buffer_bytes; in append_to_buffer() 3596 i < st_bp->sg_segs && offset >= st_bp->sg_lengths[i]; i++) in append_to_buffer() 3597 offset -= st_bp->sg_lengths[i]; in append_to_buffer() 3598 if (i == st_bp->sg_segs) { /* Should never happen */ in append_to_buffer() 3602 for (; i < st_bp->sg_segs && do_count > 0; i++) { in append_to_buffer() 3603 cnt = st_bp->sg_lengths[i] - offset < do_count ? in append_to_buffer() 3604 st_bp->sg_lengths[i] - offset : do_count; in append_to_buffer() 3605 res = copy_from_user(st_bp->sg[i].address + offset, ubp, cnt); in append_to_buffer() 3609 st_bp->buffer_bytes += cnt; in append_to_buffer() [all …]
|
D | osst.c | 5308 static int append_to_buffer(const char *ubp, OSST_buffer *st_bp, int do_count) in append_to_buffer() argument 5312 for (i=0, offset=st_bp->buffer_bytes; in append_to_buffer() 5313 i < st_bp->sg_segs && offset >= st_bp->sg[i].length; i++) in append_to_buffer() 5314 offset -= st_bp->sg[i].length; in append_to_buffer() 5315 if (i == st_bp->sg_segs) { /* Should never happen */ in append_to_buffer() 5319 for ( ; i < st_bp->sg_segs && do_count > 0; i++) { in append_to_buffer() 5320 cnt = st_bp->sg[i].length - offset < do_count ? in append_to_buffer() 5321 st_bp->sg[i].length - offset : do_count; in append_to_buffer() 5322 res = copy_from_user(st_bp->sg[i].address + offset, ubp, cnt); in append_to_buffer() 5326 st_bp->buffer_bytes += cnt; in append_to_buffer() [all …]
|