Searched refs:st_bp (Results 1 - 2 of 2) sorted by relevance
/drivers/scsi/ |
H A D | st.c | 3818 static void clear_buffer(struct st_buffer * st_bp) 3822 for (i=0; i < st_bp->frp_segs; i++) 3823 memset(page_address(st_bp->reserved_pages[i]), 0, 3824 PAGE_SIZE << st_bp->reserved_page_order); 3825 st_bp->cleared = 1; 3847 static int append_to_buffer(const char __user *ubp, struct st_buffer * st_bp, int do_count) 3850 int length = PAGE_SIZE << st_bp->reserved_page_order; 3852 for (i = 0, offset = st_bp->buffer_bytes; 3853 i < st_bp->frp_segs && offset >= length; i++) 3855 if (i == st_bp 3802 clear_buffer(struct st_buffer * st_bp) argument 3831 append_to_buffer(const char __user *ubp, struct st_buffer * st_bp, int do_count) argument 3863 from_buffer(struct st_buffer * st_bp, char __user *ubp, int do_count) argument 3895 move_buffer_data(struct st_buffer * st_bp, int offset) argument [all...] |
H A D | osst.c | 5432 static int append_to_buffer(const char __user *ubp, struct osst_buffer *st_bp, int do_count) 5436 for (i=0, offset=st_bp->buffer_bytes; 5437 i < st_bp->sg_segs && offset >= st_bp->sg[i].length; i++) 5438 offset -= st_bp->sg[i].length; 5439 if (i == st_bp->sg_segs) { /* Should never happen */ 5443 for ( ; i < st_bp->sg_segs && do_count > 0; i++) { 5444 cnt = st_bp->sg[i].length - offset < do_count ? 5445 st_bp->sg[i].length - offset : do_count; 5446 res = copy_from_user(page_address(sg_page(&st_bp 5427 append_to_buffer(const char __user *ubp, struct osst_buffer *st_bp, int do_count) argument 5460 from_buffer(struct osst_buffer *st_bp, char __user *ubp, int do_count) argument 5492 osst_zero_buffer_tail(struct osst_buffer *st_bp) argument 5520 osst_copy_to_buffer(struct osst_buffer *st_bp, unsigned char *ptr) argument 5541 osst_copy_from_buffer(struct osst_buffer *st_bp, unsigned char *ptr) argument [all...] |
Completed in 80 milliseconds