| /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()
|
| /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 | 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()
|
| H A D | shm.c | 965 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 D | timerdev.c | 28 int next_id; member 53 dev->next_id = 1; in mISDN_open() 188 id = timer->id = dev->next_id++; in misdn_add_timer() 189 if (dev->next_id < 0) in misdn_add_timer() 190 dev->next_id = 1; in misdn_add_timer()
|
| H A D | layer2.h | 61 u_int next_id; member
|
| /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() 265 return get_id_range(number_of_ids, &next_id, get_random_u8()); in landlock_get_id_range()
|
| /linux/net/mptcp/ |
| H A D | pm_kernel.c | 28 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() 1298 pernet->next_id = 1; in mptcp_pm_nl_flush_addrs_doit() 1586 pernet->next_id in pm_nl_init_net() [all...] |
| /linux/drivers/infiniband/core/ |
| H A D | restrack.h | 23 u32 next_id; member
|
| H A D | restrack.c | 220 &rt->next_id, GFP_KERNEL); in rdma_restrack_add()
|
| /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/infiniband/hw/hfi1/ |
| H A D | vnic_main.c | 322 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/gpu/drm/ingenic/ |
| H A D | ingenic-drm-drv.c | 248 unsigned int next_id; in ingenic_drm_crtc_atomic_enable() local 255 next_id = priv_state->use_palette ? HWDESC_PALETTE : 0; in ingenic_drm_crtc_atomic_enable() 256 regmap_write(priv->map, JZ_REG_LCD_DA0, dma_hwdesc_addr(priv, next_id)); in ingenic_drm_crtc_atomic_enable() 668 unsigned int width, height, cpp, next_id, plane_id; in ingenic_drm_plane_atomic_update() local 688 next_id = (priv_state && priv_state->use_palette) ? HWDESC_PALETTE : plane_id; in ingenic_drm_plane_atomic_update() 693 hwdesc->next = dma_hwdesc_addr(priv, next_id); in ingenic_drm_plane_atomic_update()
|
| /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/fs/hfs/ |
| H A D | super.c | 327 atomic64_set(&sbi->next_id, 0); in hfs_fill_super()
|
| /linux/kernel/ |
| H A D | seccomp.c | 152 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()
|