Lines Matching full:pdu
304 struct iscsi_pdu *pdu; in iscsit_set_datain_values_yes_and_no() local
330 pdu = iscsit_get_pdu_holder_for_seq(cmd, NULL); in iscsit_set_datain_values_yes_and_no()
331 if (!pdu) in iscsit_set_datain_values_yes_and_no()
334 if ((read_data_done + pdu->length) == cmd->se_cmd.data_length) { in iscsit_set_datain_values_yes_and_no()
335 pdu->flags |= (ISCSI_FLAG_CMD_FINAL | ISCSI_FLAG_DATA_STATUS); in iscsit_set_datain_values_yes_and_no()
337 pdu->flags |= ISCSI_FLAG_DATA_ACK; in iscsit_set_datain_values_yes_and_no()
343 next_burst_len += pdu->length; in iscsit_set_datain_values_yes_and_no()
345 pdu->flags |= ISCSI_FLAG_CMD_FINAL; in iscsit_set_datain_values_yes_and_no()
347 pdu->flags |= ISCSI_FLAG_DATA_ACK; in iscsit_set_datain_values_yes_and_no()
353 pdu->data_sn = (!dr->recovery) ? cmd->data_sn++ : dr->data_sn++; in iscsit_set_datain_values_yes_and_no()
356 cmd->read_data_done += pdu->length; in iscsit_set_datain_values_yes_and_no()
359 dr->read_data_done += pdu->length; in iscsit_set_datain_values_yes_and_no()
362 datain->flags = pdu->flags; in iscsit_set_datain_values_yes_and_no()
363 datain->length = pdu->length; in iscsit_set_datain_values_yes_and_no()
364 datain->offset = pdu->offset; in iscsit_set_datain_values_yes_and_no()
365 datain->data_sn = pdu->data_sn; in iscsit_set_datain_values_yes_and_no()
403 struct iscsi_pdu *pdu; in iscsit_set_datain_values_no_and_no() local
439 pdu = iscsit_get_pdu_holder_for_seq(cmd, seq); in iscsit_set_datain_values_no_and_no()
440 if (!pdu) in iscsit_set_datain_values_no_and_no()
444 pdu->flags |= ISCSI_FLAG_CMD_FINAL; in iscsit_set_datain_values_no_and_no()
446 pdu->flags |= ISCSI_FLAG_DATA_ACK; in iscsit_set_datain_values_no_and_no()
451 seq->next_burst_len += pdu->length; in iscsit_set_datain_values_no_and_no()
453 if ((read_data_done + pdu->length) == cmd->se_cmd.data_length) in iscsit_set_datain_values_no_and_no()
454 pdu->flags |= ISCSI_FLAG_DATA_STATUS; in iscsit_set_datain_values_no_and_no()
456 pdu->data_sn = (!dr->recovery) ? cmd->data_sn++ : dr->data_sn++; in iscsit_set_datain_values_no_and_no()
459 cmd->read_data_done += pdu->length; in iscsit_set_datain_values_no_and_no()
462 dr->read_data_done += pdu->length; in iscsit_set_datain_values_no_and_no()
465 datain->flags = pdu->flags; in iscsit_set_datain_values_no_and_no()
466 datain->length = pdu->length; in iscsit_set_datain_values_no_and_no()
467 datain->offset = pdu->offset; in iscsit_set_datain_values_no_and_no()
468 datain->data_sn = pdu->data_sn; in iscsit_set_datain_values_no_and_no()