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, bool *busy);
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()
460 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_read()
556 sg_new_read(Sg_fd * sfp, char __user *buf, size_t count, Sg_request * srp) in sg_new_read()
602 Sg_fd *sfp; in sg_write()
613 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_write()
709 sg_new_write(Sg_fd *sfp, struct file *file, const char __user *buf, in sg_new_write()
776 sg_common_write(Sg_fd * sfp, Sg_request * srp, in sg_common_write()
834 static int srp_done(Sg_fd *sfp, Sg_request *srp) in srp_done()
855 sg_fill_request_table(Sg_fd *sfp, sg_req_info_t *rinfo) in sg_fill_request_table()
915 sg_ioctl_common(struct file *filp, Sg_device *sdp, Sg_fd *sfp, in sg_ioctl_common()
1152 Sg_fd *sfp; in sg_ioctl()
1155 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_ioctl()
1170 Sg_fd *sfp; in sg_compat_ioctl()
1173 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_compat_ioctl()
1189 Sg_fd *sfp; in sg_poll()
1226 Sg_fd *sfp; in sg_fasync()
1228 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_fasync()
1240 Sg_fd *sfp; in sg_vma_fault()
1245 if ((NULL == vma) || (!(sfp = (Sg_fd *) vma->vm_private_data))) in sg_vma_fault()
1280 Sg_fd *sfp; in sg_mmap()
1286 if ((!filp) || (!vma) || (!(sfp = (Sg_fd *) filp->private_data))) in sg_mmap()
1339 Sg_fd *sfp; in sg_rq_end_io()
1619 Sg_fd *sfp; in sg_remove_device()
1721 Sg_fd *sfp = srp->parentfp; in sg_start_req()
1850 Sg_fd *sfp = srp->parentfp; in sg_finish_rem_req()
1873 sg_build_sgat(Sg_scatter_hold * schp, const Sg_fd * sfp, int tablesize) in sg_build_sgat()
1886 sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size) in sg_build_indirect()
1968 sg_remove_scat(Sg_fd * sfp, Sg_scatter_hold * schp) in sg_remove_scat()
2024 sg_build_reserve(Sg_fd * sfp, int req_size) in sg_build_reserve()
2042 sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size) in sg_link_reserve()
2073 sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp) in sg_unlink_reserve()
2091 sg_get_rq_mark(Sg_fd * sfp, int pack_id, bool *busy) in sg_get_rq_mark()
2121 sg_add_request(Sg_fd * sfp) in sg_add_request()
2152 sg_remove_request(Sg_fd * sfp, Sg_request * srp) in sg_remove_request()
2178 static Sg_fd *
2181 Sg_fd *sfp; in sg_add_sfp()
2551 Sg_fd *fp; in sg_proc_debug_helper()