Lines Matching refs:pdu
317 struct iscsi_pdu *pdu; in iscsit_set_datain_values_yes_and_no() local
343 pdu = iscsit_get_pdu_holder_for_seq(cmd, NULL); in iscsit_set_datain_values_yes_and_no()
344 if (!pdu) in iscsit_set_datain_values_yes_and_no()
347 if ((read_data_done + pdu->length) == cmd->data_length) { in iscsit_set_datain_values_yes_and_no()
348 pdu->flags |= (ISCSI_FLAG_CMD_FINAL | ISCSI_FLAG_DATA_STATUS); in iscsit_set_datain_values_yes_and_no()
350 pdu->flags |= ISCSI_FLAG_DATA_ACK; in iscsit_set_datain_values_yes_and_no()
356 next_burst_len += pdu->length; in iscsit_set_datain_values_yes_and_no()
358 pdu->flags |= ISCSI_FLAG_CMD_FINAL; in iscsit_set_datain_values_yes_and_no()
360 pdu->flags |= ISCSI_FLAG_DATA_ACK; in iscsit_set_datain_values_yes_and_no()
366 pdu->data_sn = (!dr->recovery) ? cmd->data_sn++ : dr->data_sn++; in iscsit_set_datain_values_yes_and_no()
369 cmd->read_data_done += pdu->length; in iscsit_set_datain_values_yes_and_no()
372 dr->read_data_done += pdu->length; in iscsit_set_datain_values_yes_and_no()
375 datain->flags = pdu->flags; in iscsit_set_datain_values_yes_and_no()
376 datain->length = pdu->length; in iscsit_set_datain_values_yes_and_no()
377 datain->offset = pdu->offset; in iscsit_set_datain_values_yes_and_no()
378 datain->data_sn = pdu->data_sn; in iscsit_set_datain_values_yes_and_no()
416 struct iscsi_pdu *pdu; in iscsit_set_datain_values_no_and_no() local
452 pdu = iscsit_get_pdu_holder_for_seq(cmd, seq); in iscsit_set_datain_values_no_and_no()
453 if (!pdu) in iscsit_set_datain_values_no_and_no()
457 pdu->flags |= ISCSI_FLAG_CMD_FINAL; in iscsit_set_datain_values_no_and_no()
459 pdu->flags |= ISCSI_FLAG_DATA_ACK; in iscsit_set_datain_values_no_and_no()
464 seq->next_burst_len += pdu->length; in iscsit_set_datain_values_no_and_no()
466 if ((read_data_done + pdu->length) == cmd->data_length) in iscsit_set_datain_values_no_and_no()
467 pdu->flags |= ISCSI_FLAG_DATA_STATUS; in iscsit_set_datain_values_no_and_no()
469 pdu->data_sn = (!dr->recovery) ? cmd->data_sn++ : dr->data_sn++; in iscsit_set_datain_values_no_and_no()
472 cmd->read_data_done += pdu->length; in iscsit_set_datain_values_no_and_no()
475 dr->read_data_done += pdu->length; in iscsit_set_datain_values_no_and_no()
478 datain->flags = pdu->flags; in iscsit_set_datain_values_no_and_no()
479 datain->length = pdu->length; in iscsit_set_datain_values_no_and_no()
480 datain->offset = pdu->offset; in iscsit_set_datain_values_no_and_no()
481 datain->data_sn = pdu->data_sn; in iscsit_set_datain_values_no_and_no()