/illumos-gate/usr/src/uts/common/io/nge/ |
H A D | nge_kstats.c | 69 uint32_t regno; in nge_statistics_update() local 88 regno = KS_BASE + ksip->index * sizeof (uint32_t); in nge_statistics_update() 89 hw_stp->a[ksip->index] += nge_reg_get32(ngep, regno); in nge_statistics_update() 279 uint32_t regno; in nge_m_stat() local 290 regno = KS_BASE + KS_ifHInMulPksCount * sizeof (uint32_t); in nge_m_stat() 291 hw_stp->s.InMulPksCount += nge_reg_get32(ngep, regno); in nge_m_stat() 296 regno = KS_BASE + KS_ifHInBroadPksCount * sizeof (uint32_t); in nge_m_stat() 297 hw_stp->s.InBroadPksCount += nge_reg_get32(ngep, regno); in nge_m_stat() 306 regno = KS_BASE + KS_ifHInFrameErrCount * sizeof (uint32_t); in nge_m_stat() 307 hw_stp->s.InFrameErrCount += nge_reg_get32(ngep, regno); in nge_m_stat() [all …]
|
H A D | nge_chip.c | 43 uint8_t nge_reg_get8(nge_t *ngep, nge_regno_t regno); 47 nge_reg_get8(nge_t *ngep, nge_regno_t regno) in nge_reg_get8() argument 49 NGE_TRACE(("nge_reg_get8($%p, 0x%lx)", (void *)ngep, regno)); in nge_reg_get8() 51 return (ddi_get8(ngep->io_handle, PIO_ADDR(ngep, regno))); in nge_reg_get8() 54 void nge_reg_put8(nge_t *ngep, nge_regno_t regno, uint8_t data); 58 nge_reg_put8(nge_t *ngep, nge_regno_t regno, uint8_t data) in nge_reg_put8() argument 61 (void *)ngep, regno, data)); in nge_reg_put8() 62 ddi_put8(ngep->io_handle, PIO_ADDR(ngep, regno), data); in nge_reg_put8() 66 uint16_t nge_reg_get16(nge_t *ngep, nge_regno_t regno); 70 nge_reg_get16(nge_t *ngep, nge_regno_t regno) in nge_reg_get16() argument [all …]
|
H A D | nge_xmii.c | 50 static uint16_t nge_mii_access(nge_t *ngep, nge_regno_t regno, 55 nge_mii_access(nge_t *ngep, nge_regno_t regno, uint16_t data, uint32_t cmd) in nge_mii_access() argument 63 (void *)ngep, regno, data, cmd)); in nge_mii_access() 95 mdio_adr.adr_bits.phy_reg = (uint16_t)regno; in nge_mii_access() 134 uint16_t nge_mii_get16(nge_t *ngep, nge_regno_t regno); 138 nge_mii_get16(nge_t *ngep, nge_regno_t regno) in nge_mii_get16() argument 141 return (nge_mii_access(ngep, regno, 0, NGE_MDIO_READ)); in nge_mii_get16() 144 void nge_mii_put16(nge_t *ngep, nge_regno_t regno, uint16_t data); 148 nge_mii_put16(nge_t *ngep, nge_regno_t regno, uint16_t data) in nge_mii_put16() argument 151 (void) nge_mii_access(ngep, regno, data, NGE_MDIO_WRITE); in nge_mii_put16()
|
H A D | nge.h | 989 uint8_t nge_reg_get8(nge_t *ngep, nge_regno_t regno); 990 void nge_reg_put8(nge_t *ngep, nge_regno_t regno, uint8_t data); 991 uint16_t nge_reg_get16(nge_t *ngep, nge_regno_t regno); 992 void nge_reg_put16(nge_t *ngep, nge_regno_t regno, uint16_t data); 993 uint32_t nge_reg_get32(nge_t *ngep, nge_regno_t regno); 994 void nge_reg_put32(nge_t *ngep, nge_regno_t regno, uint32_t data); 1009 uint16_t nge_mii_get16(nge_t *ngep, nge_regno_t regno); 1010 void nge_mii_put16(nge_t *ngep, nge_regno_t regno, uint16_t data);
|
/illumos-gate/usr/src/lib/libcpc/i386/ |
H A D | conf_pentium.c | 303 validargs(int cpuver, int regno) in validargs() argument 305 if (regno < 0 || regno > 1) in validargs() 316 versionmatch(int cpuver, int regno, const struct nametable *n) in versionmatch() argument 318 if (!validargs(cpuver, regno) || (n->ver & MAPCPUVER(cpuver)) == 0) in versionmatch() 332 if (regno == 1) in versionmatch() 339 if (regno == 0) in versionmatch() 354 getnametable(int cpuver, int regno) in getnametable() argument 358 if (!validargs(cpuver, regno)) in getnametable() 364 n = P5mmx_names[regno]; in getnametable() 379 cpc_walk_names(int cpuver, int regno, void *arg, in cpc_walk_names() argument [all …]
|
H A D | event_pentium.c | 134 uint_t regno; in picbits() local 136 regno = strcmp(kv->kv_token, "pic0") == 0 ? 0 : 1; in picbits() 144 if (__cpc_name_to_reg(cpuver, regno, value, &val8) != 0) { in picbits() 148 assert(kv->kv_regno == regno); in picbits() 151 regno, value); in picbits() 158 regno, value); in picbits() 527 regtostr(int cpuver, int regno, uint8_t bits) in regtostr() argument 531 if ((sname = __cpc_reg_to_name(cpuver, regno, bits)) != NULL) in regtostr()
|
/illumos-gate/usr/src/cmd/sgs/libconv/common/ |
H A D | dwarf.c | 106 conv_dwarf_regname(Half mach, Word regno, Conv_fmt_flags_t fmt_flags, in conv_dwarf_regname() argument 208 *good_name = ((regno < 8) || (regno > 15)) && in conv_dwarf_regname() 209 (regno != 56) && (regno != 57) && in conv_dwarf_regname() 210 (regno != 60) && (regno != 61) && in conv_dwarf_regname() 211 (regno < ARRAY_NELTS(reg_amd64)); in conv_dwarf_regname() 212 return (conv_map_ds(ELFOSABI_NONE, EM_NONE, regno, in conv_dwarf_regname() 218 *good_name = (regno < ARRAY_NELTS(reg_i386)); in conv_dwarf_regname() 219 return (conv_map_ds(ELFOSABI_NONE, EM_NONE, regno, in conv_dwarf_regname() 226 *good_name = (regno < ARRAY_NELTS(reg_sparc)); in conv_dwarf_regname() 227 return (conv_map_ds(ELFOSABI_NONE, EM_NONE, regno, in conv_dwarf_regname() [all …]
|
/illumos-gate/usr/src/lib/libcpc/sparc/ |
H A D | conf_ultra.c | 400 validargs(int cpuver, int regno) in validargs() argument 402 if (regno < 0 || regno > 1) in validargs() 413 versionmatch(int cpuver, int regno, const struct nametable *n) in versionmatch() argument 415 if (!validargs(cpuver, regno) || n->ver != MAPCPUVER(cpuver)) in versionmatch() 421 getnametable(int cpuver, int regno) in getnametable() argument 425 if (!validargs(cpuver, regno)) in getnametable() 430 n = US12_names[regno]; in getnametable() 433 n = US3_names[regno]; in getnametable() 436 n = US3_PLUS_names[regno]; in getnametable() 439 n = US3_I_names[regno]; in getnametable() [all …]
|
H A D | event_ultra.c | 100 uint_t regno; in picbits() local 102 regno = strcmp(kv->kv_token, "pic0") == 0 ? 0 : 1; in picbits() 109 if (__cpc_name_to_reg(cpuver, regno, value, &val8) != 0) { in picbits() 111 "event '%s' on this cpu\n"), regno, value); in picbits() 339 regtostr(int cpuver, int regno, uint8_t bits) in regtostr() argument 343 if ((sname = __cpc_reg_to_name(cpuver, regno, bits)) != NULL) in regtostr()
|
/illumos-gate/usr/src/uts/common/io/bge/ |
H A D | bge_chip2.c | 176 static void bge_cfg_clr16(bge_t *bgep, bge_regno_t regno, uint16_t bits); 180 bge_cfg_clr16(bge_t *bgep, bge_regno_t regno, uint16_t bits) in bge_cfg_clr16() argument 185 (void *)bgep, regno, bits)); in bge_cfg_clr16() 187 regval = pci_config_get16(bgep->cfg_handle, regno); in bge_cfg_clr16() 190 (void *)bgep, regno, bits, regval, regval & ~bits)); in bge_cfg_clr16() 193 pci_config_put16(bgep->cfg_handle, regno, regval); in bge_cfg_clr16() 198 static void bge_cfg_clr32(bge_t *bgep, bge_regno_t regno, uint32_t bits); 202 bge_cfg_clr32(bge_t *bgep, bge_regno_t regno, uint32_t bits) in bge_cfg_clr32() argument 207 (void *)bgep, regno, bits)); in bge_cfg_clr32() 209 regval = pci_config_get32(bgep->cfg_handle, regno); in bge_cfg_clr32() [all …]
|
H A D | bge_impl.h | 1181 uint16_t bge_mii_get16(bge_t *bgep, bge_regno_t regno); 1182 void bge_mii_put16(bge_t *bgep, bge_regno_t regno, uint16_t value); 1183 uint16_t bge_phydsp_read(bge_t *bgep, bge_regno_t regno); 1184 void bge_phydsp_write(bge_t *bgep, bge_regno_t regno, uint16_t value); 1185 uint32_t bge_reg_get32(bge_t *bgep, bge_regno_t regno); 1186 void bge_reg_put32(bge_t *bgep, bge_regno_t regno, uint32_t value); 1187 void bge_reg_set32(bge_t *bgep, bge_regno_t regno, uint32_t bits); 1188 void bge_reg_clr32(bge_t *bgep, bge_regno_t regno, uint32_t bits); 1189 uint32_t bge_ape_get32(bge_t *bgep, bge_regno_t regno); 1190 void bge_ape_put32(bge_t *bgep, bge_regno_t regno, uint32_t value); [all …]
|
/illumos-gate/usr/src/uts/common/io/rge/ |
H A D | rge_chip.c | 52 static uint32_t rge_reg_get32(rge_t *rgep, uintptr_t regno); 56 rge_reg_get32(rge_t *rgep, uintptr_t regno) in rge_reg_get32() argument 59 (void *)rgep, regno)); in rge_reg_get32() 61 return (ddi_get32(rgep->io_handle, REG32(rgep, regno))); in rge_reg_get32() 64 static void rge_reg_put32(rge_t *rgep, uintptr_t regno, uint32_t data); 68 rge_reg_put32(rge_t *rgep, uintptr_t regno, uint32_t data) in rge_reg_put32() argument 71 (void *)rgep, regno, data)); in rge_reg_put32() 73 ddi_put32(rgep->io_handle, REG32(rgep, regno), data); in rge_reg_put32() 76 static void rge_reg_set32(rge_t *rgep, uintptr_t regno, uint32_t bits); 80 rge_reg_set32(rge_t *rgep, uintptr_t regno, uint32_t bits) in rge_reg_set32() argument [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | storage.c | 126 if (aa->regno != bb->regno) in storage_hash_cmp() 127 return aa->regno < bb->regno ? -1 : 1; in storage_hash_cmp() 147 && a->regno == b->regno) { in vrfy_storage() 177 sprintf(buffer, "reg%d (%d)", s->regno, s->name); in show_storage() 183 sprintf(buffer, "ARG%d (%d)", s->regno, s->name); in show_storage() 186 sprintf(buffer, "%d:%d (%d)", s->type, s->regno, s->name); in show_storage() 258 storage->regno = arg->nr; in set_up_argument_storage()
|
H A D | example.c | 298 return hardregs[storage->regno].name; in show_memop() 432 src->storage->regno = reg - hardregs; in find_pseudo_storage() 469 return hardregs + storage->regno; in preferred_reg() 774 op->reg = hardregs + src->regno; in get_generic_operand() 1471 out = hardregs + storage->regno; in write_reg_to_storage() 1479 storage->regno = reg - hardregs; in write_reg_to_storage() 1491 storage->regno = i; in write_reg_to_storage() 1516 out = hardregs + storage->regno; in write_val_to_storage() 1568 output_insn(state, "movl %s,%s", show_memop(in->storage), hardregs[out->regno].name); in fill_output() 1573 if ((out->type == in->storage->type) && (out->regno == in->storage->regno)) in fill_output() [all …]
|
H A D | compile-i386.c | 279 int regno; in get_hardreg() local 282 while ((regno = *aliases++) != NOREG) { in get_hardreg() 283 if (test_bit(regno, regs_in_use)) in get_hardreg() 286 reg_info_table[regno].contains = NULL; in get_hardreg() 292 if (regno + reg_info_table != info) in get_hardreg() 293 fprintf(stderr, " conflicts with %s\n", reg_info_table[regno].name); in get_hardreg() 300 int regno = info->own_regno; in put_reg() local 302 if (test_and_clear_bit(regno, regs_in_use)) in put_reg() 304 fprintf(stderr, "freeing already free'd register %s\n", reg_info_table[regno].name); in put_reg() 334 static int register_busy(int regno) in register_busy() argument [all …]
|
/illumos-gate/usr/src/test/os-tests/tests/xsave/ |
H A D | xsave_util.c | 86 for (uint32_t regno = 0; regno < XSU_MAX_YMM; regno++) { in xsu_fill() local 89 fpu->xf_reg[regno]._l[u32] = start; in xsu_fill() 94 for (uint32_t regno = 0; regno < XSU_MAX_ZMM; regno++) { in xsu_fill() local 97 fpu->xf_reg[regno]._l[u32] = start; in xsu_fill() 100 for (uint32_t regno = 0; regno < ARRAY_SIZE(fpu->xf_opmask); in xsu_fill() local 101 regno++) { in xsu_fill() 103 fpu->xf_opmask[regno] = val; in xsu_fill() 240 xsu_check_vector(const upad512_t *src, const upad512_t *chk, uint32_t regno, in xsu_check_vector() argument 248 "found 0x%x", regno, i, src->_l[i], chk->_l[i]); in xsu_check_vector()
|
/illumos-gate/usr/src/uts/common/io/audio/drv/audiosolo/ |
H A D | audiosolo.c | 224 #define PORT_RD8(port, regno) \ argument 225 ddi_get8(port.acch, (void *)(port.base + (regno))) 226 #define PORT_RD16(port, regno) \ argument 227 ddi_get16(port.acch, (void *)(port.base + (regno))) 228 #define PORT_RD32(port, regno) \ argument 229 ddi_get32(port.acch, (void *)(port.base + (regno))) 230 #define PORT_WR8(port, regno, data) \ argument 231 ddi_put8(port.acch, (void *)(port.base + (regno)), data) 232 #define PORT_WR16(port, regno, data) \ argument 233 ddi_put16(port.acch, (void *)(port.base + (regno)), data) [all …]
|
/illumos-gate/usr/src/uts/sun4v/pcbe/ |
H A D | niagara_pcbe.c | 275 find_generic_event(int regno, char *name) in find_generic_event() argument 279 for (gevp = generic_events[regno]; gevp->name != NULL; gevp++) { in find_generic_event() 288 find_event(int regno, char *name) in find_event() argument 292 n = events[regno]; in find_event()
|
/illumos-gate/usr/src/uts/sun4u/pcbe/ |
H A D | us234_pcbe.c | 712 find_generic_event(int regno, char *name) in find_generic_event() argument 716 for (gevp = generic_events[regno]; gevp->name != NULL; gevp++) in find_generic_event() 724 find_event(int regno, char *name) in find_event() argument 728 n = events[regno]; in find_event()
|
H A D | opl_pcbe.c | 603 find_generic_event(int regno, char *name) in find_generic_event() argument 607 for (gevp = generic_events[regno]; gevp->name != NULL; gevp++) in find_generic_event() 615 find_event(int regno, char *name) in find_event() argument 619 n = events[regno]; in find_event()
|
/illumos-gate/usr/src/lib/libcpc/common/ |
H A D | libcpc_impl.h | 112 extern const char *__cpc_reg_to_name(int cpuver, int regno, uint8_t bits); 113 extern int __cpc_name_to_reg(int cpuver, int regno,
|
H A D | libcpc.h | 186 extern void cpc_walk_names(int cpuver, int regno, void *arg, 187 void (*action)(void *arg, int regno, const char *name, uint8_t bits));
|
/illumos-gate/usr/src/uts/intel/io/amdzen/ |
H A D | zen_umc.c | 2782 const uint32_t regno = dimmno * 2 + rankno; in zen_umc_fill_chan_rank_ddr5() local 2788 reg = UMC_BASE(id, regno); in zen_umc_fill_chan_rank_ddr5() 2800 reg = UMC_BASE_EXT_DDR5(id, regno); in zen_umc_fill_chan_rank_ddr5() 2814 reg = UMC_BASE_SEC(id, regno); in zen_umc_fill_chan_rank_ddr5() 2826 reg = UMC_BASE_EXT_SEC_DDR5(id, regno); in zen_umc_fill_chan_rank_ddr5() 2840 reg = UMC_MASK_DDR5(id, regno); in zen_umc_fill_chan_rank_ddr5() 2852 reg = UMC_MASK_EXT_DDR5(id, regno); in zen_umc_fill_chan_rank_ddr5() 2867 reg = UMC_MASK_SEC_DDR5(id, regno); in zen_umc_fill_chan_rank_ddr5() 2879 reg = UMC_MASK_EXT_SEC_DDR5(id, regno); in zen_umc_fill_chan_rank_ddr5() 2893 reg = UMC_ADDRCFG_DDR5(id, regno); in zen_umc_fill_chan_rank_ddr5() [all …]
|
/illumos-gate/usr/src/cmd/cpc/common/ |
H A D | caps.c | 55 list_cap(void *arg, uint_t regno, const char *name) in list_cap() argument 102 cap_walker(void *arg, uint_t regno, const char *name) in cap_walker() argument
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | pro_frame.c | 467 Dwarf_Ubyte opc, regno; in dwarf_fde_cfa_offset_a() local 481 regno = reg; in dwarf_fde_cfa_offset_a() 482 if (regno & 0xc0) { in dwarf_fde_cfa_offset_a() 485 opc = opc | regno; /* lower 6 bits are register number */ in dwarf_fde_cfa_offset_a()
|