| /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 | 157 __u32 *next_str, *next_id; in test_btf_field_iter() 177 while ((next_id = btf_field_iter_next(&it_ids))) { 178 if (!ASSERT_EQ(*next_id, fields[id].ids[id_idx], "field_id_match")) 132 __u32 *next_str, *next_id; test_btf_field_iter() local
|
| 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 | 1607 __u32 next_id; 1627 next_id = decls->ids[decls->cnt - 1]; in btf_dump_emit_type_cast() 1628 next_t = btf__type_by_id(d->btf, next_id); in btf_dump_emit_type_cast() 1508 __u32 next_id; btf_dump_emit_type_chain() local
|
| /linux/fs/xfs/scrub/ |
| H A D | dqiterate.c | 95 uint64_t next_id; in xchk_dquot_iter_advance_bmap() 124 next_id = cursor->bmap.br_startoff * qi->qi_dqperchunk; in xchk_dquot_iter_advance_bmap() 125 if (next_id > XFS_DQ_ID_MAX) { in xchk_dquot_iter_advance_bmap() 132 *next_ondisk_id = next_id; in xchk_dquot_iter_advance_bmap() 94 uint64_t next_id; xchk_dquot_iter_advance_bmap() local
|
| /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/ipc/ |
| H A D | namespace.c | 130 int next_id; in free_ipcs() 137 for (total = 0, next_id = 0; total < in_use; next_id++) { in free_ipcs() 138 perm = idr_find(&ids->ipcs_idr, next_id); in free_ipcs() 131 int next_id; free_ipcs() local
|
| 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/fs/hfs/ |
| H A D | inode.c | 196 s64 next_id; in hfs_new_inode() local 208 next_id = atomic64_inc_return(&HFS_SB(sb)->next_id); in hfs_new_inode() 209 if (next_id > U32_MAX) { in hfs_new_inode() 210 atomic64_dec(&HFS_SB(sb)->next_id); in hfs_new_inode() 214 inode->i_ino = (u32)next_id - 1; in hfs_new_inode()
|
| H A D | hfs_fs.h | 95 atomic64_t next_id; /* The next available member
|
| /linux/net/mptcp/ |
| H A D | pm_kernel.c | 28 u8 next_id; member 747 if (pernet->next_id == MPTCP_PM_MAX_ADDR_ID) in mptcp_pm_nl_append_new_local_addr() 748 pernet->next_id = 1; in mptcp_pm_nl_append_new_local_addr() 800 pernet->next_id); in mptcp_pm_nl_append_new_local_addr() 801 if (!entry->addr.id && pernet->next_id != 1) { in mptcp_pm_nl_append_new_local_addr() 802 pernet->next_id = 1; in mptcp_pm_nl_append_new_local_addr() 811 if (entry->addr.id > pernet->next_id) in mptcp_pm_nl_append_new_local_addr() 812 pernet->next_id = entry->addr.id; in mptcp_pm_nl_append_new_local_addr() 1333 pernet->next_id = 1; in mptcp_pm_nl_flush_addrs_doit() 1621 pernet->next_id in pm_nl_init_net() [all...] |
| /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/fs/xfs/ |
| H A D | xfs_dquot.c | 772 xfs_dqid_t next_id = *id + 1; /* simple advance */ in xfs_dq_get_next_id() 780 if (next_id < *id) in xfs_dq_get_next_id() 784 if (next_id % mp->m_quotainfo->qi_dqperchunk) { in xfs_dq_get_next_id() 785 *id = next_id; in xfs_dq_get_next_id() 789 /* Nope, next_id is now past the current chunk, so find the next one */ in xfs_dq_get_next_id() 790 start = (xfs_fsblock_t)next_id / mp->m_quotainfo->qi_dqperchunk; in xfs_dq_get_next_id() 762 xfs_dqid_t next_id = *id + 1; /* simple advance */ xfs_dq_get_next_id() local
|
| /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() 2210 d_security->key.sec_id = cpu_to_le32(sbi->security.next_id); in ntfs_insert_security() 2281 sbi->security.next_id += 1; in ntfs_insert_security()
|
| /linux/drivers/soc/hisilicon/ |
| H A D | kunpeng_hccs.h | 182 u8 next_id; member
|
| /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/tools/perf/scripts/python/ |
| H A D | exported-sql-viewer.py | |
| /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 | 4888 #define BPF_OBJ_GET_NEXT_ID_LAST_FIELD next_id in bpf_prog_get_curr_or_next() 4895 u32 next_id = attr->start_id; in bpf_prog_by_id() 4898 if (CHECK_ATTR(BPF_OBJ_GET_NEXT_ID) || next_id >= INT_MAX) in bpf_prog_by_id() 4904 next_id++; in bpf_prog_by_id() 4906 if (!idr_get_next(idr, &next_id)) in bpf_prog_by_id() 4911 err = put_user(next_id, &uattr->next_id); 4834 u32 next_id = attr->start_id; bpf_obj_get_next_id() local
|