Searched refs:ncm (Results 1 - 25 of 41) sorted by relevance

12

/netgear-R7800-V1.0.2.28/package/qca-nss-drv/src/
H A Dnss_profiler.c28 static void nss_profiler_rx_msg_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, void *app) argument
30 struct nss_profiler_msg *pm = (struct nss_profiler_msg*)ncm;
34 if (ncm->type >= NSS_PROFILER_MAX_MSG_TYPES) {
35 nss_warning("%p: message type out of range: %d", nss_ctx, ncm->type);
39 if (ncm->type <= NSS_PROFILER_FLOWCTRL_MSG) {
40 if (ncm->len > sizeof(pm->payload.pcmdp)) {
41 nss_warning("%p: reply for cmd %d size is wrong %d : %d\n", nss_ctx, ncm->type, ncm->len, ncm->interface);
44 } else if (ncm
[all...]
H A Dnss_crypto.c86 static void nss_crypto_msg_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, void *app_data __attribute((unused))) argument
88 struct nss_crypto_msg *nim = (struct nss_crypto_msg *)ncm;
95 if (ncm->type > NSS_CRYPTO_MSG_TYPE_MAX) {
96 nss_crypto_warning("%p: rx message type out of range: %d", nss_ctx, ncm->type);
100 if (ncm->len > sizeof(struct nss_crypto_msg)) {
101 nss_crypto_warning("%p: rx request for another interface: %d", nss_ctx, ncm->interface);
105 if (ncm->interface != NSS_CRYPTO_INTERFACE) {
106 nss_crypto_warning("%p: rx message request for another interface: %d", nss_ctx, ncm->interface);
110 if (ncm->response == NSS_CMN_RESPONSE_LAST) {
111 nss_crypto_warning("%p: rx message response for if %d, type %d, is invalid: %d", nss_ctx, ncm
146 struct nss_cmn_msg *ncm = &msg->cm; local
311 nss_crypto_msg_init(struct nss_crypto_msg *ncm, uint16_t if_num, uint32_t type, uint32_t len, nss_crypto_msg_callback_t cb, void *app_data) argument
[all...]
H A Dnss_sjack.c43 static void nss_sjack_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, argument
48 struct nss_sjack_msg *nsm = (struct nss_sjack_msg *)ncm;
50 BUG_ON(ncm->interface != NSS_SJACK_INTERFACE);
55 if (ncm->type >= NSS_SJACK_MAX_MSG_TYPE) {
56 nss_warning("%p: received invalid message %d for sjack interface", nss_ctx, ncm->type);
60 if (ncm->len > sizeof(struct nss_sjack_msg)) {
61 nss_warning("%p: tx request for another interface: %d", nss_ctx, ncm->interface);
69 if (ncm->response == NSS_CMM_RESPONSE_NOTIFY) {
70 ncm->cb = (uint32_t)nss_ctx->nss_top->if_rx_msg_callback[ncm
111 struct nss_cmn_msg *ncm = &msg->cm; local
[all...]
H A Dnss_tun6rd.c23 static void nss_tun6rd_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, __attribute__((unused))void *app_data) argument
25 struct nss_tun6rd_msg *ntm = (struct nss_tun6rd_msg *)ncm;
30 BUG_ON(!nss_is_dynamic_interface(ncm->interface));
35 if (ncm->type >= NSS_TUN6RD_MAX) {
36 nss_warning("%p: received invalid message %d for Tun6RD interface", nss_ctx, ncm->type);
40 if (ncm->len > sizeof(struct nss_tun6rd_msg)) {
41 nss_warning("%p: tx request for another interface: %d", nss_ctx, ncm->interface);
49 if (ncm->response == NSS_CMM_RESPONSE_NOTIFY) {
50 ncm->cb = (uint32_t)nss_ctx->nss_top->tun6rd_msg_callback;
56 nss_core_log_msg_failures(nss_ctx, ncm);
89 struct nss_cmn_msg *ncm = &msg->cm; local
199 nss_tun6rd_msg_init(struct nss_tun6rd_msg *ncm, uint16_t if_num, uint32_t type, uint32_t len, void *cb, void *app_data) argument
[all...]
H A Dnss_wifi_vdev.c23 static void nss_wifi_vdev_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, __attribute__((unused))void *app_data) argument
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
87 struct nss_cmn_msg *ncm = &msg->cm; local
159 struct nss_cmn_msg *ncm; local
[all...]
H A Dnss_tunipip6.c23 static void nss_tunipip6_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, __attribute__((unused))void *app_data) argument
25 struct nss_tunipip6_msg *ntm = (struct nss_tunipip6_msg *)ncm;
29 BUG_ON(ncm->interface != NSS_TUNIPIP6_INTERFACE);
33 if (ncm->type >= NSS_TUNIPIP6_MAX) {
34 nss_warning("%p: received invalid message %d for DS-Lite interface", nss_ctx, ncm->type);
38 if (ncm->len > sizeof(struct nss_tunipip6_msg)) {
39 nss_warning("%p: tx request for another interface: %d", nss_ctx, ncm->interface);
47 if (ncm->response == NSS_CMM_RESPONSE_NOTIFY) {
48 ncm->cb = (uint32_t)nss_ctx->nss_top->tunipip6_msg_callback;
54 nss_core_log_msg_failures(nss_ctx, ncm);
87 struct nss_cmn_msg *ncm = &msg->cm; local
[all...]
H A Dnss_if.c28 void nss_if_msg_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, argument
31 struct nss_if_msg *nim = (struct nss_if_msg *)ncm;
37 if (ncm->type > NSS_IF_MAX_MSG_TYPES) {
38 nss_warning("%p: message type out of range: %d", nss_ctx, ncm->type);
42 if (!nss_is_dynamic_interface(ncm->interface) &&
43 !((ncm->interface >= NSS_PHYSICAL_IF_START) && (ncm->interface < NSS_VIRTUAL_IF_START))) {
44 nss_warning("%p: interface %d not in physical or dynamic if range\n", nss_ctx, ncm->interface);
48 if (ncm->len > sizeof(struct nss_if_msg)) {
49 nss_warning("%p: message length too big: %d", nss_ctx, ncm
118 struct nss_cmn_msg *ncm = &nim->cm; local
[all...]
H A Dnss_gre_redir.c59 static void nss_gre_redir_msg_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, __attribute__((unused))void *app_data) argument
61 struct nss_gre_redir_msg *ngrm = (struct nss_gre_redir_msg *)ncm;
69 BUG_ON(((ncm->interface < NSS_DYNAMIC_IF_START) || (ncm->interface >= (NSS_DYNAMIC_IF_START + NSS_MAX_DYNAMIC_INTERFACES))) &&
70 ncm->interface != NSS_GRE_REDIR_INTERFACE);
75 if (ncm->type >= NSS_GRE_REDIR_MAX_MSG_TYPES) {
76 nss_warning("%p: received invalid message %d for gre interface", nss_ctx, ncm->type);
80 if (ncm->len > sizeof(struct nss_gre_redir_msg)) {
81 nss_warning("%p: tx request for another interface: %d", nss_ctx, ncm->interface);
89 if (ncm
161 struct nss_cmn_msg *ncm = &msg->cm; local
[all...]
H A Dnss_ipsec.c101 static void nss_ipsec_msg_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, void *app_data __attribute((unused))) argument
103 struct nss_ipsec_msg *nim = (struct nss_ipsec_msg *)ncm;
105 uint32_t if_num = ncm->interface;
111 if (ncm->type > NSS_IPSEC_MSG_TYPE_MAX) {
112 nss_ipsec_warning("%p: rx message type out of range: %d", nss_ctx, ncm->type);
116 if (ncm->len > sizeof(struct nss_ipsec_msg)) {
117 nss_ipsec_warning("%p: rx request for another interface: %d", nss_ctx, ncm->interface);
121 if ((ncm->interface != NSS_IPSEC_ENCAP_IF_NUMBER) && (ncm->interface != NSS_IPSEC_DECAP_IF_NUMBER)) {
122 nss_ipsec_warning("%p: rx message request for another interface: %d", nss_ctx, ncm
167 struct nss_cmn_msg *ncm = &msg->cm; local
[all...]
H A Dnss_dynamic_interface.c27 static void nss_dynamic_interface_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, __attribute__((unused))void *app_data) argument
30 struct nss_dynamic_interface_msg *ndim = (struct nss_dynamic_interface_msg *)ncm;
33 BUG_ON(ncm->interface != NSS_DYNAMIC_INTERFACE);
38 if (ncm->type >= NSS_DYNAMIC_INTERFACE_MAX) {
39 nss_warning("%p: received invalid message %d for dynamic interface", nss_ctx, ncm->type);
43 if (ncm->len > sizeof(struct nss_dynamic_interface_msg)) {
44 nss_warning("%p: tx request for another interface: %d", nss_ctx, ncm->interface);
51 nss_core_log_msg_failures(nss_ctx, ncm);
58 if (ncm->response == NSS_CMN_RESPONSE_ACK) {
72 if (ncm
106 nss_dynamic_interface_callback(void *app_data, struct nss_cmn_msg *ncm) argument
158 struct nss_cmn_msg *ncm = &msg->cm; local
[all...]
H A Dnss_lag.c118 struct nss_cmn_msg *ncm,
121 struct nss_lag_msg *lm = (struct nss_lag_msg *)ncm;
125 BUG_ON(ncm->interface != NSS_LAG0_INTERFACE_NUM
126 && ncm->interface != NSS_LAG1_INTERFACE_NUM
127 && ncm->interface != NSS_LAG2_INTERFACE_NUM
128 && ncm->interface != NSS_LAG3_INTERFACE_NUM);
130 if (ncm->type >= NSS_TX_METADATA_LAG_MAX) {
131 nss_warning("%p: received invalid message %d for LAG interface", nss_ctx, ncm->type);
135 if (ncm->len > sizeof(struct nss_lag_msg)) {
136 nss_warning("%p: invalid length for LAG message: %d", nss_ctx, ncm
117 nss_lag_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, void *app_data) argument
[all...]
H A Dnss_lso_rx.c62 static void nss_rx_lso_rx_interface_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, __attribute__((unused))void *app_data) { argument
64 struct nss_lso_rx_msg *nlrm = (struct nss_lso_rx_msg *)ncm;
72 if (ncm->response != NSS_CMN_RESPONSE_ACK) {
76 nss_info("%p: Received response %d for type %d, interface %d", nss_ctx, ncm->response, ncm->type, ncm->interface);
H A Dnss_eth_rx.c62 static void nss_eth_rx_interface_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, __attribute__((unused))void *app_data) argument
64 struct nss_eth_rx_msg *nem = (struct nss_eth_rx_msg *)ncm;
80 if (ncm->response != NSS_CMN_RESPONSE_ACK) {
85 nss_ctx, ncm->response, ncm->type, ncm->interface);
H A Dnss_wifi.c63 static void nss_wifi_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, __attribute__((unused))void *app_data) argument
65 struct nss_wifi_msg *ntm = (struct nss_wifi_msg *)ncm;
71 BUG_ON(((ncm->interface < NSS_WIFI_INTERFACE0) || (ncm->interface > NSS_WIFI_INTERFACE2)));
76 if (ncm->type >= NSS_WIFI_MAX_MSG) {
77 nss_warning("%p: received invalid message %d for wifi interface", nss_ctx, ncm->type);
81 if (ncm->len > sizeof(struct nss_wifi_msg)) {
82 nss_warning("%p: tx request for another interface: %d", nss_ctx, ncm->interface);
94 nss_wifi_stats_sync(nss_ctx, &ntm->msg.statsmsg, ncm->interface);
102 if (ncm
143 struct nss_cmn_msg *ncm = &msg->cm; local
[all...]
H A Dnss_pppoe.c32 struct nss_cmn_msg *ncm = &nim->cm; local
46 if (ncm->interface != NSS_PPPOE_RX_INTERFACE) {
47 nss_warning("%p: tx request for another interface: %d", nss_ctx, ncm->interface);
51 if (ncm->type > NSS_PPPOE_MAX) {
52 nss_warning("%p: message type out of range: %d", nss_ctx, ncm->type);
56 if (ncm->len > sizeof(struct nss_pppoe_msg)) {
57 nss_warning("%p: message length is invalid: %d", nss_ctx, ncm->len);
172 static void nss_pppoe_rx_msg_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, __attribute__((unused))void *app_data) argument
174 struct nss_pppoe_msg *nim = (struct nss_pppoe_msg *)ncm;
176 BUG_ON(ncm
[all...]
H A Dnss_log.c326 struct nss_cmn_msg *ncm = (struct nss_cmn_msg *)nim; local
328 msg_response = ncm->response;
337 static void nss_debug_interface_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, __attribute__((unused))void *app_data) argument
339 struct nss_debug_interface_msg *ntm = (struct nss_debug_interface_msg *)ncm;
342 BUG_ON(ncm->interface != NSS_DEBUG_INTERFACE);
347 if (ncm->type > NSS_DEBUG_INTERFACE_TYPE_MAX) {
348 nss_warning("%p: received invalid message %d for CAPWAP interface", nss_ctx, ncm->type);
352 if (ncm->len > sizeof(struct nss_debug_interface_msg)) {
353 nss_warning("%p: Length of message is greater than required: %d", nss_ctx, ncm->interface);
357 nss_core_log_msg_failures(nss_ctx, ncm);
386 struct nss_cmn_msg *ncm = &msg->cm; local
[all...]
H A Dnss_wifi_if.c63 struct nss_cmn_msg *ncm,
66 struct nss_wifi_if_msg *nwim = (struct nss_wifi_if_msg *)ncm;
75 if (ncm->type >= NSS_WIFI_IF_MAX_MSG_TYPES) {
77 nss_ctx, ncm->type);
81 if (ncm->len > sizeof(struct nss_wifi_if_msg)) {
83 nss_ctx, ncm->interface);
90 nss_core_log_msg_failures(nss_ctx, ncm);
92 if_num = NSS_WIFI_IF_GET_INDEX(ncm->interface);
114 ncm->cb = (uint32_t)handle->cb;
115 ncm
62 nss_wifi_if_msg_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, __attribute__((unused))void *app_data) argument
164 nss_wifi_if_callback(void *app_data, struct nss_cmn_msg *ncm) argument
189 struct nss_cmn_msg *ncm = &nwim->cm; local
[all...]
H A Dnss_capwap.c185 static void nss_capwap_msg_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, __attribute__((unused))void *app_data) argument
187 struct nss_capwap_msg *ntm = (struct nss_capwap_msg *)ncm;
193 if (ncm->type > NSS_CAPWAP_MSG_TYPE_MAX) {
194 nss_warning("%p: received invalid message %d for CAPWAP interface", nss_ctx, ncm->type);
198 if (ncm->len > sizeof(struct nss_capwap_msg)) {
199 nss_warning("%p: Length of message is greater than required: %d", nss_ctx, ncm->interface);
203 nss_core_log_msg_failures(nss_ctx, ncm);
209 if_num = ncm->interface - NSS_DYNAMIC_IF_START;
219 if (ncm->response == NSS_CMM_RESPONSE_NOTIFY) {
220 ncm
276 struct nss_cmn_msg *ncm = &msg->cm; local
578 nss_capwap_msg_init(struct nss_capwap_msg *ncm, uint16_t if_num, uint32_t type, uint32_t len, nss_capwap_msg_callback_t cb, void *app_data) argument
[all...]
H A Dnss_freq.c37 static void nss_freq_msg_init(struct nss_corefreq_msg *ncm, uint16_t if_num, uint32_t type, uint32_t len, argument
40 nss_cmn_msg_init(&ncm->cm, if_num, type, len, cb, app_data);
78 struct nss_corefreq_msg *ncm; local
94 ncm = (struct nss_corefreq_msg *)skb_put(nbuf, sizeof(struct nss_corefreq_msg));
96 nss_freq_msg_init(ncm, NSS_COREFREQ_INTERFACE, NSS_TX_METADATA_TYPE_NSS_FREQ_CHANGE,
98 nfc = &ncm->msg.nfc;
269 static void nss_freq_interface_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, __attribute__((unused))void *app_data) { argument
271 struct nss_corefreq_msg *ncfm = (struct nss_corefreq_msg *)ncm;
282 if (ncm->response != NSS_CMN_RESPONSE_ACK) {
286 nss_info("%p: Received response %d for type %d, interface %d", nss_ctx, ncm
[all...]
H A Dnss_ipv4_reasm.c56 static void nss_ipv4_reasm_msg_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, __attribute__((unused))void *app_data) argument
58 struct nss_ipv4_reasm_msg *nim = (struct nss_ipv4_reasm_msg *)ncm;
60 BUG_ON(ncm->interface != NSS_IPV4_REASM_INTERFACE);
H A Dnss_ipv6_reasm.c56 static void nss_ipv6_reasm_msg_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, __attribute__((unused))void *app_data) argument
58 struct nss_ipv6_reasm_msg *nim = (struct nss_ipv6_reasm_msg *)ncm;
60 BUG_ON(ncm->interface != NSS_IPV6_REASM_INTERFACE);
H A Dnss_tx_rx_virt_if.c65 struct nss_cmn_msg *ncm,
68 struct nss_tx_rx_virt_if_msg *nvim = (struct nss_tx_rx_virt_if_msg *)ncm;
77 if (ncm->type > NSS_VIRT_IF_MAX_MSG_TYPES) {
78 nss_warning("%p: message type out of range: %d", nss_ctx, ncm->type);
85 if (ncm->type < NSS_IF_MAX_MSG_TYPES) {
86 return nss_if_msg_handler(nss_ctx, ncm, app_data);
89 if (!NSS_IS_IF_TYPE(DYNAMIC, ncm->interface)) {
90 nss_warning("%p: response for another interface: %d", nss_ctx, ncm->interface);
94 if_num = NSS_TX_RX_VIRT_IF_GET_INDEX(ncm->interface);
115 nss_core_log_msg_failures(nss_ctx, ncm);
64 nss_tx_rx_virt_if_msg_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, __attribute__((unused))void *app_data) argument
144 nss_tx_rx_virt_if_callback(void *app_data, struct nss_cmn_msg *ncm) argument
426 struct nss_cmn_msg *ncm = &nrim->cm; local
[all...]
H A Dnss_phys_if.c138 static void nss_phys_if_msg_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, argument
141 struct nss_phys_if_msg *nim = (struct nss_phys_if_msg *)ncm;
147 if (ncm->type > NSS_PHYS_IF_MAX_MSG_TYPES) {
148 nss_warning("%p: message type out of range: %d", nss_ctx, ncm->type);
152 if (!NSS_IS_IF_TYPE(PHYSICAL, ncm->interface)) {
153 nss_warning("%p: response for another interface: %d", nss_ctx, ncm->interface);
157 if (ncm->len > sizeof(struct nss_phys_if_msg)) {
158 nss_warning("%p: message length too big: %d", nss_ctx, ncm->len);
165 if (ncm->type < NSS_IF_MAX_MSG_TYPES) {
166 return nss_if_msg_handler(nss_ctx, ncm, app_dat
311 struct nss_cmn_msg *ncm = &nim->cm; local
[all...]
H A Dnss_ipv4.c124 static void nss_ipv4_rx_msg_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, __attribute__((unused))void *app_data) argument
126 struct nss_ipv4_msg *nim = (struct nss_ipv4_msg *)ncm;
129 BUG_ON(ncm->interface != NSS_IPV4_RX_INTERFACE);
134 if (ncm->type >= NSS_IPV4_MAX_MSG_TYPES) {
135 nss_warning("%p: message type out of range: %d", nss_ctx, ncm->type);
139 if (ncm->len > sizeof(struct nss_ipv4_msg)) {
140 nss_warning("%p: tx request for another interface: %d", nss_ctx, ncm->interface);
147 nss_core_log_msg_failures(nss_ctx, ncm);
177 ncm->cb = (uint32_t)nss_ctx->nss_top->ipv4_callback;
178 ncm
202 struct nss_cmn_msg *ncm = &nim->cm; local
[all...]
H A Dnss_tx_rx_offload.c138 static void nss_rx_offload_stats_interface_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, __attribute__((unused))void *app_data) argument
140 struct nss_offload_msg *nom = (struct nss_offload_msg *)ncm;
152 nss_rx_metadata_interface_stats_sync(nss_ctx, &nom->msg.per_if_stats_sync, ncm->interface);
160 if (ncm->response != NSS_CMN_RESPONSE_ACK) {
165 nss_ctx, ncm->response, ncm->type, ncm->interface);

Completed in 263 milliseconds

12