Lines Matching refs:idx
723 uint32_t idx; in wmi_print_cmd_log_buffer() local
731 idx = log_buffer->size + *log_buffer->p_buf_tail_idx - count; in wmi_print_cmd_log_buffer()
732 idx %= log_buffer->size; in wmi_print_cmd_log_buffer()
737 &((struct wmi_command_debug *)log_buffer->buf)[idx]; in wmi_print_cmd_log_buffer()
755 ++idx; in wmi_print_cmd_log_buffer()
756 if (idx >= log_buffer->size) in wmi_print_cmd_log_buffer()
757 idx = 0; in wmi_print_cmd_log_buffer()
769 uint32_t idx, idx_tx_cmp, cmd_tmp_log, cmd_tmp_tx_cmp; in wmi_dump_last_cmd_rec_info() local
780 (*log_buf->p_buf_tail_idx == 0) ? (idx = log_buf->size) : in wmi_dump_last_cmd_rec_info()
781 (idx = *log_buf->p_buf_tail_idx - 1); in wmi_dump_last_cmd_rec_info()
782 idx %= log_buf->size; in wmi_dump_last_cmd_rec_info()
788 cmd_log = &((struct wmi_command_debug *)log_buf->buf)[idx]; in wmi_dump_last_cmd_rec_info()
824 uint32_t idx; in wmi_print_cmd_cmp_log_buffer() local
832 idx = log_buffer->size + *log_buffer->p_buf_tail_idx - count; in wmi_print_cmd_cmp_log_buffer()
833 idx %= log_buffer->size; in wmi_print_cmd_cmp_log_buffer()
838 &((struct wmi_command_cmp_debug *)log_buffer->buf)[idx]; in wmi_print_cmd_cmp_log_buffer()
856 ++idx; in wmi_print_cmd_cmp_log_buffer()
857 if (idx >= log_buffer->size) in wmi_print_cmd_cmp_log_buffer()
858 idx = 0; in wmi_print_cmd_cmp_log_buffer()
878 uint32_t idx; in wmi_print_event_log_buffer() local
886 idx = log_buffer->size + *log_buffer->p_buf_tail_idx - count; in wmi_print_event_log_buffer()
887 idx %= log_buffer->size; in wmi_print_event_log_buffer()
892 &((struct wmi_event_debug *)log_buffer->buf)[idx]; in wmi_print_event_log_buffer()
910 ++idx; in wmi_print_event_log_buffer()
911 if (idx >= log_buffer->size) in wmi_print_event_log_buffer()
912 idx = 0; in wmi_print_event_log_buffer()
2243 uint32_t idx = 0; in wmi_unified_get_event_handler_ix() local
2247 for (idx = 0; (idx < soc->max_event_idx && in wmi_unified_get_event_handler_ix()
2248 idx < WMI_UNIFIED_MAX_EVENT); ++idx) { in wmi_unified_get_event_handler_ix()
2249 if (wmi_handle->event_id[idx] == event_id && in wmi_unified_get_event_handler_ix()
2250 wmi_handle->event_handler[idx]) { in wmi_unified_get_event_handler_ix()
2251 return idx; in wmi_unified_get_event_handler_ix()
2276 uint32_t idx = 0; in wmi_register_event_handler_with_ctx() local
2313 idx = soc->max_event_idx; in wmi_register_event_handler_with_ctx()
2314 wmi_handle->event_handler[idx] = handler_func; in wmi_register_event_handler_with_ctx()
2315 wmi_handle->event_id[idx] = evt_id; in wmi_register_event_handler_with_ctx()
2318 wmi_handle->ctx[idx].exec_ctx = rx_ctx; in wmi_register_event_handler_with_ctx()
2319 wmi_handle->ctx[idx].buff_type = rx_buf_type; in wmi_register_event_handler_with_ctx()
2366 uint32_t idx = 0; in wmi_unified_unregister_event() local
2385 idx = wmi_unified_get_event_handler_ix(wmi_handle, evt_id); in wmi_unified_unregister_event()
2386 if (idx == -1) { in wmi_unified_unregister_event()
2391 wmi_handle->event_handler[idx] = NULL; in wmi_unified_unregister_event()
2392 wmi_handle->event_id[idx] = 0; in wmi_unified_unregister_event()
2394 wmi_handle->event_handler[idx] = in wmi_unified_unregister_event()
2396 wmi_handle->event_id[idx] = in wmi_unified_unregister_event()
2401 wmi_handle->ctx[idx].exec_ctx = in wmi_unified_unregister_event()
2403 wmi_handle->ctx[idx].buff_type = in wmi_unified_unregister_event()
2414 uint32_t idx = 0; in wmi_unified_unregister_event_handler() local
2437 idx = wmi_unified_get_event_handler_ix(wmi_handle, evt_id); in wmi_unified_unregister_event_handler()
2438 if (idx == -1) { in wmi_unified_unregister_event_handler()
2443 wmi_handle->event_handler[idx] = NULL; in wmi_unified_unregister_event_handler()
2444 wmi_handle->event_id[idx] = 0; in wmi_unified_unregister_event_handler()
2446 wmi_handle->event_handler[idx] = in wmi_unified_unregister_event_handler()
2448 wmi_handle->event_id[idx] = in wmi_unified_unregister_event_handler()
2453 wmi_handle->ctx[idx].exec_ctx = in wmi_unified_unregister_event_handler()
2455 wmi_handle->ctx[idx].buff_type = in wmi_unified_unregister_event_handler()
2680 uint32_t idx; in wmi_process_control_rx() local
2684 idx = wmi_unified_get_event_handler_ix(wmi_handle, id); in wmi_process_control_rx()
2685 if (qdf_unlikely(idx == A_ERROR)) { in wmi_process_control_rx()
2690 wmi_mtrace_rx(id, 0xFF, idx); in wmi_process_control_rx()
2692 exec_ctx = wmi_handle->ctx[idx].exec_ctx; in wmi_process_control_rx()
2901 uint32_t idx = 0; in __wmi_control_rx() local
2932 idx = wmi_unified_get_event_handler_ix(wmi_handle, id); in __wmi_control_rx()
2933 if (idx == A_ERROR) { in __wmi_control_rx()
2965 ev_buff_type = wmi_handle->ctx[idx].buff_type; in __wmi_control_rx()
2967 if (qdf_likely(wmi_handle->event_handler[idx])) in __wmi_control_rx()
2968 wmi_handle->event_handler[idx] (wmi_handle->scn_handle, in __wmi_control_rx()
2973 wmi_handle->event_handler[idx] (wmi_handle->scn_handle, in __wmi_control_rx()
2978 wmi_handle->event_handler[idx] (wmi_handle->scn_handle, in __wmi_control_rx()