Lines Matching refs:dif_task_params

55 			     struct scsi_dif_task_params *dif_task_params)  in calc_rw_task_size()  argument
68 if (!dif_task_params) in calc_rw_task_size()
71 return !dif_task_params->dif_on_network ? in calc_rw_task_size()
77 struct scsi_dif_task_params *dif_task_params) in init_dif_context_flags() argument
79 if (!dif_task_params) in init_dif_context_flags()
83 dif_task_params->dif_block_size_log); in init_dif_context_flags()
85 dif_task_params->dif_on_network ? 1 : 0); in init_dif_context_flags()
87 dif_task_params->dif_on_host ? 1 : 0); in init_dif_context_flags()
92 struct scsi_dif_task_params *dif_task_params, in init_sqe() argument
116 dif_task_params); in init_sqe()
124 dif_task_params); in init_sqe()
327 struct scsi_dif_task_params *dif_task_params, in init_rtdif_task_context() argument
332 if (!dif_task_params->dif_on_network || !dif_task_params->dif_on_host) in init_rtdif_task_context()
338 cpu_to_le16(dif_task_params->application_tag); in init_rtdif_task_context()
340 val = cpu_to_le32(dif_task_params->initial_ref_tag); in init_rtdif_task_context()
343 cpu_to_le16(dif_task_params->application_tag_mask); in init_rtdif_task_context()
345 dif_task_params->crc_seed ? 1 : 0); in init_rtdif_task_context()
348 dif_task_params->host_guard_type); in init_rtdif_task_context()
351 dif_task_params->protection_type); in init_rtdif_task_context()
356 dif_task_params->keep_ref_tag_const ? 1 : 0); in init_rtdif_task_context()
359 (dif_task_params->validate_app_tag && in init_rtdif_task_context()
360 dif_task_params->dif_on_network) ? 1 : 0); in init_rtdif_task_context()
363 (dif_task_params->validate_guard && in init_rtdif_task_context()
364 dif_task_params->dif_on_network) ? 1 : 0); in init_rtdif_task_context()
367 (dif_task_params->validate_ref_tag && in init_rtdif_task_context()
368 dif_task_params->dif_on_network) ? 1 : 0); in init_rtdif_task_context()
371 dif_task_params->dif_on_host ? 1 : 0); in init_rtdif_task_context()
374 dif_task_params->dif_on_network ? 1 : 0); in init_rtdif_task_context()
377 dif_task_params->forward_guard ? 1 : 0); in init_rtdif_task_context()
380 dif_task_params->forward_app_tag ? 1 : 0); in init_rtdif_task_context()
383 dif_task_params->forward_ref_tag ? 1 : 0); in init_rtdif_task_context()
386 dif_task_params->forward_app_tag_with_mask ? 1 : 0); in init_rtdif_task_context()
389 dif_task_params->forward_ref_tag_with_mask ? 1 : 0); in init_rtdif_task_context()
392 dif_task_params->dif_block_size_log - 9); in init_rtdif_task_context()
395 dif_task_params->ref_tag_mask); in init_rtdif_task_context()
397 dif_task_params->ignore_app_tag); in init_rtdif_task_context()
403 cpu_to_le16(dif_task_params->application_tag); in init_rtdif_task_context()
405 cpu_to_le16(dif_task_params->crc_seed ? 0xffff : 0x0000); in init_rtdif_task_context()
407 cpu_to_le16(dif_task_params->crc_seed ? 0xffff : 0x0000); in init_rtdif_task_context()
409 dif_task_params->crc_seed ? 1 : 0); in init_rtdif_task_context()
413 dif_task_params->tx_dif_conn_err_en ? 1 : 0); in init_rtdif_task_context()
415 dif_task_params->forward_guard ? 1 : 0); in init_rtdif_task_context()
418 dif_task_params->forward_app_tag ? 1 : 0); in init_rtdif_task_context()
421 dif_task_params->forward_ref_tag ? 1 : 0); in init_rtdif_task_context()
423 dif_task_params->dif_block_size_log - 9); in init_rtdif_task_context()
426 dif_task_params->dif_on_host ? 1 : 0); in init_rtdif_task_context()
429 dif_task_params->dif_on_network ? 1 : 0); in init_rtdif_task_context()
430 val = cpu_to_le32(dif_task_params->initial_ref_tag); in init_rtdif_task_context()
433 cpu_to_le16(dif_task_params->application_tag_mask); in init_rtdif_task_context()
436 dif_task_params->host_guard_type); in init_rtdif_task_context()
439 dif_task_params->protection_type); in init_rtdif_task_context()
442 dif_task_params->initial_ref_tag_is_valid ? 1 : 0); in init_rtdif_task_context()
445 dif_task_params->keep_ref_tag_const ? 1 : 0); in init_rtdif_task_context()
448 (dif_task_params->validate_guard && in init_rtdif_task_context()
449 dif_task_params->dif_on_host) ? 1 : 0); in init_rtdif_task_context()
452 (dif_task_params->validate_app_tag && in init_rtdif_task_context()
453 dif_task_params->dif_on_host) ? 1 : 0); in init_rtdif_task_context()
456 (dif_task_params->validate_ref_tag && in init_rtdif_task_context()
457 dif_task_params->dif_on_host) ? 1 : 0); in init_rtdif_task_context()
460 dif_task_params->forward_app_tag_with_mask ? 1 : 0); in init_rtdif_task_context()
463 dif_task_params->forward_ref_tag_with_mask ? 1 : 0); in init_rtdif_task_context()
466 dif_task_params->ref_tag_mask); in init_rtdif_task_context()
469 dif_task_params->ignore_app_tag ? 1 : 0); in init_rtdif_task_context()
487 struct scsi_dif_task_params *dif_task_params) in init_rw_iscsi_task() argument
496 dif_task_params); in init_rw_iscsi_task()
527 dif_task_params); in init_rw_iscsi_task()
529 dif_task_params); in init_rw_iscsi_task()
547 dif_task_params); in init_rw_iscsi_task()
566 dif_task_params ? in init_rw_iscsi_task()
567 dif_task_params->tx_dif_conn_err_en : false); in init_rw_iscsi_task()
575 if (dif_task_params) in init_rw_iscsi_task()
578 dif_task_params, task_type); in init_rw_iscsi_task()
580 init_sqe(task_params, sgl_task_params, dif_task_params, pdu_header, in init_rw_iscsi_task()
592 struct scsi_dif_task_params *dif_task_params) in init_initiator_rw_iscsi_task() argument
600 dif_task_params); in init_initiator_rw_iscsi_task()
608 dif_task_params); in init_initiator_rw_iscsi_task()