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()
412 Sg_fd *sfp; in sg_read()
427 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_read()
565 sg_new_read(Sg_fd * sfp, char __user *buf, size_t count, Sg_request * srp) in sg_new_read()
609 Sg_fd *sfp; in sg_write()
620 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_write()
714 sg_new_write(Sg_fd *sfp, struct file *file, const char __user *buf, in sg_new_write()
787 sg_common_write(Sg_fd * sfp, Sg_request * srp, in sg_common_write()
843 static int srp_done(Sg_fd *sfp, Sg_request *srp) in srp_done()
864 sg_fill_request_table(Sg_fd *sfp, sg_req_info_t *rinfo) in sg_fill_request_table()
903 Sg_fd *sfp; in sg_ioctl()
907 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_ioctl()
1147 Sg_fd *sfp; in sg_compat_ioctl()
1150 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_compat_ioctl()
1171 Sg_fd *sfp; in sg_poll()
1208 Sg_fd *sfp; in sg_fasync()
1210 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))) in sg_fasync()
1222 Sg_fd *sfp; in sg_vma_fault()
1227 if ((NULL == vma) || (!(sfp = (Sg_fd *) vma->vm_private_data))) in sg_vma_fault()
1262 Sg_fd *sfp; in sg_mmap()
1268 if ((!filp) || (!vma) || (!(sfp = (Sg_fd *) filp->private_data))) in sg_mmap()
1321 Sg_fd *sfp; in sg_rq_end_io()
1601 Sg_fd *sfp; in sg_remove_device()
1703 Sg_fd *sfp = srp->parentfp; in sg_start_req()
1832 Sg_fd *sfp = srp->parentfp; in sg_finish_rem_req()
1855 sg_build_sgat(Sg_scatter_hold * schp, const Sg_fd * sfp, int tablesize) in sg_build_sgat()
1868 sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size) in sg_build_indirect()
1950 sg_remove_scat(Sg_fd * sfp, Sg_scatter_hold * schp) in sg_remove_scat()
2006 sg_build_reserve(Sg_fd * sfp, int req_size) in sg_build_reserve()
2024 sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size) in sg_link_reserve()
2055 sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp) in sg_unlink_reserve()
2073 sg_get_rq_mark(Sg_fd * sfp, int pack_id) in sg_get_rq_mark()
2094 sg_add_request(Sg_fd * sfp) in sg_add_request()
2125 sg_remove_request(Sg_fd * sfp, Sg_request * srp) in sg_remove_request()
2142 static Sg_fd *
2145 Sg_fd *sfp; in sg_add_sfp()
2517 Sg_fd *fp; in sg_proc_debug_helper()