Lines Matching refs:msg

34 static QDF_STATUS target_if_nan_event_flush_cb(struct scheduler_msg *msg)  in target_if_nan_event_flush_cb()  argument
38 if (!msg || !msg->bodyptr) { in target_if_nan_event_flush_cb()
43 psoc = ((struct nan_event_params *)msg->bodyptr)->psoc; in target_if_nan_event_flush_cb()
45 qdf_mem_free(msg->bodyptr); in target_if_nan_event_flush_cb()
46 msg->bodyptr = NULL; in target_if_nan_event_flush_cb()
51 static QDF_STATUS target_if_nan_event_dispatcher(struct scheduler_msg *msg) in target_if_nan_event_dispatcher() argument
58 nan_rsp = msg->bodyptr; in target_if_nan_event_dispatcher()
66 status = nan_rx_ops->nan_discovery_event_rx(msg); in target_if_nan_event_dispatcher()
69 target_if_nan_event_flush_cb(msg); in target_if_nan_event_dispatcher()
73 static QDF_STATUS target_if_ndp_event_flush_cb(struct scheduler_msg *msg) in target_if_ndp_event_flush_cb() argument
75 void *ptr = msg->bodyptr; in target_if_ndp_event_flush_cb()
78 switch (msg->type) { in target_if_ndp_event_flush_cb()
109 qdf_mem_free(msg->bodyptr); in target_if_ndp_event_flush_cb()
110 msg->bodyptr = NULL; in target_if_ndp_event_flush_cb()
115 static QDF_STATUS target_if_ndp_event_dispatcher(struct scheduler_msg *msg) in target_if_ndp_event_dispatcher() argument
118 void *ptr = msg->bodyptr; in target_if_ndp_event_dispatcher()
123 switch (msg->type) { in target_if_ndp_event_dispatcher()
149 target_if_err("invalid msg type %d", msg->type); in target_if_ndp_event_dispatcher()
174 status = nan_rx_ops->nan_datapath_event_rx(msg); in target_if_ndp_event_dispatcher()
178 qdf_mem_free(msg->bodyptr); in target_if_ndp_event_dispatcher()
179 msg->bodyptr = NULL; in target_if_ndp_event_dispatcher()
236 struct nan_dump_msg msg; in target_if_nan_dmesg_handler() local
252 status = wmi_extract_nan_msg(wmi_handle, data, &msg); in target_if_nan_dmesg_handler()
258 if (!msg.msg) { in target_if_nan_dmesg_handler()
259 target_if_err("msg not present %d", msg.data_len); in target_if_nan_dmesg_handler()
263 target_if_info("%s", msg.msg); in target_if_nan_dmesg_handler()
274 struct scheduler_msg msg = {0}; in target_if_ndp_initiator_rsp_handler() local
300 msg.bodyptr = rsp; in target_if_ndp_initiator_rsp_handler()
301 msg.type = NDP_INITIATOR_RSP; in target_if_ndp_initiator_rsp_handler()
302 msg.callback = target_if_ndp_event_dispatcher; in target_if_ndp_initiator_rsp_handler()
303 msg.flush_callback = target_if_ndp_event_flush_cb; in target_if_ndp_initiator_rsp_handler()
304 target_if_debug("NDP_INITIATOR_RSP sent: %d", msg.type); in target_if_ndp_initiator_rsp_handler()
307 QDF_MODULE_ID_TARGET_IF, &msg); in target_if_ndp_initiator_rsp_handler()
309 target_if_ndp_event_flush_cb(&msg); in target_if_ndp_initiator_rsp_handler()
322 struct scheduler_msg msg = {0}; in target_if_ndp_ind_handler() local
348 msg.bodyptr = rsp; in target_if_ndp_ind_handler()
349 msg.type = NDP_INDICATION; in target_if_ndp_ind_handler()
350 msg.callback = target_if_ndp_event_dispatcher; in target_if_ndp_ind_handler()
351 msg.flush_callback = target_if_ndp_event_flush_cb; in target_if_ndp_ind_handler()
352 target_if_debug("NDP_INDICATION sent: %d", msg.type); in target_if_ndp_ind_handler()
355 QDF_MODULE_ID_TARGET_IF, &msg); in target_if_ndp_ind_handler()
357 target_if_ndp_event_flush_cb(&msg); in target_if_ndp_ind_handler()
370 struct scheduler_msg msg = {0}; in target_if_ndp_confirm_handler() local
396 msg.bodyptr = rsp; in target_if_ndp_confirm_handler()
397 msg.type = NDP_CONFIRM; in target_if_ndp_confirm_handler()
398 msg.callback = target_if_ndp_event_dispatcher; in target_if_ndp_confirm_handler()
399 msg.flush_callback = target_if_ndp_event_flush_cb; in target_if_ndp_confirm_handler()
400 target_if_debug("NDP_CONFIRM sent: %d", msg.type); in target_if_ndp_confirm_handler()
403 QDF_MODULE_ID_TARGET_IF, &msg); in target_if_ndp_confirm_handler()
405 target_if_ndp_event_flush_cb(&msg); in target_if_ndp_confirm_handler()
467 struct scheduler_msg msg = {0}; in target_if_ndp_responder_rsp_handler() local
493 msg.bodyptr = rsp; in target_if_ndp_responder_rsp_handler()
494 msg.type = NDP_RESPONDER_RSP; in target_if_ndp_responder_rsp_handler()
495 msg.callback = target_if_ndp_event_dispatcher; in target_if_ndp_responder_rsp_handler()
496 msg.flush_callback = target_if_ndp_event_flush_cb; in target_if_ndp_responder_rsp_handler()
497 target_if_debug("NDP_INITIATOR_RSP sent: %d", msg.type); in target_if_ndp_responder_rsp_handler()
500 QDF_MODULE_ID_TARGET_IF, &msg); in target_if_ndp_responder_rsp_handler()
502 target_if_ndp_event_flush_cb(&msg); in target_if_ndp_responder_rsp_handler()
514 struct scheduler_msg msg = {0}; in target_if_nan_ndp_end_req() local
546 msg.type = NDP_END_RSP; in target_if_nan_ndp_end_req()
550 msg.bodyptr = &end_rsp; in target_if_nan_ndp_end_req()
553 nan_rx_ops->nan_datapath_event_rx(&msg); in target_if_nan_ndp_end_req()
564 struct scheduler_msg msg = {0}; in target_if_ndp_end_rsp_handler() local
590 msg.bodyptr = end_rsp; in target_if_ndp_end_rsp_handler()
591 msg.type = NDP_END_RSP; in target_if_ndp_end_rsp_handler()
592 msg.callback = target_if_ndp_event_dispatcher; in target_if_ndp_end_rsp_handler()
593 msg.flush_callback = target_if_ndp_event_flush_cb; in target_if_ndp_end_rsp_handler()
594 target_if_debug("NDP_END_RSP sent: %d", msg.type); in target_if_ndp_end_rsp_handler()
597 QDF_MODULE_ID_TARGET_IF, &msg); in target_if_ndp_end_rsp_handler()
599 target_if_ndp_event_flush_cb(&msg); in target_if_ndp_end_rsp_handler()
612 struct scheduler_msg msg = {0}; in target_if_ndp_end_ind_handler() local
641 msg.bodyptr = rsp; in target_if_ndp_end_ind_handler()
642 msg.type = NDP_END_IND; in target_if_ndp_end_ind_handler()
643 msg.callback = target_if_ndp_event_dispatcher; in target_if_ndp_end_ind_handler()
644 msg.flush_callback = target_if_ndp_event_flush_cb; in target_if_ndp_end_ind_handler()
645 target_if_debug("NDP_END_IND sent: %d", msg.type); in target_if_ndp_end_ind_handler()
648 QDF_MODULE_ID_TARGET_IF, &msg); in target_if_ndp_end_ind_handler()
650 target_if_ndp_event_flush_cb(&msg); in target_if_ndp_end_ind_handler()
663 struct scheduler_msg msg = {0}; in target_if_ndp_sch_update_handler() local
689 msg.bodyptr = rsp; in target_if_ndp_sch_update_handler()
690 msg.type = NDP_SCHEDULE_UPDATE; in target_if_ndp_sch_update_handler()
691 msg.callback = target_if_ndp_event_dispatcher; in target_if_ndp_sch_update_handler()
692 msg.flush_callback = target_if_ndp_event_flush_cb; in target_if_ndp_sch_update_handler()
693 target_if_debug("NDP_SCHEDULE_UPDATE sent: %d", msg.type); in target_if_ndp_sch_update_handler()
696 QDF_MODULE_ID_TARGET_IF, &msg); in target_if_ndp_sch_update_handler()
698 target_if_ndp_event_flush_cb(&msg); in target_if_ndp_sch_update_handler()
740 struct scheduler_msg msg = {0}; in target_if_ndp_host_event_handler() local
772 msg.bodyptr = host_evt; in target_if_ndp_host_event_handler()
773 msg.type = NDP_HOST_UPDATE; in target_if_ndp_host_event_handler()
774 msg.callback = target_if_ndp_event_dispatcher; in target_if_ndp_host_event_handler()
775 msg.flush_callback = target_if_ndp_event_flush_cb; in target_if_ndp_host_event_handler()
776 target_if_debug("NDP_HOST_UPDATE sent: %d", msg.type); in target_if_ndp_host_event_handler()
779 QDF_MODULE_ID_TARGET_IF, &msg); in target_if_ndp_host_event_handler()
782 target_if_ndp_event_flush_cb(&msg); in target_if_ndp_host_event_handler()
912 struct scheduler_msg msg = {0}; in target_if_nan_rsp_handler() local
952 msg.bodyptr = nan_rsp; in target_if_nan_rsp_handler()
953 msg.type = nan_rsp->evt_type; in target_if_nan_rsp_handler()
954 msg.callback = target_if_nan_event_dispatcher; in target_if_nan_rsp_handler()
955 msg.flush_callback = target_if_nan_event_flush_cb; in target_if_nan_rsp_handler()
956 target_if_debug("NAN Event sent: %d", msg.type); in target_if_nan_rsp_handler()
959 QDF_MODULE_ID_TARGET_IF, &msg); in target_if_nan_rsp_handler()
962 target_if_nan_event_flush_cb(&msg); in target_if_nan_rsp_handler()