Lines Matching refs:pwrb
256 abrt_io_task->pwrb_handle->pwrb, 1); in beiscsi_eh_abort()
259 abrt_io_task->pwrb_handle->pwrb, 1); in beiscsi_eh_abort()
346 io_task->pwrb_handle->pwrb, 1); in beiscsi_eh_device_reset()
349 io_task->pwrb_handle->pwrb, 1); in beiscsi_eh_device_reset()
988 memset(pwrb_handle->pwrb, 0, sizeof(*pwrb_handle->pwrb)); in beiscsi_get_wrb_handle()
2090 hwi_write_sgl_v2(struct iscsi_wrb *pwrb, struct scatterlist *sg, in hwi_write_sgl_v2() argument
2100 AMAP_SET_BITS(struct amap_iscsi_wrb_v2, iscsi_bhs_addr_lo, pwrb, in hwi_write_sgl_v2()
2102 AMAP_SET_BITS(struct amap_iscsi_wrb_v2, iscsi_bhs_addr_hi, pwrb, in hwi_write_sgl_v2()
2112 sge0_addr_lo, pwrb, in hwi_write_sgl_v2()
2115 sge0_addr_hi, pwrb, in hwi_write_sgl_v2()
2118 sge0_len, pwrb, in hwi_write_sgl_v2()
2123 pwrb, sge_len); in hwi_write_sgl_v2()
2127 sge1_addr_lo, pwrb, in hwi_write_sgl_v2()
2130 sge1_addr_hi, pwrb, in hwi_write_sgl_v2()
2133 sge1_len, pwrb, in hwi_write_sgl_v2()
2148 AMAP_SET_BITS(struct amap_iscsi_wrb_v2, sge0_last, pwrb, in hwi_write_sgl_v2()
2150 AMAP_SET_BITS(struct amap_iscsi_wrb_v2, sge1_last, pwrb, in hwi_write_sgl_v2()
2153 AMAP_SET_BITS(struct amap_iscsi_wrb_v2, sge0_last, pwrb, in hwi_write_sgl_v2()
2155 AMAP_SET_BITS(struct amap_iscsi_wrb_v2, sge1_last, pwrb, in hwi_write_sgl_v2()
2158 AMAP_SET_BITS(struct amap_iscsi_wrb_v2, sge0_last, pwrb, in hwi_write_sgl_v2()
2160 AMAP_SET_BITS(struct amap_iscsi_wrb_v2, sge1_last, pwrb, in hwi_write_sgl_v2()
2185 hwi_write_sgl(struct iscsi_wrb *pwrb, struct scatterlist *sg, in hwi_write_sgl() argument
2195 AMAP_SET_BITS(struct amap_iscsi_wrb, iscsi_bhs_addr_lo, pwrb, in hwi_write_sgl()
2197 AMAP_SET_BITS(struct amap_iscsi_wrb, iscsi_bhs_addr_hi, pwrb, in hwi_write_sgl()
2206 AMAP_SET_BITS(struct amap_iscsi_wrb, sge0_addr_lo, pwrb, in hwi_write_sgl()
2208 AMAP_SET_BITS(struct amap_iscsi_wrb, sge0_addr_hi, pwrb, in hwi_write_sgl()
2210 AMAP_SET_BITS(struct amap_iscsi_wrb, sge0_len, pwrb, in hwi_write_sgl()
2215 pwrb, sge_len); in hwi_write_sgl()
2218 AMAP_SET_BITS(struct amap_iscsi_wrb, sge1_addr_lo, pwrb, in hwi_write_sgl()
2220 AMAP_SET_BITS(struct amap_iscsi_wrb, sge1_addr_hi, pwrb, in hwi_write_sgl()
2222 AMAP_SET_BITS(struct amap_iscsi_wrb, sge1_len, pwrb, in hwi_write_sgl()
2237 AMAP_SET_BITS(struct amap_iscsi_wrb, sge0_last, pwrb, in hwi_write_sgl()
2239 AMAP_SET_BITS(struct amap_iscsi_wrb, sge1_last, pwrb, in hwi_write_sgl()
2242 AMAP_SET_BITS(struct amap_iscsi_wrb, sge0_last, pwrb, in hwi_write_sgl()
2244 AMAP_SET_BITS(struct amap_iscsi_wrb, sge1_last, pwrb, in hwi_write_sgl()
2247 AMAP_SET_BITS(struct amap_iscsi_wrb, sge0_last, pwrb, in hwi_write_sgl()
2249 AMAP_SET_BITS(struct amap_iscsi_wrb, sge1_last, pwrb, in hwi_write_sgl()
2277 static int hwi_write_buffer(struct iscsi_wrb *pwrb, struct iscsi_task *task) in hwi_write_buffer() argument
2286 AMAP_SET_BITS(struct amap_iscsi_wrb, iscsi_bhs_addr_lo, pwrb, in hwi_write_buffer()
2288 AMAP_SET_BITS(struct amap_iscsi_wrb, iscsi_bhs_addr_hi, pwrb, in hwi_write_buffer()
2298 pwrb, dsp_value); in hwi_write_buffer()
2301 pwrb, dsp_value); in hwi_write_buffer()
2316 AMAP_SET_BITS(struct amap_iscsi_wrb, sge0_addr_lo, pwrb, in hwi_write_buffer()
2318 AMAP_SET_BITS(struct amap_iscsi_wrb, sge0_addr_hi, pwrb, in hwi_write_buffer()
2320 AMAP_SET_BITS(struct amap_iscsi_wrb, sge0_len, pwrb, in hwi_write_buffer()
2323 AMAP_SET_BITS(struct amap_iscsi_wrb, sge0_last, pwrb, 1); in hwi_write_buffer()
2325 AMAP_SET_BITS(struct amap_iscsi_wrb, dsp, pwrb, 0); in hwi_write_buffer()
2619 struct iscsi_wrb *pwrb = NULL; in beiscsi_init_wrb_handle() local
2690 pwrb = mem_descr_wrb->mem_array[idx].virtual_address; in beiscsi_init_wrb_handle()
2700 pwrb_handle->pwrb = pwrb; in beiscsi_init_wrb_handle()
2701 pwrb++; in beiscsi_init_wrb_handle()
4325 be_dws_le_to_cpu(pwrb_handle->pwrb, in beiscsi_offload_connection()
4519 struct iscsi_wrb *pwrb = NULL; in beiscsi_iotask_v2() local
4522 pwrb = io_task->pwrb_handle->pwrb; in beiscsi_iotask_v2()
4527 AMAP_SET_BITS(struct amap_iscsi_wrb_v2, type, pwrb, in beiscsi_iotask_v2()
4529 AMAP_SET_BITS(struct amap_iscsi_wrb_v2, dsp, pwrb, 1); in beiscsi_iotask_v2()
4531 AMAP_SET_BITS(struct amap_iscsi_wrb_v2, type, pwrb, in beiscsi_iotask_v2()
4533 AMAP_SET_BITS(struct amap_iscsi_wrb_v2, dsp, pwrb, 0); in beiscsi_iotask_v2()
4537 type, pwrb); in beiscsi_iotask_v2()
4539 AMAP_SET_BITS(struct amap_iscsi_wrb_v2, lun, pwrb, in beiscsi_iotask_v2()
4542 AMAP_SET_BITS(struct amap_iscsi_wrb_v2, r2t_exp_dtl, pwrb, xferlen); in beiscsi_iotask_v2()
4543 AMAP_SET_BITS(struct amap_iscsi_wrb_v2, wrb_idx, pwrb, in beiscsi_iotask_v2()
4545 AMAP_SET_BITS(struct amap_iscsi_wrb_v2, cmdsn_itt, pwrb, in beiscsi_iotask_v2()
4547 AMAP_SET_BITS(struct amap_iscsi_wrb_v2, sgl_idx, pwrb, in beiscsi_iotask_v2()
4550 hwi_write_sgl_v2(pwrb, sg, num_sg, io_task); in beiscsi_iotask_v2()
4551 AMAP_SET_BITS(struct amap_iscsi_wrb_v2, ptr2nextwrb, pwrb, in beiscsi_iotask_v2()
4557 io_task->pwrb_context->plast_wrb = pwrb; in beiscsi_iotask_v2()
4559 be_dws_le_to_cpu(pwrb, sizeof(struct iscsi_wrb)); in beiscsi_iotask_v2()
4580 struct iscsi_wrb *pwrb = NULL; in beiscsi_iotask() local
4583 pwrb = io_task->pwrb_handle->pwrb; in beiscsi_iotask()
4587 AMAP_SET_BITS(struct amap_iscsi_wrb, type, pwrb, in beiscsi_iotask()
4589 AMAP_SET_BITS(struct amap_iscsi_wrb, dsp, pwrb, 1); in beiscsi_iotask()
4591 AMAP_SET_BITS(struct amap_iscsi_wrb, type, pwrb, in beiscsi_iotask()
4593 AMAP_SET_BITS(struct amap_iscsi_wrb, dsp, pwrb, 0); in beiscsi_iotask()
4597 type, pwrb); in beiscsi_iotask()
4599 AMAP_SET_BITS(struct amap_iscsi_wrb, lun, pwrb, in beiscsi_iotask()
4602 AMAP_SET_BITS(struct amap_iscsi_wrb, r2t_exp_dtl, pwrb, xferlen); in beiscsi_iotask()
4603 AMAP_SET_BITS(struct amap_iscsi_wrb, wrb_idx, pwrb, in beiscsi_iotask()
4605 AMAP_SET_BITS(struct amap_iscsi_wrb, cmdsn_itt, pwrb, in beiscsi_iotask()
4607 AMAP_SET_BITS(struct amap_iscsi_wrb, sgl_icd_idx, pwrb, in beiscsi_iotask()
4610 hwi_write_sgl(pwrb, sg, num_sg, io_task); in beiscsi_iotask()
4612 AMAP_SET_BITS(struct amap_iscsi_wrb, ptr2nextwrb, pwrb, in beiscsi_iotask()
4618 io_task->pwrb_context->plast_wrb = pwrb; in beiscsi_iotask()
4620 be_dws_le_to_cpu(pwrb, sizeof(struct iscsi_wrb)); in beiscsi_iotask()
4638 struct iscsi_wrb *pwrb = NULL; in beiscsi_mtask() local
4645 pwrb = io_task->pwrb_handle->pwrb; in beiscsi_mtask()
4648 AMAP_SET_BITS(struct amap_iscsi_wrb, cmdsn_itt, pwrb, in beiscsi_mtask()
4650 AMAP_SET_BITS(struct amap_iscsi_wrb, wrb_idx, pwrb, in beiscsi_mtask()
4652 AMAP_SET_BITS(struct amap_iscsi_wrb, sgl_icd_idx, pwrb, in beiscsi_mtask()
4654 AMAP_SET_BITS(struct amap_iscsi_wrb, r2t_exp_dtl, pwrb, in beiscsi_mtask()
4656 AMAP_SET_BITS(struct amap_iscsi_wrb, ptr2nextwrb, pwrb, in beiscsi_mtask()
4662 io_task->pwrb_context->plast_wrb = pwrb; in beiscsi_mtask()
4666 AMAP_SET_BITS(struct amap_iscsi_wrb_v2, cmdsn_itt, pwrb, in beiscsi_mtask()
4668 AMAP_SET_BITS(struct amap_iscsi_wrb_v2, wrb_idx, pwrb, in beiscsi_mtask()
4670 AMAP_SET_BITS(struct amap_iscsi_wrb_v2, sgl_idx, pwrb, in beiscsi_mtask()
4672 AMAP_SET_BITS(struct amap_iscsi_wrb_v2, r2t_exp_dtl, pwrb, in beiscsi_mtask()
4674 AMAP_SET_BITS(struct amap_iscsi_wrb_v2, ptr2nextwrb, pwrb, in beiscsi_mtask()
4680 io_task->pwrb_context->plast_wrb = pwrb; in beiscsi_mtask()
4688 AMAP_SET_BITS(struct amap_iscsi_wrb, cmdsn_itt, pwrb, 1); in beiscsi_mtask()
4689 ADAPTER_SET_WRB_TYPE(pwrb, TGT_DM_CMD, pwrb_typeoffset); in beiscsi_mtask()
4690 ret = hwi_write_buffer(pwrb, task); in beiscsi_mtask()
4694 ADAPTER_SET_WRB_TYPE(pwrb, TGT_DM_CMD, pwrb_typeoffset); in beiscsi_mtask()
4697 dmsg, pwrb, 1); in beiscsi_mtask()
4700 dmsg, pwrb, 1); in beiscsi_mtask()
4702 ADAPTER_SET_WRB_TYPE(pwrb, INI_RD_CMD, pwrb_typeoffset); in beiscsi_mtask()
4705 dmsg, pwrb, 0); in beiscsi_mtask()
4708 dmsg, pwrb, 0); in beiscsi_mtask()
4710 ret = hwi_write_buffer(pwrb, task); in beiscsi_mtask()
4713 ADAPTER_SET_WRB_TYPE(pwrb, TGT_DM_CMD, pwrb_typeoffset); in beiscsi_mtask()
4714 ret = hwi_write_buffer(pwrb, task); in beiscsi_mtask()
4717 ADAPTER_SET_WRB_TYPE(pwrb, INI_TMF_CMD, pwrb_typeoffset); in beiscsi_mtask()
4718 ret = hwi_write_buffer(pwrb, task); in beiscsi_mtask()
4721 ADAPTER_SET_WRB_TYPE(pwrb, HWH_TYPE_LOGOUT, pwrb_typeoffset); in beiscsi_mtask()
4722 ret = hwi_write_buffer(pwrb, task); in beiscsi_mtask()
4738 AMAP_GET_BITS(struct amap_iscsi_wrb, type, pwrb) : in beiscsi_mtask()
4739 AMAP_GET_BITS(struct amap_iscsi_wrb_v2, type, pwrb); in beiscsi_mtask()