Home
last modified time | relevance | path

Searched refs:uc_handle (Results 1 – 4 of 4) sorted by relevance

/openbmc/qemu/hw/rdma/
H A Drdma_rm.h41 uint32_t *uc_handle);
42 RdmaRmUC *rdma_rm_get_uc(RdmaDeviceResources *dev_res, uint32_t uc_handle);
43 void rdma_rm_dealloc_uc(RdmaDeviceResources *dev_res, uint32_t uc_handle);
H A Drdma_rm.c272 uint32_t *uc_handle) in rdma_rm_alloc_uc() argument
285 uc = rdma_res_tbl_alloc(&dev_res->uc_tbl, uc_handle); in rdma_rm_alloc_uc()
293 RdmaRmUC *rdma_rm_get_uc(RdmaDeviceResources *dev_res, uint32_t uc_handle) in rdma_rm_get_uc() argument
295 return rdma_res_tbl_get(&dev_res->uc_tbl, uc_handle); in rdma_rm_get_uc()
298 void rdma_rm_dealloc_uc(RdmaDeviceResources *dev_res, uint32_t uc_handle) in rdma_rm_dealloc_uc() argument
300 RdmaRmUC *uc = rdma_rm_get_uc(dev_res, uc_handle); in rdma_rm_dealloc_uc()
303 rdma_res_tbl_dealloc(&dev_res->uc_tbl, uc_handle); in rdma_rm_dealloc_uc()
H A Drdma_rm_defs.h80 uint64_t uc_handle; member
/openbmc/linux/drivers/platform/x86/
H A Dsony-laptop.c2784 static struct device_attribute *uc_handle; variable
2829 if (!uc_handle) in sony_nc_usb_charge_setup()
2832 sysfs_attr_init(&uc_handle->attr); in sony_nc_usb_charge_setup()
2833 uc_handle->attr.name = "usb_charge"; in sony_nc_usb_charge_setup()
2834 uc_handle->attr.mode = S_IRUGO | S_IWUSR; in sony_nc_usb_charge_setup()
2840 kfree(uc_handle); in sony_nc_usb_charge_setup()
2841 uc_handle = NULL; in sony_nc_usb_charge_setup()
2850 if (uc_handle) { in sony_nc_usb_charge_cleanup()
2851 device_remove_file(&pd->dev, uc_handle); in sony_nc_usb_charge_cleanup()
2852 kfree(uc_handle); in sony_nc_usb_charge_cleanup()
[all …]