fwmtype_to_hwmtype
m = fwmtype_to_hwmtype(dparams->memtype);
switch (fwmtype_to_hwmtype(mtype)) {
static int fwmtype_to_hwmtype(int);