• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7800-V1.0.2.28/package/qca-nss-drv/src/

Lines Matching refs:ncm

23 static void nss_wifi_vdev_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, __attribute__((unused))void *app_data)
27 nss_info("%p: NSS->HLOS message for wifi vdev on interface:%d", nss_ctx, ncm->interface);
29 BUG_ON(((ncm->interface < NSS_DYNAMIC_IF_START) || (ncm->interface >= (NSS_DYNAMIC_IF_START + NSS_MAX_DYNAMIC_INTERFACES))));
34 if (ncm->type >= NSS_WIFI_VDEV_MAX_MSG) {
35 nss_warning("%p: received invalid message %d for wifi vdev interface", nss_ctx, ncm->type);
43 nss_core_log_msg_failures(nss_ctx, ncm);
48 if (!nss_ctx->nss_top->subsys_dp_register[ncm->interface].ndev) {
49 nss_warning("%p: Event received wifi vdev interface %d before registration", nss_ctx, ncm->interface);
54 if (ncm->response == NSS_CMM_RESPONSE_NOTIFY) {
55 ncm->cb = (uint32_t)nss_ctx->nss_top->if_rx_msg_callback[ncm->interface];
56 ncm->app_data = (uint32_t)nss_ctx->nss_top->subsys_dp_register[ncm->interface].ndev;
62 if (!ncm->cb) {
66 cb = (nss_wifi_vdev_msg_callback_t)ncm->cb;
67 cb((void *)ncm->app_data, ncm);
87 struct nss_cmn_msg *ncm = &msg->cm;
91 nss_trace("%p: Sending wifi vdev message on interface :%d", nss_ctx, ncm->interface);
107 if ((ncm->interface < NSS_DYNAMIC_IF_START) || (ncm->interface >= (NSS_DYNAMIC_IF_START + NSS_MAX_DYNAMIC_INTERFACES))) {
108 nss_warning("%p: wifi vdev tx request for invalid interface: %d", nss_ctx, ncm->interface);
112 if (ncm->type > NSS_WIFI_VDEV_MAX_MSG) {
113 nss_warning("%p: wifi vdev message type out of range: %d", nss_ctx, ncm->type);
117 if (ncm->len > sizeof(struct nss_wifi_vdev_msg)) {
118 nss_warning("%p: wifi vdev message length is invalid: %d", nss_ctx, ncm->len);
159 struct nss_cmn_msg *ncm;
170 ncm = &nm->cm;
172 nss_trace("%p: Sending wifi vdev message on interface :%d", nss_ctx, ncm->interface);
177 if ((ncm->interface < NSS_DYNAMIC_IF_START) || (ncm->interface >= (NSS_DYNAMIC_IF_START + NSS_MAX_DYNAMIC_INTERFACES))) {
178 nss_warning("%p: wifi vdev tx request for invalid interface: %d", nss_ctx, ncm->interface);
182 if (ncm->type > NSS_WIFI_VDEV_MAX_MSG) {
183 nss_warning("%p: wifi vdev message type out of range: %d", nss_ctx, ncm->type);