Lines Matching full:lookup

38 	[QRTR_TYPE_NEW_LOOKUP]	= "new-lookup",
39 [QRTR_TYPE_DEL_LOOKUP] = "del-lookup",
187 pr_err("failed to send lookup notification\n"); in lookup_notify()
275 struct qrtr_lookup *lookup; in server_del() local
291 lookup = container_of(li, struct qrtr_lookup, li); in server_del()
292 if (lookup->service && lookup->service != srv->service) in server_del()
294 if (lookup->instance && lookup->instance != srv->instance) in server_del()
297 lookup_notify(&lookup->sq, srv, false); in server_del()
423 struct qrtr_lookup *lookup; in ctrl_cmd_del_client() local
448 lookup = container_of(li, struct qrtr_lookup, li); in ctrl_cmd_del_client()
449 if (lookup->sq.sq_node != node_id) in ctrl_cmd_del_client()
451 if (lookup->sq.sq_port != port) in ctrl_cmd_del_client()
454 list_del(&lookup->li); in ctrl_cmd_del_client()
455 kfree(lookup); in ctrl_cmd_del_client()
509 struct qrtr_lookup *lookup; in ctrl_cmd_new_server() local
534 lookup = container_of(li, struct qrtr_lookup, li); in ctrl_cmd_new_server()
535 if (lookup->service && lookup->service != service) in ctrl_cmd_new_server()
537 if (lookup->instance && lookup->instance != instance) in ctrl_cmd_new_server()
540 lookup_notify(&lookup->sq, srv, true); in ctrl_cmd_new_server()
575 struct qrtr_lookup *lookup; in ctrl_cmd_new_lookup() local
584 lookup = kzalloc(sizeof(*lookup), GFP_KERNEL); in ctrl_cmd_new_lookup()
585 if (!lookup) in ctrl_cmd_new_lookup()
588 lookup->sq = *from; in ctrl_cmd_new_lookup()
589 lookup->service = service; in ctrl_cmd_new_lookup()
590 lookup->instance = instance; in ctrl_cmd_new_lookup()
591 list_add_tail(&lookup->li, &qrtr_ns.lookups); in ctrl_cmd_new_lookup()
641 struct qrtr_lookup *lookup; in ctrl_cmd_del_lookup() local
646 lookup = container_of(li, struct qrtr_lookup, li); in ctrl_cmd_del_lookup()
647 if (lookup->sq.sq_node != from->sq_node) in ctrl_cmd_del_lookup()
649 if (lookup->sq.sq_port != from->sq_port) in ctrl_cmd_del_lookup()
651 if (lookup->service != service) in ctrl_cmd_del_lookup()
653 if (lookup->instance && lookup->instance != instance) in ctrl_cmd_del_lookup()
656 list_del(&lookup->li); in ctrl_cmd_del_lookup()
657 kfree(lookup); in ctrl_cmd_del_lookup()