Lines Matching defs:handler
467 * tb_register_protocol_handler() - Register protocol handler
468 * @handler: Handler to register
475 int tb_register_protocol_handler(struct tb_protocol_handler *handler)
477 if (!handler->uuid || !handler->callback)
479 if (uuid_equal(handler->uuid, &tb_xdp_uuid))
483 list_add_tail(&handler->list, &protocol_handlers);
491 * tb_unregister_protocol_handler() - Unregister protocol handler
492 * @handler: Handler to unregister
494 * Removes the previously registered protocol handler.
496 void tb_unregister_protocol_handler(struct tb_protocol_handler *handler)
499 list_del_init(&handler->list);
1584 const struct tb_protocol_handler *handler, *tmp;
1608 list_for_each_entry_safe(handler, tmp, &protocol_handlers, list) {
1609 if (!uuid_equal(&hdr->uuid, handler->uuid))
1613 ret = handler->callback(buf, size, handler->data);