| /linux/tools/lib/bpf/ |
| H A D | bpf_gen_internal.h | 63 struct bpf_map_create_opts *map_attr, int map_idx); 68 void bpf_gen__map_update_elem(struct bpf_gen *gen, int map_idx, void *value, __u32 value_size, 70 void bpf_gen__map_freeze(struct bpf_gen *gen, int map_idx);
|
| H A D | gen_loader.c | 491 struct bpf_map_create_opts *map_attr, int map_idx) in bpf_gen__map_create() argument 514 map_name, map_idx, map_type, map_attr->btf_value_type_id, in bpf_gen__map_create() 541 if (map_idx >= 0 && !OPTS_GET(gen->opts, gen_hash, false)) in bpf_gen__map_create() 544 sizeof(struct bpf_map_desc) * map_idx + in bpf_gen__map_create() 551 map_name, map_idx, map_type, value_size, in bpf_gen__map_create() 555 if (map_idx < 0) { in bpf_gen__map_create() 562 } else if (map_idx != gen->nr_maps) { in bpf_gen__map_create() 1130 void bpf_gen__map_update_elem(struct bpf_gen *gen, int map_idx, void *pvalue, in bpf_gen__map_update_elem() argument 1161 sizeof(struct bpf_map_desc) * map_idx + in bpf_gen__map_update_elem() 1177 map_idx, value, value_size, map_update_attr, attr_size); in bpf_gen__map_update_elem() [all …]
|
| H A D | libbpf.c | 388 int map_idx; member 4653 size_t map_idx, nr_maps = prog->obj->nr_maps; in bpf_program__record_reloc() local 4751 reloc_desc->map_idx = obj->arena_map_idx; in bpf_program__record_reloc() 4765 reloc_desc->map_idx = -1; in bpf_program__record_reloc() 4778 for (map_idx = 0; map_idx < nr_maps; map_idx++) { in bpf_program__record_reloc() 4779 map = &obj->maps[map_idx]; in bpf_program__record_reloc() 4785 prog->name, map_idx, map->name, map->sec_idx, in bpf_program__record_reloc() 4789 if (map_idx >= nr_maps) { in bpf_program__record_reloc() 4796 reloc_desc->map_idx = map_idx; in bpf_program__record_reloc() 4807 for (map_idx = 0; map_idx < nr_maps; map_idx++) { in bpf_program__record_reloc() [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | local_storage_bench.c | 82 unsigned int map_idx = index % num_maps; in loop() local 84 do_lookup(map_idx, lctx); in loop() 85 if (interleave && map_idx % 3 == 0) in loop()
|
| /linux/drivers/irqchip/ |
| H A D | irq-bcm7120-l2.c | 184 unsigned int map_idx = gc_idx * 2; in bcm7120_l2_intc_iomap_3380() local 185 void __iomem *en = of_iomap(dn, map_idx + 0); in bcm7120_l2_intc_iomap_3380() 186 void __iomem *stat = of_iomap(dn, map_idx + 1); in bcm7120_l2_intc_iomap_3380() 189 data->map_base[map_idx + 0] = en; in bcm7120_l2_intc_iomap_3380() 190 data->map_base[map_idx + 1] = stat; in bcm7120_l2_intc_iomap_3380()
|
| /linux/drivers/net/ethernet/broadcom/bnge/ |
| H A D | bnge_netdev.c | 621 ring->map_idx = ulp_msix + i; in bnge_alloc_nq_tree() 1367 return nqr->ring_struct.map_idx; in bnge_cp_num_to_irq_num() 1790 u32 ring_type, u32 map_idx, u32 xid) in bnge_set_db() argument 1821 u32 map_idx = bnapi->index; in bnge_hwrm_cp_ring_alloc() local 1826 rc = hwrm_ring_alloc_send_msg(bn, ring, type, map_idx); in bnge_hwrm_cp_ring_alloc() 1830 bnge_set_db(bn, &cpr->cp_db, type, map_idx, ring->fw_ring_id); in bnge_hwrm_cp_ring_alloc() 1859 u32 map_idx; in bnge_hwrm_rx_agg_ring_alloc() local 1862 map_idx = grp_idx + bd->rx_nr_rings; in bnge_hwrm_rx_agg_ring_alloc() 1863 rc = hwrm_ring_alloc_send_msg(bn, ring, type, map_idx); in bnge_hwrm_rx_agg_ring_alloc() 1867 bnge_set_db(bn, &rxr->rx_agg_db, type, map_idx, in bnge_hwrm_rx_agg_ring_alloc() [all …]
|
| H A D | bnge_rmem.h | 190 u16 map_idx; /* Used by NQs */ member
|
| /linux/sound/soc/atmel/ |
| H A D | mchp-pdmc.c | 271 int map_idx = map->channels == 1 ? map->map[i] - SNDRV_CHMAP_MONO : in mchp_pdmc_chmap_ctl_get() local 275 if (dd->channel_mic_map[map_idx].ds_pos) in mchp_pdmc_chmap_ctl_get() 277 if (dd->channel_mic_map[map_idx].clk_edge) in mchp_pdmc_chmap_ctl_get() 313 int map_idx; in mchp_pdmc_chmap_ctl_put() local 316 map_idx = map->channels == 1 ? map->map[i] - SNDRV_CHMAP_MONO : in mchp_pdmc_chmap_ctl_put() 320 if (dd->channel_mic_map[map_idx].ds_pos) in mchp_pdmc_chmap_ctl_put() 322 if (dd->channel_mic_map[map_idx].clk_edge) in mchp_pdmc_chmap_ctl_put()
|
| /linux/sound/soc/fsl/ |
| H A D | fsl_asrc.c | 1232 u32 map_idx; in fsl_asrc_probe() local 1323 ret = of_property_read_u32(np, "fsl,asrc-clk-map", &map_idx); in fsl_asrc_probe() 1329 if (map_idx > 1) { in fsl_asrc_probe() 1334 asrc_priv->clk_map[IN] = clk_map_imx8qm[map_idx]; in fsl_asrc_probe() 1335 asrc_priv->clk_map[OUT] = clk_map_imx8qm[map_idx]; in fsl_asrc_probe() 1337 asrc_priv->clk_map[IN] = clk_map_imx8qxp[map_idx]; in fsl_asrc_probe() 1338 asrc_priv->clk_map[OUT] = clk_map_imx8qxp[map_idx]; in fsl_asrc_probe()
|
| /linux/drivers/accel/habanalabs/common/ |
| H A D | device.c | 2725 u32 map_idx = 0; in hl_capture_user_mappings() local 2764 pgf_info->user_mappings[map_idx].dev_va = hnode->vaddr; in hl_capture_user_mappings() 2765 pgf_info->user_mappings[map_idx].size = userptr->size; in hl_capture_user_mappings() 2766 map_idx++; in hl_capture_user_mappings() 2769 pgf_info->user_mappings[map_idx].dev_va = hnode->vaddr; in hl_capture_user_mappings() 2770 pgf_info->user_mappings[map_idx].size = phys_pg_pack->total_size; in hl_capture_user_mappings() 2771 map_idx++; in hl_capture_user_mappings()
|
| /linux/arch/s390/include/asm/ |
| H A D | pci.h | 99 u16 map_idx; /* index into bar mapping array */ member
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt.c | 4311 ring->map_idx = ulp_msix + i; in bnxt_alloc_cp_rings() 5753 return cpr->cp_ring_struct.map_idx; in bnxt_cp_num_to_irq_num() 5767 int map_idx = bnxt_cp_num_to_irq_num(bp, i); in bnxt_disable_int_sync() local 5769 synchronize_irq(bp->irq_tbl[map_idx].vector); in bnxt_disable_int_sync() 7384 u32 map_idx, u32 xid) in bnxt_set_db() argument 7409 db->doorbell = bp->bar1 + map_idx * 0x80; in bnxt_set_db() 7432 u32 map_idx = bnapi->index; in bnxt_hwrm_rx_ring_alloc() local 7435 rc = hwrm_ring_alloc_send_msg(bp, rxr, ring, type, map_idx); in bnxt_hwrm_rx_ring_alloc() 7439 bnxt_set_db(bp, &rxr->rx_db, type, map_idx, ring->fw_ring_id); in bnxt_hwrm_rx_ring_alloc() 7440 bp->grp_info[map_idx].rx_fw_ring_id = ring->fw_ring_id; in bnxt_hwrm_rx_ring_alloc() [all …]
|
| H A D | bnxt.h | 950 u16 map_idx; /* Used by cmpl rings */ member
|
| /linux/samples/bpf/ |
| H A D | map_perf_test_user.c | 62 enum map_idx { enum
|
| /linux/drivers/media/platform/ti/omap3isp/ |
| H A D | isp.c | 2291 unsigned int map_idx = i ? OMAP3_ISP_IOMEM_CSI2A_REGS1 : 0; in isp_probe() local 2293 isp->mmio_base[map_idx] = in isp_probe() 2295 if (IS_ERR(isp->mmio_base[map_idx])) { in isp_probe() 2296 ret = PTR_ERR(isp->mmio_base[map_idx]); in isp_probe()
|
| /linux/kernel/bpf/ |
| H A D | verifier.c | 19040 int map_idx; in check_and_resolve_insns() local 19093 map_idx = fd_array_get_map_idx(env, insn[0].imm); in check_and_resolve_insns() 19100 map_idx = add_used_map(env, insn[0].imm); in check_and_resolve_insns() 19104 if (map_idx < 0) in check_and_resolve_insns() 19105 return map_idx; in check_and_resolve_insns() 19106 map = env->used_maps[map_idx]; in check_and_resolve_insns() 19109 aux->map_index = map_idx; in check_and_resolve_insns()
|