Home
last modified time | relevance | path

Searched refs:refs (Results 1 – 25 of 35) sorted by relevance

12

/drivers/media/v4l2-core/
Dv4l2-h264.c51 b->refs[i].pic_num = dpb[i].pic_num; in v4l2_h264_init_reflist_builder()
53 b->refs[i].longterm = true; in v4l2_h264_init_reflist_builder()
62 b->refs[i].frame_num = (int)dpb[i].frame_num - in v4l2_h264_init_reflist_builder()
65 b->refs[i].frame_num = dpb[i].frame_num; in v4l2_h264_init_reflist_builder()
75 b->refs[i].pic_order_count = pic_order_count; in v4l2_h264_init_reflist_builder()
98 if (builder->refs[idxa].longterm != builder->refs[idxb].longterm) { in v4l2_h264_p_ref_list_cmp()
100 if (!builder->refs[idxa].longterm) in v4l2_h264_p_ref_list_cmp()
110 if (!builder->refs[idxa].longterm) in v4l2_h264_p_ref_list_cmp()
111 return builder->refs[idxb].frame_num < in v4l2_h264_p_ref_list_cmp()
112 builder->refs[idxa].frame_num ? in v4l2_h264_p_ref_list_cmp()
[all …]
/drivers/gpu/drm/nouveau/nvkm/core/
Devent.c31 if (--event->refs[index * event->types_nr + type] == 0) { in nvkm_event_put()
44 if (++event->refs[index * event->types_nr + type] == 1) { in nvkm_event_get()
58 if (!event->refs || WARN_ON(index >= event->index_nr)) in nvkm_event_send()
77 if (event->refs) { in nvkm_event_fini()
78 kfree(event->refs); in nvkm_event_fini()
79 event->refs = NULL; in nvkm_event_fini()
87 event->refs = kzalloc(array3_size(index_nr, types_nr, in nvkm_event_init()
88 sizeof(*event->refs)), in nvkm_event_init()
90 if (!event->refs) in nvkm_event_init()
Dnotify.c139 if ((notify->event = event), event->refs) { in nvkm_notify_init()
/drivers/xen/
Dgntdev-dmabuf.c50 grant_ref_t *refs; member
443 int count, u32 domid, u32 *refs, u32 *fd) in dmabuf_exp_from_refs() argument
455 map->grants[i].ref = refs[i]; in dmabuf_exp_from_refs()
494 dmabuf_imp_grant_foreign_access(unsigned long *gfns, u32 *refs, in dmabuf_imp_grant_foreign_access() argument
518 refs[i] = cur_ref; in dmabuf_imp_grant_foreign_access()
528 static void dmabuf_imp_end_foreign_access(u32 *refs, int count) in dmabuf_imp_end_foreign_access() argument
533 if (refs[i] != GRANT_INVALID_REF) in dmabuf_imp_end_foreign_access()
534 gnttab_end_foreign_access(refs[i], 0, 0UL); in dmabuf_imp_end_foreign_access()
539 kfree(gntdev_dmabuf->u.imp.refs); in dmabuf_imp_free_storage()
552 gntdev_dmabuf->u.imp.refs = kcalloc(count, in dmabuf_imp_alloc_storage()
[all …]
/drivers/iommu/arm/arm-smmu-v3/
Darm-smmu-v3-sva.c20 refcount_t refs; member
32 refcount_t refs; member
61 refcount_inc(&cd->refs); in arm_smmu_share_asid()
115 refcount_set(&cd->refs, 1); in arm_smmu_alloc_shared_cd()
277 refcount_inc(&smmu_mn->refs); in arm_smmu_mmu_notifier_get()
292 refcount_set(&smmu_mn->refs, 1); in arm_smmu_mmu_notifier_get()
324 if (!refcount_dec_and_test(&smmu_mn->refs)) in arm_smmu_mmu_notifier_put()
359 refcount_inc(&bond->refs); in __arm_smmu_sva_bind()
375 refcount_set(&bond->refs, 1); in __arm_smmu_sva_bind()
414 if (refcount_dec_and_test(&bond->refs)) { in arm_smmu_sva_unbind()
Darm-smmu-v3.h585 refcount_t refs; member
/drivers/net/ethernet/mellanox/mlx4/
Dport.c69 table->refs[i] = 0; in mlx4_init_mac_table()
83 table->refs[i] = 0; in mlx4_init_vlan_table()
118 if (table->refs[i] && in find_index()
157 if (!table->refs[i]) in mlx4_find_cached_mac()
232 dup_table->refs[index_at_port]) { in __mlx4_register_mac()
242 if (!table->refs[index_at_dup_port] || in __mlx4_register_mac()
251 if (!table->refs[i]) { in __mlx4_register_mac()
255 if (!dup_table->refs[i]) in __mlx4_register_mac()
265 ++table->refs[i]; in __mlx4_register_mac()
308 table->refs[free] = 1; in __mlx4_register_mac()
[all …]
/drivers/misc/sgi-xp/
Dxpc.h684 s32 refs = atomic_dec_return(&ch->references); in xpc_msgqueue_deref() local
686 DBUG_ON(refs < 0); in xpc_msgqueue_deref()
687 if (refs == 0) in xpc_msgqueue_deref()
701 s32 refs = atomic_dec_return(&part->references); in xpc_part_deref() local
703 DBUG_ON(refs < 0); in xpc_part_deref()
704 if (refs == 0 && part->setup_state == XPC_P_SS_WTEARDOWN) in xpc_part_deref()
/drivers/most/
Dcore.c34 int refs; member
852 if (c->pipe0.refs && c->pipe0.comp->tx_completion) in arm_mbo()
855 if (c->pipe1.refs && c->pipe1.comp->tx_completion) in arm_mbo()
963 if (c->pipe0.refs && c->pipe1.refs && in channel_has_mbo()
996 if (c->pipe0.refs && c->pipe1.refs && in most_get_mbo()
1068 if (c->pipe0.refs && c->pipe0.comp->rx_completion && in most_read_completion()
1072 if (c->pipe1.refs && c->pipe1.comp->rx_completion && in most_read_completion()
1101 if (c->pipe0.refs + c->pipe1.refs > 0) in most_start_channel()
1141 c->pipe0.refs++; in most_start_channel()
1143 c->pipe1.refs++; in most_start_channel()
[all …]
/drivers/gpu/drm/nouveau/
Dnouveau_vmm.c65 if (vma && --vma->refs <= 0) { in nouveau_vma_del()
86 vma->refs++; in nouveau_vma_new()
93 vma->refs = 1; in nouveau_vma_new()
Dnouveau_vmm.h9 int refs; member
/drivers/iommu/
Dioasid.c18 refcount_t refs; member
318 refcount_set(&data->refs, 1); in ioasid_alloc()
360 refcount_inc(&ioasid_data->refs); in ioasid_get()
388 free = refcount_dec_and_test(&ioasid_data->refs); in ioasid_put()
/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
Dbase.c116 u32 refs; member
133 ptc->refs = 0; in nvkm_mmu_ptc_find()
155 if (pt->ptc->refs < 8 /* Heuristic. */ && !force) { in nvkm_mmu_ptc_put()
157 pt->ptc->refs++; in nvkm_mmu_ptc_put()
195 ptc->refs--; in nvkm_mmu_ptc_get()
Dvmm.c150 if (--pgd->refs[0]) { in nvkm_vmm_unref_pdes()
155 if (!pgt->refs[!type]) { in nvkm_vmm_unref_pdes()
191 if (!pgt->refs[!type]) in nvkm_vmm_unref_pdes()
216 if (!pgt->refs[0]) in nvkm_vmm_unref_sptes()
277 pgt->refs[type] -= ptes; in nvkm_vmm_unref_ptes()
280 if (desc->type == SPT && (pgt->refs[0] || pgt->refs[1])) in nvkm_vmm_unref_ptes()
284 if (!pgt->refs[type]) { in nvkm_vmm_unref_ptes()
315 if (!pgt->refs[0]) in nvkm_vmm_ref_sptes()
371 pgt->refs[type] += ptes; in nvkm_vmm_ref_ptes()
426 pgd->refs[0]++; in nvkm_vmm_ref_hwpt()
[all …]
Dvmm.h15 u32 refs[2]; member
/drivers/gpu/drm/tegra/
Ddrm.c179 struct drm_gem_object **refs; in tegra_drm_submit() local
214 refs = kmalloc_array(num_refs, sizeof(*refs), GFP_KERNEL); in tegra_drm_submit()
215 if (!refs) { in tegra_drm_submit()
251 refs[num_refs++] = &obj->gem; in tegra_drm_submit()
281 refs[num_refs++] = &obj->gem; in tegra_drm_submit()
295 refs[num_refs++] = &obj->gem; in tegra_drm_submit()
338 drm_gem_object_put(refs[num_refs]); in tegra_drm_submit()
340 kfree(refs); in tegra_drm_submit()
/drivers/block/
Dnbd.c117 refcount_t refs; member
268 if (!refcount_dec_and_test(&nbd->refs)) in nbd_put()
1506 if (!refcount_inc_not_zero(&nbd->refs)) { in nbd_open()
1526 refcount_inc(&nbd->refs); in nbd_open()
1686 static struct nbd_device *nbd_dev_add(int index, unsigned int refs) in nbd_dev_add() argument
1763 refcount_set(&nbd->refs, 0); in nbd_dev_add()
1778 refcount_set(&nbd->refs, refs); in nbd_dev_add()
1809 if (refcount_inc_not_zero(&nbd->refs)) in nbd_find_get_unused()
1901 !refcount_inc_not_zero(&nbd->refs)) { in nbd_genl_connect()
1976 refcount_inc(&nbd->refs); in nbd_genl_connect()
[all …]
Dvirtio_blk.c70 refcount_t refs; member
385 refcount_inc(&vblk->refs); in virtblk_get()
390 if (refcount_dec_and_test(&vblk->refs)) { in virtblk_put()
783 refcount_set(&vblk->refs, 1); in virtblk_probe()
/drivers/tty/
Dtty_jobctrl.c199 int refs = 0; in tty_signal_session_leader() local
212 refs++; in tty_signal_session_leader()
238 return refs; in tty_signal_session_leader()
/drivers/gpu/drm/nouveau/include/nvkm/core/
Devent.h17 int *refs; member
/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.h104 refcount_t refs; member
/drivers/base/test/
Dproperty-entry-test.c414 static const struct software_node_ref_args refs[] = { in pe_test_reference() local
422 PROPERTY_ENTRY_REF_ARRAY("ref-3", refs), in pe_test_reference()
/drivers/android/
Dbinder_internal.h246 struct hlist_head refs; member
Dbinder.c1115 !hlist_empty(&node->refs)) in binder_dec_node_nilocked()
1125 if (hlist_empty(&node->refs) && !node->local_strong_refs && in binder_dec_node_nilocked()
1340 hlist_add_head(&new_ref->node_entry, &node->refs); in binder_get_ref_for_node_olocked()
4737 weak = !hlist_empty(&node->refs) || in binder_thread_read()
5986 static int binder_node_release(struct binder_node *node, int refs) in binder_node_release() argument
6001 if (hlist_empty(&node->refs) && node->tmp_refs == 1) { in binder_node_release()
6006 return refs; in binder_node_release()
6018 hlist_for_each_entry(ref, &node->refs, node_entry) { in binder_node_release()
6019 refs++; in binder_node_release()
6044 node->debug_id, refs, death); in binder_node_release()
[all …]
/drivers/pci/controller/
Dpci-hyperv.c556 refcount_t refs; member
608 refcount_inc(&hpdev->refs); in get_pcichild()
613 if (refcount_dec_and_test(&hpdev->refs)) in put_pcichild()
2093 refcount_set(&hpdev->refs, 1); in new_pcichild_device()

12