/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
H A D | nfp_mip.c | 43 nfp_mip_try_read(struct nfp_cpp *cpp, u32 cpp_id, u64 addr, struct nfp_mip *mip) in nfp_mip_try_read() argument 47 ret = nfp_cpp_read(cpp, cpp_id, addr, mip, sizeof(*mip)); in nfp_mip_try_read() 48 if (ret != sizeof(*mip)) { in nfp_mip_try_read() 50 ret, sizeof(*mip)); in nfp_mip_try_read() 53 if (mip->signature != NFP_MIP_SIGNATURE) { in nfp_mip_try_read() 55 le32_to_cpu(mip->signature)); in nfp_mip_try_read() 58 if (mip->mip_version != NFP_MIP_VERSION) { in nfp_mip_try_read() 60 le32_to_cpu(mip->mip_version)); in nfp_mip_try_read() 68 static int nfp_mip_read_resource(struct nfp_cpp *cpp, struct nfp_mip *mip) in nfp_mip_read_resource() argument 83 err = nfp_mip_try_read(cpp, cpp_id, addr, mip); in nfp_mip_read_resource() [all …]
|
H A D | nfp_nffw.h | 26 void nfp_mip_close(const struct nfp_mip *mip); 28 const char *nfp_mip_name(const struct nfp_mip *mip); 29 void nfp_mip_symtab(const struct nfp_mip *mip, u32 *addr, u32 *size); 30 void nfp_mip_strtab(const struct nfp_mip *mip, u32 *addr, u32 *size); 67 __nfp_rtsym_table_read(struct nfp_cpp *cpp, const struct nfp_mip *mip);
|
H A D | nfp_rtsym.c | 85 const struct nfp_mip *mip; in nfp_rtsym_table_read() local 87 mip = nfp_mip_open(cpp); in nfp_rtsym_table_read() 88 rtbl = __nfp_rtsym_table_read(cpp, mip); in nfp_rtsym_table_read() 89 nfp_mip_close(mip); in nfp_rtsym_table_read() 95 __nfp_rtsym_table_read(struct nfp_cpp *cpp, const struct nfp_mip *mip) in __nfp_rtsym_table_read() argument 104 if (!mip) in __nfp_rtsym_table_read() 107 nfp_mip_strtab(mip, &strtab_addr, &strtab_size); in __nfp_rtsym_table_read() 108 nfp_mip_symtab(mip, &symtab_addr, &symtab_size); in __nfp_rtsym_table_read()
|
/openbmc/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmw_surface_cache.h | 151 u32 mip; in vmw_surface_get_serialized_size() local 153 for (mip = 0; mip < num_mip_levels; mip++) { in vmw_surface_get_serialized_size() 155 vmw_surface_get_mip_size(base_level_size, mip); in vmw_surface_get_serialized_size() 213 u32 mip) in vmw_surface_get_image_offset() argument 232 if (i < mip) in vmw_surface_get_image_offset() 332 struct vmw_surface_mip mip[DRM_VMW_MAX_MIP_LEVELS]; member 393 struct vmw_surface_mip *mip = &cache->mip[i]; in vmw_surface_setup_cache() local 395 mip->size = vmw_surface_get_mip_size(*size, i); in vmw_surface_setup_cache() 396 mip->bytes = vmw_surface_get_image_buffer_size in vmw_surface_setup_cache() 397 (desc, &mip->size, 0); in vmw_surface_setup_cache() [all …]
|
H A D | vmwgfx_surface.c | 67 uint32_t mip; member 324 body->host.mipmap = cur_offset->mip; in vmw_surface_dma_encode() 807 cur_offset->mip = j; in vmw_surface_define_ioctl() 1675 u32 mip = loc_start->sub_resource % cache->num_mip_levels; in vmw_subres_dirty_add() local 1676 const struct drm_vmw_size *size = &cache->mip[mip].size; in vmw_subres_dirty_add() 1720 u32 mip = subres % cache->num_mip_levels; in vmw_subres_dirty_full() local 1721 const struct drm_vmw_size *size = &cache->mip[mip].size; in vmw_subres_dirty_full()
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_app.c | 59 if (!app || !app->pf->mip) in nfp_app_mip_name() 61 return nfp_mip_name(app->pf->mip); in nfp_app_mip_name()
|
H A D | nfp_main.c | 833 pf->mip = nfp_mip_open(pf->cpp); in nfp_pci_probe() 834 pf->rtbl = __nfp_rtsym_table_read(pf->cpp, pf->mip); in nfp_pci_probe() 874 nfp_mip_close(pf->mip); in nfp_pci_probe() 913 nfp_mip_close(pf->mip); in __nfp_pci_shutdown()
|
H A D | nfp_main.h | 120 const struct nfp_mip *mip; member
|
H A D | nfp_net_debugdump.c | 192 u32 fwname_len = strlen(nfp_mip_name(pf->mip)); in nfp_calc_fwname_tlv_size() 376 fwname = nfp_mip_name(pf->mip); in nfp_dump_fwname()
|
/openbmc/qemu/target/riscv/ |
H A D | cpu_helper.c | 465 return (env->mip | vsgein | vstip) & env->mie; in riscv_cpu_all_pending() 730 if (env->mip | vsgein | vstip | irqf) { in riscv_cpu_interrupt() 739 uint64_t old = env->mip; in riscv_cpu_update_mip() 746 env->mip = (env->mip & ~mask) | (value & mask); in riscv_cpu_update_mip() 1806 !(env->mip & (1ULL << cause)); in riscv_cpu_do_interrupt() 1808 !(env->mip & (1ULL << cause)); in riscv_cpu_do_interrupt()
|
H A D | machine.c | 416 VMSTATE_UINT64(env.mip, RISCVCPU),
|
H A D | cpu.h | 268 uint64_t mip; member
|
H A D | csr.c | 2773 old_mip = env->mip; in rmw_mip64() 3420 vseip = env->mie & (env->mip | vsgein) & MIP_VSEIP; in read_vstopi()
|
/openbmc/qemu/hw/intc/ |
H A D | riscv_aclint.c | 417 return (swi->sswi) ? 0 : ((env->mip & MIP_MSIP) > 0); in riscv_aclint_swi_read()
|
/openbmc/qemu/target/riscv/kvm/ |
H A D | kvm-cpu.c | 619 KVM_RISCV_GET_CSR(cs, env, sip, env->mip); in kvm_riscv_get_regs_csr() 636 KVM_RISCV_SET_CSR(cs, env, sip, env->mip); in kvm_riscv_put_regs_csr() 1627 env->mip = 0; in kvm_riscv_reset_vcpu()
|