Lines Matching refs:temp
100 u8 temp; in amd_gpio_set() local
104 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_set()
105 …temp = (temp & AMD_GPIO_DEBOUNCE) | AMD_GPIO_MODE_OUT | (value ? AMD_GPIO_X_OUT_HI : AMD_GPIO_X_OU… in amd_gpio_set()
106 iowrite8(temp, agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_set()
109 dev_dbg(&agp->pdev->dev, "Setting gpio %d, value %d, reg=%02x\n", offset, !!value, temp); in amd_gpio_set()
115 u8 temp; in amd_gpio_get() local
117 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_get()
119 dev_dbg(&agp->pdev->dev, "Getting gpio %d, reg=%02x\n", offset, temp); in amd_gpio_get()
121 return (temp & AMD_GPIO_RTIN) ? 1 : 0; in amd_gpio_get()
127 u8 temp; in amd_gpio_dirout() local
131 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_dirout()
132 …temp = (temp & AMD_GPIO_DEBOUNCE) | AMD_GPIO_MODE_OUT | (value ? AMD_GPIO_X_OUT_HI : AMD_GPIO_X_OU… in amd_gpio_dirout()
133 iowrite8(temp, agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_dirout()
136 dev_dbg(&agp->pdev->dev, "Dirout gpio %d, value %d, reg=%02x\n", offset, !!value, temp); in amd_gpio_dirout()
144 u8 temp; in amd_gpio_dirin() local
148 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_dirin()
149 temp = (temp & AMD_GPIO_DEBOUNCE) | AMD_GPIO_MODE_IN; in amd_gpio_dirin()
150 iowrite8(temp, agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_dirin()
153 dev_dbg(&agp->pdev->dev, "Dirin gpio %d, reg=%02x\n", offset, temp); in amd_gpio_dirin()