Lines Matching refs:ecdb_ahdr
198 struct iscsi_ecdb_ahdr *ecdb_ahdr; in iscsi_prep_ecdb_ahs() local
201 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()
220 memcpy(ecdb_ahdr->ecdb, cmd->cmnd + ISCSI_CDB_SIZE, rlen); in iscsi_prep_ecdb_ahs()