Lines Matching full:lookup
39 [QRTR_TYPE_NEW_LOOKUP] = "new-lookup",
40 [QRTR_TYPE_DEL_LOOKUP] = "del-lookup",
192 pr_err("failed to send lookup notification\n"); in lookup_notify()
269 struct qrtr_lookup *lookup; in server_del() local
285 lookup = container_of(li, struct qrtr_lookup, li); in server_del()
286 if (lookup->service && lookup->service != srv->service) in server_del()
288 if (lookup->instance && lookup->instance != srv->instance) in server_del()
291 lookup_notify(&lookup->sq, srv, false); in server_del()
387 struct qrtr_lookup *lookup; in ctrl_cmd_del_client() local
412 lookup = container_of(li, struct qrtr_lookup, li); in ctrl_cmd_del_client()
413 if (lookup->sq.sq_node != node_id) in ctrl_cmd_del_client()
415 if (lookup->sq.sq_port != port) in ctrl_cmd_del_client()
418 list_del(&lookup->li); in ctrl_cmd_del_client()
419 kfree(lookup); in ctrl_cmd_del_client()
461 struct qrtr_lookup *lookup; in ctrl_cmd_new_server() local
486 lookup = container_of(li, struct qrtr_lookup, li); in ctrl_cmd_new_server()
487 if (lookup->service && lookup->service != service) in ctrl_cmd_new_server()
489 if (lookup->instance && lookup->instance != instance) in ctrl_cmd_new_server()
492 lookup_notify(&lookup->sq, srv, true); in ctrl_cmd_new_server()
527 struct qrtr_lookup *lookup; in ctrl_cmd_new_lookup() local
537 lookup = kzalloc(sizeof(*lookup), GFP_KERNEL); in ctrl_cmd_new_lookup()
538 if (!lookup) in ctrl_cmd_new_lookup()
541 lookup->sq = *from; in ctrl_cmd_new_lookup()
542 lookup->service = service; in ctrl_cmd_new_lookup()
543 lookup->instance = instance; in ctrl_cmd_new_lookup()
544 list_add_tail(&lookup->li, &qrtr_ns.lookups); in ctrl_cmd_new_lookup()
568 struct qrtr_lookup *lookup; in ctrl_cmd_del_lookup() local
573 lookup = container_of(li, struct qrtr_lookup, li); in ctrl_cmd_del_lookup()
574 if (lookup->sq.sq_node != from->sq_node) in ctrl_cmd_del_lookup()
576 if (lookup->sq.sq_port != from->sq_port) in ctrl_cmd_del_lookup()
578 if (lookup->service != service) in ctrl_cmd_del_lookup()
580 if (lookup->instance && lookup->instance != instance) in ctrl_cmd_del_lookup()
583 list_del(&lookup->li); in ctrl_cmd_del_lookup()
584 kfree(lookup); in ctrl_cmd_del_lookup()