Lines Matching refs:offset

51 	int offset = 0;  in hns_roce_fill_res_cq_entry_raw()  local
61 data[offset++] = hr_reg_read(&context, CQC_CQ_ST); in hns_roce_fill_res_cq_entry_raw()
62 data[offset++] = hr_reg_read(&context, CQC_SHIFT); in hns_roce_fill_res_cq_entry_raw()
63 data[offset++] = hr_reg_read(&context, CQC_CQE_SIZE); in hns_roce_fill_res_cq_entry_raw()
64 data[offset++] = hr_reg_read(&context, CQC_CQE_CNT); in hns_roce_fill_res_cq_entry_raw()
65 data[offset++] = hr_reg_read(&context, CQC_CQ_PRODUCER_IDX); in hns_roce_fill_res_cq_entry_raw()
66 data[offset++] = hr_reg_read(&context, CQC_CQ_CONSUMER_IDX); in hns_roce_fill_res_cq_entry_raw()
67 data[offset++] = hr_reg_read(&context, CQC_DB_RECORD_EN); in hns_roce_fill_res_cq_entry_raw()
68 data[offset++] = hr_reg_read(&context, CQC_ARM_ST); in hns_roce_fill_res_cq_entry_raw()
69 data[offset++] = hr_reg_read(&context, CQC_CMD_SN); in hns_roce_fill_res_cq_entry_raw()
70 data[offset++] = hr_reg_read(&context, CQC_CEQN); in hns_roce_fill_res_cq_entry_raw()
71 data[offset++] = hr_reg_read(&context, CQC_CQ_MAX_CNT); in hns_roce_fill_res_cq_entry_raw()
72 data[offset++] = hr_reg_read(&context, CQC_CQ_PERIOD); in hns_roce_fill_res_cq_entry_raw()
73 data[offset++] = hr_reg_read(&context, CQC_CQE_HOP_NUM); in hns_roce_fill_res_cq_entry_raw()
74 data[offset++] = hr_reg_read(&context, CQC_CQE_BAR_PG_SZ); in hns_roce_fill_res_cq_entry_raw()
75 data[offset++] = hr_reg_read(&context, CQC_CQE_BUF_PG_SZ); in hns_roce_fill_res_cq_entry_raw()
77 ret = nla_put(msg, RDMA_NLDEV_ATTR_RES_RAW, offset * sizeof(u32), data); in hns_roce_fill_res_cq_entry_raw()
122 int offset = 0; in hns_roce_fill_res_qp_entry_raw() local
132 data[offset++] = hr_reg_read(&context, QPC_QP_ST); in hns_roce_fill_res_qp_entry_raw()
133 data[offset++] = hr_reg_read(&context, QPC_ERR_TYPE); in hns_roce_fill_res_qp_entry_raw()
134 data[offset++] = hr_reg_read(&context, QPC_CHECK_FLG); in hns_roce_fill_res_qp_entry_raw()
135 data[offset++] = hr_reg_read(&context, QPC_SRQ_EN); in hns_roce_fill_res_qp_entry_raw()
136 data[offset++] = hr_reg_read(&context, QPC_SRQN); in hns_roce_fill_res_qp_entry_raw()
137 data[offset++] = hr_reg_read(&context, QPC_QKEY_XRCD); in hns_roce_fill_res_qp_entry_raw()
138 data[offset++] = hr_reg_read(&context, QPC_TX_CQN); in hns_roce_fill_res_qp_entry_raw()
139 data[offset++] = hr_reg_read(&context, QPC_RX_CQN); in hns_roce_fill_res_qp_entry_raw()
140 data[offset++] = hr_reg_read(&context, QPC_SQ_PRODUCER_IDX); in hns_roce_fill_res_qp_entry_raw()
141 data[offset++] = hr_reg_read(&context, QPC_SQ_CONSUMER_IDX); in hns_roce_fill_res_qp_entry_raw()
142 data[offset++] = hr_reg_read(&context, QPC_RQ_RECORD_EN); in hns_roce_fill_res_qp_entry_raw()
143 data[offset++] = hr_reg_read(&context, QPC_RQ_PRODUCER_IDX); in hns_roce_fill_res_qp_entry_raw()
144 data[offset++] = hr_reg_read(&context, QPC_RQ_CONSUMER_IDX); in hns_roce_fill_res_qp_entry_raw()
145 data[offset++] = hr_reg_read(&context, QPC_SQ_SHIFT); in hns_roce_fill_res_qp_entry_raw()
146 data[offset++] = hr_reg_read(&context, QPC_RQWS); in hns_roce_fill_res_qp_entry_raw()
147 data[offset++] = hr_reg_read(&context, QPC_RQ_SHIFT); in hns_roce_fill_res_qp_entry_raw()
148 data[offset++] = hr_reg_read(&context, QPC_SGE_SHIFT); in hns_roce_fill_res_qp_entry_raw()
149 data[offset++] = hr_reg_read(&context, QPC_SQ_HOP_NUM); in hns_roce_fill_res_qp_entry_raw()
150 data[offset++] = hr_reg_read(&context, QPC_RQ_HOP_NUM); in hns_roce_fill_res_qp_entry_raw()
151 data[offset++] = hr_reg_read(&context, QPC_SGE_HOP_NUM); in hns_roce_fill_res_qp_entry_raw()
152 data[offset++] = hr_reg_read(&context, QPC_WQE_SGE_BA_PG_SZ); in hns_roce_fill_res_qp_entry_raw()
153 data[offset++] = hr_reg_read(&context, QPC_WQE_SGE_BUF_PG_SZ); in hns_roce_fill_res_qp_entry_raw()
154 data[offset++] = hr_reg_read(&context, QPC_RETRY_NUM_INIT); in hns_roce_fill_res_qp_entry_raw()
155 data[offset++] = hr_reg_read(&context, QPC_RETRY_CNT); in hns_roce_fill_res_qp_entry_raw()
156 data[offset++] = hr_reg_read(&context, QPC_SQ_CUR_PSN); in hns_roce_fill_res_qp_entry_raw()
157 data[offset++] = hr_reg_read(&context, QPC_SQ_MAX_PSN); in hns_roce_fill_res_qp_entry_raw()
158 data[offset++] = hr_reg_read(&context, QPC_SQ_FLUSH_IDX); in hns_roce_fill_res_qp_entry_raw()
159 data[offset++] = hr_reg_read(&context, QPC_SQ_MAX_IDX); in hns_roce_fill_res_qp_entry_raw()
160 data[offset++] = hr_reg_read(&context, QPC_SQ_TX_ERR); in hns_roce_fill_res_qp_entry_raw()
161 data[offset++] = hr_reg_read(&context, QPC_SQ_RX_ERR); in hns_roce_fill_res_qp_entry_raw()
162 data[offset++] = hr_reg_read(&context, QPC_RQ_RX_ERR); in hns_roce_fill_res_qp_entry_raw()
163 data[offset++] = hr_reg_read(&context, QPC_RQ_TX_ERR); in hns_roce_fill_res_qp_entry_raw()
164 data[offset++] = hr_reg_read(&context, QPC_RQ_CQE_IDX); in hns_roce_fill_res_qp_entry_raw()
165 data[offset++] = hr_reg_read(&context, QPC_RQ_RTY_TX_ERR); in hns_roce_fill_res_qp_entry_raw()
167 ret = nla_put(msg, RDMA_NLDEV_ATTR_RES_RAW, offset * sizeof(u32), data); in hns_roce_fill_res_qp_entry_raw()
208 int offset = 0; in hns_roce_fill_res_mr_entry_raw() local
218 data[offset++] = hr_reg_read(&context, MPT_ST); in hns_roce_fill_res_mr_entry_raw()
219 data[offset++] = hr_reg_read(&context, MPT_PD); in hns_roce_fill_res_mr_entry_raw()
220 data[offset++] = hr_reg_read(&context, MPT_LKEY); in hns_roce_fill_res_mr_entry_raw()
221 data[offset++] = hr_reg_read(&context, MPT_LEN_L); in hns_roce_fill_res_mr_entry_raw()
222 data[offset++] = hr_reg_read(&context, MPT_LEN_H); in hns_roce_fill_res_mr_entry_raw()
223 data[offset++] = hr_reg_read(&context, MPT_PBL_SIZE); in hns_roce_fill_res_mr_entry_raw()
224 data[offset++] = hr_reg_read(&context, MPT_PBL_HOP_NUM); in hns_roce_fill_res_mr_entry_raw()
225 data[offset++] = hr_reg_read(&context, MPT_PBL_BA_PG_SZ); in hns_roce_fill_res_mr_entry_raw()
226 data[offset++] = hr_reg_read(&context, MPT_PBL_BUF_PG_SZ); in hns_roce_fill_res_mr_entry_raw()
228 ret = nla_put(msg, RDMA_NLDEV_ATTR_RES_RAW, offset * sizeof(u32), data); in hns_roce_fill_res_mr_entry_raw()