Home
last modified time | relevance | path

Searched refs:app (Results 1 – 12 of 12) sorted by relevance

/net/802/
Dmrp.c236 static struct mrp_attr *mrp_attr_lookup(const struct mrp_applicant *app, in mrp_attr_lookup() argument
239 struct rb_node *parent = app->mad.rb_node; in mrp_attr_lookup()
256 static struct mrp_attr *mrp_attr_create(struct mrp_applicant *app, in mrp_attr_create() argument
259 struct rb_node *parent = NULL, **p = &app->mad.rb_node; in mrp_attr_create()
285 rb_insert_color(&attr->node, &app->mad); in mrp_attr_create()
289 static void mrp_attr_destroy(struct mrp_applicant *app, struct mrp_attr *attr) in mrp_attr_destroy() argument
291 rb_erase(&attr->node, &app->mad); in mrp_attr_destroy()
295 static void mrp_attr_destroy_all(struct mrp_applicant *app) in mrp_attr_destroy_all() argument
300 for (node = rb_first(&app->mad); in mrp_attr_destroy_all()
304 mrp_attr_destroy(app, attr); in mrp_attr_destroy_all()
[all …]
Dgarp.c147 static struct garp_attr *garp_attr_lookup(const struct garp_applicant *app, in garp_attr_lookup() argument
150 struct rb_node *parent = app->gid.rb_node; in garp_attr_lookup()
167 static struct garp_attr *garp_attr_create(struct garp_applicant *app, in garp_attr_create() argument
170 struct rb_node *parent = NULL, **p = &app->gid.rb_node; in garp_attr_create()
196 rb_insert_color(&attr->node, &app->gid); in garp_attr_create()
200 static void garp_attr_destroy(struct garp_applicant *app, struct garp_attr *attr) in garp_attr_destroy() argument
202 rb_erase(&attr->node, &app->gid); in garp_attr_destroy()
206 static void garp_attr_destroy_all(struct garp_applicant *app) in garp_attr_destroy_all() argument
211 for (node = rb_first(&app->gid); in garp_attr_destroy_all()
215 garp_attr_destroy(app, attr); in garp_attr_destroy_all()
[all …]
/net/netfilter/ipvs/
Dip_vs_app.c45 static inline int ip_vs_app_get(struct ip_vs_app *app) in ip_vs_app_get() argument
47 return try_module_get(app->module); in ip_vs_app_get()
51 static inline void ip_vs_app_put(struct ip_vs_app *app) in ip_vs_app_put() argument
53 module_put(app->module); in ip_vs_app_put()
73 ip_vs_app_inc_new(struct netns_ipvs *ipvs, struct ip_vs_app *app, __u16 proto, in ip_vs_app_inc_new() argument
86 inc = kmemdup(app, sizeof(*inc), GFP_KERNEL); in ip_vs_app_inc_new()
91 inc->app = app; in ip_vs_app_inc_new()
95 if (app->timeouts) { in ip_vs_app_inc_new()
97 ip_vs_create_timeout_table(app->timeouts, in ip_vs_app_inc_new()
98 app->timeouts_size); in ip_vs_app_inc_new()
[all …]
Dip_vs_ftp.c77 ip_vs_ftp_init_conn(struct ip_vs_app *app, struct ip_vs_conn *cp) in ip_vs_ftp_init_conn() argument
86 ip_vs_ftp_done_conn(struct ip_vs_app *app, struct ip_vs_conn *cp) in ip_vs_ftp_done_conn() argument
248 static int ip_vs_ftp_out(struct ip_vs_app *app, struct ip_vs_conn *cp, in ip_vs_ftp_out() argument
418 static int ip_vs_ftp_in(struct ip_vs_app *app, struct ip_vs_conn *cp, in ip_vs_ftp_in() argument
578 struct ip_vs_app *app; in __ip_vs_ftp_init() local
584 app = register_ip_vs_app(ipvs, &ip_vs_ftp); in __ip_vs_ftp_init()
585 if (IS_ERR(app)) in __ip_vs_ftp_init()
586 return PTR_ERR(app); in __ip_vs_ftp_init()
591 ret = register_ip_vs_app_inc(ipvs, app, app->protocol, ports[i]); in __ip_vs_ftp_init()
Dip_vs_proto_udp.c154 if (unlikely(cp->app != NULL)) { in udp_snat_handler()
188 skb->ip_summed = cp->app ? in udp_snat_handler()
237 if (unlikely(cp->app != NULL)) { in udp_dnat_handler()
272 skb->ip_summed = cp->app ? in udp_dnat_handler()
423 cp->app = inc; in udp_app_conn_bind()
Dip_vs_proto_tcp.c165 if (unlikely(cp->app != NULL)) { in tcp_snat_handler()
195 skb->ip_summed = cp->app ? in tcp_snat_handler()
243 if (unlikely(cp->app != NULL)) { in tcp_dnat_handler()
278 skb->ip_summed = cp->app ? in tcp_dnat_handler()
679 cp->app = inc; in tcp_app_conn_bind()
Dip_vs_proto_sctp.c107 if (unlikely(cp->app != NULL)) { in sctp_snat_handler()
154 if (unlikely(cp->app != NULL)) { in sctp_dnat_handler()
545 cp->app = inc; in sctp_app_conn_bind()
Dip_vs_nfct.c94 if (cp->app && nf_ct_protonum(ct) == IPPROTO_TCP && in ip_vs_update_conntrack()
Dip_vs_conn.c677 if (cp->app) in ip_vs_try_bind_dest()
892 if (unlikely(cp->app != NULL)) in ip_vs_conn_expire()
996 cp->app = NULL; in ip_vs_conn_new()
/net/bluetooth/cmtp/
Dcapi.c75 struct cmtp_application *app = kzalloc(sizeof(*app), GFP_KERNEL); in cmtp_application_add() local
77 BT_DBG("session %p application %p appl %u", session, app, appl); in cmtp_application_add()
79 if (!app) in cmtp_application_add()
82 app->state = BT_OPEN; in cmtp_application_add()
83 app->appl = appl; in cmtp_application_add()
85 list_add_tail(&app->list, &session->applications); in cmtp_application_add()
87 return app; in cmtp_application_add()
90 static void cmtp_application_del(struct cmtp_session *session, struct cmtp_application *app) in cmtp_application_del() argument
92 BT_DBG("session %p application %p", session, app); in cmtp_application_del()
94 if (app) { in cmtp_application_del()
[all …]
/net/dcb/
Ddcbnl.c469 struct dcb_app app = { in dcbnl_getapp() local
473 up = dcb_getapp(netdev, &app); in dcbnl_getapp()
538 struct dcb_app app; in dcbnl_setapp() local
539 app.selector = idtype; in dcbnl_setapp()
540 app.protocol = id; in dcbnl_setapp()
541 app.priority = up; in dcbnl_setapp()
542 ret = dcb_setapp(netdev, &app); in dcbnl_setapp()
1000 struct nlattr *app; in dcbnl_build_peer_app() local
1008 app = nla_nest_start_noflag(skb, app_nested_type); in dcbnl_build_peer_app()
1009 if (!app) in dcbnl_build_peer_app()
[all …]
/net/sctp/
Dinput.c477 struct sctp_association **app, in sctp_err_lookup() argument
489 *app = NULL; *tpp = NULL; in sctp_err_lookup()
544 *app = asoc; in sctp_err_lookup()