/drivers/xen/ |
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); 130 void (*update_subpage_entry)(grant_ref_t ref, domid_t domid, 143 void (*update_trans_entry)(grant_ref_t ref, domid_t domid, int flags, 172 int ref, rc = 0; in get_free_entries() local 183 ref = head = gnttab_free_head; in get_free_entries() 192 return ref; in get_free_entries() 221 static void put_free_entry(grant_ref_t ref) in put_free_entry() argument [all …]
|
/drivers/clk/mxs/ |
D | clk-ref.c | 40 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_enable() local 42 writel_relaxed(1 << ((ref->idx + 1) * 8 - 1), ref->reg + CLR); in clk_ref_enable() 49 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_disable() local 51 writel_relaxed(1 << ((ref->idx + 1) * 8 - 1), ref->reg + SET); in clk_ref_disable() 57 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_recalc_rate() local 59 u8 frac = (readl_relaxed(ref->reg) >> (ref->idx * 8)) & 0x3f; in clk_ref_recalc_rate() 93 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_set_rate() local 97 u8 frac, shift = ref->idx * 8; in clk_ref_set_rate() 110 val = readl_relaxed(ref->reg); in clk_ref_set_rate() 113 writel_relaxed(val, ref->reg); in clk_ref_set_rate() [all …]
|
/drivers/gpu/drm/ttm/ |
D | ttm_object.c | 252 struct ttm_ref_object *ref; in ttm_ref_object_add() local 265 ref = drm_hash_entry(hash, struct ttm_ref_object, hash); in ttm_ref_object_add() 266 kref_get(&ref->kref); in ttm_ref_object_add() 272 ret = ttm_mem_global_alloc(mem_glob, sizeof(*ref), in ttm_ref_object_add() 276 ref = kmalloc(sizeof(*ref), GFP_KERNEL); in ttm_ref_object_add() 277 if (unlikely(ref == NULL)) { in ttm_ref_object_add() 278 ttm_mem_global_free(mem_glob, sizeof(*ref)); in ttm_ref_object_add() 282 ref->hash.key = base->hash.key; in ttm_ref_object_add() 283 ref->obj = base; in ttm_ref_object_add() 284 ref->tfile = tfile; in ttm_ref_object_add() [all …]
|
/drivers/gpu/drm/ |
D | drm_global.c | 66 int drm_global_item_ref(struct drm_global_reference *ref) in drm_global_item_ref() argument 69 struct drm_global_item *item = &glob[ref->global_type]; in drm_global_item_ref() 74 item->object = kzalloc(ref->size, GFP_KERNEL); in drm_global_item_ref() 80 ref->object = item->object; in drm_global_item_ref() 81 ret = ref->init(ref); in drm_global_item_ref() 87 ref->object = item->object; in drm_global_item_ref() 98 void drm_global_item_unref(struct drm_global_reference *ref) in drm_global_item_unref() argument 100 struct drm_global_item *item = &glob[ref->global_type]; in drm_global_item_unref() 104 BUG_ON(ref->object != item->object); in drm_global_item_unref() 106 ref->release(ref); in drm_global_item_unref()
|
/drivers/iio/adc/ |
D | ti-adc081c.c | 18 struct regulator *ref; member 40 err = regulator_get_voltage(adc->ref); in adc081c_read_raw() 84 adc->ref = regulator_get(&client->dev, "vref"); in adc081c_probe() 85 if (IS_ERR(adc->ref)) { in adc081c_probe() 86 err = PTR_ERR(adc->ref); in adc081c_probe() 90 err = regulator_enable(adc->ref); in adc081c_probe() 111 regulator_disable(adc->ref); in adc081c_probe() 113 regulator_put(adc->ref); in adc081c_probe() 126 regulator_disable(adc->ref); in adc081c_remove() 127 regulator_put(adc->ref); in adc081c_remove()
|
/drivers/android/ |
D | binder.c | 1132 struct binder_ref *ref; in binder_get_ref() local 1135 ref = rb_entry(n, struct binder_ref, rb_node_desc); in binder_get_ref() 1137 if (desc < ref->desc) { in binder_get_ref() 1139 } else if (desc > ref->desc) { in binder_get_ref() 1141 } else if (need_strong_ref && !ref->strong) { in binder_get_ref() 1145 return ref; in binder_get_ref() 1157 struct binder_ref *ref, *new_ref; in binder_get_ref_for_node() local 1162 ref = rb_entry(parent, struct binder_ref, rb_node_node); in binder_get_ref_for_node() 1164 if (node < ref->node) in binder_get_ref_for_node() 1166 else if (node > ref->node) in binder_get_ref_for_node() [all …]
|
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->node->ptr;
|
/drivers/staging/csr/ |
D | ul_int.c | 91 unsigned char id, ref; in ul_register_client() local 110 for (ref = 0; ref < UNIFI_MAX_DATA_REFERENCES; ref ++) { in ul_register_client() 111 ul_clients[id].reply_bulkdata[ref] = kmalloc(sizeof(bulk_data_t), GFP_KERNEL); in ul_register_client() 113 if (ul_clients[id].reply_bulkdata[ref] == NULL) { in ul_register_client() 114 for (; ref > 0; ref --) { in ul_register_client() 115 kfree(ul_clients[id].reply_bulkdata[ref - 1]); in ul_register_client() 154 int ref; in ul_deregister_client() local 163 for (ref = 0; ref < UNIFI_MAX_DATA_REFERENCES; ref ++) { in ul_deregister_client() 164 kfree(ul_client->reply_bulkdata[ref]); in ul_deregister_client()
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_ttm_glue.c | 46 static int vmw_ttm_mem_global_init(struct drm_global_reference *ref) in vmw_ttm_mem_global_init() argument 49 return ttm_mem_global_init(ref->object); in vmw_ttm_mem_global_init() 52 static void vmw_ttm_mem_global_release(struct drm_global_reference *ref) in vmw_ttm_mem_global_release() argument 54 ttm_mem_global_release(ref->object); in vmw_ttm_mem_global_release() 76 global_ref = &dev_priv->bo_global_ref.ref; in vmw_ttm_global_init() 96 drm_global_item_unref(&dev_priv->bo_global_ref.ref); in vmw_ttm_global_release()
|
/drivers/net/ |
D | xen-netfront.c | 192 grant_ref_t ref = np->grant_rx_ref[i]; in xennet_get_rx_ref() local 194 return ref; in xennet_get_rx_ref() 242 grant_ref_t ref; in xennet_alloc_rx_buffers() local 309 ref = gnttab_claim_grant_reference(&np->gref_rx_head); in xennet_alloc_rx_buffers() 310 BUG_ON((signed short)ref < 0); in xennet_alloc_rx_buffers() 311 np->grant_rx_ref[id] = ref; in xennet_alloc_rx_buffers() 317 gnttab_grant_foreign_access_ref(ref, in xennet_alloc_rx_buffers() 323 req->gref = ref; in xennet_alloc_rx_buffers() 423 grant_ref_t ref; in xennet_make_frags() local 439 ref = gnttab_claim_grant_reference(&np->gref_tx_head); in xennet_make_frags() [all …]
|
/drivers/infiniband/core/ |
D | uverbs_main.c | 122 static void ib_uverbs_release_dev(struct kref *ref) in ib_uverbs_release_dev() argument 125 container_of(ref, struct ib_uverbs_device, ref); in ib_uverbs_release_dev() 130 static void ib_uverbs_release_event_file(struct kref *ref) in ib_uverbs_release_event_file() argument 133 container_of(ref, struct ib_uverbs_event_file, ref); in ib_uverbs_release_event_file() 152 kref_put(&ev_file->ref, ib_uverbs_release_event_file); in ib_uverbs_release_ucq() 285 static void ib_uverbs_release_file(struct kref *ref) in ib_uverbs_release_file() argument 288 container_of(ref, struct ib_uverbs_file, ref); in ib_uverbs_release_file() 291 kref_put(&file->device->ref, ib_uverbs_release_dev); in ib_uverbs_release_file() 390 kref_put(&file->uverbs_file->ref, ib_uverbs_release_file); in ib_uverbs_event_close() 392 kref_put(&file->ref, ib_uverbs_release_event_file); in ib_uverbs_event_close() [all …]
|
/drivers/media/v4l2-core/ |
D | v4l2-ctrls.c | 1396 struct v4l2_ctrl_ref *ref, *next_ref; in v4l2_ctrl_handler_free() local 1405 list_for_each_entry_safe(ref, next_ref, &hdl->ctrl_refs, node) { in v4l2_ctrl_handler_free() 1406 list_del(&ref->node); in v4l2_ctrl_handler_free() 1407 kfree(ref); in v4l2_ctrl_handler_free() 1433 struct v4l2_ctrl_ref *ref; in find_private_ref() local 1436 list_for_each_entry(ref, &hdl->ctrl_refs, node) { in find_private_ref() 1439 if (V4L2_CTRL_ID2CLASS(ref->ctrl->id) == V4L2_CTRL_CLASS_USER && in find_private_ref() 1440 V4L2_CTRL_DRIVER_PRIV(ref->ctrl->id)) { in find_private_ref() 1441 if (!type_is_int(ref->ctrl)) in find_private_ref() 1444 return ref; in find_private_ref() [all …]
|
D | v4l2-device.c | 42 kref_init(&v4l2_dev->ref); in v4l2_device_register() 61 static void v4l2_device_release(struct kref *ref) in v4l2_device_release() argument 64 container_of(ref, struct v4l2_device, ref); in v4l2_device_release() 72 return kref_put(&v4l2_dev->ref, v4l2_device_release); in v4l2_device_put()
|
/drivers/infiniband/hw/ipath/ |
D | ipath_mmap.c | 46 void ipath_release_mmap_info(struct kref *ref) in ipath_release_mmap_info() argument 49 container_of(ref, struct ipath_mmap_info, ref); in ipath_release_mmap_info() 68 kref_get(&ip->ref); in ipath_vma_open() 75 kref_put(&ip->ref, ipath_release_mmap_info); in ipath_vma_close() 154 kref_init(&ip->ref); in ipath_create_mmap_info()
|
/drivers/infiniband/hw/qib/ |
D | qib_mmap.c | 46 void qib_release_mmap_info(struct kref *ref) in qib_release_mmap_info() argument 49 container_of(ref, struct qib_mmap_info, ref); in qib_release_mmap_info() 68 kref_get(&ip->ref); in qib_vma_open() 75 kref_put(&ip->ref, qib_release_mmap_info); in qib_vma_close() 154 kref_init(&ip->ref); in qib_create_mmap_info()
|
/drivers/gpu/drm/nouveau/core/core/ |
D | object.c | 174 nouveau_object_ref(struct nouveau_object *obj, struct nouveau_object **ref) in nouveau_object_ref() argument 181 if (*ref) { in nouveau_object_ref() 182 int dead = atomic_dec_and_test(&(*ref)->refcount); in nouveau_object_ref() 183 nv_trace(*ref, "dec() == %d\n", atomic_read(&(*ref)->refcount)); in nouveau_object_ref() 185 nouveau_object_dtor(*ref); in nouveau_object_ref() 188 *ref = obj; in nouveau_object_ref() 307 int ref = atomic_add_return(1, &object->usecount); in nouveau_object_inc() local 311 if (ref != 1) in nouveau_object_inc() 437 int ref = atomic_add_return(-1, &object->usecount); in nouveau_object_dec() local 442 if (ref == 0) { in nouveau_object_dec()
|
/drivers/macintosh/ |
D | windfarm_ad7417_sensor.c | 28 struct kref ref; member 153 static void wf_ad7417_release(struct kref *ref) in wf_ad7417_release() argument 155 struct wf_ad7417_priv *pv = container_of(ref, in wf_ad7417_release() 156 struct wf_ad7417_priv, ref); in wf_ad7417_release() 165 kref_put(&pv->ref, wf_ad7417_release); in wf_ad7417_sensor_release() 188 kref_get(&pv->ref); in wf_ad7417_add_sensor() 269 kref_init(&pv->ref); in wf_ad7417_probe() 305 kref_put(&pv->ref, wf_ad7417_release); in wf_ad7417_remove()
|
D | windfarm_smu_sat.c | 37 struct kref ref; member 180 static void wf_sat_release(struct kref *ref) in wf_sat_release() argument 182 struct wf_sat *sat = container_of(ref, struct wf_sat, ref); in wf_sat_release() 195 kref_put(&sat->ref, wf_sat_release); in wf_sat_sensor_release() 223 kref_init(&sat->ref); in wf_sat_probe() 296 kref_get(&sat->ref); in wf_sat_probe() 323 kref_get(&sat->ref); in wf_sat_probe() 347 kref_put(&sat->ref, wf_sat_release); in wf_sat_remove()
|
D | windfarm_core.c | 153 struct wf_control *ct = container_of(kref, struct wf_control, ref); in wf_control_release() 224 kref_init(&new_ct->ref); in wf_register_control() 254 kref_put(&ct->ref, wf_control_release); in wf_unregister_control() 280 kref_get(&ct->ref); in wf_get_control() 288 kref_put(&ct->ref, wf_control_release); in wf_put_control() 301 struct wf_sensor *sr = container_of(kref, struct wf_sensor, ref); in wf_sensor_release() 337 kref_init(&new_sr->ref); in wf_register_sensor() 393 kref_get(&sr->ref); in wf_get_sensor() 401 kref_put(&sr->ref, wf_sensor_release); in wf_put_sensor()
|
D | windfarm_fcu_controls.c | 57 struct kref ref; member 72 static void wf_fcu_release(struct kref *ref) in wf_fcu_release() argument 74 struct wf_fcu_priv *pv = container_of(ref, struct wf_fcu_priv, ref); in wf_fcu_release() 83 kref_put(&fan->fcu_priv->ref, wf_fcu_release); in wf_fcu_fan_release() 398 kref_get(&pv->ref); in wf_fcu_add_fan() 529 kref_init(&pv->ref); in wf_fcu_probe() 576 kref_put(&pv->ref, wf_fcu_release); in wf_fcu_remove()
|
/drivers/staging/media/lirc/ |
D | lirc_zilog.c | 67 struct kref ref; member 83 struct kref ref; member 96 struct kref ref; member 174 kref_get(&ir->ref); in get_ir_device() 177 kref_get(&ir->ref); in get_ir_device() 183 static void release_ir_device(struct kref *ref) in release_ir_device() argument 185 struct IR *ir = container_of(ref, struct IR, ref); in release_ir_device() 210 return kref_put(&ir->ref, release_ir_device); in put_ir_device() 213 released = kref_put(&ir->ref, release_ir_device); in put_ir_device() 227 kref_get(&rx->ref); in get_ir_rx() [all …]
|
/drivers/usb/mon/ |
D | mon_main.c | 56 kref_get(&mbus->ref); in mon_reader_add() 75 kref_put(&mbus->ref, mon_bus_drop); in mon_reader_del() 217 kref_put(&mbus->ref, mon_bus_drop); in mon_bus_remove() 269 struct mon_bus *mbus = container_of(r, struct mon_bus, ref); in mon_bus_drop() 285 kref_init(&mbus->ref); in mon_bus_init() 312 kref_init(&mbus->ref); in mon_bus0_init() 409 atomic_set(&mbus->ref.refcount, 2); /* Force leak */ in mon_exit() 413 kref_put(&mbus->ref, mon_bus_drop); in mon_exit()
|
/drivers/gpu/drm/ast/ |
D | ast_ttm.c | 39 ast_ttm_mem_global_init(struct drm_global_reference *ref) in ast_ttm_mem_global_init() argument 41 return ttm_mem_global_init(ref->object); in ast_ttm_mem_global_init() 45 ast_ttm_mem_global_release(struct drm_global_reference *ref) in ast_ttm_mem_global_release() argument 47 ttm_mem_global_release(ref->object); in ast_ttm_mem_global_release() 69 global_ref = &ast->ttm.bo_global_ref.ref; in ast_ttm_global_init() 89 drm_global_item_unref(&ast->ttm.bo_global_ref.ref); in ast_ttm_global_release() 259 ast->ttm.bo_global_ref.ref.object, in ast_mm_init()
|
/drivers/gpu/drm/mgag200/ |
D | mgag200_ttm.c | 39 mgag200_ttm_mem_global_init(struct drm_global_reference *ref) in mgag200_ttm_mem_global_init() argument 41 return ttm_mem_global_init(ref->object); in mgag200_ttm_mem_global_init() 45 mgag200_ttm_mem_global_release(struct drm_global_reference *ref) in mgag200_ttm_mem_global_release() argument 47 ttm_mem_global_release(ref->object); in mgag200_ttm_mem_global_release() 69 global_ref = &ast->ttm.bo_global_ref.ref; in mgag200_ttm_global_init() 89 drm_global_item_unref(&ast->ttm.bo_global_ref.ref); in mgag200_ttm_global_release() 259 mdev->ttm.bo_global_ref.ref.object, in mgag200_mm_init()
|
/drivers/gpu/host1x/ |
D | intr.c | 214 struct host1x_waitlist *waiter, void **ref) in host1x_intr_add_action() argument 227 if (ref) in host1x_intr_add_action() 252 if (ref) in host1x_intr_add_action() 253 *ref = waiter; in host1x_intr_add_action() 257 void host1x_intr_put_ref(struct host1x *host, u32 id, void *ref) in host1x_intr_put_ref() argument 259 struct host1x_waitlist *waiter = ref; in host1x_intr_put_ref()
|