Searched defs:reg (Results 26 - 50 of 341) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/uts/common/io/cxgbe/common/
H A Dcommon.c86 t4_wait_op_done(struct adapter *adapter, int reg, u32 mask, int polarity, argument
89 return (t4_wait_op_done_val(adapter, reg, mask, polarity, attempts,
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/
H A Dadapter.c26 t4_read_reg(struct adapter *sc, uint32_t reg) argument
29 return (ddi_get32(sc->regh, (uint32_t *)(sc->regp + reg)));
33 t4_write_reg(struct adapter *sc, uint32_t reg, uint32_t val) argument
36 ddi_put32(sc->regh, (uint32_t *)(sc->regp + reg), val);
40 t4_os_pci_read_cfg1(struct adapter *sc, int reg, uint8_t *val) argument
42 *val = pci_config_get8(sc->pci_regh, reg);
46 t4_os_pci_write_cfg1(struct adapter *sc, int reg, uint8_t val) argument
48 pci_config_put8(sc->pci_regh, reg, val);
52 t4_os_pci_read_cfg2(struct adapter *sc, int reg, uint16_t *val) argument
54 *val = pci_config_get16(sc->pci_regh, reg);
58 t4_os_pci_write_cfg2(struct adapter *sc, int reg, uint16_t val) argument
64 t4_os_pci_read_cfg4(struct adapter *sc, int reg, uint32_t *val) argument
70 t4_os_pci_write_cfg4(struct adapter *sc, int reg, uint32_t val) argument
76 t4_read_reg64(struct adapter *sc, uint32_t reg) argument
83 t4_write_reg64(struct adapter *sc, uint32_t reg, uint64_t val) argument
[all...]
/illumos-gate/usr/src/uts/common/syscall/
H A Dlseek.c85 int reg; local
88 reg = (vp->v_type == VREG);
95 if (reg && noff > max) {
102 if (reg && off > (max - curoff)) {
107 if (reg && noff > max) {
118 if (reg && (off > (max - (offset_t)vattr.va_size))) {
123 if (reg && noff > max) {
151 if (reg && (noff > max))
182 if (reg && (noff > max))
194 ASSERT((reg
[all...]
/illumos-gate/usr/src/uts/common/io/igb/
H A Digb_osdep.c49 e1000_write_pci_cfg(struct e1000_hw *hw, uint32_t reg, uint16_t *value) argument
51 pci_config_put16(OS_DEP(hw)->cfg_handle, reg, *value);
55 e1000_read_pci_cfg(struct e1000_hw *hw, uint32_t reg, uint16_t *value) argument
58 pci_config_get16(OS_DEP(hw)->cfg_handle, reg);
62 * Return the 16-bit value from pci-e config space at offset reg into the pci-e
67 e1000_read_pcie_cap_reg(struct e1000_hw *hw, uint32_t reg, uint16_t *value) argument
79 (pcie_cap + reg));
86 * Write the given 16-bit value to pci-e config space at offset reg into the
91 e1000_write_pcie_cap_reg(struct e1000_hw *hw, uint32_t reg, uint16_t *value) argument
103 (off_t)(pcie_cap + reg), *valu
[all...]
/illumos-gate/usr/src/lib/libast/common/cdt/
H A Ddthdr.h40 #define reg register macro
/illumos-gate/usr/src/uts/intel/io/intel_nb5000/
H A Dnb_pci_cfg.c49 pci_regspec_t reg; local
52 reg.pci_phys_hi = 16 << PCI_REG_DEV_SHIFT; /* Bus=0, Dev=16, Func=0 */
53 reg.pci_phys_mid = 0;
54 reg.pci_phys_low = 0;
55 reg.pci_size_hi = 0;
56 reg.pci_size_low = PCIE_CONF_HDR_SIZE; /* overriden in pciex */
59 if (ddi_prop_update_int_array(DDI_MAJOR_T_UNKNOWN, dip, "reg",
60 (int *)&reg, sizeof (reg)/sizeof (int)) != DDI_PROP_SUCCESS)
62 "nb_pci_cfg_setup: cannot create reg propert
149 nb_pci_getb(int bus, int dev, int func, int reg, int *interpose) argument
158 nb_pci_getw(int bus, int dev, int func, int reg, int *interpose) argument
167 nb_pci_getl(int bus, int dev, int func, int reg, int *interpose) argument
176 nb_pci_putb(int bus, int dev, int func, int reg, uint8_t val) argument
185 nb_pci_putw(int bus, int dev, int func, int reg, uint16_t val) argument
194 nb_pci_putl(int bus, int dev, int func, int reg, uint32_t val) argument
[all...]
/illumos-gate/usr/src/uts/intel/io/intel_nhm/
H A Dnhm_pci_cfg.c45 pci_regspec_t reg; local
48 reg.pci_phys_mid = 0;
49 reg.pci_phys_low = 0;
50 reg.pci_size_hi = 0;
51 reg.pci_size_low = PCIE_CONF_HDR_SIZE; /* overriden in pciex */
55 reg.pci_phys_hi = ((SOCKET_BUS(i))
60 DDI_MAJOR_T_UNKNOWN, dip, "reg",
61 (int *)&reg, sizeof (reg)/sizeof (int)) !=
64 "cannot create reg propert
108 nhm_pci_getb(int bus, int dev, int func, int reg, int *interpose) argument
117 nhm_pci_getw(int bus, int dev, int func, int reg, int *interpose) argument
126 nhm_pci_getl(int bus, int dev, int func, int reg, int *interpose) argument
135 nhm_pci_putb(int bus, int dev, int func, int reg, uint8_t val) argument
144 nhm_pci_putw(int bus, int dev, int func, int reg, uint16_t val) argument
153 nhm_pci_putl(int bus, int dev, int func, int reg, uint32_t val) argument
[all...]
/illumos-gate/usr/src/uts/sun/io/audio/drv/audiocs/
H A Daudio_4231_apcdma.c271 uint32_t reg; local
292 reg = ddi_get32(handle, &APC_DMACSR);
293 for (int x = 0; (!(reg & drainbit)) && (x < CS4231_TIMEOUT); x++) {
295 reg = ddi_get32(handle, &APC_DMACSR);
348 uint32_t *nva; /* next VA reg */
349 uint32_t *nc; /* next count reg */
375 /* now program the NC reg., which enables the state machine */
397 uint32_t *va; /* VA reg */
H A Daudio_4231_eb2dma.c149 audio_dev_warn(state->cs_adev, "failed mapping auxio reg");
205 uint_t reg; local
211 reg = ddi_get32(phandle, &EB2_PLAY_CSR);
212 for (x = 0; (reg & EB2_FIFO_DRAIN) && x < CS4231_TIMEOUT; x++) {
214 reg = ddi_get32(phandle, &EB2_PLAY_CSR);
222 reg = ddi_get32(rhandle, &EB2_REC_CSR);
223 for (x = 0; (reg & EB2_FIFO_DRAIN) && x < CS4231_TIMEOUT; x++) {
225 reg = ddi_get32(rhandle, &EB2_REC_CSR);
/illumos-gate/usr/src/uts/i86pc/os/
H A Dpci_orion.c181 pci_orion_getb(int bus, int device, int function, int reg) argument
187 val = pci_mech1_getb(bus, device, function, reg);
194 pci_orion_getw(int bus, int device, int function, int reg) argument
200 val = pci_mech1_getw(bus, device, function, reg);
207 pci_orion_getl(int bus, int device, int function, int reg) argument
213 val = pci_mech1_getl(bus, device, function, reg);
220 pci_orion_putb(int bus, int device, int function, int reg, uint8_t val) argument
224 pci_mech1_putb(bus, device, function, reg, val);
230 pci_orion_putw(int bus, int device, int function, int reg, uint16_t val) argument
234 pci_mech1_putw(bus, device, function, reg, va
240 pci_orion_putl(int bus, int device, int function, int reg, uint32_t val) argument
[all...]
/illumos-gate/usr/src/uts/i86xpv/os/
H A Dmach_kdi.c89 kdi_dreg_get(int reg) argument
91 return (__hypercall1(__HYPERVISOR_get_debugreg, (long)reg));
95 kdi_dreg_set(int reg, ulong_t value) argument
97 (void) __hypercall2(__HYPERVISOR_set_debugreg, (long)reg, value);
/illumos-gate/usr/src/uts/common/io/e1000g/
H A De1000g_osdep.c46 e1000_write_pci_cfg(struct e1000_hw *hw, uint32_t reg, uint16_t *value) argument
48 pci_config_put16(OS_DEP(hw)->cfg_handle, reg, *value);
52 e1000_read_pci_cfg(struct e1000_hw *hw, uint32_t reg, uint16_t *value) argument
55 pci_config_get16(OS_DEP(hw)->cfg_handle, reg);
69 uint16_t reg; /* register contents */ local
91 (void) e1000_read_phy_reg(hw, offset, &reg);
94 reg |= spd_bit; /* enable: set the spd bit */
96 reg &= ~spd_bit; /* disable: clear the spd bit */
98 (void) e1000_write_phy_reg(hw, offset, reg);
103 * config space at offset reg int
109 e1000_read_pcie_cap_reg(struct e1000_hw *hw, uint32_t reg, uint16_t *value) argument
123 e1000_write_pcie_cap_reg(struct e1000_hw *hw, uint32_t reg, uint16_t *value) argument
[all...]
H A De1000g_stat.c40 static uint32_t e1000g_read_phy_stat(struct e1000_hw *hw, int reg);
883 e1000g_read_phy_stat(struct e1000_hw *hw, int reg) argument
892 switch (reg) {
945 val = E1000_READ_REG(hw, reg);
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/
H A Doce_intr.c221 uint32_t reg; local
223 reg = OCE_CFG_READ32(dev, PCICFG_INTR_CTRL);
224 reg |= HOSTINTR_MASK;
225 OCE_CFG_WRITE32(dev, PCICFG_INTR_CTRL, reg);
260 uint32_t reg; local
262 reg = OCE_CFG_READ32(dev, PCICFG_INTR_CTRL);
263 reg &= ~HOSTINTR_MASK;
264 OCE_CFG_WRITE32(dev, PCICFG_INTR_CTRL, reg);
/illumos-gate/usr/src/uts/common/io/ixgbe/core/
H A Dixgbe_dcb_82598.c121 u32 reg = 0; local
126 reg = IXGBE_READ_REG(hw, IXGBE_RUPPBMR) | IXGBE_RUPPBMR_MQA;
127 IXGBE_WRITE_REG(hw, IXGBE_RUPPBMR, reg);
129 reg = IXGBE_READ_REG(hw, IXGBE_RMCS);
131 reg &= ~IXGBE_RMCS_ARBDIS;
133 reg |= IXGBE_RMCS_RRM;
135 reg |= IXGBE_RMCS_DFP;
137 IXGBE_WRITE_REG(hw, IXGBE_RMCS, reg);
144 reg = credit_refill | (credit_max << IXGBE_RT2CR_MCL_SHIFT);
147 reg |
177 u32 reg, max_credits; local
221 u32 reg; local
264 u32 fcrtl, reg; local
316 u32 reg = 0; local
[all...]
/illumos-gate/usr/src/boot/sys/boot/ofw/common/
H A Dmain.c71 cell_t reg[24]; local
78 sz = OF_getprop(memoryp, "reg", &reg, sizeof(reg));
79 sz /= sizeof(reg[0]);
83 memsz += (uint64_t)reg[i + acells] << 32;
84 memsz += reg[i + acells + scells - 1];
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/
H A Dpi_pciexrc.c486 uint_t reg; local
495 * Look for the "reg" property from the devinfo node.
500 if (strncmp(di_prop_name(di_prop), "reg",
501 sizeof (reg)) == 0) {
505 bcopy(buf, &reg, sizeof (uint_t));
511 * If the "reg" property is not found in the di_node; look for it in
526 if (strncmp(di_prom_prop_name(di_prom_prop), "reg",
527 sizeof (reg)) == 0) {
532 bcopy(buf, &reg, sizeof (uint_t));
538 "%s failed to get reg propert
[all...]
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dtrestore.c315 struct regnod *reg=0,*regold,*regtop=0; local
318 reg = (struct regnod*)getnode(shp->stk,regnod);
320 regtop = reg;
322 regold->regnxt = reg;
323 reg->regflag = l;
324 reg->regptr = r_arg(shp);
325 reg->regcom = r_tree(shp);
326 regold = reg;
328 if(reg)
329 reg
[all...]
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/
H A Dfx_fire.c42 * <pci error status reg>
43 * <pci bridge status reg>
139 uint64_t reg; local
155 if (nvlist_lookup_uint64(erpt, "tlu-cess", &reg) == 0) {
156 data->pcie_ce_status = (uint32_t)reg | (uint32_t)(reg >> 32);
167 uint64_t reg; local
195 if (nvlist_lookup_uint64(erpt, "tlu-uess", &reg) == 0) {
196 data->pcie_ue_status = (uint32_t)reg | (uint32_t)(reg >> 3
258 uint64_t reg; local
319 uint64_t reg; local
[all...]
/illumos-gate/usr/src/cmd/rpcbind/
H A Dpmap_svc.c168 PMAP reg; local
174 if (!svc_getargs(xprt, (xdrproc_t)xdr_pmap, (char *)&reg)) {
188 if ((op == PMAPPROC_SET) && (reg.pm_port < IPPORT_RESERVED) &&
193 rpcbreg.r_prog = reg.pm_prog;
194 rpcbreg.r_vers = reg.pm_vers;
199 sprintf(buf, "0.0.0.0.%d.%d", (reg.pm_port >> 8) & 0xff,
200 reg.pm_port & 0xff);
202 if (reg.pm_prot == IPPROTO_UDP) {
204 } else if (reg.pm_prot == IPPROTO_TCP) {
224 PMAP_LOG(ans, xprt, op, reg
244 PMAP reg; local
[all...]
/illumos-gate/usr/src/uts/common/io/1394/
H A Ds1394_cmp.c52 static void s1394_cmp_notify_reg_change(s1394_hal_t *hal, t1394_cmp_reg_t reg,
160 s1394_cmp_read(s1394_target_t *target, t1394_cmp_reg_t reg, uint32_t *valp) argument
168 if (reg == T1394_CMP_OMPR) {
173 } else if (reg == T1394_CMP_IMPR) {
185 s1394_cmp_cas(s1394_target_t *target, t1394_cmp_reg_t reg, uint32_t arg_val, argument
194 if (reg == T1394_CMP_OMPR) {
201 } else if (reg == T1394_CMP_IMPR) {
214 s1394_cmp_notify_reg_change(hal, reg, target);
373 s1394_cmp_notify_reg_change(s1394_hal_t *hal, t1394_cmp_reg_t reg, argument
412 cb(arg, reg);
[all...]
/illumos-gate/usr/src/uts/common/io/rtw/
H A Drtwphyio.c108 uint32_t mask, reg; local
114 reg = RTW_PHYCFG_HST;
115 RTW_WRITE(regs, RTW_PHYCFG, reg);
129 reg |= RTW_PHYCFG_HST_DATA;
131 reg &= ~RTW_PHYCFG_HST_DATA;
133 reg |= RTW_PHYCFG_HST_CLK;
134 RTW_WRITE(regs, RTW_PHYCFG, reg);
139 reg &= ~RTW_PHYCFG_HST_CLK;
140 RTW_WRITE(regs, RTW_PHYCFG, reg);
149 reg |
159 rtw_rf_macbangbits(struct rtw_regs *regs, uint32_t reg) argument
301 uint32_t reg; local
[all...]
/illumos-gate/usr/src/uts/common/io/ixgbe/
H A Dixgbe_debug.c43 uint32_t ivar, reg, hw_index; local
111 if (reg = IXGBE_READ_REG(hw, IXGBE_RAL(i))) {
113 i, reg, i, IXGBE_READ_REG(hw, IXGBE_RAH(i)));
120 if (reg = IXGBE_READ_REG(hw, IXGBE_MTA(i))) {
121 ixgbe_log(ixgbe, "mta(%d): 0x%x\n", i, reg);
130 if (reg = IXGBE_READ_REG(hw, off)) {
131 ixgbe_log(ixgbe, "vfta(0x%x): 0x%x\n", off, reg);
140 if (reg = IXGBE_READ_REG(hw, IXGBE_MDEF(i))) {
141 ixgbe_log(ixgbe, "mdef(%d): 0x%x\n", i, reg);
458 /* Dump RX related reg'
[all...]
/illumos-gate/usr/src/uts/sun4u/starcat/sys/
H A Diosramreg.h88 uint32_t reg; /* 32-bit register */ member in struct:iosram_sbbcr
123 &(softp->sbbc_region->synch[IOSRAM_SEMA_DOM_IDX].reg));
125 &(softp->sbbc_region->synch[IOSRAM_SEMA_DOM_IDX].reg), v);
/illumos-gate/usr/src/uts/sun4u/starfire/io/
H A Dmemctrl.c92 struct sf_memunit_regspec reg; local
94 rlen = prom_getproplen(nodeid, "reg");
98 if (prom_getprop(nodeid, "reg", (caddr_t)&reg) < 0)
101 psi_addr = ((uint64_t)reg.regspec_addr_hi) << 32;
102 psi_addr |= (uint64_t)reg.regspec_addr_lo;
112 struct sf_memunit_regspec reg; local
114 rlen = prom_getproplen(nodeid, "reg");
118 if (prom_getprop(nodeid, "reg", (caddr_t)&reg) <
133 struct sf_memunit_regspec reg; local
165 struct sf_memunit_regspec reg; local
[all...]

Completed in 302 milliseconds

1234567891011>>