Lines Matching refs:id

301 	int id;  in of_hwspin_lock_get_id()  local
330 id = of_hwspin_lock_simple_xlate(&args); in of_hwspin_lock_get_id()
331 if (id < 0 || id >= hwlock->bank->num_locks) { in of_hwspin_lock_get_id()
335 id += hwlock->bank->base_id; in of_hwspin_lock_get_id()
339 return ret ? ret : id; in of_hwspin_lock_get_id()
343 static int hwspin_lock_register_single(struct hwspinlock *hwlock, int id) in hwspin_lock_register_single() argument
350 ret = radix_tree_insert(&hwspinlock_tree, id, hwlock); in hwspin_lock_register_single()
353 pr_err("hwspinlock id %d already exists!\n", id); in hwspin_lock_register_single()
358 tmp = radix_tree_tag_set(&hwspinlock_tree, id, HWSPINLOCK_UNUSED); in hwspin_lock_register_single()
368 static struct hwspinlock *hwspin_lock_unregister_single(unsigned int id) in hwspin_lock_unregister_single() argument
376 ret = radix_tree_tag_get(&hwspinlock_tree, id, HWSPINLOCK_UNUSED); in hwspin_lock_unregister_single()
378 pr_err("hwspinlock %d still in use (or not present)\n", id); in hwspin_lock_unregister_single()
382 hwlock = radix_tree_delete(&hwspinlock_tree, id); in hwspin_lock_unregister_single()
384 pr_err("failed to delete hwspinlock %d\n", id); in hwspin_lock_unregister_single()
590 struct hwspinlock *hwspin_lock_request_specific(unsigned int id) in hwspin_lock_request_specific() argument
598 hwlock = radix_tree_lookup(&hwspinlock_tree, id); in hwspin_lock_request_specific()
600 pr_warn("hwspinlock %u does not exist\n", id); in hwspin_lock_request_specific()
605 WARN_ON(hwlock_to_id(hwlock) != id); in hwspin_lock_request_specific()
608 ret = radix_tree_tag_get(&hwspinlock_tree, id, HWSPINLOCK_UNUSED); in hwspin_lock_request_specific()
610 pr_warn("hwspinlock %u is already in use\n", id); in hwspin_lock_request_specific()