srp               794 drivers/scsi/ibmvscsi/ibmvscsi.c 			unmap_cmd_data(&evt->iu.srp.cmd, evt,
srp               799 drivers/scsi/ibmvscsi/ibmvscsi.c 			   evt->iu.srp.login_req.opcode != SRP_LOGIN_REQ)
srp               833 drivers/scsi/ibmvscsi/ibmvscsi.c 		evt_struct->iu.srp.cmd.opcode);
srp               881 drivers/scsi/ibmvscsi/ibmvscsi.c 		         evt_struct->iu.srp.login_req.opcode != SRP_LOGIN_REQ)
srp               888 drivers/scsi/ibmvscsi/ibmvscsi.c 		         evt_struct->iu.srp.cmd.opcode != SRP_TSK_MGMT) {
srp               910 drivers/scsi/ibmvscsi/ibmvscsi.c 	evt_struct->xfer_iu->srp.rsp.tag = (u64)evt_struct;
srp               949 drivers/scsi/ibmvscsi/ibmvscsi.c 	unmap_cmd_data(&evt_struct->iu.srp.cmd, evt_struct, hostdata->dev);
srp               957 drivers/scsi/ibmvscsi/ibmvscsi.c 	unmap_cmd_data(&evt_struct->iu.srp.cmd, evt_struct, hostdata->dev);
srp               978 drivers/scsi/ibmvscsi/ibmvscsi.c 	struct srp_rsp *rsp = &evt_struct->xfer_iu->srp.rsp;
srp               993 drivers/scsi/ibmvscsi/ibmvscsi.c 		unmap_cmd_data(&evt_struct->iu.srp.cmd, 
srp              1039 drivers/scsi/ibmvscsi/ibmvscsi.c 	srp_cmd = &evt_struct->iu.srp.cmd;
srp              1140 drivers/scsi/ibmvscsi/ibmvscsi.c 	switch (evt_struct->xfer_iu->srp.login_rsp.opcode) {
srp              1145 drivers/scsi/ibmvscsi/ibmvscsi.c 			 evt_struct->xfer_iu->srp.login_rej.reason);
srp              1151 drivers/scsi/ibmvscsi/ibmvscsi.c 			evt_struct->xfer_iu->srp.login_rsp.opcode);
srp              1165 drivers/scsi/ibmvscsi/ibmvscsi.c 		   be32_to_cpu(evt_struct->xfer_iu->srp.login_rsp.req_lim_delta));
srp              1189 drivers/scsi/ibmvscsi/ibmvscsi.c 	login = &evt_struct->iu.srp.login_req;
srp              1513 drivers/scsi/ibmvscsi/ibmvscsi.c 		tsk_mgmt = &evt->iu.srp.tsk_mgmt;
srp              1550 drivers/scsi/ibmvscsi/ibmvscsi.c 	if (unlikely(srp_rsp.srp.rsp.opcode != SRP_RSP)) {
srp              1553 drivers/scsi/ibmvscsi/ibmvscsi.c 				    srp_rsp.srp.rsp.opcode);
srp              1557 drivers/scsi/ibmvscsi/ibmvscsi.c 	if (srp_rsp.srp.rsp.flags & SRP_RSP_FLAG_RSPVALID)
srp              1558 drivers/scsi/ibmvscsi/ibmvscsi.c 		rsp_rc = *((int *)srp_rsp.srp.rsp.data);
srp              1560 drivers/scsi/ibmvscsi/ibmvscsi.c 		rsp_rc = srp_rsp.srp.rsp.status;
srp              1595 drivers/scsi/ibmvscsi/ibmvscsi.c 	unmap_cmd_data(&found_evt->iu.srp.cmd, found_evt,
srp              1636 drivers/scsi/ibmvscsi/ibmvscsi.c 		tsk_mgmt = &evt->iu.srp.tsk_mgmt;
srp              1671 drivers/scsi/ibmvscsi/ibmvscsi.c 	if (unlikely(srp_rsp.srp.rsp.opcode != SRP_RSP)) {
srp              1674 drivers/scsi/ibmvscsi/ibmvscsi.c 				    srp_rsp.srp.rsp.opcode);
srp              1678 drivers/scsi/ibmvscsi/ibmvscsi.c 	if (srp_rsp.srp.rsp.flags & SRP_RSP_FLAG_RSPVALID)
srp              1679 drivers/scsi/ibmvscsi/ibmvscsi.c 		rsp_rc = *((int *)srp_rsp.srp.rsp.data);
srp              1681 drivers/scsi/ibmvscsi/ibmvscsi.c 		rsp_rc = srp_rsp.srp.rsp.status;
srp              1700 drivers/scsi/ibmvscsi/ibmvscsi.c 			unmap_cmd_data(&tmp_evt->iu.srp.cmd, tmp_evt,
srp              1821 drivers/scsi/ibmvscsi/ibmvscsi.c 		atomic_add(be32_to_cpu(evt_struct->xfer_iu->srp.rsp.req_lim_delta),
srp              2107 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	struct srp_login_rsp *rsp = &vio_iu(iue)->srp.login_rsp;
srp              2167 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	struct srp_login_rej *rej = &vio_iu(iue)->srp.login_rej;
srp              2282 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	struct srp_login_req *req = &vio_iu(iue)->srp.login_req;
srp              2356 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	struct srp_i_logout *log_out = &vio_iu(iue)->srp.i_logout;
srp              2381 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	struct srp_cmd *srp;
srp              2401 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	srp = &vio_iu(iue)->srp.cmd;
srp              2410 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		switch (srp->opcode) {
srp              2416 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			tsk = &vio_iu(iue)->srp.tsk_mgmt;
srp              2428 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 				srp->tag, srp->tag);
srp              2429 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			cmd->rsp.tag = srp->tag;
srp              2449 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 				(uint)srp->opcode);
srp              2454 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	} else if (srp->opcode == SRP_LOGIN_REQ && vscsi->state == CONNECTED) {
srp              2672 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	struct srp_cmd *srp = (struct srp_cmd *)iue->sbuf->buf;
srp              2688 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	if (srp->add_cdb_len & 0x03) {
srp              2697 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	if (srp_get_desc_table(srp, &dir, &data_len)) {
srp              2699 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			srp->tag);
srp              2703 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	cmd->rsp.sol_not = srp->sol_not;
srp              2705 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	switch (srp->task_attr) {
srp              2720 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			srp->task_attr);
srp              2724 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	cmd->se_cmd.tag = be64_to_cpu(srp->tag);
srp              2730 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	srp->lun.scsi_lun[0] &= 0x3f;
srp              2732 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	rc = target_submit_cmd(&cmd->se_cmd, nexus->se_sess, srp->cdb,
srp              2733 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			       cmd->sense_buf, scsilun_to_int(&srp->lun),
srp              2767 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	struct srp_tsk_mgmt *srp_tsk = &vio_iu(iue)->srp.tsk_mgmt;
srp              3063 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	struct srp_cmd *srp = (struct srp_cmd *)iue->sbuf->buf;
srp              3067 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	if (vscsi->fast_fail && (READ_CMD(srp->cdb) || WRITE_CMD(srp->cdb)))
srp              3103 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	rsp = &vio_iu(iue)->srp.rsp;
srp              3771 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	rc = srp_transfer_data(cmd, &vio_iu(iue)->srp.cmd, ibmvscsis_rdma,
srp              3804 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	rc = srp_transfer_data(cmd, &vio_iu(iue)->srp.cmd, ibmvscsis_rdma, 1,
srp              3846 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	struct srp_tsk_mgmt *srp_tsk = &vio_iu(iue)->srp.tsk_mgmt;
srp               176 drivers/scsi/sg.c static int sg_start_req(Sg_request *srp, unsigned char *cmd);
srp               177 drivers/scsi/sg.c static int sg_finish_rem_req(Sg_request * srp);
srp               180 drivers/scsi/sg.c 			   Sg_request * srp);
srp               184 drivers/scsi/sg.c static int sg_common_write(Sg_fd * sfp, Sg_request * srp,
srp               186 drivers/scsi/sg.c static int sg_read_oxfer(Sg_request * srp, char __user *outp, int num_read_xfer);
srp               189 drivers/scsi/sg.c static void sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size);
srp               190 drivers/scsi/sg.c static void sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp);
srp               195 drivers/scsi/sg.c static int sg_remove_request(Sg_fd * sfp, Sg_request * srp);
srp               413 drivers/scsi/sg.c 	Sg_request *srp;
srp               462 drivers/scsi/sg.c 	srp = sg_get_rq_mark(sfp, req_pack_id);
srp               463 drivers/scsi/sg.c 	if (!srp) {		/* now wait on packet to arrive */
srp               474 drivers/scsi/sg.c 			(srp = sg_get_rq_mark(sfp, req_pack_id))));
srp               484 drivers/scsi/sg.c 	if (srp->header.interface_id != '\0') {
srp               485 drivers/scsi/sg.c 		retval = sg_new_read(sfp, buf, count, srp);
srp               489 drivers/scsi/sg.c 	hp = &srp->header;
srp               502 drivers/scsi/sg.c 	    ((srp->data.cmd_opcode >= 0xc0) && (12 == hp->cmd_len)) ? 1 : 0;
srp               508 drivers/scsi/sg.c 		memcpy(old_hdr->sense_buffer, srp->sense_b,
srp               531 drivers/scsi/sg.c 		old_hdr->result = (srp->sense_b[0] == 0 && 
srp               549 drivers/scsi/sg.c 			if (sg_read_oxfer(srp, buf, count - SZ_SG_HEADER)) {
srp               556 drivers/scsi/sg.c 	sg_finish_rem_req(srp);
srp               557 drivers/scsi/sg.c 	sg_remove_request(sfp, srp);
srp               565 drivers/scsi/sg.c sg_new_read(Sg_fd * sfp, char __user *buf, size_t count, Sg_request * srp)
srp               567 drivers/scsi/sg.c 	sg_io_hdr_t *hp = &srp->header;
srp               581 drivers/scsi/sg.c 			len = 8 + (int) srp->sense_b[7];	/* Additional sense length field */
srp               583 drivers/scsi/sg.c 			if (copy_to_user(hp->sbp, srp->sense_b, len)) {
srp               597 drivers/scsi/sg.c 	err2 = sg_finish_rem_req(srp);
srp               598 drivers/scsi/sg.c 	sg_remove_request(sfp, srp);
srp               610 drivers/scsi/sg.c 	Sg_request *srp;
srp               643 drivers/scsi/sg.c 	if (!(srp = sg_add_request(sfp))) {
srp               668 drivers/scsi/sg.c 		sg_remove_request(sfp, srp);
srp               671 drivers/scsi/sg.c 	hp = &srp->header;
srp               693 drivers/scsi/sg.c 		sg_remove_request(sfp, srp);
srp               711 drivers/scsi/sg.c 	k = sg_common_write(sfp, srp, cmnd, sfp->timeout, blocking);
srp               721 drivers/scsi/sg.c 	Sg_request *srp;
srp               733 drivers/scsi/sg.c 	if (!(srp = sg_add_request(sfp))) {
srp               738 drivers/scsi/sg.c 	srp->sg_io_owned = sg_io_owned;
srp               739 drivers/scsi/sg.c 	hp = &srp->header;
srp               741 drivers/scsi/sg.c 		sg_remove_request(sfp, srp);
srp               745 drivers/scsi/sg.c 		sg_remove_request(sfp, srp);
srp               750 drivers/scsi/sg.c 			sg_remove_request(sfp, srp);
srp               754 drivers/scsi/sg.c 			sg_remove_request(sfp, srp);
srp               758 drivers/scsi/sg.c 			sg_remove_request(sfp, srp);
srp               762 drivers/scsi/sg.c 	ul_timeout = msecs_to_jiffies(srp->header.timeout);
srp               765 drivers/scsi/sg.c 		sg_remove_request(sfp, srp);
srp               769 drivers/scsi/sg.c 		sg_remove_request(sfp, srp);
srp               773 drivers/scsi/sg.c 		sg_remove_request(sfp, srp);
srp               777 drivers/scsi/sg.c 		sg_remove_request(sfp, srp);
srp               780 drivers/scsi/sg.c 	k = sg_common_write(sfp, srp, cmnd, timeout, blocking);
srp               784 drivers/scsi/sg.c 		*o_srp = srp;
srp               789 drivers/scsi/sg.c sg_common_write(Sg_fd * sfp, Sg_request * srp,
srp               794 drivers/scsi/sg.c 	sg_io_hdr_t *hp = &srp->header;
srp               796 drivers/scsi/sg.c 	srp->data.cmd_opcode = cmnd[0];	/* hold opcode of command */
srp               809 drivers/scsi/sg.c 		sg_remove_request(sfp, srp);
srp               813 drivers/scsi/sg.c 	k = sg_start_req(srp, cmnd);
srp               817 drivers/scsi/sg.c 		sg_finish_rem_req(srp);
srp               818 drivers/scsi/sg.c 		sg_remove_request(sfp, srp);
srp               822 drivers/scsi/sg.c 		if (srp->bio) {
srp               823 drivers/scsi/sg.c 			scsi_req_free_cmd(scsi_req(srp->rq));
srp               824 drivers/scsi/sg.c 			blk_put_request(srp->rq);
srp               825 drivers/scsi/sg.c 			srp->rq = NULL;
srp               828 drivers/scsi/sg.c 		sg_finish_rem_req(srp);
srp               829 drivers/scsi/sg.c 		sg_remove_request(sfp, srp);
srp               840 drivers/scsi/sg.c 	srp->rq->timeout = timeout;
srp               843 drivers/scsi/sg.c 			      srp->rq, at_head, sg_rq_end_io);
srp               847 drivers/scsi/sg.c static int srp_done(Sg_fd *sfp, Sg_request *srp)
srp               853 drivers/scsi/sg.c 	ret = srp->done;
srp               870 drivers/scsi/sg.c 	Sg_request *srp;
srp               875 drivers/scsi/sg.c 	list_for_each_entry(srp, &sfp->rq_list, entry) {
srp               878 drivers/scsi/sg.c 		rinfo[val].req_state = srp->done + 1;
srp               880 drivers/scsi/sg.c 			srp->header.masked_status &
srp               881 drivers/scsi/sg.c 			srp->header.host_status &
srp               882 drivers/scsi/sg.c 			srp->header.driver_status;
srp               883 drivers/scsi/sg.c 		if (srp->done)
srp               885 drivers/scsi/sg.c 				srp->header.duration;
srp               889 drivers/scsi/sg.c 				(ms > srp->header.duration) ?
srp               890 drivers/scsi/sg.c 				(ms - srp->header.duration) : 0;
srp               892 drivers/scsi/sg.c 		rinfo[val].orphan = srp->orphan;
srp               893 drivers/scsi/sg.c 		rinfo[val].sg_io_owned = srp->sg_io_owned;
srp               894 drivers/scsi/sg.c 		rinfo[val].pack_id = srp->header.pack_id;
srp               895 drivers/scsi/sg.c 		rinfo[val].usr_ptr = srp->header.usr_ptr;
srp               908 drivers/scsi/sg.c 	Sg_request *srp;
srp               927 drivers/scsi/sg.c 				 1, read_only, 1, &srp);
srp               931 drivers/scsi/sg.c 			(srp_done(sfp, srp) || atomic_read(&sdp->detaching)));
srp               935 drivers/scsi/sg.c 		if (srp->done) {
srp               936 drivers/scsi/sg.c 			srp->done = 2;
srp               938 drivers/scsi/sg.c 			result = sg_new_read(sfp, p, SZ_SG_IO_HDR, srp);
srp               941 drivers/scsi/sg.c 		srp->orphan = 1;
srp              1002 drivers/scsi/sg.c 		list_for_each_entry(srp, &sfp->rq_list, entry) {
srp              1003 drivers/scsi/sg.c 			if ((1 == srp->done) && (!srp->sg_io_owned)) {
srp              1006 drivers/scsi/sg.c 				__put_user(srp->header.pack_id, ip);
srp              1016 drivers/scsi/sg.c 		list_for_each_entry(srp, &sfp->rq_list, entry) {
srp              1017 drivers/scsi/sg.c 			if ((1 == srp->done) && (!srp->sg_io_owned))
srp              1176 drivers/scsi/sg.c 	Sg_request *srp;
srp              1188 drivers/scsi/sg.c 	list_for_each_entry(srp, &sfp->rq_list, entry) {
srp              1190 drivers/scsi/sg.c 		if ((0 == res) && (1 == srp->done) && (!srp->sg_io_owned))
srp              1307 drivers/scsi/sg.c 	struct sg_request *srp = container_of(work, struct sg_request, ew.work);
srp              1308 drivers/scsi/sg.c 	struct sg_fd *sfp = srp->parentfp;
srp              1310 drivers/scsi/sg.c 	sg_finish_rem_req(srp);
srp              1311 drivers/scsi/sg.c 	sg_remove_request(sfp, srp);
srp              1322 drivers/scsi/sg.c 	struct sg_request *srp = rq->end_io_data;
srp              1331 drivers/scsi/sg.c 	if (WARN_ON(srp->done != 0))
srp              1334 drivers/scsi/sg.c 	sfp = srp->parentfp;
srp              1348 drivers/scsi/sg.c 				      srp->header.pack_id, result));
srp              1349 drivers/scsi/sg.c 	srp->header.resid = resid;
srp              1351 drivers/scsi/sg.c 	srp->header.duration = (ms > srp->header.duration) ?
srp              1352 drivers/scsi/sg.c 				(ms - srp->header.duration) : 0;
srp              1356 drivers/scsi/sg.c 		srp->header.status = 0xff & result;
srp              1357 drivers/scsi/sg.c 		srp->header.masked_status = status_byte(result);
srp              1358 drivers/scsi/sg.c 		srp->header.msg_status = msg_byte(result);
srp              1359 drivers/scsi/sg.c 		srp->header.host_status = host_byte(result);
srp              1360 drivers/scsi/sg.c 		srp->header.driver_status = driver_byte(result);
srp              1362 drivers/scsi/sg.c 		    ((CHECK_CONDITION == srp->header.masked_status) ||
srp              1363 drivers/scsi/sg.c 		     (COMMAND_TERMINATED == srp->header.masked_status)))
srp              1380 drivers/scsi/sg.c 		memcpy(srp->sense_b, req->sense, SCSI_SENSE_BUFFERSIZE);
srp              1390 drivers/scsi/sg.c 	srp->rq = NULL;
srp              1395 drivers/scsi/sg.c 	if (unlikely(srp->orphan)) {
srp              1397 drivers/scsi/sg.c 			srp->sg_io_owned = 0;
srp              1401 drivers/scsi/sg.c 	srp->done = done;
srp              1412 drivers/scsi/sg.c 		INIT_WORK(&srp->ew.work, sg_rq_end_io_usercontext);
srp              1413 drivers/scsi/sg.c 		schedule_work(&srp->ew.work);
srp              1702 drivers/scsi/sg.c sg_start_req(Sg_request *srp, unsigned char *cmd)
srp              1707 drivers/scsi/sg.c 	Sg_fd *sfp = srp->parentfp;
srp              1708 drivers/scsi/sg.c 	sg_io_hdr_t *hp = &srp->header;
srp              1712 drivers/scsi/sg.c 	Sg_scatter_hold *req_schp = &srp->data;
srp              1753 drivers/scsi/sg.c 	srp->rq = rq;
srp              1754 drivers/scsi/sg.c 	rq->end_io_data = srp;
srp              1773 drivers/scsi/sg.c 			sg_link_reserve(sfp, srp, dxfer_len);
srp              1821 drivers/scsi/sg.c 		srp->bio = rq->bio;
srp              1832 drivers/scsi/sg.c sg_finish_rem_req(Sg_request *srp)
srp              1836 drivers/scsi/sg.c 	Sg_fd *sfp = srp->parentfp;
srp              1837 drivers/scsi/sg.c 	Sg_scatter_hold *req_schp = &srp->data;
srp              1841 drivers/scsi/sg.c 				      (int) srp->res_used));
srp              1842 drivers/scsi/sg.c 	if (srp->bio)
srp              1843 drivers/scsi/sg.c 		ret = blk_rq_unmap_user(srp->bio);
srp              1845 drivers/scsi/sg.c 	if (srp->rq) {
srp              1846 drivers/scsi/sg.c 		scsi_req_free_cmd(scsi_req(srp->rq));
srp              1847 drivers/scsi/sg.c 		blk_put_request(srp->rq);
srp              1850 drivers/scsi/sg.c 	if (srp->res_used)
srp              1851 drivers/scsi/sg.c 		sg_unlink_reserve(sfp, srp);
srp              1977 drivers/scsi/sg.c sg_read_oxfer(Sg_request * srp, char __user *outp, int num_read_xfer)
srp              1979 drivers/scsi/sg.c 	Sg_scatter_hold *schp = &srp->data;
srp              1982 drivers/scsi/sg.c 	SCSI_LOG_TIMEOUT(4, sg_printk(KERN_INFO, srp->parentfp->parentdp,
srp              2028 drivers/scsi/sg.c sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size)
srp              2030 drivers/scsi/sg.c 	Sg_scatter_hold *req_schp = &srp->data;
srp              2034 drivers/scsi/sg.c 	srp->res_used = 1;
srp              2059 drivers/scsi/sg.c sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp)
srp              2061 drivers/scsi/sg.c 	Sg_scatter_hold *req_schp = &srp->data;
srp              2063 drivers/scsi/sg.c 	SCSI_LOG_TIMEOUT(4, sg_printk(KERN_INFO, srp->parentfp->parentdp,
srp              2071 drivers/scsi/sg.c 	srp->res_used = 0;
srp              2129 drivers/scsi/sg.c sg_remove_request(Sg_fd * sfp, Sg_request * srp)
srp              2134 drivers/scsi/sg.c 	if (!sfp || !srp || list_empty(&sfp->rq_list))
srp              2137 drivers/scsi/sg.c 	if (!list_empty(&srp->entry)) {
srp              2138 drivers/scsi/sg.c 		list_del(&srp->entry);
srp              2139 drivers/scsi/sg.c 		srp->parentfp = NULL;
srp              2199 drivers/scsi/sg.c 	Sg_request *srp;
srp              2205 drivers/scsi/sg.c 		srp = list_first_entry(&sfp->rq_list, Sg_request, entry);
srp              2206 drivers/scsi/sg.c 		sg_finish_rem_req(srp);
srp              2207 drivers/scsi/sg.c 		list_del(&srp->entry);
srp              2208 drivers/scsi/sg.c 		srp->parentfp = NULL;
srp              2520 drivers/scsi/sg.c 	Sg_request *srp;
srp              2539 drivers/scsi/sg.c 		list_for_each_entry(srp, &fp->rq_list, entry) {
srp              2540 drivers/scsi/sg.c 			hp = &srp->header;
srp              2542 drivers/scsi/sg.c 			if (srp->res_used) {
srp              2555 drivers/scsi/sg.c 			blen = srp->data.bufflen;
srp              2556 drivers/scsi/sg.c 			usg = srp->data.k_use_sg;
srp              2557 drivers/scsi/sg.c 			seq_puts(s, srp->done ?
srp              2558 drivers/scsi/sg.c 				 ((1 == srp->done) ?  "rcv:" : "fin:")
srp              2561 drivers/scsi/sg.c 				   srp->header.pack_id, blen);
srp              2562 drivers/scsi/sg.c 			if (srp->done)
srp              2572 drivers/scsi/sg.c 				   (int) srp->data.cmd_opcode);
srp              1472 drivers/usb/gadget/udc/core.c static DEVICE_ATTR_WO(srp);
srp              1817 drivers/usb/musb/musb_core.c 	unsigned short	srp;
srp              1819 drivers/usb/musb/musb_core.c 	if (sscanf(buf, "%hu", &srp) != 1
srp              1820 drivers/usb/musb/musb_core.c 			|| (srp != 1)) {
srp              1825 drivers/usb/musb/musb_core.c 	if (srp == 1)
srp              1830 drivers/usb/musb/musb_core.c static DEVICE_ATTR_WO(srp);
srp               196 include/scsi/viosrp.h 	union srp_iu srp;
srp                85 security/smack/smack_access.c 	struct smack_rule *srp;
srp                87 security/smack/smack_access.c 	list_for_each_entry_rcu(srp, rule_list, list) {
srp                88 security/smack/smack_access.c 		if (srp->smk_object->smk_known == object_label &&
srp                89 security/smack/smack_access.c 		    srp->smk_subject->smk_known == subject_label) {
srp                90 security/smack/smack_access.c 			may = srp->smk_access;
srp              1662 security/smack/smack_lsm.c 	struct smack_rule *srp;
srp              1697 security/smack/smack_lsm.c 	list_for_each_entry_rcu(srp, &skp->smk_rules, list) {
srp              1698 security/smack/smack_lsm.c 		okp = srp->smk_object;
srp              1708 security/smack/smack_lsm.c 		may = smk_access_entry(srp->smk_subject->smk_known,
srp              1712 security/smack/smack_lsm.c 			may = srp->smk_access;
srp              1714 security/smack/smack_lsm.c 			may &= srp->smk_access;
srp               211 security/smack/smackfs.c static int smk_set_access(struct smack_parsed_rule *srp,
srp               226 security/smack/smackfs.c 		if (sp->smk_object == srp->smk_object &&
srp               227 security/smack/smackfs.c 		    sp->smk_subject == srp->smk_subject) {
srp               229 security/smack/smackfs.c 			sp->smk_access |= srp->smk_access1;
srp               230 security/smack/smackfs.c 			sp->smk_access &= ~srp->smk_access2;
srp               242 security/smack/smackfs.c 		sp->smk_subject = srp->smk_subject;
srp               243 security/smack/smackfs.c 		sp->smk_object = srp->smk_object;
srp               244 security/smack/smackfs.c 		sp->smk_access = srp->smk_access1 & ~srp->smk_access2;
srp               564 security/smack/smackfs.c static void smk_rule_show(struct seq_file *s, struct smack_rule *srp, int max)
srp               572 security/smack/smackfs.c 	if (strlen(srp->smk_subject->smk_known) >= max ||
srp               573 security/smack/smackfs.c 	    strlen(srp->smk_object->smk_known) >= max)
srp               576 security/smack/smackfs.c 	if (srp->smk_access == 0)
srp               580 security/smack/smackfs.c 		   srp->smk_subject->smk_known,
srp               581 security/smack/smackfs.c 		   srp->smk_object->smk_known);
srp               585 security/smack/smackfs.c 	if (srp->smk_access & MAY_READ)
srp               587 security/smack/smackfs.c 	if (srp->smk_access & MAY_WRITE)
srp               589 security/smack/smackfs.c 	if (srp->smk_access & MAY_EXEC)
srp               591 security/smack/smackfs.c 	if (srp->smk_access & MAY_APPEND)
srp               593 security/smack/smackfs.c 	if (srp->smk_access & MAY_TRANSMUTE)
srp               595 security/smack/smackfs.c 	if (srp->smk_access & MAY_LOCK)
srp               597 security/smack/smackfs.c 	if (srp->smk_access & MAY_BRINGUP)
srp               620 security/smack/smackfs.c 	struct smack_rule *srp;
srp               624 security/smack/smackfs.c 	list_for_each_entry_rcu(srp, &skp->smk_rules, list)
srp               625 security/smack/smackfs.c 		smk_rule_show(s, srp, SMK_LABELLEN);
srp              2208 security/smack/smackfs.c 	struct smack_rule *srp =
srp              2211 security/smack/smackfs.c 	smk_rule_show(s, srp, SMK_LABELLEN);
srp              2337 security/smack/smackfs.c 	struct smack_rule *srp;
srp              2341 security/smack/smackfs.c 	list_for_each_entry_rcu(srp, &skp->smk_rules, list)
srp              2342 security/smack/smackfs.c 		smk_rule_show(s, srp, SMK_LONGLABEL);
srp              2416 security/smack/smackfs.c 	struct smack_rule *srp =
srp              2419 security/smack/smackfs.c 	smk_rule_show(s, srp, SMK_LONGLABEL);