Lines Matching refs:pwrb

1318 	struct iscsi_wrb *pwrb = NULL;  in hwi_complete_cmd()  local
1334 pwrb = pwrb_handle->pwrb; in hwi_complete_cmd()
1335 type = (pwrb->dw[offsetof(struct amap_iscsi_wrb, type) / 32] & in hwi_complete_cmd()
2039 hwi_write_sgl(struct iscsi_wrb *pwrb, struct scatterlist *sg, in hwi_write_sgl() argument
2049 AMAP_SET_BITS(struct amap_iscsi_wrb, iscsi_bhs_addr_lo, pwrb, in hwi_write_sgl()
2051 AMAP_SET_BITS(struct amap_iscsi_wrb, iscsi_bhs_addr_hi, pwrb, in hwi_write_sgl()
2060 AMAP_SET_BITS(struct amap_iscsi_wrb, sge0_addr_lo, pwrb, in hwi_write_sgl()
2062 AMAP_SET_BITS(struct amap_iscsi_wrb, sge0_addr_hi, pwrb, in hwi_write_sgl()
2064 AMAP_SET_BITS(struct amap_iscsi_wrb, sge0_len, pwrb, in hwi_write_sgl()
2069 pwrb, sge_len); in hwi_write_sgl()
2072 AMAP_SET_BITS(struct amap_iscsi_wrb, sge1_addr_lo, pwrb, in hwi_write_sgl()
2074 AMAP_SET_BITS(struct amap_iscsi_wrb, sge1_addr_hi, pwrb, in hwi_write_sgl()
2076 AMAP_SET_BITS(struct amap_iscsi_wrb, sge1_len, pwrb, in hwi_write_sgl()
2091 AMAP_SET_BITS(struct amap_iscsi_wrb, sge0_last, pwrb, in hwi_write_sgl()
2093 AMAP_SET_BITS(struct amap_iscsi_wrb, sge1_last, pwrb, in hwi_write_sgl()
2096 AMAP_SET_BITS(struct amap_iscsi_wrb, sge0_last, pwrb, in hwi_write_sgl()
2098 AMAP_SET_BITS(struct amap_iscsi_wrb, sge1_last, pwrb, in hwi_write_sgl()
2101 AMAP_SET_BITS(struct amap_iscsi_wrb, sge0_last, pwrb, in hwi_write_sgl()
2103 AMAP_SET_BITS(struct amap_iscsi_wrb, sge1_last, pwrb, in hwi_write_sgl()
2126 static void hwi_write_buffer(struct iscsi_wrb *pwrb, struct iscsi_task *task) in hwi_write_buffer() argument
2135 AMAP_SET_BITS(struct amap_iscsi_wrb, iscsi_bhs_addr_lo, pwrb, in hwi_write_buffer()
2137 AMAP_SET_BITS(struct amap_iscsi_wrb, iscsi_bhs_addr_hi, pwrb, in hwi_write_buffer()
2142 AMAP_SET_BITS(struct amap_iscsi_wrb, dsp, pwrb, 1); in hwi_write_buffer()
2147 AMAP_SET_BITS(struct amap_iscsi_wrb, dsp, pwrb, 0); in hwi_write_buffer()
2150 AMAP_SET_BITS(struct amap_iscsi_wrb, sge0_addr_lo, pwrb, in hwi_write_buffer()
2152 AMAP_SET_BITS(struct amap_iscsi_wrb, sge0_addr_hi, pwrb, in hwi_write_buffer()
2154 AMAP_SET_BITS(struct amap_iscsi_wrb, sge0_len, pwrb, in hwi_write_buffer()
2157 AMAP_SET_BITS(struct amap_iscsi_wrb, sge0_last, pwrb, 1); in hwi_write_buffer()
2159 AMAP_SET_BITS(struct amap_iscsi_wrb, dsp, pwrb, 0); in hwi_write_buffer()
2386 struct iscsi_wrb *pwrb; in beiscsi_init_wrb_handle() local
2446 pwrb = mem_descr_wrb->mem_array[idx].virtual_address; in beiscsi_init_wrb_handle()
2455 pwrb_handle->pwrb = pwrb; in beiscsi_init_wrb_handle()
2456 pwrb++; in beiscsi_init_wrb_handle()
2461 pwrb = mem_descr_wrb->mem_array[idx].virtual_address; in beiscsi_init_wrb_handle()
2467 pwrb_handle->pwrb = pwrb; in beiscsi_init_wrb_handle()
2468 pwrb++; in beiscsi_init_wrb_handle()
3676 struct iscsi_target_context_update_wrb *pwrb = NULL; in beiscsi_offload_connection() local
3687 pwrb = (struct iscsi_target_context_update_wrb *)pwrb_handle->pwrb; in beiscsi_offload_connection()
3688 memset(pwrb, 0, sizeof(*pwrb)); in beiscsi_offload_connection()
3690 max_burst_length, pwrb, params->dw[offsetof in beiscsi_offload_connection()
3694 max_send_data_segment_length, pwrb, in beiscsi_offload_connection()
3699 pwrb, in beiscsi_offload_connection()
3703 AMAP_SET_BITS(struct amap_iscsi_target_context_update_wrb, erl, pwrb, in beiscsi_offload_connection()
3706 AMAP_SET_BITS(struct amap_iscsi_target_context_update_wrb, dde, pwrb, in beiscsi_offload_connection()
3709 AMAP_SET_BITS(struct amap_iscsi_target_context_update_wrb, hde, pwrb, in beiscsi_offload_connection()
3712 AMAP_SET_BITS(struct amap_iscsi_target_context_update_wrb, ir2t, pwrb, in beiscsi_offload_connection()
3715 AMAP_SET_BITS(struct amap_iscsi_target_context_update_wrb, imd, pwrb, in beiscsi_offload_connection()
3719 pwrb, in beiscsi_offload_connection()
3722 AMAP_SET_BITS(struct amap_iscsi_target_context_update_wrb, type, pwrb, in beiscsi_offload_connection()
3725 pwrb, pwrb_handle->wrb_index); in beiscsi_offload_connection()
3727 pwrb, pwrb_handle->nxt_wrb_index); in beiscsi_offload_connection()
3729 session_state, pwrb, 0); in beiscsi_offload_connection()
3731 pwrb, 1); in beiscsi_offload_connection()
3733 pwrb, 0); in beiscsi_offload_connection()
3734 AMAP_SET_BITS(struct amap_iscsi_target_context_update_wrb, mode, pwrb, in beiscsi_offload_connection()
3741 pad_buffer_addr_hi, pwrb, in beiscsi_offload_connection()
3744 pad_buffer_addr_lo, pwrb, in beiscsi_offload_connection()
3747 be_dws_le_to_cpu(pwrb, sizeof(struct iscsi_target_context_update_wrb)); in beiscsi_offload_connection()
3938 struct iscsi_wrb *pwrb = NULL; in beiscsi_iotask() local
3941 pwrb = io_task->pwrb_handle->pwrb; in beiscsi_iotask()
3955 AMAP_SET_BITS(struct amap_iscsi_wrb, type, pwrb, in beiscsi_iotask()
3957 AMAP_SET_BITS(struct amap_iscsi_wrb, dsp, pwrb, 1); in beiscsi_iotask()
3959 AMAP_SET_BITS(struct amap_iscsi_wrb, type, pwrb, in beiscsi_iotask()
3961 AMAP_SET_BITS(struct amap_iscsi_wrb, dsp, pwrb, 0); in beiscsi_iotask()
3967 AMAP_SET_BITS(struct amap_iscsi_wrb, lun, pwrb, in beiscsi_iotask()
3970 AMAP_SET_BITS(struct amap_iscsi_wrb, r2t_exp_dtl, pwrb, xferlen); in beiscsi_iotask()
3971 AMAP_SET_BITS(struct amap_iscsi_wrb, wrb_idx, pwrb, in beiscsi_iotask()
3973 AMAP_SET_BITS(struct amap_iscsi_wrb, cmdsn_itt, pwrb, in beiscsi_iotask()
3975 AMAP_SET_BITS(struct amap_iscsi_wrb, sgl_icd_idx, pwrb, in beiscsi_iotask()
3978 hwi_write_sgl(pwrb, sg, num_sg, io_task); in beiscsi_iotask()
3980 AMAP_SET_BITS(struct amap_iscsi_wrb, ptr2nextwrb, pwrb, in beiscsi_iotask()
3982 be_dws_le_to_cpu(pwrb, sizeof(struct iscsi_wrb)); in beiscsi_iotask()
3999 struct iscsi_wrb *pwrb = NULL; in beiscsi_mtask() local
4004 pwrb = io_task->pwrb_handle->pwrb; in beiscsi_mtask()
4005 memset(pwrb, 0, sizeof(*pwrb)); in beiscsi_mtask()
4006 AMAP_SET_BITS(struct amap_iscsi_wrb, cmdsn_itt, pwrb, in beiscsi_mtask()
4008 AMAP_SET_BITS(struct amap_iscsi_wrb, wrb_idx, pwrb, in beiscsi_mtask()
4010 AMAP_SET_BITS(struct amap_iscsi_wrb, sgl_icd_idx, pwrb, in beiscsi_mtask()
4015 AMAP_SET_BITS(struct amap_iscsi_wrb, type, pwrb, in beiscsi_mtask()
4017 AMAP_SET_BITS(struct amap_iscsi_wrb, dmsg, pwrb, 0); in beiscsi_mtask()
4018 AMAP_SET_BITS(struct amap_iscsi_wrb, cmdsn_itt, pwrb, 1); in beiscsi_mtask()
4019 hwi_write_buffer(pwrb, task); in beiscsi_mtask()
4022 AMAP_SET_BITS(struct amap_iscsi_wrb, type, pwrb, in beiscsi_mtask()
4025 AMAP_SET_BITS(struct amap_iscsi_wrb, dmsg, pwrb, 0); in beiscsi_mtask()
4027 AMAP_SET_BITS(struct amap_iscsi_wrb, dmsg, pwrb, 1); in beiscsi_mtask()
4028 hwi_write_buffer(pwrb, task); in beiscsi_mtask()
4031 AMAP_SET_BITS(struct amap_iscsi_wrb, type, pwrb, in beiscsi_mtask()
4033 AMAP_SET_BITS(struct amap_iscsi_wrb, dmsg, pwrb, 0); in beiscsi_mtask()
4034 hwi_write_buffer(pwrb, task); in beiscsi_mtask()
4037 AMAP_SET_BITS(struct amap_iscsi_wrb, type, pwrb, in beiscsi_mtask()
4039 AMAP_SET_BITS(struct amap_iscsi_wrb, dmsg, pwrb, 0); in beiscsi_mtask()
4040 hwi_write_buffer(pwrb, task); in beiscsi_mtask()
4043 AMAP_SET_BITS(struct amap_iscsi_wrb, dmsg, pwrb, 0); in beiscsi_mtask()
4044 AMAP_SET_BITS(struct amap_iscsi_wrb, type, pwrb, in beiscsi_mtask()
4046 hwi_write_buffer(pwrb, task); in beiscsi_mtask()
4055 AMAP_SET_BITS(struct amap_iscsi_wrb, r2t_exp_dtl, pwrb, in beiscsi_mtask()
4057 AMAP_SET_BITS(struct amap_iscsi_wrb, ptr2nextwrb, pwrb, in beiscsi_mtask()
4059 be_dws_le_to_cpu(pwrb, sizeof(struct iscsi_wrb)); in beiscsi_mtask()