[go: nahoru, domu]

Searched defs:ref (Results 1 - 25 of 116) sorted by relevance

12345

/drivers/gpu/drm/nouveau/core/include/core/
H A Dramht.h18 nouveau_ramht_ref(struct nouveau_ramht *obj, struct nouveau_ramht **ref) argument
20 nouveau_gpuobj_ref(&obj->base, (struct nouveau_gpuobj **)ref);
H A Dgpuobj.h60 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/armada/
H A Darmada_510.c64 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/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];
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/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/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/staging/lustre/lustre/libcfs/
H A Dlibcfs_lock.c163 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/clk/mxs/
H A Dclk-ref.c40 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...]
/drivers/iio/adc/
H A Dti-adc081c.c19 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/media/v4l2-core/
H A Dv4l2-device.c42 kref_init(&v4l2_dev->ref);
62 static void v4l2_device_release(struct kref *ref) argument
65 container_of(ref, struct v4l2_device, ref);
73 return kref_put(&v4l2_dev->ref, v4l2_device_release);
/drivers/staging/lustre/lustre/include/
H A Dlu_ref.h118 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/usb/mon/
H A Dusb_mon.h32 struct kref ref; /* Under mon_lock */ member in struct:mon_bus
/drivers/gpu/drm/nouveau/core/core/
H A Dobject.c147 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/gpu/drm/nouveau/
H A Dnouveau_bo.h50 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 Dwindfarm.h42 struct kref ref; member in struct:wf_control
112 struct kref ref; member in struct:wf_sensor
/drivers/media/common/siano/
H A Dsmsdvb-debugfs.c355 static void smsdvb_debugfs_data_release(struct kref *ref) argument
359 debug_data = container_of(ref, struct smsdvb_debugfs, refcount);
/drivers/media/dvb-frontends/
H A Dix2505v.c140 u8 gain, cc, ref, psc, local_osc, lpf; local
158 ref = 8; /* REF =1 */
161 div_factor = (frequency * ref) / 40; /* local osc = 4Mhz */
/drivers/staging/lustre/lnet/lnet/
H A Dlib-eq.c158 int *ref; local
177 cfs_percpt_for_each(ref, i, eq->eq_refs) {
178 LASSERT(*ref >= 0);
179 if (*ref == 0)
183 i, *ref);
/drivers/gpu/drm/ast/
H A Dast_ttm.c39 ast_ttm_mem_global_init(struct drm_global_reference *ref) argument
41 return ttm_mem_global_init(ref->object);
45 ast_ttm_mem_global_release(struct drm_global_reference *ref) argument
47 ttm_mem_global_release(ref->object);
69 global_ref = &ast->ttm.bo_global_ref.ref;
89 drm_global_item_unref(&ast->ttm.bo_global_ref.ref);
261 ast->ttm.bo_global_ref.ref.object,
/drivers/gpu/drm/cirrus/
H A Dcirrus_ttm.c39 cirrus_ttm_mem_global_init(struct drm_global_reference *ref) argument
41 return ttm_mem_global_init(ref->object);
45 cirrus_ttm_mem_global_release(struct drm_global_reference *ref) argument
47 ttm_mem_global_release(ref->object);
69 global_ref = &cirrus->ttm.bo_global_ref.ref;
89 drm_global_item_unref(&cirrus->ttm.bo_global_ref.ref);
261 cirrus->ttm.bo_global_ref.ref.object,
/drivers/gpu/drm/nouveau/core/subdev/clock/
H A Dnv40.c56 u32 ref = 27000, clk = 0; local
59 clk = ref * N / M;
74 u32 ref = 27000, clk = 0; local
77 clk = ref * N1 / M1;
H A Dnv50.c55 u32 coef, ref = clk->read(clk, nv_clk_src_crystal); local
68 nv_error(priv, "ref: bad pll 0x%06x\n", base);
73 ref *= (coef & 0x01000000) ? 2 : 4;
96 nv_error(priv, "ref: bad pll 0x%06x\n", base);
118 return (ref * N / M) >> P;
160 u32 ref = read_pll_ref(priv, base); local
175 freq = ref * N1 / M1;
H A Dnvaa.c54 u32 ref = clk->read(clk, nv_clk_src_href); local
73 clock = ref * N1 / M1;
/drivers/gpu/drm/nouveau/core/subdev/vm/
H A Dbase.c465 nouveau_vm_ref(struct nouveau_vm *ref, struct nouveau_vm **ptr, argument
468 if (ref) {
469 int ret = nouveau_vm_link(ref, pgd);
473 kref_get(&ref->refcount);
481 *ptr = ref;

Completed in 430 milliseconds

12345