Lines Matching refs:device
29 struct nvkm_device *device = gpio->subdev.device; in gf119_gpio_reset() local
30 struct nvkm_bios *bios = device->bios; in gf119_gpio_reset()
49 nvkm_mask(device, 0x00d610 + (line * 4), 0xff, unk0); in gf119_gpio_reset()
51 nvkm_mask(device, 0x00d740 + (unk1 * 4), 0xff, line); in gf119_gpio_reset()
58 struct nvkm_device *device = gpio->subdev.device; in gf119_gpio_drive() local
60 nvkm_mask(device, 0x00d610 + (line * 4), 0x00003000, data); in gf119_gpio_drive()
61 nvkm_mask(device, 0x00d604, 0x00000001, 0x00000001); /* update? */ in gf119_gpio_drive()
68 struct nvkm_device *device = gpio->subdev.device; in gf119_gpio_sense() local
69 return !!(nvkm_rd32(device, 0x00d610 + (line * 4)) & 0x00004000); in gf119_gpio_sense()
83 gf119_gpio_new(struct nvkm_device *device, int index, struct nvkm_gpio **pgpio) in gf119_gpio_new() argument
85 return nvkm_gpio_new_(&gf119_gpio, device, index, pgpio); in gf119_gpio_new()