Lines Matching refs:Sg_fd

155 } Sg_fd;  typedef
178 static int sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size);
179 static ssize_t sg_new_read(Sg_fd * sfp, char __user *buf, size_t count,
181 static ssize_t sg_new_write(Sg_fd *sfp, struct file *file,
184 static int sg_common_write(Sg_fd * sfp, Sg_request * srp,
187 static void sg_remove_scat(Sg_fd * sfp, Sg_scatter_hold * schp);
188 static void sg_build_reserve(Sg_fd * sfp, int req_size);
189 static void sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size);
190 static void sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp);
191 static Sg_fd *sg_add_sfp(Sg_device * sdp);
193 static Sg_request *sg_get_rq_mark(Sg_fd * sfp, int pack_id);
194 static Sg_request *sg_add_request(Sg_fd * sfp);
195 static int sg_remove_request(Sg_fd * sfp, Sg_request * srp);
289 Sg_fd *sfp; in sg_open()
385 Sg_fd *sfp; in sg_release()
387 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_release()
444 Sg_fd *sfp; in sg_read()
459 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_read()
559 sg_new_read(Sg_fd * sfp, char __user *buf, size_t count, Sg_request * srp) in sg_new_read()
605 Sg_fd *sfp; in sg_write()
616 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_write()
712 sg_new_write(Sg_fd *sfp, struct file *file, const char __user *buf, in sg_new_write()
779 sg_common_write(Sg_fd * sfp, Sg_request * srp, in sg_common_write()
837 static int srp_done(Sg_fd *sfp, Sg_request *srp) in srp_done()
858 sg_fill_request_table(Sg_fd *sfp, sg_req_info_t *rinfo) in sg_fill_request_table()
918 sg_ioctl_common(struct file *filp, Sg_device *sdp, Sg_fd *sfp, in sg_ioctl_common()
1157 Sg_fd *sfp; in sg_ioctl()
1160 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_ioctl()
1175 Sg_fd *sfp; in sg_compat_ioctl()
1178 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_compat_ioctl()
1194 Sg_fd *sfp; in sg_poll()
1231 Sg_fd *sfp; in sg_fasync()
1233 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_fasync()
1245 Sg_fd *sfp; in sg_vma_fault()
1250 if ((NULL == vma) || (!(sfp = (Sg_fd *) vma->vm_private_data))) in sg_vma_fault()
1285 Sg_fd *sfp; in sg_mmap()
1291 if ((!filp) || (!vma) || (!(sfp = (Sg_fd *) filp->private_data))) in sg_mmap()
1344 Sg_fd *sfp; in sg_rq_end_io()
1624 Sg_fd *sfp; in sg_remove_device()
1726 Sg_fd *sfp = srp->parentfp; in sg_start_req()
1855 Sg_fd *sfp = srp->parentfp; in sg_finish_rem_req()
1878 sg_build_sgat(Sg_scatter_hold * schp, const Sg_fd * sfp, int tablesize) in sg_build_sgat()
1891 sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size) in sg_build_indirect()
1973 sg_remove_scat(Sg_fd * sfp, Sg_scatter_hold * schp) in sg_remove_scat()
2029 sg_build_reserve(Sg_fd * sfp, int req_size) in sg_build_reserve()
2047 sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size) in sg_link_reserve()
2078 sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp) in sg_unlink_reserve()
2096 sg_get_rq_mark(Sg_fd * sfp, int pack_id) in sg_get_rq_mark()
2117 sg_add_request(Sg_fd * sfp) in sg_add_request()
2148 sg_remove_request(Sg_fd * sfp, Sg_request * srp) in sg_remove_request()
2165 static Sg_fd *
2168 Sg_fd *sfp; in sg_add_sfp()
2538 Sg_fd *fp; in sg_proc_debug_helper()