Lines Matching refs:ce_state
120 struct CE_state *ce_state = (struct CE_state *)copyeng; in ce_send_fast() local
121 struct hif_softc *scn = ce_state->scn; in ce_send_fast()
122 struct CE_ring_state *src_ring = ce_state->src_ring; in ce_send_fast()
123 u_int32_t ctrl_addr = ce_state->ctrl_addr; in ce_send_fast()
144 qdf_spin_lock_bh(&ce_state->ce_index_lock); in ce_send_fast()
160 hif_record_ce_desc_event(scn, ce_state->id, in ce_send_fast()
173 qdf_spin_unlock_bh(&ce_state->ce_index_lock); in ce_send_fast()
206 ce_validate_nbytes(shadow_src_desc->nbytes, ce_state); in ce_send_fast()
212 shadow_src_desc->byte_swap = ((ce_state->attr_flags & in ce_send_fast()
245 ce_validate_nbytes(shadow_src_desc->nbytes, ce_state); in ce_send_fast()
256 hif_record_ce_desc_event(scn, ce_state->id, type, in ce_send_fast()
273 if (qdf_likely(ce_state->state == CE_RUNNING)) { in ce_send_fast()
279 ce_state->state = CE_PENDING; in ce_send_fast()
284 qdf_spin_unlock_bh(&ce_state->ce_index_lock); in ce_send_fast()
299 static void ce_fastpath_rx_handle(struct CE_state *ce_state, in ce_fastpath_rx_handle() argument
303 struct hif_softc *scn = ce_state->scn; in ce_fastpath_rx_handle()
304 struct CE_ring_state *dest_ring = ce_state->dest_ring; in ce_fastpath_rx_handle()
308 qdf_spin_unlock(&ce_state->ce_index_lock); in ce_fastpath_rx_handle()
309 ce_state->fastpath_handler(ce_state->context, cmpl_msdus, num_cmpls); in ce_fastpath_rx_handle()
310 qdf_spin_lock(&ce_state->ce_index_lock); in ce_fastpath_rx_handle()
316 hif_record_ce_desc_event(scn, ce_state->id, in ce_fastpath_rx_handle()
338 struct CE_state *ce_state = scn->ce_id_to_state[ce_id]; in ce_per_engine_service_fast() local
340 struct CE_ring_state *dest_ring = ce_state->dest_ring; in ce_per_engine_service_fast()
351 uint32_t ctrl_addr = ce_state->ctrl_addr; in ce_per_engine_service_fast()
414 hif_get_rx_ctx_id(ce_state->id, hif_hdl); in ce_per_engine_service_fast()
422 hif_record_ce_desc_event(scn, ce_state->id, in ce_per_engine_service_fast()
426 ce_fastpath_rx_handle(ce_state, cmpl_msdus, in ce_per_engine_service_fast()
429 ce_state->receive_count += nbuf_cmpl_idx; in ce_per_engine_service_fast()
431 scn, ce_state))) { in ce_per_engine_service_fast()
432 ce_state->force_break = 1; in ce_per_engine_service_fast()
433 qdf_atomic_set(&ce_state->rx_pending, 1); in ce_per_engine_service_fast()
442 hif_record_ce_desc_event(scn, ce_state->id, in ce_per_engine_service_fast()
453 ce_fastpath_rx_handle(ce_state, cmpl_msdus, in ce_per_engine_service_fast()
456 ce_state->receive_count += nbuf_cmpl_idx; in ce_per_engine_service_fast()
457 if (qdf_unlikely(hif_ce_service_should_yield(scn, ce_state))) { in ce_per_engine_service_fast()
458 ce_state->force_break = 1; in ce_per_engine_service_fast()
459 qdf_atomic_set(&ce_state->rx_pending, 1); in ce_per_engine_service_fast()
469 hif_update_napi_max_poll_time(ce_state, ce_id, qdf_get_cpu()); in ce_per_engine_service_fast()
471 qdf_atomic_set(&ce_state->rx_pending, 0); in ce_per_engine_service_fast()
473 if (!ce_state->msi_supported) in ce_per_engine_service_fast()
481 if (ce_services->ce_recv_entries_done_nolock(scn, ce_state)) { in ce_per_engine_service_fast()
487 ce_state->dest_ring->sw_index, in ce_per_engine_service_fast()
498 ce_state->force_break = 1; in ce_per_engine_service_fast()
1129 struct CE_state *ce_state = (struct CE_state *)copyeng; in ce_enqueue_desc() local
1130 struct hif_softc *scn = ce_state->scn; in ce_enqueue_desc()
1131 struct CE_ring_state *src_ring = ce_state->src_ring; in ce_enqueue_desc()
1132 u_int32_t ctrl_addr = ce_state->ctrl_addr; in ce_enqueue_desc()
1156 hif_record_ce_desc_event(scn, ce_state->id, in ce_enqueue_desc()
1199 ce_validate_nbytes(shadow_src_desc->nbytes, ce_state); in ce_enqueue_desc()
1205 shadow_src_desc->byte_swap = ((ce_state->attr_flags & in ce_enqueue_desc()
1238 ce_validate_nbytes(shadow_src_desc->nbytes, ce_state); in ce_enqueue_desc()
1249 hif_record_ce_desc_event(scn, ce_state->id, type, in ce_enqueue_desc()
1563 int ce_get_index_info_legacy(struct hif_softc *scn, void *ce_state, in ce_get_index_info_legacy() argument
1566 struct CE_state *state = (struct CE_state *)ce_state; in ce_get_index_info_legacy()