st_bp 3968 drivers/scsi/st.c static void clear_buffer(struct st_buffer * st_bp) st_bp 3972 drivers/scsi/st.c for (i=0; i < st_bp->frp_segs; i++) st_bp 3973 drivers/scsi/st.c memset(page_address(st_bp->reserved_pages[i]), 0, st_bp 3974 drivers/scsi/st.c PAGE_SIZE << st_bp->reserved_page_order); st_bp 3975 drivers/scsi/st.c st_bp->cleared = 1; st_bp 3997 drivers/scsi/st.c static int append_to_buffer(const char __user *ubp, struct st_buffer * st_bp, int do_count) st_bp 4000 drivers/scsi/st.c int length = PAGE_SIZE << st_bp->reserved_page_order; st_bp 4002 drivers/scsi/st.c for (i = 0, offset = st_bp->buffer_bytes; st_bp 4003 drivers/scsi/st.c i < st_bp->frp_segs && offset >= length; i++) st_bp 4005 drivers/scsi/st.c if (i == st_bp->frp_segs) { /* Should never happen */ st_bp 4009 drivers/scsi/st.c for (; i < st_bp->frp_segs && do_count > 0; i++) { st_bp 4010 drivers/scsi/st.c struct page *page = st_bp->reserved_pages[i]; st_bp 4016 drivers/scsi/st.c st_bp->buffer_bytes += cnt; st_bp 4029 drivers/scsi/st.c static int from_buffer(struct st_buffer * st_bp, char __user *ubp, int do_count) st_bp 4032 drivers/scsi/st.c int length = PAGE_SIZE << st_bp->reserved_page_order; st_bp 4034 drivers/scsi/st.c for (i = 0, offset = st_bp->read_pointer; st_bp 4035 drivers/scsi/st.c i < st_bp->frp_segs && offset >= length; i++) st_bp 4037 drivers/scsi/st.c if (i == st_bp->frp_segs) { /* Should never happen */ st_bp 4041 drivers/scsi/st.c for (; i < st_bp->frp_segs && do_count > 0; i++) { st_bp 4042 drivers/scsi/st.c struct page *page = st_bp->reserved_pages[i]; st_bp 4048 drivers/scsi/st.c st_bp->buffer_bytes -= cnt; st_bp 4049 drivers/scsi/st.c st_bp->read_pointer += cnt; st_bp 4061 drivers/scsi/st.c static void move_buffer_data(struct st_buffer * st_bp, int offset) st_bp 4065 drivers/scsi/st.c int length = PAGE_SIZE << st_bp->reserved_page_order; st_bp 4070 drivers/scsi/st.c total=st_bp->buffer_bytes - offset; st_bp 4071 drivers/scsi/st.c for (src_seg=0; src_seg < st_bp->frp_segs; src_seg++) { st_bp 4078 drivers/scsi/st.c st_bp->buffer_bytes = st_bp->read_pointer = total; st_bp 4080 drivers/scsi/st.c struct page *dpage = st_bp->reserved_pages[dst_seg]; st_bp 4081 drivers/scsi/st.c struct page *spage = st_bp->reserved_pages[src_seg];