Lines Matching defs:handler
609 * tb_register_protocol_handler() - Register protocol handler
610 * @handler: Handler to register
617 int tb_register_protocol_handler(struct tb_protocol_handler *handler)
619 if (!handler->uuid || !handler->callback)
621 if (uuid_equal(handler->uuid, &tb_xdp_uuid))
625 list_add_tail(&handler->list, &protocol_handlers);
633 * tb_unregister_protocol_handler() - Unregister protocol handler
634 * @handler: Handler to unregister
636 * Removes the previously registered protocol handler.
638 void tb_unregister_protocol_handler(struct tb_protocol_handler *handler)
641 list_del_init(&handler->list);
2413 const struct tb_protocol_handler *handler, *tmp;
2437 list_for_each_entry_safe(handler, tmp, &protocol_handlers, list) {
2438 if (!uuid_equal(&hdr->uuid, handler->uuid))
2442 ret = handler->callback(buf, size, handler->data);