/linux-4.1.27/net/802/ |
H A D | garp.c | 150 static struct garp_attr *garp_attr_lookup(const struct garp_applicant *app, garp_attr_lookup() argument 153 struct rb_node *parent = app->gid.rb_node; garp_attr_lookup() 170 static struct garp_attr *garp_attr_create(struct garp_applicant *app, garp_attr_create() argument 173 struct rb_node *parent = NULL, **p = &app->gid.rb_node; garp_attr_create() 199 rb_insert_color(&attr->node, &app->gid); garp_attr_create() 203 static void garp_attr_destroy(struct garp_applicant *app, struct garp_attr *attr) garp_attr_destroy() argument 205 rb_erase(&attr->node, &app->gid); garp_attr_destroy() 209 static int garp_pdu_init(struct garp_applicant *app) garp_pdu_init() argument 215 skb = alloc_skb(app->dev->mtu + LL_RESERVED_SPACE(app->dev), garp_pdu_init() 220 skb->dev = app->dev; garp_pdu_init() 222 skb_reserve(skb, LL_RESERVED_SPACE(app->dev) + LLC_RESERVE); garp_pdu_init() 227 app->pdu = skb; garp_pdu_init() 231 static int garp_pdu_append_end_mark(struct garp_applicant *app) garp_pdu_append_end_mark() argument 233 if (skb_tailroom(app->pdu) < sizeof(u8)) garp_pdu_append_end_mark() 235 *(u8 *)__skb_put(app->pdu, sizeof(u8)) = GARP_END_MARK; garp_pdu_append_end_mark() 239 static void garp_pdu_queue(struct garp_applicant *app) garp_pdu_queue() argument 241 if (!app->pdu) garp_pdu_queue() 244 garp_pdu_append_end_mark(app); garp_pdu_queue() 245 garp_pdu_append_end_mark(app); garp_pdu_queue() 247 llc_pdu_header_init(app->pdu, LLC_PDU_TYPE_U, LLC_SAP_BSPAN, garp_pdu_queue() 249 llc_pdu_init_as_ui_cmd(app->pdu); garp_pdu_queue() 250 llc_mac_hdr_init(app->pdu, app->dev->dev_addr, garp_pdu_queue() 251 app->app->proto.group_address); garp_pdu_queue() 253 skb_queue_tail(&app->queue, app->pdu); garp_pdu_queue() 254 app->pdu = NULL; garp_pdu_queue() 257 static void garp_queue_xmit(struct garp_applicant *app) garp_queue_xmit() argument 261 while ((skb = skb_dequeue(&app->queue))) garp_queue_xmit() 265 static int garp_pdu_append_msg(struct garp_applicant *app, u8 attrtype) garp_pdu_append_msg() argument 269 if (skb_tailroom(app->pdu) < sizeof(*gm)) garp_pdu_append_msg() 271 gm = (struct garp_msg_hdr *)__skb_put(app->pdu, sizeof(*gm)); garp_pdu_append_msg() 273 garp_cb(app->pdu)->cur_type = attrtype; garp_pdu_append_msg() 277 static int garp_pdu_append_attr(struct garp_applicant *app, garp_pdu_append_attr() argument 285 if (!app->pdu) { garp_pdu_append_attr() 286 err = garp_pdu_init(app); garp_pdu_append_attr() 291 if (garp_cb(app->pdu)->cur_type != attr->type) { garp_pdu_append_attr() 292 if (garp_cb(app->pdu)->cur_type && garp_pdu_append_attr() 293 garp_pdu_append_end_mark(app) < 0) garp_pdu_append_attr() 295 if (garp_pdu_append_msg(app, attr->type) < 0) garp_pdu_append_attr() 300 if (skb_tailroom(app->pdu) < len) garp_pdu_append_attr() 302 ga = (struct garp_attr_hdr *)__skb_put(app->pdu, len); garp_pdu_append_attr() 309 garp_pdu_queue(app); garp_pdu_append_attr() 313 static void garp_attr_event(struct garp_applicant *app, garp_attr_event() argument 328 if (garp_pdu_append_attr(app, attr, GARP_JOIN_IN) < 0) garp_attr_event() 332 garp_pdu_append_attr(app, attr, GARP_LEAVE_EMPTY); garp_attr_event() 335 garp_attr_destroy(app, attr); garp_attr_event() 349 struct garp_applicant *app = rtnl_dereference(port->applicants[appl->type]); garp_request_join() local 352 spin_lock_bh(&app->lock); garp_request_join() 353 attr = garp_attr_create(app, data, len, type); garp_request_join() 355 spin_unlock_bh(&app->lock); garp_request_join() 358 garp_attr_event(app, attr, GARP_EVENT_REQ_JOIN); garp_request_join() 359 spin_unlock_bh(&app->lock); garp_request_join() 369 struct garp_applicant *app = rtnl_dereference(port->applicants[appl->type]); garp_request_leave() local 372 spin_lock_bh(&app->lock); garp_request_leave() 373 attr = garp_attr_lookup(app, data, len, type); garp_request_leave() 375 spin_unlock_bh(&app->lock); garp_request_leave() 378 garp_attr_event(app, attr, GARP_EVENT_REQ_LEAVE); garp_request_leave() 379 spin_unlock_bh(&app->lock); garp_request_leave() 383 static void garp_gid_event(struct garp_applicant *app, enum garp_event event) garp_gid_event() argument 388 for (node = rb_first(&app->gid); garp_gid_event() 392 garp_attr_event(app, attr, event); garp_gid_event() 396 static void garp_join_timer_arm(struct garp_applicant *app) garp_join_timer_arm() argument 401 mod_timer(&app->join_timer, jiffies + delay); garp_join_timer_arm() 406 struct garp_applicant *app = (struct garp_applicant *)data; garp_join_timer() local 408 spin_lock(&app->lock); garp_join_timer() 409 garp_gid_event(app, GARP_EVENT_TRANSMIT_PDU); garp_join_timer() 410 garp_pdu_queue(app); garp_join_timer() 411 spin_unlock(&app->lock); garp_join_timer() 413 garp_queue_xmit(app); garp_join_timer() 414 garp_join_timer_arm(app); garp_join_timer() 428 static int garp_pdu_parse_attr(struct garp_applicant *app, struct sk_buff *skb, garp_pdu_parse_attr() argument 447 if (attrtype > app->app->maxattr) garp_pdu_parse_attr() 454 garp_gid_event(app, GARP_EVENT_R_LEAVE_EMPTY); garp_pdu_parse_attr() 474 attr = garp_attr_lookup(app, ga->data, dlen, attrtype); garp_pdu_parse_attr() 477 garp_attr_event(app, attr, event); garp_pdu_parse_attr() 481 static int garp_pdu_parse_msg(struct garp_applicant *app, struct sk_buff *skb) garp_pdu_parse_msg() argument 493 if (garp_pdu_parse_attr(app, skb, gm->attrtype) < 0) garp_pdu_parse_msg() 506 struct garp_applicant *app; garp_pdu_rcv() local 512 app = rcu_dereference(port->applicants[appl->type]); garp_pdu_rcv() 513 if (!app) garp_pdu_rcv() 523 spin_lock(&app->lock); garp_pdu_rcv() 525 if (garp_pdu_parse_msg(app, skb) < 0) garp_pdu_rcv() 530 spin_unlock(&app->lock); garp_pdu_rcv() 561 struct garp_applicant *app; garp_init_applicant() local 573 app = kzalloc(sizeof(*app), GFP_KERNEL); garp_init_applicant() 574 if (!app) garp_init_applicant() 581 app->dev = dev; garp_init_applicant() 582 app->app = appl; garp_init_applicant() 583 app->gid = RB_ROOT; garp_init_applicant() 584 spin_lock_init(&app->lock); garp_init_applicant() 585 skb_queue_head_init(&app->queue); garp_init_applicant() 586 rcu_assign_pointer(dev->garp_port->applicants[appl->type], app); garp_init_applicant() 587 setup_timer(&app->join_timer, garp_join_timer, (unsigned long)app); garp_init_applicant() 588 garp_join_timer_arm(app); garp_init_applicant() 592 kfree(app); garp_init_applicant() 603 struct garp_applicant *app = rtnl_dereference(port->applicants[appl->type]); garp_uninit_applicant() local 611 del_timer_sync(&app->join_timer); garp_uninit_applicant() 613 spin_lock_bh(&app->lock); garp_uninit_applicant() 614 garp_gid_event(app, GARP_EVENT_TRANSMIT_PDU); garp_uninit_applicant() 615 garp_pdu_queue(app); garp_uninit_applicant() 616 spin_unlock_bh(&app->lock); garp_uninit_applicant() 618 garp_queue_xmit(app); garp_uninit_applicant() 621 kfree_rcu(app, rcu); garp_uninit_applicant()
|
H A D | mrp.c | 239 static struct mrp_attr *mrp_attr_lookup(const struct mrp_applicant *app, mrp_attr_lookup() argument 242 struct rb_node *parent = app->mad.rb_node; mrp_attr_lookup() 259 static struct mrp_attr *mrp_attr_create(struct mrp_applicant *app, mrp_attr_create() argument 262 struct rb_node *parent = NULL, **p = &app->mad.rb_node; mrp_attr_create() 288 rb_insert_color(&attr->node, &app->mad); mrp_attr_create() 292 static void mrp_attr_destroy(struct mrp_applicant *app, struct mrp_attr *attr) mrp_attr_destroy() argument 294 rb_erase(&attr->node, &app->mad); mrp_attr_destroy() 298 static int mrp_pdu_init(struct mrp_applicant *app) mrp_pdu_init() argument 303 skb = alloc_skb(app->dev->mtu + LL_RESERVED_SPACE(app->dev), mrp_pdu_init() 308 skb->dev = app->dev; mrp_pdu_init() 309 skb->protocol = app->app->pkttype.type; mrp_pdu_init() 310 skb_reserve(skb, LL_RESERVED_SPACE(app->dev)); mrp_pdu_init() 315 ph->version = app->app->version; mrp_pdu_init() 317 app->pdu = skb; mrp_pdu_init() 321 static int mrp_pdu_append_end_mark(struct mrp_applicant *app) mrp_pdu_append_end_mark() argument 325 if (skb_tailroom(app->pdu) < sizeof(*endmark)) mrp_pdu_append_end_mark() 327 endmark = (__be16 *)__skb_put(app->pdu, sizeof(*endmark)); mrp_pdu_append_end_mark() 332 static void mrp_pdu_queue(struct mrp_applicant *app) mrp_pdu_queue() argument 334 if (!app->pdu) mrp_pdu_queue() 337 if (mrp_cb(app->pdu)->mh) mrp_pdu_queue() 338 mrp_pdu_append_end_mark(app); mrp_pdu_queue() 339 mrp_pdu_append_end_mark(app); mrp_pdu_queue() 341 dev_hard_header(app->pdu, app->dev, ntohs(app->app->pkttype.type), mrp_pdu_queue() 342 app->app->group_address, app->dev->dev_addr, mrp_pdu_queue() 343 app->pdu->len); mrp_pdu_queue() 345 skb_queue_tail(&app->queue, app->pdu); mrp_pdu_queue() 346 app->pdu = NULL; mrp_pdu_queue() 349 static void mrp_queue_xmit(struct mrp_applicant *app) mrp_queue_xmit() argument 353 while ((skb = skb_dequeue(&app->queue))) mrp_queue_xmit() 357 static int mrp_pdu_append_msg_hdr(struct mrp_applicant *app, mrp_pdu_append_msg_hdr() argument 362 if (mrp_cb(app->pdu)->mh) { mrp_pdu_append_msg_hdr() 363 if (mrp_pdu_append_end_mark(app) < 0) mrp_pdu_append_msg_hdr() 365 mrp_cb(app->pdu)->mh = NULL; mrp_pdu_append_msg_hdr() 366 mrp_cb(app->pdu)->vah = NULL; mrp_pdu_append_msg_hdr() 369 if (skb_tailroom(app->pdu) < sizeof(*mh)) mrp_pdu_append_msg_hdr() 371 mh = (struct mrp_msg_hdr *)__skb_put(app->pdu, sizeof(*mh)); mrp_pdu_append_msg_hdr() 374 mrp_cb(app->pdu)->mh = mh; mrp_pdu_append_msg_hdr() 378 static int mrp_pdu_append_vecattr_hdr(struct mrp_applicant *app, mrp_pdu_append_vecattr_hdr() argument 383 if (skb_tailroom(app->pdu) < sizeof(*vah) + attrlen) mrp_pdu_append_vecattr_hdr() 385 vah = (struct mrp_vecattr_hdr *)__skb_put(app->pdu, mrp_pdu_append_vecattr_hdr() 389 mrp_cb(app->pdu)->vah = vah; mrp_pdu_append_vecattr_hdr() 390 memcpy(mrp_cb(app->pdu)->attrvalue, firstattrvalue, attrlen); mrp_pdu_append_vecattr_hdr() 394 static int mrp_pdu_append_vecattr_event(struct mrp_applicant *app, mrp_pdu_append_vecattr_event() argument 402 if (!app->pdu) { mrp_pdu_append_vecattr_event() 403 err = mrp_pdu_init(app); mrp_pdu_append_vecattr_event() 412 if (!mrp_cb(app->pdu)->mh || mrp_pdu_append_vecattr_event() 413 mrp_cb(app->pdu)->mh->attrtype != attr->type || mrp_pdu_append_vecattr_event() 414 mrp_cb(app->pdu)->mh->attrlen != attr->len) { mrp_pdu_append_vecattr_event() 415 if (mrp_pdu_append_msg_hdr(app, attr->type, attr->len) < 0) mrp_pdu_append_vecattr_event() 423 if (!mrp_cb(app->pdu)->vah || mrp_pdu_append_vecattr_event() 424 memcmp(mrp_cb(app->pdu)->attrvalue, attr->value, attr->len)) { mrp_pdu_append_vecattr_event() 425 if (mrp_pdu_append_vecattr_hdr(app, attr->value, attr->len) < 0) mrp_pdu_append_vecattr_event() 429 len = be16_to_cpu(get_unaligned(&mrp_cb(app->pdu)->vah->lenflags)); mrp_pdu_append_vecattr_event() 436 if (skb_tailroom(app->pdu) < sizeof(u8)) mrp_pdu_append_vecattr_event() 438 vaevents = (u8 *)__skb_put(app->pdu, sizeof(u8)); mrp_pdu_append_vecattr_event() 440 vaevents = (u8 *)(skb_tail_pointer(app->pdu) - sizeof(u8)); mrp_pdu_append_vecattr_event() 461 put_unaligned(cpu_to_be16(++len), &mrp_cb(app->pdu)->vah->lenflags); mrp_pdu_append_vecattr_event() 462 mrp_attrvalue_inc(mrp_cb(app->pdu)->attrvalue, attr->len); mrp_pdu_append_vecattr_event() 467 mrp_pdu_queue(app); mrp_pdu_append_vecattr_event() 471 static void mrp_attr_event(struct mrp_applicant *app, mrp_attr_event() argument 494 app, attr, MRP_VECATTR_EVENT_NEW) < 0) mrp_attr_event() 499 app, attr, MRP_VECATTR_EVENT_JOIN_IN) < 0) mrp_attr_event() 504 app, attr, MRP_VECATTR_EVENT_LV) < 0) mrp_attr_event() 510 mrp_attr_destroy(app, attr); mrp_attr_event() 525 struct mrp_applicant *app = rtnl_dereference( mrp_request_join() local 533 spin_lock_bh(&app->lock); mrp_request_join() 534 attr = mrp_attr_create(app, value, len, type); mrp_request_join() 536 spin_unlock_bh(&app->lock); mrp_request_join() 539 mrp_attr_event(app, attr, MRP_EVENT_JOIN); mrp_request_join() 540 spin_unlock_bh(&app->lock); mrp_request_join() 550 struct mrp_applicant *app = rtnl_dereference( mrp_request_leave() local 558 spin_lock_bh(&app->lock); mrp_request_leave() 559 attr = mrp_attr_lookup(app, value, len, type); mrp_request_leave() 561 spin_unlock_bh(&app->lock); mrp_request_leave() 564 mrp_attr_event(app, attr, MRP_EVENT_LV); mrp_request_leave() 565 spin_unlock_bh(&app->lock); mrp_request_leave() 569 static void mrp_mad_event(struct mrp_applicant *app, enum mrp_event event) mrp_mad_event() argument 574 for (node = rb_first(&app->mad); mrp_mad_event() 578 mrp_attr_event(app, attr, event); mrp_mad_event() 582 static void mrp_join_timer_arm(struct mrp_applicant *app) mrp_join_timer_arm() argument 587 mod_timer(&app->join_timer, jiffies + delay); mrp_join_timer_arm() 592 struct mrp_applicant *app = (struct mrp_applicant *)data; mrp_join_timer() local 594 spin_lock(&app->lock); mrp_join_timer() 595 mrp_mad_event(app, MRP_EVENT_TX); mrp_join_timer() 596 mrp_pdu_queue(app); mrp_join_timer() 597 spin_unlock(&app->lock); mrp_join_timer() 599 mrp_queue_xmit(app); mrp_join_timer() 600 mrp_join_timer_arm(app); mrp_join_timer() 603 static void mrp_periodic_timer_arm(struct mrp_applicant *app) mrp_periodic_timer_arm() argument 605 mod_timer(&app->periodic_timer, mrp_periodic_timer_arm() 611 struct mrp_applicant *app = (struct mrp_applicant *)data; mrp_periodic_timer() local 613 spin_lock(&app->lock); mrp_periodic_timer() 614 mrp_mad_event(app, MRP_EVENT_PERIODIC); mrp_periodic_timer() 615 mrp_pdu_queue(app); mrp_periodic_timer() 616 spin_unlock(&app->lock); mrp_periodic_timer() 618 mrp_periodic_timer_arm(app); mrp_periodic_timer() 634 static void mrp_pdu_parse_vecattr_event(struct mrp_applicant *app, mrp_pdu_parse_vecattr_event() argument 641 attr = mrp_attr_lookup(app, mrp_cb(skb)->attrvalue, mrp_pdu_parse_vecattr_event() 670 mrp_attr_event(app, attr, event); mrp_pdu_parse_vecattr_event() 673 static int mrp_pdu_parse_vecattr(struct mrp_applicant *app, mrp_pdu_parse_vecattr() argument 688 mrp_mad_event(app, MRP_EVENT_R_LA); mrp_pdu_parse_vecattr() 722 mrp_pdu_parse_vecattr_event(app, skb, vaevent); mrp_pdu_parse_vecattr() 732 mrp_pdu_parse_vecattr_event(app, skb, vaevent); mrp_pdu_parse_vecattr() 741 mrp_pdu_parse_vecattr_event(app, skb, vaevent); mrp_pdu_parse_vecattr() 746 static int mrp_pdu_parse_msg(struct mrp_applicant *app, struct sk_buff *skb, mrp_pdu_parse_msg() argument 757 mrp_cb(skb)->mh->attrtype > app->app->maxattr || mrp_pdu_parse_msg() 764 if (mrp_pdu_parse_vecattr(app, skb, offset) < 0) mrp_pdu_parse_msg() 776 struct mrp_applicant *app; mrp_rcv() local 792 app = rcu_dereference(port->applicants[appl->type]); mrp_rcv() 793 if (unlikely(!app)) mrp_rcv() 801 if (ph->version != app->app->version) mrp_rcv() 804 spin_lock(&app->lock); mrp_rcv() 808 if (mrp_pdu_parse_msg(app, skb, &offset) < 0) mrp_rcv() 811 spin_unlock(&app->lock); mrp_rcv() 843 struct mrp_applicant *app; mrp_init_applicant() local 855 app = kzalloc(sizeof(*app), GFP_KERNEL); mrp_init_applicant() 856 if (!app) mrp_init_applicant() 863 app->dev = dev; mrp_init_applicant() 864 app->app = appl; mrp_init_applicant() 865 app->mad = RB_ROOT; mrp_init_applicant() 866 spin_lock_init(&app->lock); mrp_init_applicant() 867 skb_queue_head_init(&app->queue); mrp_init_applicant() 868 rcu_assign_pointer(dev->mrp_port->applicants[appl->type], app); mrp_init_applicant() 869 setup_timer(&app->join_timer, mrp_join_timer, (unsigned long)app); mrp_init_applicant() 870 mrp_join_timer_arm(app); mrp_init_applicant() 871 setup_timer(&app->periodic_timer, mrp_periodic_timer, mrp_init_applicant() 872 (unsigned long)app); mrp_init_applicant() 873 mrp_periodic_timer_arm(app); mrp_init_applicant() 877 kfree(app); mrp_init_applicant() 888 struct mrp_applicant *app = rtnl_dereference( mrp_uninit_applicant() local 898 del_timer_sync(&app->join_timer); mrp_uninit_applicant() 899 del_timer_sync(&app->periodic_timer); mrp_uninit_applicant() 901 spin_lock_bh(&app->lock); mrp_uninit_applicant() 902 mrp_mad_event(app, MRP_EVENT_TX); mrp_uninit_applicant() 903 mrp_pdu_queue(app); mrp_uninit_applicant() 904 spin_unlock_bh(&app->lock); mrp_uninit_applicant() 906 mrp_queue_xmit(app); mrp_uninit_applicant() 909 kfree_rcu(app, rcu); mrp_uninit_applicant()
|
/linux-4.1.27/net/netfilter/ipvs/ |
H A D | ip_vs_app.c | 50 static inline int ip_vs_app_get(struct ip_vs_app *app) ip_vs_app_get() argument 52 return try_module_get(app->module); ip_vs_app_get() 56 static inline void ip_vs_app_put(struct ip_vs_app *app) ip_vs_app_put() argument 58 module_put(app->module); ip_vs_app_put() 75 * Allocate/initialize app incarnation and register it in proto apps. 78 ip_vs_app_inc_new(struct net *net, struct ip_vs_app *app, __u16 proto, ip_vs_app_inc_new() argument 91 inc = kmemdup(app, sizeof(*inc), GFP_KERNEL); ip_vs_app_inc_new() 96 inc->app = app; ip_vs_app_inc_new() 100 if (app->timeouts) { ip_vs_app_inc_new() 102 ip_vs_create_timeout_table(app->timeouts, ip_vs_app_inc_new() 103 app->timeouts_size); ip_vs_app_inc_new() 114 list_add(&inc->a_list, &app->incs_list); ip_vs_app_inc_new() 127 * Release app incarnation 150 * Get reference to app inc (only called from softirq) 157 result = ip_vs_app_get(inc->app); ip_vs_app_inc_get() 165 * Put the app inc (only called from timer or net softirq) 170 ip_vs_app_put(inc->app); ip_vs_app_inc_put() 178 register_ip_vs_app_inc(struct net *net, struct ip_vs_app *app, __u16 proto, register_ip_vs_app_inc() argument 185 result = ip_vs_app_inc_new(net, app, proto, port); register_ip_vs_app_inc() 194 struct ip_vs_app *register_ip_vs_app(struct net *net, struct ip_vs_app *app) register_ip_vs_app() argument 206 if (!strcmp(app->name, a->name)) { register_ip_vs_app() 211 a = kmemdup(app, sizeof(*app), GFP_KERNEL); register_ip_vs_app() 230 * We are sure there are no app incarnations attached to services 233 void unregister_ip_vs_app(struct net *net, struct ip_vs_app *app) unregister_ip_vs_app() argument 244 if (app && strcmp(app->name, a->name)) unregister_ip_vs_app() 276 struct ip_vs_app *inc = cp->app; ip_vs_unbind_app() 286 cp->app = NULL; ip_vs_unbind_app() 366 struct ip_vs_app *app) app_tcp_pkt_out() 394 if (app->pkt_out == NULL) app_tcp_pkt_out() 397 if (!app->pkt_out(app, cp, skb, &diff)) app_tcp_pkt_out() 417 struct ip_vs_app *app; ip_vs_app_pkt_out() local 423 if ((app = cp->app) == NULL) ip_vs_app_pkt_out() 428 return app_tcp_pkt_out(cp, skb, app); ip_vs_app_pkt_out() 433 if (app->pkt_out == NULL) ip_vs_app_pkt_out() 436 return app->pkt_out(app, cp, skb, NULL); ip_vs_app_pkt_out() 441 struct ip_vs_app *app) app_tcp_pkt_in() 469 if (app->pkt_in == NULL) app_tcp_pkt_in() 472 if (!app->pkt_in(app, cp, skb, &diff)) app_tcp_pkt_in() 492 struct ip_vs_app *app; ip_vs_app_pkt_in() local 498 if ((app = cp->app) == NULL) ip_vs_app_pkt_in() 503 return app_tcp_pkt_in(cp, skb, app); ip_vs_app_pkt_in() 508 if (app->pkt_in == NULL) ip_vs_app_pkt_in() 511 return app->pkt_in(app, cp, skb, NULL); ip_vs_app_pkt_in() 522 struct ip_vs_app *app, *inc; ip_vs_app_idx() local 524 list_for_each_entry(app, &ipvs->app_list, a_list) { ip_vs_app_idx() 525 list_for_each_entry(inc, &app->incs_list, a_list) { ip_vs_app_idx() 546 struct ip_vs_app *inc, *app; ip_vs_app_seq_next() local 556 app = inc->app; ip_vs_app_seq_next() 558 if ((e = inc->a_list.next) != &app->incs_list) ip_vs_app_seq_next() 562 for (e = app->a_list.next; e != &ipvs->app_list; e = e->next) { ip_vs_app_seq_next() 563 app = list_entry(e, struct ip_vs_app, a_list); ip_vs_app_seq_next() 564 list_for_each_entry(inc, &app->incs_list, a_list) { ip_vs_app_seq_next() 365 app_tcp_pkt_out(struct ip_vs_conn *cp, struct sk_buff *skb, struct ip_vs_app *app) app_tcp_pkt_out() argument 440 app_tcp_pkt_in(struct ip_vs_conn *cp, struct sk_buff *skb, struct ip_vs_app *app) app_tcp_pkt_in() argument
|
H A D | ip_vs_ftp.c | 66 ip_vs_ftp_init_conn(struct ip_vs_app *app, struct ip_vs_conn *cp) ip_vs_ftp_init_conn() argument 75 ip_vs_ftp_done_conn(struct ip_vs_app *app, struct ip_vs_conn *cp) ip_vs_ftp_done_conn() argument 169 static int ip_vs_ftp_out(struct ip_vs_app *app, struct ip_vs_conn *cp, ip_vs_ftp_out() argument 313 static int ip_vs_ftp_in(struct ip_vs_app *app, struct ip_vs_conn *cp, ip_vs_ftp_in() argument 444 struct ip_vs_app *app; __ip_vs_ftp_init() local 450 app = register_ip_vs_app(net, &ip_vs_ftp); __ip_vs_ftp_init() 451 if (IS_ERR(app)) __ip_vs_ftp_init() 452 return PTR_ERR(app); __ip_vs_ftp_init() 457 ret = register_ip_vs_app_inc(net, app, app->protocol, ports[i]); __ip_vs_ftp_init() 461 app->name, i, ports[i]); __ip_vs_ftp_init()
|
H A D | ip_vs_proto_udp.c | 145 if (unlikely(cp->app != NULL)) { udp_snat_handler() 179 skb->ip_summed = (cp->app && pp->csum_check) ? udp_snat_handler() 228 if (unlikely(cp->app != NULL)) { udp_dnat_handler() 263 skb->ip_summed = (cp->app && pp->csum_check) ? udp_dnat_handler() 393 /* Default binding: bind app only for NAT */ udp_app_conn_bind() 408 "%s:%u to app %s on port %u\n", udp_app_conn_bind() 416 cp->app = inc; udp_app_conn_bind()
|
H A D | ip_vs_proto_tcp.c | 149 if (unlikely(cp->app != NULL)) { tcp_snat_handler() 179 skb->ip_summed = (cp->app && pp->csum_check) ? tcp_snat_handler() 227 if (unlikely(cp->app != NULL)) { tcp_dnat_handler() 262 skb->ip_summed = (cp->app && pp->csum_check) ? tcp_dnat_handler() 453 ** or make it per-service or per-app because it is valid tcp_timeout_change() 617 /* Default binding: bind app only for NAT */ tcp_app_conn_bind() 632 "%s:%u to app %s on port %u\n", tcp_app_conn_bind() 640 cp->app = inc; tcp_app_conn_bind()
|
H A D | ip_vs_proto_sctp.c | 95 if (unlikely(cp->app != NULL)) { sctp_snat_handler() 142 if (unlikely(cp->app != NULL)) { sctp_dnat_handler() 516 /* Default binding: bind app only for NAT */ sctp_app_conn_bind() 530 "%s:%u to app %s on port %u\n", sctp_app_conn_bind() 537 cp->app = inc; sctp_app_conn_bind()
|
H A D | ip_vs_proto.c | 79 atomic_set(&pd->appcnt, 0); /* Init app counter */ register_ip_vs_proto_netns()
|
H A D | ip_vs_nfct.c | 101 if (cp->app && nf_ct_protonum(ct) == IPPROTO_TCP && ip_vs_update_conntrack()
|
H A D | ip_vs_conn.c | 656 if (cp->app) ip_vs_try_bind_dest() 831 if (unlikely(cp->app != NULL)) ip_vs_conn_expire() 928 cp->app = NULL; ip_vs_conn_new()
|
/linux-4.1.27/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_dcb_nl.c | 189 prio = dcbxcfg->app[i].priority; i40e_dcbnl_set_all() 194 sapp.selector = dcbxcfg->app[i].selector; i40e_dcbnl_set_all() 195 sapp.protocol = dcbxcfg->app[i].protocolid; i40e_dcbnl_set_all() 208 * @app: APP to delete 214 struct i40e_dcb_app_priority_table *app) i40e_dcbnl_vsi_del_app() 222 sapp.selector = app->selector; i40e_dcbnl_vsi_del_app() 223 sapp.protocol = app->protocolid; i40e_dcbnl_vsi_del_app() 224 sapp.priority = app->priority; i40e_dcbnl_vsi_del_app() 231 * @app: APP to delete 236 struct i40e_dcb_app_priority_table *app) i40e_dcbnl_del_app() 241 err = i40e_dcbnl_vsi_del_app(pf->vsi[v], app); i40e_dcbnl_del_app() 243 dev_info(&pf->pdev->dev, "%s: Failed deleting app for VSI seid=%d err=%d sel=%d proto=0x%x prio=%d\n", i40e_dcbnl_del_app() 245 err, app->selector, i40e_dcbnl_del_app() 246 app->protocolid, app->priority); i40e_dcbnl_del_app() 254 * @app: APP to search for 259 struct i40e_dcb_app_priority_table *app) i40e_dcbnl_find_app() 264 if (app->selector == cfg->app[i].selector && i40e_dcbnl_find_app() 265 app->protocolid == cfg->app[i].protocolid && i40e_dcbnl_find_app() 266 app->priority == cfg->app[i].priority) i40e_dcbnl_find_app() 286 struct i40e_dcb_app_priority_table app; i40e_dcbnl_flush_apps() local 294 app = old_cfg->app[i]; i40e_dcbnl_flush_apps() 296 if (!i40e_dcbnl_find_app(new_cfg, &app)) i40e_dcbnl_flush_apps() 297 i40e_dcbnl_del_app(pf, &app); i40e_dcbnl_flush_apps() 213 i40e_dcbnl_vsi_del_app(struct i40e_vsi *vsi, struct i40e_dcb_app_priority_table *app) i40e_dcbnl_vsi_del_app() argument 235 i40e_dcbnl_del_app(struct i40e_pf *pf, struct i40e_dcb_app_priority_table *app) i40e_dcbnl_del_app() argument 258 i40e_dcbnl_find_app(struct i40e_dcbx_config *cfg, struct i40e_dcb_app_priority_table *app) i40e_dcbnl_find_app() argument
|
H A D | i40e_dcb.c | 241 dcbcfg->app[i].priority = (u8)((buf[offset] & i40e_parse_ieee_app_tlv() 244 dcbcfg->app[i].selector = (u8)((buf[offset] & i40e_parse_ieee_app_tlv() 247 dcbcfg->app[i].protocolid = (buf[offset + 1] << 0x8) | i40e_parse_ieee_app_tlv() 249 /* Move to next app */ i40e_parse_ieee_app_tlv() 465 dcbcfg->app[0].priority = i40e_cee_to_dcb_v1_config() 468 dcbcfg->app[0].selector = I40E_APP_SEL_ETHTYPE; i40e_cee_to_dcb_v1_config() 469 dcbcfg->app[0].protocolid = I40E_APP_PROTOID_FCOE; i40e_cee_to_dcb_v1_config() 472 dcbcfg->app[1].priority = i40e_cee_to_dcb_v1_config() 475 dcbcfg->app[1].selector = I40E_APP_SEL_TCPIP; i40e_cee_to_dcb_v1_config() 476 dcbcfg->app[1].protocolid = I40E_APP_PROTOID_ISCSI; i40e_cee_to_dcb_v1_config() 479 dcbcfg->app[2].priority = i40e_cee_to_dcb_v1_config() 482 dcbcfg->app[2].selector = I40E_APP_SEL_ETHTYPE; i40e_cee_to_dcb_v1_config() 483 dcbcfg->app[2].protocolid = I40E_APP_PROTOID_FIP; i40e_cee_to_dcb_v1_config() 545 dcbcfg->app[0].priority = i40e_cee_to_dcb_config() 548 dcbcfg->app[0].selector = I40E_APP_SEL_ETHTYPE; i40e_cee_to_dcb_config() 549 dcbcfg->app[0].protocolid = I40E_APP_PROTOID_FCOE; i40e_cee_to_dcb_config() 552 dcbcfg->app[1].priority = i40e_cee_to_dcb_config() 555 dcbcfg->app[1].selector = I40E_APP_SEL_TCPIP; i40e_cee_to_dcb_config() 556 dcbcfg->app[1].protocolid = I40E_APP_PROTOID_ISCSI; i40e_cee_to_dcb_config() 559 dcbcfg->app[2].priority = i40e_cee_to_dcb_config() 562 dcbcfg->app[2].selector = I40E_APP_SEL_ETHTYPE; i40e_cee_to_dcb_config() 563 dcbcfg->app[2].protocolid = I40E_APP_PROTOID_FIP; i40e_cee_to_dcb_config()
|
H A D | i40e_fcoe.c | 336 struct i40e_dcb_app_priority_table app; i40e_get_fcoe_tc_map() local 344 app = dcbcfg->app[i]; i40e_get_fcoe_tc_map() 345 if (app.selector == IEEE_8021QAZ_APP_SEL_ETHERTYPE && i40e_get_fcoe_tc_map() 346 app.protocolid == ETH_P_FCOE) { i40e_get_fcoe_tc_map() 347 tc = dcbcfg->etscfg.prioritytable[app.priority]; i40e_get_fcoe_tc_map()
|
H A D | i40e_debugfs.c | 1364 i, cfg->app[i].priority, i40e_dbg_command_write() 1365 cfg->app[i].selector, i40e_dbg_command_write() 1366 cfg->app[i].protocolid); i40e_dbg_command_write() 1396 i, r_cfg->app[i].priority, i40e_dbg_command_write() 1397 r_cfg->app[i].selector, i40e_dbg_command_write() 1398 r_cfg->app[i].protocolid); i40e_dbg_command_write()
|
H A D | i40e_type.h | 429 struct i40e_dcb_app_priority_table app[I40E_DCBX_MAX_APPS]; member in struct:i40e_dcbx_config
|
H A D | i40e_main.c | 4059 struct i40e_dcb_app_priority_table app; i40e_get_iscsi_tc_map() local 4067 app = dcbcfg->app[i]; i40e_get_iscsi_tc_map() 4068 if (app.selector == I40E_APP_SEL_TCPIP && i40e_get_iscsi_tc_map() 4069 app.protocolid == I40E_APP_PROTOID_ISCSI) { i40e_get_iscsi_tc_map() 4070 tc = dcbcfg->etscfg.prioritytable[app.priority]; i40e_get_iscsi_tc_map() 5189 if (memcmp(&new_cfg->app, i40e_dcb_need_reconfig() 5190 &old_cfg->app, i40e_dcb_need_reconfig() 5191 sizeof(new_cfg->app))) { i40e_dcb_need_reconfig()
|
/linux-4.1.27/include/net/ |
H A D | garp.h | 99 struct garp_application *app; member in struct:garp_applicant 115 int garp_register_application(struct garp_application *app); 116 void garp_unregister_application(struct garp_application *app); 118 int garp_init_applicant(struct net_device *dev, struct garp_application *app); 120 struct garp_application *app); 123 const struct garp_application *app, const void *data, 126 const struct garp_application *app,
|
H A D | mrp.h | 112 struct mrp_application *app; member in struct:mrp_applicant 129 int mrp_register_application(struct mrp_application *app); 130 void mrp_unregister_application(struct mrp_application *app); 132 int mrp_init_applicant(struct net_device *dev, struct mrp_application *app); 133 void mrp_uninit_applicant(struct net_device *dev, struct mrp_application *app); 136 const struct mrp_application *app, 139 const struct mrp_application *app,
|
H A D | ip_vs.h | 495 atomic_t appcnt; /* counter of proto app incs. */ 568 struct ip_vs_app *app; /* bound ip_vs_app object */ member in struct:ip_vs_conn 771 /* The application module object (a.k.a. app incarnation) */ 773 struct list_head a_list; /* member in app list */ 781 struct list_head p_list; /* member in proto app list */ 782 struct ip_vs_app *app; /* its real application */ member in struct:ip_vs_app 818 int (*conn_schedule)(struct sk_buff *skb, struct ip_vs_app *app, 822 (*conn_in_get)(const struct sk_buff *skb, struct ip_vs_app *app, 826 (*conn_out_get)(const struct sk_buff *skb, struct ip_vs_app *app, 831 struct ip_vs_app *app); 833 void (*timeout_change)(struct ip_vs_app *app, int flags); 1303 struct ip_vs_app *register_ip_vs_app(struct net *net, struct ip_vs_app *app); 1304 void unregister_ip_vs_app(struct net *net, struct ip_vs_app *app); 1307 int register_ip_vs_app_inc(struct net *net, struct ip_vs_app *app, __u16 proto,
|
H A D | dcbnl.h | 26 struct dcb_app app; member in struct:dcb_app_type
|
/linux-4.1.27/net/bluetooth/cmtp/ |
H A D | capi.c | 75 struct cmtp_application *app = kzalloc(sizeof(*app), GFP_KERNEL); cmtp_application_add() local 77 BT_DBG("session %p application %p appl %d", session, app, appl); cmtp_application_add() 79 if (!app) cmtp_application_add() 82 app->state = BT_OPEN; cmtp_application_add() 83 app->appl = appl; cmtp_application_add() 85 list_add_tail(&app->list, &session->applications); cmtp_application_add() 87 return app; cmtp_application_add() 90 static void cmtp_application_del(struct cmtp_session *session, struct cmtp_application *app) cmtp_application_del() argument 92 BT_DBG("session %p application %p", session, app); cmtp_application_del() 94 if (app) { cmtp_application_del() 95 list_del(&app->list); cmtp_application_del() 96 kfree(app); cmtp_application_del() 102 struct cmtp_application *app; cmtp_application_get() local 106 app = list_entry(p, struct cmtp_application, list); cmtp_application_get() 109 if (app->msgnum == value) cmtp_application_get() 110 return app; cmtp_application_get() 113 if (app->appl == value) cmtp_application_get() 114 return app; cmtp_application_get() 117 if (app->mapping == value) cmtp_application_get() 118 return app; cmtp_application_get() 513 struct cmtp_application *app; cmtp_proc_show() local 521 app = list_entry(p, struct cmtp_application, list); cmtp_proc_show() 522 seq_printf(m, "appl %d -> %d\n", app->appl, app->mapping); cmtp_proc_show()
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_dcb.c | 68 struct dcb_app app; cxgb4_dcb_cleanup_apps() local 72 app.priority = 0; cxgb4_dcb_cleanup_apps() 75 /* Check if app list is exhausted */ cxgb4_dcb_cleanup_apps() 79 app.protocol = dcb->app_priority[i].protocolid; cxgb4_dcb_cleanup_apps() 82 app.priority = dcb->app_priority[i].user_prio_map; cxgb4_dcb_cleanup_apps() 83 app.selector = dcb->app_priority[i].sel_field + 1; cxgb4_dcb_cleanup_apps() 84 err = dcb_ieee_delapp(dev, &app); cxgb4_dcb_cleanup_apps() 86 app.selector = !!(dcb->app_priority[i].sel_field); cxgb4_dcb_cleanup_apps() 87 err = dcb_setapp(dev, &app); cxgb4_dcb_cleanup_apps() 93 dcb_ver_array[dcb->dcb_version], app.selector, cxgb4_dcb_cleanup_apps() 94 app.protocol, -err); cxgb4_dcb_cleanup_apps() 335 struct dcb_app app = { cxgb4_dcb_handle_fw_update() local 341 * when using app selector cxgb4_dcb_handle_fw_update() 344 app.selector = (fwap->sel_field + 1); cxgb4_dcb_handle_fw_update() 345 app.priority = ffs(fwap->user_prio_map) - 1; cxgb4_dcb_handle_fw_update() 346 err = dcb_ieee_setapp(dev, &app); cxgb4_dcb_handle_fw_update() 350 app.selector = !!(fwap->sel_field); cxgb4_dcb_handle_fw_update() 351 app.priority = fwap->user_prio_map; cxgb4_dcb_handle_fw_update() 352 err = dcb_setapp(dev, &app); cxgb4_dcb_handle_fw_update() 358 app.selector, app.protocol, app.priority, -err); cxgb4_dcb_handle_fw_update() 784 /* exhausted app list */ __cxgb4_getapp() 825 dev_err(adap->pdev_dev, "DCB app table read failed with %d\n", __cxgb4_setapp() 830 /* overwrite existing app table */ __cxgb4_setapp() 841 dev_err(adap->pdev_dev, "DCB app table full\n"); __cxgb4_setapp() 845 /* write out new app table entry */ __cxgb4_setapp() 858 dev_err(adap->pdev_dev, "DCB app table write failed with %d\n", __cxgb4_setapp() 871 struct dcb_app app = { cxgb4_setapp() local 887 return dcb_setapp(dev, &app); cxgb4_setapp() 992 static int cxgb4_ieee_getapp(struct net_device *dev, struct dcb_app *app) cxgb4_ieee_getapp() argument 998 if (!(app->selector && app->protocol)) cxgb4_ieee_getapp() 1002 prio = __cxgb4_getapp(dev, app->selector - 1, app->protocol, 0); cxgb4_ieee_getapp() 1005 prio = dcb_ieee_getapp_mask(dev, app); cxgb4_ieee_getapp() 1007 app->priority = ffs(prio) - 1; cxgb4_ieee_getapp() 1014 static int cxgb4_ieee_setapp(struct net_device *dev, struct dcb_app *app) cxgb4_ieee_setapp() argument 1020 if (!(app->selector && app->protocol)) cxgb4_ieee_setapp() 1023 if (!(app->selector > IEEE_8021QAZ_APP_SEL_ETHERTYPE && cxgb4_ieee_setapp() 1024 app->selector < IEEE_8021QAZ_APP_SEL_ANY)) cxgb4_ieee_setapp() 1028 ret = __cxgb4_setapp(dev, app->selector - 1, app->protocol, cxgb4_ieee_setapp() 1029 (1 << app->priority)); cxgb4_ieee_setapp() 1033 return dcb_ieee_setapp(dev, app); cxgb4_ieee_setapp() 1097 dev_err(adap->pdev_dev, "DCB app table read failed with %d\n", cxgb4_getpeer_app() 1127 dev_err(adap->pdev_dev, "DCB app table read failed with %d\n", cxgb4_getpeerapp_tbl()
|
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_dcb.c | 89 u32 app[QLC_DCB_MAX_APP]; member in struct:qlcnic_dcb_param 103 __le32 app[QLC_DCB_MAX_APP]; member in struct:qlcnic_82xx_dcb_param_mbx_le 158 struct qlcnic_dcb_app app[QLC_DCB_MAX_APP]; member in struct:qlcnic_dcb_cee 480 rsp.app[i] = le32_to_cpu(prsp_le->app[i]); qlcnic_82xx_dcb_query_cee_param() 612 each->app[i] = cmd.rsp.arg[i + k]; qlcnic_83xx_dcb_query_cee_param() 715 struct qlcnic_dcb_app *app; qlcnic_dcb_fill_cee_app_params() local 721 app = &type->app[i]; qlcnic_dcb_fill_cee_app_params() 722 app->valid = true; qlcnic_dcb_fill_cee_app_params() 725 app->selector = QLC_DCB_GET_SELECTOR_APP(each->app[i]) - 1; qlcnic_dcb_fill_cee_app_params() 726 new_app.selector = app->selector; qlcnic_dcb_fill_cee_app_params() 727 app->protocol = QLC_DCB_GET_PROTO_ID_APP(each->app[i]); qlcnic_dcb_fill_cee_app_params() 728 new_app.protocol = app->protocol; qlcnic_dcb_fill_cee_app_params() 729 map = qlcnic_dcb_get_prio_map_app(adapter, each->app[i]); qlcnic_dcb_fill_cee_app_params() 735 app->priority = cnt; qlcnic_dcb_fill_cee_app_params() 932 struct dcb_app app = { qlcnic_dcb_get_app() local 940 return dcb_getapp(netdev, &app); qlcnic_dcb_get_app() 1032 if (peer->app[i].valid) qlcnic_dcb_peer_app_info() 1044 struct qlcnic_dcb_app *app; qlcnic_dcb_peer_app_table() local 1053 app = &peer->app[i]; qlcnic_dcb_peer_app_table() 1054 if (!app->valid) qlcnic_dcb_peer_app_table() 1057 table[j].selector = app->selector; qlcnic_dcb_peer_app_table() 1058 table[j].priority = app->priority; qlcnic_dcb_peer_app_table() 1059 table[j++].protocol = app->protocol; qlcnic_dcb_peer_app_table()
|
/linux-4.1.27/net/dcb/ |
H A D | dcbnl.c | 482 struct dcb_app app = { dcbnl_getapp() local 486 up = dcb_getapp(netdev, &app); dcbnl_getapp() 550 struct dcb_app app; dcbnl_setapp() local 551 app.selector = idtype; dcbnl_setapp() 552 app.protocol = id; dcbnl_setapp() 553 app.priority = up; dcbnl_setapp() 554 ret = dcb_setapp(netdev, &app); dcbnl_setapp() 991 * retrieve the peer app configuration form the driver. If the driver dcbnl_build_peer_app() 1005 struct nlattr *app; dcbnl_build_peer_app() local 1013 app = nla_nest_start(skb, app_nested_type); dcbnl_build_peer_app() 1014 if (!app) dcbnl_build_peer_app() 1026 nla_nest_end(skb, app); dcbnl_build_peer_app() 1038 struct nlattr *ieee, *app; dcbnl_ieee_fill() local 1107 app = nla_nest_start(skb, DCB_ATTR_IEEE_APP_TABLE); dcbnl_ieee_fill() 1108 if (!app) dcbnl_ieee_fill() 1114 err = nla_put(skb, DCB_ATTR_IEEE_APP, sizeof(itr->app), dcbnl_ieee_fill() 1115 &itr->app); dcbnl_ieee_fill() 1129 nla_nest_end(skb, app); dcbnl_ieee_fill() 1224 struct nlattr *cee, *app; dcbnl_cee_fill() local 1264 /* local app */ dcbnl_cee_fill() 1266 app = nla_nest_start(skb, DCB_ATTR_CEE_APP_TABLE); dcbnl_cee_fill() 1267 if (!app) dcbnl_cee_fill() 1278 itr->app.selector); dcbnl_cee_fill() 1283 itr->app.protocol); dcbnl_cee_fill() 1288 itr->app.priority); dcbnl_cee_fill() 1295 nla_nest_end(skb, app); dcbnl_cee_fill() 1760 static struct dcb_app_type *dcb_app_lookup(const struct dcb_app *app, dcb_app_lookup() argument 1766 if (itr->app.selector == app->selector && dcb_app_lookup() 1767 itr->app.protocol == app->protocol && dcb_app_lookup() 1769 (!prio || itr->app.priority == prio)) dcb_app_lookup() 1776 static int dcb_app_add(const struct dcb_app *app, int ifindex) dcb_app_add() argument 1784 memcpy(&entry->app, app, sizeof(*app)); dcb_app_add() 1798 u8 dcb_getapp(struct net_device *dev, struct dcb_app *app) dcb_getapp() argument 1804 if ((itr = dcb_app_lookup(app, dev->ifindex, 0))) dcb_getapp() 1805 prio = itr->app.priority; dcb_getapp() 1813 * dcb_setapp - add CEE dcb application data to app list 1816 * removes applications from the app list if the priority is 1826 memcpy(&event.app, new, sizeof(event.app)); dcb_setapp() 1834 itr->app.priority = new->priority; dcb_setapp() 1859 u8 dcb_ieee_getapp_mask(struct net_device *dev, struct dcb_app *app) dcb_ieee_getapp_mask() argument 1865 if ((itr = dcb_app_lookup(app, dev->ifindex, 0))) dcb_ieee_getapp_mask() 1866 prio |= 1 << itr->app.priority; dcb_ieee_getapp_mask() 1874 * dcb_ieee_setapp - add IEEE dcb application data to app list 1887 memcpy(&event.app, new, sizeof(event.app)); dcb_ieee_setapp() 1919 memcpy(&event.app, del, sizeof(event.app)); dcb_ieee_delapp() 1940 struct dcb_app_type *app; dcb_flushapp() local 1944 list_for_each_entry_safe(app, tmp, &dcb_app_list, list) { dcb_flushapp() 1945 list_del(&app->list); dcb_flushapp() 1946 kfree(app); dcb_flushapp()
|
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_dcb_nl.c | 59 struct dcb_app app = { ixgbe_copy_dcb_cfg() local 63 u8 up = dcb_getapp(adapter->netdev, &app); ixgbe_copy_dcb_cfg() 394 struct dcb_app app = { ixgbe_dcbnl_set_all() local 398 u8 up = dcb_getapp(netdev, &app); ixgbe_dcbnl_set_all() 501 struct dcb_app app = { ixgbe_dcbnl_getapp() local 509 return dcb_getapp(netdev, &app); ixgbe_dcbnl_getapp() 643 struct dcb_app *app) ixgbe_dcbnl_ieee_setapp() 651 err = dcb_ieee_setapp(dev, app); ixgbe_dcbnl_ieee_setapp() 656 if (app->selector == IEEE_8021QAZ_APP_SEL_ETHERTYPE && ixgbe_dcbnl_ieee_setapp() 657 app->protocol == ETH_P_FCOE) { ixgbe_dcbnl_ieee_setapp() 658 u8 app_mask = dcb_ieee_getapp_mask(dev, app); ixgbe_dcbnl_ieee_setapp() 663 adapter->fcoe.up = app->priority; ixgbe_dcbnl_ieee_setapp() 669 if (app->selector == IEEE_8021QAZ_APP_SEL_ETHERTYPE && ixgbe_dcbnl_ieee_setapp() 670 app->protocol == 0) { ixgbe_dcbnl_ieee_setapp() 673 adapter->default_up = app->priority; ixgbe_dcbnl_ieee_setapp() 680 app->priority, vf); ixgbe_dcbnl_ieee_setapp() 688 struct dcb_app *app) ixgbe_dcbnl_ieee_delapp() 696 err = dcb_ieee_delapp(dev, app); ixgbe_dcbnl_ieee_delapp() 699 if (!err && app->selector == IEEE_8021QAZ_APP_SEL_ETHERTYPE && ixgbe_dcbnl_ieee_delapp() 700 app->protocol == ETH_P_FCOE) { ixgbe_dcbnl_ieee_delapp() 701 u8 app_mask = dcb_ieee_getapp_mask(dev, app); ixgbe_dcbnl_ieee_delapp() 712 if (app->selector == IEEE_8021QAZ_APP_SEL_ETHERTYPE && ixgbe_dcbnl_ieee_delapp() 713 app->protocol == 0 && adapter->default_up == app->priority) { ixgbe_dcbnl_ieee_delapp() 715 long unsigned int app_mask = dcb_ieee_getapp_mask(dev, app); ixgbe_dcbnl_ieee_delapp() 642 ixgbe_dcbnl_ieee_setapp(struct net_device *dev, struct dcb_app *app) ixgbe_dcbnl_ieee_setapp() argument 687 ixgbe_dcbnl_ieee_delapp(struct net_device *dev, struct dcb_app *app) ixgbe_dcbnl_ieee_delapp() argument
|
H A D | ixgbe_main.c | 6283 struct dcb_app app = { ixgbe_update_default_up() local 6290 up = dcb_ieee_getapp_mask(netdev, &app); ixgbe_update_default_up()
|
/linux-4.1.27/drivers/net/can/softing/ |
H A D | softing_cs.c | 48 .app = {0x0010, 0x0d0000, fw_dir "cancard.bin",}, 60 .app = {0x0010, 0x0d0000, fw_dir "cancard.bin",}, 72 .app = {0x0010, 0x0d0000, fw_dir "cansja.bin",}, 84 .app = {0x0010, 0x0d0000, fw_dir "cancrd2.bin",}, 96 .app = {0x0010, 0x0d0000, fw_dir "cancard.bin",}, 108 .app = {0x0010, 0x0d0000, fw_dir "cansja.bin",}, 120 .app = {0x0010, 0x0d0000, fw_dir "cancrd2.bin",}, 132 .app = {0x0010, 0x0d0000, fw_dir "cancard.bin",}, 144 .app = {0x0010, 0x0d0000, fw_dir "cancrd2.bin",},
|
H A D | softing_platform.h | 31 } boot, load, app; member in struct:softing_platform_data
|
H A D | softing_fw.c | 293 memcpy_toio(&card->dpram[card->pdat->app.offs], dat, len); softing_load_app_fw() 294 iowrite32(card->pdat->app.offs + card->pdat->app.addr, softing_load_app_fw() 299 ret = softing_bootloader_command(card, 1, "loading app."); softing_load_app_fw() 316 ret = softing_bootloader_command(card, 3, "start app."); softing_load_app_fw()
|
H A D | softing_main.c | 535 ret = softing_load_app_fw(card->pdat->app.fw, card); softing_card_boot() 712 DEV_ATTR_RO_STR(firmware, pdat->app.fw);
|
/linux-4.1.27/arch/s390/include/uapi/asm/ |
H A D | monwriter.h | 18 /* the header the app uses in its write() data */
|
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_dcb.c | 151 DP(BNX2X_MSG_DCB, "dcbx_features.app.default_pri %x\n", bnx2x_dump_dcbx_drv_param() 152 features->app.default_pri); bnx2x_dump_dcbx_drv_param() 153 DP(BNX2X_MSG_DCB, "dcbx_features.app.tc_supported %x\n", bnx2x_dump_dcbx_drv_param() 154 features->app.tc_supported); bnx2x_dump_dcbx_drv_param() 155 DP(BNX2X_MSG_DCB, "dcbx_features.app.enabled %x\n", bnx2x_dump_dcbx_drv_param() 156 features->app.enabled); bnx2x_dump_dcbx_drv_param() 159 "dcbx_features.app.app_pri_tbl[%x].app_id %x\n", bnx2x_dump_dcbx_drv_param() 160 i, features->app.app_pri_tbl[i].app_id); bnx2x_dump_dcbx_drv_param() 162 "dcbx_features.app.app_pri_tbl[%x].pri_bitmap %x\n", bnx2x_dump_dcbx_drv_param() 163 i, features->app.app_pri_tbl[i].pri_bitmap); bnx2x_dump_dcbx_drv_param() 165 "dcbx_features.app.app_pri_tbl[%x].appBitfield %x\n", bnx2x_dump_dcbx_drv_param() 166 i, features->app.app_pri_tbl[i].appBitfield); bnx2x_dump_dcbx_drv_param() 177 u32 *ttp = bp->dcbx_port_params.app.traffic_type_priority; bnx2x_dcbx_get_ap_priority() 192 struct dcbx_app_priority_feature *app, bnx2x_dcbx_get_ap_feature() 195 u32 *ttp = bp->dcbx_port_params.app.traffic_type_priority; bnx2x_dcbx_get_ap_feature() 205 if (app->enabled && bnx2x_dcbx_get_ap_feature() 209 bp->dcbx_port_params.app.enabled = true; bnx2x_dcbx_get_ap_feature() 214 if (app->default_pri < MAX_PFC_PRIORITIES) bnx2x_dcbx_get_ap_feature() 215 ttp[LLFC_TRAFFIC_TYPE_NW] = app->default_pri; bnx2x_dcbx_get_ap_feature() 219 app->app_pri_tbl; bnx2x_dcbx_get_ap_feature() 237 bp->dcbx_port_params.app.enabled = false; bnx2x_dcbx_get_ap_feature() 268 if (bp->dcbx_port_params.app.enabled && ets->enabled && bnx2x_dcbx_get_ets_feature() 303 if (bp->dcbx_port_params.app.enabled && pfc->enabled && bnx2x_dcbx_get_pfc_feature() 321 u32 *ttp = bp->dcbx_port_params.app.traffic_type_priority; bnx2x_dcbx_map_nw() 346 bnx2x_dcbx_get_ap_feature(bp, &features->app, error); bnx2x_get_dcbx_drv_param() 676 &bp->dcbx_local_feat.app.app_pri_tbl[i]; bnx2x_dcbnl_update_applist() 683 struct dcb_app app; bnx2x_dcbnl_update_applist() local 684 app.selector = bnx2x_dcbx_dcbnl_app_idtype(ent); bnx2x_dcbnl_update_applist() 685 app.protocol = ent->app_id; bnx2x_dcbnl_update_applist() 686 app.priority = delall ? 0 : up; bnx2x_dcbnl_update_applist() 687 err = dcb_setapp(bp->dev, &app); bnx2x_dcbnl_update_applist() 724 * Delete app tlvs from dcbnl before reading new bnx2x_dcbx_set_params() 749 * Add new app tlvs to dcbnl bnx2x_dcbx_set_params() 898 af->app.app_pri_tbl[traf_type].app_id = bnx2x_dcbx_admin_mib_updated_params() 901 af->app.app_pri_tbl[traf_type].pri_bitmap = bnx2x_dcbx_admin_mib_updated_params() 904 af->app.app_pri_tbl[traf_type].appBitfield = bnx2x_dcbx_admin_mib_updated_params() 907 af->app.app_pri_tbl[traf_type].appBitfield |= bnx2x_dcbx_admin_mib_updated_params() 913 af->app.default_pri = (u8)dp->admin_default_priority; bnx2x_dcbx_admin_mib_updated_params() 1091 u32 *ttp = bp->dcbx_port_params.app.traffic_type_priority; bnx2x_dcbx_get_num_pg_traf_type() 1171 app.traffic_type_priority[i]; bnx2x_dcbx_separate_pauseable_from_non() 1181 app.traffic_type_priority[i]]; bnx2x_dcbx_separate_pauseable_from_non() 1211 u32 *ttp = bp->dcbx_port_params.app.traffic_type_priority; bnx2x_dcbx_2cos_limit_cee_single_pg_to_cos_params() 1309 app.traffic_type_priority[i]; bnx2x_dcbx_2cos_limit_cee_single_pg_to_cos_params() 1509 app.traffic_type_priority[i]; bnx2x_dcbx_2cos_limit_cee_three_pg_to_cos_params() 1511 dcbx_port_params.app.traffic_type_priority[i]]; bnx2x_dcbx_2cos_limit_cee_three_pg_to_cos_params() 1824 u32 *ttp = bp->dcbx_port_params.app.traffic_type_priority; bnx2x_dcbx_fw_struct() 1878 * Add new app tlvs to dcbnl bnx2x_dcbx_pmf_update() 2271 /* iterate over the app entries looking for idtype and idval */ bnx2x_set_admin_app_up() 2291 /* app table is full */ bnx2x_set_admin_app_up() 2395 if (bp->dcbx_local_feat.app.enabled) bnx2x_dcbnl_get_featcfg() 2469 if (bp->dcbx_remote_feat.app.app_pri_tbl[i].appBitfield & bnx2x_peer_appinfo() 2485 &bp->dcbx_remote_feat.app.app_pri_tbl[i]; bnx2x_peer_apptable() 191 bnx2x_dcbx_get_ap_feature(struct bnx2x *bp, struct dcbx_app_priority_feature *app, u32 error) bnx2x_dcbx_get_ap_feature() argument
|
H A D | bnx2x_dcb.h | 64 struct bnx2x_dcbx_app_params app; member in struct:bnx2x_dcbx_port_params
|
H A D | bnx2x_main.c | 3413 struct bnx2x_dcbx_app_params *app = &bp->dcbx_port_params.app; bnx2x_drv_info_fcoe_stat() local 3423 app->traffic_type_priority[LLFC_TRAFFIC_TYPE_FCOE]; bnx2x_drv_info_fcoe_stat() 3515 struct bnx2x_dcbx_app_params *app = &bp->dcbx_port_params.app; bnx2x_drv_info_iscsi_stat() local 3526 app->traffic_type_priority[LLFC_TRAFFIC_TYPE_ISCSI]; bnx2x_drv_info_iscsi_stat() 13582 /* Delete app tlvs from dcbnl */ __bnx2x_remove()
|
H A D | bnx2x_hsi.h | 1862 struct dcbx_app_priority_feature app; member in struct:dcbx_features 2125 * app to the driver through shmem2.
|
/linux-4.1.27/include/linux/ |
H A D | ipc_namespace.h | 90 * Per app minimum openable message queues - 8. This does not map well shm_destroy_orphaned() 92 * basis instead of a per app basis. So, make the default high enough shm_destroy_orphaned() 93 * that no given app should have a hard time opening 8 queues. shm_destroy_orphaned()
|
/linux-4.1.27/include/xen/interface/ |
H A D | callback.h | 45 /* x86/64 hypervisor: Syscall by 64-bit guest app ('64-on-64-on-64'). */ 68 * x86/64 hypervisor: Syscall by 32-bit guest app on AMD CPUs
|
/linux-4.1.27/drivers/media/rc/keymaps/ |
H A D | rc-cinergy.c | 29 { 0x0b, KEY_MEDIA }, /* app */
|
H A D | rc-encore-enltv.c | 21 /* Power button does nothing, neither in Windows app,
|
/linux-4.1.27/drivers/scsi/aic7xxx/aicasm/ |
H A D | Makefile | 15 # Override default kernel CFLAGS. This is a userland app.
|
/linux-4.1.27/drivers/of/ |
H A D | device.c | 222 struct alias_prop *app; of_device_uevent() local 248 list_for_each_entry(app, &aliases_lookup, link) { of_device_uevent() 249 if (dev->of_node == app->np) { of_device_uevent() 251 app->alias); of_device_uevent()
|
H A D | base.c | 1966 struct alias_prop *app; of_alias_get_id() local 1970 list_for_each_entry(app, &aliases_lookup, link) { of_alias_get_id() 1971 if (strcmp(app->stem, stem) != 0) of_alias_get_id() 1974 if (np == app->np) { of_alias_get_id() 1975 id = app->id; of_alias_get_id() 1994 struct alias_prop *app; of_alias_get_highest_id() local 1998 list_for_each_entry(app, &aliases_lookup, link) { of_alias_get_highest_id() 1999 if (strcmp(app->stem, stem) != 0) of_alias_get_highest_id() 2002 if (app->id > id) of_alias_get_highest_id() 2003 id = app->id; of_alias_get_highest_id()
|
/linux-4.1.27/drivers/pci/host/ |
H A D | pci-keystone.h | 35 struct resource app; member in struct:keystone_pcie
|
H A D | pci-keystone-dw.c | 77 return ks_pcie->app.start + MSI_IRQ; ks_dw_pcie_get_msi_addr() 443 writel(ks_pcie->app.start, pp->dbi_base + PCI_BASE_ADDRESS_0); ks_dw_pcie_v3_65_scan_bus() 503 ks_pcie->app = *res; ks_dw_pcie_host_init()
|
/linux-4.1.27/drivers/media/pci/zoran/ |
H A D | zr36050.c | 471 zr36050_write(ptr, ZR050_APP_IDX + 1, 0xe0 + ptr->app.appn); zr36050_init() 473 zr36050_write(ptr, ZR050_APP_IDX + 3, ptr->app.len + 2); zr36050_init() 475 ptr->app.data) + 4; zr36050_init() 533 ((ptr->app.len > 0) ? ZR050_ME_APP : 0) | zr36050_init() 715 struct jpeg_app_marker *app = data; zr36050_control() local 720 *app = ptr->app; zr36050_control() 725 struct jpeg_app_marker *app = data; zr36050_control() local 730 ptr->app = *app; zr36050_control() 842 /* no app/com marker by default */ zr36050_setup() 843 ptr->app.appn = 0; zr36050_setup() 844 ptr->app.len = 0; zr36050_setup()
|
H A D | zr36060.c | 471 zr36060_write(ptr, ZR060_APP_IDX + 1, 0xe0 + ptr->app.appn); zr36060_init() 473 zr36060_write(ptr, ZR060_APP_IDX + 3, ptr->app.len + 2); zr36060_init() 475 ptr->app.data) + 4; zr36060_init() 515 ((ptr->app.len > 0) ? ZR060_MER_App : 0)); zr36060_init() 822 struct jpeg_app_marker *app = data; zr36060_control() local 827 *app = ptr->app; zr36060_control() 832 struct jpeg_app_marker *app = data; zr36060_control() local 837 ptr->app = *app; zr36060_control() 950 /* by default, no COM or APP markers - app should set those */ zr36060_setup() 952 ptr->app.appn = 0; zr36060_setup() 953 ptr->app.len = 0; zr36060_setup()
|
H A D | zr36050.h | 57 /* com/app marker */ 59 struct jpeg_app_marker app; member in struct:zr36050
|
H A D | zr36060.h | 57 /* app/com marker data */ 58 struct jpeg_app_marker app; member in struct:zr36060
|
H A D | zoran_device.c | 986 struct jpeg_app_marker app; zr36057_enable_jpg() local 999 /* set JPEG app/com marker */ zr36057_enable_jpg() 1000 app.appn = zr->jpg_settings.jpg_comp.APPn; zr36057_enable_jpg() 1001 app.len = zr->jpg_settings.jpg_comp.APP_len; zr36057_enable_jpg() 1002 memcpy(app.data, zr->jpg_settings.jpg_comp.APP_data, 60); zr36057_enable_jpg() 1004 sizeof(struct jpeg_app_marker), &app); zr36057_enable_jpg()
|
H A D | videocodec.h | 256 int appn; /* number app segment */
|
/linux-4.1.27/drivers/iio/accel/ |
H A D | mma9551_core.h | 28 /* Reset/Suspend/Clear application app masks */
|
/linux-4.1.27/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-debug.h | 31 #define PVR2_TRACE_TRAP (1 << 3) /* Trap & report app misbehavior */
|
H A D | pvrusb2-v4l2.c | 289 that the actual audio input cannot change behind the app's pvr2_enumaudio()
|
/linux-4.1.27/arch/mips/cavium-octeon/ |
H A D | octeon_boot.h | 84 #define LINUX_APP_BOOT_BLOCK_NAME "linux-app-boot"
|
/linux-4.1.27/tools/testing/selftests/vm/ |
H A D | hugepage-mmap.c | 8 * example, the app is requesting memory of size 256MB that is backed by
|
H A D | hugepage-shm.c | 5 * memory system calls. In this example the app is requesting 256MB of
|
/linux-4.1.27/tools/perf/util/ |
H A D | map.c | 40 return !strncmp(filename, "/data/app-lib", 13) || is_android_lib() 61 if (!strncmp(filename, "/data/app-lib", 13)) { replace_android_lib() 86 char *ndk, *app; replace_android_lib() local 92 app = getenv("APP_PLATFORM"); replace_android_lib() 94 if (!(ndk && app)) replace_android_lib() 98 app_length = strlen(app); replace_android_lib() 118 ndk, app, arch, libname); replace_android_lib()
|
/linux-4.1.27/arch/ia64/include/uapi/asm/ |
H A D | signal.h | 83 * be sure that an app compiled for today's CPUs will continue to run
|
/linux-4.1.27/arch/arm/include/asm/ |
H A D | tls.h | 87 * directly. Expect your app to break set_tls()
|
/linux-4.1.27/drivers/net/wireless/ath/carl9170/ |
H A D | fwdesc.h | 42 /* usb download (app -> fw) stream */ 45 /* usb upload (fw -> app) stream */
|
/linux-4.1.27/drivers/bus/ |
H A D | omap_l3_smx.c | 263 "l3-app-irq", l3); omap3_l3_probe() 265 dev_err(&pdev->dev, "couldn't request app irq\n"); omap3_l3_probe()
|
H A D | omap_l3_noc.c | 297 0x0, "l3-app-irq", l3); omap_l3_probe()
|
/linux-4.1.27/block/ |
H A D | t10-pi.c | 46 * 16 bit app tag, 32 bit reference tag. Type 3 does not define the ref
|
H A D | bsg.c | 734 * of the app to properly reap commands before close() if it wants bsg_put_device()
|
/linux-4.1.27/include/uapi/linux/ |
H A D | dccp.h | 61 * @dccph_req_service - Service to which the client app wants to connect
|
H A D | sctp.h | 444 * notification is given to the user. Also, at the time when a user app
|
/linux-4.1.27/arch/mips/include/asm/octeon/ |
H A D | octeon.h | 91 /* used to pass flags from app to debugger. */ 147 /* used to pass flags from app to debugger. */
|
H A D | cvmx-bootinfo.h | 73 /* used to pass flags from app to debugger */
|
H A D | cvmx.h | 93 * provided in the cvmx-app-init*.c files.
|
/linux-4.1.27/tools/perf/scripts/python/ |
H A D | sched-migration.py | 365 app = wx.App(False) 368 app.MainLoop()
|
/linux-4.1.27/drivers/scsi/fcoe/ |
H A D | fcoe.c | 1943 if (entry->app.selector != DCB_APP_IDTYPE_ETHTYPE) fcoe_dcb_app_notification() 1958 prio = ffs(entry->app.priority) - 1; fcoe_dcb_app_notification() 1960 prio = entry->app.priority; fcoe_dcb_app_notification() 1965 if (entry->app.protocol == ETH_P_FIP || fcoe_dcb_app_notification() 1966 entry->app.protocol == ETH_P_FCOE) fcoe_dcb_app_notification() 1969 if (entry->app.protocol == ETH_P_FCOE) fcoe_dcb_app_notification() 2277 struct dcb_app app = { fcoe_dcb_create() local 2287 app.selector = IEEE_8021QAZ_APP_SEL_ETHERTYPE; fcoe_dcb_create() 2288 up = dcb_ieee_getapp_mask(netdev, &app); fcoe_dcb_create() 2289 app.protocol = ETH_P_FIP; fcoe_dcb_create() 2290 fup = dcb_ieee_getapp_mask(netdev, &app); fcoe_dcb_create() 2292 app.selector = DCB_APP_IDTYPE_ETHTYPE; fcoe_dcb_create() 2293 up = dcb_getapp(netdev, &app); fcoe_dcb_create() 2294 app.protocol = ETH_P_FIP; fcoe_dcb_create() 2295 fup = dcb_getapp(netdev, &app); fcoe_dcb_create()
|
/linux-4.1.27/drivers/message/fusion/ |
H A D | mptctl.h | 93 * (as the app. will not use 8-byte pointers). 308 * maxReplyBytes - maximum number of reply bytes to be sent to app.
|
H A D | mptctl.c | 1965 /* verify that app has not requested mptctl_do_mpt_command() 2052 /* verify that app has not requested mptctl_do_mpt_command()
|
/linux-4.1.27/drivers/net/ethernet/sfc/ |
H A D | txc43128_phy.c | 214 /* Set PMA to test into loopback using Mt Diablo reg as per app note */ txc_bist_one() 219 /* The BIST app. note lists these as 3 distinct steps. */ txc_bist_one()
|
/linux-4.1.27/drivers/staging/lustre/lustre/llite/ |
H A D | llite_mmap.c | 368 CWARN("the page is under heavy contention, maybe your app(%s) needs revising :-)\n", ll_fault() 394 CWARN("app(%s): the page %lu of file %lu is under heavy contention.\n", ll_page_mkwrite()
|
H A D | rw.c | 806 * of the app and behind the next index to start read-ahead from */ ll_readahead() 985 /* reset the read-ahead window in two cases. First when the app seeks ras_update()
|
/linux-4.1.27/drivers/infiniband/core/ |
H A D | iwcm.c | 709 * by the CLOSE event. If the app closes, it will block until we wake 738 * The app has called connect and is waiting for the established event to 802 * the app thread blocked in iw_destroy_cm_id. 866 * distinguish between an object that will be destroyed by the app
|
/linux-4.1.27/drivers/infiniband/hw/amso1100/ |
H A D | c2_intr.c | 101 * event being delivered to the app. The reason for this handle_mq()
|
/linux-4.1.27/drivers/media/usb/gspca/stv06xx/ |
H A D | stv06xx_st6422.c | 47 4 as they are garbage, and we tell the app it only gets the
|
/linux-4.1.27/drivers/scsi/megaraid/ |
H A D | megaraid_ioctl.h | 103 * @user_data_len: length of the data buffer sent by user app
|
H A D | megaraid_mm.c | 280 * @arg : packet sent by the user app
|
H A D | megaraid_sas_base.c | 2601 * Don't signal app if it is just an aborted previously registered aen megasas_service_aen() 4956 * cmd and re-register with a new EVENT LOCALE supplied by that app megasas_register_aen()
|
/linux-4.1.27/drivers/clk/berlin/ |
H A D | bg2q.c | 240 .name = "app",
|
H A D | bg2.c | 327 .name = "app",
|
/linux-4.1.27/include/rxrpc/ |
H A D | packet.h | 61 uint8_t userStatus; /* app-layer defined status */
|
/linux-4.1.27/sound/core/ |
H A D | pcm_compat.c | 517 /* FIXME: we should consider the boundary for the sync from app */ snd_pcm_ioctl_sync_ptr_compat() 605 /* FIXME: we should consider the boundary for the sync from app */ snd_pcm_ioctl_sync_ptr_x32()
|
H A D | compress_offload.c | 196 pr_debug("app wrote %lld, DSP consumed %lld\n", snd_compr_calc_avail()
|
/linux-4.1.27/sound/oss/ |
H A D | audio.c | 517 /* Subtract current count from the number of bytes written by app */ audio_ioctl() 934 /* Subtract current count from the number of bytes written by app */ dma_ioctl()
|
H A D | swarm_cs4297a.c | 1686 // "count" is the amount of bytes to read (from app), is decremented each loop cs4297a_read() 1689 // "buffer" points to the app's buffer cs4297a_read()
|
/linux-4.1.27/drivers/scsi/mpt3sas/ |
H A D | mpt3sas_trigger_diag.c | 63 * _mpt3sas_raise_sigio - notifiy app
|
H A D | mpt3sas_ctl.h | 240 * @max_reply_bytes - maximum number of reply bytes to be sent to app.
|
H A D | mpt3sas_base.c | 441 desc = "eedp app tag error"; _base_sas_ioc_info()
|
/linux-4.1.27/net/dccp/ |
H A D | proto.c | 500 DCCP_WARN("sockopt(PACKET_SIZE) is deprecated: fix your app\n"); do_dccp_setsockopt() 504 DCCP_WARN("sockopt(CHANGE_L/R) is deprecated: fix your app\n"); do_dccp_setsockopt() 627 DCCP_WARN("sockopt(PACKET_SIZE) is deprecated: fix your app\n"); do_dccp_getsockopt()
|
/linux-4.1.27/net/sctp/ |
H A D | input.c | 472 struct sctp_association **app, sctp_err_lookup() 485 *app = NULL; *tpp = NULL; sctp_err_lookup() 537 *app = asoc; sctp_err_lookup() 470 sctp_err_lookup(struct net *net, int family, struct sk_buff *skb, struct sctphdr *sctphdr, struct sctp_association **app, struct sctp_transport **tpp) sctp_err_lookup() argument
|
/linux-4.1.27/drivers/net/ethernet/smsc/ |
H A D | epic100.c | 409 /* This magic is documented in SMSC app note 7.15 */ epic_init_one() 665 /* This magic is documented in SMSC app note 7.15 */ epic_open() 793 /* This magic is documented in SMSC app note 7.15 */ epic_restart()
|
/linux-4.1.27/sound/oss/dmasound/ |
H A D | dmasound_core.c | 170 * it". If the app is multi-threaded and this rule is broken between threads 1006 /* this should tell the caller about bytes that the app can sq_ioctl() 1007 read/write - the app doesn't care about our internal buffers. sq_ioctl()
|
/linux-4.1.27/drivers/hwmon/ |
H A D | sch56xx-common.c | 191 * According to the SMSC app note we should now do: sch56xx_send_cmd()
|
/linux-4.1.27/drivers/net/wireless/ath/ath10k/ |
H A D | targaddrs.h | 410 * symbol of ROM which is located before the app-data and might NOT be
|
H A D | wmi.h | 3982 /* app IE */
|
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/ |
H A D | bmi.c | 303 ath6kl_dbg(ATH6KL_DBG_BMI, "bmi set app start: addr: 0x%x\n", addr); ath6kl_bmi_set_app_start()
|
H A D | init.c | 1784 ath6kl_err("unable to set the host app area\n"); __ath6kl_init_hw_start()
|
H A D | wmi.c | 1434 * Identify the threshold breached and communicate that to the app. ath6kl_wmi_rssi_threshold_event_rx() 1679 * Identify the threshold breached and communicate that to the app. ath6kl_wmi_snr_threshold_event_rx()
|
/linux-4.1.27/drivers/media/v4l2-core/ |
H A D | videobuf-dma-sg.c | 611 dprintk(1, "mmap app bug: offset invalid [offset=0x%lx]\n", __videobuf_mmap_mapper()
|
H A D | v4l2-ioctl.c | 2508 * i.e. when the app sets "index" and then the driver video_usercopy()
|
/linux-4.1.27/drivers/scsi/mpt2sas/ |
H A D | mpt2sas_ctl.h | 236 * @max_reply_bytes - maximum number of reply bytes to be sent to app.
|
H A D | mpt2sas_base.c | 456 desc = "eedp app tag error"; _base_sas_ioc_info()
|
/linux-4.1.27/drivers/staging/sm750fb/ |
H A D | sm750_hw.c | 184 Chrontel app note and our experiment. hw_sm750_inithw()
|
/linux-4.1.27/drivers/clocksource/ |
H A D | timer-u300.c | 272 * The app timer in one shot mode obviously has to be reprogrammed
|
/linux-4.1.27/arch/x86/lib/ |
H A D | insn.c | 51 * @x86_64: !0 for 64-bit kernel or 64-bit app
|
/linux-4.1.27/arch/x86/oprofile/ |
H A D | nmi_int.c | 415 * available for use. This should protect userspace app. nmi_create_files()
|
/linux-4.1.27/arch/tile/include/gxio/ |
H A D | trio.h | 123 * See @ref trio/push_dma/app.c for an example of how to use push DMA.
|
H A D | mpipe.h | 84 * configured via the @ref gxio_mpipe_classifier API. A given app can 189 * - @ref mpipe/ingress/app.c : Receiving packets. 191 * - @ref mpipe/forward/app.c : Forwarding packets. 1012 * rules from another app. 1569 * will usually be limited by the size of the app's largest buffer.
|
/linux-4.1.27/drivers/usb/misc/ |
H A D | rio500.c | 195 be swapped at the app level */ ioctl_rio()
|
/linux-4.1.27/drivers/platform/x86/ |
H A D | intel_menlow.c | 462 * create the "dabney_enabled" attribute which means the user app intel_menlow_register_sensor()
|
H A D | msi-laptop.c | 131 * Wlan/Bluetooth/3G, those netbook will load the SCM (windows app) to
|
H A D | asus-wmi.c | 812 * This is also the behavior that windows app will do. asus_rfkill_set()
|
/linux-4.1.27/arch/parisc/kernel/ |
H A D | syscall_table.S | 273 * struct from a 32-bit user-space app.
|
H A D | traps.c | 631 /* Set to zero, and let the userspace app figure it out from handle_interruption()
|
/linux-4.1.27/fs/fat/ |
H A D | fat.h | 154 * bit, it's just used as flag for app.
|
H A D | dir.c | 804 * code didn't return the right value. So, app use this value, fat_dir_ioctl() 844 * code didn't return the right value. So, app use this value, fat_compat_dir_ioctl()
|
/linux-4.1.27/mm/ |
H A D | madvise.c | 259 * it's OK to just throw them away. The app will be more careful about
|
H A D | vmstat.c | 1376 * We did not update any counters so the app may be in vmstat_update()
|
/linux-4.1.27/net/rxrpc/ |
H A D | ar-accept.c | 90 /* get a notification message to send to the server app */ rxrpc_accept_incoming_call()
|
H A D | ar-internal.h | 343 #define RXRPC_CALL_ACCEPTED 13 /* incoming call accepted by userspace app */ 345 #define RXRPC_CALL_POST_ACCEPT 15 /* need to post an "accept?" message to the app */
|
H A D | ar-ack.c | 1179 /* post a notification of an acceptable connection to the app */ rxrpc_process_call()
|
/linux-4.1.27/arch/x86/kernel/ |
H A D | e820.c | 243 struct change_member * const *app = a, * const *bpp = b; cpcompare() local 244 const struct change_member *ap = *app, *bp = *bpp; cpcompare()
|
/linux-4.1.27/drivers/hid/ |
H A D | hid-rmi.c | 1145 unsigned app = (*report)->field[i]->application; rmi_check_valid_report_id() local 1146 if ((app & HID_USAGE_PAGE) >= HID_UP_MSVENDOR) rmi_check_valid_report_id()
|
/linux-4.1.27/drivers/usb/serial/ |
H A D | cypress_m8.c | 263 * Cypress app note that describes this mechanism analyze_baud_rate() 481 converter app note. */ cypress_generic_port_probe()
|
H A D | option.c | 1944 { USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a2, 0xff, 0x02, 0x01) }, /* MediaTek MT6276M modem & app port */
|
/linux-4.1.27/drivers/tty/hvc/ |
H A D | hvcs.c | 814 * If a user app opens a tty that corresponds to this vty-server before hvcs_probe() 815 * the hvcs_struct has been added to the devices list then the user app hvcs_probe() 1174 * This is invoked via the tty_open interface when a user app connects to the
|
/linux-4.1.27/drivers/isdn/gigaset/ |
H A D | i4l.c | 291 default: /* hope the app knows what it is doing */ command_from_LL()
|
H A D | capi.c | 1779 /* reject call - will trigger DISCONNECT_IND for this app */ do_connect_resp()
|
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/ |
H A D | i40e_type.h | 423 struct i40e_ieee_app_priority_table app[I40E_DCBX_MAX_APPS]; member in struct:i40e_dcbx_config
|
/linux-4.1.27/drivers/scsi/qla2xxx/ |
H A D | qla_isr.c | 1753 " tag=0x%x, exp ref_tag=0x%x, act app tag=0x%x, exp app" qla2x00_handle_dif_error() 1760 * For type 3: ref & app tag is all 'f's qla2x00_handle_dif_error() 1761 * For type 0,1,2: app tag is all 'f's qla2x00_handle_dif_error()
|
H A D | qla_target.c | 2221 * 16 bit app tag. qlt_set_t10dif_tags() 2749 * For type 3: ref & app tag is all 'f's qlt_handle_dif_error() 2750 * For type 0,1,2: app tag is all 'f's qlt_handle_dif_error()
|
H A D | qla_iocb.c | 838 * 16 bit app tag. qla24xx_set_t10dif_tags()
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/ |
H A D | dev.h | 67 * noise info (e.g. averaging might be done in app); measured dBm values are
|
/linux-4.1.27/drivers/staging/ft1000/ft1000-usb/ |
H A D | ft1000_debug.c | 696 /* pr_debug("NumOfMsg for app %d = %d\n", i, ft1000dev->app_info[i].NumOfMsg); */ ft1000_ioctl()
|
/linux-4.1.27/drivers/staging/octeon/ |
H A D | ethernet.c | 87 "\tto allow a CVMX app to intercept all packets from the\n"
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/ |
H A D | fwil_types.h | 217 __le32 id; /* Unique filter id, specified by app. */
|
/linux-4.1.27/drivers/net/wireless/iwlegacy/ |
H A D | 3945.h | 59 * noise info (e.g. averaging might be done in app); measured dBm values are
|
H A D | common.h | 73 * noise info (e.g. averaging might be done in app); measured dBm values are
|
/linux-4.1.27/drivers/infiniband/hw/qib/ |
H A D | qib_tx.c | 46 "duration of user app suspension after link failure");
|
/linux-4.1.27/drivers/char/ |
H A D | apm-emulation.c | 570 * If the app won't answer within a short while we assume it apm_suspend_notifier()
|
H A D | virtio_console.c | 763 * case of list_empty; this tells the userspace app port_fops_read() 1564 /* Let the app know the port is going down. */ unplug_port()
|
H A D | hpet.c | 88 /* A lock for concurrent access by app and isr hpet activity. */
|
/linux-4.1.27/drivers/usb/chipidea/ |
H A D | otg_fsm.c | 33 /* Add for otg: interact with user space app */
|
/linux-4.1.27/drivers/usb/core/ |
H A D | devices.c | 158 {USB_CLASS_APP_SPEC, "app."},
|
/linux-4.1.27/drivers/media/dvb-frontends/ |
H A D | rtl2830.c | 129 /* init stats here in order signal app which stats are supported */ rtl2830_init()
|
H A D | af9033.c | 458 /* init stats here in order signal app which stats are supported */ af9033_init()
|
H A D | rtl2832.c | 390 /* init stats here in order signal app which stats are supported */ rtl2832_init()
|
/linux-4.1.27/fs/afs/ |
H A D | write.c | 215 _leave(" = 0 [app]"); afs_write_begin()
|
/linux-4.1.27/fs/ |
H A D | compat.c | 441 * case the app was asking for trouble, so we return COMPAT_SYSCALL_DEFINE3() 444 * and only allow the app to see that part of the conflicting COMPAT_SYSCALL_DEFINE3()
|
/linux-4.1.27/drivers/scsi/lpfc/ |
H A D | lpfc_bsg.c | 82 uint32_t mbOffset; /* from app */ 83 uint32_t inExtWLen; /* from app */ 84 uint32_t outExtWLen; /* from app */ 1316 /* The app may continue to ask for event data until it gets lpfc_bsg_hba_get_event() 4582 * lpfc_bsg_issue_mbox - issues a mailbox command on behalf of an app
|
/linux-4.1.27/drivers/media/platform/davinci/ |
H A D | vpfe_capture.c | 1027 * given app input index 1051 * vpfe_get_app_input - Get app input index for a given subdev input index
|
/linux-4.1.27/drivers/input/mouse/ |
H A D | cyapa_gen5.c | 1257 dev_err(dev, "%s: invalid firmware app crc check.\n", __func__); cyapa_gen5_check_fw() 2487 * the app command will fail. cyapa_gen5_do_operational_check()
|
/linux-4.1.27/drivers/input/touchscreen/ |
H A D | atmel_mxt_ts.c | 479 /* Check app crc fail mode */ mxt_probe_bootloader() 2022 /* Attempt to exit bootloader into app mode */ mxt_initialize()
|
H A D | ads7846.c | 56 * This driver tries to utilize the measures described in the app
|
/linux-4.1.27/arch/ia64/kernel/ |
H A D | ptrace.c | 862 /* app regs */ ptrace_getregs() 998 /* app regs */ ptrace_setregs()
|
/linux-4.1.27/drivers/mmc/host/ |
H A D | tmio_mmc_pio.c | 346 * should be set when issuing app commands. tmio_mmc_start_command()
|
/linux-4.1.27/drivers/media/i2c/ |
H A D | s5k4ecgx.c | 328 * git://git.linaro.org/people/sangwook/fimc-v4l2-app.git
|
H A D | saa717x.c | 288 /**** from app start ****/
|
/linux-4.1.27/drivers/media/i2c/soc_camera/ |
H A D | mt9v022.c | 300 /* Like in example app. Contradicts the datasheet though */ mt9v022_s_crop()
|
/linux-4.1.27/drivers/media/pci/cx18/ |
H A D | cx18-driver.h | 460 * packets to splice into (only!) MPEG-2 PS streams for the user app.
|
/linux-4.1.27/drivers/media/pci/cx88/ |
H A D | cx88-blackbird.c | 503 Settings used by the windows tv app for PVR2000:
|
/linux-4.1.27/drivers/media/pci/ttpci/ |
H A D | av7110_hw.c | 662 printk("dvb-ttpci: info @ card %d: firm %08x, rtsl %08x, vid %08x, app %08x\n", av7110_firmversion()
|
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/ |
H A D | ldlm_flock.c | 599 * holding the lock even if app still believes it has it, since ldlm_flock_completion_ast()
|
/linux-4.1.27/arch/x86/mm/ |
H A D | init_32.c | 279 * This two pass mechanism conforms to the TLB app note which says: kernel_physical_mapping_init()
|
/linux-4.1.27/arch/tile/include/hv/ |
H A D | iorpc.h | 54 * indicating resources that are allocated to that particular app
|
/linux-4.1.27/arch/mips/cavium-octeon/executive/ |
H A D | cvmx-helper.c | 393 /* Put all packets in group 0. Other groups can be used by the app */ __cvmx_helper_port_setup_ipd()
|
/linux-4.1.27/fs/gfs2/ |
H A D | file.c | 695 * offset. There is still a race, but provided the app is using its
|
/linux-4.1.27/net/rds/ |
H A D | send.c | 545 /* No need to wake the app - caller does this */ __rds_send_complete()
|
/linux-4.1.27/sound/drivers/ |
H A D | ml403-ac97cr.c | 1054 * Xilinx's example app in EDK 8.1i) and wait
|
/linux-4.1.27/sound/pci/ca0106/ |
H A D | ca0106.h | 302 * e.g. mouse moving, changing between app windows etc.
|
/linux-4.1.27/drivers/net/ethernet/alteon/ |
H A D | acenic.c | 248 * transmit and receive buffers. For the 1MB NIC app. 800KB 249 * is available, on the 1/2MB NIC app. 300KB is available.
|
/linux-4.1.27/drivers/media/platform/am437x/ |
H A D | am437x-vpfe.c | 1680 * given app input index 1705 * vpfe_get_app_input - Get app input index for a given subdev input index
|
/linux-4.1.27/drivers/staging/lustre/lustre/osc/ |
H A D | osc_cache.c | 1758 * the app does an fsync. As long as errors persist we force future rpcs to be 1759 * sync so that the app can get a sync error and break the cycle of queueing
|
/linux-4.1.27/net/ipv4/ |
H A D | udp.c | 1068 net_dbg_ratelimited("cork app bug 2\n"); udp_sendmsg() 1150 net_dbg_ratelimited("udp cork app bug 3\n"); udp_sendpage()
|
/linux-4.1.27/drivers/staging/media/davinci_vpfe/ |
H A D | vpfe_video.c | 520 as app might call streamon() after streamoff() vpfe_release()
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
H A D | i915_drv.c | 1569 /* Don't use MTRRs here; the Xserver or userspace app should
|
/linux-4.1.27/drivers/infiniband/hw/ipath/ |
H A D | ipath_kernel.h | 536 /* HoL blocking / user app forward-progress state */
|
H A D | ipath_driver.c | 86 "duration of user app suspension after link failure");
|
/linux-4.1.27/drivers/block/ |
H A D | cciss_scsi.c | 1335 this info is for an app to be able to use to know how to cciss_scsi_show_info()
|
/linux-4.1.27/net/ipv6/ |
H A D | udp.c | 1330 net_dbg_ratelimited("udp cork app bug 2\n"); udpv6_sendmsg()
|
/linux-4.1.27/kernel/trace/ |
H A D | blktrace.c | 378 * the user space app in telling how many lost events there were.
|
/linux-4.1.27/drivers/net/ethernet/tile/ |
H A D | tilegx.c | 326 * allows an app to sit between the actual link and linux, passing
|
/linux-4.1.27/drivers/staging/lustre/lustre/mdc/ |
H A D | mdc_request.c | 1671 * New thread because we should return to user app before mdc_ioc_changelog_send()
|
/linux-4.1.27/drivers/gpu/drm/vmwgfx/ |
H A D | svga_reg.h | 957 #define SVGA_SCREEN_FULLSCREEN_HINT (1 << 2) /* Guest is running a fullscreen app here */
|
/linux-4.1.27/scripts/ |
H A D | analyze_suspend.py | 1272 # Analyze an ftrace log output file generated from this app during 1673 # Analyse a dmesg log output file generated from this app during
|
/linux-4.1.27/sound/pci/rme9652/ |
H A D | hdspm.c | 987 int samplerate; /* 0=44.1, 1=48, 2= freq from app */ 4214 /* TODO freq from app could be supported here, see tco->samplerate */ snd_hdspm_info_tco_sample_rate()
|
/linux-4.1.27/drivers/scsi/ |
H A D | sg.c | 669 * but is is possible that the app intended SG_DXFER_TO_DEV, because there sg_write()
|
H A D | megaraid.c | 3830 * app to let the OS know about this operation.
|
H A D | gdth.c | 2923 TRACE2(("gdth_readapp_event() app. %d\n", application)); gdth_readapp_event()
|
/linux-4.1.27/drivers/staging/comedi/drivers/ |
H A D | s626.c | 1613 * format. Each app poll list item is an uint8_t with form s626_reset_adc()
|
/linux-4.1.27/drivers/net/ethernet/brocade/bna/ |
H A D | bfa_ioc.c | 2209 * @tbuf: app memory to store data from smem
|
/linux-4.1.27/drivers/tty/ |
H A D | rocket.c | 1584 * Exception handler - write routine, called when user app writes to the device.
|
/linux-4.1.27/net/ |
H A D | socket.c | 2266 * app asks about it using getsockopt(SO_ERROR). __sys_recvmmsg()
|
/linux-4.1.27/fs/dlm/ |
H A D | lock.c | 1545 because the app gets the convert result and then can follow up _remove_from_waiters() 2948 cancel, unlock or failed noqueue request; an app can't use these validate_unlock_args()
|
/linux-4.1.27/arch/x86/kvm/ |
H A D | emulate.c | 2322 * 32bit compat-app running will #UD !! While this em_syscall_is_enabled()
|
/linux-4.1.27/fs/cifs/ |
H A D | connect.c | 585 * to clear and app threads to set tcpStatus cifs_readv_from_socket()
|