/drivers/media/v4l2-core/ |
D | v4l2-h264.c | 60 b->refs[i].longterm = true; in v4l2_h264_init_reflist_builder() 68 if (!b->refs[i].longterm && dpb[i].frame_num > cur_frame_num) in v4l2_h264_init_reflist_builder() 69 b->refs[i].frame_num = (int)dpb[i].frame_num - in v4l2_h264_init_reflist_builder() 72 b->refs[i].frame_num = dpb[i].frame_num; in v4l2_h264_init_reflist_builder() 74 b->refs[i].top_field_order_cnt = dpb[i].top_field_order_cnt; in v4l2_h264_init_reflist_builder() 75 b->refs[i].bottom_field_order_cnt = dpb[i].bottom_field_order_cnt; in v4l2_h264_init_reflist_builder() 113 return min(b->refs[ref->index].top_field_order_cnt, in v4l2_h264_get_poc() 114 b->refs[ref->index].bottom_field_order_cnt); in v4l2_h264_get_poc() 116 return b->refs[ref->index].top_field_order_cnt; in v4l2_h264_get_poc() 118 return b->refs[ref->index].bottom_field_order_cnt; in v4l2_h264_get_poc() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/core/ |
D | event.c | 31 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()
|
D | notify.c | 139 if ((notify->event = event), event->refs) { in nvkm_notify_init()
|
/drivers/xen/ |
D | gntdev-dmabuf.c | 44 grant_ref_t *refs; member 437 int count, u32 domid, u32 *refs, u32 *fd) in dmabuf_exp_from_refs() argument 449 map->grants[i].ref = refs[i]; in dmabuf_exp_from_refs() 488 dmabuf_imp_grant_foreign_access(unsigned long *gfns, u32 *refs, in dmabuf_imp_grant_foreign_access() argument 512 refs[i] = cur_ref; in dmabuf_imp_grant_foreign_access() 522 static void dmabuf_imp_end_foreign_access(u32 *refs, int count) in dmabuf_imp_end_foreign_access() argument 527 if (refs[i] != INVALID_GRANT_REF) in dmabuf_imp_end_foreign_access() 528 gnttab_end_foreign_access(refs[i], NULL); in dmabuf_imp_end_foreign_access() 533 kfree(gntdev_dmabuf->u.imp.refs); in dmabuf_imp_free_storage() 546 gntdev_dmabuf->u.imp.refs = kcalloc(count, in dmabuf_imp_alloc_storage() [all …]
|
/drivers/iommu/arm/arm-smmu-v3/ |
D | arm-smmu-v3-sva.c | 20 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() 370 refcount_set(&bond->refs, 1); in __arm_smmu_sva_bind() 549 if (!WARN_ON(!bond) && refcount_dec_and_test(&bond->refs)) { in arm_smmu_sva_remove_dev_pasid()
|
D | arm-smmu-v3.h | 584 refcount_t refs; member
|
/drivers/thermal/ |
D | k3_j72xx_bandgap.c | 78 int refs[4]; member 90 idx1 = err_vals->refs[seg]; in create_table_segments() 92 idx2 = err_vals->refs[seg + 1]; in create_table_segments() 95 ref1 = err_vals->refs[seg]; in create_table_segments() 96 ref2 = err_vals->refs[seg + 1]; in create_table_segments() 458 err_vals.refs[0] = MINUS40CREF; in k3_j72xx_bandgap_probe() 459 err_vals.refs[1] = PLUS30CREF; in k3_j72xx_bandgap_probe() 460 err_vals.refs[2] = PLUS125CREF; in k3_j72xx_bandgap_probe() 461 err_vals.refs[3] = PLUS150CREF; in k3_j72xx_bandgap_probe()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | port.c | 69 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/ |
D | xpc.h | 684 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/ |
D | core.c | 34 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/ |
D | nouveau_vmm.c | 65 if (vma && --vma->refs <= 0) { in nouveau_vma_del() 86 vma->refs++; in nouveau_vma_new() 93 vma->refs = 1; in nouveau_vma_new()
|
D | nouveau_vmm.h | 9 int refs; member
|
/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
D | base.c | 116 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()
|
D | vmm.c | 150 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 …]
|
D | vmm.h | 15 u32 refs[2]; member
|
/drivers/gpu/drm/tegra/ |
D | drm.c | 182 struct drm_gem_object **refs; in tegra_drm_submit() local 217 refs = kmalloc_array(num_refs, sizeof(*refs), GFP_KERNEL); in tegra_drm_submit() 218 if (!refs) { in tegra_drm_submit() 254 refs[num_refs++] = &obj->gem; in tegra_drm_submit() 284 refs[num_refs++] = &obj->gem; in tegra_drm_submit() 298 refs[num_refs++] = &obj->gem; in tegra_drm_submit() 341 drm_gem_object_put(refs[num_refs]); in tegra_drm_submit() 343 kfree(refs); in tegra_drm_submit()
|
/drivers/block/ |
D | nbd.c | 120 refcount_t refs; member 274 if (!refcount_dec_and_test(&nbd->refs)) in nbd_put() 1576 if (!refcount_inc_not_zero(&nbd->refs)) { in nbd_open() 1592 refcount_inc(&nbd->refs); in nbd_open() 1760 static struct nbd_device *nbd_dev_add(int index, unsigned int refs) in nbd_dev_add() argument 1835 refcount_set(&nbd->refs, 0); in nbd_dev_add() 1850 refcount_set(&nbd->refs, refs); in nbd_dev_add() 1881 if (refcount_inc_not_zero(&nbd->refs)) in nbd_find_get_unused() 1973 !refcount_inc_not_zero(&nbd->refs)) { in nbd_genl_connect() 2043 refcount_inc(&nbd->refs); in nbd_genl_connect() [all …]
|
/drivers/tty/ |
D | tty_jobctrl.c | 199 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/ |
D | event.h | 17 int *refs; member
|
/drivers/net/ethernet/freescale/dpaa/ |
D | dpaa_eth.h | 79 refcount_t refs; member
|
/drivers/base/test/ |
D | property-entry-test.c | 414 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/ |
D | binder_internal.h | 241 struct hlist_head refs; member
|
D | binder.c | 1090 !hlist_empty(&node->refs)) in binder_dec_node_nilocked() 1100 if (hlist_empty(&node->refs) && !node->local_strong_refs && in binder_dec_node_nilocked() 1315 hlist_add_head(&new_ref->node_entry, &node->refs); in binder_get_ref_for_node_olocked() 4771 weak = !hlist_empty(&node->refs) || in binder_thread_read() 6037 static int binder_node_release(struct binder_node *node, int refs) in binder_node_release() argument 6052 if (hlist_empty(&node->refs) && node->tmp_refs == 1) { in binder_node_release() 6057 return refs; in binder_node_release() 6069 hlist_for_each_entry(ref, &node->refs, node_entry) { in binder_node_release() 6070 refs++; in binder_node_release() 6095 node->debug_id, refs, death); in binder_node_release() [all …]
|
/drivers/media/platform/nvidia/tegra-vde/ |
D | h264.c | 740 frame_num = b->refs[ref_id].frame_num; in tegra_vde_h264_setup_frame() 822 if (b.refs[dpb_idx].top_field_order_cnt < b.cur_pic_order_count) in tegra_vde_h264_setup_frames()
|
/drivers/pci/controller/ |
D | pci-hyperv.c | 562 refcount_t refs; member 992 refcount_inc(&hpdev->refs); in get_pcichild() 997 if (refcount_dec_and_test(&hpdev->refs)) in put_pcichild() 2427 refcount_set(&hpdev->refs, 1); in new_pcichild_device()
|