Home
last modified time | relevance | path

Searched refs:subdev (Results 1 – 200 of 504) sorted by relevance

123

/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/core/
Dsubdev.c76 nvkm_subdev_intr(struct nvkm_subdev *subdev) in nvkm_subdev_intr() argument
78 if (subdev->func->intr) in nvkm_subdev_intr()
79 subdev->func->intr(subdev); in nvkm_subdev_intr()
83 nvkm_subdev_fini(struct nvkm_subdev *subdev, bool suspend) in nvkm_subdev_fini() argument
85 struct nvkm_device *device = subdev->device; in nvkm_subdev_fini()
87 u32 pmc_enable = subdev->pmc_enable; in nvkm_subdev_fini()
90 nvkm_trace(subdev, "%s running...\n", action); in nvkm_subdev_fini()
93 if (subdev->func->fini) { in nvkm_subdev_fini()
94 int ret = subdev->func->fini(subdev, suspend); in nvkm_subdev_fini()
96 nvkm_error(subdev, "%s failed, %d\n", action, ret); in nvkm_subdev_fini()
[all …]
Dengine.c35 mutex_lock(&engine->subdev.mutex); in nvkm_engine_unref()
37 nvkm_subdev_fini(&engine->subdev, false); in nvkm_engine_unref()
38 mutex_unlock(&engine->subdev.mutex); in nvkm_engine_unref()
47 mutex_lock(&engine->subdev.mutex); in nvkm_engine_ref()
49 int ret = nvkm_subdev_init(&engine->subdev); in nvkm_engine_ref()
52 mutex_unlock(&engine->subdev.mutex); in nvkm_engine_ref()
56 mutex_unlock(&engine->subdev.mutex); in nvkm_engine_ref()
64 struct nvkm_fb *fb = engine->subdev.device->fb; in nvkm_engine_tile()
70 nvkm_engine_intr(struct nvkm_subdev *subdev) in nvkm_engine_intr() argument
72 struct nvkm_engine *engine = nvkm_engine(subdev); in nvkm_engine_intr()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
DKbuild1 nvkm-y += nvkm/subdev/fb/base.o
2 nvkm-y += nvkm/subdev/fb/nv04.o
3 nvkm-y += nvkm/subdev/fb/nv10.o
4 nvkm-y += nvkm/subdev/fb/nv1a.o
5 nvkm-y += nvkm/subdev/fb/nv20.o
6 nvkm-y += nvkm/subdev/fb/nv25.o
7 nvkm-y += nvkm/subdev/fb/nv30.o
8 nvkm-y += nvkm/subdev/fb/nv35.o
9 nvkm-y += nvkm/subdev/fb/nv36.o
10 nvkm-y += nvkm/subdev/fb/nv40.o
[all …]
Dbase.c54 struct nvkm_device *device = fb->subdev.device; in nvkm_fb_tile_prog()
67 struct nvkm_subdev *subdev = &bios->subdev; in nvkm_fb_bios_memtype() local
68 struct nvkm_device *device = subdev->device; in nvkm_fb_bios_memtype()
80 nvkm_warn(subdev, "M0203E type %02x\n", M0203E.type); in nvkm_fb_bios_memtype()
85 nvkm_warn(subdev, "M0203E not matched!\n"); in nvkm_fb_bios_memtype()
90 nvkm_fb_intr(struct nvkm_subdev *subdev) in nvkm_fb_intr() argument
92 struct nvkm_fb *fb = nvkm_fb(subdev); in nvkm_fb_intr()
98 nvkm_fb_oneinit(struct nvkm_subdev *subdev) in nvkm_fb_oneinit() argument
100 struct nvkm_fb *fb = nvkm_fb(subdev); in nvkm_fb_oneinit()
104 nvkm_error(subdev, "vram setup failed, %d\n", ret); in nvkm_fb_oneinit()
[all …]
Dramnv50.c76 struct nvkm_subdev *subdev = &ram->base.fb->subdev; in nv50_ram_timing_calc() local
77 struct nvkm_device *device = subdev->device; in nv50_ram_timing_calc()
142 nvkm_debug(subdev, " 220: %08x %08x %08x %08x\n", in nv50_ram_timing_calc()
144 nvkm_debug(subdev, " 230: %08x %08x %08x %08x\n", in nv50_ram_timing_calc()
146 nvkm_debug(subdev, " 240: %08x\n", timing[8]); in nv50_ram_timing_calc()
155 struct nvkm_subdev *subdev = &ram->base.fb->subdev; in nv50_ram_timing_read() local
156 struct nvkm_device *device = subdev->device; in nv50_ram_timing_read()
194 struct nvkm_gpio *gpio = hwsq->base.subdev->device->gpio; in nv50_ram_gpio()
223 struct nvkm_subdev *subdev = &ram->base.fb->subdev; in nv50_ram_calc() local
224 struct nvkm_bios *bios = subdev->device->bios; in nv50_ram_calc()
[all …]
Dramgf100.c112 struct nvkm_device *device = fb->subdev.device; in gf100_ram_train()
132 struct nvkm_subdev *subdev = &ram->base.fb->subdev; in gf100_ram_calc() local
133 struct nvkm_device *device = subdev->device; in gf100_ram_calc()
151 nvkm_error(subdev, "invalid/missing rammap entry\n"); in gf100_ram_calc()
156 strap = nvbios_ramcfg_index(subdev); in gf100_ram_calc()
158 nvkm_error(subdev, "invalid ramcfg strap\n"); in gf100_ram_calc()
164 nvkm_error(subdev, "invalid/missing ramcfg entry\n"); in gf100_ram_calc()
174 nvkm_error(subdev, "invalid/missing timing entry\n"); in gf100_ram_calc()
216 ret = gt215_pll_calc(subdev, &ram->refpll, ram->mempll.refclk, in gf100_ram_calc()
219 nvkm_error(subdev, "unable to calc refpll\n"); in gf100_ram_calc()
[all …]
Dramnv40.c37 struct nvkm_subdev *subdev = &ram->base.fb->subdev; in nv40_ram_calc() local
38 struct nvkm_bios *bios = subdev->device->bios; in nv40_ram_calc()
45 nvkm_error(subdev, "mclk pll data not found\n"); in nv40_ram_calc()
49 ret = nv04_pll_calc(subdev, &pll, freq, &N1, &M1, &N2, &M2, &log2P); in nv40_ram_calc()
70 struct nvkm_subdev *subdev = &ram->base.fb->subdev; in nv40_ram_prog() local
71 struct nvkm_device *device = subdev->device; in nv40_ram_prog()
155 .subdev = subdev, in nv40_ram_prog()
210 struct nvkm_device *device = fb->subdev.device; in nv40_ram_new()
Dgf100.c40 struct nvkm_subdev *subdev = &fb->base.subdev; in gf100_fb_intr() local
41 struct nvkm_device *device = subdev->device; in gf100_fb_intr()
44 nvkm_debug(subdev, "PFFB intr\n"); in gf100_fb_intr()
46 nvkm_debug(subdev, "PBFB intr\n"); in gf100_fb_intr()
53 struct nvkm_device *device = fb->base.subdev.device; in gf100_fb_init()
65 struct nvkm_device *device = fb->base.subdev.device; in gf100_fb_dtor()
Dnv50.c156 struct nvkm_subdev *subdev = &fb->base.subdev; in nv50_fb_intr() local
157 struct nvkm_device *device = subdev->device; in nv50_fb_intr()
200 nvkm_error(subdev, "trapped %s at %02x%04x%04x on channel %d [%08x %s] " in nv50_fb_intr()
217 struct nvkm_device *device = fb->base.subdev.device; in nv50_fb_init()
234 struct nvkm_device *device = fb->base.subdev.device; in nv50_fb_dtor()
273 nvkm_warn(&fb->base.subdev, "failed 100c08 page alloc\n"); in nv50_fb_new_()
Dram.c66 struct nvkm_subdev *subdev = &fb->subdev; in nvkm_ram_ctor() local
69 nvkm_info(subdev, "%d MiB %s\n", (int)(size >> 20), name[type]); in nvkm_ram_ctor()
86 nvkm_debug(subdev, "%d compression tags\n", tags); in nvkm_ram_ctor()
Dramgt215.c157 struct nvkm_subdev *subdev = &ram->base.fb->subdev; in gt215_link_train() local
158 struct nvkm_device *device = subdev->device; in gt215_link_train()
247 nvkm_debug(subdev, "Train: %08x", result[i]); in gt215_link_train()
250 nvkm_debug(subdev, "Train: %08x %08x %08x", train->r_100720, in gt215_link_train()
280 struct nvkm_device *device = ram->base.fb->subdev.device; in gt215_link_train_init()
351 struct nvkm_subdev *subdev = &ram->base.fb->subdev; in gt215_ram_timing_calc() local
352 struct nvkm_device *device = subdev->device; in gt215_ram_timing_calc()
414 nvkm_debug(subdev, "Entry: 220: %08x %08x %08x %08x\n", in gt215_ram_timing_calc()
416 nvkm_debug(subdev, " 230: %08x %08x %08x %08x\n", in gt215_ram_timing_calc()
418 nvkm_debug(subdev, " 240: %08x\n", timing[8]); in gt215_ram_timing_calc()
[all …]
/linux-4.4.14/drivers/mtd/
Dmtdconcat.c46 struct mtd_info **subdev; member
76 struct mtd_info *subdev = concat->subdev[i]; in concat_read() local
79 if (from >= subdev->size) { in concat_read()
82 from -= subdev->size; in concat_read()
85 if (from + len > subdev->size) in concat_read()
87 size = subdev->size - from; in concat_read()
92 err = mtd_read(subdev, from, size, &retsize, buf); in concat_read()
128 struct mtd_info *subdev = concat->subdev[i]; in concat_write() local
131 if (to >= subdev->size) { in concat_write()
133 to -= subdev->size; in concat_write()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
DKbuild1 nvkm-y += nvkm/subdev/bios/base.o
2 nvkm-y += nvkm/subdev/bios/bit.o
3 nvkm-y += nvkm/subdev/bios/boost.o
4 nvkm-y += nvkm/subdev/bios/conn.o
5 nvkm-y += nvkm/subdev/bios/cstep.o
6 nvkm-y += nvkm/subdev/bios/dcb.o
7 nvkm-y += nvkm/subdev/bios/disp.o
8 nvkm-y += nvkm/subdev/bios/dp.o
9 nvkm-y += nvkm/subdev/bios/extdev.o
10 nvkm-y += nvkm/subdev/bios/fan.o
[all …]
Dmxm.c31 struct nvkm_subdev *subdev = &bios->subdev; in mxm_table() local
35 nvkm_debug(subdev, "BIT 'x' table not present\n"); in mxm_table()
42 nvkm_warn(subdev, "BIT 'x' table %d/%d unknown\n", *ver, *hdr); in mxm_table()
77 struct nvkm_subdev *subdev = &bios->subdev; in mxm_sor_map() local
94 nvkm_warn(subdev, "unknown sor map v%02x\n", ver); in mxm_sor_map()
107 nvkm_warn(subdev, "missing sor map\n"); in mxm_sor_map()
114 struct nvkm_subdev *subdev = &bios->subdev; in mxm_ddc_map() local
131 nvkm_warn(subdev, "unknown ddc map v%02x\n", ver); in mxm_ddc_map()
Dshadow.c54 struct nvkm_subdev *subdev = &bios->subdev; in shadow_image() local
65 nvkm_debug(subdev, "%08x: header fetch failed\n", in shadow_image()
71 nvkm_debug(subdev, "image %d invalid\n", idx); in shadow_image()
75 nvkm_debug(subdev, "%08x: type %02x, %d bytes\n", in shadow_image()
79 nvkm_debug(subdev, "%08x: fetch failed\n", image.base); in shadow_image()
87 nvkm_debug(subdev, "%08x: checksum failed\n", in shadow_image()
110 struct nvkm_subdev *subdev = &bios->subdev; in shadow_method() local
112 nvkm_debug(subdev, "trying %s...\n", name ? name : func->name); in shadow_method()
123 nvkm_debug(subdev, "scored %d\n", mthd->score); in shadow_method()
146 struct device *dev = bios->subdev.device->dev; in shadow_fw_init()
[all …]
Dshadowramin.c33 struct nvkm_device *device = bios->subdev.device; in pramin_read()
48 struct nvkm_device *device = priv->bios->subdev.device; in pramin_fini()
57 struct nvkm_subdev *subdev = &bios->subdev; in pramin_init() local
58 struct nvkm_device *device = subdev->device; in pramin_init()
73 nvkm_debug(subdev, "... display disabled\n"); in pramin_init()
83 nvkm_debug(subdev, "... not enabled\n"); in pramin_init()
87 nvkm_debug(subdev, "... not in vram\n"); in pramin_init()
100 nvkm_error(subdev, "... out of memory\n"); in pramin_init()
Dramcfg.c30 nvbios_ramcfg_strap(struct nvkm_subdev *subdev) in nvbios_ramcfg_strap() argument
32 return (nvkm_rd32(subdev->device, 0x101000) & 0x0000003c) >> 2; in nvbios_ramcfg_strap()
51 nvbios_ramcfg_index(struct nvkm_subdev *subdev) in nvbios_ramcfg_index() argument
53 struct nvkm_bios *bios = subdev->device->bios; in nvbios_ramcfg_index()
54 u8 strap = nvbios_ramcfg_strap(subdev); in nvbios_ramcfg_index()
Ddcb.c30 struct nvkm_subdev *subdev = &bios->subdev; in dcb_table() local
31 struct nvkm_device *device = subdev->device; in dcb_table()
37 nvkm_warn(subdev, "DCB table not found\n"); in dcb_table()
44 nvkm_warn(subdev, "DCB version 0x%02x unknown\n", *ver); in dcb_table()
90 nvkm_debug(subdev, "DCB contains no useful data\n"); in dcb_table()
94 nvkm_warn(subdev, "DCB header validation failed\n"); in dcb_table()
Dbase.c87 nvkm_bios_dtor(struct nvkm_subdev *subdev) in nvkm_bios_dtor() argument
89 struct nvkm_bios *bios = nvkm_bios(subdev); in nvkm_bios_dtor()
108 nvkm_subdev_ctor(&nvkm_bios, device, index, 0, &bios->subdev); in nvkm_bios_new()
118 nvkm_debug(&bios->subdev, "BMP version %x.%x\n", in nvkm_bios_new()
126 nvkm_debug(&bios->subdev, "BIT signature found\n"); in nvkm_bios_new()
143 nvkm_info(&bios->subdev, "version %02x.%02x.%02x.%02x.%02x\n", in nvkm_bios_new()
Dimage.c32 struct nvkm_subdev *subdev = &bios->subdev; in nvbios_imagen() local
45 nvkm_debug(subdev, "%08x: ROM signature (%04x) unknown\n", in nvbios_imagen()
DM0203.c106 struct nvkm_subdev *subdev = &bios->subdev; in nvbios_M0203Em() local
112 nvkm_warn(subdev, "M0203T not found\n"); in nvbios_M0203Em()
123 nvkm_warn(subdev, "M0203T type %02x\n", M0203T.type); in nvbios_M0203Em()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
DKbuild1 nvkm-y += nvkm/subdev/i2c/base.o
2 nvkm-y += nvkm/subdev/i2c/nv04.o
3 nvkm-y += nvkm/subdev/i2c/nv4e.o
4 nvkm-y += nvkm/subdev/i2c/nv50.o
5 nvkm-y += nvkm/subdev/i2c/g94.o
6 nvkm-y += nvkm/subdev/i2c/gf117.o
7 nvkm-y += nvkm/subdev/i2c/gf119.o
8 nvkm-y += nvkm/subdev/i2c/gk104.o
9 nvkm-y += nvkm/subdev/i2c/gm204.o
11 nvkm-y += nvkm/subdev/i2c/pad.o
[all …]
Dbase.c51 struct nvkm_bios *bios = i2c->subdev.device->bios; in nvkm_i2c_bus_find()
129 nvkm_i2c_intr(struct nvkm_subdev *subdev) in nvkm_i2c_intr() argument
131 struct nvkm_i2c *i2c = nvkm_i2c(subdev); in nvkm_i2c_intr()
159 nvkm_i2c_fini(struct nvkm_subdev *subdev, bool suspend) in nvkm_i2c_fini() argument
161 struct nvkm_i2c *i2c = nvkm_i2c(subdev); in nvkm_i2c_fini()
178 nvkm_i2c_init(struct nvkm_subdev *subdev) in nvkm_i2c_init() argument
180 struct nvkm_i2c *i2c = nvkm_i2c(subdev); in nvkm_i2c_init()
196 nvkm_i2c_dtor(struct nvkm_subdev *subdev) in nvkm_i2c_dtor() argument
198 struct nvkm_i2c *i2c = nvkm_i2c(subdev); in nvkm_i2c_dtor()
257 nvkm_subdev_ctor(&nvkm_i2c, device, index, 0, &i2c->subdev); in nvkm_i2c_new_()
[all …]
Dbusnv50.c39 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv50_i2c_bus_drive_scl()
49 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv50_i2c_bus_drive_sda()
59 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv50_i2c_bus_sense_scl()
67 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv50_i2c_bus_sense_sda()
75 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv50_i2c_bus_init()
101 nvkm_warn(&pad->i2c->subdev, "bus %d unknown\n", drive); in nv50_i2c_bus_new()
Dbusgf119.c36 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in gf119_i2c_bus_drive_scl()
44 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in gf119_i2c_bus_drive_sda()
52 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in gf119_i2c_bus_sense_scl()
60 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in gf119_i2c_bus_sense_sda()
68 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in gf119_i2c_bus_init()
Dbusnv4e.c36 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv4e_i2c_bus_drive_scl()
44 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv4e_i2c_bus_drive_sda()
52 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv4e_i2c_bus_sense_scl()
60 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv4e_i2c_bus_sense_sda()
Dbusnv04.c39 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv04_i2c_bus_drive_scl()
50 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv04_i2c_bus_drive_sda()
61 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv04_i2c_bus_sense_scl()
69 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv04_i2c_bus_sense_sda()
Dpadgm204.c31 struct nvkm_subdev *subdev = &pad->i2c->subdev; in gm204_i2c_pad_mode() local
32 struct nvkm_device *device = subdev->device; in gm204_i2c_pad_mode()
Dpadg94.c31 struct nvkm_subdev *subdev = &pad->i2c->subdev; in g94_i2c_pad_mode() local
32 struct nvkm_device *device = subdev->device; in g94_i2c_pad_mode()
/linux-4.4.14/drivers/mtd/maps/
Dsa1100-flash.c36 struct sa_subdev_info subdev[0]; member
43 struct sa_subdev_info *subdev = container_of(map, struct sa_subdev_info, map); in sa1100_set_vpp() local
49 subdev->plat->set_vpp(1); in sa1100_set_vpp()
52 subdev->plat->set_vpp(0); in sa1100_set_vpp()
57 static void sa1100_destroy_subdev(struct sa_subdev_info *subdev) in sa1100_destroy_subdev() argument
59 if (subdev->mtd) in sa1100_destroy_subdev()
60 map_destroy(subdev->mtd); in sa1100_destroy_subdev()
61 if (subdev->map.virt) in sa1100_destroy_subdev()
62 iounmap(subdev->map.virt); in sa1100_destroy_subdev()
63 release_mem_region(subdev->map.phys, subdev->map.size); in sa1100_destroy_subdev()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/
DKbuild1 include $(src)/nvkm/subdev/bar/Kbuild
2 include $(src)/nvkm/subdev/bios/Kbuild
3 include $(src)/nvkm/subdev/bus/Kbuild
4 include $(src)/nvkm/subdev/clk/Kbuild
5 include $(src)/nvkm/subdev/devinit/Kbuild
6 include $(src)/nvkm/subdev/fb/Kbuild
7 include $(src)/nvkm/subdev/fuse/Kbuild
8 include $(src)/nvkm/subdev/gpio/Kbuild
9 include $(src)/nvkm/subdev/i2c/Kbuild
10 include $(src)/nvkm/subdev/ibus/Kbuild
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/timer/
Dnv04.c30 struct nvkm_subdev *subdev = &tmr->subdev; in nv04_timer_time() local
31 struct nvkm_device *device = subdev->device; in nv04_timer_time()
35 nvkm_debug(subdev, "time low : %08x\n", lo); in nv04_timer_time()
36 nvkm_debug(subdev, "time high : %08x\n", hi); in nv04_timer_time()
45 struct nvkm_device *device = tmr->subdev.device; in nv04_timer_read()
59 struct nvkm_device *device = tmr->subdev.device; in nv04_timer_alarm_fini()
66 struct nvkm_device *device = tmr->subdev.device; in nv04_timer_alarm_init()
74 struct nvkm_subdev *subdev = &tmr->subdev; in nv04_timer_intr() local
75 struct nvkm_device *device = subdev->device; in nv04_timer_intr()
85 nvkm_error(subdev, "intr %08x\n", stat); in nv04_timer_intr()
[all …]
Dnv40.c30 struct nvkm_subdev *subdev = &tmr->subdev; in nv40_timer_init() local
31 struct nvkm_device *device = subdev->device; in nv40_timer_init()
46 nvkm_warn(subdev, "unknown input clock freq\n"); in nv40_timer_init()
65 nvkm_debug(subdev, "input frequency : %dHz\n", f); in nv40_timer_init()
66 nvkm_debug(subdev, "numerator : %08x\n", n); in nv40_timer_init()
67 nvkm_debug(subdev, "denominator : %08x\n", d); in nv40_timer_init()
68 nvkm_debug(subdev, "timer frequency : %dHz\n", f * d / n); in nv40_timer_init()
Dnv41.c30 struct nvkm_subdev *subdev = &tmr->subdev; in nv41_timer_init() local
31 struct nvkm_device *device = subdev->device; in nv41_timer_init()
60 nvkm_debug(subdev, "input frequency : %dHz\n", f); in nv41_timer_init()
61 nvkm_debug(subdev, "input multiplier: %d\n", m); in nv41_timer_init()
62 nvkm_debug(subdev, "numerator : %08x\n", n); in nv41_timer_init()
63 nvkm_debug(subdev, "denominator : %08x\n", d); in nv41_timer_init()
64 nvkm_debug(subdev, "timer frequency : %dHz\n", (f * m) * d / n); in nv41_timer_init()
Dbase.c98 nvkm_timer_intr(struct nvkm_subdev *subdev) in nvkm_timer_intr() argument
100 struct nvkm_timer *tmr = nvkm_timer(subdev); in nvkm_timer_intr()
105 nvkm_timer_fini(struct nvkm_subdev *subdev, bool suspend) in nvkm_timer_fini() argument
107 struct nvkm_timer *tmr = nvkm_timer(subdev); in nvkm_timer_fini()
113 nvkm_timer_init(struct nvkm_subdev *subdev) in nvkm_timer_init() argument
115 struct nvkm_timer *tmr = nvkm_timer(subdev); in nvkm_timer_init()
124 nvkm_timer_dtor(struct nvkm_subdev *subdev) in nvkm_timer_dtor() argument
126 return nvkm_timer(subdev); in nvkm_timer_dtor()
146 nvkm_subdev_ctor(&nvkm_timer, device, index, 0, &tmr->subdev); in nvkm_timer_new_()
DKbuild1 nvkm-y += nvkm/subdev/timer/base.o
2 nvkm-y += nvkm/subdev/timer/nv04.o
3 nvkm-y += nvkm/subdev/timer/nv40.o
4 nvkm-y += nvkm/subdev/timer/nv41.o
5 nvkm-y += nvkm/subdev/timer/gk20a.o
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/
DKbuild1 nvkm-y += nvkm/subdev/devinit/base.o
2 nvkm-y += nvkm/subdev/devinit/nv04.o
3 nvkm-y += nvkm/subdev/devinit/nv05.o
4 nvkm-y += nvkm/subdev/devinit/nv10.o
5 nvkm-y += nvkm/subdev/devinit/nv1a.o
6 nvkm-y += nvkm/subdev/devinit/nv20.o
7 nvkm-y += nvkm/subdev/devinit/nv50.o
8 nvkm-y += nvkm/subdev/devinit/g84.o
9 nvkm-y += nvkm/subdev/devinit/g98.o
10 nvkm-y += nvkm/subdev/devinit/gt215.o
[all …]
Dnv50.c37 struct nvkm_subdev *subdev = &init->subdev; in nv50_devinit_pll_set() local
38 struct nvkm_device *device = subdev->device; in nv50_devinit_pll_set()
46 nvkm_error(subdev, "failed to retrieve pll data, %d\n", ret); in nv50_devinit_pll_set()
50 ret = nv04_pll_calc(subdev, &info, freq, &N1, &M1, &N2, &M2, &P); in nv50_devinit_pll_set()
52 nvkm_error(subdev, "failed pll calculation\n"); in nv50_devinit_pll_set()
83 struct nvkm_device *device = init->subdev.device; in nv50_devinit_disable()
97 struct nvkm_subdev *subdev = &init->base.subdev; in nv50_devinit_preinit() local
98 struct nvkm_device *device = subdev->device; in nv50_devinit_preinit()
116 nvkm_debug(subdev, "adaptor not initialised\n"); in nv50_devinit_preinit()
126 struct nvkm_subdev *subdev = &init->base.subdev; in nv50_devinit_init() local
[all …]
Dbase.c69 nvkm_devinit_fini(struct nvkm_subdev *subdev, bool suspend) in nvkm_devinit_fini() argument
71 struct nvkm_devinit *init = nvkm_devinit(subdev); in nvkm_devinit_fini()
79 nvkm_devinit_preinit(struct nvkm_subdev *subdev) in nvkm_devinit_preinit() argument
81 struct nvkm_devinit *init = nvkm_devinit(subdev); in nvkm_devinit_preinit()
87 nvkm_lockvgac(subdev->device, false); in nvkm_devinit_preinit()
92 nvkm_devinit_init(struct nvkm_subdev *subdev) in nvkm_devinit_init() argument
94 struct nvkm_devinit *init = nvkm_devinit(subdev); in nvkm_devinit_init()
101 nvkm_devinit_dtor(struct nvkm_subdev *subdev) in nvkm_devinit_dtor() argument
103 struct nvkm_devinit *init = nvkm_devinit(subdev); in nvkm_devinit_dtor()
110 nvkm_lockvgac(subdev->device, true); in nvkm_devinit_dtor()
[all …]
Dgm204.c33 struct nvkm_device *device = init->base.subdev.device; in pmu_code()
53 struct nvkm_device *device = init->base.subdev.device; in pmu_data()
65 struct nvkm_device *device = init->base.subdev.device; in pmu_args()
74 struct nvkm_device *device = init->base.subdev.device; in pmu_exec()
84 struct nvkm_subdev *subdev = &init->base.subdev; in pmu_load() local
85 struct nvkm_bios *bios = subdev->device->bios; in pmu_load()
89 nvkm_error(subdev, "VBIOS PMU fuc %02x not found\n", type); in pmu_load()
113 struct nvkm_subdev *subdev = &init->base.subdev; in gm204_devinit_post() local
114 struct nvkm_device *device = subdev->device; in gm204_devinit_post()
122 nvkm_error(subdev, "VBIOS PMU init data not found\n"); in gm204_devinit_post()
Dgt215.c34 struct nvkm_subdev *subdev = &init->subdev; in gt215_devinit_pll_set() local
35 struct nvkm_device *device = subdev->device; in gt215_devinit_pll_set()
44 ret = gt215_pll_calc(subdev, &info, freq, &N, &fN, &M, &P); in gt215_devinit_pll_set()
57 nvkm_warn(subdev, "%08x/%dKhz unimplemented\n", type, freq); in gt215_devinit_pll_set()
68 struct nvkm_device *device = init->subdev.device; in gt215_devinit_disable()
105 struct nvkm_device *device = init->base.subdev.device; in gt215_devinit_mmio()
Dgf100.c34 struct nvkm_subdev *subdev = &init->subdev; in gf100_devinit_pll_set() local
35 struct nvkm_device *device = subdev->device; in gf100_devinit_pll_set()
44 ret = gt215_pll_calc(subdev, &info, freq, &N, &fN, &M, &P); in gf100_devinit_pll_set()
58 nvkm_warn(subdev, "%08x/%dKhz unimplemented\n", type, freq); in gf100_devinit_pll_set()
69 struct nvkm_device *device = init->subdev.device; in gf100_devinit_disable()
Dnv04.c38 struct nvkm_subdev *subdev = &init->subdev; in nv04_devinit_meminit() local
39 struct nvkm_device *device = subdev->device; in nv04_devinit_meminit()
47 nvkm_error(subdev, "failed to map fb\n"); in nv04_devinit_meminit()
146 struct nvkm_device *device = init->subdev.device; in setPLL_single()
201 struct nvkm_device *device = init->subdev.device; in setPLL_double_highregs()
286 struct nvkm_device *device = init->subdev.device; in setPLL_double_lowregs()
358 struct nvkm_subdev *subdev = &devinit->subdev; in nv04_devinit_pll_set() local
359 struct nvkm_bios *bios = subdev->device->bios; in nv04_devinit_pll_set()
370 ret = nv04_pll_calc(subdev, &info, freq, &N1, &M1, &N2, &M2, &P); in nv04_devinit_pll_set()
396 return nvbios_init(&init->subdev, execute); in nv04_devinit_post()
[all …]
Dnv20.c35 struct nvkm_subdev *subdev = &init->subdev; in nv20_devinit_meminit() local
36 struct nvkm_device *device = subdev->device; in nv20_devinit_meminit()
44 nvkm_error(subdev, "failed to map fb\n"); in nv20_devinit_meminit()
Dnv10.c35 struct nvkm_subdev *subdev = &init->subdev; in nv10_devinit_meminit() local
36 struct nvkm_device *device = subdev->device; in nv10_devinit_meminit()
51 nvkm_error(subdev, "failed to map fb\n"); in nv10_devinit_meminit()
Dnv05.c47 struct nvkm_subdev *subdev = &init->subdev; in nv05_devinit_meminit() local
48 struct nvkm_device *device = subdev->device; in nv05_devinit_meminit()
59 nvkm_error(subdev, "failed to map fb\n"); in nv05_devinit_meminit()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
DKbuild1 nvkm-y += nvkm/subdev/therm/base.o
2 nvkm-y += nvkm/subdev/therm/fan.o
3 nvkm-y += nvkm/subdev/therm/fannil.o
4 nvkm-y += nvkm/subdev/therm/fanpwm.o
5 nvkm-y += nvkm/subdev/therm/fantog.o
6 nvkm-y += nvkm/subdev/therm/ic.o
7 nvkm-y += nvkm/subdev/therm/temp.o
8 nvkm-y += nvkm/subdev/therm/nv40.o
9 nvkm-y += nvkm/subdev/therm/nv50.o
10 nvkm-y += nvkm/subdev/therm/g84.o
[all …]
Dnv40.c32 switch (therm->subdev.device->chipset) { in nv40_sensor_style()
55 struct nvkm_device *device = therm->subdev.device; in nv40_sensor_setup()
75 struct nvkm_device *device = therm->subdev.device; in nv40_temp_get()
108 struct nvkm_subdev *subdev = &therm->subdev; in nv40_fan_pwm_ctrl() local
109 struct nvkm_device *device = subdev->device; in nv40_fan_pwm_ctrl()
114 nvkm_error(subdev, "unknown pwm ctrl for gpio %d\n", line); in nv40_fan_pwm_ctrl()
123 struct nvkm_subdev *subdev = &therm->subdev; in nv40_fan_pwm_get() local
124 struct nvkm_device *device = subdev->device; in nv40_fan_pwm_get()
141 nvkm_error(subdev, "unknown pwm ctrl for gpio %d\n", line); in nv40_fan_pwm_get()
151 struct nvkm_subdev *subdev = &therm->subdev; in nv40_fan_pwm_set() local
[all …]
Dbase.c91 struct nvkm_subdev *subdev = &therm->subdev; in nvkm_therm_update() local
92 struct nvkm_timer *tmr = subdev->device->timer; in nvkm_therm_update()
138 nvkm_debug(subdev, "FAN target request: %d%%\n", duty); in nvkm_therm_update()
146 struct nvkm_subdev *subdev = &therm->subdev; in nvkm_therm_cstate() local
149 nvkm_debug(subdev, "default fan speed -> %d%%\n", fan); in nvkm_therm_cstate()
167 struct nvkm_subdev *subdev = &therm->subdev; in nvkm_therm_fan_mode() local
168 struct nvkm_device *device = subdev->device; in nvkm_therm_fan_mode()
190 nvkm_debug(subdev, "fan management: %s\n", name[mode]); in nvkm_therm_fan_mode()
285 nvkm_therm_intr(struct nvkm_subdev *subdev) in nvkm_therm_intr() argument
287 struct nvkm_therm *therm = nvkm_therm(subdev); in nvkm_therm_intr()
[all …]
Dg84.c32 struct nvkm_device *device = therm->subdev.device; in g84_temp_get()
43 struct nvkm_device *device = therm->subdev.device; in g84_sensor_setup()
57 struct nvkm_subdev *subdev = &therm->subdev; in g84_therm_program_alarms() local
58 struct nvkm_device *device = subdev->device; in g84_therm_program_alarms()
80 nvkm_debug(subdev, in g84_therm_program_alarms()
100 struct nvkm_device *device = therm->subdev.device; in g84_therm_threshold_hyst_emulation()
141 struct nvkm_subdev *subdev = &therm->subdev; in g84_therm_intr() local
142 struct nvkm_device *device = subdev->device; in g84_therm_intr()
184 nvkm_error(subdev, "intr %08x\n", intr); in g84_therm_intr()
196 struct nvkm_device *device = therm->subdev.device; in g84_therm_fini()
Dgf119.c29 struct nvkm_subdev *subdev = &therm->subdev; in pwm_info() local
30 struct nvkm_device *device = subdev->device; in pwm_info()
48 nvkm_error(subdev, "GPIO %d unknown PWM: %08x\n", line, gpio); in pwm_info()
55 struct nvkm_device *device = therm->subdev.device; in gf119_fan_pwm_ctrl()
69 struct nvkm_device *device = therm->subdev.device; in gf119_fan_pwm_get()
91 struct nvkm_device *device = therm->subdev.device; in gf119_fan_pwm_set()
108 struct nvkm_device *device = therm->subdev.device; in gf119_fan_pwm_clock()
121 struct nvkm_device *device = therm->subdev.device; in gf119_therm_init()
Dfan.c35 struct nvkm_subdev *subdev = &therm->subdev; in nvkm_fan_update() local
36 struct nvkm_timer *tmr = subdev->device->timer; in nvkm_fan_update()
48 nvkm_debug(subdev, "FAN target: %d\n", target); in nvkm_fan_update()
73 nvkm_debug(subdev, "FAN update: %d\n", duty); in nvkm_fan_update()
126 struct nvkm_device *device = therm->subdev.device; in nvkm_therm_fan_sense()
216 struct nvkm_timer *tmr = therm->subdev.device->timer; in nvkm_therm_fan_fini()
225 struct nvkm_subdev *subdev = &therm->subdev; in nvkm_therm_fan_ctor() local
226 struct nvkm_device *device = subdev->device; in nvkm_therm_fan_ctor()
237 nvkm_debug(subdev, "GPIO_FAN is in input mode\n"); in nvkm_therm_fan_ctor()
253 nvkm_debug(subdev, "FAN control: %s\n", therm->fan->type); in nvkm_therm_fan_ctor()
[all …]
Dnv50.c30 struct nvkm_subdev *subdev = &therm->subdev; in pwm_info() local
47 nvkm_error(subdev, "unknown pwm ctrl for gpio %d\n", *line); in pwm_info()
57 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_ctrl()
68 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_get()
85 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_set()
98 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_clock()
123 struct nvkm_device *device = therm->subdev.device; in nv50_sensor_setup()
131 struct nvkm_device *device = therm->subdev.device; in nv50_temp_get()
Dtemp.c84 struct nvkm_subdev *subdev = &therm->subdev; in nvkm_therm_sensor_event() local
95 nvkm_info(subdev, in nvkm_therm_sensor_event()
99 nvkm_info(subdev, "temperature (%i C) hit the '%s' threshold\n", in nvkm_therm_sensor_event()
167 struct nvkm_timer *tmr = therm->subdev.device->timer; in alarm_timer_callback()
197 nvkm_debug(&therm->subdev, in nvkm_therm_program_alarms_polling()
221 struct nvkm_timer *tmr = therm->subdev.device->timer; in nvkm_therm_sensor_fini()
235 nvkm_debug(&therm->subdev, "internal sensor: %s\n", sensor_avail); in nvkm_therm_sensor_preinit()
241 struct nvkm_subdev *subdev = &therm->subdev; in nvkm_therm_sensor_ctor() local
242 struct nvkm_bios *bios = subdev->device->bios; in nvkm_therm_sensor_ctor()
249 nvkm_error(subdev, "nvbios_therm_sensor_parse failed\n"); in nvkm_therm_sensor_ctor()
Dgm107.c36 struct nvkm_device *device = therm->subdev.device; in gm107_fan_pwm_get()
45 struct nvkm_device *device = therm->subdev.device; in gm107_fan_pwm_set()
54 return therm->subdev.device->crystal * 1000; in gm107_fan_pwm_clock()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
Dgk20a.c22 #define gk20a_pmu(p) container_of((p), struct gk20a_pmu, base.subdev)
54 struct nvkm_clk *clk = pmu->base.subdev.device->clk; in gk20a_pmu_dvfs_target()
62 struct nvkm_clk *clk = pmu->base.subdev.device->clk; in gk20a_pmu_dvfs_get_cur_state()
73 struct nvkm_clk *clk = pmu->base.subdev.device->clk; in gk20a_pmu_dvfs_get_target_state()
88 nvkm_trace(&pmu->base.subdev, "cur level = %d, new level = %d\n", in gk20a_pmu_dvfs_get_target_state()
103 struct nvkm_device *device = pmu->base.subdev.device; in gk20a_pmu_dvfs_get_dev_status()
112 struct nvkm_device *device = pmu->base.subdev.device; in gk20a_pmu_dvfs_reset_dev_status()
124 struct nvkm_subdev *subdev = &pmu->base.subdev; in gk20a_pmu_dvfs_work() local
125 struct nvkm_device *device = subdev->device; in gk20a_pmu_dvfs_work()
141 nvkm_warn(subdev, "failed to get device status\n"); in gk20a_pmu_dvfs_work()
[all …]
Dbase.c39 struct nvkm_subdev *subdev = &pmu->subdev; in nvkm_pmu_send() local
40 struct nvkm_device *device = subdev->device; in nvkm_pmu_send()
57 mutex_lock(&subdev->mutex); in nvkm_pmu_send()
84 mutex_unlock(&subdev->mutex); in nvkm_pmu_send()
94 struct nvkm_subdev *subdev = &pmu->subdev; in nvkm_pmu_recv() local
95 struct nvkm_device *device = subdev->device; in nvkm_pmu_recv()
135 nvkm_warn(subdev, "%c%c%c%c %08x %08x %08x %08x\n", in nvkm_pmu_recv()
144 nvkm_pmu_intr(struct nvkm_subdev *subdev) in nvkm_pmu_intr() argument
146 struct nvkm_pmu *pmu = nvkm_pmu(subdev); in nvkm_pmu_intr()
147 struct nvkm_device *device = pmu->subdev.device; in nvkm_pmu_intr()
[all …]
DKbuild1 nvkm-y += nvkm/subdev/pmu/base.o
2 nvkm-y += nvkm/subdev/pmu/memx.o
3 nvkm-y += nvkm/subdev/pmu/gt215.o
4 nvkm-y += nvkm/subdev/pmu/gf100.o
5 nvkm-y += nvkm/subdev/pmu/gf119.o
6 nvkm-y += nvkm/subdev/pmu/gk104.o
7 nvkm-y += nvkm/subdev/pmu/gk110.o
8 nvkm-y += nvkm/subdev/pmu/gk208.o
9 nvkm-y += nvkm/subdev/pmu/gk20a.o
10 nvkm-y += nvkm/subdev/pmu/gm107.o
Dmemx.c19 struct nvkm_device *device = memx->pmu->subdev.device; in memx_out()
45 struct nvkm_device *device = pmu->subdev.device; in nvkm_memx_init()
75 struct nvkm_subdev *subdev = &pmu->subdev; in nvkm_memx_fini() local
76 struct nvkm_device *device = subdev->device; in nvkm_memx_fini()
92 nvkm_debug(subdev, "Exec took %uns, PMU_IN %08x\n", in nvkm_memx_fini()
101 nvkm_debug(&memx->pmu->subdev, "R[%06x] = %08x\n", addr, data); in nvkm_memx_wr32()
109 nvkm_debug(&memx->pmu->subdev, "R[%06x] & %08x == %08x, %d us\n", in nvkm_memx_wait()
118 nvkm_debug(&memx->pmu->subdev, " DELAY = %d ns\n", nsec); in nvkm_memx_nsec()
126 struct nvkm_subdev *subdev = &memx->pmu->subdev; in nvkm_memx_wait_vblank() local
127 struct nvkm_device *device = subdev->device; in nvkm_memx_wait_vblank()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Dgk104.c38 struct nvkm_device *device = fifo->engine.subdev.device; in gk104_fifo_uevent_fini()
45 struct nvkm_device *device = fifo->engine.subdev.device; in gk104_fifo_uevent_init()
54 struct nvkm_subdev *subdev = &fifo->base.engine.subdev; in gk104_fifo_runlist_update() local
55 struct nvkm_device *device = subdev->device; in gk104_fifo_runlist_update()
59 mutex_lock(&subdev->mutex); in gk104_fifo_runlist_update()
77 nvkm_error(subdev, "runlist %d update timeout\n", engine); in gk104_fifo_runlist_update()
78 mutex_unlock(&subdev->mutex); in gk104_fifo_runlist_update()
84 struct nvkm_device *device = fifo->base.engine.subdev.device; in gk104_fifo_engine()
95 struct nvkm_device *device = fifo->base.engine.subdev.device; in gk104_fifo_recover_work()
112 nvkm_subdev_fini(&engine->subdev, false); in gk104_fifo_recover_work()
[all …]
Dgf100.c38 struct nvkm_device *device = fifo->engine.subdev.device; in gf100_fifo_uevent_init()
45 struct nvkm_device *device = fifo->engine.subdev.device; in gf100_fifo_uevent_fini()
53 struct nvkm_subdev *subdev = &fifo->base.engine.subdev; in gf100_fifo_runlist_update() local
54 struct nvkm_device *device = subdev->device; in gf100_fifo_runlist_update()
58 mutex_lock(&subdev->mutex); in gf100_fifo_runlist_update()
76 nvkm_error(subdev, "runlist update timeout\n"); in gf100_fifo_runlist_update()
77 mutex_unlock(&subdev->mutex); in gf100_fifo_runlist_update()
100 struct nvkm_device *device = fifo->base.engine.subdev.device; in gf100_fifo_engine()
120 struct nvkm_device *device = fifo->base.engine.subdev.device; in gf100_fifo_recover_work()
137 nvkm_subdev_fini(&engine->subdev, false); in gf100_fifo_recover_work()
[all …]
Dnv04.c52 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv04_fifo_pause()
88 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv04_fifo_start()
137 struct nvkm_subdev *subdev = &fifo->base.engine.subdev; in nv04_fifo_cache_error() local
138 struct nvkm_device *device = subdev->device; in nv04_fifo_cache_error()
163 nvkm_error(subdev, "CACHE_ERROR - " in nv04_fifo_cache_error()
188 struct nvkm_subdev *subdev = &fifo->base.engine.subdev; in nv04_fifo_dma_pusher() local
189 struct nvkm_device *device = subdev->device; in nv04_fifo_dma_pusher()
206 nvkm_error(subdev, "DMA_PUSHER - " in nv04_fifo_dma_pusher()
222 nvkm_error(subdev, "DMA_PUSHER - ch %d [%s] get %08x put %08x " in nv04_fifo_dma_pusher()
241 struct nvkm_subdev *subdev = &fifo->base.engine.subdev; in nv04_fifo_intr() local
[all …]
Dchannv50.c34 switch (engine->subdev.index) { in nv50_fifo_chan_engine_addr()
51 struct nvkm_subdev *subdev = &fifo->base.engine.subdev; in nv50_fifo_chan_engine_fini() local
52 struct nvkm_device *device = subdev->device; in nv50_fifo_chan_engine_fini()
80 nvkm_error(subdev, "channel %d [%s] unload timeout\n", in nv50_fifo_chan_engine_fini()
106 struct nvkm_gpuobj *engn = chan->engn[engine->subdev.index]; in nv50_fifo_chan_engine_init()
133 nvkm_gpuobj_del(&chan->engn[engine->subdev.index]); in nv50_fifo_chan_engine_dtor()
142 int engn = engine->subdev.index; in nv50_fifo_chan_engine_ctor()
165 switch (object->engine->subdev.index) { in nv50_fifo_chan_object_ctor()
183 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv50_fifo_chan_fini()
197 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv50_fifo_chan_init()
[all …]
Ddmanv40.c37 switch (engine->subdev.index) { in nv40_fifo_dma_engine()
61 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv40_fifo_dma_engine_fini()
91 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv40_fifo_dma_engine_init()
99 inst = chan->engn[engine->subdev.index]->addr >> 4; in nv40_fifo_dma_engine_init()
121 nvkm_gpuobj_del(&chan->engn[engine->subdev.index]); in nv40_fifo_dma_engine_dtor()
130 const int engn = engine->subdev.index; in nv40_fifo_dma_engine_ctor()
144 struct nvkm_instmem *imem = chan->fifo->base.engine.subdev.device->imem; in nv40_fifo_dma_object_ctor()
149 switch (object->engine->subdev.index) { in nv40_fifo_dma_object_ctor()
159 mutex_lock(&chan->fifo->base.engine.subdev.mutex); in nv40_fifo_dma_object_ctor()
162 mutex_unlock(&chan->fifo->base.engine.subdev.mutex); in nv40_fifo_dma_object_ctor()
[all …]
Dchang84.c50 switch (engine->subdev.index) { in g84_fifo_chan_engine()
70 switch (engine->subdev.index) { in g84_fifo_chan_engine_addr()
95 struct nvkm_subdev *subdev = &fifo->base.engine.subdev; in g84_fifo_chan_engine_fini() local
96 struct nvkm_device *device = subdev->device; in g84_fifo_chan_engine_fini()
114 nvkm_error(subdev, "channel %d [%s] unload timeout\n", in g84_fifo_chan_engine_fini()
137 struct nvkm_gpuobj *engn = chan->engn[engine->subdev.index]; in g84_fifo_chan_engine_init()
165 int engn = engine->subdev.index; in g84_fifo_chan_engine_ctor()
181 switch (object->engine->subdev.index) { in g84_fifo_chan_object_ctor()
209 struct nvkm_device *device = fifo->base.engine.subdev.device; in g84_fifo_chan_init()
236 struct nvkm_device *device = fifo->base.engine.subdev.device; in g84_fifo_chan_ctor()
Dgpfifogf100.c37 switch (engine->subdev.index) { in gf100_fifo_gpfifo_engine_addr()
57 struct nvkm_subdev *subdev = &chan->fifo->base.engine.subdev; in gf100_fifo_gpfifo_engine_fini() local
58 struct nvkm_device *device = subdev->device; in gf100_fifo_gpfifo_engine_fini()
67 nvkm_error(subdev, "channel %d [%s] kick timeout\n", in gf100_fifo_gpfifo_engine_fini()
93 u64 addr = chan->engn[engine->subdev.index].vma.offset; in gf100_fifo_gpfifo_engine_init()
108 nvkm_gpuobj_unmap(&chan->engn[engine->subdev.index].vma); in gf100_fifo_gpfifo_engine_dtor()
109 nvkm_gpuobj_del(&chan->engn[engine->subdev.index].inst); in gf100_fifo_gpfifo_engine_dtor()
118 int engn = engine->subdev.index; in gf100_fifo_gpfifo_engine_ctor()
137 struct nvkm_device *device = fifo->base.engine.subdev.device; in gf100_fifo_gpfifo_fini()
156 struct nvkm_device *device = fifo->base.engine.subdev.device; in gf100_fifo_gpfifo_init()
[all …]
Dgpfifogk104.c39 struct nvkm_subdev *subdev = &fifo->base.engine.subdev; in gk104_fifo_gpfifo_kick() local
40 struct nvkm_device *device = subdev->device; in gk104_fifo_gpfifo_kick()
48 nvkm_error(subdev, "channel %d [%s] kick timeout\n", in gk104_fifo_gpfifo_kick()
59 switch (engine->subdev.index) { in gk104_fifo_gpfifo_engine_addr()
106 u64 addr = chan->engn[engine->subdev.index].vma.offset; in gk104_fifo_gpfifo_engine_init()
121 nvkm_gpuobj_unmap(&chan->engn[engine->subdev.index].vma); in gk104_fifo_gpfifo_engine_dtor()
122 nvkm_gpuobj_del(&chan->engn[engine->subdev.index].inst); in gk104_fifo_gpfifo_engine_dtor()
131 int engn = engine->subdev.index; in gk104_fifo_gpfifo_engine_ctor()
150 struct nvkm_device *device = fifo->base.engine.subdev.device; in gk104_fifo_gpfifo_fini()
167 struct nvkm_device *device = fifo->base.engine.subdev.device; in gk104_fifo_gpfifo_init()
[all …]
Ddmanv04.c38 struct nvkm_instmem *imem = chan->fifo->base.engine.subdev.device->imem; in nv04_fifo_dma_object_dtor()
47 struct nvkm_instmem *imem = chan->fifo->base.engine.subdev.device->imem; in nv04_fifo_dma_object_ctor()
52 switch (object->engine->subdev.index) { in nv04_fifo_dma_object_ctor()
62 mutex_lock(&chan->fifo->base.engine.subdev.mutex); in nv04_fifo_dma_object_ctor()
65 mutex_unlock(&chan->fifo->base.engine.subdev.mutex); in nv04_fifo_dma_object_ctor()
74 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv04_fifo_dma_fini()
125 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv04_fifo_dma_init()
138 struct nvkm_instmem *imem = fifo->base.engine.subdev.device->imem; in nv04_fifo_dma_dtor()
168 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv04_fifo_dma_new()
Dnv50.c32 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv50_fifo_runlist_update_locked()
54 mutex_lock(&fifo->base.engine.subdev.mutex); in nv50_fifo_runlist_update()
56 mutex_unlock(&fifo->base.engine.subdev.mutex); in nv50_fifo_runlist_update()
63 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv50_fifo_oneinit()
79 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv50_fifo_init()
Dchan.c45 struct nvkm_fifo_engn *engn = &chan->engn[engine->subdev.index]; in nvkm_fifo_chan_child_fini()
46 const char *name = nvkm_subdev_name[engine->subdev.index]; in nvkm_fifo_chan_child_fini()
78 struct nvkm_fifo_engn *engn = &chan->engn[engine->subdev.index]; in nvkm_fifo_chan_child_init()
79 const char *name = nvkm_subdev_name[engine->subdev.index]; in nvkm_fifo_chan_child_init()
111 struct nvkm_fifo_engn *engn = &chan->engn[engine->subdev.index]; in nvkm_fifo_chan_child_del()
121 atomic_dec(&chan->vm->engref[engine->subdev.index]); in nvkm_fifo_chan_child_del()
138 struct nvkm_fifo_engn *engn = &chan->engn[engine->subdev.index]; in nvkm_fifo_chan_child_new()
155 atomic_inc(&chan->vm->engref[engine->subdev.index]); in nvkm_fifo_chan_child_new()
206 struct nvkm_device *device = fifo->engine.subdev.device; in nvkm_fifo_chan_child_get()
355 struct nvkm_device *device = fifo->engine.subdev.device; in nvkm_fifo_chan_ctor()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dnv50.c33 return nvkm_rd32(gr->engine.subdev.device, 0x1540); in nv50_gr_units()
44 int ret = nvkm_gpuobj_new(object->engine->subdev.device, 16, in nv50_gr_object_bind()
71 int ret = nvkm_gpuobj_new(gr->base.engine.subdev.device, gr->size, in nv50_gr_chan_bind()
75 nv50_grctx_fill(gr->base.engine.subdev.device, *pgpuobj); in nv50_gr_chan_bind()
240 struct nvkm_subdev *subdev = &gr->base.engine.subdev; in nv50_gr_prop_trap() local
241 struct nvkm_device *device = subdev->device; in nv50_gr_prop_trap()
255 nvkm_error(subdev, "TRAP_PROP - TP %d - CUDA_FAULT - Global read fault at address %02x%08x\n", in nv50_gr_prop_trap()
260 nvkm_error(subdev, "TRAP_PROP - TP %d - CUDA_FAULT - Global write fault at address %02x%08x\n", in nv50_gr_prop_trap()
264 nvkm_error(subdev, "TRAP_PROP - TP %d - Unknown CUDA fault at address %02x%08x\n", in nv50_gr_prop_trap()
271 nvkm_error(subdev, "TRAP_PROP - TP %d - %08x [%s] - " in nv50_gr_prop_trap()
[all …]
Dgf100.c46 struct nvkm_device *device = gr->base.engine.subdev.device; in gf100_gr_zbc_clear_color()
62 struct nvkm_ltc *ltc = gr->base.engine.subdev.device->ltc; in gf100_gr_zbc_color_get()
97 struct nvkm_device *device = gr->base.engine.subdev.device; in gf100_gr_zbc_clear_depth()
109 struct nvkm_ltc *ltc = gr->base.engine.subdev.device->ltc; in gf100_gr_zbc_depth_get()
287 ret = nvkm_gpuobj_new(gr->base.engine.subdev.device, gr->size, in gf100_gr_chan_bind()
351 struct nvkm_device *device = gr->base.engine.subdev.device; in gf100_gr_chan_new()
684 struct nvkm_ltc *ltc = gr->base.engine.subdev.device->ltc; in gf100_gr_zbc_init()
710 struct nvkm_subdev *subdev = &gr->base.engine.subdev; in gf100_gr_wait_idle() local
711 struct nvkm_device *device = subdev->device; in gf100_gr_wait_idle()
730 nvkm_error(subdev, in gf100_gr_wait_idle()
[all …]
Dg84.c96 struct nvkm_subdev *subdev = &gr->base.engine.subdev; in nvkm_gr_vstatus_print() local
109 nvkm_error(subdev, "PGRAPH_VSTATUS%d: %08x [%s]\n", r, stat, msg); in nvkm_gr_vstatus_print()
116 struct nvkm_subdev *subdev = &gr->base.engine.subdev; in g84_gr_tlb_flush() local
117 struct nvkm_device *device = subdev->device; in g84_gr_tlb_flush()
150 nvkm_error(subdev, "PGRAPH TLB flush idle timeout fail\n"); in g84_gr_tlb_flush()
154 nvkm_error(subdev, "PGRAPH_STATUS %08x [%s]\n", tmp, status); in g84_gr_tlb_flush()
Dnv40.c36 return nvkm_rd32(gr->engine.subdev.device, 0x1540); in nv40_gr_units()
47 int ret = nvkm_gpuobj_new(object->engine->subdev.device, 20, align, in nv40_gr_object_bind()
79 int ret = nvkm_gpuobj_new(gr->base.engine.subdev.device, gr->size, in nv40_gr_chan_bind()
84 nv40_grctx_fill(gr->base.engine.subdev.device, *pgpuobj); in nv40_gr_chan_bind()
96 struct nvkm_subdev *subdev = &gr->base.engine.subdev; in nv40_gr_chan_fini() local
97 struct nvkm_device *device = subdev->device; in nv40_gr_chan_fini()
114 nvkm_warn(subdev, "ctxprog timeout %08x\n", insn); in nv40_gr_chan_fini()
176 struct nvkm_device *device = gr->base.engine.subdev.device; in nv40_gr_tile()
236 struct nvkm_subdev *subdev = &gr->base.engine.subdev; in nv40_gr_intr() local
237 struct nvkm_device *device = subdev->device; in nv40_gr_intr()
[all …]
Dnv10.c433 struct nvkm_device *device = chan->object.engine->subdev.device; in nv17_gr_mthd_lma_window()
506 struct nvkm_device *device = chan->object.engine->subdev.device; in nv17_gr_mthd_lma_enable()
549 struct nvkm_device *device = gr->base.engine.subdev.device; in nv10_gr_channel()
564 struct nvkm_device *device = gr->base.engine.subdev.device; in nv10_gr_save_pipe()
583 struct nvkm_device *device = gr->base.engine.subdev.device; in nv10_gr_load_pipe()
633 struct nvkm_subdev *subdev = &gr->base.engine.subdev; in nv10_gr_create_pipe() local
646 nvkm_error(subdev, "incomplete pipe init for 0x%x : %p/%p\n", \ in nv10_gr_create_pipe()
788 struct nvkm_subdev *subdev = &gr->base.engine.subdev; in nv10_gr_ctx_regs_find_offset() local
794 nvkm_error(subdev, "unknown offset nv10_ctx_regs %d\n", reg); in nv10_gr_ctx_regs_find_offset()
801 struct nvkm_subdev *subdev = &gr->base.engine.subdev; in nv17_gr_ctx_regs_find_offset() local
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
DKbuild1 nvkm-y += nvkm/subdev/clk/base.o
2 nvkm-y += nvkm/subdev/clk/nv04.o
3 nvkm-y += nvkm/subdev/clk/nv40.o
4 nvkm-y += nvkm/subdev/clk/nv50.o
5 nvkm-y += nvkm/subdev/clk/g84.o
6 nvkm-y += nvkm/subdev/clk/gt215.o
7 nvkm-y += nvkm/subdev/clk/mcp77.o
8 nvkm-y += nvkm/subdev/clk/gf100.o
9 nvkm-y += nvkm/subdev/clk/gk104.o
10 nvkm-y += nvkm/subdev/clk/gk20a.o
[all …]
Dmcp77.c44 struct nvkm_device *device = clk->base.subdev.device; in read_div()
51 struct nvkm_device *device = clk->base.subdev.device; in read_pll()
84 struct nvkm_subdev *subdev = &clk->base.subdev; in mcp77_clk_read() local
85 struct nvkm_device *device = subdev->device; in mcp77_clk_read()
160 nvkm_debug(subdev, "unknown clock source %d %08x\n", src, mast); in mcp77_clk_read()
168 struct nvkm_subdev *subdev = &clk->base.subdev; in calc_pll() local
172 ret = nvbios_pll_parse(subdev->device->bios, reg, &pll); in calc_pll()
181 return nv04_pll_calc(subdev, &pll, clock, N, M, NULL, NULL, P); in calc_pll()
209 struct nvkm_subdev *subdev = &clk->base.subdev; in mcp77_clk_calc() local
273 nvkm_debug(subdev, "nvpll: %08x %08x %08x\n", in mcp77_clk_calc()
[all …]
Dbase.c43 struct nvkm_bios *bios = clk->subdev.device->bios; in nvkm_clk_adjust()
80 struct nvkm_subdev *subdev = &clk->subdev; in nvkm_cstate_prog() local
81 struct nvkm_device *device = subdev->device; in nvkm_cstate_prog()
96 nvkm_error(subdev, "failed to raise fan speed: %d\n", ret); in nvkm_cstate_prog()
104 nvkm_error(subdev, "failed to raise voltage: %d\n", ret); in nvkm_cstate_prog()
118 nvkm_error(subdev, "failed to lower voltage: %d\n", ret); in nvkm_cstate_prog()
124 nvkm_error(subdev, "failed to lower fan speed: %d\n", ret); in nvkm_cstate_prog()
140 struct nvkm_bios *bios = clk->subdev.device->bios; in nvkm_cstate_new()
177 struct nvkm_subdev *subdev = &clk->subdev; in nvkm_pstate_prog() local
178 struct nvkm_ram *ram = subdev->device->fb->ram; in nvkm_pstate_prog()
[all …]
Dnv50.c34 struct nvkm_device *device = clk->base.subdev.device; in read_div()
54 struct nvkm_subdev *subdev = &clk->base.subdev; in read_pll_src() local
55 struct nvkm_device *device = subdev->device; in read_pll_src()
69 nvkm_error(subdev, "ref: bad pll %06x\n", base); in read_pll_src()
97 nvkm_error(subdev, "ref: bad pll %06x\n", base); in read_pll_src()
127 struct nvkm_subdev *subdev = &clk->base.subdev; in read_pll_ref() local
128 struct nvkm_device *device = subdev->device; in read_pll_ref()
147 nvkm_error(subdev, "bad pll %06x\n", base); in read_pll_ref()
160 struct nvkm_device *device = clk->base.subdev.device; in read_pll()
195 struct nvkm_subdev *subdev = &clk->base.subdev; in nv50_clk_read() local
[all …]
Dgk20a.c127 struct nvkm_device *device = clk->base.subdev.device; in gk20a_pllg_read_mnp()
152 struct nvkm_subdev *subdev = &clk->base.subdev; in gk20a_pllg_calc_mnp() local
200 nvkm_debug(subdev, "low_PL %d(div%d), high_PL %d(div%d)", low_pl, in gk20a_pllg_calc_mnp()
251 nvkm_debug(subdev, in gk20a_pllg_calc_mnp()
261 nvkm_debug(subdev, in gk20a_pllg_calc_mnp()
270 struct nvkm_subdev *subdev = &clk->base.subdev; in gk20a_pllg_slide() local
271 struct nvkm_device *device = subdev->device; in gk20a_pllg_slide()
319 nvkm_error(subdev, "gpcpll dynamic ramp timeout\n"); in gk20a_pllg_slide()
329 struct nvkm_device *device = clk->base.subdev.device; in _gk20a_pllg_enable()
337 struct nvkm_device *device = clk->base.subdev.device; in _gk20a_pllg_disable()
[all …]
Dnv40.c42 struct nvkm_device *device = clk->base.subdev.device; in read_pll_1()
58 struct nvkm_device *device = clk->base.subdev.device; in read_pll_2()
100 struct nvkm_subdev *subdev = &clk->base.subdev; in nv40_clk_read() local
101 struct nvkm_device *device = subdev->device; in nv40_clk_read()
119 nvkm_debug(subdev, "unknown clock source %d %08x\n", src, mast); in nv40_clk_read()
127 struct nvkm_subdev *subdev = &clk->base.subdev; in nv40_clk_calc_pll() local
131 ret = nvbios_pll_parse(subdev->device->bios, reg, &pll); in nv40_clk_calc_pll()
138 ret = nv04_pll_calc(subdev, &pll, khz, N1, M1, N2, M2, log2P); in nv40_clk_calc_pll()
189 struct nvkm_device *device = clk->base.subdev.device; in nv40_clk_prog()
Dgk104.c52 struct nvkm_device *device = clk->base.subdev.device; in read_vco()
62 struct nvkm_device *device = clk->base.subdev.device; in read_pll()
108 struct nvkm_device *device = clk->base.subdev.device; in read_div()
135 struct nvkm_device *device = clk->base.subdev.device; in read_mem()
147 struct nvkm_device *device = clk->base.subdev.device; in read_clk()
192 struct nvkm_subdev *subdev = &clk->base.subdev; in gk104_clk_read() local
193 struct nvkm_device *device = subdev->device; in gk104_clk_read()
217 nvkm_error(subdev, "invalid clock source %d\n", src); in gk104_clk_read()
265 struct nvkm_subdev *subdev = &clk->base.subdev; in calc_pll() local
266 struct nvkm_bios *bios = subdev->device->bios; in calc_pll()
[all …]
Dgt215.c45 struct nvkm_device *device = clk->base.subdev.device; in read_vco()
63 struct nvkm_device *device = clk->base.subdev.device; in read_clk()
110 struct nvkm_device *device = clk->base.subdev.device; in read_pll()
143 struct nvkm_subdev *subdev = &clk->base.subdev; in gt215_clk_read() local
144 struct nvkm_device *device = subdev->device; in gt215_clk_read()
172 nvkm_error(subdev, "unknown HOST clock source %d\n", hsrc); in gt215_clk_read()
176 nvkm_error(subdev, "invalid clock source %d\n", src); in gt215_clk_read()
236 struct nvkm_subdev *subdev = &clk->base.subdev; in gt215_pll_info() local
252 ret = nvbios_pll_parse(subdev->device->bios, pll, &limits); in gt215_pll_info()
260 ret = gt215_pll_calc(subdev, &limits, khz, &N, NULL, &M, &P); in gt215_pll_info()
[all …]
Dgf100.c51 struct nvkm_device *device = clk->base.subdev.device; in read_vco()
61 struct nvkm_device *device = clk->base.subdev.device; in read_pll()
100 struct nvkm_device *device = clk->base.subdev.device; in read_div()
127 struct nvkm_device *device = clk->base.subdev.device; in read_clk()
153 struct nvkm_subdev *subdev = &clk->base.subdev; in gf100_clk_read() local
154 struct nvkm_device *device = subdev->device; in gf100_clk_read()
196 nvkm_error(subdev, "invalid clock source %d\n", src); in gf100_clk_read()
244 struct nvkm_subdev *subdev = &clk->base.subdev; in calc_pll() local
245 struct nvkm_bios *bios = subdev->device->bios; in calc_pll()
257 ret = gt215_pll_calc(subdev, &limits, freq, &N, NULL, &M, &P); in calc_pll()
[all …]
Dpllnv04.c29 getMNP_single(struct nvkm_subdev *subdev, struct nvbios_pll *info, int clk, in getMNP_single() argument
40 struct nvkm_bios *bios = subdev->device->bios; in getMNP_single()
128 getMNP_double(struct nvkm_subdev *subdev, struct nvbios_pll *info, int clk, in getMNP_double() argument
139 int chip_version = subdev->device->bios->version.chip; in getMNP_double()
227 nv04_pll_calc(struct nvkm_subdev *subdev, struct nvbios_pll *info, u32 freq, in nv04_pll_calc() argument
233 ret = getMNP_single(subdev, info, freq, N1, M1, P); in nv04_pll_calc()
239 ret = getMNP_double(subdev, info, freq, N1, M1, N2, M2, P); in nv04_pll_calc()
243 nvkm_error(subdev, "unable to compute acceptable pll values\n"); in nv04_pll_calc()
/linux-4.4.14/drivers/media/platform/vsp1/
Dvsp1_lut.c50 static long lut_ioctl(struct v4l2_subdev *subdev, unsigned int cmd, void *arg) in lut_ioctl() argument
52 struct vsp1_lut *lut = to_lut(subdev); in lut_ioctl()
68 static int lut_s_stream(struct v4l2_subdev *subdev, int enable) in lut_s_stream() argument
70 struct vsp1_lut *lut = to_lut(subdev); in lut_s_stream()
84 static int lut_enum_mbus_code(struct v4l2_subdev *subdev, in lut_enum_mbus_code() argument
93 struct vsp1_lut *lut = to_lut(subdev); in lut_enum_mbus_code()
116 static int lut_enum_frame_size(struct v4l2_subdev *subdev, in lut_enum_frame_size() argument
120 struct vsp1_lut *lut = to_lut(subdev); in lut_enum_frame_size()
147 static int lut_get_format(struct v4l2_subdev *subdev, struct v4l2_subdev_pad_config *cfg, in lut_get_format() argument
150 struct vsp1_lut *lut = to_lut(subdev); in lut_get_format()
[all …]
Dvsp1_hsit.c38 static int hsit_s_stream(struct v4l2_subdev *subdev, int enable) in hsit_s_stream() argument
40 struct vsp1_hsit *hsit = to_hsit(subdev); in hsit_s_stream()
57 static int hsit_enum_mbus_code(struct v4l2_subdev *subdev, in hsit_enum_mbus_code() argument
61 struct vsp1_hsit *hsit = to_hsit(subdev); in hsit_enum_mbus_code()
75 static int hsit_enum_frame_size(struct v4l2_subdev *subdev, in hsit_enum_frame_size() argument
79 struct vsp1_hsit *hsit = to_hsit(subdev); in hsit_enum_frame_size()
106 static int hsit_get_format(struct v4l2_subdev *subdev, in hsit_get_format() argument
110 struct vsp1_hsit *hsit = to_hsit(subdev); in hsit_get_format()
118 static int hsit_set_format(struct v4l2_subdev *subdev, in hsit_set_format() argument
122 struct vsp1_hsit *hsit = to_hsit(subdev); in hsit_set_format()
[all …]
Dvsp1_lif.c43 static int lif_s_stream(struct v4l2_subdev *subdev, int enable) in lif_s_stream() argument
46 struct vsp1_lif *lif = to_lif(subdev); in lif_s_stream()
76 static int lif_enum_mbus_code(struct v4l2_subdev *subdev, in lif_enum_mbus_code() argument
84 struct vsp1_lif *lif = to_lif(subdev); in lif_enum_mbus_code()
108 static int lif_enum_frame_size(struct v4l2_subdev *subdev, in lif_enum_frame_size() argument
112 struct vsp1_lif *lif = to_lif(subdev); in lif_enum_frame_size()
136 static int lif_get_format(struct v4l2_subdev *subdev, struct v4l2_subdev_pad_config *cfg, in lif_get_format() argument
139 struct vsp1_lif *lif = to_lif(subdev); in lif_get_format()
147 static int lif_set_format(struct v4l2_subdev *subdev, struct v4l2_subdev_pad_config *cfg, in lif_set_format() argument
150 struct vsp1_lif *lif = to_lif(subdev); in lif_set_format()
[all …]
Dvsp1_bru.c70 static int bru_s_stream(struct v4l2_subdev *subdev, int enable) in bru_s_stream() argument
72 struct vsp1_pipeline *pipe = to_vsp1_pipeline(&subdev->entity); in bru_s_stream()
73 struct vsp1_bru *bru = to_bru(subdev); in bru_s_stream()
185 static int bru_enum_mbus_code(struct v4l2_subdev *subdev, in bru_enum_mbus_code() argument
193 struct vsp1_bru *bru = to_bru(subdev); in bru_enum_mbus_code()
213 static int bru_enum_frame_size(struct v4l2_subdev *subdev, in bru_enum_frame_size() argument
238 return v4l2_subdev_get_try_crop(&bru->entity.subdev, cfg, pad); in bru_get_compose()
246 static int bru_get_format(struct v4l2_subdev *subdev, struct v4l2_subdev_pad_config *cfg, in bru_get_format() argument
249 struct vsp1_bru *bru = to_bru(subdev); in bru_get_format()
285 static int bru_set_format(struct v4l2_subdev *subdev, struct v4l2_subdev_pad_config *cfg, in bru_set_format() argument
[all …]
Dvsp1_rwpf.h45 static inline struct vsp1_rwpf *to_rwpf(struct v4l2_subdev *subdev) in to_rwpf() argument
47 return container_of(subdev, struct vsp1_rwpf, entity.subdev); in to_rwpf()
53 int vsp1_rwpf_enum_mbus_code(struct v4l2_subdev *subdev,
56 int vsp1_rwpf_enum_frame_size(struct v4l2_subdev *subdev,
59 int vsp1_rwpf_get_format(struct v4l2_subdev *subdev, struct v4l2_subdev_pad_config *cfg,
61 int vsp1_rwpf_set_format(struct v4l2_subdev *subdev, struct v4l2_subdev_pad_config *cfg,
63 int vsp1_rwpf_get_selection(struct v4l2_subdev *subdev,
66 int vsp1_rwpf_set_selection(struct v4l2_subdev *subdev,
Dvsp1_uds.c117 static int uds_s_stream(struct v4l2_subdev *subdev, int enable) in uds_s_stream() argument
119 struct vsp1_uds *uds = to_uds(subdev); in uds_s_stream()
171 static int uds_enum_mbus_code(struct v4l2_subdev *subdev, in uds_enum_mbus_code() argument
179 struct vsp1_uds *uds = to_uds(subdev); in uds_enum_mbus_code()
203 static int uds_enum_frame_size(struct v4l2_subdev *subdev, in uds_enum_frame_size() argument
207 struct vsp1_uds *uds = to_uds(subdev); in uds_enum_frame_size()
231 static int uds_get_format(struct v4l2_subdev *subdev, struct v4l2_subdev_pad_config *cfg, in uds_get_format() argument
234 struct vsp1_uds *uds = to_uds(subdev); in uds_get_format()
278 static int uds_set_format(struct v4l2_subdev *subdev, struct v4l2_subdev_pad_config *cfg, in uds_set_format() argument
281 struct vsp1_uds *uds = to_uds(subdev); in uds_set_format()
[all …]
Dvsp1_sru.c124 static int sru_s_stream(struct v4l2_subdev *subdev, int enable) in sru_s_stream() argument
126 struct vsp1_sru *sru = to_sru(subdev); in sru_s_stream()
169 static int sru_enum_mbus_code(struct v4l2_subdev *subdev, in sru_enum_mbus_code() argument
177 struct vsp1_sru *sru = to_sru(subdev); in sru_enum_mbus_code()
200 static int sru_enum_frame_size(struct v4l2_subdev *subdev, in sru_enum_frame_size() argument
204 struct vsp1_sru *sru = to_sru(subdev); in sru_enum_frame_size()
234 static int sru_get_format(struct v4l2_subdev *subdev, struct v4l2_subdev_pad_config *cfg, in sru_get_format() argument
237 struct vsp1_sru *sru = to_sru(subdev); in sru_get_format()
296 static int sru_set_format(struct v4l2_subdev *subdev, struct v4l2_subdev_pad_config *cfg, in sru_set_format() argument
299 struct vsp1_sru *sru = to_sru(subdev); in sru_set_format()
[all …]
Dvsp1_entity.c49 if (!entity->subdev.ctrl_handler) in vsp1_entity_set_streaming()
52 ret = v4l2_ctrl_handler_setup(entity->subdev.ctrl_handler); in vsp1_entity_set_streaming()
73 return v4l2_subdev_get_try_format(&entity->subdev, cfg, pad); in vsp1_entity_get_pad_format()
90 void vsp1_entity_init_formats(struct v4l2_subdev *subdev, in vsp1_entity_init_formats() argument
96 for (pad = 0; pad < subdev->entity.num_pads - 1; ++pad) { in vsp1_entity_init_formats()
103 v4l2_subdev_call(subdev, pad, set_fmt, cfg, &format); in vsp1_entity_init_formats()
107 static int vsp1_entity_open(struct v4l2_subdev *subdev, in vsp1_entity_open() argument
110 vsp1_entity_init_formats(subdev, fh->pad); in vsp1_entity_open()
132 source = container_of(local->entity, struct vsp1_entity, subdev.entity); in vsp1_entity_link_setup()
222 return media_entity_init(&entity->subdev.entity, num_pads, in vsp1_entity_init()
[all …]
Dvsp1_rpf.c59 pipe = to_vsp1_pipeline(&rpf->entity.subdev.entity); in rpf_s_ctrl()
75 static int rpf_s_stream(struct v4l2_subdev *subdev, int enable) in rpf_s_stream() argument
77 struct vsp1_rwpf *rpf = to_rwpf(subdev); in rpf_s_stream()
221 struct v4l2_subdev *subdev; in vsp1_rpf_create() local
241 subdev = &rpf->entity.subdev; in vsp1_rpf_create()
242 v4l2_subdev_init(subdev, &rpf_ops); in vsp1_rpf_create()
244 subdev->entity.ops = &vsp1_media_ops; in vsp1_rpf_create()
245 subdev->internal_ops = &vsp1_subdev_internal_ops; in vsp1_rpf_create()
246 snprintf(subdev->name, sizeof(subdev->name), "%s rpf.%u", in vsp1_rpf_create()
248 v4l2_set_subdevdata(subdev, rpf); in vsp1_rpf_create()
[all …]
Dvsp1_wpf.c74 static int wpf_s_stream(struct v4l2_subdev *subdev, int enable) in wpf_s_stream() argument
76 struct vsp1_pipeline *pipe = to_vsp1_pipeline(&subdev->entity); in wpf_s_stream()
77 struct vsp1_rwpf *wpf = to_rwpf(subdev); in wpf_s_stream()
220 struct v4l2_subdev *subdev; in vsp1_wpf_create() local
241 subdev = &wpf->entity.subdev; in vsp1_wpf_create()
242 v4l2_subdev_init(subdev, &wpf_ops); in vsp1_wpf_create()
244 subdev->entity.ops = &vsp1_media_ops; in vsp1_wpf_create()
245 subdev->internal_ops = &vsp1_subdev_internal_ops; in vsp1_wpf_create()
246 snprintf(subdev->name, sizeof(subdev->name), "%s wpf.%u", in vsp1_wpf_create()
248 v4l2_set_subdevdata(subdev, wpf); in vsp1_wpf_create()
[all …]
Dvsp1_rwpf.c27 int vsp1_rwpf_enum_mbus_code(struct v4l2_subdev *subdev, in vsp1_rwpf_enum_mbus_code() argument
44 int vsp1_rwpf_enum_frame_size(struct v4l2_subdev *subdev, in vsp1_rwpf_enum_frame_size() argument
48 struct vsp1_rwpf *rwpf = to_rwpf(subdev); in vsp1_rwpf_enum_frame_size()
80 return v4l2_subdev_get_try_crop(&rwpf->entity.subdev, cfg, RWPF_PAD_SINK); in vsp1_rwpf_get_crop()
88 int vsp1_rwpf_get_format(struct v4l2_subdev *subdev, struct v4l2_subdev_pad_config *cfg, in vsp1_rwpf_get_format() argument
91 struct vsp1_rwpf *rwpf = to_rwpf(subdev); in vsp1_rwpf_get_format()
99 int vsp1_rwpf_set_format(struct v4l2_subdev *subdev, struct v4l2_subdev_pad_config *cfg, in vsp1_rwpf_set_format() argument
102 struct vsp1_rwpf *rwpf = to_rwpf(subdev); in vsp1_rwpf_set_format()
148 int vsp1_rwpf_get_selection(struct v4l2_subdev *subdev, in vsp1_rwpf_get_selection() argument
152 struct vsp1_rwpf *rwpf = to_rwpf(subdev); in vsp1_rwpf_get_selection()
[all …]
Dvsp1_entity.h71 struct v4l2_subdev subdev; member
80 static inline struct vsp1_entity *to_vsp1_entity(struct v4l2_subdev *subdev) in to_vsp1_entity() argument
82 return container_of(subdev, struct vsp1_entity, subdev); in to_vsp1_entity()
96 void vsp1_entity_init_formats(struct v4l2_subdev *subdev,
Dvsp1_lif.h30 static inline struct vsp1_lif *to_lif(struct v4l2_subdev *subdev) in to_lif() argument
32 return container_of(subdev, struct vsp1_lif, entity.subdev); in to_lif()
Dvsp1_hsit.h31 static inline struct vsp1_hsit *to_hsit(struct v4l2_subdev *subdev) in to_hsit() argument
33 return container_of(subdev, struct vsp1_hsit, entity.subdev); in to_hsit()
Dvsp1_lut.h31 static inline struct vsp1_lut *to_lut(struct v4l2_subdev *subdev) in to_lut() argument
33 return container_of(subdev, struct vsp1_lut, entity.subdev); in to_lut()
Dvsp1_sru.h33 static inline struct vsp1_sru *to_sru(struct v4l2_subdev *subdev) in to_sru() argument
35 return container_of(subdev, struct vsp1_sru, entity.subdev); in to_sru()
Dvsp1_uds.h31 static inline struct vsp1_uds *to_uds(struct v4l2_subdev *subdev) in to_uds() argument
33 return container_of(subdev, struct vsp1_uds, entity.subdev); in to_uds()
Dvsp1_bru.h39 static inline struct vsp1_bru *to_bru(struct v4l2_subdev *subdev) in to_bru() argument
41 return container_of(subdev, struct vsp1_bru, entity.subdev); in to_bru()
Dvsp1_video.c176 struct v4l2_subdev *subdev; in vsp1_video_verify_format() local
179 subdev = vsp1_video_remote_subdev(&video->pad, &fmt.pad); in vsp1_video_verify_format()
180 if (subdev == NULL) in vsp1_video_verify_format()
184 ret = v4l2_subdev_call(subdev, pad, get_fmt, NULL, &fmt); in vsp1_video_verify_format()
338 struct vsp1_bru *bru = to_bru(&entity->subdev); in vsp1_pipeline_validate_branch()
355 if (entities & (1 << entity->subdev.entity.id)) in vsp1_pipeline_validate_branch()
358 entities |= 1 << entity->subdev.entity.id; in vsp1_pipeline_validate_branch()
389 struct vsp1_bru *bru = to_bru(&pipe->bru->subdev); in __vsp1_pipeline_cleanup()
422 struct v4l2_subdev *subdev; in vsp1_pipeline_validate() local
431 subdev = media_entity_to_v4l2_subdev(entity); in vsp1_pipeline_validate()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/bus/
Dhwsq.c27 struct nvkm_subdev *subdev; member
44 nvkm_hwsq_init(struct nvkm_subdev *subdev, struct nvkm_hwsq **phwsq) in nvkm_hwsq_init() argument
50 hwsq->subdev = subdev; in nvkm_hwsq_init()
66 struct nvkm_subdev *subdev = hwsq->subdev; in nvkm_hwsq_fini() local
67 struct nvkm_bus *bus = subdev->device->bus; in nvkm_hwsq_fini()
75 nvkm_error(subdev, "hwsq exec failed: %d\n", ret); in nvkm_hwsq_fini()
77 nvkm_error(subdev, "hwsq ucode too large\n"); in nvkm_hwsq_fini()
82 nvkm_error(subdev, "\t%08x\n", ((u32 *)hwsq->c.data)[i]); in nvkm_hwsq_fini()
93 nvkm_debug(hwsq->subdev, "R[%06x] = %08x\n", addr, data); in nvkm_hwsq_wr32()
118 nvkm_debug(hwsq->subdev, " FLAG[%02x] = %d\n", flag, data); in nvkm_hwsq_setf()
[all …]
DKbuild1 nvkm-y += nvkm/subdev/bus/base.o
2 nvkm-y += nvkm/subdev/bus/hwsq.o
3 nvkm-y += nvkm/subdev/bus/nv04.o
4 nvkm-y += nvkm/subdev/bus/nv31.o
5 nvkm-y += nvkm/subdev/bus/nv50.o
6 nvkm-y += nvkm/subdev/bus/g94.o
7 nvkm-y += nvkm/subdev/bus/gf100.o
Dnv31.c33 struct nvkm_subdev *subdev = &bus->subdev; in nv31_bus_intr() local
34 struct nvkm_device *device = subdev->device; in nv31_bus_intr()
41 nvkm_subdev_intr(&gpio->subdev); in nv31_bus_intr()
48 nvkm_error(subdev, "MMIO %s of %08x FAULT at %06x\n", in nv31_bus_intr()
59 nvkm_subdev_intr(&therm->subdev); in nv31_bus_intr()
65 nvkm_error(subdev, "intr %08x\n", stat); in nv31_bus_intr()
73 struct nvkm_device *device = bus->subdev.device; in nv31_bus_init()
Dbase.c27 nvkm_bus_intr(struct nvkm_subdev *subdev) in nvkm_bus_intr() argument
29 struct nvkm_bus *bus = nvkm_bus(subdev); in nvkm_bus_intr()
34 nvkm_bus_init(struct nvkm_subdev *subdev) in nvkm_bus_init() argument
36 struct nvkm_bus *bus = nvkm_bus(subdev); in nvkm_bus_init()
42 nvkm_bus_dtor(struct nvkm_subdev *subdev) in nvkm_bus_dtor() argument
44 return nvkm_bus(subdev); in nvkm_bus_dtor()
61 nvkm_subdev_ctor(&nvkm_bus, device, index, 0, &bus->subdev); in nvkm_bus_new_()
Dnv04.c34 struct nvkm_subdev *subdev = &bus->subdev; in nv04_bus_intr() local
35 struct nvkm_device *device = subdev->device; in nv04_bus_intr()
39 nvkm_error(subdev, "BUS ERROR\n"); in nv04_bus_intr()
47 nvkm_subdev_intr(&gpio->subdev); in nv04_bus_intr()
53 nvkm_error(subdev, "intr %08x\n", stat); in nv04_bus_intr()
61 struct nvkm_device *device = bus->subdev.device; in nv04_bus_init()
Dnv50.c33 struct nvkm_device *device = bus->subdev.device; in nv50_bus_hwsq_exec()
55 struct nvkm_subdev *subdev = &bus->subdev; in nv50_bus_intr() local
56 struct nvkm_device *device = subdev->device; in nv50_bus_intr()
63 nvkm_error(subdev, "MMIO %s of %08x FAULT at %06x\n", in nv50_bus_intr()
74 nvkm_subdev_intr(&therm->subdev); in nv50_bus_intr()
80 nvkm_error(subdev, "intr %08x\n", stat); in nv50_bus_intr()
88 struct nvkm_device *device = bus->subdev.device; in nv50_bus_init()
Dgf100.c30 struct nvkm_subdev *subdev = &bus->subdev; in gf100_bus_intr() local
31 struct nvkm_device *device = subdev->device; in gf100_bus_intr()
38 nvkm_error(subdev, in gf100_bus_intr()
52 nvkm_error(subdev, "intr %08x\n", stat); in gf100_bus_intr()
60 struct nvkm_device *device = bus->subdev.device; in gf100_bus_init()
Dhwsq.h6 struct nvkm_subdev *subdev; member
60 hwsq_init(struct hwsq *ram, struct nvkm_subdev *subdev) in hwsq_init() argument
64 ret = nvkm_hwsq_init(subdev, &ram->hwsq); in hwsq_init()
69 ram->subdev = subdev; in hwsq_init()
77 if (ram->subdev) { in hwsq_exec()
79 ram->subdev = NULL; in hwsq_exec()
87 struct nvkm_device *device = ram->subdev->device; in hwsq_rd32()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/mc/
Dbase.c59 struct nvkm_device *device = mc->subdev.device; in nvkm_mc_intr()
60 struct nvkm_subdev *subdev; in nvkm_mc_intr() local
67 subdev = nvkm_device_subdev(device, map->unit); in nvkm_mc_intr()
68 if (subdev) in nvkm_mc_intr()
69 nvkm_subdev_intr(subdev); in nvkm_mc_intr()
76 nvkm_error(&mc->subdev, "intr %08x\n", stat); in nvkm_mc_intr()
81 nvkm_mc_fini(struct nvkm_subdev *subdev, bool suspend) in nvkm_mc_fini() argument
83 struct nvkm_mc *mc = nvkm_mc(subdev); in nvkm_mc_fini()
89 nvkm_mc_init(struct nvkm_subdev *subdev) in nvkm_mc_init() argument
91 struct nvkm_mc *mc = nvkm_mc(subdev); in nvkm_mc_init()
[all …]
DKbuild1 nvkm-y += nvkm/subdev/mc/base.o
2 nvkm-y += nvkm/subdev/mc/nv04.o
3 nvkm-y += nvkm/subdev/mc/nv44.o
4 nvkm-y += nvkm/subdev/mc/nv50.o
5 nvkm-y += nvkm/subdev/mc/g98.o
6 nvkm-y += nvkm/subdev/mc/gf100.o
7 nvkm-y += nvkm/subdev/mc/gk20a.o
Dnv04.c44 struct nvkm_device *device = mc->subdev.device; in nv04_mc_intr_unarm()
52 struct nvkm_device *device = mc->subdev.device; in nv04_mc_intr_rearm()
59 return nvkm_rd32(mc->subdev.device, 0x000100); in nv04_mc_intr_mask()
65 struct nvkm_device *device = mc->subdev.device; in nv04_mc_init()
Dgf100.c54 struct nvkm_device *device = mc->subdev.device; in gf100_mc_intr_unarm()
63 struct nvkm_device *device = mc->subdev.device; in gf100_mc_intr_rearm()
71 struct nvkm_device *device = mc->subdev.device; in gf100_mc_intr_mask()
80 nvkm_wr32(mc->subdev.device, 0x000260, data); in gf100_mc_unk260()
/linux-4.4.14/drivers/gpu/host1x/
Dbus.c46 struct host1x_subdev *subdev; in host1x_subdev_add() local
48 subdev = kzalloc(sizeof(*subdev), GFP_KERNEL); in host1x_subdev_add()
49 if (!subdev) in host1x_subdev_add()
52 INIT_LIST_HEAD(&subdev->list); in host1x_subdev_add()
53 subdev->np = of_node_get(np); in host1x_subdev_add()
56 list_add_tail(&subdev->list, &device->subdevs); in host1x_subdev_add()
65 static void host1x_subdev_del(struct host1x_subdev *subdev) in host1x_subdev_del() argument
67 list_del(&subdev->list); in host1x_subdev_del()
68 of_node_put(subdev->np); in host1x_subdev_del()
69 kfree(subdev); in host1x_subdev_del()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/pci/
DKbuild1 nvkm-y += nvkm/subdev/pci/agp.o
2 nvkm-y += nvkm/subdev/pci/base.o
3 nvkm-y += nvkm/subdev/pci/nv04.o
4 nvkm-y += nvkm/subdev/pci/nv40.o
5 nvkm-y += nvkm/subdev/pci/nv46.o
6 nvkm-y += nvkm/subdev/pci/nv4c.o
7 nvkm-y += nvkm/subdev/pci/g84.o
8 nvkm-y += nvkm/subdev/pci/g94.o
9 nvkm-y += nvkm/subdev/pci/gf100.o
Dbase.c72 struct nvkm_mc *mc = pci->subdev.device->mc; in nvkm_pci_intr()
85 nvkm_pci_fini(struct nvkm_subdev *subdev, bool suspend) in nvkm_pci_fini() argument
87 struct nvkm_pci *pci = nvkm_pci(subdev); in nvkm_pci_fini()
101 nvkm_pci_preinit(struct nvkm_subdev *subdev) in nvkm_pci_preinit() argument
103 struct nvkm_pci *pci = nvkm_pci(subdev); in nvkm_pci_preinit()
110 nvkm_pci_init(struct nvkm_subdev *subdev) in nvkm_pci_init() argument
112 struct nvkm_pci *pci = nvkm_pci(subdev); in nvkm_pci_init()
134 nvkm_pci_dtor(struct nvkm_subdev *subdev) in nvkm_pci_dtor() argument
136 struct nvkm_pci *pci = nvkm_pci(subdev); in nvkm_pci_dtor()
140 return nvkm_pci(subdev); in nvkm_pci_dtor()
[all …]
Dagp.c58 struct nvkm_device *device = pci->subdev.device; in nvkm_agp_preinit()
88 nvkm_error(&pci->subdev, "failed to acquire agp\n"); in nvkm_agp_init()
107 struct nvkm_subdev *subdev = &pci->subdev; in nvkm_agp_ctor() local
108 struct nvkm_device *device = subdev->device; in nvkm_agp_ctor()
126 nvkm_warn(subdev, "failed to acquire agp\n"); in nvkm_agp_ctor()
146 nvkm_info(subdev, "forcing default agp mode to %dX, " in nvkm_agp_ctor()
Dnv04.c29 struct nvkm_device *device = pci->subdev.device; in nv04_pci_rd32()
36 struct nvkm_device *device = pci->subdev.device; in nv04_pci_wr08()
43 struct nvkm_device *device = pci->subdev.device; in nv04_pci_wr32()
Dnv40.c29 struct nvkm_device *device = pci->subdev.device; in nv40_pci_rd32()
36 struct nvkm_device *device = pci->subdev.device; in nv40_pci_wr08()
43 struct nvkm_device *device = pci->subdev.device; in nv40_pci_wr32()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/mxm/
Dbase.c46 struct nvkm_device *device = mxm->subdev.device; in mxm_shadow_rom()
82 struct nvkm_subdev *subdev = &mxm->subdev; in mxm_shadow_dsm() local
83 struct nvkm_device *device = subdev->device; in mxm_shadow_dsm()
110 nvkm_debug(subdev, "DSM MXMS failed\n"); in mxm_shadow_dsm()
118 nvkm_debug(subdev, "DSM MXMS returned 0x%llx\n", in mxm_shadow_dsm()
134 struct nvkm_subdev *subdev = &mxm->subdev; in wmi_wmmx_mxmi() local
143 nvkm_debug(subdev, "WMMX MXMI returned %d\n", status); in wmi_wmmx_mxmi()
150 nvkm_debug(subdev, "WMMX MXMI version %d.%d\n", in wmi_wmmx_mxmi()
154 nvkm_debug(subdev, "WMMX MXMI returned non-integer\n"); in wmi_wmmx_mxmi()
164 struct nvkm_subdev *subdev = &mxm->subdev; in mxm_shadow_wmi() local
[all …]
Dnv50.c52 struct nvkm_bios *bios = mxm->subdev.device->bios; in mxm_match_dcb()
106 nvkm_debug(&mxm->subdev, "disable %d: %08x %08x\n", in mxm_dcb_sanitise_entry()
179 struct nvkm_subdev *subdev = &mxm->subdev; in mxm_show_unmatched() local
182 nvkm_info(subdev, "unmatched output device %016llx\n", desc); in mxm_show_unmatched()
189 struct nvkm_subdev *subdev = &mxm->subdev; in mxm_dcb_sanitise() local
190 struct nvkm_bios *bios = subdev->device->bios; in mxm_dcb_sanitise()
194 nvkm_debug(subdev, "unsupported DCB version\n"); in mxm_dcb_sanitise()
210 *pmxm = &mxm->subdev; in nv50_mxm_new()
Dmxms.c50 nvkm_debug(&mxm->subdev, "unknown version %d.%d\n", mxms[4], mxms[5]); in mxms_version()
74 nvkm_debug(&mxm->subdev, "checksum invalid\n"); in mxms_checksum()
85 nvkm_debug(&mxm->subdev, "signature invalid\n"); in mxms_valid()
99 struct nvkm_subdev *subdev = &mxm->subdev; in mxms_foreach() local
144 nvkm_debug(subdev, "unknown descriptor type %d\n", type); in mxms_foreach()
148 if (mxm->subdev.debug >= NV_DBG_DEBUG && (exec == NULL)) { in mxms_foreach()
161 nvkm_debug(subdev, "%4s: %s\n", mxms_desc[type], data); in mxms_foreach()
165 nvkm_debug(subdev, " %s\n", data); in mxms_foreach()
DKbuild1 nvkm-y += nvkm/subdev/mxm/base.o
2 nvkm-y += nvkm/subdev/mxm/mxms.o
3 nvkm-y += nvkm/subdev/mxm/nv50.o
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dgf119.c36 struct nvkm_device *device = disp->base.engine.subdev.device; in gf119_disp_vblank_init()
43 struct nvkm_device *device = disp->base.engine.subdev.device; in gf119_disp_vblank_fini()
52 struct nvkm_subdev *subdev = &disp->base.engine.subdev; in exec_lookup() local
53 struct nvkm_bios *bios = subdev->device->bios; in exec_lookup()
70 nvkm_error(subdev, "unknown SOR mc %08x\n", ctrl); in exec_lookup()
97 struct nvkm_subdev *subdev = &disp->base.engine.subdev; in exec_script() local
98 struct nvkm_device *device = subdev->device; in exec_script()
118 .subdev = subdev, in exec_script()
135 struct nvkm_subdev *subdev = &disp->base.engine.subdev; in exec_clkcmp() local
136 struct nvkm_device *device = subdev->device; in exec_clkcmp()
[all …]
Dpiocnv50.c33 struct nvkm_subdev *subdev = &disp->base.engine.subdev; in nv50_disp_pioc_fini() local
34 struct nvkm_device *device = subdev->device; in nv50_disp_pioc_fini()
42 nvkm_error(subdev, "ch %d timeout: %08x\n", chid, in nv50_disp_pioc_fini()
51 struct nvkm_subdev *subdev = &disp->base.engine.subdev; in nv50_disp_pioc_init() local
52 struct nvkm_device *device = subdev->device; in nv50_disp_pioc_init()
60 nvkm_error(subdev, "ch %d timeout0: %08x\n", chid, in nv50_disp_pioc_init()
71 nvkm_error(subdev, "ch %d timeout1: %08x\n", chid, in nv50_disp_pioc_init()
Dpiocgf119.c33 struct nvkm_subdev *subdev = &disp->base.engine.subdev; in gf119_disp_pioc_fini() local
34 struct nvkm_device *device = subdev->device; in gf119_disp_pioc_fini()
42 nvkm_error(subdev, "ch %d fini: %08x\n", chid, in gf119_disp_pioc_fini()
55 struct nvkm_subdev *subdev = &disp->base.engine.subdev; in gf119_disp_pioc_init() local
56 struct nvkm_device *device = subdev->device; in gf119_disp_pioc_init()
69 nvkm_error(subdev, "ch %d init: %08x\n", chid, in gf119_disp_pioc_init()
Ddmacgf119.c43 struct nvkm_subdev *subdev = &disp->base.engine.subdev; in gf119_disp_dmac_fini() local
44 struct nvkm_device *device = subdev->device; in gf119_disp_dmac_fini()
54 nvkm_error(subdev, "ch %d fini: %08x\n", chid, in gf119_disp_dmac_fini()
67 struct nvkm_subdev *subdev = &disp->base.engine.subdev; in gf119_disp_dmac_init() local
68 struct nvkm_device *device = subdev->device; in gf119_disp_dmac_init()
87 nvkm_error(subdev, "ch %d init: %08x\n", chid, in gf119_disp_dmac_init()
Dcoregf119.c178 struct nvkm_subdev *subdev = &disp->base.engine.subdev; in gf119_disp_core_fini() local
179 struct nvkm_device *device = subdev->device; in gf119_disp_core_fini()
188 nvkm_error(subdev, "core fini: %08x\n", in gf119_disp_core_fini()
201 struct nvkm_subdev *subdev = &disp->base.engine.subdev; in gf119_disp_core_init() local
202 struct nvkm_device *device = subdev->device; in gf119_disp_core_init()
220 nvkm_error(subdev, "core init: %08x\n", in gf119_disp_core_init()
Dnv50.c166 struct nvkm_device *device = disp->base.engine.subdev.device; in nv50_disp_vblank_fini()
173 struct nvkm_device *device = disp->base.engine.subdev.device; in nv50_disp_vblank_init()
195 struct nvkm_subdev *subdev = &disp->base.engine.subdev; in nv50_disp_intr_error() local
196 struct nvkm_device *device = subdev->device; in nv50_disp_intr_error()
207 nvkm_error(subdev, in nv50_disp_intr_error()
231 struct nvkm_subdev *subdev = &disp->base.engine.subdev; in exec_lookup() local
232 struct nvkm_bios *bios = subdev->device->bios; in exec_lookup()
249 nvkm_error(subdev, "unknown SOR mc %08x\n", ctrl); in exec_lookup()
260 nvkm_error(subdev, "unknown PIOR mc %08x\n", ctrl); in exec_lookup()
287 struct nvkm_subdev *subdev = &disp->base.engine.subdev; in exec_script() local
[all …]
Dcorenv50.c171 struct nvkm_subdev *subdev = &disp->base.engine.subdev; in nv50_disp_core_fini() local
172 struct nvkm_device *device = subdev->device; in nv50_disp_core_fini()
181 nvkm_error(subdev, "core fini: %08x\n", in nv50_disp_core_fini()
193 struct nvkm_subdev *subdev = &disp->base.engine.subdev; in nv50_disp_core_init() local
194 struct nvkm_device *device = subdev->device; in nv50_disp_core_init()
218 nvkm_error(subdev, "core init: %08x\n", in nv50_disp_core_init()
Dnv04.c35 struct nvkm_device *device = disp->engine.subdev.device; in nv04_disp_vblank_init()
42 struct nvkm_device *device = disp->engine.subdev.device; in nv04_disp_vblank_fini()
49 struct nvkm_subdev *subdev = &disp->engine.subdev; in nv04_disp_intr() local
50 struct nvkm_device *device = subdev->device; in nv04_disp_intr()
68 nvkm_info(subdev, "PVIDEO intr: %08x\n", pvideo); in nv04_disp_intr()
Ddport.c53 struct nvkm_subdev *subdev = &disp->engine.subdev; in dp_set_link_config() local
54 struct nvkm_bios *bios = subdev->device->bios; in dp_set_link_config()
56 .subdev = subdev, in dp_set_link_config()
264 struct nvkm_subdev *subdev = &disp->engine.subdev; in dp_link_train_init() local
266 .subdev = subdev, in dp_link_train_init()
267 .bios = subdev->device->bios, in dp_link_train_init()
290 struct nvkm_subdev *subdev = &disp->engine.subdev; in dp_link_train_fini() local
292 .subdev = subdev, in dp_link_train_fini()
293 .bios = subdev->device->bios, in dp_link_train_fini()
338 if (disp->base.engine.subdev.device->chipset < 0xd0) in nvkm_dp_train()
Ddmacnv50.c60 struct nvkm_device *device = root->disp->base.engine.subdev.device; in nv50_disp_dmac_child_new_()
89 struct nvkm_device *device = disp->base.engine.subdev.device; in nv50_disp_dmac_child_get_()
140 struct nvkm_device *device = root->disp->base.engine.subdev.device; in nv50_disp_dmac_new_()
191 struct nvkm_subdev *subdev = &disp->base.engine.subdev; in nv50_disp_dmac_fini() local
192 struct nvkm_device *device = subdev->device; in nv50_disp_dmac_fini()
202 nvkm_error(subdev, "ch %d fini timeout, %08x\n", chid, in nv50_disp_dmac_fini()
214 struct nvkm_subdev *subdev = &disp->base.engine.subdev; in nv50_disp_dmac_init() local
215 struct nvkm_device *device = subdev->device; in nv50_disp_dmac_init()
234 nvkm_error(subdev, "ch %d init timeout, %08x\n", chid, in nv50_disp_dmac_init()
Dchannv50.c39 struct nvkm_subdev *subdev = &disp->base.engine.subdev; in nv50_disp_mthd_list() local
40 struct nvkm_device *device = subdev->device; in nv50_disp_mthd_list()
56 nvkm_printk_(subdev, debug, info, in nv50_disp_mthd_list()
68 struct nvkm_subdev *subdev = &disp->base.engine.subdev; in nv50_disp_chan_mthd() local
73 if (debug > subdev->debug) in nv50_disp_chan_mthd()
95 nvkm_printk_(subdev, debug, info, "%s%s:\n", cname, sname); in nv50_disp_chan_mthd()
106 struct nvkm_device *device = disp->base.engine.subdev.device; in nv50_disp_chan_uevent_fini()
115 struct nvkm_device *device = disp->base.engine.subdev.device; in nv50_disp_chan_uevent_init()
161 struct nvkm_device *device = disp->base.engine.subdev.device; in nv50_disp_chan_rd32()
171 struct nvkm_device *device = disp->base.engine.subdev.device; in nv50_disp_chan_wr32()
[all …]
Ddacnv50.c36 struct nvkm_device *device = disp->base.engine.subdev.device; in nv50_dac_power()
72 struct nvkm_subdev *subdev = &disp->base.engine.subdev; in nv50_dac_sense() local
73 struct nvkm_device *device = subdev->device; in nv50_dac_sense()
108 nvkm_debug(subdev, "DAC%d sense: %08x\n", outp->or, loadval); in nv50_dac_sense()
Dbase.c144 mutex_lock(&disp->engine.subdev.mutex); in nvkm_disp_class_del()
147 mutex_unlock(&disp->engine.subdev.mutex); in nvkm_disp_class_del()
170 mutex_lock(&disp->engine.subdev.mutex); in nvkm_disp_class_new()
172 mutex_unlock(&disp->engine.subdev.mutex); in nvkm_disp_class_new()
176 mutex_unlock(&disp->engine.subdev.mutex); in nvkm_disp_class_new()
322 nvkm_warn(&disp->engine.subdev, in nvkm_disp_ctor()
334 nvkm_warn(&disp->engine.subdev, in nvkm_disp_ctor()
346 nvkm_debug(&disp->engine.subdev, in nvkm_disp_ctor()
351 nvkm_error(&disp->engine.subdev, in nvkm_disp_ctor()
409 nvkm_error(&disp->engine.subdev, in nvkm_disp_ctor()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/ltc/
Dgf100.c33 struct nvkm_device *device = ltc->subdev.device; in gf100_ltc_cbc_clear()
42 struct nvkm_device *device = ltc->subdev.device; in gf100_ltc_cbc_wait()
58 struct nvkm_device *device = ltc->subdev.device; in gf100_ltc_zbc_clear_color()
69 struct nvkm_device *device = ltc->subdev.device; in gf100_ltc_zbc_clear_depth()
95 struct nvkm_subdev *subdev = &ltc->subdev; in gf100_ltc_lts_intr() local
96 struct nvkm_device *device = subdev->device; in gf100_ltc_lts_intr()
104 nvkm_error(subdev, "LTC%d_LTS%d: %08x [%s]\n", c, s, stat, msg); in gf100_ltc_lts_intr()
113 struct nvkm_device *device = ltc->subdev.device; in gf100_ltc_intr()
128 struct nvkm_device *device = ltc->subdev.device; in gf100_ltc_invalidate()
134 nvkm_warn(&ltc->subdev, "LTC invalidate timeout\n"); in gf100_ltc_invalidate()
[all …]
Dgm107.c32 struct nvkm_device *device = ltc->subdev.device; in gm107_ltc_cbc_clear()
41 struct nvkm_device *device = ltc->subdev.device; in gm107_ltc_cbc_wait()
57 struct nvkm_device *device = ltc->subdev.device; in gm107_ltc_zbc_clear_color()
68 struct nvkm_device *device = ltc->subdev.device; in gm107_ltc_zbc_clear_depth()
76 struct nvkm_subdev *subdev = &ltc->subdev; in gm107_ltc_lts_isr() local
77 struct nvkm_device *device = subdev->device; in gm107_ltc_lts_isr()
82 nvkm_error(subdev, "LTC%d_LTS%d: %08x\n", c, s, stat); in gm107_ltc_lts_isr()
90 struct nvkm_device *device = ltc->subdev.device; in gm107_ltc_intr()
105 struct nvkm_device *device = ltc->subdev.device; in gm107_ltc_oneinit()
123 struct nvkm_device *device = ltc->subdev.device; in gm107_ltc_init()
Dbase.c85 nvkm_ltc_intr(struct nvkm_subdev *subdev) in nvkm_ltc_intr() argument
87 struct nvkm_ltc *ltc = nvkm_ltc(subdev); in nvkm_ltc_intr()
92 nvkm_ltc_oneinit(struct nvkm_subdev *subdev) in nvkm_ltc_oneinit() argument
94 struct nvkm_ltc *ltc = nvkm_ltc(subdev); in nvkm_ltc_oneinit()
99 nvkm_ltc_init(struct nvkm_subdev *subdev) in nvkm_ltc_init() argument
101 struct nvkm_ltc *ltc = nvkm_ltc(subdev); in nvkm_ltc_init()
114 nvkm_ltc_dtor(struct nvkm_subdev *subdev) in nvkm_ltc_dtor() argument
116 struct nvkm_ltc *ltc = nvkm_ltc(subdev); in nvkm_ltc_dtor()
117 struct nvkm_ram *ram = ltc->subdev.device->fb->ram; in nvkm_ltc_dtor()
141 nvkm_subdev_ctor(&nvkm_ltc, device, index, 0, &ltc->subdev); in nvkm_ltc_new_()
DKbuild1 nvkm-y += nvkm/subdev/ltc/base.o
2 nvkm-y += nvkm/subdev/ltc/gf100.o
3 nvkm-y += nvkm/subdev/ltc/gk104.o
4 nvkm-y += nvkm/subdev/ltc/gm107.o
/linux-4.4.14/drivers/media/rc/img-ir/
Dimg-ir-sony.c18 unsigned int dev, subdev, func; in img_ir_sony_scancode() local
27 subdev = 0; in img_ir_sony_scancode()
36 subdev = 0; in img_ir_sony_scancode()
46 subdev = raw & 0xff; /* next 8 bits */ in img_ir_sony_scancode()
52 request->scancode = dev << 16 | subdev << 8 | func; in img_ir_sony_scancode()
60 unsigned int dev, subdev, func; in img_ir_sony_filter() local
66 subdev = (in->data >> 8) & 0xff; in img_ir_sony_filter()
71 if (subdev & subdev_m) { in img_ir_sony_filter()
98 subdev &= subdev_m; in img_ir_sony_filter()
103 subdev << 15; in img_ir_sony_filter()
/linux-4.4.14/drivers/media/i2c/
Dmt9m032.c146 struct v4l2_subdev subdev; member
167 #define to_mt9m032(sd) container_of(sd, struct mt9m032, subdev)
169 (&((struct i2c_client *)v4l2_get_subdevdata(&(sensor)->subdev))->dev)
195 struct i2c_client *client = v4l2_get_subdevdata(&sensor->subdev); in mt9m032_update_timing()
230 struct i2c_client *client = v4l2_get_subdevdata(&sensor->subdev); in mt9m032_update_geom_timing()
251 struct i2c_client *client = v4l2_get_subdevdata(&sensor->subdev); in update_formatter2()
280 struct i2c_client *client = v4l2_get_subdevdata(&sensor->subdev); in mt9m032_setup_pll()
319 static int mt9m032_enum_mbus_code(struct v4l2_subdev *subdev, in mt9m032_enum_mbus_code() argument
330 static int mt9m032_enum_frame_size(struct v4l2_subdev *subdev, in mt9m032_enum_frame_size() argument
359 return v4l2_subdev_get_try_crop(&sensor->subdev, cfg, 0); in __mt9m032_get_pad_crop()
[all …]
Dmt9p031.c123 struct v4l2_subdev subdev; member
151 return container_of(sd, struct mt9p031, subdev); in to_mt9p031()
167 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in mt9p031_set_output_control()
181 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in mt9p031_set_mode2()
195 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in mt9p031_reset()
233 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in mt9p031_clk_setup()
269 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in mt9p031_pll_enable()
298 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in mt9p031_pll_disable()
358 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in __mt9p031_set_power()
385 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in mt9p031_set_params()
[all …]
Dmt9t001.c119 struct v4l2_subdev subdev; member
140 return container_of(sd, struct mt9t001, subdev); in to_mt9t001()
156 struct i2c_client *client = v4l2_get_subdevdata(&mt9t001->subdev); in mt9t001_set_output_control()
173 struct i2c_client *client = v4l2_get_subdevdata(&mt9t001->subdev); in mt9t001_reset()
221 struct i2c_client *client = v4l2_get_subdevdata(&mt9t001->subdev); in __mt9t001_set_power()
252 return v4l2_subdev_get_try_format(&mt9t001->subdev, cfg, pad); in __mt9t001_get_pad_format()
266 return v4l2_subdev_get_try_crop(&mt9t001->subdev, cfg, pad); in __mt9t001_get_pad_crop()
274 static int mt9t001_s_stream(struct v4l2_subdev *subdev, int enable) in mt9t001_s_stream() argument
277 struct i2c_client *client = v4l2_get_subdevdata(subdev); in mt9t001_s_stream()
279 struct mt9t001 *mt9t001 = to_mt9t001(subdev); in mt9t001_s_stream()
[all …]
Dadp1653.c54 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in adp1653_update_hw()
93 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in adp1653_get_fault()
122 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in adp1653_strobe()
266 flash->subdev.ctrl_handler = &flash->ctrls; in adp1653_init_controls()
277 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in adp1653_init_device()
315 ret = flash->platform_data->power(&flash->subdev, on); in __adp1653_set_power()
333 flash->platform_data->power(&flash->subdev, 0); in __adp1653_set_power()
341 adp1653_set_power(struct v4l2_subdev *subdev, int on) in adp1653_set_power() argument
343 struct adp1653_flash *flash = to_adp1653_flash(subdev); in adp1653_set_power()
397 struct v4l2_subdev *subdev = i2c_get_clientdata(client); in adp1653_suspend() local
[all …]
Dmt9v032.c235 struct v4l2_subdev subdev; member
270 return container_of(sd, struct mt9v032, subdev); in to_mt9v032()
382 return v4l2_subdev_get_try_format(&mt9v032->subdev, cfg, pad); in __mt9v032_get_pad_format()
396 return v4l2_subdev_get_try_crop(&mt9v032->subdev, cfg, pad); in __mt9v032_get_pad_crop()
404 static int mt9v032_s_stream(struct v4l2_subdev *subdev, int enable) in mt9v032_s_stream() argument
409 struct mt9v032 *mt9v032 = to_mt9v032(subdev); in mt9v032_s_stream()
453 static int mt9v032_enum_mbus_code(struct v4l2_subdev *subdev, in mt9v032_enum_mbus_code() argument
464 static int mt9v032_enum_frame_size(struct v4l2_subdev *subdev, in mt9v032_enum_frame_size() argument
479 static int mt9v032_get_format(struct v4l2_subdev *subdev, in mt9v032_get_format() argument
483 struct mt9v032 *mt9v032 = to_mt9v032(subdev); in mt9v032_get_format()
[all …]
Das3645a.c119 struct v4l2_subdev subdev; member
136 #define to_as3645a(sd) container_of(sd, struct as3645a, subdev)
141 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in as3645a_write()
155 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in as3645a_read()
290 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in as3645a_read_fault()
328 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in as3645a_get_ctrl()
375 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in as3645a_set_ctrl()
482 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in as3645a_setup()
523 ret = flash->pdata->set_power(&flash->subdev, on); in __as3645a_set_power()
534 flash->pdata->set_power(&flash->subdev, 0); in __as3645a_set_power()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/bar/
Dbase.c37 if (bar && bar->func->kmap && bar->subdev.oneinit) in nvkm_bar_kmap()
49 nvkm_bar_oneinit(struct nvkm_subdev *subdev) in nvkm_bar_oneinit() argument
51 struct nvkm_bar *bar = nvkm_bar(subdev); in nvkm_bar_oneinit()
56 nvkm_bar_init(struct nvkm_subdev *subdev) in nvkm_bar_init() argument
58 struct nvkm_bar *bar = nvkm_bar(subdev); in nvkm_bar_init()
63 nvkm_bar_dtor(struct nvkm_subdev *subdev) in nvkm_bar_dtor() argument
65 struct nvkm_bar *bar = nvkm_bar(subdev); in nvkm_bar_dtor()
80 nvkm_subdev_ctor(&nvkm_bar, device, index, 0, &bar->subdev); in nvkm_bar_ctor()
DKbuild1 nvkm-y += nvkm/subdev/bar/base.o
2 nvkm-y += nvkm/subdev/bar/nv50.o
3 nvkm-y += nvkm/subdev/bar/g84.o
4 nvkm-y += nvkm/subdev/bar/gf100.o
5 nvkm-y += nvkm/subdev/bar/gk20a.o
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/mpeg/
Dnv50.c39 int ret = nvkm_gpuobj_new(object->engine->subdev.device, 128 * 4, in nv50_mpeg_cclass_bind()
62 struct nvkm_subdev *subdev = &mpeg->subdev; in nv50_mpeg_intr() local
63 struct nvkm_device *device = subdev->device; in nv50_mpeg_intr()
79 nvkm_info(subdev, "%08x %08x %08x %08x\n", in nv50_mpeg_intr()
90 struct nvkm_subdev *subdev = &mpeg->subdev; in nv50_mpeg_init() local
91 struct nvkm_device *device = subdev->device; in nv50_mpeg_init()
111 nvkm_error(subdev, "timeout %08x\n", in nv50_mpeg_init()
Dnv31.c42 int ret = nvkm_gpuobj_new(object->engine->subdev.device, 16, align, in nv31_mpeg_object_bind()
117 struct nvkm_device *device = mpeg->engine.subdev.device; in nv31_mpeg_tile()
166 struct nvkm_device *device = mpeg->engine.subdev.device; in nv31_mpeg_mthd()
182 struct nvkm_subdev *subdev = &mpeg->engine.subdev; in nv31_mpeg_intr() local
183 struct nvkm_device *device = subdev->device; in nv31_mpeg_intr()
210 nvkm_error(subdev, "ch %d [%s] %08x %08x %08x %08x\n", in nv31_mpeg_intr()
222 struct nvkm_subdev *subdev = &mpeg->subdev; in nv31_mpeg_init() local
223 struct nvkm_device *device = subdev->device; in nv31_mpeg_init()
243 nvkm_error(subdev, "timeout %08x\n", in nv31_mpeg_init()
Dnv44.c56 int ret = nvkm_gpuobj_new(chan->object.engine->subdev.device, 264 * 4, in nv44_mpeg_chan_bind()
73 struct nvkm_device *device = mpeg->engine.subdev.device; in nv44_mpeg_chan_fini()
146 struct nvkm_subdev *subdev = &mpeg->engine.subdev; in nv44_mpeg_intr() local
147 struct nvkm_device *device = subdev->device; in nv44_mpeg_intr()
175 if (!nv44_mpeg_mthd(subdev->device, mthd, data)) in nv44_mpeg_intr()
184 nvkm_error(subdev, "ch %d [%08x %s] %08x %08x %08x %08x\n", in nv44_mpeg_intr()
/linux-4.4.14/drivers/media/platform/xilinx/
Dxilinx-tpg.c113 static inline struct xtpg_device *to_tpg(struct v4l2_subdev *subdev) in to_tpg() argument
115 return container_of(subdev, struct xtpg_device, xvip.subdev); in to_tpg()
170 static int xtpg_s_stream(struct v4l2_subdev *subdev, int enable) in xtpg_s_stream() argument
172 struct xtpg_device *xtpg = to_tpg(subdev); in xtpg_s_stream()
262 return v4l2_subdev_get_try_format(&xtpg->xvip.subdev, cfg, pad); in __xtpg_get_pad_format()
270 static int xtpg_get_format(struct v4l2_subdev *subdev, in xtpg_get_format() argument
274 struct xtpg_device *xtpg = to_tpg(subdev); in xtpg_get_format()
281 static int xtpg_set_format(struct v4l2_subdev *subdev, in xtpg_set_format() argument
285 struct xtpg_device *xtpg = to_tpg(subdev); in xtpg_set_format()
323 static int xtpg_enum_frame_size(struct v4l2_subdev *subdev, in xtpg_enum_frame_size() argument
[all …]
/linux-4.4.14/drivers/media/platform/soc_camera/
Dsh_mobile_csi2.c38 struct v4l2_subdev subdev; member
52 struct sh_csi2 *priv = container_of(sd, struct sh_csi2, subdev); in sh_csi2_set_fmt()
132 struct sh_csi2 *priv = container_of(sd, struct sh_csi2, subdev); in sh_csi2_g_mbus_config()
191 struct sh_csi2 *priv = container_of(sd, struct sh_csi2, subdev); in sh_csi2_s_mbus_config()
261 struct device *dev = v4l2_get_subdevdata(&priv->subdev); in sh_csi2_client_connect()
263 struct soc_camera_device *icd = v4l2_get_subdev_hostdata(&priv->subdev); in sh_csi2_client_connect()
293 pm_runtime_put(v4l2_get_subdevdata(&priv->subdev)); in sh_csi2_client_disconnect()
298 struct sh_csi2 *priv = container_of(sd, struct sh_csi2, subdev); in sh_csi2_s_power()
355 priv->subdev.owner = THIS_MODULE; in sh_csi2_probe()
356 priv->subdev.dev = &pdev->dev; in sh_csi2_probe()
[all …]
Dsoc_camera_platform.c24 struct v4l2_subdev subdev; member
29 struct v4l2_subdev *subdev = platform_get_drvdata(pdev); in get_priv() local
30 return container_of(subdev, struct soc_camera_platform_priv, subdev); in get_priv()
163 platform_set_drvdata(pdev, &priv->subdev); in soc_camera_platform_probe()
169 v4l2_subdev_init(&priv->subdev, &platform_subdev_ops); in soc_camera_platform_probe()
170 v4l2_set_subdevdata(&priv->subdev, p); in soc_camera_platform_probe()
171 strncpy(priv->subdev.name, dev_name(&pdev->dev), V4L2_SUBDEV_NAME_SIZE); in soc_camera_platform_probe()
173 return v4l2_device_register_subdev(&ici->v4l2_dev, &priv->subdev); in soc_camera_platform_probe()
179 struct soc_camera_platform_info *p = v4l2_get_subdevdata(&priv->subdev); in soc_camera_platform_remove()
182 v4l2_device_unregister_subdev(&priv->subdev); in soc_camera_platform_remove()
/linux-4.4.14/drivers/media/platform/omap3isp/
Dispstat.c117 "match.\n", stat->subdev.name); in isp_stat_buf_check_magic()
126 "not match.\n", stat->subdev.name); in isp_stat_buf_check_magic()
243 stat->subdev.name); in isp_stat_buf_queue()
261 stat->subdev.name); in isp_stat_buf_next()
291 stat->subdev.name); in isp_stat_buf_get()
296 "corrupted data\n.", stat->subdev.name); in isp_stat_buf_get()
311 "not enough.\n", stat->subdev.name); in isp_stat_buf_get()
325 stat->subdev.name, rval); in isp_stat_buf_get()
356 stat->subdev.name); in isp_stat_bufs_free()
421 stat->subdev.name); in isp_stat_bufs_alloc()
[all …]
Disp.c552 pipe = to_isp_pipeline(&isp->isp_ccp2.subdev.entity); in isp_isr_sbl()
558 pipe = to_isp_pipeline(&isp->isp_csi2a.subdev.entity); in isp_isr_sbl()
564 pipe = to_isp_pipeline(&isp->isp_ccdc.subdev.entity); in isp_isr_sbl()
570 pipe = to_isp_pipeline(&isp->isp_prev.subdev.entity); in isp_isr_sbl()
579 pipe = to_isp_pipeline(&isp->isp_res.subdev.entity); in isp_isr_sbl()
714 struct v4l2_subdev *subdev; in isp_pipeline_pm_power_one() local
717 subdev = media_entity_type(entity) == MEDIA_ENT_T_V4L2_SUBDEV in isp_pipeline_pm_power_one()
720 if (entity->use_count == 0 && change > 0 && subdev != NULL) { in isp_pipeline_pm_power_one()
721 ret = v4l2_subdev_call(subdev, core, s_power, 1); in isp_pipeline_pm_power_one()
729 if (entity->use_count == 0 && change < 0 && subdev != NULL) in isp_pipeline_pm_power_one()
[all …]
Dispstat.h88 struct v4l2_subdev subdev; member
136 int omap3isp_stat_subscribe_event(struct v4l2_subdev *subdev,
139 int omap3isp_stat_unsubscribe_event(struct v4l2_subdev *subdev,
142 int omap3isp_stat_s_stream(struct v4l2_subdev *subdev, int enable);
Dispvideo.c274 struct v4l2_subdev *subdev; in __isp_video_get_format() local
278 subdev = isp_video_remote_subdev(video, &pad); in __isp_video_get_format()
279 if (subdev == NULL) in __isp_video_get_format()
286 ret = v4l2_subdev_call(subdev, pad, get_fmt, NULL, &fmt); in __isp_video_get_format()
694 struct v4l2_subdev *subdev; in isp_video_try_format() local
701 subdev = isp_video_remote_subdev(video, &pad); in isp_video_try_format()
702 if (subdev == NULL) in isp_video_try_format()
709 ret = v4l2_subdev_call(subdev, pad, get_fmt, NULL, &fmt); in isp_video_try_format()
721 struct v4l2_subdev *subdev; in isp_video_cropcap() local
724 subdev = isp_video_remote_subdev(video, NULL); in isp_video_cropcap()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/
Dfalcon.c48 return nvkm_gpuobj_new(object->engine->subdev.device, 256, in nvkm_falcon_cclass_bind()
61 struct nvkm_subdev *subdev = &falcon->engine.subdev; in nvkm_falcon_intr() local
62 struct nvkm_device *device = subdev->device; in nvkm_falcon_intr()
81 nvkm_debug(subdev, "ucode halted\n"); in nvkm_falcon_intr()
87 nvkm_error(subdev, "intr %08x\n", intr); in nvkm_falcon_intr()
98 struct nvkm_device *device = falcon->engine.subdev.device; in nvkm_falcon_fini()
129 struct nvkm_subdev *subdev = &falcon->engine.subdev; in nvkm_falcon_oneinit() local
130 struct nvkm_device *device = subdev->device; in nvkm_falcon_oneinit()
149 nvkm_debug(subdev, "falcon version: %d\n", falcon->version); in nvkm_falcon_oneinit()
150 nvkm_debug(subdev, "secret level: %d\n", falcon->secret); in nvkm_falcon_oneinit()
[all …]
Dxtensa.c47 return nvkm_gpuobj_new(object->engine->subdev.device, 0x10000, align, in nvkm_xtensa_cclass_bind()
60 struct nvkm_subdev *subdev = &xtensa->engine.subdev; in nvkm_xtensa_intr() local
61 struct nvkm_device *device = subdev->device; in nvkm_xtensa_intr()
69 nvkm_warn(subdev, "Watchdog interrupt, engine hung.\n"); in nvkm_xtensa_intr()
73 nvkm_debug(subdev, "Enabling FIFO_CTRL\n"); in nvkm_xtensa_intr()
82 struct nvkm_device *device = xtensa->engine.subdev.device; in nvkm_xtensa_fini()
97 struct nvkm_subdev *subdev = &xtensa->engine.subdev; in nvkm_xtensa_init() local
98 struct nvkm_device *device = subdev->device; in nvkm_xtensa_init()
112 nvkm_warn(subdev, "unable to load firmware %s\n", name); in nvkm_xtensa_init()
117 nvkm_warn(subdev, "firmware %s too large\n", name); in nvkm_xtensa_init()
/linux-4.4.14/drivers/staging/comedi/kcomedilib/
Dkcomedilib_main.c90 if (insn->subdev >= dev->n_subdevices) { in comedi_do_insn()
94 s = &dev->subdevices[insn->subdev]; in comedi_do_insn()
98 "%d not usable subdevice\n", insn->subdev); in comedi_do_insn()
138 int comedi_dio_get_config(struct comedi_device *dev, unsigned int subdev, in comedi_dio_get_config() argument
148 insn.subdev = subdev; in comedi_dio_get_config()
159 int comedi_dio_config(struct comedi_device *dev, unsigned int subdev, in comedi_dio_config() argument
167 insn.subdev = subdev; in comedi_dio_config()
174 int comedi_dio_bitfield2(struct comedi_device *dev, unsigned int subdev, in comedi_dio_bitfield2() argument
185 n_chan = comedi_get_n_channels(dev, subdev); in comedi_dio_bitfield2()
193 insn.subdev = subdev; in comedi_dio_bitfield2()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
DKbuild1 nvkm-y += nvkm/subdev/mmu/base.o
2 nvkm-y += nvkm/subdev/mmu/nv04.o
3 nvkm-y += nvkm/subdev/mmu/nv41.o
4 nvkm-y += nvkm/subdev/mmu/nv44.o
5 nvkm-y += nvkm/subdev/mmu/nv50.o
6 nvkm-y += nvkm/subdev/mmu/gf100.o
Dnv41.c72 struct nvkm_device *device = mmu->base.subdev.device; in nv41_vm_flush()
74 mutex_lock(&mmu->base.subdev.mutex); in nv41_vm_flush()
81 mutex_unlock(&mmu->base.subdev.mutex); in nv41_vm_flush()
92 struct nvkm_device *device = mmu->base.subdev.device; in nv41_mmu_oneinit()
111 struct nvkm_device *device = mmu->base.subdev.device; in nv41_mmu_init()
Dnv50.c80 struct nvkm_ram *ram = vma->vm->mmu->subdev.device->fb->ram; in nv50_vm_map()
159 struct nvkm_subdev *subdev = &mmu->subdev; in nv50_vm_flush() local
160 struct nvkm_device *device = subdev->device; in nv50_vm_flush()
163 mutex_lock(&subdev->mutex); in nv50_vm_flush()
196 nvkm_error(subdev, "vm flush timeout: engine %d\n", vme); in nv50_vm_flush()
198 mutex_unlock(&subdev->mutex); in nv50_vm_flush()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/
DKbuild1 nvkm-y += nvkm/subdev/gpio/base.o
2 nvkm-y += nvkm/subdev/gpio/nv10.o
3 nvkm-y += nvkm/subdev/gpio/nv50.o
4 nvkm-y += nvkm/subdev/gpio/g94.o
5 nvkm-y += nvkm/subdev/gpio/gf119.o
6 nvkm-y += nvkm/subdev/gpio/gk104.o
Dbase.c51 struct nvkm_device *device = gpio->subdev.device; in nvkm_gpio_find()
147 nvkm_gpio_intr(struct nvkm_subdev *subdev) in nvkm_gpio_intr() argument
149 struct nvkm_gpio *gpio = nvkm_gpio(subdev); in nvkm_gpio_intr()
164 nvkm_gpio_fini(struct nvkm_subdev *subdev, bool suspend) in nvkm_gpio_fini() argument
166 struct nvkm_gpio *gpio = nvkm_gpio(subdev); in nvkm_gpio_fini()
186 nvkm_gpio_init(struct nvkm_subdev *subdev) in nvkm_gpio_init() argument
188 struct nvkm_gpio *gpio = nvkm_gpio(subdev); in nvkm_gpio_init()
195 nvkm_gpio_dtor(struct nvkm_subdev *subdev) in nvkm_gpio_dtor() argument
197 struct nvkm_gpio *gpio = nvkm_gpio(subdev); in nvkm_gpio_dtor()
219 nvkm_subdev_ctor(&nvkm_gpio, device, index, 0, &gpio->subdev); in nvkm_gpio_new_()
Dnv50.c29 struct nvkm_device *device = gpio->subdev.device; in nv50_gpio_reset()
73 struct nvkm_device *device = gpio->subdev.device; in nv50_gpio_drive()
86 struct nvkm_device *device = gpio->subdev.device; in nv50_gpio_sense()
98 struct nvkm_device *device = gpio->subdev.device; in nv50_gpio_intr_stat()
109 struct nvkm_device *device = gpio->subdev.device; in nv50_gpio_intr_mask()
Dnv10.c31 struct nvkm_device *device = gpio->subdev.device; in nv10_gpio_sense()
54 struct nvkm_device *device = gpio->subdev.device; in nv10_gpio_drive()
85 struct nvkm_device *device = gpio->subdev.device; in nv10_gpio_intr_stat()
96 struct nvkm_device *device = gpio->subdev.device; in nv10_gpio_intr_mask()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/
Dgk20a.c138 struct device *dev = node->base.imem->base.subdev.device->dev; in gk20a_instobj_cpu_map_dma()
185 nvkm_debug(&imem->base.subdev, "(GC) vaddr used: %x/%x\n", in gk20a_instmem_vaddr_gc()
196 struct nvkm_ltc *ltc = imem->base.subdev.device->ltc; in gk20a_instobj_acquire()
217 nvkm_error(&imem->base.subdev, "cannot map instobj - " in gk20a_instobj_acquire()
223 nvkm_debug(&imem->base.subdev, "vaddr used: %x/%x\n", in gk20a_instobj_acquire()
237 struct nvkm_ltc *ltc = imem->base.subdev.device->ltc; in gk20a_instobj_release()
299 nvkm_debug(&imem->base.subdev, "vaddr used: %x/%x\n", in gk20a_instobj_dtor()
311 struct device *dev = imem->base.subdev.device->dev; in gk20a_instobj_dtor_dma()
330 struct device *dev = imem->base.subdev.device->dev; in gk20a_instobj_dtor_iommu()
394 struct nvkm_subdev *subdev = &imem->base.subdev; in gk20a_instobj_ctor_dma() local
[all …]
DKbuild1 nvkm-y += nvkm/subdev/instmem/base.o
2 nvkm-y += nvkm/subdev/instmem/nv04.o
3 nvkm-y += nvkm/subdev/instmem/nv40.o
4 nvkm-y += nvkm/subdev/instmem/nv50.o
5 nvkm-y += nvkm/subdev/instmem/gk20a.o
Dnv04.c68 struct nvkm_device *device = iobj->imem->base.subdev.device; in nv04_instobj_acquire()
81 struct nvkm_device *device = iobj->imem->base.subdev.device; in nv04_instobj_rd32()
89 struct nvkm_device *device = iobj->imem->base.subdev.device; in nv04_instobj_wr32()
97 mutex_lock(&iobj->imem->base.subdev.mutex); in nv04_instobj_dtor()
99 mutex_unlock(&iobj->imem->base.subdev.mutex); in nv04_instobj_dtor()
130 mutex_lock(&imem->base.subdev.mutex); in nv04_instobj_new()
133 mutex_unlock(&imem->base.subdev.mutex); in nv04_instobj_new()
144 return nvkm_rd32(imem->subdev.device, 0x700000 + addr); in nv04_instmem_rd32()
150 nvkm_wr32(imem->subdev.device, 0x700000 + addr, data); in nv04_instmem_wr32()
157 struct nvkm_device *device = imem->base.subdev.device; in nv04_instmem_oneinit()
Dnv50.c74 struct nvkm_subdev *subdev = &iobj->imem->base.subdev; in nv50_instobj_boot() local
75 struct nvkm_device *device = subdev->device; in nv50_instobj_boot()
90 nvkm_warn(subdev, "PRAMIN ioremap failed\n"); in nv50_instobj_boot()
94 nvkm_warn(subdev, "PRAMIN exhausted\n"); in nv50_instobj_boot()
110 struct nvkm_bar *bar = imem->base.subdev.device->bar; in nv50_instobj_acquire()
129 struct nvkm_device *device = imem->base.subdev.device; in nv50_instobj_rd32()
147 struct nvkm_device *device = imem->base.subdev.device; in nv50_instobj_wr32()
169 struct nvkm_ram *ram = iobj->imem->base.subdev.device->fb->ram; in nv50_instobj_dtor()
198 struct nvkm_ram *ram = imem->base.subdev.device->fb->ram; in nv50_instobj_new()
Dbase.c68 nvkm_bar_flush(iobj->imem->subdev.device->bar); in nvkm_instobj_release()
236 nvkm_instmem_fini(struct nvkm_subdev *subdev, bool suspend) in nvkm_instmem_fini() argument
238 struct nvkm_instmem *imem = nvkm_instmem(subdev); in nvkm_instmem_fini()
263 nvkm_instmem_oneinit(struct nvkm_subdev *subdev) in nvkm_instmem_oneinit() argument
265 struct nvkm_instmem *imem = nvkm_instmem(subdev); in nvkm_instmem_oneinit()
272 nvkm_instmem_init(struct nvkm_subdev *subdev) in nvkm_instmem_init() argument
274 struct nvkm_instmem *imem = nvkm_instmem(subdev); in nvkm_instmem_init()
293 nvkm_instmem_dtor(struct nvkm_subdev *subdev) in nvkm_instmem_dtor() argument
295 struct nvkm_instmem *imem = nvkm_instmem(subdev); in nvkm_instmem_dtor()
314 nvkm_subdev_ctor(&nvkm_instmem, device, index, 0, &imem->subdev); in nvkm_instmem_ctor()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/volt/
Dbase.c52 struct nvkm_subdev *subdev = &volt->subdev; in nvkm_volt_set() local
61 nvkm_debug(subdev, "set %duv: %d\n", uv, ret); in nvkm_volt_set()
71 struct nvkm_bios *bios = volt->subdev.device->bios; in nvkm_volt_map()
148 nvkm_volt_init(struct nvkm_subdev *subdev) in nvkm_volt_init() argument
150 struct nvkm_volt *volt = nvkm_volt(subdev); in nvkm_volt_init()
154 nvkm_debug(subdev, "current voltage unknown\n"); in nvkm_volt_init()
157 nvkm_debug(subdev, "current voltage: %duv\n", ret); in nvkm_volt_init()
162 nvkm_volt_dtor(struct nvkm_subdev *subdev) in nvkm_volt_dtor() argument
164 return nvkm_volt(subdev); in nvkm_volt_dtor()
180 nvkm_subdev_ctor(&nvkm_volt, device, index, 0, &volt->subdev); in nvkm_volt_ctor()
[all …]
DKbuild1 nvkm-y += nvkm/subdev/volt/base.o
2 nvkm-y += nvkm/subdev/volt/gpio.o
3 nvkm-y += nvkm/subdev/volt/nv40.o
4 nvkm-y += nvkm/subdev/volt/gk104.o
5 nvkm-y += nvkm/subdev/volt/gk20a.o
Dgpio.c37 struct nvkm_gpio *gpio = volt->subdev.device->gpio; in nvkm_voltgpio_get()
56 struct nvkm_gpio *gpio = volt->subdev.device->gpio; in nvkm_voltgpio_set()
73 struct nvkm_subdev *subdev = &volt->subdev; in nvkm_voltgpio_init() local
74 struct nvkm_gpio *gpio = subdev->device->gpio; in nvkm_voltgpio_init()
90 nvkm_debug(subdev, "VID bit %d has no GPIO\n", i); in nvkm_voltgpio_init()
Dgk20a.c122 struct nvkm_subdev *subdev = &volt->base.subdev; in gk20a_volt_vid_set() local
124 nvkm_debug(subdev, "set voltage as %duv\n", volt->base.vid[vid].uv); in gk20a_volt_vid_set()
132 struct nvkm_subdev *subdev = &volt->base.subdev; in gk20a_volt_set_id() local
137 nvkm_debug(subdev, "prev=%d, target=%d, condition=%d\n", in gk20a_volt_set_id()
171 nvkm_info(&volt->base.subdev, "The default voltage is %duV\n", uv); in gk20a_volt_new()
176 nvkm_debug(&volt->base.subdev, "%s - vid_nr = %d\n", __func__, in gk20a_volt_new()
183 nvkm_debug(&volt->base.subdev, "%2d: vid=%d, uv=%d\n", i, in gk20a_volt_new()
Dgk104.c41 struct nvkm_device *device = base->subdev.device; in gk104_volt_get()
54 struct nvkm_device *device = base->subdev.device; in gk104_volt_set()
105 nvkm_error(&volt->base.subdev, in gk104_volt_new()
116 nvkm_debug(&volt->base.subdev, "Using %s mode\n", mode); in gk104_volt_new()
/linux-4.4.14/drivers/media/usb/uvc/
Duvc_entity.c36 : &entity->subdev.entity; in uvc_mc_register_entity()
54 : &remote->subdev.entity; in uvc_mc_register_entity()
68 return v4l2_device_register_subdev(&chain->dev->vdev, &entity->subdev); in uvc_mc_register_entity()
77 media_entity_cleanup(&entity->subdev.entity); in uvc_mc_cleanup_entity()
87 v4l2_subdev_init(&entity->subdev, &uvc_subdev_ops); in uvc_mc_init_entity()
88 strlcpy(entity->subdev.name, entity->name, in uvc_mc_init_entity()
89 sizeof(entity->subdev.name)); in uvc_mc_init_entity()
91 ret = media_entity_init(&entity->subdev.entity, in uvc_mc_init_entity()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/cipher/
Dg84.c37 int ret = nvkm_gpuobj_new(object->engine->subdev.device, 16, in g84_cipher_oclass_bind()
59 return nvkm_gpuobj_new(object->engine->subdev.device, 256, in g84_cipher_cclass_bind()
82 struct nvkm_subdev *subdev = &cipher->subdev; in g84_cipher_intr() local
83 struct nvkm_device *device = subdev->device; in g84_cipher_intr()
96 nvkm_error(subdev, "%08x [%s] ch %d [%010llx %s] " in g84_cipher_intr()
111 struct nvkm_device *device = cipher->subdev.device; in g84_cipher_init()
/linux-4.4.14/drivers/staging/comedi/drivers/
Dadl_pci7x3x.c161 int subdev; in adl_pci7x3x_auto_attach() local
181 subdev = 0; in adl_pci7x3x_auto_attach()
186 s = &dev->subdevices[subdev]; in adl_pci7x3x_auto_attach()
197 subdev++; in adl_pci7x3x_auto_attach()
201 s = &dev->subdevices[subdev]; in adl_pci7x3x_auto_attach()
212 subdev++; in adl_pci7x3x_auto_attach()
219 s = &dev->subdevices[subdev]; in adl_pci7x3x_auto_attach()
230 subdev++; in adl_pci7x3x_auto_attach()
234 s = &dev->subdevices[subdev]; in adl_pci7x3x_auto_attach()
245 subdev++; in adl_pci7x3x_auto_attach()
Dpcl726.c323 int subdev; in pcl726_attach() local
358 subdev = board->have_dio ? 3 : 1; in pcl726_attach()
360 subdev++; in pcl726_attach()
361 ret = comedi_alloc_subdevices(dev, subdev); in pcl726_attach()
365 subdev = 0; in pcl726_attach()
368 s = &dev->subdevices[subdev++]; in pcl726_attach()
382 s = &dev->subdevices[subdev++]; in pcl726_attach()
391 s = &dev->subdevices[subdev++]; in pcl726_attach()
402 s = &dev->subdevices[subdev++]; in pcl726_attach()
Dpcl730.c268 int subdev; in pcl730_attach() local
279 subdev = 0; in pcl730_attach()
283 s = &dev->subdevices[subdev++]; in pcl730_attach()
299 s = &dev->subdevices[subdev++]; in pcl730_attach()
313 s = &dev->subdevices[subdev++]; in pcl730_attach()
323 s = &dev->subdevices[subdev++]; in pcl730_attach()
/linux-4.4.14/drivers/media/i2c/smiapp/
Dsmiapp-core.c1360 static int smiapp_set_power(struct v4l2_subdev *subdev, int on) in smiapp_set_power() argument
1362 struct smiapp_sensor *sensor = to_smiapp_sensor(subdev); in smiapp_set_power()
1538 static int smiapp_set_stream(struct v4l2_subdev *subdev, int enable) in smiapp_set_stream() argument
1540 struct smiapp_sensor *sensor = to_smiapp_sensor(subdev); in smiapp_set_stream()
1559 static int smiapp_enum_mbus_code(struct v4l2_subdev *subdev, in smiapp_enum_mbus_code() argument
1563 struct i2c_client *client = v4l2_get_subdevdata(subdev); in smiapp_enum_mbus_code()
1564 struct smiapp_sensor *sensor = to_smiapp_sensor(subdev); in smiapp_enum_mbus_code()
1572 subdev->name, code->pad, code->index); in smiapp_enum_mbus_code()
1574 if (subdev != &sensor->src->sd || code->pad != SMIAPP_PAD_SRC) { in smiapp_enum_mbus_code()
1602 static u32 __smiapp_get_mbus_code(struct v4l2_subdev *subdev, in __smiapp_get_mbus_code() argument
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/ce/
Dgk104.c31 const u32 base = (ce->subdev.index - NVKM_ENGINE_CE0) * 0x1000; in gk104_ce_intr()
32 struct nvkm_subdev *subdev = &ce->subdev; in gk104_ce_intr() local
33 struct nvkm_device *device = subdev->device; in gk104_ce_intr()
36 nvkm_warn(subdev, "intr %08x\n", stat); in gk104_ce_intr()
Dgt215.c45 struct nvkm_subdev *subdev = &ce->engine.subdev; in gt215_ce_intr() local
46 struct nvkm_device *device = subdev->device; in gt215_ce_intr()
47 const u32 base = (subdev->index - NVKM_ENGINE_CE0) * 0x1000; in gt215_ce_intr()
56 nvkm_error(subdev, "DISPATCH_ERROR %04x [%s] ch %d [%010llx %s] " in gt215_ce_intr()
/linux-4.4.14/drivers/staging/media/omap4iss/
Diss.c420 struct v4l2_subdev *subdev; in iss_pipeline_pm_power_one() local
422 subdev = media_entity_type(entity) == MEDIA_ENT_T_V4L2_SUBDEV in iss_pipeline_pm_power_one()
425 if (entity->use_count == 0 && change > 0 && subdev) { in iss_pipeline_pm_power_one()
428 ret = v4l2_subdev_call(subdev, core, s_power, 1); in iss_pipeline_pm_power_one()
436 if (entity->use_count == 0 && change < 0 && subdev) in iss_pipeline_pm_power_one()
437 v4l2_subdev_call(subdev, core, s_power, 0); in iss_pipeline_pm_power_one()
582 struct v4l2_subdev *subdev; in iss_pipeline_disable() local
601 subdev = media_entity_to_v4l2_subdev(entity); in iss_pipeline_disable()
602 ret = v4l2_subdev_call(subdev, video, s_stream, 0); in iss_pipeline_disable()
605 subdev->name); in iss_pipeline_disable()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/fuse/
DKbuild1 nvkm-y += nvkm/subdev/fuse/base.o
2 nvkm-y += nvkm/subdev/fuse/nv50.o
3 nvkm-y += nvkm/subdev/fuse/gf100.o
4 nvkm-y += nvkm/subdev/fuse/gm107.o
Dbase.c33 nvkm_fuse_dtor(struct nvkm_subdev *subdev) in nvkm_fuse_dtor() argument
35 return nvkm_fuse(subdev); in nvkm_fuse_dtor()
50 nvkm_subdev_ctor(&nvkm_fuse, device, index, 0, &fuse->subdev); in nvkm_fuse_new_()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/ibus/
DKbuild1 nvkm-y += nvkm/subdev/ibus/gf100.o
2 nvkm-y += nvkm/subdev/ibus/gf117.o
3 nvkm-y += nvkm/subdev/ibus/gk104.o
4 nvkm-y += nvkm/subdev/ibus/gk20a.o
/linux-4.4.14/drivers/media/i2c/soc_camera/
Dmt9m111.c205 struct v4l2_subdev subdev; member
233 return container_of(i2c_get_clientdata(client), struct mt9m111, subdev); in to_mt9m111()
314 struct i2c_client *client = v4l2_get_subdevdata(&mt9m111->subdev); in mt9m111_set_context()
322 struct i2c_client *client = v4l2_get_subdevdata(&mt9m111->subdev); in mt9m111_setup_rect_ctx()
336 struct i2c_client *client = v4l2_get_subdevdata(&mt9m111->subdev); in mt9m111_setup_geometry()
367 struct i2c_client *client = v4l2_get_subdevdata(&mt9m111->subdev); in mt9m111_enable()
373 struct i2c_client *client = v4l2_get_subdevdata(&mt9m111->subdev); in mt9m111_reset()
389 struct mt9m111 *mt9m111 = container_of(sd, struct mt9m111, subdev); in mt9m111_s_crop()
426 struct mt9m111 *mt9m111 = container_of(sd, struct mt9m111, subdev); in mt9m111_g_crop()
455 struct mt9m111 *mt9m111 = container_of(sd, struct mt9m111, subdev); in mt9m111_get_fmt()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/sec/
Dg98.c45 struct nvkm_subdev *subdev = &sec->engine.subdev; in g98_sec_intr() local
46 struct nvkm_device *device = subdev->device; in g98_sec_intr()
55 nvkm_error(subdev, "DISPATCH_ERROR %04x [%s] ch %d [%010llx %s] " in g98_sec_intr()
/linux-4.4.14/drivers/staging/media/davinci_vpfe/
Dvpfe_video.c52 struct v4l2_subdev *subdev; in vpfe_update_current_ext_subdev() local
62 subdev = media_entity_to_v4l2_subdev(remote->entity); in vpfe_update_current_ext_subdev()
65 if (!strcmp(vpfe_cfg->sub_devs[i].module_name, subdev->name)) { in vpfe_update_current_ext_subdev()
80 video->current_ext_subdev->subdev = vpfe_dev->sd[i]; in vpfe_update_current_ext_subdev()
104 struct v4l2_subdev *subdev; in __vpfe_video_get_format() local
109 subdev = vpfe_video_remote_subdev(video, &pad); in __vpfe_video_get_format()
110 if (subdev == NULL) in __vpfe_video_get_format()
117 ret = v4l2_subdev_call(subdev, pad, get_fmt, NULL, &fmt); in __vpfe_video_get_format()
216 struct v4l2_subdev *subdev; in vpfe_video_validate_pipeline() local
226 subdev = vpfe_video_remote_subdev(pipe->outputs[0], NULL); in vpfe_video_validate_pipeline()
[all …]
Ddm365_resizer.c491 struct device *dev = resizer->crop_resizer.subdev.v4l2_dev->dev; in resizer_configure_in_continious_mode()
669 struct device *dev = resizer->crop_resizer.subdev.v4l2_dev->dev; in resizer_configure_in_single_shot_mode()
944 struct device *dev = resizer->crop_resizer.subdev.v4l2_dev->dev; in resizer_get_configuration()
1212 struct device *dev = resizer->crop_resizer.subdev.v4l2_dev->dev; in resizer_ioctl()
1216 if (&resizer->crop_resizer.subdev != sd) in resizer_ioctl()
1268 if (&resizer->crop_resizer.subdev != sd) in resizer_set_stream()
1305 if (&resizer->crop_resizer.subdev == sd) in __resizer_get_format()
1307 if (&resizer->resizer_a.subdev == sd) in __resizer_get_format()
1309 if (&resizer->resizer_b.subdev == sd) in __resizer_get_format()
1332 if ((&resizer->resizer_a.subdev == sd && pad == RESIZER_PAD_SINK) || in resizer_try_format()
[all …]
/linux-4.4.14/drivers/staging/comedi/
Dcomedilib.h24 int comedi_dio_get_config(struct comedi_device *dev, unsigned int subdev,
26 int comedi_dio_config(struct comedi_device *dev, unsigned int subdev,
28 int comedi_dio_bitfield2(struct comedi_device *dev, unsigned int subdev,
/linux-4.4.14/drivers/hwtracing/intel_th/
Dcore.c431 struct intel_th_subdevice *subdev = &intel_th_subdevices[i]; in intel_th_populate() local
435 thdev = intel_th_device_alloc(th, subdev->type, subdev->name, in intel_th_populate()
436 subdev->id); in intel_th_populate()
442 memcpy(res, subdev->res, in intel_th_populate()
443 sizeof(struct resource) * subdev->nres); in intel_th_populate()
445 for (r = 0; r < subdev->nres; r++) { in intel_th_populate()
464 subdev->name, r, &res[r]); in intel_th_populate()
470 err = intel_th_device_add_resources(thdev, res, subdev->nres); in intel_th_populate()
476 if (subdev->type == INTEL_TH_OUTPUT) { in intel_th_populate()
478 thdev->output.type = subdev->otype; in intel_th_populate()
[all …]

123