uapi 937 drivers/infiniband/core/rdma_core.c uapi_get_object(attrs->ufile->device->uapi, object_id); uapi 169 drivers/infiniband/core/rdma_core.h uapi_get_object(struct uverbs_api *uapi, u16 object_id) uapi 176 drivers/infiniband/core/rdma_core.h res = radix_tree_lookup(&uapi->radix, uapi_key_obj(object_id)); uapi 186 drivers/infiniband/core/rdma_core.h void uverbs_disassociate_api(struct uverbs_api *uapi); uapi 187 drivers/infiniband/core/rdma_core.h void uverbs_destroy_api(struct uverbs_api *uapi); uapi 202 drivers/infiniband/core/rdma_core.h uapi_get_method(const struct uverbs_api *uapi, u32 command) uapi 211 drivers/infiniband/core/rdma_core.h if (cmd_idx >= uapi->num_write_ex) uapi 213 drivers/infiniband/core/rdma_core.h return uapi->write_ex_methods[cmd_idx]; uapi 216 drivers/infiniband/core/rdma_core.h if (cmd_idx >= uapi->num_write) uapi 218 drivers/infiniband/core/rdma_core.h return uapi->write_methods[cmd_idx]; uapi 115 drivers/infiniband/core/uverbs.h struct uverbs_api *uapi; uapi 560 drivers/infiniband/core/uverbs_ioctl.c struct uverbs_api *uapi = ufile->device->uapi; uapi 568 drivers/infiniband/core/uverbs_ioctl.c if (unlikely(hdr->driver_id != uapi->driver_id)) uapi 572 drivers/infiniband/core/uverbs_ioctl.c &uapi->radix, &attrs_iter, uapi 599 drivers/infiniband/core/uverbs_ioctl.c pbundle->radix = &uapi->radix; uapi 121 drivers/infiniband/core/uverbs_main.c uverbs_destroy_api(dev->uapi); uapi 664 drivers/infiniband/core/uverbs_main.c struct uverbs_api *uapi = file->device->uapi; uapi 683 drivers/infiniband/core/uverbs_main.c method_elm = uapi_get_method(uapi, hdr.command); uapi 1244 drivers/infiniband/core/uverbs_main.c struct uverbs_api *uapi; uapi 1246 drivers/infiniband/core/uverbs_main.c uapi = uverbs_alloc_api(device); uapi 1247 drivers/infiniband/core/uverbs_main.c if (IS_ERR(uapi)) uapi 1248 drivers/infiniband/core/uverbs_main.c return PTR_ERR(uapi); uapi 1250 drivers/infiniband/core/uverbs_main.c uverbs_dev->uapi = uapi; uapi 1381 drivers/infiniband/core/uverbs_main.c uverbs_disassociate_api(uverbs_dev->uapi); uapi 21 drivers/infiniband/core/uverbs_std_types_device.c struct uverbs_api *uapi = attrs->ufile->device->uapi; uapi 30 drivers/infiniband/core/uverbs_std_types_device.c method_elm = uapi_get_method(uapi, cmd); uapi 112 drivers/infiniband/core/uverbs_std_types_device.c uapi_object = uapi_get_object(attrs->ufile->device->uapi, object_id); uapi 16 drivers/infiniband/core/uverbs_uapi.c static void *uapi_add_elm(struct uverbs_api *uapi, u32 key, size_t alloc_size) uapi 27 drivers/infiniband/core/uverbs_uapi.c rc = radix_tree_insert(&uapi->radix, key, elm); uapi 36 drivers/infiniband/core/uverbs_uapi.c static void *uapi_add_get_elm(struct uverbs_api *uapi, u32 key, uapi 41 drivers/infiniband/core/uverbs_uapi.c elm = uapi_add_elm(uapi, key, alloc_size); uapi 50 drivers/infiniband/core/uverbs_uapi.c elm = radix_tree_lookup(&uapi->radix, key); uapi 57 drivers/infiniband/core/uverbs_uapi.c static int uapi_create_write(struct uverbs_api *uapi, uapi 72 drivers/infiniband/core/uverbs_uapi.c method_elm = uapi_add_get_elm(uapi, method_key, sizeof(*method_elm), uapi 100 drivers/infiniband/core/uverbs_uapi.c static int uapi_merge_method(struct uverbs_api *uapi, uapi 113 drivers/infiniband/core/uverbs_uapi.c method_elm = uapi_add_get_elm(uapi, method_key, sizeof(*method_elm), uapi 158 drivers/infiniband/core/uverbs_uapi.c uapi_add_elm(uapi, method_key | uapi_key_attr(attr->id), uapi 170 drivers/infiniband/core/uverbs_uapi.c static int uapi_merge_obj_tree(struct uverbs_api *uapi, uapi 181 drivers/infiniband/core/uverbs_uapi.c obj_elm = uapi_add_get_elm(uapi, obj_key, sizeof(*obj_elm), &exists); uapi 217 drivers/infiniband/core/uverbs_uapi.c rc = uapi_merge_method(uapi, obj_elm, obj_key, method, uapi 226 drivers/infiniband/core/uverbs_uapi.c static int uapi_disable_elm(struct uverbs_api *uapi, uapi 237 drivers/infiniband/core/uverbs_uapi.c uapi, obj_key, sizeof(*obj_elm), &exists); uapi 248 drivers/infiniband/core/uverbs_uapi.c method_elm = uapi_add_get_elm(uapi, method_key, uapi 261 drivers/infiniband/core/uverbs_uapi.c write_elm = uapi_add_get_elm(uapi, method_key, uapi 273 drivers/infiniband/core/uverbs_uapi.c static int uapi_merge_def(struct uverbs_api *uapi, struct ib_device *ibdev, uapi 289 drivers/infiniband/core/uverbs_uapi.c rc = uapi_merge_def(uapi, ibdev, def->chain, is_driver); uapi 300 drivers/infiniband/core/uverbs_uapi.c rc = uapi_merge_obj_tree(uapi, def->chain_obj_tree, uapi 316 drivers/infiniband/core/uverbs_uapi.c uapi, def, cur_obj_key, cur_method_key); uapi 326 drivers/infiniband/core/uverbs_uapi.c uapi, def, cur_obj_key, cur_method_key); uapi 335 drivers/infiniband/core/uverbs_uapi.c obj_elm = uapi_add_get_elm(uapi, cur_obj_key, uapi 344 drivers/infiniband/core/uverbs_uapi.c uapi, ibdev, def, cur_obj_key, &cur_method_key); uapi 355 drivers/infiniband/core/uverbs_uapi.c uapi_finalize_ioctl_method(struct uverbs_api *uapi, uapi 366 drivers/infiniband/core/uverbs_uapi.c radix_tree_for_each_slot (slot, &uapi->radix, &iter, uapi 418 drivers/infiniband/core/uverbs_uapi.c static int uapi_finalize(struct uverbs_api *uapi) uapi 428 drivers/infiniband/core/uverbs_uapi.c radix_tree_for_each_slot (slot, &uapi->radix, &iter, 0) { uapi 433 drivers/infiniband/core/uverbs_uapi.c rc = uapi_finalize_ioctl_method(uapi, method_elm, uapi 448 drivers/infiniband/core/uverbs_uapi.c uapi->notsupp_method.handler = ib_uverbs_notsupp; uapi 449 drivers/infiniband/core/uverbs_uapi.c uapi->num_write = max_write + 1; uapi 450 drivers/infiniband/core/uverbs_uapi.c uapi->num_write_ex = max_write_ex + 1; uapi 451 drivers/infiniband/core/uverbs_uapi.c data = kmalloc_array(uapi->num_write + uapi->num_write_ex, uapi 452 drivers/infiniband/core/uverbs_uapi.c sizeof(*uapi->write_methods), GFP_KERNEL); uapi 453 drivers/infiniband/core/uverbs_uapi.c for (i = 0; i != uapi->num_write + uapi->num_write_ex; i++) uapi 454 drivers/infiniband/core/uverbs_uapi.c data[i] = &uapi->notsupp_method; uapi 455 drivers/infiniband/core/uverbs_uapi.c uapi->write_methods = data; uapi 456 drivers/infiniband/core/uverbs_uapi.c uapi->write_ex_methods = data + uapi->num_write; uapi 458 drivers/infiniband/core/uverbs_uapi.c radix_tree_for_each_slot (slot, &uapi->radix, &iter, 0) { uapi 460 drivers/infiniband/core/uverbs_uapi.c uapi->write_methods[iter.index & uapi 464 drivers/infiniband/core/uverbs_uapi.c uapi->write_ex_methods[iter.index & uapi 472 drivers/infiniband/core/uverbs_uapi.c static void uapi_remove_range(struct uverbs_api *uapi, u32 start, u32 last) uapi 477 drivers/infiniband/core/uverbs_uapi.c radix_tree_for_each_slot (slot, &uapi->radix, &iter, start) { uapi 481 drivers/infiniband/core/uverbs_uapi.c radix_tree_iter_delete(&uapi->radix, &iter, slot); uapi 485 drivers/infiniband/core/uverbs_uapi.c static void uapi_remove_object(struct uverbs_api *uapi, u32 obj_key) uapi 487 drivers/infiniband/core/uverbs_uapi.c uapi_remove_range(uapi, obj_key, uapi 492 drivers/infiniband/core/uverbs_uapi.c static void uapi_remove_method(struct uverbs_api *uapi, u32 method_key) uapi 494 drivers/infiniband/core/uverbs_uapi.c uapi_remove_range(uapi, method_key, uapi 526 drivers/infiniband/core/uverbs_uapi.c static void uapi_finalize_disable(struct uverbs_api *uapi) uapi 534 drivers/infiniband/core/uverbs_uapi.c radix_tree_for_each_slot (slot, &uapi->radix, &iter, starting_key) { uapi 545 drivers/infiniband/core/uverbs_uapi.c uapi_remove_object(uapi, iter.index); uapi 557 drivers/infiniband/core/uverbs_uapi.c uapi_remove_method(uapi, iter.index); uapi 570 drivers/infiniband/core/uverbs_uapi.c radix_tree_iter_delete(&uapi->radix, &iter, slot); uapi 591 drivers/infiniband/core/uverbs_uapi.c tmp_obj = uapi_get_object(uapi, obj_key); uapi 602 drivers/infiniband/core/uverbs_uapi.c uapi, uapi 618 drivers/infiniband/core/uverbs_uapi.c void uverbs_destroy_api(struct uverbs_api *uapi) uapi 620 drivers/infiniband/core/uverbs_uapi.c if (!uapi) uapi 623 drivers/infiniband/core/uverbs_uapi.c uapi_remove_range(uapi, 0, U32_MAX); uapi 624 drivers/infiniband/core/uverbs_uapi.c kfree(uapi->write_methods); uapi 625 drivers/infiniband/core/uverbs_uapi.c kfree(uapi); uapi 642 drivers/infiniband/core/uverbs_uapi.c struct uverbs_api *uapi; uapi 645 drivers/infiniband/core/uverbs_uapi.c uapi = kzalloc(sizeof(*uapi), GFP_KERNEL); uapi 646 drivers/infiniband/core/uverbs_uapi.c if (!uapi) uapi 649 drivers/infiniband/core/uverbs_uapi.c INIT_RADIX_TREE(&uapi->radix, GFP_KERNEL); uapi 650 drivers/infiniband/core/uverbs_uapi.c uapi->driver_id = ibdev->ops.driver_id; uapi 652 drivers/infiniband/core/uverbs_uapi.c rc = uapi_merge_def(uapi, ibdev, uverbs_core_api, false); uapi 655 drivers/infiniband/core/uverbs_uapi.c rc = uapi_merge_def(uapi, ibdev, ibdev->driver_def, true); uapi 659 drivers/infiniband/core/uverbs_uapi.c uapi_finalize_disable(uapi); uapi 660 drivers/infiniband/core/uverbs_uapi.c rc = uapi_finalize(uapi); uapi 664 drivers/infiniband/core/uverbs_uapi.c return uapi; uapi 671 drivers/infiniband/core/uverbs_uapi.c uverbs_destroy_api(uapi); uapi 682 drivers/infiniband/core/uverbs_uapi.c struct uverbs_api *uapi = uverbs_dev->uapi; uapi 688 drivers/infiniband/core/uverbs_uapi.c radix_tree_for_each_slot (slot, &uapi->radix, &iter, 0) { uapi 706 drivers/infiniband/core/uverbs_uapi.c void uverbs_disassociate_api(struct uverbs_api *uapi) uapi 711 drivers/infiniband/core/uverbs_uapi.c radix_tree_for_each_slot (slot, &uapi->radix, &iter, 0) { uapi 69 drivers/media/platform/vsp1/vsp1.h bool uapi; uapi 1100 drivers/media/platform/vsp1/vsp1_dl.c dlm->singleshot = vsp1->info->uapi; uapi 227 drivers/media/platform/vsp1/vsp1_drv.c if (vsp1->info->uapi) uapi 231 drivers/media/platform/vsp1/vsp1_drv.c if (!vsp1->info->uapi) uapi 256 drivers/media/platform/vsp1/vsp1_drv.c if (vsp1->info->uapi) uapi 314 drivers/media/platform/vsp1/vsp1_drv.c if (vsp1_feature(vsp1, VSP1_HAS_HGO) && vsp1->info->uapi) { uapi 325 drivers/media/platform/vsp1/vsp1_drv.c if (vsp1_feature(vsp1, VSP1_HAS_HGT) && vsp1->info->uapi) { uapi 341 drivers/media/platform/vsp1/vsp1_drv.c if (!vsp1->info->uapi) { uapi 378 drivers/media/platform/vsp1/vsp1_drv.c if (vsp1->info->uapi) { uapi 438 drivers/media/platform/vsp1/vsp1_drv.c if (vsp1->info->uapi) { uapi 462 drivers/media/platform/vsp1/vsp1_drv.c if (vsp1->info->uapi) { uapi 659 drivers/media/platform/vsp1/vsp1_drv.c .uapi = true, uapi 669 drivers/media/platform/vsp1/vsp1_drv.c .uapi = true, uapi 680 drivers/media/platform/vsp1/vsp1_drv.c .uapi = true, uapi 692 drivers/media/platform/vsp1/vsp1_drv.c .uapi = true, uapi 703 drivers/media/platform/vsp1/vsp1_drv.c .uapi = true, uapi 714 drivers/media/platform/vsp1/vsp1_drv.c .uapi = true, uapi 725 drivers/media/platform/vsp1/vsp1_drv.c .uapi = true, uapi 734 drivers/media/platform/vsp1/vsp1_drv.c .uapi = true, uapi 744 drivers/media/platform/vsp1/vsp1_drv.c .uapi = true, uapi 752 drivers/media/platform/vsp1/vsp1_drv.c .uapi = true, uapi 49 include/rdma/uverbs_std_types.h uapi_get_object((_attrs)->ufile->device->uapi, _object)