Searched defs:regs (Results 1 - 25 of 114) sorted by relevance

12345

/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Dcpuid.c50 unsigned int regs[4]; local
70 do_cpuid(0, regs);
71 maxeax = regs[0];
81 do_cpuid(1, regs);
82 stdfeatures = regs[3];
86 do_cpuid(0x80000000, regs);
87 if (regs[0] & 0x80000000) {
88 maxeax = regs[0];
93 do_cpuid(0x80000001, regs);
94 xtdfeatures = regs[
[all...]
/illumos-gate/usr/src/uts/intel/io/pciex/
H A Dpcie_nvidia.c222 pci_regspec_t regs[2] = {{0}}; local
228 regs[0].pci_phys_hi = devloc;
233 regs[0].pci_size_low = assigned[0].pci_size_low = PCI_CONF_HDR_SIZE;
234 assigned[0].pci_phys_hi = regs[0].pci_phys_hi = (PCI_RELOCAT_B |
236 assigned[0].pci_phys_low = regs[0].pci_phys_low =
242 regs[1].pci_size_low = assigned[1].pci_size_low = PCI_CONF_HDR_SIZE;
243 assigned[1].pci_phys_hi = regs[1].pci_phys_hi = (PCI_RELOCAT_B |
245 assigned[1].pci_phys_low = regs[1].pci_phys_low =
249 (int *)regs, 2 * sizeof (pci_regspec_t) / sizeof (int));
/illumos-gate/usr/src/uts/sun/io/audio/drv/audiocs/
H A Daudio_4231_eb2dma.c122 audio_dev_warn(state->cs_adev, "failed mapping codec regs");
130 audio_dev_warn(state->cs_adev, "failed mapping play regs");
140 audio_dev_warn(state->cs_adev, "failed mapping rec regs");
252 cs4231_eb2regs_t *regs = eng->ce_eb2regs; local
269 OR_SET_WORD(handle, &regs->eb2csr, EB2_RESET);
272 csr = ddi_get32(handle, &regs->eb2csr);
275 csr = ddi_get32(handle, &regs->eb2csr);
284 AND_SET_WORD(handle, &regs->eb2csr, ~(EB2_RESET|EB2_EN_DMA));
287 OR_SET_WORD(handle, &regs->eb2csr, reset);
297 OR_SET_WORD(handle, &regs
323 cs4231_eb2regs_t *regs = eng->ce_eb2regs; local
391 cs4231_eb2regs_t *regs = eng->ce_eb2regs; local
428 cs4231_eb2regs_t *regs = eng->ce_eb2regs; local
[all...]
/illumos-gate/usr/src/uts/sun4u/excalibur/sys/
H A Dxcalppm_var.h68 struct xcppmreg regs; /* register accessed by ppm */ member in struct:__anon9782
/illumos-gate/usr/src/cmd/mdb/intel/mdb/
H A Dkvm_isadep.c133 mdb_tgt_gregset_t regs; local
156 if (kt_kvmregs(t, cpuid, &regs) != 0) {
157 mdb_warn("failed to get regs for cpu %d\n", cpuid);
162 * Tell the stack walker that we have regs.
165 addr = regs.kregs[KREG_FP];
178 mdb_tgt_gregset_t regs; local
203 if (kt_kvmregs(t, cpuid, &regs) != 0) {
204 mdb_warn("failed to get regs for cpu %d\n", cpuid);
208 return (kt_regs((uintptr_t)&regs, flags, argc, argv));
H A Dkvm_amd64dep.c160 kt_regs_to_kregs(struct regs *regs, mdb_tgt_gregset_t *gregs) argument
162 gregs->kregs[KREG_SAVFP] = regs->r_savfp;
163 gregs->kregs[KREG_SAVPC] = regs->r_savpc;
164 gregs->kregs[KREG_RDI] = regs->r_rdi;
165 gregs->kregs[KREG_RSI] = regs->r_rsi;
166 gregs->kregs[KREG_RDX] = regs->r_rdx;
167 gregs->kregs[KREG_RCX] = regs->r_rcx;
168 gregs->kregs[KREG_R8] = regs->r_r8;
169 gregs->kregs[KREG_R9] = regs
197 struct regs regs; local
[all...]
H A Dkvm_ia32dep.c160 kt_regs_to_kregs(struct regs *regs, mdb_tgt_gregset_t *gregs) argument
162 gregs->kregs[KREG_SAVFP] = regs->r_savfp;
163 gregs->kregs[KREG_SAVPC] = regs->r_savpc;
164 gregs->kregs[KREG_EAX] = regs->r_eax;
165 gregs->kregs[KREG_EBX] = regs->r_ebx;
166 gregs->kregs[KREG_ECX] = regs->r_ecx;
167 gregs->kregs[KREG_EDX] = regs->r_edx;
168 gregs->kregs[KREG_ESI] = regs->r_esi;
169 gregs->kregs[KREG_EDI] = regs
191 struct regs regs; local
[all...]
/illumos-gate/usr/src/uts/sparc/v7/sys/
H A Dprivregs.h53 struct regs { struct
58 long r_g1; /* user global regs */
/illumos-gate/usr/src/uts/i86pc/os/
H A Dpci_bios.c70 struct bop_regs regs; local
97 bzero(&regs, sizeof (regs));
98 regs.eax.word.ax = (PCI_FUNCTION_ID << 8) | PCI_GET_IRQ_ROUTING;
100 regs.ds = 0xf000;
101 regs.es = FP_SEG((uint_t)(uintptr_t)hdrp);
102 regs.edi.word.di = FP_OFF((uint_t)(uintptr_t)hdrp);
104 BOP_DOINT(bootops, 0x1a, &regs);
109 if ((regs.eflags & PS_C) != 0) {
H A Dpci_cfgspace.c254 struct bop_regs regs; local
271 bzero(&regs, sizeof (regs));
272 regs.eax.word.ax = (PCI_FUNCTION_ID << 8) | PCI_BIOS_PRESENT;
274 BOP_DOINT(bootops, 0x1a, &regs);
275 carryflag = regs.eflags & PS_C;
276 ax = regs.eax.word.ax;
277 dx = regs.edx.word.dx;
291 pci_bios_vers = regs.ebx.word.bx;
292 pci_bios_maxbus = (regs
[all...]
/illumos-gate/usr/src/uts/common/io/rtw/
H A Drtwphyio.c52 rtw_bbp_read(struct rtw_regs *regs, uint_t addr) argument
54 RTW_WRITE(regs, RTW_BB,
57 RTW_WBR(regs, RTW_BB, RTW_BB);
58 return (MASK_AND_RSHIFT(RTW_READ(regs, RTW_BB), RTW_BB_RD_MASK));
62 rtw_bbp_write(struct rtw_regs *regs, uint_t addr, uint_t val) argument
81 RTW_RBW(regs, RTW_BB, RTW_BB);
82 RTW_WRITE(regs, RTW_BB, wrbbp);
83 RTW_SYNC(regs, RTW_BB, RTW_BB);
84 RTW_WRITE(regs, RTW_BB, rdbbp);
85 RTW_SYNC(regs, RTW_B
104 rtw_rf_hostbangbits(struct rtw_regs *regs, uint32_t bits, int lo_to_hi, uint_t nbits) argument
159 rtw_rf_macbangbits(struct rtw_regs *regs, uint32_t reg) argument
236 rtw_rf_hostwrite(struct rtw_regs *regs, enum rtw_rfchipid rfchipid, uint_t addr, uint32_t val) argument
298 rtw_rf_macwrite(struct rtw_regs *regs, enum rtw_rfchipid rfchipid, uint_t addr, uint32_t val) argument
[all...]
H A Drtwphy.c78 rtw_bbp_preinit(struct rtw_regs *regs, uint_t antatten0, int dflantb, argument
86 return (rtw_bbp_write(regs, RTW_BBP_ANTATTEN, antatten));
90 rtw_bbp_init(struct rtw_regs *regs, struct rtw_bbpset *bb, int antdiv, argument
103 if ((rc = rtw_bbp_write(regs, reg, val)) != 0) \
113 if ((rc = rtw_bbp_preinit(regs, bb->bb_antatten, dflantb, freq)) != 0)
442 rtw_sa2400_create(struct rtw_regs *regs, rtw_rf_write_t rf_write, int digphy) argument
481 bus->b_regs = regs;
590 rtw_max2820_create(struct rtw_regs *regs, rtw_rf_write_t rf_write, int is_a) argument
629 bus->b_regs = regs;
639 rtw_phy_init(struct rtw_regs *regs, struc argument
[all...]
/illumos-gate/usr/src/lib/libproc/common/
H A DPsyscall.c88 prgregset_t regs; member in struct:__anon75
117 (void) memcpy(&cmd.regs, &P->status.pr_lwp.pr_reg[0],
H A DPservice.c123 ps_lgetregs(struct ps_prochandle *P, lwpid_t lwpid, prgregset_t regs) argument
128 if (Plwp_getregs(P, lwpid, regs) == 0)
135 ps_lsetregs(struct ps_prochandle *P, lwpid_t lwpid, const prgregset_t regs) argument
140 if (Plwp_setregs(P, lwpid, regs) == 0)
147 ps_lgetfpregs(struct ps_prochandle *P, lwpid_t lwpid, prfpregset_t *regs) argument
152 if (Plwp_getfpregs(P, lwpid, regs) == 0)
159 ps_lsetfpregs(struct ps_prochandle *P, lwpid_t lwpid, const prfpregset_t *regs) argument
164 if (Plwp_setfpregs(P, lwpid, regs) == 0)
242 prgregset_t regs; local
256 if ((error = ps_lgetregs(P, lwpid, regs)) !
[all...]
/illumos-gate/usr/src/uts/i86pc/io/pciex/
H A Dnpe_misc.c154 uint32_t regs; local
160 regs = pcie_get_aer_uce_mask() | npe_aer_uce_mask |
162 pcie_set_aer_uce_mask(regs);
174 uint32_t regs; local
191 regs = pcie_get_aer_uce_mask() | PCIE_AER_UCE_ECRC;
192 pcie_set_aer_uce_mask(regs);
324 * save config regs for HyperTransport devices without drivers of classes:
352 "regs for %s\n", ddi_node_name(cdip));
382 "regs for %s\n", ddi_node_name(cdip));
/illumos-gate/usr/src/cmd/mdb/sparc/kmdb/
H A Dkmdb_kdi_isadep.c229 kmdb_kdi_kernpanic(struct regs *regs, uint_t tt) argument
233 args[0] = (uintptr_t)regs;
/illumos-gate/usr/src/cmd/sunpc/other/
H A Ddos2unix.c328 union REGS regs; local
329 regs.h.ah = 0x66; /* get/set global code page */
330 regs.h.al = 0x01; /* get */
331 intdos(&regs, &regs);
332 type = regs.x.bx;
H A Dunix2dos.c334 union REGS regs; local
335 regs.h.ah = 0x66; /* get/set global code page */
336 regs.h.al = 0x01; /* get */
337 intdos(&regs, &regs);
338 type = regs.x.bx;
/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_hio_guest.c63 dev_regs_t *regs; local
74 regs = nxge->dev_regs;
81 rv = ddi_regs_map_setup(nxge->dip, 0, (caddr_t *)&regs->nxge_regp, 0, 0,
82 &nxge_guest_register_access_attributes, &regs->nxge_regh);
89 nxge->npi_handle.regh = regs->nxge_regh;
90 nxge->npi_handle.regp = (npi_reg_ptr_t)regs->nxge_regp;
97 nxge->npi_reg_handle.regh = regs->nxge_regh;
98 nxge->npi_reg_handle.regp = (npi_reg_ptr_t)regs->nxge_regp;
105 nxge->npi_vreg_handle.regh = regs->nxge_regh;
106 nxge->npi_vreg_handle.regp = (npi_reg_ptr_t)regs
[all...]
/illumos-gate/usr/src/uts/common/io/zyd/
H A Dzyd_hw.c76 uint16_t regs[2]; local
78 regs[0] = LE_16(ZYD_REG32_HI(reg));
79 regs[1] = LE_16(ZYD_REG32_LO(reg));
81 result = zyd_usb_ioread_req(&sc->usb, regs, sizeof (regs),
87 if (tmp[0] != regs[0] || tmp[2] != regs[1]) {
89 ZYD_WARN("requested regs %04x, %04x; got %04x, %04x\n",
90 LE_16(regs[0]), LE_16(regs[
[all...]
/illumos-gate/usr/src/uts/sun4u/littleneck/io/
H A Dpcf8574_lneck.c503 int *regs; local
543 "reg", (int **)&regs, &len);
549 * regs[0] contains the bus number and regs[1] contains the device
553 if (regs[0] == 0 && regs[1] == 0x7c) {
560 ddi_prop_free(regs);
/illumos-gate/usr/src/lib/libproc/sparc/
H A DPisadep.c255 Pstack_iter(struct ps_prochandle *P, const prgregset_t regs, argument
272 (void) memcpy(gregs, regs, sizeof (gregs));
/illumos-gate/usr/src/uts/intel/ia32/sys/
H A Dprivregs.h51 struct regs { struct
87 #define GREG_NUM 8 /* Number of regs between %edi and %eax */
90 #define lwptoregs(lwp) ((struct regs *)((lwp)->lwp_regs))
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dtparm.c267 short *regs = cur_term->_regs; local
547 regs[*cp++ - 'A'] =
566 push(&stk, regs[*cp++ - 'A']);
/illumos-gate/usr/src/uts/i86pc/io/apix/
H A Dapix_intr.c392 apix_do_softint(struct regs *regs) argument
407 (caddr_t)regs);
417 struct regs *rp)
587 apix_do_pending_hilevel(struct cpu *cpu, struct regs *rp)
797 apix_do_pending_hardint(struct cpu *cpu, struct regs *rp)
896 apix_do_interrupt(struct regs *rp, trap_trace_rec_t *ttp)

Completed in 383 milliseconds

12345