Lines Matching refs:cmd
40 struct wlan_serialization_command *cmd, in wlan_serialization_is_cmd_present_queue() argument
50 if (!cmd) { in wlan_serialization_is_cmd_present_queue()
55 cmd_type = cmd->cmd_type; in wlan_serialization_is_cmd_present_queue()
58 wlan_serialization_get_pdev_from_cmd(cmd)); in wlan_serialization_is_cmd_present_queue()
66 wlan_serialization_get_vdev_from_cmd(cmd)); in wlan_serialization_is_cmd_present_queue()
82 status = wlan_serialization_is_cmd_present_in_given_queue(queue, cmd, in wlan_serialization_is_cmd_present_queue()
90 wlan_serialization_enqueue_cmd(struct wlan_serialization_command *cmd, in wlan_serialization_enqueue_cmd() argument
130 if (!cmd) { in wlan_serialization_enqueue_cmd()
135 if (!cmd->cmd_cb) { in wlan_serialization_enqueue_cmd()
137 cmd->cmd_type, in wlan_serialization_enqueue_cmd()
138 cmd->cmd_id); in wlan_serialization_enqueue_cmd()
142 pdev = wlan_serialization_get_pdev_from_cmd(cmd); in wlan_serialization_enqueue_cmd()
147 vdev_id = wlan_vdev_get_id(cmd->vdev); in wlan_serialization_enqueue_cmd()
159 cmd->cmd_type); in wlan_serialization_enqueue_cmd()
180 if (cmd->cmd_type > WLAN_SER_CMD_SCAN && in wlan_serialization_enqueue_cmd()
184 wlan_serialization_get_vdev_from_cmd(cmd)); in wlan_serialization_enqueue_cmd()
195 cmd->cmd_type); in wlan_serialization_enqueue_cmd()
207 vdev_id, cmd->cmd_id, cmd->cmd_type); in wlan_serialization_enqueue_cmd()
213 active_queue = wlan_serialization_is_active_cmd_allowed(cmd); in wlan_serialization_enqueue_cmd()
215 if (wlan_serialization_is_cmd_present_queue(cmd, active_queue)) { in wlan_serialization_enqueue_cmd()
218 cmd->cmd_id, cmd->cmd_type, vdev_id); in wlan_serialization_enqueue_cmd()
227 cmd->cmd_id, cmd->cmd_type, vdev_id); in wlan_serialization_enqueue_cmd()
233 cmd->cmd_type, cmd->cmd_id, vdev_id, cmd->is_high_priority, in wlan_serialization_enqueue_cmd()
234 cmd->is_blocking, cmd->cmd_timeout_duration, active_queue); in wlan_serialization_enqueue_cmd()
241 qdf_mem_copy(&cmd_list->cmd, cmd, in wlan_serialization_enqueue_cmd()
244 if (cmd->cmd_type < WLAN_SER_CMD_NONSCAN) { in wlan_serialization_enqueue_cmd()
255 qdf_mem_zero(&cmd_list->cmd, in wlan_serialization_enqueue_cmd()
263 cmd->cmd_id, cmd->cmd_type); in wlan_serialization_enqueue_cmd()
272 wlan_ser_update_cmd_history(pdev_queue, &cmd_list->cmd, in wlan_serialization_enqueue_cmd()
297 ser_pdev_obj, cmd_list->cmd.cmd_type); in wlan_serialization_activate_cmd()
299 psoc = wlan_vdev_get_psoc(cmd_list->cmd.vdev); in wlan_serialization_activate_cmd()
304 vdev_id = wlan_vdev_get_id(cmd_list->cmd.vdev); in wlan_serialization_activate_cmd()
311 status = wlan_serialization_find_and_start_timer(psoc, &cmd_list->cmd, in wlan_serialization_activate_cmd()
315 cmd_list->cmd.cmd_type, in wlan_serialization_activate_cmd()
316 cmd_list->cmd.cmd_id, vdev_id); in wlan_serialization_activate_cmd()
328 ser_debug("Activate type %d id %d vdev %d", cmd_list->cmd.cmd_type, in wlan_serialization_activate_cmd()
329 cmd_list->cmd.cmd_id, vdev_id); in wlan_serialization_activate_cmd()
331 cmd_list->cmd.activation_reason = ser_reason; in wlan_serialization_activate_cmd()
333 status = cmd_list->cmd.cmd_cb(&cmd_list->cmd, in wlan_serialization_activate_cmd()
346 wlan_serialization_dequeue_cmd(&cmd_list->cmd, in wlan_serialization_activate_cmd()
359 wlan_serialization_dequeue_cmd(&cmd_list->cmd, in wlan_serialization_activate_cmd()
368 ser_pdev_obj, &cmd_list->cmd, in wlan_serialization_activate_cmd()
369 NULL, NULL, cmd_list->cmd.cmd_type, in wlan_serialization_activate_cmd()
377 wlan_serialization_is_active_cmd_allowed(struct wlan_serialization_command *cmd) in wlan_serialization_is_active_cmd_allowed() argument
382 pdev = wlan_serialization_get_pdev_from_cmd(cmd); in wlan_serialization_is_active_cmd_allowed()
388 if (cmd->cmd_type < WLAN_SER_CMD_NONSCAN) in wlan_serialization_is_active_cmd_allowed()
390 (wlan_serialization_is_active_scan_cmd_allowed(cmd) && in wlan_serialization_is_active_cmd_allowed()
391 wlan_serialization_is_scan_pending_queue_empty(cmd)); in wlan_serialization_is_active_cmd_allowed()
394 (wlan_serialization_is_active_non_scan_cmd_allowed(cmd) && in wlan_serialization_is_active_cmd_allowed()
395 wlan_serialization_is_non_scan_pending_queue_empty(cmd)); in wlan_serialization_is_active_cmd_allowed()
426 wlan_serialization_dequeue_cmd(struct wlan_serialization_command *cmd, in wlan_serialization_dequeue_cmd() argument
444 if (!cmd) { in wlan_serialization_dequeue_cmd()
449 pdev = wlan_serialization_get_pdev_from_cmd(cmd); in wlan_serialization_dequeue_cmd()
468 ser_pdev_obj, cmd->cmd_type); in wlan_serialization_dequeue_cmd()
471 cmd->cmd_type, cmd->cmd_id, wlan_vdev_get_id(cmd->vdev), in wlan_serialization_dequeue_cmd()
472 cmd->is_blocking, ser_reason, active_cmd); in wlan_serialization_dequeue_cmd()
476 if (cmd->cmd_type < WLAN_SER_CMD_NONSCAN) in wlan_serialization_dequeue_cmd()
478 ser_pdev_obj, &cmd_list, cmd, active_cmd); in wlan_serialization_dequeue_cmd()
481 ser_pdev_obj, &cmd_list, cmd, active_cmd); in wlan_serialization_dequeue_cmd()
497 if (cmd_list->cmd.cmd_type >= WLAN_SER_CMD_NONSCAN) in wlan_serialization_dequeue_cmd()
498 blocking_cmd_removed = cmd_list->cmd.is_blocking; in wlan_serialization_dequeue_cmd()
503 psoc, &cmd_list->cmd, in wlan_serialization_dequeue_cmd()
506 qdf_mem_copy(&cmd_bkup, &cmd_list->cmd, in wlan_serialization_dequeue_cmd()
508 qdf_mem_zero(&cmd_list->cmd, in wlan_serialization_dequeue_cmd()
614 wlan_serialization_timer_cb_mc_ctx(struct wlan_serialization_command *cmd) in wlan_serialization_timer_cb_mc_ctx() argument
624 status = wlan_objmgr_vdev_try_get_ref(cmd->vdev, WLAN_SERIALIZATION_ID); in wlan_serialization_timer_cb_mc_ctx()
627 wlan_vdev_get_id(cmd->vdev)); in wlan_serialization_timer_cb_mc_ctx()
633 wlan_objmgr_vdev_release_ref(cmd->vdev, WLAN_SERIALIZATION_ID); in wlan_serialization_timer_cb_mc_ctx()
637 qdf_mem_copy(timeout_cmd, cmd, sizeof(*timeout_cmd)); in wlan_serialization_timer_cb_mc_ctx()
670 struct wlan_serialization_command *cmd = timer->cmd; in wlan_serialization_timer_handler() local
672 if (!cmd) { in wlan_serialization_timer_handler()
678 cmd->cmd_type, wlan_vdev_get_id(cmd->vdev), in wlan_serialization_timer_handler()
679 cmd->cmd_id); in wlan_serialization_timer_handler()
681 wlan_serialization_timer_cb_mc_ctx(cmd); in wlan_serialization_timer_handler()
687 struct wlan_serialization_command *cmd) in wlan_serialization_find_and_update_timer() argument
694 if (!psoc || !cmd) { in wlan_serialization_find_and_update_timer()
708 if (!(ser_timer->cmd) || in wlan_serialization_find_and_update_timer()
709 (ser_timer->cmd->cmd_id != cmd->cmd_id) || in wlan_serialization_find_and_update_timer()
710 (ser_timer->cmd->cmd_type != cmd->cmd_type) || in wlan_serialization_find_and_update_timer()
711 (ser_timer->cmd->vdev != cmd->vdev)) in wlan_serialization_find_and_update_timer()
715 cmd->cmd_timeout_duration); in wlan_serialization_find_and_update_timer()
723 ser_debug("Can't find timer for cmd_type %d", cmd->cmd_type); in wlan_serialization_find_and_update_timer()
731 struct wlan_serialization_command *cmd, in wlan_serialization_find_and_stop_timer() argument
741 if (!psoc || !cmd) { in wlan_serialization_find_and_stop_timer()
746 if (cmd->cmd_timeout_duration == 0) { in wlan_serialization_find_and_stop_timer()
764 if (!(ser_timer->cmd) || in wlan_serialization_find_and_stop_timer()
765 (ser_timer->cmd->cmd_id != cmd->cmd_id) || in wlan_serialization_find_and_stop_timer()
766 (ser_timer->cmd->cmd_type != cmd->cmd_type) || in wlan_serialization_find_and_stop_timer()
767 (ser_timer->cmd->vdev != cmd->vdev)) in wlan_serialization_find_and_stop_timer()
770 vdev = ser_timer->cmd->vdev; in wlan_serialization_find_and_stop_timer()
786 cmd->cmd_type, cmd->cmd_id); in wlan_serialization_find_and_stop_timer()
794 struct wlan_serialization_command *cmd, in wlan_serialization_find_and_start_timer() argument
803 if (!psoc || !cmd) { in wlan_serialization_find_and_start_timer()
809 if ((cmd->cmd_timeout_duration == 0) && in wlan_serialization_find_and_start_timer()
823 if (ser_timer->cmd) in wlan_serialization_find_and_start_timer()
827 ser_timer->cmd = cmd; in wlan_serialization_find_and_start_timer()
838 status = wlan_objmgr_vdev_try_get_ref(ser_timer->cmd->vdev, in wlan_serialization_find_and_start_timer()
845 ser_timer->cmd = NULL; in wlan_serialization_find_and_start_timer()
861 qdf_timer_mod(&ser_timer->timer, cmd->cmd_timeout_duration); in wlan_serialization_find_and_start_timer()
864 cmd->cmd_type, cmd->cmd_id, cmd->is_high_priority, in wlan_serialization_find_and_start_timer()
865 cmd->is_blocking); in wlan_serialization_find_and_start_timer()
875 struct wlan_serialization_command *cmd, in wlan_serialization_cmd_cancel_handler() argument
895 ser_obj, pdev, vdev, cmd, in wlan_serialization_cmd_cancel_handler()
899 ser_obj, pdev, vdev, cmd, in wlan_serialization_cmd_cancel_handler()
906 ser_obj, pdev, vdev, cmd, in wlan_serialization_cmd_cancel_handler()
910 ser_obj, pdev, vdev, cmd, in wlan_serialization_cmd_cancel_handler()
928 struct wlan_serialization_command *cmd, in wlan_serialization_find_and_cancel_cmd() argument
936 if (!cmd) { in wlan_serialization_find_and_cancel_cmd()
941 pdev = wlan_serialization_get_pdev_from_cmd(cmd); in wlan_serialization_find_and_cancel_cmd()
956 ser_obj, cmd, NULL, NULL, in wlan_serialization_find_and_cancel_cmd()
971 ser_obj, NULL, NULL, cmd->vdev, in wlan_serialization_find_and_cancel_cmd()
978 ser_obj, cmd, NULL, NULL, in wlan_serialization_find_and_cancel_cmd()
992 ser_obj, NULL, NULL, cmd->vdev, in wlan_serialization_find_and_cancel_cmd()
1002 ser_obj, NULL, NULL, cmd->vdev, in wlan_serialization_find_and_cancel_cmd()
1003 cmd->cmd_type, queue_type, in wlan_serialization_find_and_cancel_cmd()
1012 ser_obj, NULL, NULL, cmd->vdev, in wlan_serialization_find_and_cancel_cmd()