Lines Matching refs:regval
82 uint32_t regval;
87 regval = rge_reg_get32(rgep, regno);
88 regval |= bits;
89 rge_reg_put32(rgep, regno, regval);
98 uint32_t regval;
103 regval = rge_reg_get32(rgep, regno);
104 regval &= ~bits;
105 rge_reg_put32(rgep, regno, regval);
162 uint8_t regval;
167 regval = rge_reg_get8(rgep, regno);
168 regval |= bits;
169 rge_reg_put8(rgep, regno, regval);
178 uint8_t regval;
183 regval = rge_reg_get8(rgep, regno);
184 regval &= ~bits;
185 rge_reg_put8(rgep, regno, regval);
194 uint32_t regval;
198 regval = (mii & PHY_REG_MASK) << PHY_REG_SHIFT;
199 rge_reg_put32(rgep, PHY_ACCESS_REG, regval);
221 uint32_t regval;
225 regval = (mii & PHY_REG_MASK) << PHY_REG_SHIFT;
226 regval |= data & PHY_DATA_MASK;
227 regval |= PHY_ACCESS_WR_FLAG;
228 rge_reg_put32(rgep, PHY_ACCESS_REG, regval);
249 uint32_t regval;
253 regval = (emii & EPHY_REG_MASK) << EPHY_REG_SHIFT;
254 regval |= data & EPHY_DATA_MASK;
255 regval |= EPHY_ACCESS_WR_FLAG;
256 rge_reg_put32(rgep, EPHY_ACCESS_REG, regval);
1309 uint32_t regval = 0;
1314 regval = rge_reg_get32(rgep, DUMP_COUNTER_REG_0);
1315 while (regval & DUMP_START) {
1322 regval = rge_reg_get32(rgep, DUMP_COUNTER_REG_0);
1757 uint64_t regval;
1767 regval = pci_config_get8(rgep->cfg_handle, regno);
1771 regval = pci_config_get16(rgep->cfg_handle, regno);
1775 regval = pci_config_get32(rgep->cfg_handle, regno);
1779 regval = pci_config_get64(rgep->cfg_handle, regno);
1783 ppd->pp_acc_data = regval;
1792 uint64_t regval;
1799 regval = ppd->pp_acc_data;
1803 pci_config_put8(rgep->cfg_handle, regno, regval);
1807 pci_config_put16(rgep->cfg_handle, regno, regval);
1811 pci_config_put32(rgep->cfg_handle, regno, regval);
1815 pci_config_put64(rgep->cfg_handle, regno, regval);
1826 uint64_t regval;
1836 regval = ddi_get8(rgep->io_handle, regaddr);
1840 regval = ddi_get16(rgep->io_handle, regaddr);
1844 regval = ddi_get32(rgep->io_handle, regaddr);
1848 regval = ddi_get64(rgep->io_handle, regaddr);
1852 ppd->pp_acc_data = regval;
1861 uint64_t regval;
1868 regval = ppd->pp_acc_data;
1872 ddi_put8(rgep->io_handle, regaddr, regval);
1876 ddi_put16(rgep->io_handle, regaddr, regval);
1880 ddi_put32(rgep->io_handle, regaddr, regval);
1884 ddi_put64(rgep->io_handle, regaddr, regval);
1919 uint64_t regval;
1929 regval = *(uint8_t *)vaddr;
1933 regval = *(uint16_t *)vaddr;
1937 regval = *(uint32_t *)vaddr;
1941 regval = *(uint64_t *)vaddr;
1946 (void *)rgep, (void *)ppd, regval, vaddr));
1948 ppd->pp_acc_data = regval;
1957 uint64_t regval;
1964 regval = ppd->pp_acc_data;
1967 (void *)rgep, (void *)ppd, regval, vaddr));
1971 *(uint8_t *)vaddr = (uint8_t)regval;
1975 *(uint16_t *)vaddr = (uint16_t)regval;
1979 *(uint32_t *)vaddr = (uint32_t)regval;
1983 *(uint64_t *)vaddr = (uint64_t)regval;