| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | bpf_obj_id.c | 28 __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 D | lookup_key.c | 41 __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 D | btf_field_iter.c | 132 __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 D | kfunc_dynptr_param.c | 69 __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 D | btf_relocate.c | 147 __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()
|
| H A D | btf_dump.c | 1508 __u32 next_id; in btf_dump_emit_type_chain() local 1528 next_id = decls->ids[decls->cnt - 1]; in btf_dump_emit_type_chain() 1529 next_t = btf__type_by_id(d->btf, next_id); in btf_dump_emit_type_chain()
|
| /linux/drivers/virt/ |
| H A D | vmgenid.c | 22 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/fs/xfs/scrub/ |
| H A D | dqiterate.c | 94 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/ipc/ |
| H A D | namespace.c | 131 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 D | util.c | 125 ids->next_id = -1; in ipc_init_ids() 204 int idx, next_id = -1; in ipc_idr_alloc() local 207 next_id = ids->next_id; in ipc_idr_alloc() 208 ids->next_id = -1; in ipc_idr_alloc() 223 if (next_id < 0) { /* !CHECKPOINT_RESTORE or next_id is unset */ in ipc_idr_alloc() 254 new->seq = ipcid_to_seqx(next_id); in ipc_idr_alloc() 255 idx = idr_alloc(&ids->ipcs_idr, new, ipcid_to_idx(next_id), in ipc_idr_alloc()
|
| /linux/samples/bpf/ |
| H A D | trace_event_user.c | 104 __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 D | id.c | 19 static atomic64_t next_id = ATOMIC64_INIT(COUNTER_PRE_INIT); variable 78 return init_id(&next_id, get_random_u32()); in landlock_init_id() 87 * Returns the value of next_id and increment it to let some space for the next 265 return get_id_range(number_of_ids, &next_id, get_random_u8()); in landlock_get_id_range()
|
| /linux/drivers/gpu/drm/qxl/ |
| H A D | qxl_cmd.c | 216 uint64_t id, next_id; in qxl_garbage_collect() local 228 next_id = info->next; in qxl_garbage_collect() 232 next_id); in qxl_garbage_collect() 243 id = next_id; in qxl_garbage_collect()
|
| /linux/arch/x86/mm/ |
| H A D | mmio-mod.c | 222 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 D | ipc_namespace.h | 26 int next_id; member
|
| /linux/drivers/soc/hisilicon/ |
| H A D | kunpeng_hccs.h | 182 u8 next_id; member
|
| /linux/fs/xfs/ |
| H A D | xfs_dquot.c | 758 xfs_dqid_t next_id = *id + 1; /* simple advance */ in xfs_dq_get_next_id() local 766 if (next_id < *id) in xfs_dq_get_next_id() 770 if (next_id % mp->m_quotainfo->qi_dqperchunk) { in xfs_dq_get_next_id() 771 *id = next_id; in xfs_dq_get_next_id() 776 start = (xfs_fsblock_t)next_id / mp->m_quotainfo->qi_dqperchunk; in xfs_dq_get_next_id()
|
| /linux/fs/ntfs3/ |
| H A D | fsntfs.c | 1953 sbi->security.next_id = SECURITY_ID_FIRST; in ntfs_security_init() 1962 u32 next_id; in ntfs_security_init() local 1972 next_id = le32_to_cpu(sii_e->sec_id) + 1; in ntfs_security_init() 1973 if (next_id >= sbi->security.next_id) in ntfs_security_init() 1974 sbi->security.next_id = next_id; in ntfs_security_init() 2207 d_security->key.sec_id = cpu_to_le32(sbi->security.next_id); in ntfs_insert_security() 2278 sbi->security.next_id += 1; in ntfs_insert_security()
|
| /linux/samples/vfio-mdev/ |
| H A D | mbochs.c | 187 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 D | seccomp.c | 145 * @next_id: The id of the next request. 152 u64 next_id; member 1121 return filter->notif->next_id++; in seccomp_next_notify_id() 1898 filter->notif->next_id = get_random_u64(); in init_listener()
|
| /linux/tools/perf/scripts/python/ |
| H A D | exported-sql-viewer.py | 3466 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
|
| /linux/drivers/net/ethernet/microchip/vcap/ |
| H A D | vcap_api.c | 2100 for (u32 next_id = 1; next_id < ~0; ++next_id) { in vcap_set_rule_id() local 2101 if (!vcap_rule_exists(ri->vctrl, next_id)) { in vcap_set_rule_id() 2102 ri->data.id = next_id; in vcap_set_rule_id()
|
| /linux/kernel/bpf/ |
| H A D | syscall.c | 4810 #define BPF_OBJ_GET_NEXT_ID_LAST_FIELD next_id 4817 u32 next_id = attr->start_id; in bpf_obj_get_next_id() local 4820 if (CHECK_ATTR(BPF_OBJ_GET_NEXT_ID) || next_id >= INT_MAX) in bpf_obj_get_next_id() 4826 next_id++; in bpf_obj_get_next_id() 4828 if (!idr_get_next(idr, &next_id)) in bpf_obj_get_next_id() 4833 err = put_user(next_id, &uattr->next_id); in bpf_obj_get_next_id()
|
| /linux/tools/include/uapi/linux/ |
| H A D | bpf.h | 1735 __u32 next_id; member
|
| /linux/include/uapi/linux/ |
| H A D | bpf.h | 1735 __u32 next_id; member
|