Lines Matching refs:Sg_fd
164 } Sg_fd;
184 static int sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size);
185 static ssize_t sg_new_read(Sg_fd * sfp, char __user *buf, size_t count,
187 static ssize_t sg_new_write(Sg_fd *sfp, struct file *file,
190 static int sg_common_write(Sg_fd * sfp, Sg_request * srp,
194 static void sg_build_reserve(Sg_fd * sfp, int req_size);
195 static void sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size);
196 static void sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp);
197 static Sg_fd *sg_add_sfp(Sg_device * sdp, int dev);
199 static Sg_request *sg_get_rq_mark(Sg_fd * sfp, int pack_id);
200 static Sg_request *sg_add_request(Sg_fd * sfp);
201 static int sg_remove_request(Sg_fd * sfp, Sg_request * srp);
202 static int sg_res_in_use(Sg_fd * sfp);
228 Sg_fd *sfp;
326 Sg_fd *sfp;
328 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp)))
346 Sg_fd *sfp;
353 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp)))
495 sg_new_read(Sg_fd * sfp, char __user *buf, size_t count, Sg_request * srp)
538 Sg_fd *sfp;
544 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp)))
643 sg_new_write(Sg_fd *sfp, struct file *file, const char __user *buf,
715 sg_common_write(Sg_fd * sfp, Sg_request * srp,
777 Sg_fd *sfp;
781 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp)))
1106 Sg_fd *sfp;
1109 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp)))
1130 Sg_fd *sfp;
1135 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp))
1164 Sg_fd *sfp;
1166 if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp)))
1177 Sg_fd *sfp;
1182 if ((NULL == vma) || (!(sfp = (Sg_fd *) vma->vm_private_data)))
1216 Sg_fd *sfp;
1221 if ((!filp) || (!vma) || (!(sfp = (Sg_fd *) filp->private_data)))
1264 Sg_fd *sfp;
1531 Sg_fd *sfp;
1626 Sg_fd *sfp = srp->parentfp;
1722 Sg_fd *sfp = srp->parentfp;
1744 sg_build_sgat(Sg_scatter_hold * schp, const Sg_fd * sfp, int tablesize)
1757 sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size)
1891 sg_build_reserve(Sg_fd * sfp, int req_size)
1908 sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size)
1937 sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp)
1953 sg_get_rq_mark(Sg_fd * sfp, int pack_id)
1973 sg_add_request(Sg_fd * sfp)
2016 sg_remove_request(Sg_fd * sfp, Sg_request * srp)
2046 static Sg_fd *
2049 Sg_fd *sfp;
2131 sg_res_in_use(Sg_fd * sfp)
2520 Sg_fd *fp;