Lines Matching refs:Sg_request
141 } Sg_request;
152 Sg_request *headrp; /* head of request slist, NULL->empty */
154 Sg_request req_arr[SG_MAX_QUEUE]; /* used as singly-linked list */
182 static int sg_start_req(Sg_request *srp, unsigned char *cmd);
183 static int sg_finish_rem_req(Sg_request * srp);
186 Sg_request * srp);
189 int read_only, int sg_io_owned, Sg_request **o_srp);
190 static int sg_common_write(Sg_fd * sfp, Sg_request * srp,
192 static int sg_read_oxfer(Sg_request * srp, char __user *outp, int num_read_xfer);
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);
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);
347 Sg_request *srp;
495 sg_new_read(Sg_fd * sfp, char __user *buf, size_t count, Sg_request * srp)
539 Sg_request *srp;
645 Sg_request **o_srp)
648 Sg_request *srp;
715 sg_common_write(Sg_fd * sfp, Sg_request * srp,
778 Sg_request *srp;
1131 Sg_request *srp;
1622 static int sg_start_req(Sg_request *srp, unsigned char *cmd)
1718 static int sg_finish_rem_req(Sg_request * srp)
1859 sg_read_oxfer(Sg_request * srp, char __user *outp, int num_read_xfer)
1908 sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size)
1937 sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp)
1952 static Sg_request *
1955 Sg_request *resp;
1972 static Sg_request *
1977 Sg_request *resp;
1978 Sg_request *rp = sfp->req_arr;
1983 memset(rp, 0, sizeof (Sg_request));
1996 memset(rp, 0, sizeof (Sg_request));
2016 sg_remove_request(Sg_fd * sfp, Sg_request * srp)
2018 Sg_request *prev_rp;
2019 Sg_request *rp;
2133 const Sg_request *srp;
2519 Sg_request *srp;