Lines Matching defs:Sg_fd

160 } Sg_fd;
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;
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)))
558 sg_new_read(Sg_fd * sfp, char __user *buf, size_t count, Sg_request * srp)
605 Sg_fd *sfp;
616 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp)))
712 sg_new_write(Sg_fd *sfp, struct file *file, const char __user *buf,
779 sg_common_write(Sg_fd * sfp, Sg_request * srp,
836 static int srp_done(Sg_fd *sfp, Sg_request *srp)
857 sg_fill_request_table(Sg_fd *sfp, sg_req_info_t *rinfo)
917 sg_ioctl_common(struct file *filp, Sg_device *sdp, Sg_fd *sfp,
1154 Sg_fd *sfp;
1157 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp)))
1171 Sg_fd *sfp;
1208 Sg_fd *sfp;
1210 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp)))
1222 Sg_fd *sfp;
1227 if ((NULL == vma) || (!(sfp = (Sg_fd *) vma->vm_private_data)))
1262 Sg_fd *sfp;
1268 if ((!filp) || (!vma) || (!(sfp = (Sg_fd *) filp->private_data)))
1321 Sg_fd *sfp;
1597 Sg_fd *sfp;
1731 Sg_fd *sfp = srp->parentfp;
1836 Sg_fd *sfp = srp->parentfp;
1857 sg_build_sgat(Sg_scatter_hold * schp, const Sg_fd * sfp, int tablesize)
1870 sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size)
1948 sg_remove_scat(Sg_fd * sfp, Sg_scatter_hold * schp)
2004 sg_build_reserve(Sg_fd * sfp, int req_size)
2022 sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size)
2053 sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp)
2071 sg_get_rq_mark(Sg_fd * sfp, int pack_id, bool *busy)
2101 sg_add_request(Sg_fd * sfp)
2132 sg_remove_request(Sg_fd * sfp, Sg_request * srp)
2158 static Sg_fd *
2161 Sg_fd *sfp;
2531 Sg_fd *fp;