Lines Matching refs:Sg_request
138 } Sg_request; typedef
151 Sg_request req_arr[SG_MAX_QUEUE]; /* used as singly-linked list */
181 static int sg_start_req(Sg_request *srp, unsigned char *cmd);
182 static int sg_finish_rem_req(Sg_request * srp);
185 Sg_request * srp);
188 int read_only, int sg_io_owned, Sg_request **o_srp);
189 static int sg_common_write(Sg_fd * sfp, Sg_request * srp,
191 static int sg_read_oxfer(Sg_request * srp, char __user *outp, int num_read_xfer);
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);
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);
445 Sg_request *srp; in sg_read()
558 sg_new_read(Sg_fd * sfp, char __user *buf, size_t count, Sg_request * srp) in sg_new_read()
606 Sg_request *srp; in sg_write()
714 Sg_request **o_srp) in sg_new_write()
717 Sg_request *srp; in sg_new_write()
779 sg_common_write(Sg_fd * sfp, Sg_request * srp, in sg_common_write()
836 static int srp_done(Sg_fd *sfp, Sg_request *srp) in srp_done()
859 Sg_request *srp; in sg_fill_request_table()
922 Sg_request *srp; in sg_ioctl_common()
1171 Sg_request *srp; in sg_poll()
1716 sg_start_req(Sg_request *srp, unsigned char *cmd) in sg_start_req()
1821 sg_finish_rem_req(Sg_request *srp) in sg_finish_rem_req()
1960 sg_read_oxfer(Sg_request * srp, char __user *outp, int num_read_xfer) in sg_read_oxfer()
2011 sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size) in sg_link_reserve()
2042 sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp) in sg_unlink_reserve()
2059 static Sg_request *
2062 Sg_request *resp; in sg_get_rq_mark()
2089 static Sg_request *
2094 Sg_request *rp = sfp->req_arr; in sg_add_request()
2108 memset(rp, 0, sizeof (Sg_request)); in sg_add_request()
2121 sg_remove_request(Sg_fd * sfp, Sg_request * srp) in sg_remove_request()
2200 Sg_request *srp; in sg_remove_sfp_usercontext()
2206 srp = list_first_entry(&sfp->rq_list, Sg_request, entry); in sg_remove_sfp_usercontext()
2519 Sg_request *srp; in sg_proc_debug_helper()