Lines Matching refs:device
29 struct nvkm_device *device = gpio->subdev.device; in nv50_gpio_reset() local
30 struct nvkm_bios *bios = device->bios; in nv50_gpio_reset()
53 nvkm_mask(device, reg, 0x00010001 << lsh, val << lsh); in nv50_gpio_reset()
73 struct nvkm_device *device = gpio->subdev.device; in nv50_gpio_drive() local
79 nvkm_mask(device, reg, 3 << shift, (((dir ^ 1) << 1) | out) << shift); in nv50_gpio_drive()
86 struct nvkm_device *device = gpio->subdev.device; in nv50_gpio_sense() local
92 return !!(nvkm_rd32(device, reg) & (4 << shift)); in nv50_gpio_sense()
98 struct nvkm_device *device = gpio->subdev.device; in nv50_gpio_intr_stat() local
99 u32 intr = nvkm_rd32(device, 0x00e054); in nv50_gpio_intr_stat()
100 u32 stat = nvkm_rd32(device, 0x00e050) & intr; in nv50_gpio_intr_stat()
103 nvkm_wr32(device, 0x00e054, intr); in nv50_gpio_intr_stat()
109 struct nvkm_device *device = gpio->subdev.device; in nv50_gpio_intr_mask() local
110 u32 inte = nvkm_rd32(device, 0x00e050); in nv50_gpio_intr_mask()
115 nvkm_wr32(device, 0x00e050, inte); in nv50_gpio_intr_mask()
129 nv50_gpio_new(struct nvkm_device *device, int index, struct nvkm_gpio **pgpio) in nv50_gpio_new() argument
131 return nvkm_gpio_new_(&nv50_gpio, device, index, pgpio); in nv50_gpio_new()