Searched refs:nim (Results 1 - 25 of 52) sorted by relevance

123

/netgear-R7800-V1.0.2.28/package/qca-nss-crypto/src/src/
H A Dnss_crypto_if.c261 void nss_crypto_process_event(void *app_data, struct nss_crypto_msg *nim) argument
271 switch (nim->cm.type) {
274 stats = &nim->msg.stats;
299 open = &nim->msg.eng;
301 if (nim->cm.response != NSS_CMN_RESPONSE_ACK) {
303 nim->cm.response, nim->cm.error);
312 session = &nim->msg.session;
314 if (nim->cm.response != NSS_CMN_RESPONSE_ACK) {
316 nim
400 struct nss_crypto_msg nim; local
448 struct nss_crypto_msg nim; local
[all...]
/netgear-R7800-V1.0.2.28/package/qca-nss-clients/src/netlink/
H A Dnss_nlipv4.c463 static void nss_nlipv4_process_notify(void *app_data, struct nss_ipv4_msg *nim) argument
469 skb = nss_nl_new_msg(&nss_nlipv4_family, nim->cm.type);
476 nl_nim = &nl_rule->nim;
481 nss_nlipv4_rule_init(nl_rule, nim->cm.type);
486 nim->cm.interface = 0;
487 nim->cm.cb = (uint32_t)NULL;
488 nim->cm.app_data = (uint32_t)NULL;
493 memcpy(nl_nim, nim, sizeof(struct nss_ipv4_msg));
502 static void nss_nlipv4_process_resp(void *app_data, struct nss_ipv4_msg *nim) argument
509 nl_nim = &nl_rule->nim;
532 struct nss_ipv4_msg *nim; local
678 struct nss_ipv4_msg *nim; local
[all...]
/netgear-R7800-V1.0.2.28/package/qca-nss-clients/src/netlink/include/
H A Dnss_nlipv4_if.h45 struct nss_ipv4_msg nim; /**< rule message */ member in struct:nss_nlipv4_rule
/netgear-R7800-V1.0.2.28/package/qca-nss-drv/src/
H A Dnss_ipv4.c126 struct nss_ipv4_msg *nim = (struct nss_ipv4_msg *)ncm; local
149 switch (nim->cm.type) {
154 nss_ipv4_driver_node_sync_update(nss_ctx, &nim->msg.node_stats);
161 nss_ipv4_driver_conn_sync_update(nss_ctx, &nim->msg.conn_stats);
168 nss_ipv4_driver_conn_sync_many_update(nss_ctx, &nim->msg.conn_stats_many);
176 if (nim->cm.response == NSS_CMM_RESPONSE_NOTIFY) {
192 cb((void *)ncm->app_data, nim);
199 nss_tx_status_t nss_ipv4_tx_with_size(struct nss_ctx_instance *nss_ctx, struct nss_ipv4_msg *nim, uint32_t size) argument
202 struct nss_cmn_msg *ncm = &nim->cm;
246 memcpy(nim2, nim, sizeo
266 nss_ipv4_tx(struct nss_ctx_instance *nss_ctx, struct nss_ipv4_msg *nim) argument
330 nss_ipv4_conn_cfg_process(struct nss_ctx_instance *nss_ctx, int conn, void (*cfg_cb)(void *app_data, struct nss_ipv4_msg *nim)) argument
333 struct nss_ipv4_msg nim; local
382 nss_ipv4_conn_cfg_callback(void *app_data, struct nss_ipv4_msg *nim) argument
476 nss_ipv4_update_conn_count_cb(void *app_data, struct nss_ipv4_msg *nim) argument
586 nss_ipv4_msg_init(struct nss_ipv4_msg *nim, uint16_t if_num, uint32_t type, uint32_t len, nss_ipv4_msg_callback_t cb, void *app_data) argument
[all...]
H A Dnss_ipv6.c126 struct nss_ipv6_msg *nim = (struct nss_ipv6_msg *)ncm; local
135 nss_warning("%p: received invalid message %d for IPv6 interface", nss_ctx, nim->cm.type);
152 switch (nim->cm.type) {
157 nss_ipv6_driver_node_sync_update(nss_ctx, &nim->msg.node_stats);
164 nss_ipv6_driver_conn_sync_update(nss_ctx, &nim->msg.conn_stats);
171 nss_ipv6_driver_conn_sync_many_update(nss_ctx, &nim->msg.conn_stats_many);
179 if (nim->cm.response == NSS_CMM_RESPONSE_NOTIFY) {
195 cb((void *)ncm->app_data, nim);
202 nss_tx_status_t nss_ipv6_tx_with_size(struct nss_ctx_instance *nss_ctx, struct nss_ipv6_msg *nim, uint32_t size) argument
205 struct nss_cmn_msg *ncm = &nim
269 nss_ipv6_tx(struct nss_ctx_instance *nss_ctx, struct nss_ipv6_msg *nim) argument
333 nss_ipv6_conn_cfg_process(struct nss_ctx_instance *nss_ctx, int conn, void (*cfg_cb)(void *app_data, struct nss_ipv6_msg *nim)) argument
336 struct nss_ipv6_msg nim; local
386 nss_ipv6_conn_cfg_callback(void *app_data, struct nss_ipv6_msg *nim) argument
476 nss_ipv6_update_conn_count_cb(void *app_data, struct nss_ipv6_msg *nim) argument
587 nss_ipv6_msg_init(struct nss_ipv6_msg *nim, uint16_t if_num, uint32_t type, uint32_t len, nss_ipv6_msg_callback_t cb, void *app_data) argument
[all...]
H A Dnss_phys_if.c141 struct nss_phys_if_msg *nim = (struct nss_phys_if_msg *)ncm; local
177 switch (nim->cm.type) {
182 nss_phys_if_update_driver_stats(nss_ctx, ncm->interface, &nim->msg.stats);
183 nss_phys_if_gmac_stats_sync(nss_ctx, &nim->msg.stats, ncm->interface);
207 cb((void *)ncm->app_data, nim);
214 static void nss_phys_if_callback(void *app_data, struct nss_phys_if_msg *nim) argument
216 if(nim->cm.response != NSS_CMN_RESPONSE_ACK) {
217 nss_warning("phys_if Error response %d\n", nim->cm.response);
309 nss_tx_status_t nss_phys_if_msg(struct nss_ctx_instance *nss_ctx, struct nss_phys_if_msg *nim) argument
311 struct nss_cmn_msg *ncm = &nim
375 nss_phys_if_msg_sync(struct nss_ctx_instance *nss_ctx, struct nss_phys_if_msg *nim) argument
480 struct nss_phys_if_msg nim; local
512 struct nss_phys_if_msg nim; local
529 struct nss_phys_if_msg nim; local
549 struct nss_phys_if_msg nim; local
570 struct nss_phys_if_msg nim; local
[all...]
H A Dnss_ipv4_reasm.c58 struct nss_ipv4_reasm_msg *nim = (struct nss_ipv4_reasm_msg *)ncm; local
65 switch (nim->cm.type) {
70 nss_ipv4_reasm_stats_sync(nss_ctx, &nim->msg.stats_sync);
H A Dnss_ipv6_reasm.c58 struct nss_ipv6_reasm_msg *nim = (struct nss_ipv6_reasm_msg *)ncm; local
62 switch (nim->cm.type) {
67 nss_ipv6_reasm_stats_sync(nss_ctx, &nim->msg.stats_sync);
H A Dnss_pppoe.c29 nss_tx_status_t nss_pppoe_tx(struct nss_ctx_instance *nss_ctx, struct nss_pppoe_msg *nim) argument
32 struct nss_cmn_msg *ncm = &nim->cm;
72 memcpy(nim2, nim, sizeof(struct nss_pppoe_msg));
174 struct nss_pppoe_msg *nim = (struct nss_pppoe_msg *)ncm; local
199 switch (nim->cm.type) {
201 nss_pppoe_node_stats_sync(nss_ctx, &nim->msg.pppoe_node_stats_sync);
204 nss_pppoe_exception_stats_sync(nss_ctx, &nim->msg.pppoe_conn_stats_sync);
207 nss_pppoe_session_reset(nss_ctx, &nim->msg.pppoe_session_reset);
H A Dnss_if.c31 struct nss_if_msg *nim = (struct nss_if_msg *)ncm; local
69 cb((void *)ncm->app_data, nim);
116 nss_tx_status_t nss_if_tx_msg(struct nss_ctx_instance *nss_ctx, struct nss_if_msg *nim) argument
118 struct nss_cmn_msg *ncm = &nim->cm;
159 memcpy(nim2, nim, sizeof(struct nss_if_msg));
H A Dnss_ipsec.c103 struct nss_ipsec_msg *nim = (struct nss_ipsec_msg *)ncm; local
152 cb((void *)ncm->app_data, nim);
168 struct nss_ipsec_msg *nim; local
212 nim = (struct nss_ipsec_msg *)skb_put(nbuf, sizeof(struct nss_ipsec_msg));
213 memcpy(nim, msg, sizeof(struct nss_ipsec_msg));
405 void nss_ipsec_msg_init(struct nss_ipsec_msg *nim, uint16_t if_num, uint32_t type, uint32_t len, argument
408 nss_cmn_msg_init(&nim->cm, if_num, type, len, (void *)cb, app_data);
H A Dnss_crypto.c88 struct nss_crypto_msg *nim = (struct nss_crypto_msg *)ncm; local
132 cb((void *)ncm->app_data, nim);
147 struct nss_crypto_msg *nim; local
190 nim = (struct nss_crypto_msg *)skb_put(nbuf, sizeof(struct nss_crypto_msg));
191 memcpy(nim, msg, sizeof(struct nss_crypto_msg));
H A Dnss_phys_if.h184 * @param nim Physical interface message
188 nss_tx_status_t nss_phys_if_msg(struct nss_ctx_instance *nss_ctx, struct nss_phys_if_msg *nim);
193 * @param nim Physical interface message
197 nss_tx_status_t nss_phys_if_msg_sync(struct nss_ctx_instance *nss_ctx, struct nss_phys_if_msg *nim);
/netgear-R7800-V1.0.2.28/package/qca-nss-clients/src/nss_qdisc/
H A Dnss_qdisc.c46 static void nss_qdisc_msg_init(struct nss_if_msg *nim, uint16_t if_num, uint32_t msg_type, uint32_t len, argument
49 nss_cmn_msg_init(&nim->cm, if_num, msg_type, len, (void*)cb, app_data);
116 static void nss_qdisc_attach_bshaper_callback(void *app_data, struct nss_if_msg *nim) argument
121 if (nim->cm.response != NSS_CMN_RESPONSE_ACK) {
123 nim->cm.error);
138 struct nss_if_msg nim; local
160 nss_qdisc_msg_init(&nim, if_num, NSS_IF_BSHAPER_ASSIGN,
168 nim.msg.shaper_assign.shaper_id = nq->shaper_id;
169 rc = nss_if_tx_msg(nq->nss_shaping_ctx, &nim);
199 static void nss_qdisc_detach_bshaper_callback(void *app_data, struct nss_if_msg *nim) argument
221 struct nss_if_msg nim; local
442 nss_qdisc_root_cleanup_shaper_unassign_callback(void *app_data, struct nss_if_msg *nim) argument
459 struct nss_if_msg nim; local
488 nss_qdisc_root_cleanup_free_node_callback(void *app_data, struct nss_if_msg *nim) argument
511 struct nss_if_msg nim; local
548 nss_qdisc_root_init_root_assign_callback(void *app_data, struct nss_if_msg *nim) argument
571 nss_qdisc_root_init_alloc_node_callback(void *app_data, struct nss_if_msg *nim) argument
622 nss_qdisc_root_init_shaper_assign_callback(void *app_data, struct nss_if_msg *nim) argument
715 nss_qdisc_child_cleanup_free_node_callback(void *app_data, struct nss_if_msg *nim) argument
741 struct nss_if_msg nim; local
777 nss_qdisc_child_init_alloc_node_callback(void *app_data, struct nss_if_msg *nim) argument
1097 nss_qdisc_set_default_callback(void *app_data, struct nss_if_msg *nim) argument
1121 struct nss_if_msg nim; local
1199 nss_qdisc_node_attach_callback(void *app_data, struct nss_if_msg *nim) argument
1222 nss_qdisc_node_attach(struct nss_qdisc *nq, struct nss_qdisc *nq_child, struct nss_if_msg *nim, int32_t attach_type) argument
1289 nss_qdisc_node_detach_callback(void *app_data, struct nss_if_msg *nim) argument
1312 nss_qdisc_node_detach(struct nss_qdisc *nq, struct nss_qdisc *nq_child, struct nss_if_msg *nim, int32_t detach_type) argument
1378 nss_qdisc_configure_callback(void *app_data, struct nss_if_msg *nim) argument
1400 nss_qdisc_configure(struct nss_qdisc *nq, struct nss_if_msg *nim, int32_t config_type) argument
1542 struct nss_if_msg nim; local
1914 nss_qdisc_basic_stats_callback(void *app_data, struct nss_if_msg *nim) argument
2019 struct nss_if_msg nim; local
[all...]
H A Dnss_tbl.c58 struct nss_if_msg nim; local
65 nim.msg.shaper_configure.config.msg.shaper_node_config.qos_tag = q->nq.qos_tag;
66 if (nss_qdisc_node_detach(&q->nq, nq_child, &nim,
95 struct nss_if_msg nim; local
139 nim.msg.shaper_configure.config.msg.shaper_node_config.qos_tag = q->nq.qos_tag;
140 nim.msg.shaper_configure.config.msg.shaper_node_config.snc.tbl_param.lap_cir.rate = q->rate;
141 nim.msg.shaper_configure.config.msg.shaper_node_config.snc.tbl_param.lap_cir.burst = q->burst;
142 nim.msg.shaper_configure.config.msg.shaper_node_config.snc.tbl_param.lap_cir.max_size = q->mtu;
143 nim.msg.shaper_configure.config.msg.shaper_node_config.snc.tbl_param.lap_cir.short_circuit = false;
144 nim
[all...]
H A Dnss_codel.c74 struct nss_if_msg nim; local
115 nim.msg.shaper_configure.config.msg.shaper_node_config.qos_tag = q->nq.qos_tag;
120 nim.msg.shaper_configure.config.msg.shaper_node_config.snc.codel_param.qlen_max = q->limit;
121 nim.msg.shaper_configure.config.msg.shaper_node_config.snc.codel_param.cap.interval = q->interval/1000;
122 nim.msg.shaper_configure.config.msg.shaper_node_config.snc.codel_param.cap.target = q->target/1000;
123 nim.msg.shaper_configure.config.msg.shaper_node_config.snc.codel_param.cap.mtu = psched_mtu(dev);
125 nim.msg.shaper_configure.config.msg.shaper_node_config.snc.codel_param.cap.mtu);
127 if (nss_qdisc_configure(&q->nq, &nim,
H A Dnss_wred.c117 struct nss_if_msg nim; local
197 nim.msg.shaper_configure.config.msg.shaper_node_config.qos_tag = q->nq.qos_tag;
198 nim.msg.shaper_configure.config.msg.shaper_node_config.snc.wred_param.limit = qopt->limit;
199 nim.msg.shaper_configure.config.msg.shaper_node_config.snc.wred_param.weight_mode = qopt->weight_mode;
200 nim.msg.shaper_configure.config.msg.shaper_node_config.snc.wred_param.weight_mode_value = qopt->weight_mode_value;
201 nim.msg.shaper_configure.config.msg.shaper_node_config.snc.wred_param.rap.min = qopt->rap.min;
202 nim.msg.shaper_configure.config.msg.shaper_node_config.snc.wred_param.rap.max = qopt->rap.max;
203 nim.msg.shaper_configure.config.msg.shaper_node_config.snc.wred_param.rap.probability = qopt->rap.probability;
204 nim.msg.shaper_configure.config.msg.shaper_node_config.snc.wred_param.rap.exp_weight_factor = qopt->rap.exp_weight_factor;
205 nim
[all...]
H A Dnss_blackhole.c101 struct nss_if_msg nim; local
132 nim.msg.shaper_configure.config.msg.shaper_node_config.qos_tag = q->nq.qos_tag;
133 nim.msg.shaper_configure.config.msg.shaper_node_config.snc.fifo_param.limit = 0;
134 nim.msg.shaper_configure.config.msg.shaper_node_config.snc.fifo_param.drop_mode = NSS_SHAPER_FIFO_DROP_MODE_TAIL;
135 if (nss_qdisc_configure(&q->nq, &nim, NSS_SHAPER_CONFIG_TYPE_FIFO_CHANGE_PARAM) < 0) {
H A Dnss_fifo.c71 struct nss_if_msg nim; local
101 nim.msg.shaper_configure.config.msg.shaper_node_config.qos_tag = q->nq.qos_tag;
102 nim.msg.shaper_configure.config.msg.shaper_node_config.snc.fifo_param.limit = q->limit;
103 nim.msg.shaper_configure.config.msg.shaper_node_config.snc.fifo_param.drop_mode = NSS_SHAPER_FIFO_DROP_MODE_TAIL;
104 if (nss_qdisc_configure(&q->nq, &nim, NSS_SHAPER_CONFIG_TYPE_FIFO_CHANGE_PARAM) < 0) {
H A Dnss_wrr.c52 struct nss_if_msg nim; local
73 nim.msg.shaper_configure.config.msg.shaper_node_config.qos_tag = cl->nq.qos_tag;
74 if (nss_qdisc_node_detach(&cl->nq, nq_child, &nim,
277 struct nss_if_msg nim; local
291 nim.msg.shaper_configure.config.msg.shaper_node_config.qos_tag = q->nq.qos_tag;
292 nim.msg.shaper_configure.config.msg.shaper_node_config.snc.wrr_detach.child_qos_tag = cl->nq.qos_tag;
293 if (nss_qdisc_node_detach(&q->nq, &cl->nq, &nim,
494 struct nss_if_msg nim; local
517 nim.msg.shaper_configure.config.msg.shaper_node_config.qos_tag = q->nq.qos_tag;
519 nim
580 struct nss_if_msg nim; local
[all...]
H A Dnss_qdisc.h221 struct nss_if_msg *nim, int32_t attach_type);
228 struct nss_if_msg *nim, int32_t detach_type);
235 struct nss_if_msg *nim, int32_t config_type);
H A Dnss_bf.c233 struct nss_if_msg nim; local
254 nim.msg.shaper_configure.config.msg.shaper_node_config.qos_tag = cl->nq.qos_tag;
255 if (nss_qdisc_node_detach(&cl->nq, nq_child, &nim,
292 struct nss_if_msg nim; local
307 nim.msg.shaper_configure.config.msg.shaper_node_config.qos_tag = q->nq.qos_tag;
308 nim.msg.shaper_configure.config.msg.shaper_node_config.snc.bf_detach.child_qos_tag = cl->nq.qos_tag;
309 if (nss_qdisc_node_detach(&q->nq, nq_child, &nim,
628 struct nss_if_msg nim; local
657 nim.msg.shaper_configure.config.msg.shaper_node_config.qos_tag = q->nq.qos_tag;
658 nim
[all...]
/netgear-R7800-V1.0.2.28/package/qca-nss-clients/src/
H A Dnss_ipsecmgr.c117 typedef bool (*nss_ipsecmgr_op_t)(struct net_device *dev, struct nss_ipsecmgr_tbl *tbl, struct nss_ipsec_msg *nim);
363 static bool nss_ipsecmgr_verify_add(struct net_device *dev, struct nss_ipsecmgr_tbl *tbl, struct nss_ipsec_msg *nim) argument
365 struct nss_ipsec_rule *rule = &nim->msg.push;
370 if (nim->cm.response != NSS_CMN_RESPONSE_ACK) {
410 static bool nss_ipsecmgr_commit_add(struct net_device *dev, struct nss_ipsecmgr_tbl *tbl, struct nss_ipsec_msg *nim) argument
412 struct nss_ipsec_rule *rule = &nim->msg.push;
440 sa->type = nss_ipsecmgr_get_type(nim->cm.interface);
443 switch (nim->cm.interface) {
453 nss_ipsecmgr_error("invalid interface num = %d\n", nim->cm.interface);
467 static bool nss_ipsecmgr_verify_del(struct net_device *dev, struct nss_ipsecmgr_tbl *tbl, struct nss_ipsec_msg *nim) argument
521 nss_ipsecmgr_commit_del(struct net_device *dev, struct nss_ipsecmgr_tbl *tbl, struct nss_ipsec_msg *nim) argument
553 nss_ipsecmgr_verify_stats(struct net_device *dev, struct nss_ipsecmgr_tbl *tbl, struct nss_ipsec_msg *nim) argument
575 nss_ipsecmgr_commit_stats(struct net_device *dev, struct nss_ipsecmgr_tbl *tbl, struct nss_ipsec_msg *nim) argument
625 nss_ipsecmgr_verify_flush(struct net_device *dev, struct nss_ipsecmgr_tbl *tbl, struct nss_ipsec_msg *nim) argument
634 nss_ipsecmgr_commit_flush(struct net_device *dev, struct nss_ipsecmgr_tbl *tbl, struct nss_ipsec_msg *nim) argument
666 nss_ipsecmgr_op_receive(void *app_data, struct nss_ipsec_msg *nim) argument
725 nss_ipsecmgr_op_send(struct net_device *dev, struct nss_ipsec_msg *nim, uint32_t if_num, enum nss_ipsec_msg_type type) argument
1197 struct nss_ipsec_msg nim; local
1239 struct nss_ipsec_msg nim; local
1278 struct nss_ipsec_msg nim; local
[all...]
/netgear-R7800-V1.0.2.28/package/qca-nss-ecm/src/frontends/nss/
H A Decm_nss_multicast_ipv4.c134 static void ecm_nss_multicast_ipv4_connection_update_callback(void *app_data, struct nss_ipv4_msg *nim) argument
136 struct nss_ipv4_mc_rule_create_msg *nircm = &nim->msg.mc_rule_create;
143 DEBUG_TRACE("%p: update callback, response received from FW : %u\n", nim, nim->cm.response);
148 if (nim->cm.type != NSS_IPV4_TX_CREATE_MC_RULE_MSG) {
149 DEBUG_ERROR("%p: multicast update callback with improper type: %d, serial: %u\n", nim, nim->cm.type, serial);
157 DEBUG_ERROR("%p: multicast update callback with improper type: %d, serial: %u\n", nim, nim->cm.type, serial);
166 DEBUG_TRACE("%p: multicast update callback, connection not found, serial: %u\n", nim, seria
205 ecm_nss_multicast_ipv4_connection_create_callback(void *app_data, struct nss_ipv4_msg *nim) argument
400 struct nss_ipv4_msg *nim; local
850 struct nss_ipv4_msg *nim; local
1434 ecm_nss_multicast_ipv4_connection_destroy_callback(void *app_data, struct nss_ipv4_msg *nim) argument
1551 struct nss_ipv4_msg nim; local
[all...]
H A Decm_nss_multicast_ipv6.c137 static void ecm_nss_multicast_ipv6_connection_update_callback(void *app_data, struct nss_ipv6_msg *nim) argument
139 struct nss_ipv6_mc_rule_create_msg *nircm = &nim->msg.mc_rule_create;
148 DEBUG_TRACE("%p: update callback, response received from FW : %u\n", nim, nim->cm.response);
153 if (nim->cm.type != NSS_IPV6_TX_CREATE_MC_RULE_MSG) {
154 DEBUG_ERROR("%p: multicast update callback with improper type: %d, serial: %u\n", nim, nim->cm.type, serial);
162 DEBUG_ERROR("%p: multicast update callback with improper type: %d, serial: %u\n", nim, nim->cm.type, serial);
171 DEBUG_TRACE("%p: multicast update callback, connection not found, serial: %u\n", nim, seria
210 ecm_nss_multicast_ipv6_connection_create_callback(void *app_data, struct nss_ipv6_msg *nim) argument
412 struct nss_ipv6_msg *nim; local
859 struct nss_ipv6_msg *nim; local
1382 ecm_nss_multicast_ipv6_connection_destroy_callback(void *app_data, struct nss_ipv6_msg *nim) argument
1504 struct nss_ipv6_msg nim; local
[all...]

Completed in 144 milliseconds

123