Lines Matching refs:temp
103 u8 temp; in amd_gpio_set() local
107 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_set()
108 …temp = (temp & AMD_GPIO_DEBOUNCE) | AMD_GPIO_MODE_OUT | (value ? AMD_GPIO_X_OUT_HI : AMD_GPIO_X_OU… in amd_gpio_set()
109 iowrite8(temp, agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_set()
112 dev_dbg(&agp->pdev->dev, "Setting gpio %d, value %d, reg=%02x\n", offset, !!value, temp); in amd_gpio_set()
118 u8 temp; in amd_gpio_get() local
120 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_get()
122 dev_dbg(&agp->pdev->dev, "Getting gpio %d, reg=%02x\n", offset, temp); in amd_gpio_get()
124 return (temp & AMD_GPIO_RTIN) ? 1 : 0; in amd_gpio_get()
130 u8 temp; in amd_gpio_dirout() local
134 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_dirout()
135 …temp = (temp & AMD_GPIO_DEBOUNCE) | AMD_GPIO_MODE_OUT | (value ? AMD_GPIO_X_OUT_HI : AMD_GPIO_X_OU… in amd_gpio_dirout()
136 iowrite8(temp, agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_dirout()
139 dev_dbg(&agp->pdev->dev, "Dirout gpio %d, value %d, reg=%02x\n", offset, !!value, temp); in amd_gpio_dirout()
147 u8 temp; in amd_gpio_dirin() local
151 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_dirin()
152 temp = (temp & AMD_GPIO_DEBOUNCE) | AMD_GPIO_MODE_IN; in amd_gpio_dirin()
153 iowrite8(temp, agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_dirin()
156 dev_dbg(&agp->pdev->dev, "Dirin gpio %d, reg=%02x\n", offset, temp); in amd_gpio_dirin()