Home
last modified time | relevance | path

Searched refs:next_id (Results 1 – 25 of 42) 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/ipc/
H A Dipc_sysctl.c155 .data = &init_ipc_ns.ids[IPC_SEM_IDS].next_id,
156 .maxlen = sizeof(init_ipc_ns.ids[IPC_SEM_IDS].next_id),
164 .data = &init_ipc_ns.ids[IPC_MSG_IDS].next_id,
165 .maxlen = sizeof(init_ipc_ns.ids[IPC_MSG_IDS].next_id),
173 .data = &init_ipc_ns.ids[IPC_SHM_IDS].next_id,
174 .maxlen = sizeof(init_ipc_ns.ids[IPC_SHM_IDS].next_id),
214 if (((table->data == &ns->ids[IPC_SEM_IDS].next_id) || in ipc_permissions()
215 (table->data == &ns->ids[IPC_MSG_IDS].next_id) || in ipc_permissions()
216 (table->data == &ns->ids[IPC_SHM_IDS].next_id)) && in ipc_permissions()
280 else if (tbl[i].data == &init_ipc_ns.ids[IPC_SEM_IDS].next_id) in setup_ipc_sysctls()
[all …]
H A Dnamespace.c127 int next_id; in free_ipcs() local
134 for (total = 0, next_id = 0; total < in_use; next_id++) { in free_ipcs()
135 perm = idr_find(&ids->ipcs_idr, next_id); in free_ipcs()
H A Dutil.c125 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/drivers/hwtracing/coresight/
H A Dcoresight-trace-id.c51 int found_id = 0, bit = 1, next_id; in coresight_trace_id_find_odd_id() local
58 next_id = find_next_zero_bit(id_map->used_ids, in coresight_trace_id_find_odd_id()
60 if ((next_id < CORESIGHT_TRACE_ID_RES_TOP) && (next_id & 0x1)) in coresight_trace_id_find_odd_id()
61 found_id = next_id; in coresight_trace_id_find_odd_id()
63 bit = next_id + 1; in coresight_trace_id_find_odd_id()
/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()
H A Dbpf.h479 LIBBPF_API int bpf_prog_get_next_id(__u32 start_id, __u32 *next_id);
480 LIBBPF_API int bpf_map_get_next_id(__u32 start_id, __u32 *next_id);
481 LIBBPF_API int bpf_btf_get_next_id(__u32 start_id, __u32 *next_id);
482 LIBBPF_API int bpf_link_get_next_id(__u32 start_id, __u32 *next_id);
H A Dbpf.c1013 static int bpf_obj_get_next_id(__u32 start_id, __u32 *next_id, int cmd) in bpf_obj_get_next_id() argument
1024 *next_id = attr.next_id; in bpf_obj_get_next_id()
1029 int bpf_prog_get_next_id(__u32 start_id, __u32 *next_id) in bpf_prog_get_next_id() argument
1031 return bpf_obj_get_next_id(start_id, next_id, BPF_PROG_GET_NEXT_ID); in bpf_prog_get_next_id()
1034 int bpf_map_get_next_id(__u32 start_id, __u32 *next_id) in bpf_map_get_next_id() argument
1036 return bpf_obj_get_next_id(start_id, next_id, BPF_MAP_GET_NEXT_ID); in bpf_map_get_next_id()
1039 int bpf_btf_get_next_id(__u32 start_id, __u32 *next_id) in bpf_btf_get_next_id() argument
1041 return bpf_obj_get_next_id(start_id, next_id, BPF_BTF_GET_NEXT_ID); in bpf_btf_get_next_id()
1044 int bpf_link_get_next_id(__u32 start_id, __u32 *next_id) in bpf_link_get_next_id() argument
1046 return bpf_obj_get_next_id(start_id, next_id, BPF_LINK_GET_NEXT_ID); in bpf_link_get_next_id()
/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/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/drivers/infiniband/core/
H A Drestrack.h23 u32 next_id; member
/linux/drivers/gpu/drm/qxl/
H A Dqxl_cmd.c215 uint64_t id, next_id; in qxl_garbage_collect() local
227 next_id = info->next; in qxl_garbage_collect()
231 next_id); in qxl_garbage_collect()
242 id = next_id; in qxl_garbage_collect()
/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/drivers/isdn/mISDN/
H A Dlayer2.h61 u_int next_id; member
/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.h155 u8 next_id; member
/linux/net/mptcp/
H A Dpm_netlink.c39 unsigned int next_id; member
980 if (pernet->next_id == MPTCP_PM_MAX_ADDR_ID) in mptcp_pm_nl_append_new_local_addr()
981 pernet->next_id = 1; in mptcp_pm_nl_append_new_local_addr()
1022 pernet->next_id); in mptcp_pm_nl_append_new_local_addr()
1023 if (!entry->addr.id && pernet->next_id != 1) { in mptcp_pm_nl_append_new_local_addr()
1024 pernet->next_id = 1; in mptcp_pm_nl_append_new_local_addr()
1033 if (entry->addr.id > pernet->next_id) in mptcp_pm_nl_append_new_local_addr()
1034 pernet->next_id = entry->addr.id; in mptcp_pm_nl_append_new_local_addr()
1745 pernet->next_id = 1; in mptcp_pm_nl_flush_addrs_doit()
2428 pernet->next_id = 1; in pm_nl_init_net()
/linux/fs/hfs/
H A Dmdb.c153 HFS_SB(sb)->next_id = be32_to_cpu(mdb->drNxtCNID); in hfs_mdb_get()
276 mdb->drNxtCNID = cpu_to_be32(HFS_SB(sb)->next_id); in hfs_mdb_commit()
/linux/drivers/gpu/drm/ingenic/
H A Dingenic-drm-drv.c247 unsigned int next_id; in ingenic_drm_crtc_atomic_enable() local
254 next_id = priv_state->use_palette ? HWDESC_PALETTE : 0; in ingenic_drm_crtc_atomic_enable()
255 regmap_write(priv->map, JZ_REG_LCD_DA0, dma_hwdesc_addr(priv, next_id)); in ingenic_drm_crtc_atomic_enable()
662 unsigned int width, height, cpp, next_id, plane_id; in ingenic_drm_plane_atomic_update() local
682 next_id = (priv_state && priv_state->use_palette) ? HWDESC_PALETTE : plane_id; in ingenic_drm_plane_atomic_update()
687 hwdesc->next = dma_hwdesc_addr(priv, next_id); in ingenic_drm_plane_atomic_update()
/linux/fs/ntfs3/
H A Dfsntfs.c1943 sbi->security.next_id = SECURITY_ID_FIRST; in ntfs_security_init()
1952 u32 next_id; in ntfs_security_init() local
1962 next_id = le32_to_cpu(sii_e->sec_id) + 1; in ntfs_security_init()
1963 if (next_id >= sbi->security.next_id) in ntfs_security_init()
1964 sbi->security.next_id = next_id; in ntfs_security_init()
2197 d_security->key.sec_id = cpu_to_le32(sbi->security.next_id); in ntfs_insert_security()
2268 sbi->security.next_id += 1; in ntfs_insert_security()

12