Lines Matching defs:cpuver
302 #define MAPCPUVER(cpuver) (cpuvermap[(cpuver) - CPC_PENTIUM])
305 validargs(int cpuver, int regno)
309 cpuver -= CPC_PENTIUM;
310 if (cpuver < 0 ||
311 cpuver >= sizeof (cpuvermap) / sizeof (cpuvermap[0]))
318 versionmatch(int cpuver, int regno, const struct nametable *n)
320 if (!validargs(cpuver, regno) || (n->ver & MAPCPUVER(cpuver)) == 0)
323 switch (MAPCPUVER(cpuver)) {
356 getnametable(int cpuver, int regno)
360 if (!validargs(cpuver, regno))
363 switch (MAPCPUVER(cpuver)) {
381 cpc_walk_names(int cpuver, int regno, void *arg,
386 if ((n = getnametable(cpuver, regno)) == NULL)
389 if (versionmatch(cpuver, regno, n))
394 __cpc_reg_to_name(int cpuver, int regno, uint8_t bits)
398 if ((n = getnametable(cpuver, regno)) == NULL)
401 if (bits == n->bits && versionmatch(cpuver, regno, n))
410 __cpc_name_to_reg(int cpuver, int regno, const char *name, uint8_t *bits)
416 if ((n = getnametable(cpuver, regno)) == NULL || name == NULL)
420 versionmatch(cpuver, regno, n)) {
435 cpc_getcciname(int cpuver)
437 if (validargs(cpuver, 0))
438 switch (MAPCPUVER(cpuver)) {
454 cpc_getcpuref(int cpuver)
456 if (validargs(cpuver, 0))
457 switch (MAPCPUVER(cpuver)) {
480 cpc_getnpic(int cpuver)
482 switch (cpuver) {