Lines Matching refs:opcode

148 	hdr->opcode = ISCSI_OP_SCSI_DATA_OUT;  in iscsi_prep_data_out_pdu()
259 static int iscsi_check_tmf_restrictions(struct iscsi_task *task, int opcode) in iscsi_check_tmf_restrictions() argument
268 if ((tmf->opcode & ISCSI_OPCODE_MASK) != ISCSI_OP_SCSI_TMFUNC) in iscsi_check_tmf_restrictions()
284 if (opcode != ISCSI_OP_SCSI_DATA_OUT) { in iscsi_check_tmf_restrictions()
289 task->hdr->opcode, opcode, in iscsi_check_tmf_restrictions()
301 task->hdr->opcode, opcode, in iscsi_check_tmf_restrictions()
313 if (opcode == ISCSI_OP_SCSI_DATA_OUT && in iscsi_check_tmf_restrictions()
367 hdr->opcode = ISCSI_OP_SCSI_CMD; in iscsi_prep_scsi_cmd_pdu()
654 uint8_t opcode = hdr->opcode & ISCSI_OPCODE_MASK; in iscsi_prep_mgmt_task() local
659 if (opcode != ISCSI_OP_LOGIN && opcode != ISCSI_OP_TEXT) in iscsi_prep_mgmt_task()
675 !(hdr->opcode & ISCSI_OP_IMMEDIATE)) { in iscsi_prep_mgmt_task()
684 if ((hdr->opcode & ISCSI_OPCODE_MASK) == ISCSI_OP_LOGOUT) in iscsi_prep_mgmt_task()
689 "datalen %d]\n", hdr->opcode & ISCSI_OPCODE_MASK, in iscsi_prep_mgmt_task()
700 uint8_t opcode = hdr->opcode & ISCSI_OPCODE_MASK; in __iscsi_conn_send_pdu() local
707 if (opcode == ISCSI_OP_LOGIN || opcode == ISCSI_OP_TEXT) { in __iscsi_conn_send_pdu()
731 …conn_printk(KERN_ERR, conn, "Can not send data buffer of len %u for op 0x%x\n", data_size, opcode); in __iscsi_conn_send_pdu()
760 if (conn->session->tt->alloc_pdu(task, hdr->opcode)) { in __iscsi_conn_send_pdu()
988 hdr.opcode = ISCSI_OP_NOOP_OUT | ISCSI_OP_IMMEDIATE; in iscsi_send_nopout()
1036 int opcode, rc = 0; in iscsi_handle_reject() local
1049 opcode = rejected_pdu.opcode & ISCSI_OPCODE_MASK; in iscsi_handle_reject()
1056 opcode, rejected_pdu.itt); in iscsi_handle_reject()
1062 opcode, rejected_pdu.itt); in iscsi_handle_reject()
1071 if (opcode != ISCSI_OP_NOOP_OUT) in iscsi_handle_reject()
1107 "code 0x%x\n", rejected_pdu.opcode, in iscsi_handle_reject()
1158 int opcode = hdr->opcode & ISCSI_OPCODE_MASK, rc = 0; in __iscsi_complete_pdu() local
1173 opcode, conn->id, itt, datalen); in __iscsi_complete_pdu()
1178 switch(opcode) { in __iscsi_complete_pdu()
1210 switch(opcode) { in __iscsi_complete_pdu()
1236 switch(opcode) { in __iscsi_complete_pdu()
2115 hdr->opcode = ISCSI_OP_SCSI_TMFUNC | ISCSI_OP_IMMEDIATE; in iscsi_prep_abort_task_pdu()
2256 hdr->opcode = ISCSI_OP_SCSI_TMFUNC | ISCSI_OP_IMMEDIATE; in iscsi_prep_lun_reset_pdu()
2414 hdr->opcode = ISCSI_OP_SCSI_TMFUNC | ISCSI_OP_IMMEDIATE; in iscsi_prep_tgt_reset_pdu()