Lines Matching refs:key
16 static void *uapi_add_elm(struct uverbs_api *uapi, u32 key, size_t alloc_size) in uapi_add_elm() argument
21 if (key == UVERBS_API_KEY_ERR) in uapi_add_elm()
27 rc = radix_tree_insert(&uapi->radix, key, elm); in uapi_add_elm()
36 static void *uapi_add_get_elm(struct uverbs_api *uapi, u32 key, in uapi_add_get_elm() argument
41 elm = uapi_add_elm(uapi, key, alloc_size); in uapi_add_get_elm()
50 elm = radix_tree_lookup(&uapi->radix, key); in uapi_add_get_elm()
509 static void uapi_key_okay(u32 key) in uapi_key_okay() argument
513 if (uapi_key_is_object(key)) in uapi_key_okay()
515 if (uapi_key_is_ioctl_method(key)) in uapi_key_okay()
517 if (uapi_key_is_write_method(key)) in uapi_key_okay()
519 if (uapi_key_is_write_ex_method(key)) in uapi_key_okay()
521 if (uapi_key_is_attr(key)) in uapi_key_okay()
523 WARN(count != 1, "Bad count %u key=%x", count, key); in uapi_key_okay()