Lines Matching refs:Sg_fd

160 } Sg_fd;  typedef
183 static int sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size);
184 static ssize_t sg_new_read(Sg_fd * sfp, char __user *buf, size_t count,
186 static ssize_t sg_new_write(Sg_fd *sfp, struct file *file,
189 static int sg_common_write(Sg_fd * sfp, Sg_request * srp,
192 static void sg_remove_scat(Sg_fd * sfp, Sg_scatter_hold * schp);
193 static void sg_build_reserve(Sg_fd * sfp, int req_size);
194 static void sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size);
195 static void sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp);
196 static Sg_fd *sg_add_sfp(Sg_device * sdp);
198 static Sg_request *sg_get_rq_mark(Sg_fd * sfp, int pack_id);
199 static Sg_request *sg_add_request(Sg_fd * sfp);
200 static int sg_remove_request(Sg_fd * sfp, Sg_request * srp);
294 Sg_fd *sfp; in sg_open()
390 Sg_fd *sfp; in sg_release()
392 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_release()
417 Sg_fd *sfp; in sg_read()
432 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_read()
570 sg_new_read(Sg_fd * sfp, char __user *buf, size_t count, Sg_request * srp) in sg_new_read()
614 Sg_fd *sfp; in sg_write()
625 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_write()
719 sg_new_write(Sg_fd *sfp, struct file *file, const char __user *buf, in sg_new_write()
792 sg_common_write(Sg_fd * sfp, Sg_request * srp, in sg_common_write()
848 static int srp_done(Sg_fd *sfp, Sg_request *srp) in srp_done()
869 sg_fill_request_table(Sg_fd *sfp, sg_req_info_t *rinfo) in sg_fill_request_table()
908 Sg_fd *sfp; in sg_ioctl()
912 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_ioctl()
1152 Sg_fd *sfp; in sg_compat_ioctl()
1155 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_compat_ioctl()
1176 Sg_fd *sfp; in sg_poll()
1213 Sg_fd *sfp; in sg_fasync()
1215 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_fasync()
1227 Sg_fd *sfp; in sg_vma_fault()
1232 if ((NULL == vma) || (!(sfp = (Sg_fd *) vma->vm_private_data))) in sg_vma_fault()
1267 Sg_fd *sfp; in sg_mmap()
1273 if ((!filp) || (!vma) || (!(sfp = (Sg_fd *) filp->private_data))) in sg_mmap()
1326 Sg_fd *sfp; in sg_rq_end_io()
1606 Sg_fd *sfp; in sg_remove_device()
1708 Sg_fd *sfp = srp->parentfp; in sg_start_req()
1837 Sg_fd *sfp = srp->parentfp; in sg_finish_rem_req()
1860 sg_build_sgat(Sg_scatter_hold * schp, const Sg_fd * sfp, int tablesize) in sg_build_sgat()
1873 sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size) in sg_build_indirect()
1955 sg_remove_scat(Sg_fd * sfp, Sg_scatter_hold * schp) in sg_remove_scat()
2011 sg_build_reserve(Sg_fd * sfp, int req_size) in sg_build_reserve()
2029 sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size) in sg_link_reserve()
2060 sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp) in sg_unlink_reserve()
2078 sg_get_rq_mark(Sg_fd * sfp, int pack_id) in sg_get_rq_mark()
2099 sg_add_request(Sg_fd * sfp) in sg_add_request()
2130 sg_remove_request(Sg_fd * sfp, Sg_request * srp) in sg_remove_request()
2147 static Sg_fd *
2150 Sg_fd *sfp; in sg_add_sfp()
2522 Sg_fd *fp; in sg_proc_debug_helper()