Searched refs:ref (Results 1 - 25 of 106) sorted by relevance

12345

/drivers/gpu/drm/
H A Ddrm_global.c66 int drm_global_item_ref(struct drm_global_reference *ref) argument
69 struct drm_global_item *item = &glob[ref->global_type];
74 item->object = kzalloc(ref->size, GFP_KERNEL);
80 ref->object = item->object;
81 ret = ref->init(ref);
87 ref->object = item->object;
98 void drm_global_item_unref(struct drm_global_reference *ref) argument
100 struct drm_global_item *item = &glob[ref->global_type];
104 BUG_ON(ref
[all...]
/drivers/gpu/drm/ttm/
H A Dttm_object.c48 * @ref_hash: Hash tables of ref objects, one per ttm_ref_type,
49 * for fast lookup of ref objects given a base object.
94 * @head: List entry for the per-file list of ref-objects.
98 * @obj: Base object this ref object is referencing.
100 * @ref_type: Type of ref object.
105 * a particular ttm_object_file. It also carries a ref count to avoid creating
106 * multiple ref objects if a ttm_object_file references the same base
251 struct ttm_ref_object *ref; local
264 ref = drm_hash_entry(hash, struct ttm_ref_object, hash);
265 kref_get(&ref
312 struct ttm_ref_object *ref = local
337 struct ttm_ref_object *ref; local
356 struct ttm_ref_object *ref; local
[all...]
/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_ttm_glue.c46 static int vmw_ttm_mem_global_init(struct drm_global_reference *ref) argument
49 return ttm_mem_global_init(ref->object);
52 static void vmw_ttm_mem_global_release(struct drm_global_reference *ref) argument
54 ttm_mem_global_release(ref->object);
76 global_ref = &dev_priv->bo_global_ref.ref;
96 drm_global_item_unref(&dev_priv->bo_global_ref.ref);
/drivers/xen/
H A Dgrant-table.c97 void (*update_entry)(grant_ref_t ref, domid_t domid,
107 int (*end_foreign_access_ref)(grant_ref_t ref, int readonly);
115 unsigned long (*end_foreign_transfer_ref)(grant_ref_t ref);
122 int (*query_foreign_access)(grant_ref_t ref);
131 void (*update_subpage_entry)(grant_ref_t ref, domid_t domid,
144 void (*update_trans_entry)(grant_ref_t ref, domid_t domid, int flags,
172 int ref, rc = 0; local
183 ref = head = gnttab_free_head;
192 return ref;
221 static void put_free_entry(grant_ref_t ref) argument
243 gnttab_update_entry_v1(grant_ref_t ref, domid_t domid, unsigned long frame, unsigned flags) argument
252 gnttab_update_entry_v2(grant_ref_t ref, domid_t domid, unsigned long frame, unsigned flags) argument
264 gnttab_grant_foreign_access_ref(grant_ref_t ref, domid_t domid, unsigned long frame, int readonly) argument
275 int ref; local
287 gnttab_update_subpage_entry_v2(grant_ref_t ref, domid_t domid, unsigned long frame, int flags, unsigned page_off, unsigned length) argument
301 gnttab_grant_foreign_access_subpage_ref(grant_ref_t ref, domid_t domid, unsigned long frame, int flags, unsigned page_off, unsigned length) argument
324 int ref, rc; local
347 gnttab_update_trans_entry_v2(grant_ref_t ref, domid_t domid, int flags, domid_t trans_domid, grant_ref_t trans_gref) argument
359 gnttab_grant_foreign_access_trans_ref(grant_ref_t ref, domid_t domid, int flags, domid_t trans_domid, grant_ref_t trans_gref) argument
381 int ref, rc; local
404 gnttab_query_foreign_access_v1(grant_ref_t ref) argument
409 gnttab_query_foreign_access_v2(grant_ref_t ref) argument
414 gnttab_query_foreign_access(grant_ref_t ref) argument
420 gnttab_end_foreign_access_ref_v1(grant_ref_t ref, int readonly) argument
438 gnttab_end_foreign_access_ref_v2(grant_ref_t ref, int readonly) argument
461 gnttab_end_foreign_access_ref(grant_ref_t ref, int readonly) argument
467 gnttab_end_foreign_access(grant_ref_t ref, int readonly, unsigned long page) argument
485 int ref; local
496 gnttab_grant_foreign_transfer_ref(grant_ref_t ref, domid_t domid, unsigned long pfn) argument
503 gnttab_end_foreign_transfer_ref_v1(grant_ref_t ref) argument
534 gnttab_end_foreign_transfer_ref_v2(grant_ref_t ref) argument
565 gnttab_end_foreign_transfer_ref(grant_ref_t ref) argument
571 gnttab_end_foreign_transfer(grant_ref_t ref) argument
579 gnttab_free_grant_reference(grant_ref_t ref) argument
587 grant_ref_t ref; local
[all...]
/drivers/gpu/drm/nouveau/
H A Dnouveau_ttm.c45 nouveau_ttm_mem_global_init(struct drm_global_reference *ref) argument
47 return ttm_mem_global_init(ref->object);
51 nouveau_ttm_mem_global_release(struct drm_global_reference *ref) argument
53 ttm_mem_global_release(ref->object);
76 global_ref = &dev_priv->ttm.bo_global_ref.ref;
99 drm_global_item_unref(&dev_priv->ttm.bo_global_ref.ref);
H A Dnouveau_channel.c136 kref_init(&chan->ref);
235 nouveau_channel_get_unlocked(struct nouveau_channel *ref) argument
239 if (likely(ref && atomic_inc_not_zero(&ref->users)))
240 nouveau_channel_ref(ref, &chan);
336 nouveau_channel_del(struct kref *ref) argument
339 container_of(ref, struct nouveau_channel, ref);
349 kref_get(&chan->ref);
352 kref_put(&(*pchan)->ref, nouveau_channel_de
[all...]
H A Dnouveau_ramht.c279 nouveau_ramht_del(struct kref *ref) argument
282 container_of(ref, struct nouveau_ramht, refcount);
289 nouveau_ramht_ref(struct nouveau_ramht *ref, struct nouveau_ramht **ptr, argument
295 if (ref)
296 kref_get(&ref->refcount);
308 *ptr = ref;
H A Dnouveau_fence.c53 struct kref ref; member in struct:nouveau_semaphore
65 nouveau_fence_del(struct kref *ref) argument
68 container_of(ref, struct nouveau_fence, refcount);
296 kref_init(&sema->ref);
308 semaphore_free(struct kref *ref) argument
311 container_of(ref, struct nouveau_semaphore, ref);
330 kref_put(&sema->ref, semaphore_free);
380 kref_get(&sema->ref);
434 kref_get(&sema->ref);
[all...]
/drivers/staging/android/
H A Dbinder.c246 /* node + proc => ref (transaction) */
247 /* desc + proc => ref (transaction, inc/dec ref) */
1090 struct binder_ref *ref; local
1093 ref = rb_entry(n, struct binder_ref, rb_node_desc);
1095 if (desc < ref->desc)
1097 else if (desc > ref->desc)
1100 return ref;
1111 struct binder_ref *ref, *new_ref; local
1115 ref
1172 binder_delete_ref(struct binder_ref *ref) argument
1198 binder_inc_ref(struct binder_ref *ref, int strong, struct list_head *target_list) argument
1221 binder_dec_ref(struct binder_ref *ref, int strong) argument
1372 struct binder_ref *ref = binder_get_ref(proc, fp->handle); local
1469 struct binder_ref *ref; local
1622 struct binder_ref *ref; local
1662 struct binder_ref *ref = binder_get_ref(proc, fp->handle); local
1841 struct binder_ref *ref; local
2062 struct binder_ref *ref; local
3043 struct binder_ref *ref; local
3071 struct binder_ref *ref = rb_entry(n, struct binder_ref, local
3286 struct binder_ref *ref; local
3311 print_binder_ref(struct seq_file *m, struct binder_ref *ref) argument
3468 struct binder_ref *ref = rb_entry(n, struct binder_ref, local
[all...]
H A Dbinder_trace.h149 struct binder_ref *ref),
150 TP_ARGS(t, node, ref),
163 __entry->ref_debug_id = ref->debug_id;
164 __entry->ref_desc = ref->desc;
172 TP_PROTO(struct binder_transaction *t, struct binder_ref *ref),
173 TP_ARGS(t, ref),
184 __entry->ref_debug_id = ref->debug_id;
185 __entry->ref_desc = ref->desc;
186 __entry->node_debug_id = ref->node->debug_id;
187 __entry->node_ptr = ref
[all...]
/drivers/infiniband/hw/ipath/
H A Dipath_mmap.c44 * @ref: a pointer to the kref within struct ipath_mmap_info
46 void ipath_release_mmap_info(struct kref *ref) argument
49 container_of(ref, struct ipath_mmap_info, ref);
68 kref_get(&ip->ref);
75 kref_put(&ip->ref, ipath_release_mmap_info);
154 kref_init(&ip->ref);
/drivers/infiniband/hw/qib/
H A Dqib_mmap.c44 * @ref: a pointer to the kref within struct qib_mmap_info
46 void qib_release_mmap_info(struct kref *ref) argument
49 container_of(ref, struct qib_mmap_info, ref);
68 kref_get(&ip->ref);
75 kref_put(&ip->ref, qib_release_mmap_info);
154 kref_init(&ip->ref);
/drivers/media/video/
H A Dv4l2-ctrls.c1169 struct v4l2_ctrl_ref *ref, *next_ref; local
1178 list_for_each_entry_safe(ref, next_ref, &hdl->ctrl_refs, node) {
1179 list_del(&ref->node);
1180 kfree(ref);
1206 struct v4l2_ctrl_ref *ref; local
1209 list_for_each_entry(ref, &hdl->ctrl_refs, node) {
1212 if (V4L2_CTRL_ID2CLASS(ref->ctrl->id) == V4L2_CTRL_CLASS_USER &&
1213 V4L2_CTRL_DRIVER_PRIV(ref->ctrl->id)) {
1214 if (!type_is_int(ref->ctrl))
1217 return ref;
1227 struct v4l2_ctrl_ref *ref; local
1255 struct v4l2_ctrl_ref *ref = NULL; local
1268 struct v4l2_ctrl_ref *ref = find_ref_lock(hdl, id); local
1278 struct v4l2_ctrl_ref *ref; local
1520 struct v4l2_ctrl_ref *ref; local
1753 struct v4l2_ctrl_ref *ref; local
1901 struct v4l2_ctrl_ref *ref; local
[all...]
H A Dv4l2-device.c42 kref_init(&v4l2_dev->ref);
61 static void v4l2_device_release(struct kref *ref) argument
64 container_of(ref, struct v4l2_device, ref);
72 return kref_put(&v4l2_dev->ref, v4l2_device_release);
/drivers/net/
H A Dxen-netfront.c192 grant_ref_t ref = np->grant_rx_ref[i]; local
194 return ref;
242 grant_ref_t ref; local
309 ref = gnttab_claim_grant_reference(&np->gref_rx_head);
310 BUG_ON((signed short)ref < 0);
311 np->grant_rx_ref[id] = ref;
317 gnttab_grant_foreign_access_ref(ref,
323 req->gref = ref;
423 grant_ref_t ref; local
439 ref
487 grant_ref_t ref; local
597 xennet_move_rx_slot(struct netfront_info *np, struct sk_buff *skb, grant_ref_t ref) argument
622 grant_ref_t ref; local
663 grant_ref_t ref = xennet_get_rx_ref(np, cons); local
1117 int id, ref; local
1412 xennet_end_access(int ref, void *page) argument
1634 grant_ref_t ref; local
[all...]
/drivers/macintosh/
H A Dwindfarm.h42 struct kref ref; member in struct:wf_control
91 struct kref ref; member in struct:wf_sensor
H A Dwindfarm_core.c153 struct wf_control *ct = container_of(kref, struct wf_control, ref);
210 kref_init(&new_ct->ref);
240 kref_put(&ct->ref, wf_control_release);
266 kref_get(&ct->ref);
274 kref_put(&ct->ref, wf_control_release);
287 struct wf_sensor *sr = container_of(kref, struct wf_sensor, ref);
323 kref_init(&new_sr->ref);
379 kref_get(&sr->ref);
387 kref_put(&sr->ref, wf_sensor_release);
/drivers/usb/mon/
H A Dmon_main.c33 * This must be called with mon_lock taken because of mbus->ref.
56 kref_get(&mbus->ref);
62 * This is called with mon_lock taken, so we can decrement mbus->ref.
75 kref_put(&mbus->ref, mon_bus_drop);
217 kref_put(&mbus->ref, mon_bus_drop);
269 struct mon_bus *mbus = container_of(r, struct mon_bus, ref);
285 kref_init(&mbus->ref);
312 kref_init(&mbus->ref);
409 atomic_set(&mbus->ref.refcount, 2); /* Force leak */
413 kref_put(&mbus->ref, mon_bus_dro
[all...]
H A Dusb_mon.h32 struct kref ref; /* Under mon_lock */ member in struct:mon_bus
/drivers/infiniband/core/
H A Duverbs_main.c120 static void ib_uverbs_release_dev(struct kref *ref) argument
123 container_of(ref, struct ib_uverbs_device, ref);
128 static void ib_uverbs_release_event_file(struct kref *ref) argument
131 container_of(ref, struct ib_uverbs_event_file, ref);
150 kref_put(&ev_file->ref, ib_uverbs_release_event_file);
276 static void ib_uverbs_release_file(struct kref *ref) argument
279 container_of(ref, struct ib_uverbs_file, ref);
[all...]
H A Duverbs.h72 struct kref ref; member in struct:ib_uverbs_device
84 struct kref ref; member in struct:ib_uverbs_event_file
95 struct kref ref; member in struct:ib_uverbs_file
/drivers/cpufreq/
H A Domap-cpufreq.c45 unsigned long ref; member in struct:lpj_info
173 lpj->ref = per_cpu(cpu_data, i).loops_per_jiffy;
178 cpufreq_scale(lpj->ref, lpj->freq, freqs.new);
183 global_lpj_ref.ref = loops_per_jiffy;
186 loops_per_jiffy = cpufreq_scale(global_lpj_ref.ref, global_lpj_ref.freq,
/drivers/s390/scsi/
H A Dzfcp_ccw.c28 kref_get(&adapter->ref);
38 kref_put(&adapter->ref, zfcp_adapter_release);
160 kref_get(&adapter->ref);
/drivers/isdn/hardware/eicon/
H A Ddi.h90 void assign_queue(ADAPTER *a, byte e_no, word ref);
91 byte get_assign(ADAPTER *a, word ref);
/drivers/staging/media/lirc/
H A Dlirc_zilog.c67 struct kref ref; member in struct:IR_rx
83 struct kref ref; member in struct:IR_tx
96 struct kref ref; member in struct:IR
174 kref_get(&ir->ref);
177 kref_get(&ir->ref);
183 static void release_ir_device(struct kref *ref) argument
185 struct IR *ir = container_of(ref, struct IR, ref);
210 return kref_put(&ir->ref, release_ir_device);
213 released = kref_put(&ir->ref, release_ir_devic
243 release_ir_rx(struct kref *ref) argument
295 release_ir_tx(struct kref *ref) argument
[all...]

Completed in 878 milliseconds

12345