Home
last modified time | relevance | path

Searched refs:map_id (Results 1 – 25 of 33) sorted by relevance

12

/linux-6.1.9/include/trace/events/
Dxdp.h95 u32 map_id, u32 index),
97 TP_ARGS(dev, xdp, tgt, err, map_type, map_id, index),
105 __field(u32, map_id)
118 } else if (map_type == BPF_MAP_TYPE_UNSPEC && map_id == INT_MAX) {
128 __entry->map_id = map_id;
137 __entry->err, __entry->map_id, __entry->map_index)
145 u32 map_id, u32 index),
146 TP_ARGS(dev, xdp, tgt, err, map_type, map_id, index)
154 u32 map_id, u32 index),
155 TP_ARGS(dev, xdp, tgt, err, map_type, map_id, index)
[all …]
/linux-6.1.9/samples/bpf/
Dsyscall_tp_user.c25 static void verify_map(int map_id) in verify_map() argument
30 if (bpf_map_lookup_elem(map_id, &key, &val) != 0) { in verify_map()
35 fprintf(stderr, "failed: map #%d returns value 0\n", map_id); in verify_map()
39 printf("verify map:%d val: %d\n", map_id, val); in verify_map()
42 if (bpf_map_update_elem(map_id, &key, &val, BPF_ANY) != 0) { in verify_map()
Dxdp_sample.bpf.c128 int BPF_PROG(tp_xdp_cpumap_enqueue, int map_id, unsigned int processed, in BPF_PROG() argument
135 if (cpumap_map_id && cpumap_map_id != map_id) in BPF_PROG()
156 int BPF_PROG(tp_xdp_cpumap_kthread, int map_id, unsigned int processed, in BPF_PROG() argument
162 if (cpumap_map_id && cpumap_map_id != map_id) in BPF_PROG()
/linux-6.1.9/kernel/bpf/
Dmap_iter.c10 u32 map_id; member
18 map = bpf_map_get_curr_or_next(&info->map_id); in bpf_map_seq_start()
32 ++info->map_id; in bpf_map_seq_next()
34 return bpf_map_get_curr_or_next(&info->map_id); in bpf_map_seq_next()
161 info->iter.map.map_id = aux->map->id; in bpf_iter_map_fill_link_info()
Dcpumap.c56 int map_id; /* Back reference to map */ member
390 trace_xdp_cpumap_kthread(rcpu->map_id, n, kmem_alloc_drops, in cpu_map_kthread_run()
460 rcpu->map_id = map->id; in __cpu_map_entry_alloc()
722 trace_xdp_cpumap_enqueue(rcpu->map_id, processed, drops, to_cpu); in bq_flush_to_queue()
776 trace_xdp_cpumap_enqueue(rcpu->map_id, !ret, !!ret, rcpu->cpu); in cpu_map_generic_redirect()
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dpinning.c36 __u32 map_id, map_id2, duration = 0; in test_pinning() local
82 map_id = get_map_id(obj, "pinmap"); in test_pinning()
83 if (!map_id) in test_pinning()
100 if (CHECK(map_id != map_id2, "check reuse", in test_pinning()
101 "err %d errno %d id %d id2 %d\n", err, errno, map_id, map_id2)) in test_pinning()
/linux-6.1.9/include/linux/
Dmmiotrace.h92 int map_id; member
101 int map_id; member
Dfilter.h650 u32 map_id; member
1525 ri->map_id = INT_MAX; /* Valid map id idr range: [1,INT_MAX[ */ in __bpf_xdp_redirect_map()
1531 ri->map_id = map->id; in __bpf_xdp_redirect_map()
/linux-6.1.9/kernel/trace/
Dtrace_mmiotrace.c182 rw->width, secs, usec_rem, rw->map_id, in mmio_print_rw()
189 rw->width, secs, usec_rem, rw->map_id, in mmio_print_rw()
197 secs, usec_rem, rw->map_id, in mmio_print_rw()
227 secs, usec_rem, m->map_id, in mmio_print_map()
234 secs, usec_rem, m->map_id, 0UL, 0); in mmio_print_map()
Dtrace_entries.h264 __field_desc( int, rw, map_id )
271 __entry->map_id, __entry->opcode, __entry->width)
283 __field_desc( int, map, map_id )
289 __entry->map_id, __entry->opcode)
/linux-6.1.9/tools/testing/selftests/bpf/map_tests/
Dmap_in_map_batch_ops.c35 __u32 map_key = 0, map_id; in create_inner_maps() local
57 map_id = get_map_id_from_fd(map_fd); in create_inner_maps()
58 ret = bpf_map_update_elem(map_fd, &map_key, &map_id, 0); in create_inner_maps()
/linux-6.1.9/arch/x86/mm/
Dmmio-mod.c148 my_trace->map_id = trace->id; in pre()
248 map.map_id = trace->id; in ioremap_trace_core()
305 map.map_id = (found_trace) ? found_trace->id : -1; in iounmap_trace_core()
/linux-6.1.9/drivers/net/ethernet/ibm/
Dibmvnic.h349 u8 map_id; member
564 u8 map_id; member
574 u8 map_id; member
583 u8 map_id; member
591 u8 map_id; member
834 u8 map_id; member
Dibmvnic.c274 ltb->map_id, ltb->size); in alloc_long_term_buff()
284 ltb->map_id = find_first_zero_bit(adapter->map_ids, in alloc_long_term_buff()
286 bitmap_set(adapter->map_ids, ltb->map_id, 1); in alloc_long_term_buff()
290 ltb->map_id, ltb->size, prev); in alloc_long_term_buff()
300 rc = send_request_map(adapter, ltb->addr, ltb->size, ltb->map_id); in alloc_long_term_buff()
341 send_request_unmap(adapter, ltb->map_id); in free_long_term_buff()
347 bitmap_clear(adapter->map_ids, ltb->map_id, 1); in free_long_term_buff()
348 ltb->map_id = 0; in free_long_term_buff()
635 sub_crq->rx_add.map_id = ltb->map_id; in replenish_rx_pool()
2230 tx_crq.v1.dma_reg = cpu_to_be16(ltb->map_id); in ibmvnic_xmit()
[all …]
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/bpf/
Doffload.c58 record->map_id = map->id; in nfp_map_ptr_record()
450 u32 pkt_size, data_size, map_id; in nfp_bpf_event_output() local
459 map_id = map_id_full; in nfp_bpf_event_output()
467 record = rhashtable_lookup(&bpf->maps_neutral, &map_id, in nfp_bpf_event_output()
Dmain.h227 u32 map_id; member
Dmain.c19 .key_offset = offsetof(struct nfp_bpf_neutral_map, map_id),
/linux-6.1.9/drivers/scsi/megaraid/
Dmegaraid_sas_fp.c157 static int MR_PopulateDrvRaidMap(struct megasas_instance *instance, u64 map_id) in MR_PopulateDrvRaidMap() argument
170 fusion->ld_drv_map[(map_id & 1)]; in MR_PopulateDrvRaidMap()
179 fw_map_dyn = fusion->ld_map[(map_id & 1)]; in MR_PopulateDrvRaidMap()
244 (struct MR_FW_RAID_MAP_EXT *)fusion->ld_map[(map_id & 1)]; in MR_PopulateDrvRaidMap()
271 fusion->ld_map[(map_id & 1)]; in MR_PopulateDrvRaidMap()
302 u8 MR_ValidateMapInfo(struct megasas_instance *instance, u64 map_id) in MR_ValidateMapInfo() argument
314 if (MR_PopulateDrvRaidMap(instance, map_id)) in MR_ValidateMapInfo()
318 drv_map = fusion->ld_drv_map[(map_id & 1)]; in MR_ValidateMapInfo()
Dmegaraid_sas_debugfs.c72 debug->buf = (void *)fusion->ld_drv_map[(instance->map_id & 1)]; in megasas_debugfs_raidmap_open()
Dmegaraid_sas_fusion.c1421 ci = (void *) fusion->ld_map[(instance->map_id & 1)]; in megasas_get_ld_map_info()
1422 ci_h = fusion->ld_map_phys[(instance->map_id & 1)]; in megasas_get_ld_map_info()
1466 if (MR_ValidateMapInfo(instance, instance->map_id)) { in megasas_get_map_info()
1511 map = fusion->ld_drv_map[instance->map_id & 1]; in megasas_sync_map_info()
1520 fusion->ld_map[(instance->map_id - 1) & 1]; in megasas_sync_map_info()
1523 ci_h = fusion->ld_map_phys[(instance->map_id - 1) & 1]; in megasas_sync_map_info()
2820 local_map_ptr = fusion->ld_drv_map[(instance->map_id & 1)]; in megasas_build_ldio_fusion()
2996 local_map_ptr = fusion->ld_drv_map[(instance->map_id & 1)]; in megasas_build_ld_nonrw_fusion()
3146 fusion->ld_drv_map[(instance->map_id & 1)]; in megasas_build_syspd_fusion()
/linux-6.1.9/drivers/mtd/spi-nor/
Dsfdp.c696 u8 read_data_mask, map_id; in spi_nor_get_map_in_use() local
707 map_id = 0; in spi_nor_get_map_in_use()
729 map_id = map_id << 1 | !!(*buf & read_data_mask); in spi_nor_get_map_in_use()
741 if (SMPT_MAP_ID(smpt[i]) == map_id) { in spi_nor_get_map_in_use()
/linux-6.1.9/tools/bpf/bpftool/
Dlink.c123 jsonw_uint_field(wtr, "map_id", info->iter.map.map_id); in show_iter_json()
252 printf("map_id %u ", info->iter.map.map_id); in show_iter_plain()
/linux-6.1.9/tools/lib/bpf/
Dskel_internal.h272 attr.map_id = id; in skel_map_get_fd_by_id()
/linux-6.1.9/net/core/
Dfilter.c4190 ri->map_id = INT_MAX; in xdp_master_redirect()
4205 u32 map_id = ri->map_id; in __xdp_do_redirect_xsk() local
4208 ri->map_id = 0; /* Valid map id idr range: [1,INT_MAX[ */ in __xdp_do_redirect_xsk()
4215 _trace_xdp_redirect_map(dev, xdp_prog, fwd, map_type, map_id, ri->tgt_index); in __xdp_do_redirect_xsk()
4218 _trace_xdp_redirect_map_err(dev, xdp_prog, fwd, map_type, map_id, ri->tgt_index, err); in __xdp_do_redirect_xsk()
4229 u32 map_id = ri->map_id; in __xdp_do_redirect_frame() local
4233 ri->map_id = 0; /* Valid map id idr range: [1,INT_MAX[ */ in __xdp_do_redirect_frame()
4258 if (map_id == INT_MAX) { in __xdp_do_redirect_frame()
4275 _trace_xdp_redirect_map(dev, xdp_prog, fwd, map_type, map_id, ri->tgt_index); in __xdp_do_redirect_frame()
4278 _trace_xdp_redirect_map_err(dev, xdp_prog, fwd, map_type, map_id, ri->tgt_index, err); in __xdp_do_redirect_frame()
[all …]
/linux-6.1.9/tools/include/uapi/linux/
Dbpf.h1440 __u32 map_id; member
6263 __u32 map_id; member

12