Searched defs:reg (Results 201 - 225 of 341) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/uts/common/io/pcn/
H A Dpcn.c60 #define CSR_WRITE_4(pcnp, reg, val) \
61 ddi_put32(pcnp->pcn_regshandle, (uint32_t *)(pcnp->pcn_regs + reg), val)
63 #define CSR_WRITE_2(pcnp, reg, val) \
64 ddi_put16(pcnp->pcn_regshandle, (uint16_t *)(pcnp->pcn_regs + reg), val)
66 #define CSR_READ_4(pcnp, reg) \
67 ddi_get32(pcnp->pcn_regshandle, (uint32_t *)(pcnp->pcn_regs + reg))
69 #define CSR_READ_2(pcnp, reg) \
70 ddi_get16(pcnp->pcn_regshandle, (uint16_t *)(pcnp->pcn_regs + reg))
72 #define PCN_CSR_SETBIT(pcnp, reg, x) \
73 pcn_csr_write(pcnp, reg, pcn_csr_rea
1324 pcn_mii_read(void *arg, uint8_t phy, uint8_t reg) argument
1369 pcn_mii_write(void *arg, uint8_t phy, uint8_t reg, uint16_t val) argument
1411 pcn_csr_read(pcn_t *pcnp, uint32_t reg) argument
1423 pcn_csr_read16(pcn_t *pcnp, uint32_t reg) argument
1435 pcn_csr_write(pcn_t *pcnp, uint32_t reg, uint32_t val) argument
1444 pcn_bcr_read(pcn_t *pcnp, uint32_t reg) argument
1456 pcn_bcr_read16(pcn_t *pcnp, uint32_t reg) argument
1468 pcn_bcr_write(pcn_t *pcnp, uint32_t reg, uint32_t val) argument
[all...]
/illumos-gate/usr/src/uts/common/io/
H A Dpower.c415 * Since the "power" node has "reg" property, as part of
435 uint8_t reg; local
450 /* next, read the reg */
451 EPIC_RD(hdl, softsp->power_btn_reg, reg);
453 if (reg & EPIC_FIRE_INTERRUPT) { /* PB pressed */
465 reg = ddi_get8(hdl, softsp->power_btn_reg);
466 if (reg & softsp->power_btn_bit) {
467 reg &= softsp->power_btn_bit;
468 ddi_put8(hdl, softsp->power_btn_reg, reg);
1162 uint8_t reg; local
[all...]
/illumos-gate/usr/src/uts/common/io/rge/
H A Drge_main.c913 uint32_t reg; local
930 reg = (~(index / RGE_MCAST_NUM)) & 0x7;
932 reg = index / RGE_MCAST_NUM;
939 hashp[reg] |= 1 << (index % RGE_MCAST_NUM);
945 hashp[reg] &= ~ (1 << (index % RGE_MCAST_NUM));
/illumos-gate/usr/src/uts/common/io/rtls/
H A Drtls.c227 static uint8_t rtls_reg_get8(rtls_t *rtlsp, uint32_t reg);
230 rtls_reg_get8(rtls_t *rtlsp, uint32_t reg) argument
234 addr = REG8(rtlsp->io_reg, reg);
238 static uint16_t rtls_reg_get16(rtls_t *rtlsp, uint32_t reg);
241 rtls_reg_get16(rtls_t *rtlsp, uint32_t reg) argument
245 addr = REG16(rtlsp->io_reg, reg);
249 static uint32_t rtls_reg_get32(rtls_t *rtlsp, uint32_t reg);
252 rtls_reg_get32(rtls_t *rtlsp, uint32_t reg) argument
256 addr = REG32(rtlsp->io_reg, reg);
260 static void rtls_reg_set8(rtls_t *rtlsp, uint32_t reg, uint8_
263 rtls_reg_set8(rtls_t *rtlsp, uint32_t reg, uint8_t value) argument
274 rtls_reg_set16(rtls_t *rtlsp, uint32_t reg, uint16_t value) argument
285 rtls_reg_set32(rtls_t *rtlsp, uint32_t reg, uint32_t value) argument
1916 rtls_mii_read(void *arg, uint8_t phy, uint8_t reg) argument
1958 rtls_mii_write(void *arg, uint8_t phy, uint8_t reg, uint16_t val) argument
[all...]
/illumos-gate/usr/src/uts/common/io/rwd/
H A Drt2661_var.h101 /* ddi reg handler */
145 uint8_t reg; member in struct:rt2661_softc::__anon6488
/illumos-gate/usr/src/uts/common/io/rwn/
H A Drt2860_var.h129 /* ddi reg handler */
201 uint8_t reg; member in struct:rt2860_softc::__anon6491
/illumos-gate/usr/src/uts/common/io/usb/clients/audio/usb_as/
H A Dusb_as.c639 "usb_as_ioctl(mixer reg): inst=%d", inst);
756 usb_as_registration_t *reg; local
771 reg = &uasp->usb_as_reg;
777 "usb_as_set_format: inst=%d, reg=0x%p, format=0x%p",
778 ddi_get_instance(uasp->usb_as_dip), (void *)reg, (void *)format);
780 for (n = 0; n < reg->reg_n_formats; n++) {
781 if ((format->fmt_chns == reg->reg_formats[n].fmt_chns) &&
782 (format->fmt_precision == reg->reg_formats[n].
784 reg->reg_formats[n].fmt_encoding)) {
786 int n_srs = reg
2241 usb_as_registration_t *reg = &uasp->usb_as_reg; local
[all...]
/illumos-gate/usr/src/uts/common/io/usb/usba/
H A Dusbai_register.c257 * free dev_data is reg != NULL, not much else to do
261 * reg - return registration data at this address
264 usb_client_detach(dev_info_t *dip, usb_client_dev_data_t *reg) argument
273 "Unregistering usb client %s%d: reg=0x%p",
274 ddi_driver_name(dip), ddi_get_instance(dip), (void *)reg);
276 usb_free_dev_data(dip, reg);
298 usb_client_dev_data_t **reg, usb_reg_parse_lvl_t parse_level,
304 rval = usb_get_dev_data(dip, reg, parse_level, flags);
321 * reg - pointer to registration data to be freed
324 usb_unregister_client(dev_info_t *dip, usb_client_dev_data_t *reg) argument
297 usb_register_client(dev_info_t *dip, uint_t version, usb_client_dev_data_t **reg, usb_reg_parse_lvl_t parse_level, usb_flags_t flags) argument
388 usb_get_dev_data(dev_info_t *dip, usb_client_dev_data_t **reg, usb_reg_parse_lvl_t parse_level, usb_flags_t flags) argument
552 usb_free_dev_data(dev_info_t *dip, usb_client_dev_data_t *reg) argument
[all...]
/illumos-gate/usr/src/uts/common/io/zyd/
H A Dzyd.h199 uint16_t reg; member in struct:zyd_iowrite16
/illumos-gate/usr/src/uts/sun4u/sys/
H A Dmc-us3i.h76 void *reg; member in struct:mc_soft_state
H A Dopl_olympus_regs.h242 #define ERRLOG_REG_EIDR(reg) ((reg >> ERRLOG_REG_EIDR_SHIFT) & \
244 #define ERRLOG_REG_LOGPA(reg) (reg & ERRLOG_REG_LOGPA_MASK)
245 #define ERRLOG_REG_NUMERR(reg) (reg & ERRLOG_REG_NUMERR_MASK)
297 } reg; member in struct:opl_errlog
/illumos-gate/usr/src/uts/sun/sys/
H A Dsocalreg.h59 } reg; member in union:socal_cr_register
99 } reg; member in union:socal_sae_register
127 } reg; member in union:socal_csr_register
183 } reg; member in union:socal_reqp_register
208 } reg; member in union:socal_rspp_register
225 socal_cr_reg_t socal_cr; /* Configuration reg */
226 socal_sae_reg_t socal_sae; /* Slave access error reg */
227 socal_csr_reg_t socal_csr; /* Command Status reg */
228 uint32_t socal_imr; /* Interrupt Mask reg */
229 socal_reqp_reg_t socal_reqp; /* request queue index reg */
[all...]
/illumos-gate/usr/src/uts/sun4/io/efcode/
H A Dfcpci.c603 ip->fc_regspec = ph; /* cache a copy of the reg spec */
830 int error, reg, flags = 0; local
847 * Construct a config address pci reg property from the args.
869 reg = (p.pci_phys_hi & PCI_REG_REG_M) |
887 if ((reg & (len - 1)) != 0)
929 v = virt + reg;
965 int error, reg, flags = 0; local
979 * Construct a config address pci reg property from the args.
1000 reg = (p.pci_phys_hi & PCI_REG_REG_M) |
1018 if ((reg
[all...]
/illumos-gate/usr/src/uts/sun4u/daktari/io/
H A Dhpc3130_dak.c72 uint8_t reg; member in struct:tuple
334 hpc3130_get(intptr_t arg, int reg, hpc3130_unit_t *unitp, int mode) argument
353 i2c_tran_pointer->i2c_wbuf[0] = (uchar_t)reg;
377 hpc3130_set(intptr_t arg, int reg, hpc3130_unit_t *unitp, int mode) argument
405 i2c_tran_pointer->i2c_wbuf[0] = (uchar_t)reg;
1150 hpc3130_rw(i2c_client_hdl_t handle, uint8_t reg, argument
1171 "no transfer structure 0x%x", reg));
1174 i2c_tran_pointer->i2c_wbuf[0] = reg;
1185 "no I2C data transfered 0x%x", reg));
1225 while (tp->reg !
[all...]
/illumos-gate/usr/src/uts/sun4u/excalibur/io/
H A Dxcalppm.c388 uint8_t reg; local
395 reg = XCPPM_GET8(unitp->hndls.gpio_data_ports,
398 reg &= ~LED;
400 reg |= LED;
402 unitp->regs.gpio_port1_data, reg);
861 DPRINTF(D_CPU, ("%s: safari config reg changed\n", str));
/illumos-gate/usr/src/uts/sparc/dtrace/
H A Dfasttrap_isa.c574 * restore <reg>, <reg_or_imm>, %oX
820 uint_t reg = RS1(tp->ftt_instr); local
829 ASSERT(p->p_model == DATAMODEL_LP64 || reg < 16);
831 value = (int64_t)fasttrap_getreg(rp, reg);
1384 fasttrap_getreg(struct regs *rp, uint_t reg) argument
1396 if (reg == 0)
1399 if (reg < 16)
1400 return ((&rp->r_g1)[reg - 1]);
1408 value = dtrace_getreg_win(reg, 1);
1437 return (rwin[i].rw_local[reg
1484 fasttrap_putreg(struct regs *rp, uint_t reg, ulong_t value) argument
[all...]
/illumos-gate/usr/src/uts/sun/io/audio/drv/audiocs/
H A Daudio_4231.c1766 uint8_t reg; local
1774 reg = FSDF_REG;
1778 reg = CDF_REG;
1784 SELIDX(state, reg | IAR_MCE);
2147 * int reg The register to select
2151 audiocs_sel_index(CS_state_t *state, uint8_t reg, int n) argument
2153 audiocs_sel_index(CS_state_t *state, uint8_t reg)
2162 ddi_put8(handle, addr, reg);
2164 if (T == reg) {
2177 T, reg);
[all...]
/illumos-gate/usr/src/uts/i86xpv/os/
H A Dxen_machdep.c1049 xen_set_segment_base(int reg, ulong_t value) argument
1053 if ((err = HYPERVISOR_set_segment_base(reg, value)) != 0) {
1059 reg, value, -(int)err);
/illumos-gate/usr/src/uts/intel/dtrace/
H A Dfasttrap_isa.c73 #define FASTTRAP_MODRM(mod, reg, rm) (((mod) << 6) | ((reg) << 3) | (rm))
367 uint_t reg = FASTTRAP_MODRM_REG(instr[start + 1]); local
370 if (reg == 2 || reg == 4) {
373 if (reg == 2)
566 uint_t reg = FASTTRAP_MODRM_REG(instr[rmindex]); local
575 * the reg field may determine the op code
581 if (reg != 0) {
595 FASTTRAP_MODRM(2, reg, r
1498 greg_t *reg; local
1703 fasttrap_getreg(struct regs *rp, uint_t reg) argument
[all...]
/illumos-gate/usr/src/uts/common/io/elxl/
H A Delxl.c2056 elxl_mii_read(void *arg, uint8_t phy, uint8_t reg) argument
2073 ex_mii_send_bits(sc, reg, 5);
2108 elxl_mii_write(void *arg, uint8_t phy, uint8_t reg, uint16_t data) argument
2122 ex_mii_send_bits(sc, reg, 5);
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_hba.c2008 /* Read the Cache Line reg */
2140 "reg", &prop, &num_prop) == DDI_PROP_SUCCESS) {
2977 uint32_t reg; local
2997 reg = ddi_get32(hba->pci_acc_handle,
3000 id = ((reg >> PCI_CAP_ID_SHIFT) & PCI_CAP_ID_MASK);
3001 next = ((reg >> PCI_CAP_NEXT_PTR_SHIFT) &
3041 reg = ddi_get32(hba->pci_acc_handle,
3044 eid = ((reg >> PCIE_EXT_CAP_ID_SHIFT) & PCIE_EXT_CAP_ID_MASK);
3045 eversion = ((reg >> PCIE_EXT_CAP_VER_SHIFT) &
3047 enext = ((reg >> PCIE_EXT_CAP_NEXT_PTR_SHIF
[all...]
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dspoolss_svc.c693 static spoolss_winreg_t reg[] = { local
724 for (i = 0; i < sizeof (reg) / sizeof (reg[0]); ++i) {
727 rp = &reg[i];
/illumos-gate/usr/src/uts/common/io/e1000api/
H A De1000_mac.c281 u32 reg; local
286 reg = E1000_READ_REG(hw, E1000_STATUS);
287 bus->func = (reg & E1000_STATUS_FUNC_MASK) >> E1000_STATUS_FUNC_SHIFT;
1386 * has completed. We read this twice because this reg has
2221 * @reg: 32bit register offset such as E1000_SCTL
2229 s32 e1000_write_8bit_ctrl_reg_generic(struct e1000_hw *hw, u32 reg, argument
2238 E1000_WRITE_REG(hw, reg, regvalue);
2243 regvalue = E1000_READ_REG(hw, reg);
2248 DEBUGOUT1("Reg %08x did not indicate ready\n", reg);
/illumos-gate/usr/src/uts/i86pc/io/gfx_private/
H A Dgfxp_vgatext.c374 ": can't find reg entry for registers");
383 ": can't find reg entry for memory");
396 ": can't find reg entry for registers");
407 ": can't find reg entry for memory");
1263 * search the entries of the "reg" property for one which has the desired
1266 * This version searches a PCI-style "reg" property. It was prompted by
1277 * specific purpose of finding a couple of particular VGA reg entries and
1278 * may not be suitable for all reg-searching purposes.
1290 pci_regspec_t *reg; local
1293 "reg", (caddr_
1349 struct regspec *reg; local
[all...]
/illumos-gate/usr/src/uts/common/io/audio/drv/audioens/
H A Daudioens.c240 SRCRegRead(audioens_dev_t *dev, unsigned short reg) argument
253 PUT32(dev, CONC_dSRCIO_OFF, (dtemp & SRC_CTLMASK) | ((int)reg << 25));
266 SRCRegWrite(audioens_dev_t *dev, unsigned short reg, unsigned short val) argument
281 ((int)reg << 25) | val;

Completed in 137 milliseconds

1234567891011>>