/freebsd/sys/dev/ofw/ |
H A D | ofw_subr.c | 79 ofw_reg_to_paddr(phandle_t dev, int regno, bus_addr_t *paddr, in ofw_reg_to_paddr() argument 97 if (regno < 0) in ofw_reg_to_paddr() 110 regno *= naddr + nsize; in ofw_reg_to_paddr() 111 if (regno + naddr + nsize > res) in ofw_reg_to_paddr() 113 pci_hi = pci ? cell[regno] : OFW_PADDR_NOT_PCI; in ofw_reg_to_paddr() 117 addr = ((uint64_t)addr << 32) | cell[regno++]; in ofw_reg_to_paddr() 120 size = ((uint64_t)size << 32) | cell[regno++]; in ofw_reg_to_paddr() 144 regno = 0; in ofw_reg_to_paddr() 145 while (regno < res) { in ofw_reg_to_paddr() 146 rspc = (pci ? cell[regno] : OFW_PADDR_NOT_PCI) & in ofw_reg_to_paddr() [all …]
|
/freebsd/sys/dev/sound/pci/ |
H A D | hdspe.h | 238 #define hdspe_read_1(sc, regno) \ argument 239 bus_space_read_1((sc)->cst, (sc)->csh, (regno)) 240 #define hdspe_read_2(sc, regno) \ argument 241 bus_space_read_2((sc)->cst, (sc)->csh, (regno)) 242 #define hdspe_read_4(sc, regno) \ argument 243 bus_space_read_4((sc)->cst, (sc)->csh, (regno)) 245 #define hdspe_write_1(sc, regno, data) \ argument 246 bus_space_write_1((sc)->cst, (sc)->csh, (regno), (data)) 247 #define hdspe_write_2(sc, regno, data) \ argument 248 bus_space_write_2((sc)->cst, (sc)->csh, (regno), (data)) [all …]
|
H A D | hdsp.h | 254 #define hdsp_read_1(sc, regno) \ argument 255 bus_space_read_1((sc)->cst, (sc)->csh, (regno)) 256 #define hdsp_read_2(sc, regno) \ argument 257 bus_space_read_2((sc)->cst, (sc)->csh, (regno)) 258 #define hdsp_read_4(sc, regno) \ argument 259 bus_space_read_4((sc)->cst, (sc)->csh, (regno)) 261 #define hdsp_write_1(sc, regno, data) \ argument 262 bus_space_write_1((sc)->cst, (sc)->csh, (regno), (data)) 263 #define hdsp_write_2(sc, regno, data) \ argument 264 bus_space_write_2((sc)->cst, (sc)->csh, (regno), (data)) [all …]
|
H A D | neomagic.c | 132 nm_rd(struct sc_info *sc, int regno, int size) in nm_rd() argument 139 return bus_space_read_1(st, sh, regno); in nm_rd() 141 return bus_space_read_2(st, sh, regno); in nm_rd() 143 return bus_space_read_4(st, sh, regno); in nm_rd() 150 nm_wr(struct sc_info *sc, int regno, u_int32_t data, int size) in nm_wr() argument 157 bus_space_write_1(st, sh, regno, data); in nm_wr() 160 bus_space_write_2(st, sh, regno, data); in nm_wr() 163 bus_space_write_4(st, sh, regno, data); in nm_wr() 169 nm_rdbuf(struct sc_info *sc, int regno, int size) in nm_rdbuf() argument 176 return bus_space_read_1(st, sh, regno); in nm_rdbuf() [all …]
|
H A D | cs4281.c | 147 cs4281_rd(struct sc_info *sc, int regno) in cs4281_rd() argument 149 return bus_space_read_4(sc->st, sc->sh, regno); in cs4281_rd() 153 cs4281_wr(struct sc_info *sc, int regno, u_int32_t data) in cs4281_wr() argument 155 bus_space_write_4(sc->st, sc->sh, regno, data); in cs4281_wr() 160 cs4281_clr4(struct sc_info *sc, int regno, u_int32_t mask) in cs4281_clr4() argument 163 r = cs4281_rd(sc, regno); in cs4281_clr4() 164 cs4281_wr(sc, regno, r & ~mask); in cs4281_clr4() 168 cs4281_set4(struct sc_info *sc, int regno, u_int32_t mask) in cs4281_set4() argument 171 v = cs4281_rd(sc, regno); in cs4281_set4() 172 cs4281_wr(sc, regno, v | mask); in cs4281_set4() [all …]
|
H A D | t4dwave.c | 145 tr_rd(struct tr_info *tr, int regno, int size) in tr_rd() argument 149 return bus_space_read_1(tr->st, tr->sh, regno); in tr_rd() 151 return bus_space_read_2(tr->st, tr->sh, regno); in tr_rd() 153 return bus_space_read_4(tr->st, tr->sh, regno); in tr_rd() 160 tr_wr(struct tr_info *tr, int regno, u_int32_t data, int size) in tr_wr() argument 164 bus_space_write_1(tr->st, tr->sh, regno, data); in tr_wr() 167 bus_space_write_2(tr->st, tr->sh, regno, data); in tr_wr() 170 bus_space_write_4(tr->st, tr->sh, regno, data); in tr_wr() 179 tr_rdcd(kobj_t obj, void *devinfo, int regno) in tr_rdcd() argument 201 treg=(regno & 0x100)? TNX_REG_CODEC2RD : TNX_REG_CODEC1RD; in tr_rdcd() [all …]
|
H A D | fm801.c | 172 fm801_rd(struct fm801_info *fm801, int regno, int size) in fm801_rd() argument 176 return (bus_space_read_1(fm801->st, fm801->sh, regno)); in fm801_rd() 178 return (bus_space_read_2(fm801->st, fm801->sh, regno)); in fm801_rd() 180 return (bus_space_read_4(fm801->st, fm801->sh, regno)); in fm801_rd() 187 fm801_wr(struct fm801_info *fm801, int regno, u_int32_t data, int size) in fm801_wr() argument 192 bus_space_write_1(fm801->st, fm801->sh, regno, data); in fm801_wr() 195 bus_space_write_2(fm801->st, fm801->sh, regno, data); in fm801_wr() 198 bus_space_write_4(fm801->st, fm801->sh, regno, data); in fm801_wr() 209 fm801_rdcd(kobj_t obj, void *devinfo, int regno) in fm801_rdcd() argument 223 fm801_wr(fm801,FM_CODEC_CMD, regno|FM_CODEC_CMD_READ,2); in fm801_rdcd() [all …]
|
H A D | envy24.c | 404 envy24_rdcs(struct sc_info *sc, int regno, int size) in envy24_rdcs() argument 408 return bus_space_read_1(sc->cst, sc->csh, regno); in envy24_rdcs() 410 return bus_space_read_2(sc->cst, sc->csh, regno); in envy24_rdcs() 412 return bus_space_read_4(sc->cst, sc->csh, regno); in envy24_rdcs() 419 envy24_wrcs(struct sc_info *sc, int regno, u_int32_t data, int size) in envy24_wrcs() argument 423 bus_space_write_1(sc->cst, sc->csh, regno, data); in envy24_wrcs() 426 bus_space_write_2(sc->cst, sc->csh, regno, data); in envy24_wrcs() 429 bus_space_write_4(sc->cst, sc->csh, regno, data); in envy24_wrcs() 435 envy24_rdmt(struct sc_info *sc, int regno, int size) in envy24_rdmt() argument 439 return bus_space_read_1(sc->mtt, sc->mth, regno); in envy24_rdmt() [all …]
|
H A D | via82c686.c | 107 via_rd(struct via_info *via, int regno, int size) in via_rd() argument 112 return bus_space_read_1(via->st, via->sh, regno); in via_rd() 114 return bus_space_read_2(via->st, via->sh, regno); in via_rd() 116 return bus_space_read_4(via->st, via->sh, regno); in via_rd() 123 via_wr(struct via_info *via, int regno, u_int32_t data, int size) in via_wr() argument 128 bus_space_write_1(via->st, via->sh, regno, data); in via_wr() 131 bus_space_write_2(via->st, via->sh, regno, data); in via_wr() 134 bus_space_write_4(via->st, via->sh, regno, data); in via_wr()
|
H A D | ich.c | 214 ich_rd(struct sc_info *sc, int regno, int size) in ich_rd() argument 218 return (bus_space_read_1(sc->nabmbart, sc->nabmbarh, regno)); in ich_rd() 220 return (bus_space_read_2(sc->nabmbart, sc->nabmbarh, regno)); in ich_rd() 222 return (bus_space_read_4(sc->nabmbart, sc->nabmbarh, regno)); in ich_rd() 229 ich_wr(struct sc_info *sc, int regno, uint32_t data, int size) in ich_wr() argument 233 bus_space_write_1(sc->nabmbart, sc->nabmbarh, regno, data); in ich_wr() 236 bus_space_write_2(sc->nabmbart, sc->nabmbarh, regno, data); in ich_wr() 239 bus_space_write_4(sc->nabmbart, sc->nabmbarh, regno, data); in ich_wr() 265 ich_rdcd(kobj_t obj, void *devinfo, int regno) in ich_rdcd() argument 269 regno &= 0xff; in ich_rdcd() [all …]
|
H A D | envy24ht.c | 457 envy24ht_rdcs(struct sc_info *sc, int regno, int size) in envy24ht_rdcs() argument 461 return bus_space_read_1(sc->cst, sc->csh, regno); in envy24ht_rdcs() 463 return bus_space_read_2(sc->cst, sc->csh, regno); in envy24ht_rdcs() 465 return bus_space_read_4(sc->cst, sc->csh, regno); in envy24ht_rdcs() 472 envy24ht_wrcs(struct sc_info *sc, int regno, u_int32_t data, int size) in envy24ht_wrcs() argument 476 bus_space_write_1(sc->cst, sc->csh, regno, data); in envy24ht_wrcs() 479 bus_space_write_2(sc->cst, sc->csh, regno, data); in envy24ht_wrcs() 482 bus_space_write_4(sc->cst, sc->csh, regno, data); in envy24ht_wrcs() 488 envy24ht_rdmt(struct sc_info *sc, int regno, int size) in envy24ht_rdmt() argument 492 return bus_space_read_1(sc->mtt, sc->mth, regno); in envy24ht_rdmt() [all …]
|
H A D | emu10kx-pcm.c | 529 emu_ac97_read_emulation(struct emu_pcm_info *sc, int regno) in emu_ac97_read_emulation() argument 538 switch (regno) { in emu_ac97_read_emulation() 557 emu_wr(sc->card, EMU_AC97ADDR, regno, 1); in emu_ac97_read_emulation() 567 emu_ac97_write_emulation(struct emu_pcm_info *sc, int regno, uint32_t data) in emu_ac97_write_emulation() argument 584 switch (regno) { in emu_ac97_write_emulation() 623 emu_wr(sc->card, EMU_AC97ADDR, regno, 1); in emu_ac97_write_emulation() 629 emu_erdcd(kobj_t obj __unused, void *devinfo, int regno) in emu_erdcd() argument 633 return (emu_ac97_read_emulation(sc, regno)); in emu_erdcd() 637 emu_ewrcd(kobj_t obj __unused, void *devinfo, int regno, uint32_t data) in emu_ewrcd() argument 641 emu_ac97_write_emulation(sc, regno, data); in emu_ewrcd() [all …]
|
H A D | maestro3.c | 270 #define m3_rd_1(sc, regno) bus_space_read_1(sc->st, sc->sh, regno) argument 271 #define m3_rd_2(sc, regno) bus_space_read_2(sc->st, sc->sh, regno) argument 272 #define m3_rd_4(sc, regno) bus_space_read_4(sc->st, sc->sh, regno) argument 273 #define m3_wr_1(sc, regno, data) bus_space_write_1(sc->st, sc->sh, regno, data) argument 274 #define m3_wr_2(sc, regno, data) bus_space_write_2(sc->st, sc->sh, regno, data) argument 275 #define m3_wr_4(sc, regno, data) bus_space_write_4(sc->st, sc->sh, regno, data) argument 334 m3_rdcd(kobj_t kobj, void *devinfo, int regno) in m3_rdcd() argument 343 m3_wr_1(sc, CODEC_COMMAND, (regno & 0x7f) | 0x80); in m3_rdcd() 354 m3_wrcd(kobj_t kobj, void *devinfo, int regno, u_int32_t data) in m3_wrcd() argument 362 m3_wr_1(sc, CODEC_COMMAND, regno & 0x7f); in m3_wrcd()
|
H A D | cmi.c | 149 cmi_rd(struct sc_info *sc, int regno, int size) in cmi_rd() argument 153 return bus_space_read_1(sc->st, sc->sh, regno); in cmi_rd() 155 return bus_space_read_2(sc->st, sc->sh, regno); in cmi_rd() 157 return bus_space_read_4(sc->st, sc->sh, regno); in cmi_rd() 159 DEB(printf("cmi_rd: failed 0x%04x %d\n", regno, size)); in cmi_rd() 165 cmi_wr(struct sc_info *sc, int regno, u_int32_t data, int size) in cmi_wr() argument 169 bus_space_write_1(sc->st, sc->sh, regno, data); in cmi_wr() 172 bus_space_write_2(sc->st, sc->sh, regno, data); in cmi_wr() 175 bus_space_write_4(sc->st, sc->sh, regno, data); in cmi_wr()
|
H A D | emu10kx.h | 150 uint32_t emu_rd(struct emu_sc_info *sc, unsigned int regno, unsigned int size); 151 void emu_wr(struct emu_sc_info *sc, unsigned int regno, uint32_t data, unsigned int size);
|
/freebsd/contrib/llvm-project/libunwind/src/ |
H A D | Unwind-EHABI.cpp | 911 uint32_t regno, _Unwind_VRS_DataRepresentation representation, in _Unwind_VRS_Set() argument 915 static_cast<void *>(context), regclass, regno, in _Unwind_VRS_Set() 921 if (representation != _UVRSD_UINT32 || regno > 15) in _Unwind_VRS_Set() 923 return __unw_set_reg(cursor, (unw_regnum_t)(UNW_ARM_R0 + regno), in _Unwind_VRS_Set() 932 if (regno > 15) in _Unwind_VRS_Set() 936 if (regno > 31) in _Unwind_VRS_Set() 939 return __unw_set_fpreg(cursor, (unw_regnum_t)(UNW_ARM_D0 + regno), in _Unwind_VRS_Set() 945 if (representation != _UVRSD_UINT32 || regno > 3) in _Unwind_VRS_Set() 947 return __unw_set_reg(cursor, (unw_regnum_t)(UNW_ARM_WC0 + regno), in _Unwind_VRS_Set() 952 if (representation != _UVRSD_DOUBLE || regno > 31) in _Unwind_VRS_Set() [all …]
|
/freebsd/sys/dev/drm2/ |
H A D | drm_fb_helper.h | 51 u16 blue, int regno); 53 u16 *blue, int regno); 100 int drm_fb_helper_setcolreg(unsigned regno,
|
/freebsd/sys/riscv/riscv/ |
H A D | ofw_machdep.c | 38 OF_decode_addr(phandle_t dev, int regno, bus_space_tag_t *tag, in OF_decode_addr() argument 45 err = ofw_reg_to_paddr(dev, regno, &addr, &size, NULL); in OF_decode_addr()
|
/freebsd/sys/arm64/arm64/ |
H A D | ofw_machdep.c | 38 OF_decode_addr(phandle_t dev, int regno, bus_space_tag_t *tag, in OF_decode_addr() argument 46 err = ofw_reg_to_paddr(dev, regno, &addr, &size, NULL); in OF_decode_addr()
|
/freebsd/sys/arm/arm/ |
H A D | ofw_machdep.c | 37 OF_decode_addr(phandle_t dev, int regno, bus_space_tag_t *tag, in OF_decode_addr() argument 45 res = ofw_reg_to_paddr(dev, regno, &addr, &size, &pci_hi); in OF_decode_addr()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/UnwindAssembly/x86/ |
H A D | x86AssemblyInspectionEngine.h | 109 bool push_reg_p(int ®no); 110 bool pop_reg_p(int ®no); 115 bool mov_reg_to_local_stack_frame_p(int ®no, int &rbp_offset);
|
H A D | x86AssemblyInspectionEngine.cpp | 366 bool x86AssemblyInspectionEngine::push_reg_p(int ®no) { in push_reg_p() argument 375 regno = (*p - 0x50) | regno_prefix_bit; in push_reg_p() 564 bool x86AssemblyInspectionEngine::pop_reg_p(int ®no) { in pop_reg_p() argument 573 regno = (*p - 0x58) | regno_prefix_bit; in pop_reg_p() 624 int ®no, int &rbp_offset) { in mov_reg_to_local_stack_frame_p() argument 664 regno = ((*(p + 1) >> 3) & 0x7) | src_reg_prefix_bit; in mov_reg_to_local_stack_frame_p() 1438 int regno; in AugmentUnwindPlanFromCallSite() local 1439 if (push_reg_p(regno)) { in AugmentUnwindPlanFromCallSite() 1448 if (pop_reg_p(regno)) { in AugmentUnwindPlanFromCallSite() 1580 int regno; in FindFirstNonPrologueInstruction() local [all …]
|
/freebsd/contrib/llvm-project/libunwind/include/ |
H A D | unwind_arm_ehabi.h | 119 uint32_t regno, _Unwind_VRS_DataRepresentation representation, 124 uint32_t regno, _Unwind_VRS_DataRepresentation representation,
|
/freebsd/sys/dev/sound/pcm/ |
H A D | ac97_if.m | 52 int regno; 58 int regno;
|
/freebsd/contrib/libcxxrt/ |
H A D | unwind-arm.h | 133 uint32_t regno, 138 uint32_t regno,
|