/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | bpf_obj_id.c | 189 next_id = 0; in serial_test_bpf_obj_id() 190 while (!bpf_prog_get_next_id(next_id, &next_id)) { in serial_test_bpf_obj_id() 203 prog_fd, next_id, errno)) in serial_test_bpf_obj_id() 207 if (prog_infos[i].id == next_id) in serial_test_bpf_obj_id() 251 next_id = 0; in serial_test_bpf_obj_id() 252 while (!bpf_map_get_next_id(next_id, &next_id)) { in serial_test_bpf_obj_id() 264 map_fd, next_id, errno)) in serial_test_bpf_obj_id() 268 if (map_infos[i].id == next_id) in serial_test_bpf_obj_id() 299 next_id = 0; in serial_test_bpf_obj_id() 300 while (!bpf_link_get_next_id(next_id, &next_id)) { in serial_test_bpf_obj_id() [all …]
|
/linux/ipc/ |
A D | ipc_sysctl.c | 203 .data = &init_ipc_ns.ids[IPC_SEM_IDS].next_id, 204 .maxlen = sizeof(init_ipc_ns.ids[IPC_SEM_IDS].next_id), 212 .data = &init_ipc_ns.ids[IPC_MSG_IDS].next_id, 213 .maxlen = sizeof(init_ipc_ns.ids[IPC_MSG_IDS].next_id), 221 .data = &init_ipc_ns.ids[IPC_SHM_IDS].next_id, 222 .maxlen = sizeof(init_ipc_ns.ids[IPC_SHM_IDS].next_id),
|
A D | namespace.c | 99 int next_id; in free_ipcs() local 106 for (total = 0, next_id = 0; total < in_use; next_id++) { in free_ipcs() 107 perm = idr_find(&ids->ipcs_idr, next_id); in free_ipcs()
|
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()
|
A D | shm.c | 952 int next_id; in shm_get_stat() local 960 for (total = 0, next_id = 0; total < in_use; next_id++) { in shm_get_stat() 964 ipc = idr_find(&shm_ids(ns).ipcs_idr, next_id); in shm_get_stat()
|
/linux/drivers/isdn/mISDN/ |
A D | timerdev.c | 28 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()
|
A D | layer2.h | 61 u_int next_id; member
|
/linux/samples/bpf/ |
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/tools/lib/bpf/ |
A D | bpf.h | 233 LIBBPF_API int bpf_prog_get_next_id(__u32 start_id, __u32 *next_id); 234 LIBBPF_API int bpf_map_get_next_id(__u32 start_id, __u32 *next_id); 235 LIBBPF_API int bpf_btf_get_next_id(__u32 start_id, __u32 *next_id); 236 LIBBPF_API int bpf_link_get_next_id(__u32 start_id, __u32 *next_id);
|
A D | bpf.c | 917 static int bpf_obj_get_next_id(__u32 start_id, __u32 *next_id, int cmd) in bpf_obj_get_next_id() argument 927 *next_id = attr.next_id; in bpf_obj_get_next_id() 932 int bpf_prog_get_next_id(__u32 start_id, __u32 *next_id) in bpf_prog_get_next_id() argument 934 return bpf_obj_get_next_id(start_id, next_id, BPF_PROG_GET_NEXT_ID); in bpf_prog_get_next_id() 937 int bpf_map_get_next_id(__u32 start_id, __u32 *next_id) in bpf_map_get_next_id() argument 939 return bpf_obj_get_next_id(start_id, next_id, BPF_MAP_GET_NEXT_ID); in bpf_map_get_next_id() 942 int bpf_btf_get_next_id(__u32 start_id, __u32 *next_id) in bpf_btf_get_next_id() argument 944 return bpf_obj_get_next_id(start_id, next_id, BPF_BTF_GET_NEXT_ID); in bpf_btf_get_next_id() 947 int bpf_link_get_next_id(__u32 start_id, __u32 *next_id) in bpf_link_get_next_id() argument 949 return bpf_obj_get_next_id(start_id, next_id, BPF_LINK_GET_NEXT_ID); in bpf_link_get_next_id()
|
/linux/drivers/media/platform/rockchip/rkisp1/ |
A D | rkisp1-dev.c | 253 unsigned int next_id = 0; in rkisp1_subdev_notifier() local 266 0, next_id, in rkisp1_subdev_notifier() 290 next_id = vep.base.id + 1; in rkisp1_subdev_notifier() 301 if (next_id == 0) in rkisp1_subdev_notifier()
|
/linux/drivers/infiniband/core/ |
A D | restrack.h | 23 u32 next_id; member
|
A D | restrack.c | 259 &rt->next_id, GFP_KERNEL); in rdma_restrack_add()
|
/linux/drivers/gpu/drm/qxl/ |
A D | qxl_cmd.c | 223 uint64_t id, next_id; in qxl_garbage_collect() local 235 next_id = info->next; in qxl_garbage_collect() 239 next_id); in qxl_garbage_collect() 250 id = next_id; in qxl_garbage_collect()
|
/linux/net/mptcp/ |
A D | pm_netlink.c | 54 unsigned int next_id; member 806 if (pernet->next_id == MAX_ADDR_ID) in mptcp_pm_nl_append_new_local_addr() 807 pernet->next_id = 1; in mptcp_pm_nl_append_new_local_addr() 827 pernet->next_id); in mptcp_pm_nl_append_new_local_addr() 829 pernet->next_id != 1) { in mptcp_pm_nl_append_new_local_addr() 830 pernet->next_id = 1; in mptcp_pm_nl_append_new_local_addr() 839 if (entry->addr.id > pernet->next_id) in mptcp_pm_nl_append_new_local_addr() 840 pernet->next_id = entry->addr.id; in mptcp_pm_nl_append_new_local_addr() 1463 pernet->next_id = 1; in mptcp_nl_cmd_flush_addrs() 2061 pernet->next_id = 1; in pm_nl_init_net()
|
/linux/arch/x86/mm/ |
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/fs/xfs/ |
A D | xfs_dquot.c | 730 xfs_dqid_t next_id = *id + 1; /* simple advance */ in xfs_dq_get_next_id() local 738 if (next_id < *id) in xfs_dq_get_next_id() 742 if (next_id % mp->m_quotainfo->qi_dqperchunk) { in xfs_dq_get_next_id() 743 *id = next_id; in xfs_dq_get_next_id() 748 start = (xfs_fsblock_t)next_id / mp->m_quotainfo->qi_dqperchunk; in xfs_dq_get_next_id()
|
/linux/include/linux/ |
A D | ipc_namespace.h | 24 int next_id; member
|
/linux/drivers/infiniband/hw/hfi1/ |
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/fs/hfs/ |
A D | mdb.c | 153 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()
|
A D | hfs_fs.h | 121 u32 next_id; /* The next available member
|
/linux/fs/ntfs3/ |
A D | fsntfs.c | 1914 sbi->security.next_id = SECURITY_ID_FIRST; in ntfs_security_init() 1923 u32 next_id; in ntfs_security_init() local 1933 next_id = le32_to_cpu(sii_e->sec_id) + 1; in ntfs_security_init() 1934 if (next_id >= sbi->security.next_id) in ntfs_security_init() 1935 sbi->security.next_id = next_id; in ntfs_security_init() 2168 d_security->key.sec_id = cpu_to_le32(sbi->security.next_id); in ntfs_insert_security() 2239 sbi->security.next_id += 1; in ntfs_insert_security()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | fs_counters.c | 112 unsigned long next_id = (unsigned long)id + 1; in mlx5_fc_counters_lookup_next() local 119 counter, tmp, next_id) { in mlx5_fc_counters_lookup_next()
|
/linux/samples/vfio-mdev/ |
A D | mbochs.c | 181 u32 next_id; member 546 mdev_state->next_id = 1; in mbochs_probe() 919 dmabuf->id = mdev_state->next_id++; in mbochs_dmabuf_alloc()
|
/linux/kernel/ |
A D | seccomp.c | 147 u64 next_id; member 1043 return filter->notif->next_id++; in seccomp_next_notify_id() 1742 filter->notif->next_id = get_random_u64(); in init_listener()
|