Home
last modified time | relevance | path

Searched refs:mtype (Results 1 – 25 of 86) sorted by relevance

1234

/linux/drivers/vfio/mdev/
H A Dmdev_sysfs.c19 ssize_t (*show)(struct mdev_type *mtype,
21 ssize_t (*store)(struct mdev_type *mtype,
61 static ssize_t create_store(struct mdev_type *mtype, in create_store() argument
81 ret = mdev_device_create(mtype, &uuid); in create_store()
89 static ssize_t device_api_show(struct mdev_type *mtype, in device_api_show() argument
92 return sysfs_emit(buf, "%s\n", mtype->parent->mdev_driver->device_api); in device_api_show()
96 static ssize_t name_show(struct mdev_type *mtype, in name_show() argument
100 mtype->pretty_name ? mtype->pretty_name : mtype->sysfs_name); in name_show()
105 static ssize_t available_instances_show(struct mdev_type *mtype, in available_instances_show() argument
109 struct mdev_driver *drv = mtype->parent->mdev_driver; in available_instances_show()
[all …]
/linux/drivers/edac/
H A Dghes_edac.c134 dimm->mtype = MEM_RDDR; in assign_dmi_dimm_info()
136 dimm->mtype = MEM_DDR; in assign_dmi_dimm_info()
140 dimm->mtype = MEM_RDDR2; in assign_dmi_dimm_info()
142 dimm->mtype = MEM_DDR2; in assign_dmi_dimm_info()
145 dimm->mtype = MEM_FB_DDR2; in assign_dmi_dimm_info()
149 dimm->mtype = MEM_NVDIMM; in assign_dmi_dimm_info()
151 dimm->mtype = MEM_RDDR3; in assign_dmi_dimm_info()
153 dimm->mtype = MEM_DDR3; in assign_dmi_dimm_info()
157 dimm->mtype = MEM_NVDIMM; in assign_dmi_dimm_info()
159 dimm->mtype = MEM_RDDR4; in assign_dmi_dimm_info()
[all …]
H A Di82443bxgx_edac.c186 enum mem_type mtype) in i82443bxgx_init_csrows() argument
222 dimm->mtype = mtype; in i82443bxgx_init_csrows()
237 enum mem_type mtype; in i82443bxgx_edacmc_probe1() local
265 mtype = MEM_EDO; in i82443bxgx_edacmc_probe1()
268 mtype = MEM_SDR; in i82443bxgx_edacmc_probe1()
271 mtype = MEM_RDR; in i82443bxgx_edacmc_probe1()
275 mtype = -MEM_UNKNOWN; in i82443bxgx_edacmc_probe1()
278 if ((mtype == MEM_SDR) || (mtype == MEM_RDR)) in i82443bxgx_edacmc_probe1()
308 i82443bxgx_init_csrows(mci, pdev, edac_mode, mtype); in i82443bxgx_edacmc_probe1()
H A Dbluefield_edac.c295 dimm->mtype = MEM_EMPTY; in bluefield_edac_init_dimms()
304 dimm->mtype = MEM_NVDIMM; in bluefield_edac_init_dimms()
306 dimm->mtype = MEM_LRDDR4; in bluefield_edac_init_dimms()
308 dimm->mtype = MEM_RDDR4; in bluefield_edac_init_dimms()
310 dimm->mtype = MEM_DDR4; in bluefield_edac_init_dimms()
H A Dskx_common.c379 enum mem_type mtype; in skx_get_dimm_info() local
388 mtype = MEM_HBM2; in skx_get_dimm_info()
391 mtype = MEM_DDR5; in skx_get_dimm_info()
394 mtype = MEM_DDR4; in skx_get_dimm_info()
416 dimm->mtype = mtype; in skx_get_dimm_info()
466 dimm->mtype = MEM_NVDIMM; in skx_get_nvdimm_info()
H A Dsb_edac.c888 enum mem_type mtype; in get_memory_type() local
895 mtype = MEM_RDDR3; in get_memory_type()
897 mtype = MEM_DDR3; in get_memory_type()
899 mtype = MEM_UNKNOWN; in get_memory_type()
901 return mtype; in get_memory_type()
908 enum mem_type mtype = MEM_UNKNOWN; in haswell_get_memory_type() local
922 mtype = MEM_RDDR4; in haswell_get_memory_type()
924 mtype = MEM_DDR4; in haswell_get_memory_type()
927 mtype = MEM_RDDR3; in haswell_get_memory_type()
929 mtype = MEM_DDR3; in haswell_get_memory_type()
[all …]
/linux/tools/testing/selftests/ipc/
H A Dmsgque.c16 long mtype; member
67 if (msgsnd(msgque->msq_id, &msgque->messages[i].mtype, in restore_queue()
88 ret = msgrcv(msgque->msq_id, &message.mtype, MAX_MSG_SIZE, in check_and_destroy_queue()
103 if (message.mtype != msgque->messages[cnt].mtype) { in check_and_destroy_queue()
162 ret = msgrcv(msgque->msq_id, &msgque->messages[i].mtype, in dump_queue()
177 msgbuf.mtype = MSG_TYPE; in fill_msgque()
179 if (msgsnd(msgque->msq_id, &msgbuf.mtype, sizeof(TEST_STRING), in fill_msgque()
185 msgbuf.mtype = ANOTHER_MSG_TYPE; in fill_msgque()
187 if (msgsnd(msgque->msq_id, &msgbuf.mtype, sizeof(ANOTHER_TEST_STRING), in fill_msgque()
/linux/net/netfilter/ipset/
H A Dip_set_bitmap_gen.h34 #define mtype MTYPE macro
41 struct mtype *map = set->data; in mtype_gc_init()
50 struct mtype *map = set->data; in mtype_ext_cleanup()
61 struct mtype *map = set->data; in mtype_destroy()
74 struct mtype *map = set->data; in mtype_flush()
85 mtype_memsize(const struct mtype *map, size_t dsize) in mtype_memsize()
94 const struct mtype *map = set->data; in mtype_head()
119 struct mtype *map = set->data; in mtype_test()
133 struct mtype *map = set->data; in mtype_add()
178 struct mtype *map = set->data; in mtype_del()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_vm.h96 #define AMDGPU_PTE_MTYPE_VG10_SHIFT(mtype) ((uint64_t)(mtype) << 57) argument
98 #define AMDGPU_PTE_MTYPE_VG10(flags, mtype) \ argument
100 AMDGPU_PTE_MTYPE_VG10_SHIFT(mtype))
113 #define AMDGPU_PTE_MTYPE_NV10_SHIFT(mtype) ((uint64_t)(mtype) << 48) argument
115 #define AMDGPU_PTE_MTYPE_NV10(flags, mtype) \ argument
117 AMDGPU_PTE_MTYPE_NV10_SHIFT(mtype))
124 #define AMDGPU_PTE_MTYPE_GFX12_SHIFT(mtype) ((uint64_t)(mtype) << 54) argument
126 #define AMDGPU_PTE_MTYPE_GFX12(flags, mtype) \ argument
128 AMDGPU_PTE_MTYPE_GFX12_SHIFT(mtype))
H A Dgmc_v9_0.c1140 unsigned int mtype_local, mtype; in gmc_v9_0_get_coherence_flags() local
1152 mtype = MTYPE_UC; in gmc_v9_0_get_coherence_flags()
1154 mtype = MTYPE_CC; in gmc_v9_0_get_coherence_flags()
1156 mtype = MTYPE_RW; in gmc_v9_0_get_coherence_flags()
1168 mtype = MTYPE_UC; in gmc_v9_0_get_coherence_flags()
1170 mtype = MTYPE_NC; in gmc_v9_0_get_coherence_flags()
1176 mtype = MTYPE_UC; in gmc_v9_0_get_coherence_flags()
1178 mtype = MTYPE_NC; in gmc_v9_0_get_coherence_flags()
1209 mtype = MTYPE_UC; in gmc_v9_0_get_coherence_flags()
1212 mtype = is_local ? MTYPE_CC : MTYPE_UC; in gmc_v9_0_get_coherence_flags()
[all …]
/linux/mm/
H A Dmemory-tiers.c665 struct memory_dev_type *mtype; in mt_find_alloc_memory_type() local
667 list_for_each_entry(mtype, memory_types, list) in mt_find_alloc_memory_type()
668 if (mtype->adistance == adist) in mt_find_alloc_memory_type()
669 return mtype; in mt_find_alloc_memory_type()
671 mtype = alloc_memory_type(adist); in mt_find_alloc_memory_type()
672 if (IS_ERR(mtype)) in mt_find_alloc_memory_type()
673 return mtype; in mt_find_alloc_memory_type()
675 list_add(&mtype->list, memory_types); in mt_find_alloc_memory_type()
677 return mtype; in mt_find_alloc_memory_type()
683 struct memory_dev_type *mtype, *mtn; in mt_put_memory_types() local
[all …]
H A Dvmstat.c1554 int order, mtype; in pagetypeinfo_showfree_print() local
1556 for (mtype = 0; mtype < MIGRATE_TYPES; mtype++) { in pagetypeinfo_showfree_print()
1560 migratetype_names[mtype]); in pagetypeinfo_showfree_print()
1569 list_for_each(curr, &area->free_list[mtype]) { in pagetypeinfo_showfree_print()
1611 int mtype; in pagetypeinfo_showblockcount_print() local
1627 mtype = get_pageblock_migratetype(page); in pagetypeinfo_showblockcount_print()
1629 if (mtype < MIGRATE_TYPES) in pagetypeinfo_showblockcount_print()
1630 count[mtype]++; in pagetypeinfo_showblockcount_print()
1635 for (mtype = 0; mtype < MIGRATE_TYPES; mtype++) in pagetypeinfo_showblockcount_print()
1636 seq_printf(m, "%12lu ", count[mtype]); in pagetypeinfo_showblockcount_print()
[all …]
/linux/arch/arm/mach-imx/
H A Dmm-imx3.c56 unsigned int mtype, void *caller) in imx3_ioremap_caller() argument
58 if (mtype == MT_DEVICE) { in imx3_ioremap_caller()
66 mtype = MT_DEVICE_NONSHARED; in imx3_ioremap_caller()
69 return __arm_ioremap_caller(phys_addr, size, mtype, caller); in imx3_ioremap_caller()
/linux/drivers/dax/
H A Dkmem.c73 struct memory_dev_type *mtype; in dev_dax_kmem_probe() local
93 mtype = kmem_find_alloc_memory_type(adist); in dev_dax_kmem_probe()
94 if (IS_ERR(mtype)) in dev_dax_kmem_probe()
95 return PTR_ERR(mtype); in dev_dax_kmem_probe()
114 init_node_memory_type(numa_node, mtype); in dev_dax_kmem_probe()
197 clear_node_memory_type(numa_node, mtype); in dev_dax_kmem_probe()
/linux/arch/arm/mach-mvebu/
H A Dcoherency.c162 unsigned int mtype, void *caller) in armada_wa_ioremap_caller() argument
164 mtype = MT_UNCACHED; in armada_wa_ioremap_caller()
165 return __arm_ioremap_caller(phys_addr, size, mtype, caller); in armada_wa_ioremap_caller()
/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dtunnel_conf.c293 nfp_flower_xmit_tun_conf(struct nfp_app *app, u8 mtype, u16 plen, void *pdata, in nfp_flower_xmit_tun_conf() argument
301 (mtype == NFP_FLOWER_CMSG_TYPE_TUN_NEIGH || in nfp_flower_xmit_tun_conf()
302 mtype == NFP_FLOWER_CMSG_TYPE_TUN_NEIGH_V6)) in nfp_flower_xmit_tun_conf()
306 (mtype == NFP_FLOWER_CMSG_TYPE_TUN_NEIGH || in nfp_flower_xmit_tun_conf()
307 mtype == NFP_FLOWER_CMSG_TYPE_TUN_NEIGH_V6)) in nfp_flower_xmit_tun_conf()
310 skb = nfp_flower_cmsg_alloc(app, plen, mtype, flag); in nfp_flower_xmit_tun_conf()
478 u8 mtype; in nfp_tun_write_neigh() local
516 mtype = NFP_FLOWER_CMSG_TYPE_TUN_NEIGH_V6; in nfp_tun_write_neigh()
527 mtype = NFP_FLOWER_CMSG_TYPE_TUN_NEIGH; in nfp_tun_write_neigh()
545 nfp_flower_xmit_tun_conf(app, mtype, neigh_size, in nfp_tun_write_neigh()
[all …]
/linux/ipc/
H A Dmsg.c848 static long do_msgsnd(int msqid, long mtype, void __user *mtext, in do_msgsnd() argument
861 if (mtype < 1) in do_msgsnd()
868 msg->m_type = mtype; in do_msgsnd()
964 long mtype; in ksys_msgsnd() local
966 if (get_user(mtype, &msgp->mtype)) in ksys_msgsnd()
968 return do_msgsnd(msqid, mtype, msgp->mtext, msgsz, msgflg); in ksys_msgsnd()
980 compat_long_t mtype; member
988 compat_long_t mtype; in compat_ksys_msgsnd() local
990 if (get_user(mtype, &up->mtype)) in compat_ksys_msgsnd()
992 return do_msgsnd(msqid, mtype, up->mtext, (ssize_t)msgsz, msgflg); in compat_ksys_msgsnd()
[all …]
/linux/include/uapi/scsi/
H A Dscsi_netlink.h99 #define INIT_SCSI_NL_HDR(hdr, t, mtype, mlen) \ argument
104 (hdr)->msgtype = mtype; \
/linux/drivers/scsi/csiostor/
H A Dcsio_hw_t5.c253 csio_t5_memory_rw(struct csio_hw *hw, u32 win, int mtype, u32 addr, in csio_t5_memory_rw() argument
273 if (mtype != MEM_MC1) in csio_t5_memory_rw()
274 memoffset = (mtype * (edc_size * 1024 * 1024)); in csio_t5_memory_rw()
309 mtype, addr, len); in csio_t5_memory_rw()
/linux/include/linux/
H A Dmdev.h71 unsigned int (*get_available)(struct mdev_type *mtype);
72 ssize_t (*show_description)(struct mdev_type *mtype, char *buf);
/linux/kernel/bpf/
H A Dbpf_struct_ops.c506 const struct btf_type *mtype; in check_zero_holes() local
514 mtype = btf_type_by_id(btf, member->type); in check_zero_holes()
515 mtype = btf_resolve_size(btf, mtype, &msize); in check_zero_holes()
516 if (IS_ERR(mtype)) in check_zero_holes()
517 return PTR_ERR(mtype); in check_zero_holes()
694 const struct btf_type *mtype, *ptype; in bpf_struct_ops_map_update_elem() local
727 mtype = btf_type_by_id(st_map->btf, member->type); in bpf_struct_ops_map_update_elem()
728 mtype = btf_resolve_size(st_map->btf, mtype, &msize); in bpf_struct_ops_map_update_elem()
729 if (IS_ERR(mtype)) { in bpf_struct_ops_map_update_elem()
730 err = PTR_ERR(mtype); in bpf_struct_ops_map_update_elem()
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_mqd_manager_vi.c172 unsigned int mtype, unsigned int atc_bit) in __update_mqd() argument
180 mtype << CP_HQD_PQ_CONTROL__MTYPE__SHIFT; in __update_mqd()
199 mtype << CP_HQD_EOP_CONTROL__MTYPE__SHIFT; in __update_mqd()
203 mtype << CP_HQD_IB_CONTROL__MTYPE__SHIFT; in __update_mqd()
220 mtype << CP_HQD_IQ_TIMER__MTYPE__SHIFT; in __update_mqd()
232 mtype << CP_HQD_CTX_SAVE_CONTROL__MTYPE__SHIFT; in __update_mqd()
/linux/arch/arm/mm/
H A Dnommu.c205 size_t size, unsigned int mtype) in __arm_ioremap_pfn() argument
214 unsigned int mtype, void *caller) in __arm_ioremap_caller() argument
/linux/arch/arm/include/asm/mach/
H A Dmap.h59 const struct mem_type *mtype);
/linux/include/uapi/linux/
H A Dmsg.h39 __kernel_long_t mtype; /* type of message */ member

1234