Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_obj_id.c28 __u32 i, next_id, info_len, nr_id_found; in serial_test_bpf_obj_id() local
153 next_id = 0; in serial_test_bpf_obj_id()
154 while (!bpf_prog_get_next_id(next_id, &next_id)) { in serial_test_bpf_obj_id()
161 prog_fd = bpf_prog_get_fd_by_id(next_id); in serial_test_bpf_obj_id()
169 if (prog_infos[i].id == next_id) in serial_test_bpf_obj_id()
207 next_id = 0; in serial_test_bpf_obj_id()
208 while (!bpf_map_get_next_id(next_id, &next_id)) { in serial_test_bpf_obj_id()
214 map_fd = bpf_map_get_fd_by_id(next_id); in serial_test_bpf_obj_id()
222 if (map_infos[i].id == next_id) in serial_test_bpf_obj_id()
247 next_id = 0; in serial_test_bpf_obj_id()
[all …]
H A Dlookup_key.c41 __u32 next_id; in test_lookup_key() local
72 ret = bpf_prog_get_next_id(0, &next_id); in test_lookup_key()
79 ret = bpf_prog_get_next_id(0, &next_id); in test_lookup_key()
86 ret = bpf_prog_get_next_id(0, &next_id); in test_lookup_key()
93 ret = bpf_prog_get_next_id(0, &next_id); in test_lookup_key()
100 ret = bpf_prog_get_next_id(0, &next_id); in test_lookup_key()
106 ret = bpf_prog_get_next_id(0, &next_id); in test_lookup_key()
H A Dbtf_field_iter.c132 __u32 *next_str, *next_id; in test_btf_field_iter() local
152 while ((next_id = btf_field_iter_next(&it_ids))) { in test_btf_field_iter()
153 if (!ASSERT_EQ(*next_id, fields[id].ids[id_idx], "field_id_match")) in test_btf_field_iter()
H A Dkfunc_dynptr_param.c69 __u32 next_id; in verify_success() local
91 err = bpf_prog_get_next_id(0, &next_id); in verify_success()
/linux/tools/lib/bpf/
H A Dbtf_relocate.c147 __u32 next_id = *id; in btf_mark_embedded_composite_type_ids() local
149 while (next_id) { in btf_mark_embedded_composite_type_ids()
150 t = btf_type_by_id(r->btf, next_id); in btf_mark_embedded_composite_type_ids()
157 next_id = t->type; in btf_mark_embedded_composite_type_ids()
162 next_id = a->type; in btf_mark_embedded_composite_type_ids()
167 if (next_id < r->nr_dist_base_types) in btf_mark_embedded_composite_type_ids()
168 r->id_map[next_id] = BTF_IS_EMBEDDED; in btf_mark_embedded_composite_type_ids()
169 next_id = 0; in btf_mark_embedded_composite_type_ids()
172 next_id = 0; in btf_mark_embedded_composite_type_ids()
/linux/fs/xfs/scrub/
H A Ddqiterate.c94 uint64_t next_id; in xchk_dquot_iter_advance_bmap() local
123 next_id = cursor->bmap.br_startoff * qi->qi_dqperchunk; in xchk_dquot_iter_advance_bmap()
124 if (next_id > XFS_DQ_ID_MAX) { in xchk_dquot_iter_advance_bmap()
131 *next_ondisk_id = next_id; in xchk_dquot_iter_advance_bmap()
/linux/drivers/virt/
H A Dvmgenid.c22 u8 *next_id; member
32 memcpy(state->this_id, state->next_id, sizeof(state->this_id)); in vmgenid_notify()
40 state->next_id = virt_addr; in setup_vmgenid_state()
41 memcpy(state->this_id, state->next_id, sizeof(state->this_id)); in setup_vmgenid_state()
/linux/ipc/
H A Dnamespace.c131 int next_id; in free_ipcs() local
138 for (total = 0, next_id = 0; total < in_use; next_id++) { in free_ipcs()
139 perm = idr_find(&ids->ipcs_idr, next_id); in free_ipcs()
H A Dshm.c965 int next_id; in shm_get_stat() local
973 for (total = 0, next_id = 0; total < in_use; next_id++) { in shm_get_stat()
977 ipc = idr_find(&shm_ids(ns).ipcs_idr, next_id); in shm_get_stat()
/linux/drivers/isdn/mISDN/
H A Dtimerdev.c28 int next_id; member
53 dev->next_id = 1; in mISDN_open()
185 id = timer->id = dev->next_id++; in misdn_add_timer()
186 if (dev->next_id < 0) in misdn_add_timer()
187 dev->next_id = 1; in misdn_add_timer()
H A Dlayer2.h61 u_int next_id; member
/linux/samples/bpf/
H A Dtrace_event_user.c104 __u32 stackid = 0, next_id; in print_stacks() local
121 while (bpf_map_get_next_key(stack_map, &stackid, &next_id) == 0) { in print_stacks()
122 bpf_map_delete_elem(stack_map, &next_id); in print_stacks()
123 stackid = next_id; in print_stacks()
/linux/security/landlock/
H A Did.c19 static atomic64_t next_id = ATOMIC64_INIT(COUNTER_PRE_INIT); variable
78 return init_id(&next_id, get_random_u32()); in landlock_init_id()
265 return get_id_range(number_of_ids, &next_id, get_random_u8()); in landlock_get_id_range()
/linux/net/mptcp/
H A Dpm_kernel.c28 u8 next_id; member
724 if (pernet->next_id == MPTCP_PM_MAX_ADDR_ID) in mptcp_pm_nl_append_new_local_addr()
725 pernet->next_id = 1; in mptcp_pm_nl_append_new_local_addr()
777 pernet->next_id); in mptcp_pm_nl_append_new_local_addr()
778 if (!entry->addr.id && pernet->next_id != 1) { in mptcp_pm_nl_append_new_local_addr()
779 pernet->next_id = 1; in mptcp_pm_nl_append_new_local_addr()
788 if (entry->addr.id > pernet->next_id) in mptcp_pm_nl_append_new_local_addr()
789 pernet->next_id = entry->addr.id; in mptcp_pm_nl_append_new_local_addr()
1302 pernet->next_id = 1; in mptcp_pm_nl_flush_addrs_doit()
1581 pernet->next_id = 1; in pm_nl_init_net()
/linux/drivers/infiniband/core/
H A Drestrack.h23 u32 next_id; member
H A Drestrack.c220 &rt->next_id, GFP_KERNEL); in rdma_restrack_add()
/linux/fs/hfs/
H A Dmdb.c153 atomic64_set(&HFS_SB(sb)->next_id, be32_to_cpu(mdb->drNxtCNID)); in hfs_mdb_get()
276 BUG_ON(atomic64_read(&HFS_SB(sb)->next_id) > U32_MAX); in hfs_mdb_commit()
278 cpu_to_be32((u32)atomic64_read(&HFS_SB(sb)->next_id)); in hfs_mdb_commit()
H A Dsuper.c324 atomic64_set(&sbi->next_id, 0); in hfs_fill_super()
/linux/arch/x86/mm/
H A Dmmio-mod.c222 static atomic_t next_id; in ioremap_trace_core() local
246 .id = atomic_inc_return(&next_id) in ioremap_trace_core()
/linux/include/linux/
H A Dipc_namespace.h26 int next_id; member
/linux/drivers/infiniband/hw/hfi1/
H A Dvnic_main.c322 int next_id = VNIC_ID(0); in get_first_vnic_port() local
324 vinfo = hfi1_netdev_get_first_data(dd, &next_id); in get_first_vnic_port()
326 if (next_id > VNIC_ID(VNIC_MASK)) in get_first_vnic_port()
/linux/drivers/soc/hisilicon/
H A Dkunpeng_hccs.h182 u8 next_id; member
/linux/samples/vfio-mdev/
H A Dmbochs.c187 u32 next_id; member
545 mdev_state->next_id = 1; in mbochs_init_dev()
941 dmabuf->id = mdev_state->next_id++; in mbochs_dmabuf_alloc()
/linux/kernel/
H A Dseccomp.c152 u64 next_id; member
1120 return filter->notif->next_id++; in seccomp_next_notify_id()
1900 filter->notif->next_id = get_random_u64(); in init_listener()
/linux/tools/perf/scripts/python/
H A Dexported-sql-viewer.py3466 next_id = int((lower_id + higher_id) / 2)
3467 QueryExec(query, "SELECT time FROM samples WHERE id = " + str(next_id))
3469 ok, dbid = self.IdBetween(query, lower_id, next_id, "DESC")
3471 ok, dbid = self.IdBetween(query, next_id, higher_id, "")
3474 next_id = dbid
3475 QueryExec(query, "SELECT time FROM samples WHERE id = " + str(next_id))
3479 lower_id = next_id
3481 higher_id = next_id
3486 lower_id = next_id
3488 higher_id = next_id

12