Lines Matching refs:snap_buf
159 struct ice_mbx_snap_buffer_data *snap_buf; in ice_mbx_traverse() local
162 snap_buf = &hw->mbx_snapshot.mbx_buf; in ice_mbx_traverse()
167 num_iterations = ICE_RQ_DATA_MASK(++snap_buf->num_iterations); in ice_mbx_traverse()
179 if (num_iterations == snap_buf->head || in ice_mbx_traverse()
180 (snap_buf->max_num_msgs_mbx < ICE_IGNORE_MAX_MSG_CNT && in ice_mbx_traverse()
181 ++snap_buf->num_msg_proc >= snap_buf->max_num_msgs_mbx)) in ice_mbx_traverse()
241 struct ice_mbx_snap_buffer_data *snap_buf; in ice_mbx_vf_state_handler() local
271 snap_buf = &snap->mbx_buf; in ice_mbx_vf_state_handler()
273 switch (snap_buf->state) { in ice_mbx_vf_state_handler()
282 snap_buf->num_pending_arq = mbx_data->num_pending_arq; in ice_mbx_vf_state_handler()
283 snap_buf->num_msg_proc = mbx_data->num_msg_proc; in ice_mbx_vf_state_handler()
284 snap_buf->max_num_msgs_mbx = mbx_data->max_num_msgs_mbx; in ice_mbx_vf_state_handler()
290 snap_buf->head = ICE_RQ_DATA_MASK(cq->rq.next_to_clean + in ice_mbx_vf_state_handler()
292 snap_buf->tail = ICE_RQ_DATA_MASK(cq->rq.next_to_clean - 1); in ice_mbx_vf_state_handler()
293 snap_buf->num_iterations = snap_buf->tail; in ice_mbx_vf_state_handler()
300 if (snap_buf->num_pending_arq >= in ice_mbx_vf_state_handler()
325 snap_buf->state = new_state; in ice_mbx_vf_state_handler()