Home
last modified time | relevance | path

Searched refs:mip (Results 1 – 9 of 9) sorted by relevance

/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_mip.c43 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 …]
Dnfp_nffw.h26 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);
Dnfp_rtsym.c85 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()
/drivers/gpu/drm/vmwgfx/
Dvmw_surface_cache.h151 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 …]
Dvmwgfx_surface.c67 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()
/drivers/net/ethernet/netronome/nfp/
Dnfp_app.c59 if (!app || !app->pf->mip) in nfp_app_mip_name()
61 return nfp_mip_name(app->pf->mip); in nfp_app_mip_name()
Dnfp_main.c833 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()
Dnfp_main.h120 const struct nfp_mip *mip; member
Dnfp_net_debugdump.c192 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()