Searched refs:ecdb_ahdr (Results 1 – 2 of 2) sorted by relevance
198 struct iscsi_ecdb_ahdr *ecdb_ahdr; in iscsi_prep_ecdb_ahs() local201 ecdb_ahdr = iscsi_next_hdr(task); in iscsi_prep_ecdb_ahs()204 BUG_ON(rlen > sizeof(ecdb_ahdr->ecdb)); in iscsi_prep_ecdb_ahs()205 ahslength = rlen + sizeof(ecdb_ahdr->reserved); in iscsi_prep_ecdb_ahs()209 rc = iscsi_add_hdr(task, sizeof(ecdb_ahdr->ahslength) + in iscsi_prep_ecdb_ahs()210 sizeof(ecdb_ahdr->ahstype) + ahslength + pad_len); in iscsi_prep_ecdb_ahs()215 memset(&ecdb_ahdr->ecdb[rlen], 0, pad_len); in iscsi_prep_ecdb_ahs()217 ecdb_ahdr->ahslength = cpu_to_be16(ahslength); in iscsi_prep_ecdb_ahs()218 ecdb_ahdr->ahstype = ISCSI_AHSTYPE_CDB; in iscsi_prep_ecdb_ahs()219 ecdb_ahdr->reserved = 0; in iscsi_prep_ecdb_ahs()[all …]
1007 struct iscsi_ecdb_ahdr *ecdb_ahdr; in iscsit_setup_scsi_cmd() local1114 ecdb_ahdr = (struct iscsi_ecdb_ahdr *) (hdr + 1); in iscsit_setup_scsi_cmd()1115 if (ecdb_ahdr->ahstype != ISCSI_AHSTYPE_CDB) { in iscsit_setup_scsi_cmd()1117 ecdb_ahdr->ahstype); in iscsit_setup_scsi_cmd()1122 cdb = kmalloc(be16_to_cpu(ecdb_ahdr->ahslength) + 15, in iscsit_setup_scsi_cmd()1128 memcpy(cdb + ISCSI_CDB_SIZE, ecdb_ahdr->ecdb, in iscsit_setup_scsi_cmd()1129 be16_to_cpu(ecdb_ahdr->ahslength) - 1); in iscsit_setup_scsi_cmd()