Home
last modified time | relevance | path

Searched refs:res_id (Results 1 – 14 of 14) sorted by relevance

/drivers/staging/lustre/lustre/mdc/
Dmdc_locks.c137 struct ldlm_res_id res_id; in mdc_lock_match() local
140 fid_build_reg_res_name(fid, &res_id); in mdc_lock_match()
144 &res_id, type, policy, mode, lockh, 0); in mdc_lock_match()
155 struct ldlm_res_id res_id; in mdc_cancel_unused() local
159 fid_build_reg_res_name(fid, &res_id); in mdc_cancel_unused()
160 rc = ldlm_cli_cancel_unused_resource(obd->obd_namespace, &res_id, in mdc_cancel_unused()
168 struct ldlm_res_id res_id; in mdc_null_inode() local
174 fid_build_reg_res_name(fid, &res_id); in mdc_null_inode()
176 res = ldlm_resource_get(ns, NULL, &res_id, 0, 0); in mdc_null_inode()
710 struct ldlm_res_id res_id; in mdc_enqueue() local
[all …]
Dmdc_reint.c72 struct ldlm_res_id res_id; in mdc_resource_get_unused() local
86 fid_build_reg_res_name(fid, &res_id); in mdc_resource_get_unused()
88 NULL, &res_id, 0, 0); in mdc_resource_get_unused()
/drivers/net/ethernet/mellanox/mlx4/
Dresource_tracker.c74 u64 res_id; member
234 static void *res_tracker_lookup(struct rb_root *root, u64 res_id) in res_tracker_lookup() argument
242 if (res_id < res->res_id) in res_tracker_lookup()
244 else if (res_id > res->res_id) in res_tracker_lookup()
262 if (res->res_id < this->res_id) in res_tracker_insert()
264 else if (res->res_id > this->res_id) in res_tracker_insert()
840 static void *find_res(struct mlx4_dev *dev, u64 res_id, in find_res() argument
846 res_id); in find_res()
849 static int get_res(struct mlx4_dev *dev, int slave, u64 res_id, in get_res() argument
857 r = find_res(dev, res_id, type); in get_res()
[all …]
/drivers/usb/dwc3/
Dgadget.h100 u32 res_id; in dwc3_gadget_ep_get_transfer_index() local
102 res_id = dwc3_readl(dep->regs, DWC3_DEPCMD); in dwc3_gadget_ep_get_transfer_index()
104 return DWC3_DEPCMD_GET_RSC_IDX(res_id); in dwc3_gadget_ep_get_transfer_index()
/drivers/gpu/drm/virtio/
Dvirtgpu_ioctl.c213 uint32_t res_id; in virtio_gpu_resource_create_ioctl() local
240 virtio_gpu_resource_id_get(vgdev, &res_id); in virtio_gpu_resource_create_ioctl()
256 virtio_gpu_cmd_create_resource(vgdev, res_id, rc->format, in virtio_gpu_resource_create_ioctl()
259 ret = virtio_gpu_object_attach(vgdev, qobj, res_id, NULL); in virtio_gpu_resource_create_ioctl()
272 rc_3d.resource_id = cpu_to_le32(res_id); in virtio_gpu_resource_create_ioctl()
285 ret = virtio_gpu_object_attach(vgdev, qobj, res_id, &fence); in virtio_gpu_resource_create_ioctl()
293 qobj->hw_res_handle = res_id; in virtio_gpu_resource_create_ioctl()
307 rc->res_handle = res_id; /* similiar to a VM address */ in virtio_gpu_resource_create_ioctl()
323 virtio_gpu_resource_id_put(vgdev, res_id); in virtio_gpu_resource_create_ioctl()
/drivers/staging/lustre/lustre/mgc/
Dmgc_request.c49 static int mgc_name2resid(char *name, int len, struct ldlm_res_id *res_id, in mgc_name2resid() argument
65 memset(res_id, 0, sizeof(*res_id)); in mgc_name2resid()
66 res_id->name[0] = cpu_to_le64(resname); in mgc_name2resid()
80 res_id->name[1] = cpu_to_le64(resname); in mgc_name2resid()
82 res_id->name[0], res_id->name[1], (char *)&res_id->name[0]); in mgc_name2resid()
86 int mgc_fsname2resid(char *fsname, struct ldlm_res_id *res_id, int type) in mgc_fsname2resid() argument
91 return mgc_name2resid(fsname, strlen(fsname), res_id, type); in mgc_fsname2resid()
95 static int mgc_logname2resid(char *logname, struct ldlm_res_id *res_id, int type) in mgc_logname2resid() argument
109 return mgc_name2resid(logname, len, res_id, type); in mgc_logname2resid()
/drivers/staging/lustre/lustre/ldlm/
Dldlm_lock.c1216 const struct ldlm_res_id *res_id, in ldlm_lock_match() argument
1231 res_id = &old_lock->l_resource->lr_name; in ldlm_lock_match()
1236 res = ldlm_resource_get(ns, NULL, res_id, type, 0); in ldlm_lock_match()
1309 res_id->name[2] : policy->l_extent.start, in ldlm_lock_match()
1311 res_id->name[3] : policy->l_extent.end); in ldlm_lock_match()
1327 ns, type, mode, res_id->name[0], in ldlm_lock_match()
1328 res_id->name[1], in ldlm_lock_match()
1330 res_id->name[2] : policy->l_extent.start, in ldlm_lock_match()
1332 res_id->name[3] : policy->l_extent.end); in ldlm_lock_match()
1476 const struct ldlm_res_id *res_id, in ldlm_lock_create() argument
[all …]
Dldlm_request.c672 const struct ldlm_res_id *res_id, in ldlm_cli_enqueue() argument
701 lock = ldlm_lock_create(ns, res_id, einfo->ei_type, in ldlm_cli_enqueue()
1650 const struct ldlm_res_id *res_id, in ldlm_cli_cancel_unused_resource() argument
1661 res = ldlm_resource_get(ns, NULL, res_id, 0, 0); in ldlm_cli_cancel_unused_resource()
1664 CDEBUG(D_INFO, "No resource %llu\n", res_id->name[0]); in ldlm_cli_cancel_unused_resource()
1709 const struct ldlm_res_id *res_id, in ldlm_cli_cancel_unused() argument
1720 if (res_id) { in ldlm_cli_cancel_unused()
1721 return ldlm_cli_cancel_unused_resource(ns, res_id, NULL, in ldlm_cli_cancel_unused()
1808 const struct ldlm_res_id *res_id, in ldlm_resource_iterate() argument
1816 res = ldlm_resource_get(ns, NULL, res_id, 0, 0); in ldlm_resource_iterate()
/drivers/staging/lustre/lustre/osc/
Dosc_internal.h109 int osc_enqueue_base(struct obd_export *exp, struct ldlm_res_id *res_id,
117 int osc_match_base(struct obd_export *exp, struct ldlm_res_id *res_id,
Dosc_request.c586 struct ldlm_res_id res_id; in osc_resource_get_unused() local
600 ostid_build_res_name(&oa->o_oi, &res_id); in osc_resource_get_unused()
601 res = ldlm_resource_get(ns, NULL, &res_id, 0, 0); in osc_resource_get_unused()
2155 int osc_enqueue_base(struct obd_export *exp, struct ldlm_res_id *res_id, in osc_enqueue_base() argument
2205 mode = ldlm_lock_match(obd->obd_namespace, match_flags, res_id, in osc_enqueue_base()
2259 rc = ldlm_cli_enqueue(exp, &req, einfo, res_id, policy, flags, lvb, in osc_enqueue_base()
2306 int osc_match_base(struct obd_export *exp, struct ldlm_res_id *res_id, in osc_match_base() argument
2333 res_id, type, policy, rc, lockh, unref); in osc_match_base()
2555 struct ldlm_res_id res_id; in osc_get_info() local
2578 ostid_build_res_name(&fm_key->oa.o_oi, &res_id); in osc_get_info()
[all …]
/drivers/s390/cio/
Dscm.c104 scm_attr(res_id);
145 scmdev->attrs.res_id = sale->rid; in scmdev_setup()
/drivers/staging/lustre/lustre/include/
Dlustre_disk.h169 int mgc_fsname2resid(char *fsname, struct ldlm_res_id *res_id, int type);
Dlustre_dlm.h1243 const struct ldlm_res_id *res_id,
1267 const struct ldlm_res_id *res_id,
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_execbuf.c1969 uint32_t *res_id, in vmw_cmd_switch_backup() argument
1977 converter, res_id, &val_node); in vmw_cmd_switch_backup()