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, bool *busy);
199 static Sg_request *sg_add_request(Sg_fd * sfp);
200 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()
460 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_read()
558 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()
836 static int srp_done(Sg_fd *sfp, Sg_request *srp) in srp_done()
857 sg_fill_request_table(Sg_fd *sfp, sg_req_info_t *rinfo) in sg_fill_request_table()
917 sg_ioctl_common(struct file *filp, Sg_device *sdp, Sg_fd *sfp, in sg_ioctl_common()
1153 Sg_fd *sfp; in sg_ioctl()
1156 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_ioctl()
1170 Sg_fd *sfp; in sg_poll()
1207 Sg_fd *sfp; in sg_fasync()
1209 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_fasync()
1221 Sg_fd *sfp; in sg_vma_fault()
1226 if ((NULL == vma) || (!(sfp = (Sg_fd *) vma->vm_private_data))) in sg_vma_fault()
1261 Sg_fd *sfp; in sg_mmap()
1267 if ((!filp) || (!vma) || (!(sfp = (Sg_fd *) filp->private_data))) in sg_mmap()
1320 Sg_fd *sfp; in sg_rq_end_io()
1586 Sg_fd *sfp; in sg_remove_device()
1720 Sg_fd *sfp = srp->parentfp; in sg_start_req()
1825 Sg_fd *sfp = srp->parentfp; in sg_finish_rem_req()
1846 sg_build_sgat(Sg_scatter_hold * schp, const Sg_fd * sfp, int tablesize) in sg_build_sgat()
1859 sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size) in sg_build_indirect()
1937 sg_remove_scat(Sg_fd * sfp, Sg_scatter_hold * schp) in sg_remove_scat()
1993 sg_build_reserve(Sg_fd * sfp, int req_size) in sg_build_reserve()
2011 sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size) in sg_link_reserve()
2042 sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp) in sg_unlink_reserve()
2060 sg_get_rq_mark(Sg_fd * sfp, int pack_id, bool *busy) in sg_get_rq_mark()
2090 sg_add_request(Sg_fd * sfp) in sg_add_request()
2121 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()
2520 Sg_fd *fp; in sg_proc_debug_helper()