/drivers/staging/lustre/lustre/include/ |
H A D | lu_ref.h | 118 static inline void lu_ref_init(struct lu_ref *ref) argument 122 static inline void lu_ref_fini(struct lu_ref *ref) argument 126 static inline struct lu_ref_link *lu_ref_add(struct lu_ref *ref, argument 133 static inline struct lu_ref_link *lu_ref_add_atomic(struct lu_ref *ref, argument 140 static inline void lu_ref_add_at(struct lu_ref *ref, argument 147 static inline void lu_ref_del(struct lu_ref *ref, const char *scope, argument 152 static inline void lu_ref_set_at(struct lu_ref *ref, struct lu_ref_link *link, argument 158 static inline void lu_ref_del_at(struct lu_ref *ref, struct lu_ref_link *link, argument 172 static inline void lu_ref_print(const struct lu_ref *ref) argument
|
/drivers/gpu/drm/ |
H A D | drm_global.c | 66 int drm_global_item_ref(struct drm_global_reference *ref) argument 69 struct drm_global_item *item = &glob[ref->global_type]; 73 item->object = kzalloc(ref->size, GFP_KERNEL); 79 ref->object = item->object; 80 ret = ref->init(ref); 86 ref->object = item->object; 96 void drm_global_item_unref(struct drm_global_reference *ref) argument 98 struct drm_global_item *item = &glob[ref->global_type]; 102 BUG_ON(ref [all...] |
/drivers/clk/mxs/ |
H A D | clk-ref.c | 40 struct clk_ref *ref = to_clk_ref(hw); local 42 writel_relaxed(1 << ((ref->idx + 1) * 8 - 1), ref->reg + CLR); 49 struct clk_ref *ref = to_clk_ref(hw); local 51 writel_relaxed(1 << ((ref->idx + 1) * 8 - 1), ref->reg + SET); 57 struct clk_ref *ref = to_clk_ref(hw); local 59 u8 frac = (readl_relaxed(ref->reg) >> (ref->idx * 8)) & 0x3f; 93 struct clk_ref *ref local 131 struct clk_ref *ref; local [all...] |
H A D | Makefile | 5 obj-y += clk.o clk-pll.o clk-ref.o clk-div.o clk-frac.o clk-ssp.o
|
/drivers/gpu/drm/nouveau/core/include/core/ |
H A D | ramht.h | 18 nouveau_ramht_ref(struct nouveau_ramht *obj, struct nouveau_ramht **ref) argument 20 nouveau_gpuobj_ref(&obj->base, (struct nouveau_gpuobj **)ref);
|
H A D | gpuobj.h | 60 nouveau_gpuobj_ref(struct nouveau_gpuobj *obj, struct nouveau_gpuobj **ref) argument 62 nouveau_object_ref(&obj->base, (struct nouveau_object **)ref);
|
/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_ttm_glue.c | 46 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/iio/adc/ |
H A D | ti-adc081c.c | 19 struct regulator *ref; member in struct:adc081c 41 err = regulator_get_voltage(adc->ref); 85 adc->ref = devm_regulator_get(&client->dev, "vref"); 86 if (IS_ERR(adc->ref)) 87 return PTR_ERR(adc->ref); 89 err = regulator_enable(adc->ref); 110 regulator_disable(adc->ref); 121 regulator_disable(adc->ref);
|
/drivers/xen/ |
H A D | grant-table.c | 96 void (*update_entry)(grant_ref_t ref, domid_t domid, 106 int (*end_foreign_access_ref)(grant_ref_t ref, int readonly); 114 unsigned long (*end_foreign_transfer_ref)(grant_ref_t ref); 121 int (*query_foreign_access)(grant_ref_t ref); 146 int ref, rc = 0; local 157 ref = head = gnttab_free_head; 166 return ref; 195 static void put_free_entry(grant_ref_t ref) argument 199 gnttab_entry(ref) = gnttab_free_head; 200 gnttab_free_head = ref; 217 gnttab_update_entry_v1(grant_ref_t ref, domid_t domid, unsigned long frame, unsigned flags) argument 229 gnttab_grant_foreign_access_ref(grant_ref_t ref, domid_t domid, unsigned long frame, int readonly) argument 240 int ref; local 252 gnttab_query_foreign_access_v1(grant_ref_t ref) argument 257 gnttab_query_foreign_access(grant_ref_t ref) argument 263 gnttab_end_foreign_access_ref_v1(grant_ref_t ref, int readonly) argument 279 _gnttab_end_foreign_access_ref(grant_ref_t ref, int readonly) argument 284 gnttab_end_foreign_access_ref(grant_ref_t ref, int readonly) argument 295 grant_ref_t ref; member in struct:deferred_entry 349 gnttab_add_deferred(grant_ref_t ref, bool readonly, struct page *page) argument 375 gnttab_end_foreign_access(grant_ref_t ref, int readonly, unsigned long page) argument 390 int ref; local 401 gnttab_grant_foreign_transfer_ref(grant_ref_t ref, domid_t domid, unsigned long pfn) argument 408 gnttab_end_foreign_transfer_ref_v1(grant_ref_t ref) argument 439 gnttab_end_foreign_transfer_ref(grant_ref_t ref) argument 445 gnttab_end_foreign_transfer(grant_ref_t ref) argument 453 gnttab_free_grant_reference(grant_ref_t ref) argument 461 grant_ref_t ref; local [all...] |
/drivers/gpu/drm/armada/ |
H A D | armada_510.c | 64 uint32_t rate, ref, div; local 67 ref = clk_round_rate(clk, rate); 68 div = DIV_ROUND_UP(ref, rate); 72 clk_set_rate(clk, ref);
|
/drivers/staging/lustre/lustre/libcfs/ |
H A D | libcfs_lock.c | 163 atomic_t *ref; local 166 refs = cfs_percpt_alloc(cptab, sizeof(*ref)); 170 cfs_percpt_for_each(ref, i, refs) 171 atomic_set(ref, init_val); 180 atomic_t *ref; local 184 cfs_percpt_for_each(ref, i, refs) 185 val += atomic_read(ref);
|
/drivers/gpu/drm/ttm/ |
H A D | ttm_object.c | 55 * @ref_hash: Hash tables of ref objects, one per ttm_ref_type, 56 * for fast lookup of ref objects given a base object. 104 * @head: List entry for the per-file list of ref-objects. 108 * @obj: Base object this ref object is referencing. 110 * @ref_type: Type of ref object. 115 * a particular ttm_object_file. It also carries a ref count to avoid creating 116 * multiple ref objects if a ttm_object_file references the same base 274 * ttm_ref_object_exists - Check whether a caller has a valid ref object 288 struct ttm_ref_object *ref; local 295 * Verify that the ref objec 324 struct ttm_ref_object *ref; local 389 struct ttm_ref_object *ref = local 414 struct ttm_ref_object *ref; local 433 struct ttm_ref_object *ref; local [all...] |
/drivers/gpu/host1x/ |
H A D | intr.h | 74 * @ref must be passed if cancellation is possible, else NULL 80 struct host1x_waitlist *waiter, void **ref); 84 * You must call this if you passed non-NULL as ref. 85 * @ref the ref returned from host1x_intr_add_action() 87 void host1x_intr_put_ref(struct host1x *host, u32 id, void *ref);
|
/drivers/gpu/drm/nouveau/core/core/ |
H A D | object.c | 147 nouveau_object_ref(struct nouveau_object *obj, struct nouveau_object **ref) argument 154 if (*ref) { 155 int dead = atomic_dec_and_test(&(*ref)->refcount); 156 nv_trace(*ref, "dec() == %d\n", atomic_read(&(*ref)->refcount)); 158 nouveau_object_dtor(*ref); 161 *ref = obj; 167 int ref = atomic_add_return(1, &object->usecount); local 171 if (ref != 1) 297 int ref local [all...] |
/drivers/misc/mic/host/ |
H A D | mic_smpt.c | 78 static void mic_add_smpt_entry(int spt, s64 *ref, u64 addr, argument 91 smpt_info->entry[i].ref_count += ref[i - spt]; 100 int entries, s64 *ref, size_t size) 138 mic_add_smpt_entry(spt, ref, dma_addr, entries, mdev); 151 size_t size, s64 *ref, u64 *smpt_start) 158 ref[i++] = min(mic_smpt_align_high(mdev, start + 1), 211 s64 *ref; local 217 ref = kmalloc(mdev->smpt->info.num_reg * sizeof(s64), GFP_KERNEL); 218 if (!ref) 222 ref, 99 mic_smpt_op(struct mic_device *mdev, u64 dma_addr, int entries, s64 *ref, size_t size) argument 150 mic_get_smpt_ref_count(struct mic_device *mdev, dma_addr_t dma_addr, size_t size, s64 *ref, u64 *smpt_start) argument 258 s64 *ref; local [all...] |
/drivers/staging/android/ |
H A D | binder.c | 254 /* node + proc => ref (transaction) */ 255 /* desc + proc => ref (transaction, inc/dec ref) */ 1006 struct binder_ref *ref; local 1009 ref = rb_entry(n, struct binder_ref, rb_node_desc); 1011 if (desc < ref->desc) 1013 else if (desc > ref->desc) 1016 return ref; 1027 struct binder_ref *ref, *new_ref; local 1031 ref 1087 binder_delete_ref(struct binder_ref *ref) argument 1112 binder_inc_ref(struct binder_ref *ref, int strong, struct list_head *target_list) argument 1136 binder_dec_ref(struct binder_ref *ref, int strong) argument 1286 struct binder_ref *ref = binder_get_ref(proc, fp->handle); local 1379 struct binder_ref *ref; local 1543 struct binder_ref *ref; local 1588 struct binder_ref *ref = binder_get_ref(proc, fp->handle); local 1780 struct binder_ref *ref; local 1983 struct binder_ref *ref; local 3020 struct binder_ref *ref; local 3104 struct binder_ref *ref; local 3325 struct binder_ref *ref; local 3349 print_binder_ref(struct seq_file *m, struct binder_ref *ref) argument 3506 struct binder_ref *ref = rb_entry(n, struct binder_ref, local [all...] |
H A D | binder_trace.h | 149 struct binder_ref *ref), 150 TP_ARGS(t, node, ref), 163 __entry->ref_debug_id = ref->debug_id; 164 __entry->ref_desc = ref->desc; 173 TP_PROTO(struct binder_transaction *t, struct binder_ref *ref), 174 TP_ARGS(t, ref), 185 __entry->ref_debug_id = ref->debug_id; 186 __entry->ref_desc = ref->desc; 187 __entry->node_debug_id = ref->node->debug_id; 188 __entry->node_ptr = ref [all...] |
/drivers/infiniband/hw/ipath/ |
H A D | ipath_mmap.c | 44 * @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 D | qib_mmap.c | 44 * @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/gpu/drm/nouveau/ |
H A D | nouveau_bo.h | 50 nouveau_bo_ref(struct nouveau_bo *ref, struct nouveau_bo **pnvbo) argument 58 *pnvbo = ref ? nouveau_bo(ttm_bo_reference(&ref->bo)) : NULL;
|
/drivers/macintosh/ |
H A D | windfarm_ad7417_sensor.c | 28 struct kref ref; member in struct:wf_ad7417_priv 153 static void wf_ad7417_release(struct kref *ref) argument 155 struct wf_ad7417_priv *pv = container_of(ref, 156 struct wf_ad7417_priv, ref); 165 kref_put(&pv->ref, wf_ad7417_release); 188 kref_get(&pv->ref); 269 kref_init(&pv->ref); 305 kref_put(&pv->ref, wf_ad7417_release);
|
H A D | windfarm_smu_sat.c | 37 struct kref ref; member in struct:wf_sat 180 static void wf_sat_release(struct kref *ref) argument 182 struct wf_sat *sat = container_of(ref, struct wf_sat, ref); 195 kref_put(&sat->ref, wf_sat_release); 223 kref_init(&sat->ref); 296 kref_get(&sat->ref); 323 kref_get(&sat->ref); 346 kref_put(&sat->ref, wf_sat_release);
|
/drivers/usb/mon/ |
H A D | mon_main.c | 33 * 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...] |
/drivers/infiniband/core/ |
H A D | uverbs_main.c | 131 static void ib_uverbs_release_dev(struct kref *ref) argument 134 container_of(ref, struct ib_uverbs_device, ref); 139 static void ib_uverbs_release_event_file(struct kref *ref) argument 142 container_of(ref, struct ib_uverbs_event_file, ref); 161 kref_put(&ev_file->ref, ib_uverbs_release_event_file); 302 static void ib_uverbs_release_file(struct kref *ref) argument 305 container_of(ref, struct ib_uverbs_file, ref); [all...] |
/drivers/gpu/drm/radeon/ |
H A D | rv740_dpm.c | 36 u32 ref = 0; local 40 ref = 1; 43 ref = 2; 46 ref = 3; 49 ref = 2; 52 ref = 3; 55 ref = 4; 58 ref = 5; 62 ref = 0; 66 return ref; [all...] |