Lines Matching refs:handle
80 u64 handle; member
102 static struct kcov_remote *kcov_remote_find(u64 handle) in kcov_remote_find() argument
106 hash_for_each_possible(kcov_remote_map, remote, hnode, handle) { in kcov_remote_find()
107 if (remote->handle == handle) in kcov_remote_find()
114 static struct kcov_remote *kcov_remote_add(struct kcov *kcov, u64 handle) in kcov_remote_add() argument
118 if (kcov_remote_find(handle)) in kcov_remote_add()
123 remote->handle = handle; in kcov_remote_add()
125 hash_add(kcov_remote_map, &remote->hnode, handle); in kcov_remote_add()
543 static inline bool kcov_check_handle(u64 handle, bool common_valid, in kcov_check_handle() argument
546 if (handle & ~(KCOV_SUBSYSTEM_MASK | KCOV_INSTANCE_MASK)) in kcov_check_handle()
548 switch (handle & KCOV_SUBSYSTEM_MASK) { in kcov_check_handle()
550 return (handle & KCOV_INSTANCE_MASK) ? in kcov_check_handle()
811 void kcov_remote_start(u64 handle) in kcov_remote_start() argument
822 if (WARN_ON(!kcov_check_handle(handle, true, true, true))) in kcov_remote_start()
849 remote = kcov_remote_find(handle); in kcov_remote_start()
854 kcov_debug("handle = %llx, context: %s\n", handle, in kcov_remote_start()