| /OK3568_Linux_fs/kernel/tools/bpf/bpftool/ |
| H A D | pids.c | 30 struct obj_refs *refs; in add_ref() local 35 hash_for_each_possible(table->table, refs, node, e->id) { in add_ref() 36 if (refs->id != e->id) in add_ref() 39 for (i = 0; i < refs->ref_cnt; i++) { in add_ref() 40 if (refs->refs[i].pid == e->pid) in add_ref() 44 tmp = realloc(refs->refs, (refs->ref_cnt + 1) * sizeof(*ref)); in add_ref() 50 refs->refs = tmp; in add_ref() 51 ref = &refs->refs[refs->ref_cnt]; in add_ref() 54 refs->ref_cnt++; in add_ref() 60 refs = calloc(1, sizeof(*refs)); in add_ref() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/v4l2-core/ |
| H A D | v4l2-h264.c | 51 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 …]
|
| /OK3568_Linux_fs/external/mpp/mpp/base/ |
| H A D | mpp_enc_refs.cpp | 177 MPP_RET mpp_enc_refs_init(MppEncRefs *refs) in mpp_enc_refs_init() argument 179 if (NULL == refs) { in mpp_enc_refs_init() 184 enc_refs_dbg_func("enter %p\n", refs); in mpp_enc_refs_init() 187 *refs = p; in mpp_enc_refs_init() 199 MPP_RET mpp_enc_refs_deinit(MppEncRefs *refs) in mpp_enc_refs_deinit() argument 201 if (NULL == refs) { in mpp_enc_refs_deinit() 206 enc_refs_dbg_func("enter %p\n", refs); in mpp_enc_refs_deinit() 208 MppEncRefsImpl *p = (MppEncRefsImpl *)(*refs); in mpp_enc_refs_deinit() 211 enc_refs_dbg_func("leave %p\n", refs); in mpp_enc_refs_deinit() 215 MPP_RET mpp_enc_refs_set_cfg(MppEncRefs refs, MppEncRefCfg ref_cfg) in mpp_enc_refs_set_cfg() argument [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/base/inc/ |
| H A D | mpp_enc_refs.h | 58 MPP_RET mpp_enc_refs_init(MppEncRefs *refs); 59 MPP_RET mpp_enc_refs_deinit(MppEncRefs *refs); 61 MPP_RET mpp_enc_refs_set_cfg(MppEncRefs refs, MppEncRefCfg ref_cfg); 62 MPP_RET mpp_enc_refs_set_usr_cfg(MppEncRefs refs, MppEncRefFrmUsrCfg *force); 63 MPP_RET mpp_enc_refs_set_rc_igop(MppEncRefs refs, RK_S32 igop); 64 MPP_RET mpp_enc_refs_set_refresh_length(MppEncRefs refs, RK_S32 len); 67 RK_S32 mpp_enc_refs_update_hdr(MppEncRefs refs); 70 MPP_RET mpp_enc_refs_get_cpb_info(MppEncRefs refs, MppEncCpbInfo *info); 72 MPP_RET mpp_enc_refs_get_cpb(MppEncRefs refs, EncCpbStatus *status); 74 MPP_RET mpp_enc_refs_dryrun(MppEncRefs refs); [all …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/bin/ |
| H A D | git-make-shallow | 46 make_shallow(shallow_file, args.revisions, args.refs) 48 ref_revs = check_output(['git', 'rev-list'] + args.refs).splitlines() 54 filter_refs(args.refs) 74 if args.refs: 75 … args.refs = check_output(['git', 'rev-parse', '--symbolic-full-name'] + args.refs).splitlines() 77 args.refs = get_all_refs(lambda r, t, tt: t == 'commit' or tt == 'commit') 79 args.refs = list(filter(lambda r: not r.endswith('/HEAD'), args.refs)) 88 def make_shallow(shallow_file, revisions, refs): argument 90 for rev in follow_history_intersections(revisions, refs): 102 refs = [r[0] for r in ref_split] [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/core/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/tools/include/linux/ |
| H A D | refcount.h | 53 atomic_t refs; member 56 #define REFCOUNT_INIT(n) { .refs = ATOMIC_INIT(n), } 60 atomic_set(&r->refs, n); in refcount_set() 65 return atomic_read(&r->refs); in refcount_read() 78 unsigned int old, new, val = atomic_read(&r->refs); in refcount_inc_not_zero() 89 old = atomic_cmpxchg_relaxed(&r->refs, val, new); in refcount_inc_not_zero() 123 unsigned int old, new, val = atomic_read(&r->refs); in refcount_sub_and_test() 135 old = atomic_cmpxchg_release(&r->refs, val, new); in refcount_sub_and_test()
|
| /OK3568_Linux_fs/kernel/drivers/xen/ |
| H A D | gntdev-dmabuf.c | 49 grant_ref_t *refs; member 442 int count, u32 domid, u32 *refs, u32 *fd) in dmabuf_exp_from_refs() argument 454 map->grants[i].ref = refs[i]; in dmabuf_exp_from_refs() 493 dmabuf_imp_grant_foreign_access(struct page **pages, u32 *refs, in dmabuf_imp_grant_foreign_access() argument 517 refs[i] = cur_ref; in dmabuf_imp_grant_foreign_access() 527 static void dmabuf_imp_end_foreign_access(u32 *refs, int count) in dmabuf_imp_end_foreign_access() argument 532 if (refs[i] != GRANT_INVALID_REF) in dmabuf_imp_end_foreign_access() 533 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 …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | refcount.h | 112 atomic_t refs; member 115 #define REFCOUNT_INIT(n) { .refs = ATOMIC_INIT(n), } 136 atomic_set(&r->refs, n); in refcount_set() 147 return atomic_read(&r->refs); in refcount_read() 157 } while (!atomic_try_cmpxchg_relaxed(&r->refs, &old, old + i)); in __refcount_add_not_zero() 193 int old = atomic_fetch_add_relaxed(i, &r->refs); in __refcount_add() 272 int old = atomic_fetch_sub_release(i, &r->refs); in __refcount_sub_and_test() 338 int old = atomic_fetch_sub_release(1, &r->refs); in __refcount_dec()
|
| /OK3568_Linux_fs/kernel/mm/ |
| H A D | gup.c | 33 static void hpage_pincount_add(struct page *page, int refs) in hpage_pincount_add() argument 38 atomic_add(refs, compound_pincount_ptr(page)); in hpage_pincount_add() 41 static void hpage_pincount_sub(struct page *page, int refs) in hpage_pincount_sub() argument 46 atomic_sub(refs, compound_pincount_ptr(page)); in hpage_pincount_sub() 50 static void put_page_refs(struct page *page, int refs) in put_page_refs() argument 53 if (VM_WARN_ON_ONCE_PAGE(page_ref_count(page) < refs, page)) in put_page_refs() 61 if (refs > 1) in put_page_refs() 62 page_ref_sub(page, refs - 1); in put_page_refs() 70 static inline struct page *try_get_compound_head(struct page *page, int refs) in try_get_compound_head() argument 76 if (unlikely(!page_cache_add_speculative(head, refs))) in try_get_compound_head() [all …]
|
| /OK3568_Linux_fs/kernel/fs/cifs/ |
| H A D | dfs_cache.c | 248 static inline void dump_refs(const struct dfs_info3_param *refs, int numrefs) in dump_refs() argument 254 const struct dfs_info3_param *ref = &refs[i]; in dump_refs() 375 static int copy_ref_data(const struct dfs_info3_param *refs, int numrefs, in copy_ref_data() argument 380 ce->ttl = refs[0].ttl; in copy_ref_data() 382 ce->srvtype = refs[0].server_type; in copy_ref_data() 383 ce->flags = refs[0].ref_flag; in copy_ref_data() 384 ce->path_consumed = refs[0].path_consumed; in copy_ref_data() 389 t = alloc_target(refs[i].node_name, refs[i].path_consumed); in copy_ref_data() 411 const struct dfs_info3_param *refs, in alloc_cache_entry() argument 429 rc = copy_ref_data(refs, numrefs, ce, NULL); in alloc_cache_entry() [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/dec/avs2/ |
| H A D | avs2d_dpb.c | 128 memset(mgr->refs, 0, sizeof(mgr->refs)); in dpb_init_management() 685 memset(mgr->refs, 0, sizeof(mgr->refs)); in dpb_set_frame_refs() 699 mgr->refs[mgr->num_of_ref] = p; in dpb_set_frame_refs() 713 } else if (mgr->scene_ref != mgr->refs[0] || mgr->num_of_ref > 1) { in dpb_set_frame_refs() 715 mgr->scene_ref->doi, mgr->refs[0] ? mgr->refs[0]->doi : -1); in dpb_set_frame_refs() 729 (mgr->num_of_ref != 2 || (mgr->refs[0] && mgr->refs[0]->poi <= p_cur->poi) || in dpb_set_frame_refs() 730 (mgr->refs[1] && mgr->refs[1]->poi >= p_cur->poi))) { in dpb_set_frame_refs() 798 task->refer[i] = mgr->refs[i] ? mgr->refs[i]->slot_idx : -1; in avs2d_dpb_insert() 799 if (mgr->refs[i]) { in avs2d_dpb_insert() 800 task->refer[i] = mgr->refs[i]->slot_idx; in avs2d_dpb_insert() [all …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/bb/ |
| H A D | codeparser.py | 84 def __init__(self, refs, execs, contains): argument 85 self.refs = codecache.internSet(refs) 92 return (self.refs, self.execs, self.contains) 95 (refs, execs, contains) = state 96 self.__init__(refs, execs, contains) 98 l = (hash(self.refs), hash(self.execs)) 103 return " ".join([str(self.refs), str(self.execs), str(self.contains)]) 141 def newPythonCacheLine(self, refs, execs, contains): argument 142 cacheline = pythonCacheLine(refs, execs, contains) 299 self.references = set(codeparsercache.pythoncache[h].refs) [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/ |
| H A D | mpp_enc_v2.cpp | 60 ret = mpp_enc_refs_init(&p->refs); in mpp_enc_init_v2() 83 ctrl_cfg.refs = p->refs; in mpp_enc_init_v2() 140 ret = mpp_enc_refs_set_cfg(p->refs, mpp_enc_ref_default()); in mpp_enc_init_v2() 141 mpp_enc_refs_set_rc_igop(p->refs, p->cfg.rc.gop); in mpp_enc_init_v2() 188 if (enc->refs) { in mpp_enc_deinit_v2() 189 mpp_enc_refs_deinit(&enc->refs); in mpp_enc_deinit_v2() 190 enc->refs = NULL; in mpp_enc_deinit_v2()
|
| /OK3568_Linux_fs/kernel/fs/btrfs/ |
| H A D | delayed-ref.h | 36 refcount_t refs; member 74 refcount_t refs; member 311 WARN_ON(refcount_read(&ref->refs) == 0); in btrfs_put_delayed_ref() 312 if (refcount_dec_and_test(&ref->refs)) { in btrfs_put_delayed_ref() 341 if (refcount_dec_and_test(&head->refs)) in btrfs_put_delayed_ref_head()
|
| H A D | extent-tree.c | 115 u64 offset, int metadata, u64 *refs, u64 *flags) in btrfs_lookup_extent_info() argument 204 refcount_inc(&head->refs); in btrfs_lookup_extent_info() 231 if (refs) in btrfs_lookup_extent_info() 232 *refs = num_refs; in btrfs_lookup_extent_info() 985 u64 refs; in setup_inline_extent_backref() local 999 refs = btrfs_extent_refs(leaf, ei); in setup_inline_extent_backref() 1000 refs += refs_to_add; in setup_inline_extent_backref() 1001 btrfs_set_extent_refs(leaf, ei, refs); in setup_inline_extent_backref() 1079 u64 refs; in update_inline_extent_backref() local 1082 refs = btrfs_extent_refs(leaf, ei); in update_inline_extent_backref() [all …]
|
| H A D | delayed-inode.c | 47 refcount_set(&delayed_node->refs, 0); in btrfs_init_delayed_node() 76 refcount_inc(&node->refs); in btrfs_get_delayed_node() 85 refcount_inc(&node->refs); /* can be accessed */ in btrfs_get_delayed_node() 107 if (refcount_inc_not_zero(&node->refs)) { in btrfs_get_delayed_node() 108 refcount_inc(&node->refs); in btrfs_get_delayed_node() 142 refcount_set(&node->refs, 2); in btrfs_get_or_create_delayed_node() 183 refcount_inc(&node->refs); /* inserted into list */ in btrfs_queue_delayed_node() 197 refcount_dec(&node->refs); /* not in the list */ in btrfs_dequeue_delayed_node() 218 refcount_inc(&node->refs); in btrfs_first_delayed_node() 245 refcount_inc(&next->refs); in btrfs_next_delayed_node() [all …]
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/plugins/position/serialnmea/ |
| H A D | qgeopositioninfosourcefactory_serialnmea.cpp | 62 m_serialPorts[portName].refs++; in serial() 78 device.refs = 1; in serial() 92 if (device.refs > 1) { in releaseSerial() 93 device.refs--; in releaseSerial() 106 unsigned int refs = 1; member
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/dec/vp9/ |
| H A D | vp9d_parser.c | 313 if (s->refs[i].ref) { in vp9_frame_free() 314 vp9_unref_frame(s, &s->refs[i]); in vp9_frame_free() 316 mpp_frame_deinit(&s->refs[i].f); in vp9_frame_free() 336 mpp_frame_init(&(s->refs[i].f)); in vp9_frame_init() 337 if (!s->refs[i].f) { in vp9_frame_init() 342 s->refs[i].slot_index = 0x7f; in vp9_frame_init() 343 s->refs[i].ref = NULL; in vp9_frame_init() 755 if (!s->refs[s->refidx[0]].ref || in decode_parser_header() 756 !s->refs[s->refidx[1]].ref || in decode_parser_header() 757 !s->refs[s->refidx[2]].ref ) { in decode_parser_header() [all …]
|
| /OK3568_Linux_fs/kernel/lib/ |
| H A D | refcount.c | 59 return atomic_try_cmpxchg_release(&r->refs, &val, 0); in refcount_dec_if_one() 76 unsigned int new, val = atomic_read(&r->refs); in refcount_dec_not_one() 91 } while (!atomic_try_cmpxchg_release(&r->refs, &val, new)); in refcount_dec_not_one()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx4/ |
| H A 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 …]
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/xen/ |
| H A D | gntdev.h | 64 struct ioctl_gntdev_grant_ref refs[1]; member 250 __u32 refs[1]; member 292 __u32 refs[1]; member
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/xen/ |
| H A D | gntdev.h | 64 struct ioctl_gntdev_grant_ref refs[1]; member 250 __u32 refs[1]; member 292 __u32 refs[1]; member
|
| /OK3568_Linux_fs/kernel/include/uapi/xen/ |
| H A D | gntdev.h | 64 struct ioctl_gntdev_grant_ref refs[1]; member 250 __u32 refs[1]; member 292 __u32 refs[1]; member
|
| /OK3568_Linux_fs/kernel/drivers/misc/sgi-xp/ |
| H A D | xpc.h | 683 s32 refs = atomic_dec_return(&ch->references); in xpc_msgqueue_deref() local 685 DBUG_ON(refs < 0); in xpc_msgqueue_deref() 686 if (refs == 0) in xpc_msgqueue_deref() 700 s32 refs = atomic_dec_return(&part->references); in xpc_part_deref() local 702 DBUG_ON(refs < 0); in xpc_part_deref() 703 if (refs == 0 && part->setup_state == XPC_P_SS_WTEARDOWN) in xpc_part_deref()
|