Lines Matching refs:Sg_fd

171 } Sg_fd;  typedef
194 static int sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size);
195 static ssize_t sg_new_read(Sg_fd * sfp, char __user *buf, size_t count,
197 static ssize_t sg_new_write(Sg_fd *sfp, struct file *file,
200 static int sg_common_write(Sg_fd * sfp, Sg_request * srp,
203 static void sg_remove_scat(Sg_fd * sfp, Sg_scatter_hold * schp);
204 static void sg_build_reserve(Sg_fd * sfp, int req_size);
205 static void sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size);
206 static void sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp);
207 static Sg_fd *sg_add_sfp(Sg_device * sdp);
209 static Sg_request *sg_get_rq_mark(Sg_fd * sfp, int pack_id);
210 static Sg_request *sg_add_request(Sg_fd * sfp);
211 static int sg_remove_request(Sg_fd * sfp, Sg_request * srp);
212 static int sg_res_in_use(Sg_fd * sfp);
279 Sg_fd *sfp; in sg_open()
375 Sg_fd *sfp; in sg_release()
377 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_release()
402 Sg_fd *sfp; in sg_read()
409 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_read()
546 sg_new_read(Sg_fd * sfp, char __user *buf, size_t count, Sg_request * srp) in sg_new_read()
589 Sg_fd *sfp; in sg_write()
595 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_write()
691 sg_new_write(Sg_fd *sfp, struct file *file, const char __user *buf, in sg_new_write()
764 sg_common_write(Sg_fd * sfp, Sg_request * srp, in sg_common_write()
817 static int srp_done(Sg_fd *sfp, Sg_request *srp) in srp_done()
844 Sg_fd *sfp; in sg_ioctl()
848 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_ioctl()
1125 Sg_fd *sfp; in sg_compat_ioctl()
1128 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_compat_ioctl()
1149 Sg_fd *sfp; in sg_poll()
1186 Sg_fd *sfp; in sg_fasync()
1188 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_fasync()
1199 Sg_fd *sfp; in sg_vma_fault()
1204 if ((NULL == vma) || (!(sfp = (Sg_fd *) vma->vm_private_data))) in sg_vma_fault()
1239 Sg_fd *sfp; in sg_mmap()
1244 if ((!filp) || (!vma) || (!(sfp = (Sg_fd *) filp->private_data))) in sg_mmap()
1290 Sg_fd *sfp; in sg_rq_end_io()
1567 Sg_fd *sfp; in sg_remove_device()
1668 Sg_fd *sfp = srp->parentfp; in sg_start_req()
1786 Sg_fd *sfp = srp->parentfp; in sg_finish_rem_req()
1812 sg_build_sgat(Sg_scatter_hold * schp, const Sg_fd * sfp, int tablesize) in sg_build_sgat()
1825 sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size) in sg_build_indirect()
1909 sg_remove_scat(Sg_fd * sfp, Sg_scatter_hold * schp) in sg_remove_scat()
1965 sg_build_reserve(Sg_fd * sfp, int req_size) in sg_build_reserve()
1983 sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size) in sg_link_reserve()
2014 sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp) in sg_unlink_reserve()
2031 sg_get_rq_mark(Sg_fd * sfp, int pack_id) in sg_get_rq_mark()
2051 sg_add_request(Sg_fd * sfp) in sg_add_request()
2094 sg_remove_request(Sg_fd * sfp, Sg_request * srp) in sg_remove_request()
2124 static Sg_fd *
2127 Sg_fd *sfp; in sg_add_sfp()
2215 sg_res_in_use(Sg_fd * sfp) in sg_res_in_use()
2599 Sg_fd *fp; in sg_proc_debug_helper()