Lines Matching defs:Sg_fd

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