/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | bpf_obj_id.c | 28 __u32 i, next_id, info_len, nr_id_found, duration = 0; in serial_test_bpf_obj_id() local 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() 197 prog_fd = bpf_prog_get_fd_by_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() 258 map_fd = bpf_map_get_fd_by_id(next_id); in serial_test_bpf_obj_id() 264 map_fd, next_id, errno)) in serial_test_bpf_obj_id() [all …]
|
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()
|
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-6.6.21/ipc/ |
D | ipc_sysctl.c | 154 .data = &init_ipc_ns.ids[IPC_SEM_IDS].next_id, 155 .maxlen = sizeof(init_ipc_ns.ids[IPC_SEM_IDS].next_id), 163 .data = &init_ipc_ns.ids[IPC_MSG_IDS].next_id, 164 .maxlen = sizeof(init_ipc_ns.ids[IPC_MSG_IDS].next_id), 172 .data = &init_ipc_ns.ids[IPC_SHM_IDS].next_id, 173 .maxlen = sizeof(init_ipc_ns.ids[IPC_SHM_IDS].next_id), 200 if (((table->data == &ns->ids[IPC_SEM_IDS].next_id) || in ipc_permissions() 201 (table->data == &ns->ids[IPC_MSG_IDS].next_id) || in ipc_permissions() 202 (table->data == &ns->ids[IPC_SHM_IDS].next_id)) && in ipc_permissions() 249 else if (tbl[i].data == &init_ipc_ns.ids[IPC_SEM_IDS].next_id) in setup_ipc_sysctls() [all …]
|
D | namespace.c | 127 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()
|
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-6.6.21/drivers/virt/ |
D | vmgenid.c | 20 u8 *next_id; member 52 state->next_id = devm_memremap(&device->dev, phys_addr, VMGENID_SIZE, MEMREMAP_WB); in vmgenid_add() 53 if (IS_ERR(state->next_id)) { in vmgenid_add() 54 ret = PTR_ERR(state->next_id); in vmgenid_add() 58 memcpy(state->this_id, state->next_id, sizeof(state->this_id)); in vmgenid_add() 74 memcpy(state->this_id, state->next_id, sizeof(state->this_id)); in vmgenid_notify()
|
/linux-6.6.21/drivers/hwtracing/coresight/ |
D | coresight-trace-id.c | 57 int found_id = 0, bit = 1, next_id; in coresight_trace_id_find_odd_id() local 64 next_id = find_next_zero_bit(id_map->used_ids, in coresight_trace_id_find_odd_id() 66 if ((next_id < CORESIGHT_TRACE_ID_RES_TOP) && (next_id & 0x1)) in coresight_trace_id_find_odd_id() 67 found_id = next_id; in coresight_trace_id_find_odd_id() 69 bit = next_id + 1; in coresight_trace_id_find_odd_id()
|
/linux-6.6.21/drivers/isdn/mISDN/ |
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()
|
D | layer2.h | 61 u_int next_id; member
|
/linux-6.6.21/samples/bpf/ |
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-6.6.21/tools/lib/bpf/ |
D | bpf.h | 459 LIBBPF_API int bpf_prog_get_next_id(__u32 start_id, __u32 *next_id); 460 LIBBPF_API int bpf_map_get_next_id(__u32 start_id, __u32 *next_id); 461 LIBBPF_API int bpf_btf_get_next_id(__u32 start_id, __u32 *next_id); 462 LIBBPF_API int bpf_link_get_next_id(__u32 start_id, __u32 *next_id);
|
D | bpf.c | 988 static int bpf_obj_get_next_id(__u32 start_id, __u32 *next_id, int cmd) in bpf_obj_get_next_id() argument 999 *next_id = attr.next_id; in bpf_obj_get_next_id() 1004 int bpf_prog_get_next_id(__u32 start_id, __u32 *next_id) in bpf_prog_get_next_id() argument 1006 return bpf_obj_get_next_id(start_id, next_id, BPF_PROG_GET_NEXT_ID); in bpf_prog_get_next_id() 1009 int bpf_map_get_next_id(__u32 start_id, __u32 *next_id) in bpf_map_get_next_id() argument 1011 return bpf_obj_get_next_id(start_id, next_id, BPF_MAP_GET_NEXT_ID); in bpf_map_get_next_id() 1014 int bpf_btf_get_next_id(__u32 start_id, __u32 *next_id) in bpf_btf_get_next_id() argument 1016 return bpf_obj_get_next_id(start_id, next_id, BPF_BTF_GET_NEXT_ID); in bpf_btf_get_next_id() 1019 int bpf_link_get_next_id(__u32 start_id, __u32 *next_id) in bpf_link_get_next_id() argument 1021 return bpf_obj_get_next_id(start_id, next_id, BPF_LINK_GET_NEXT_ID); in bpf_link_get_next_id()
|
/linux-6.6.21/drivers/infiniband/core/ |
D | restrack.h | 23 u32 next_id; member
|
/linux-6.6.21/drivers/gpu/drm/qxl/ |
D | qxl_cmd.c | 215 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-6.6.21/arch/x86/mm/ |
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-6.6.21/include/linux/ |
D | ipc_namespace.h | 26 int next_id; member
|
/linux-6.6.21/fs/xfs/ |
D | xfs_dquot.c | 704 xfs_dqid_t next_id = *id + 1; /* simple advance */ in xfs_dq_get_next_id() local 712 if (next_id < *id) in xfs_dq_get_next_id() 716 if (next_id % mp->m_quotainfo->qi_dqperchunk) { in xfs_dq_get_next_id() 717 *id = next_id; in xfs_dq_get_next_id() 722 start = (xfs_fsblock_t)next_id / mp->m_quotainfo->qi_dqperchunk; in xfs_dq_get_next_id()
|
/linux-6.6.21/drivers/soc/hisilicon/ |
D | kunpeng_hccs.h | 140 u8 next_id; member
|
/linux-6.6.21/drivers/infiniband/hw/hfi1/ |
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-6.6.21/net/mptcp/ |
D | pm_netlink.c | 44 unsigned int next_id; member 918 if (pernet->next_id == MPTCP_PM_MAX_ADDR_ID) in mptcp_pm_nl_append_new_local_addr() 919 pernet->next_id = 1; in mptcp_pm_nl_append_new_local_addr() 960 pernet->next_id); in mptcp_pm_nl_append_new_local_addr() 961 if (!entry->addr.id && pernet->next_id != 1) { in mptcp_pm_nl_append_new_local_addr() 962 pernet->next_id = 1; in mptcp_pm_nl_append_new_local_addr() 971 if (entry->addr.id > pernet->next_id) in mptcp_pm_nl_append_new_local_addr() 972 pernet->next_id = entry->addr.id; in mptcp_pm_nl_append_new_local_addr() 1653 pernet->next_id = 1; in mptcp_nl_cmd_flush_addrs() 2388 pernet->next_id = 1; in pm_nl_init_net()
|
/linux-6.6.21/fs/hfs/ |
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()
|
D | hfs_fs.h | 121 u32 next_id; /* The next available member
|
/linux-6.6.21/drivers/gpu/drm/ingenic/ |
D | ingenic-drm-drv.c | 247 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-6.6.21/fs/ntfs3/ |
D | fsntfs.c | 1943 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()
|