Home
last modified time | relevance | path

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

12

/linux-4.1.27/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 …]
Dnv50.c146 nv50_fb_intr(struct nvkm_subdev *subdev) in nv50_fb_intr() argument
148 struct nvkm_device *device = nv_device(subdev); in nv50_fb_intr()
150 struct nv50_fb_priv *priv = (void *)subdev; in nv50_fb_intr()
188 engine = nvkm_engine(subdev, en->data2); in nv50_fb_intr()
191 engine = nvkm_engine(subdev, NVDEV_ENGINE_MSVLD); in nv50_fb_intr()
193 engine = nvkm_engine(subdev, NVDEV_ENGINE_SEC); in nv50_fb_intr()
195 engine = nvkm_engine(subdev, NVDEV_ENGINE_MSPDEC); in nv50_fb_intr()
Dgf100.c38 gf100_fb_intr(struct nvkm_subdev *subdev) in gf100_fb_intr() argument
40 struct gf100_fb_priv *priv = (void *)subdev; in gf100_fb_intr()
/linux-4.1.27/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.1.27/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 …]
Dramcfg.c30 nvbios_ramcfg_strap(struct nvkm_subdev *subdev) in nvbios_ramcfg_strap() argument
32 return (nv_rd32(subdev, 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 = nvkm_bios(subdev); in nvbios_ramcfg_index()
54 u8 strap = nvbios_ramcfg_strap(subdev); in nvbios_ramcfg_index()
Dinit.c186 return nv_rd32(init->subdev, reg); in init_rd32()
195 nv_wr32(init->subdev, reg, val); in init_wr32()
203 u32 tmp = nv_rd32(init->subdev, reg); in init_mask()
204 nv_wr32(init->subdev, reg, (tmp & ~mask) | val); in init_mask()
214 return nv_rdport(init->subdev, init->crtc, port); in init_rdport()
222 nv_wrport(init->subdev, init->crtc, port, value); in init_wrport()
228 struct nvkm_subdev *subdev = init->subdev; in init_rdvgai() local
231 return nv_rdvgai(subdev, head, port, index); in init_rdvgai()
240 if (nv_device(init->subdev)->card_type < NV_50) { in init_wrvgai()
247 nv_wrvgai(init->subdev, head, port, index, value); in init_wrvgai()
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/core/
Dsubdev.c35 object = nv_device(obj)->subdev[idx]; in nvkm_subdev()
40 nvkm_subdev_reset(struct nvkm_object *subdev) in nvkm_subdev_reset() argument
42 nv_trace(subdev, "resetting...\n"); in nvkm_subdev_reset()
43 nv_ofuncs(subdev)->fini(subdev, false); in nvkm_subdev_reset()
44 nv_debug(subdev, "reset\n"); in nvkm_subdev_reset()
48 nvkm_subdev_init(struct nvkm_subdev *subdev) in nvkm_subdev_init() argument
50 int ret = nvkm_object_init(&subdev->object); in nvkm_subdev_init()
54 nvkm_subdev_reset(&subdev->object); in nvkm_subdev_init()
65 nvkm_subdev_fini(struct nvkm_subdev *subdev, bool suspend) in nvkm_subdev_fini() argument
67 if (subdev->unit) { in nvkm_subdev_fini()
[all …]
Dprintk.c62 struct nvkm_object *subdev; in nv_printk_() local
66 subdev = object; in nv_printk_()
67 while (subdev && !nv_iclass(subdev, NV_SUBDEV_CLASS)) in nv_printk_()
68 subdev = subdev->parent; in nv_printk_()
70 subdev = &object->engine->subdev.object; in nv_printk_()
73 device = subdev; in nv_printk_()
77 if (object != subdev) { in nv_printk_()
83 if (level > nv_subdev(subdev)->debug) in nv_printk_()
87 name[level], nv_subdev(subdev)->name, in nv_printk_()
Dengctx.c128 struct nvkm_subdev *subdev = nv_subdev(object->engine); in nvkm_engctx_init() local
147 subdev->name, ret); in nvkm_engctx_init()
151 nv_debug(parent, "attached %s context\n", subdev->name); in nvkm_engctx_init()
159 struct nvkm_subdev *subdev = nv_subdev(object->engine); in nvkm_engctx_fini() local
174 subdev->name, ret); in nvkm_engctx_fini()
178 nv_debug(parent, "detached %s context\n", subdev->name); in nvkm_engctx_fini()
Dobject.c181 ret = nvkm_object_inc(&object->engine->subdev.object); in nvkm_object_inc()
202 nvkm_object_dec(&object->engine->subdev.object, false); in nvkm_object_inc()
227 nvkm_object_dec(&object->engine->subdev.object, false); in nvkm_object_decf()
254 ret = nvkm_object_dec(&object->engine->subdev.object, true); in nvkm_object_decs()
276 rret = nvkm_object_inc(&object->engine->subdev.object); in nvkm_object_decs()
DKbuild17 nvkm-y += nvkm/core/subdev.o
Dramht.c97 &parent->engine->subdev.object : parent, /* <nv50 ramht */ in nvkm_ramht_new()
Dgpuobj.c226 engine = &engine->engine->subdev.object; in nvkm_gpuobj_new()
306 ret = nvkm_object_create(parent, &parent->engine->subdev.object, in nvkm_gpuobj_dup()
/linux-4.1.27/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.1.27/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.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
DKbuild1 nvkm-y += nvkm/subdev/i2c/base.o
2 nvkm-y += nvkm/subdev/i2c/anx9805.o
3 nvkm-y += nvkm/subdev/i2c/aux.o
4 nvkm-y += nvkm/subdev/i2c/bit.o
5 nvkm-y += nvkm/subdev/i2c/pad.o
6 nvkm-y += nvkm/subdev/i2c/padnv04.o
7 nvkm-y += nvkm/subdev/i2c/padg94.o
8 nvkm-y += nvkm/subdev/i2c/padgm204.o
9 nvkm-y += nvkm/subdev/i2c/nv04.o
10 nvkm-y += nvkm/subdev/i2c/nv4e.o
[all …]
/linux-4.1.27/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 …]
Dgm204.c105 gm204_devinit_post(struct nvkm_subdev *subdev, bool post) in gm204_devinit_post() argument
107 struct nv50_devinit_priv *priv = (void *)nvkm_devinit(subdev); in gm204_devinit_post()
/linux-4.1.27/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.c170 nv40_therm_intr(struct nvkm_subdev *subdev) in nv40_therm_intr() argument
172 struct nvkm_therm *therm = nvkm_therm(subdev); in nv40_therm_intr()
Dg84.c138 g84_therm_intr(struct nvkm_subdev *subdev) in g84_therm_intr() argument
140 struct nvkm_therm *therm = nvkm_therm(subdev); in g84_therm_intr()
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/core/
Dsubdev.h31 nv_subidx(struct nvkm_subdev *subdev) in nv_subidx() argument
33 return nv_hclass(subdev) & 0xff; in nv_subidx()
64 struct nvkm_subdev *subdev = nv_subdev(obj); in nv_rd08() local
65 u8 data = ioread8(subdev->mmio + addr); in nv_rd08()
66 nv_spam(subdev, "nv_rd08 0x%06x 0x%02x\n", addr, data); in nv_rd08()
73 struct nvkm_subdev *subdev = nv_subdev(obj); in nv_rd16() local
74 u16 data = ioread16_native(subdev->mmio + addr); in nv_rd16()
75 nv_spam(subdev, "nv_rd16 0x%06x 0x%04x\n", addr, data); in nv_rd16()
82 struct nvkm_subdev *subdev = nv_subdev(obj); in nv_rd32() local
83 u32 data = ioread32_native(subdev->mmio + addr); in nv_rd32()
[all …]
Dengine.h9 struct nvkm_subdev subdev; member
33 return nv_subidx(&engine->subdev); in nv_engidx()
43 nvkm_subdev_destroy(&(p)->subdev)
45 nvkm_subdev_init(&(p)->subdev)
47 nvkm_subdev_fini(&(p)->subdev, (s))
Ddevice.h39 struct nvkm_object *subdev[NVDEV_SUBDEV_NR]; member
/linux-4.1.27/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 …]
Dpllnv04.c29 getMNP_single(struct nvkm_subdev *subdev, struct nvbios_pll *info, int clk, in getMNP_single() argument
40 struct nvkm_bios *bios = nvkm_bios(subdev); in getMNP_single()
128 getMNP_double(struct nvkm_subdev *subdev, struct nvbios_pll *info, int clk, in getMNP_double() argument
139 int chip_version = nvkm_bios(subdev)->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 nv_error(subdev, "unable to compute acceptable pll values\n"); in nv04_pll_calc()
Dpllgt215.c30 gt215_pll_calc(struct nvkm_subdev *subdev, struct nvbios_pll *info, in gt215_pll_calc() argument
82 nv_error(subdev, "unable to find matching pll values\n"); in gt215_pll_calc()
/linux-4.1.27/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()
168 static int sru_enum_mbus_code(struct v4l2_subdev *subdev, in sru_enum_mbus_code() argument
176 struct vsp1_sru *sru = to_sru(subdev); in sru_enum_mbus_code()
199 static int sru_enum_frame_size(struct v4l2_subdev *subdev, in sru_enum_frame_size() argument
203 struct vsp1_sru *sru = to_sru(subdev); in sru_enum_frame_size()
233 static int sru_get_format(struct v4l2_subdev *subdev, struct v4l2_subdev_pad_config *cfg, in sru_get_format() argument
236 struct vsp1_sru *sru = to_sru(subdev); in sru_get_format()
295 static int sru_set_format(struct v4l2_subdev *subdev, struct v4l2_subdev_pad_config *cfg, in sru_set_format() argument
298 struct vsp1_sru *sru = to_sru(subdev); in sru_set_format()
[all …]
Dvsp1_entity.c47 if (!entity->subdev.ctrl_handler) in vsp1_entity_set_streaming()
50 ret = v4l2_ctrl_handler_setup(entity->subdev.ctrl_handler); in vsp1_entity_set_streaming()
71 return v4l2_subdev_get_try_format(&entity->subdev, cfg, pad); in vsp1_entity_get_pad_format()
88 void vsp1_entity_init_formats(struct v4l2_subdev *subdev, in vsp1_entity_init_formats() argument
94 for (pad = 0; pad < subdev->entity.num_pads - 1; ++pad) { in vsp1_entity_init_formats()
101 v4l2_subdev_call(subdev, pad, set_fmt, cfg, &format); in vsp1_entity_init_formats()
105 static int vsp1_entity_open(struct v4l2_subdev *subdev, in vsp1_entity_open() argument
108 vsp1_entity_init_formats(subdev, fh->pad); in vsp1_entity_open()
130 source = container_of(local->entity, struct vsp1_entity, subdev.entity); in vsp1_entity_link_setup()
220 return media_entity_init(&entity->subdev.entity, num_pads, in vsp1_entity_init()
[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_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_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_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_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_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_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 …]
Dvsp1_drv.c51 pipe = to_vsp1_pipeline(&wpf->entity.subdev.entity); in vsp1_irq_handler()
80 struct media_entity *entity = &sink->subdev.entity; in vsp1_create_links()
104 ret = media_entity_create_link(&source->subdev.entity, in vsp1_create_links()
266 &vsp1->wpf[0]->entity.subdev.entity, RWPF_PAD_SOURCE, in vsp1_create_entities()
267 &vsp1->lif->entity.subdev.entity, LIF_PAD_SINK, 0); in vsp1_create_entities()
275 &entity->subdev); in vsp1_create_entities()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/mc/
DKbuild1 nvkm-y += nvkm/subdev/mc/base.o
2 nvkm-y += nvkm/subdev/mc/nv04.o
3 nvkm-y += nvkm/subdev/mc/nv40.o
4 nvkm-y += nvkm/subdev/mc/nv44.o
5 nvkm-y += nvkm/subdev/mc/nv4c.o
6 nvkm-y += nvkm/subdev/mc/nv50.o
7 nvkm-y += nvkm/subdev/mc/g94.o
8 nvkm-y += nvkm/subdev/mc/g98.o
9 nvkm-y += nvkm/subdev/mc/gf100.o
10 nvkm-y += nvkm/subdev/mc/gf106.o
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bus/
Dnv31.c28 nv31_bus_intr(struct nvkm_subdev *subdev) in nv31_bus_intr() argument
30 struct nvkm_bus *pbus = nvkm_bus(subdev); in nv31_bus_intr()
35 subdev = nvkm_subdev(pbus, NVDEV_SUBDEV_GPIO); in nv31_bus_intr()
36 if (subdev && subdev->intr) in nv31_bus_intr()
37 subdev->intr(subdev); in nv31_bus_intr()
53 subdev = nvkm_subdev(pbus, NVDEV_SUBDEV_THERM); in nv31_bus_intr()
54 if (subdev && subdev->intr) in nv31_bus_intr()
55 subdev->intr(subdev); in nv31_bus_intr()
Dnv04.c28 nv04_bus_intr(struct nvkm_subdev *subdev) in nv04_bus_intr() argument
30 struct nvkm_bus *pbus = nvkm_bus(subdev); in nv04_bus_intr()
40 subdev = nvkm_subdev(subdev, NVDEV_SUBDEV_GPIO); in nv04_bus_intr()
41 if (subdev && subdev->intr) in nv04_bus_intr()
42 subdev->intr(subdev); in nv04_bus_intr()
DKbuild1 nvkm-y += nvkm/subdev/bus/hwsq.o
2 nvkm-y += nvkm/subdev/bus/nv04.o
3 nvkm-y += nvkm/subdev/bus/nv31.o
4 nvkm-y += nvkm/subdev/bus/nv50.o
5 nvkm-y += nvkm/subdev/bus/g94.o
6 nvkm-y += nvkm/subdev/bus/gf100.o
Dnv50.c46 nv50_bus_intr(struct nvkm_subdev *subdev) in nv50_bus_intr() argument
48 struct nvkm_bus *pbus = nvkm_bus(subdev); in nv50_bus_intr()
64 subdev = nvkm_subdev(pbus, NVDEV_SUBDEV_THERM); in nv50_bus_intr()
65 if (subdev && subdev->intr) in nv50_bus_intr()
66 subdev->intr(subdev); in nv50_bus_intr()
Dhwsq.h6 struct nvkm_subdev *subdev; member
60 hwsq_init(struct hwsq *ram, struct nvkm_subdev *subdev) in hwsq_init() argument
62 struct nvkm_bus *pbus = nvkm_bus(subdev); in hwsq_init()
70 ram->subdev = subdev; in hwsq_init()
78 if (ram->subdev) { in hwsq_exec()
80 ram->subdev = NULL; in hwsq_exec()
89 reg->data = nv_rd32(ram->subdev, reg->addr); in hwsq_rd32()
Dgf100.c28 gf100_bus_intr(struct nvkm_subdev *subdev) in gf100_bus_intr() argument
30 struct nvkm_bus *pbus = nvkm_bus(subdev); in gf100_bus_intr()
/linux-4.1.27/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.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
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/gf110.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
Dbase.c40 struct nvkm_subdev *subdev = nv_subdev(pmu); in nvkm_pmu_send() local
53 mutex_lock(&subdev->mutex); in nvkm_pmu_send()
80 mutex_unlock(&subdev->mutex); in nvkm_pmu_send()
138 nvkm_pmu_intr(struct nvkm_subdev *subdev) in nvkm_pmu_intr() argument
140 struct nvkm_pmu *pmu = (void *)subdev; in nvkm_pmu_intr()
/linux-4.1.27/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.1.27/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.c51 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in adp1653_update_hw()
90 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in adp1653_get_fault()
119 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in adp1653_strobe()
263 flash->subdev.ctrl_handler = &flash->ctrls; in adp1653_init_controls()
274 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in adp1653_init_device()
311 ret = flash->platform_data->power(&flash->subdev, on); in __adp1653_set_power()
320 flash->platform_data->power(&flash->subdev, 0); in __adp1653_set_power()
326 adp1653_set_power(struct v4l2_subdev *subdev, int on) in adp1653_set_power() argument
328 struct adp1653_flash *flash = to_adp1653_flash(subdev); in adp1653_set_power()
382 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 …]
Ds5k6a3.c59 struct v4l2_subdev subdev; member
78 return container_of(sd, struct s5k6a3, subdev); in sd_to_s5k6a3()
130 return cfg ? v4l2_subdev_get_try_format(&sensor->subdev, cfg, pad) : NULL; in __s5k6a3_get_format()
326 sd = &sensor->subdev; in s5k6a3_probe()
328 sensor->subdev.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; in s5k6a3_probe()
Dak881x.c32 struct v4l2_subdev subdev; member
60 return container_of(i2c_get_clientdata(client), struct ak881x, subdev); in to_ak881x()
245 v4l2_i2c_subdev_init(&ak881x->subdev, client, &ak881x_subdev_ops); in ak881x_probe()
303 v4l2_device_unregister_subdev(&ak881x->subdev); in ak881x_remove()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/device/
Dbase.c76 struct nvkm_object *subdev[NVDEV_SUBDEV_NR]; member
258 nvkm_object_ref(NULL, &devobj->subdev[i]); in nvkm_devobj_dtor()
461 if (device->subdev[i]) {
462 nvkm_object_ref(device->subdev[i], &devobj->subdev[i]);
467 NULL, i, &devobj->subdev[i]);
473 device->subdev[i] = devobj->subdev[i];
485 struct nvkm_object *subdev = devobj->subdev[c++]; local
486 if (subdev && !nv_iclass(subdev, NV_ENGINE_CLASS)) {
487 ret = nvkm_object_inc(subdev);
492 if (subdev) {
[all …]
/linux-4.1.27/drivers/media/platform/soc_camera/
Dsh_mobile_csi2.c38 struct v4l2_subdev subdev; member
51 struct sh_csi2 *priv = container_of(sd, struct sh_csi2, subdev); in sh_csi2_try_fmt()
99 struct sh_csi2 *priv = container_of(sd, struct sh_csi2, subdev); in sh_csi2_s_fmt()
136 struct sh_csi2 *priv = container_of(sd, struct sh_csi2, subdev); in sh_csi2_g_mbus_config()
195 struct sh_csi2 *priv = container_of(sd, struct sh_csi2, subdev); in sh_csi2_s_mbus_config()
263 struct device *dev = v4l2_get_subdevdata(&priv->subdev); in sh_csi2_client_connect()
265 struct soc_camera_device *icd = v4l2_get_subdev_hostdata(&priv->subdev); in sh_csi2_client_connect()
295 pm_runtime_put(v4l2_get_subdevdata(&priv->subdev)); in sh_csi2_client_disconnect()
300 struct sh_csi2 *priv = container_of(sd, struct sh_csi2, subdev); in sh_csi2_s_power()
356 priv->subdev.owner = THIS_MODULE; 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()
157 platform_set_drvdata(pdev, &priv->subdev); in soc_camera_platform_probe()
163 v4l2_subdev_init(&priv->subdev, &platform_subdev_ops); in soc_camera_platform_probe()
164 v4l2_set_subdevdata(&priv->subdev, p); in soc_camera_platform_probe()
165 strncpy(priv->subdev.name, dev_name(&pdev->dev), V4L2_SUBDEV_NAME_SIZE); in soc_camera_platform_probe()
167 return v4l2_device_register_subdev(&ici->v4l2_dev, &priv->subdev); in soc_camera_platform_probe()
173 struct soc_camera_platform_info *p = v4l2_get_subdevdata(&priv->subdev); in soc_camera_platform_remove()
176 v4l2_device_unregister_subdev(&priv->subdev); in soc_camera_platform_remove()
/linux-4.1.27/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 …]
Dxilinx-vipp.c47 struct v4l2_subdev *subdev; member
318 struct v4l2_subdev *subdev, in xvip_graph_notify_bound() argument
329 if (entity->node != subdev->dev->of_node) in xvip_graph_notify_bound()
332 if (entity->subdev) { in xvip_graph_notify_bound()
338 dev_dbg(xdev->dev, "subdev %s bound\n", subdev->name); in xvip_graph_notify_bound()
339 entity->entity = &subdev->entity; in xvip_graph_notify_bound()
340 entity->subdev = subdev; in xvip_graph_notify_bound()
344 dev_err(xdev->dev, "no entity for subdev %s\n", subdev->name); in xvip_graph_notify_bound()
Dxilinx-vip.c251 int xvip_enum_mbus_code(struct v4l2_subdev *subdev, in xvip_enum_mbus_code() argument
266 format = v4l2_subdev_get_try_format(subdev, cfg, code->pad); in xvip_enum_mbus_code()
289 int xvip_enum_frame_size(struct v4l2_subdev *subdev, in xvip_enum_frame_size() argument
301 format = v4l2_subdev_get_try_format(subdev, cfg, fse->pad); in xvip_enum_frame_size()
Dxilinx-vip.h99 struct v4l2_subdev subdev; member
131 int xvip_enum_mbus_code(struct v4l2_subdev *subdev,
134 int xvip_enum_frame_size(struct v4l2_subdev *subdev,
Dxilinx-dma.c65 struct v4l2_subdev *subdev; in xvip_dma_verify_format() local
68 subdev = xvip_dma_remote_subdev(&dma->pad, &fmt.pad); in xvip_dma_verify_format()
69 if (subdev == NULL) in xvip_dma_verify_format()
73 ret = v4l2_subdev_call(subdev, pad, get_fmt, NULL, &fmt); in xvip_dma_verify_format()
106 struct v4l2_subdev *subdev; in xvip_pipeline_start_stop() local
121 subdev = media_entity_to_v4l2_subdev(entity); in xvip_pipeline_start_stop()
123 ret = v4l2_subdev_call(subdev, video, s_stream, start); in xvip_pipeline_start_stop()
/linux-4.1.27/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.c554 pipe = to_isp_pipeline(&isp->isp_ccp2.subdev.entity); in isp_isr_sbl()
560 pipe = to_isp_pipeline(&isp->isp_csi2a.subdev.entity); in isp_isr_sbl()
566 pipe = to_isp_pipeline(&isp->isp_ccdc.subdev.entity); in isp_isr_sbl()
572 pipe = to_isp_pipeline(&isp->isp_prev.subdev.entity); in isp_isr_sbl()
581 pipe = to_isp_pipeline(&isp->isp_res.subdev.entity); in isp_isr_sbl()
716 struct v4l2_subdev *subdev; in isp_pipeline_pm_power_one() local
719 subdev = media_entity_type(entity) == MEDIA_ENT_T_V4L2_SUBDEV in isp_pipeline_pm_power_one()
722 if (entity->use_count == 0 && change > 0 && subdev != NULL) { in isp_pipeline_pm_power_one()
723 ret = v4l2_subdev_call(subdev, core, s_power, 1); in isp_pipeline_pm_power_one()
731 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()
691 struct v4l2_subdev *subdev; in isp_video_try_format() local
698 subdev = isp_video_remote_subdev(video, &pad); in isp_video_try_format()
699 if (subdev == NULL) in isp_video_try_format()
706 ret = v4l2_subdev_call(subdev, pad, get_fmt, NULL, &fmt); in isp_video_try_format()
718 struct v4l2_subdev *subdev; in isp_video_cropcap() local
721 subdev = isp_video_remote_subdev(video, NULL); in isp_video_cropcap()
[all …]
Dispccp2.c385 struct isp_pipeline *pipe = to_isp_pipeline(&ccp2->subdev.entity); in ccp2_adjust_bandwidth()
537 struct isp_pipeline *pipe = to_isp_pipeline(&ccp2->subdev.entity); in ccp2_isr_buffer()
561 struct isp_pipeline *pipe = to_isp_pipeline(&ccp2->subdev.entity); in omap3isp_ccp2_isr()
624 return v4l2_subdev_get_try_format(&ccp2->subdev, cfg, pad); in __ccp2_get_format()
1011 v4l2_device_unregister_subdev(&ccp2->subdev); in omap3isp_ccp2_unregister_entities()
1028 ret = v4l2_device_register_subdev(vdev, &ccp2->subdev); in omap3isp_ccp2_register_entities()
1054 struct v4l2_subdev *sd = &ccp2->subdev; in ccp2_init_entities()
1104 &ccp2->subdev.entity, CCP2_PAD_SINK, 0); in ccp2_init_entities()
1113 media_entity_cleanup(&ccp2->subdev.entity); in ccp2_init_entities()
1168 media_entity_cleanup(&ccp2->subdev.entity); in omap3isp_ccp2_cleanup()
Disp.h360 isp_pad_buffer_type(const struct v4l2_subdev *subdev, int pad) in isp_pad_buffer_type() argument
362 if (pad >= subdev->entity.num_pads) in isp_pad_buffer_type()
365 if (subdev->entity.pads[pad].flags & MEDIA_PAD_FL_SINK) in isp_pad_buffer_type()
Dispresizer.c124 return v4l2_subdev_get_try_format(&res->subdev, cfg, pad); in __resizer_get_format()
140 return v4l2_subdev_get_try_crop(&res->subdev, cfg, RESZ_PAD_SINK); in __resizer_get_crop()
503 struct isp_pipeline *pipe = to_isp_pipeline(&res->subdev.entity); in omap3isp_resizer_max_rate()
544 struct isp_pipeline *pipe = to_isp_pipeline(&res->subdev.entity); in resizer_adjust_bandwidth()
1017 struct isp_pipeline *pipe = to_isp_pipeline(&res->subdev.entity); in resizer_isr_buffer()
1671 v4l2_device_unregister_subdev(&res->subdev); in omap3isp_resizer_unregister_entities()
1682 ret = v4l2_device_register_subdev(vdev, &res->subdev); in omap3isp_resizer_register_entities()
1712 struct v4l2_subdev *sd = &res->subdev; in resizer_init_entities()
1760 &res->subdev.entity, RESZ_PAD_SINK, 0); in resizer_init_entities()
1764 ret = media_entity_create_link(&res->subdev.entity, RESZ_PAD_SOURCE, in resizer_init_entities()
[all …]
Dispccdc.c807 struct isp_pipeline *pipe = to_isp_pipeline(&ccdc->subdev.entity); in ccdc_config_vp()
940 struct isp_pipeline *pipe = to_isp_pipeline(&ccdc->subdev.entity); in omap3isp_ccdc_max_rate()
1464 struct isp_pipeline *pipe = to_isp_pipeline(&ccdc->subdev.entity); in ccdc_hs_vs_isr()
1465 struct video_device *vdev = ccdc->subdev.devnode; in ccdc_hs_vs_isr()
1489 to_isp_pipeline(&ccdc->subdev.entity); in ccdc_lsc_isr()
1542 struct isp_pipeline *pipe = to_isp_pipeline(&ccdc->subdev.entity); in ccdc_has_all_fields()
1586 struct isp_pipeline *pipe = to_isp_pipeline(&ccdc->subdev.entity); in ccdc_isr_buffer()
1611 isp->crashed |= 1U << ccdc->subdev.entity.id; in ccdc_isr_buffer()
1649 to_isp_pipeline(&ccdc->subdev.entity); in ccdc_vd0_isr()
1942 return v4l2_subdev_get_try_format(&ccdc->subdev, cfg, pad); in __ccdc_get_format()
[all …]
Dispcsi2.c551 struct isp_pipeline *pipe = to_isp_pipeline(&csi2->subdev.entity); in csi2_configure()
740 struct isp_pipeline *pipe = to_isp_pipeline(&csi2->subdev.entity); in omap3isp_csi2_isr()
842 return v4l2_subdev_get_try_format(&csi2->subdev, cfg, pad); in __csi2_get_format()
1194 v4l2_device_unregister_subdev(&csi2->subdev); in omap3isp_csi2_unregister_entities()
1204 ret = v4l2_device_register_subdev(vdev, &csi2->subdev); in omap3isp_csi2_register_entities()
1230 struct v4l2_subdev *sd = &csi2->subdev; in csi2_init_entities()
1268 ret = media_entity_create_link(&csi2->subdev.entity, CSI2_PAD_SOURCE, in csi2_init_entities()
1278 media_entity_cleanup(&csi2->subdev.entity); in csi2_init_entities()
1324 media_entity_cleanup(&csi2a->subdev.entity); in omap3isp_csi2_cleanup()
Dispccp2.h64 struct v4l2_subdev subdev; member
Dispresizer.h95 struct v4l2_subdev subdev; member
Disppreview.h124 struct v4l2_subdev subdev; member
Disppreview.c1171 struct isp_pipeline *pipe = to_isp_pipeline(&prev->subdev.entity); in preview_adjust_bandwidth()
1483 struct isp_pipeline *pipe = to_isp_pipeline(&prev->subdev.entity); in preview_isr_buffer()
1693 return v4l2_subdev_get_try_format(&prev->subdev, cfg, pad); in __preview_get_format()
1703 return v4l2_subdev_get_try_crop(&prev->subdev, cfg, PREV_PAD_SINK); in __preview_get_crop()
2219 v4l2_device_unregister_subdev(&prev->subdev); in omap3isp_preview_unregister_entities()
2230 ret = v4l2_device_register_subdev(vdev, &prev->subdev); in omap3isp_preview_register_entities()
2260 struct v4l2_subdev *sd = &prev->subdev; in preview_init_entities()
2320 &prev->subdev.entity, PREV_PAD_SINK, 0); in preview_init_entities()
2324 ret = media_entity_create_link(&prev->subdev.entity, PREV_PAD_SOURCE, in preview_init_entities()
2336 media_entity_cleanup(&prev->subdev.entity); in preview_init_entities()
[all …]
Dispccdc.h131 struct v4l2_subdev subdev; member
Dispcsi2.h122 struct v4l2_subdev subdev; member
Dispcsiphy.c168 struct isp_pipeline *pipe = to_isp_pipeline(&csi2->subdev.entity); in omap3isp_csiphy_config()
309 to_isp_pipeline(&csi2->subdev.entity); in omap3isp_csiphy_release()
/linux-4.1.27/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.1.27/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/gf110.o
6 nvkm-y += nvkm/subdev/gpio/gk104.o
Dbase.c137 nvkm_gpio_intr(struct nvkm_subdev *subdev) in nvkm_gpio_intr() argument
139 struct nvkm_gpio *gpio = nvkm_gpio(subdev); in nvkm_gpio_intr()
/linux-4.1.27/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
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/
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.c53 struct nvkm_subdev *subdev = (void *)priv; in nv04_instobj_dtor() local
55 mutex_lock(&subdev->mutex); in nv04_instobj_dtor()
57 mutex_unlock(&subdev->mutex); in nv04_instobj_dtor()
70 struct nvkm_subdev *subdev = (void *)priv; in nv04_instobj_ctor() local
81 mutex_lock(&subdev->mutex); in nv04_instobj_ctor()
84 mutex_unlock(&subdev->mutex); in nv04_instobj_ctor()
/linux-4.1.27/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.1.27/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()
Dunioxx5.c275 struct comedi_subdevice *subdev, in unioxx5_subdev_read() argument
278 struct unioxx5_subd_priv *usp = subdev->private; in unioxx5_subdev_read()
286 if (!__unioxx5_digital_read(subdev, data, channel, dev->minor)) in unioxx5_subdev_read()
289 if (!__unioxx5_analog_read(subdev, data, channel, dev->minor)) in unioxx5_subdev_read()
297 struct comedi_subdevice *subdev, in unioxx5_subdev_write() argument
300 struct unioxx5_subd_priv *usp = subdev->private; in unioxx5_subdev_write()
308 if (!__unioxx5_digital_write(subdev, data, channel, dev->minor)) in unioxx5_subdev_write()
311 if (!__unioxx5_analog_write(subdev, data, channel, dev->minor)) in unioxx5_subdev_write()
320 struct comedi_subdevice *subdev, in unioxx5_insn_config() argument
324 struct unioxx5_subd_priv *usp = subdev->private; in unioxx5_insn_config()
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()
Dcomedi_bond.c59 unsigned subdev; member
108 ret = comedi_dio_bitfield2(bdev->dev, bdev->subdev, in bonding_dio_insn_bits()
162 ret = comedi_dio_config(bdev->dev, bdev->subdev, chan, data[0]); in bonding_dio_insn_config()
165 ret = comedi_dio_get_config(bdev->dev, bdev->subdev, chan, in bonding_dio_insn_config()
240 bdev->subdev = sdev; in do_dev_config()
266 bdev->minor, bdev->subdev); in do_dev_config()
Daddi_apci_3xxx.c770 int subdev; in apci3xxx_auto_attach() local
805 subdev = 0; in apci3xxx_auto_attach()
809 s = &dev->subdevices[subdev]; in apci3xxx_auto_attach()
843 subdev++; in apci3xxx_auto_attach()
848 s = &dev->subdevices[subdev]; in apci3xxx_auto_attach()
860 subdev++; in apci3xxx_auto_attach()
865 s = &dev->subdevices[subdev]; in apci3xxx_auto_attach()
873 subdev++; in apci3xxx_auto_attach()
878 s = &dev->subdevices[subdev]; in apci3xxx_auto_attach()
886 subdev++; in apci3xxx_auto_attach()
[all …]
Dadv_pci_dio.c984 int ret, subdev, i, j; in pci_dio_auto_attach() local
1006 subdev = 0; in pci_dio_auto_attach()
1009 s = &dev->subdevices[subdev]; in pci_dio_auto_attach()
1011 subdev++; in pci_dio_auto_attach()
1016 s = &dev->subdevices[subdev]; in pci_dio_auto_attach()
1018 subdev++; in pci_dio_auto_attach()
1023 s = &dev->subdevices[subdev]; in pci_dio_auto_attach()
1029 subdev++; in pci_dio_auto_attach()
1033 s = &dev->subdevices[subdev]; in pci_dio_auto_attach()
1036 subdev++; in pci_dio_auto_attach()
[all …]
Dadv_pci1710.c870 int ret, subdev, n_subdevices; in pci1710_auto_attach() local
916 subdev = 0; in pci1710_auto_attach()
919 s = &dev->subdevices[subdev]; in pci1710_auto_attach()
936 subdev++; in pci1710_auto_attach()
940 s = &dev->subdevices[subdev]; in pci1710_auto_attach()
966 subdev++; in pci1710_auto_attach()
970 s = &dev->subdevices[subdev]; in pci1710_auto_attach()
977 subdev++; in pci1710_auto_attach()
979 s = &dev->subdevices[subdev]; in pci1710_auto_attach()
986 subdev++; in pci1710_auto_attach()
[all …]
Djr3_pci.c376 int subdev, const u8 *data, size_t size) in jr3_write_firmware() argument
396 subdev, count, addr); in jr3_write_firmware()
412 lo = &iobase->channel[subdev].program_lo[addr]; in jr3_write_firmware()
413 hi = &iobase->channel[subdev].program_hi[addr]; in jr3_write_firmware()
436 int subdev; in jr3_download_firmware() local
445 for (subdev = 0; subdev < dev->n_subdevices; subdev++) in jr3_download_firmware()
446 jr3_write_firmware(dev, subdev, data, size); in jr3_download_firmware()
Dpcl812.c1130 int subdev; in pcl812_attach() local
1183 subdev = 0; in pcl812_attach()
1186 s = &dev->subdevices[subdev]; in pcl812_attach()
1214 subdev++; in pcl812_attach()
1218 s = &dev->subdevices[subdev]; in pcl812_attach()
1245 subdev++; in pcl812_attach()
1250 s = &dev->subdevices[subdev]; in pcl812_attach()
1257 subdev++; in pcl812_attach()
1260 s = &dev->subdevices[subdev]; in pcl812_attach()
1267 subdev++; in pcl812_attach()
/linux-4.1.27/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.1.27/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 != NULL) { 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 != NULL) 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 …]
Diss_video.c239 struct v4l2_subdev *subdev; in __iss_video_get_format() local
243 subdev = iss_video_remote_subdev(video, &pad); in __iss_video_get_format()
244 if (subdev == NULL) in __iss_video_get_format()
252 ret = v4l2_subdev_call(subdev, pad, get_fmt, NULL, &fmt); in __iss_video_get_format()
619 struct v4l2_subdev *subdev; in iss_video_try_format() local
626 subdev = iss_video_remote_subdev(video, &pad); in iss_video_try_format()
627 if (subdev == NULL) in iss_video_try_format()
634 ret = v4l2_subdev_call(subdev, pad, get_fmt, NULL, &fmt); in iss_video_try_format()
646 struct v4l2_subdev *subdev; in iss_video_cropcap() local
649 subdev = iss_video_remote_subdev(video, NULL); in iss_video_cropcap()
[all …]
Diss_resizer.c294 to_iss_pipeline(&resizer->subdev.entity); in omap4iss_resizer_isr()
427 return v4l2_subdev_get_try_format(&resizer->subdev, cfg, pad); in __resizer_get_format()
730 if (remote->entity == &iss->ipipeif.subdev.entity) in resizer_link_setup()
732 else if (remote->entity == &iss->ipipe.subdev.entity) in resizer_link_setup()
770 struct v4l2_subdev *sd = &resizer->subdev; in resizer_init_entities()
807 ret = media_entity_create_link(&resizer->subdev.entity, in resizer_init_entities()
818 v4l2_device_unregister_subdev(&resizer->subdev); in omap4iss_resizer_unregister_entities()
828 ret = v4l2_device_register_subdev(vdev, &resizer->subdev); in omap4iss_resizer_register_entities()
873 media_entity_cleanup(&resizer->subdev.entity); in omap4iss_resizer_cleanup()
Diss_ipipe.c183 return v4l2_subdev_get_try_format(&ipipe->subdev, cfg, pad); in __ipipe_get_format()
453 if (remote->entity == &iss->ipipeif.subdev.entity) in ipipe_link_setup()
490 struct v4l2_subdev *sd = &ipipe->subdev; in ipipe_init_entities()
519 v4l2_device_unregister_subdev(&ipipe->subdev); in omap4iss_ipipe_unregister_entities()
528 ret = v4l2_device_register_subdev(vdev, &ipipe->subdev); in omap4iss_ipipe_register_entities()
569 media_entity_cleanup(&ipipe->subdev.entity); in omap4iss_ipipe_cleanup()
Diss_ipipeif.c368 return v4l2_subdev_get_try_format(&ipipeif->subdev, cfg, pad); in __ipipeif_get_format()
675 if (remote->entity == &iss->csi2a.subdev.entity) in ipipeif_link_setup()
677 else if (remote->entity == &iss->csi2b.subdev.entity) in ipipeif_link_setup()
725 struct v4l2_subdev *sd = &ipipeif->subdev; in ipipeif_init_entities()
763 ret = media_entity_create_link(&ipipeif->subdev.entity, in ipipeif_init_entities()
774 v4l2_device_unregister_subdev(&ipipeif->subdev); in omap4iss_ipipeif_unregister_entities()
784 ret = v4l2_device_register_subdev(vdev, &ipipeif->subdev); in omap4iss_ipipeif_register_entities()
829 media_entity_cleanup(&ipipeif->subdev.entity); in omap4iss_ipipeif_cleanup()
Diss_csi2.c680 to_iss_pipeline(&csi2->subdev.entity); in csi2_isr_ctx()
743 struct iss_pipeline *pipe = to_iss_pipeline(&csi2->subdev.entity); in omap4iss_csi2_isr()
835 return v4l2_subdev_get_try_format(&csi2->subdev, cfg, pad); in __csi2_get_format()
1020 struct iss_pipeline *pipe = to_iss_pipeline(&csi2->subdev.entity); in csi2_link_validate()
1213 v4l2_device_unregister_subdev(&csi2->subdev); in omap4iss_csi2_unregister_entities()
1223 ret = v4l2_device_register_subdev(vdev, &csi2->subdev); in omap4iss_csi2_register_entities()
1249 struct v4l2_subdev *sd = &csi2->subdev; in csi2_init_entities()
1288 ret = media_entity_create_link(&csi2->subdev.entity, CSI2_PAD_SOURCE, in csi2_init_entities()
1298 media_entity_cleanup(&csi2->subdev.entity); in csi2_init_entities()
1347 media_entity_cleanup(&csi2a->subdev.entity); in omap4iss_csi2_cleanup()
[all …]
Diss_ipipe.h45 struct v4l2_subdev subdev; member
Diss_resizer.h47 struct v4l2_subdev subdev; member
Diss_ipipeif.h64 struct v4l2_subdev subdev; member
Diss_csi2.h123 struct v4l2_subdev subdev; member
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bar/
DKbuild1 nvkm-y += nvkm/subdev/bar/base.o
2 nvkm-y += nvkm/subdev/bar/nv50.o
3 nvkm-y += nvkm/subdev/bar/gf100.o
4 nvkm-y += nvkm/subdev/bar/gk20a.o
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/ltc/
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
Dgm107.c77 gm107_ltc_intr(struct nvkm_subdev *subdev) in gm107_ltc_intr() argument
79 struct nvkm_ltc_priv *priv = (void *)subdev; in gm107_ltc_intr()
Dgf100.c100 gf100_ltc_intr(struct nvkm_subdev *subdev) in gf100_ltc_intr() argument
102 struct nvkm_ltc_priv *priv = (void *)subdev; in gf100_ltc_intr()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/volt/
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/gk20a.o
/linux-4.1.27/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
/linux-4.1.27/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()
453 struct mt9m111 *mt9m111 = container_of(sd, struct mt9m111, subdev); in mt9m111_g_fmt()
[all …]
Dimx074.c79 struct v4l2_subdev subdev; member
90 return container_of(i2c_get_clientdata(client), struct imx074, subdev); in to_imx074()
298 struct v4l2_subdev *subdev = i2c_get_clientdata(client); in imx074_video_probe() local
302 ret = imx074_s_power(subdev, 1); in imx074_video_probe()
409 imx074_s_power(subdev, 0); in imx074_video_probe()
436 v4l2_i2c_subdev_init(&priv->subdev, client, &imx074_subdev_ops); in imx074_probe()
454 ret = v4l2_async_register_subdev(&priv->subdev); in imx074_probe()
469 v4l2_async_unregister_subdev(&priv->subdev); in imx074_remove()
Dmt9m001.c89 struct v4l2_subdev subdev; member
107 return container_of(i2c_get_clientdata(client), struct mt9m001, subdev); in to_mt9m001()
386 struct v4l2_subdev *sd = &mt9m001->subdev; in mt9m001_s_ctrl()
470 ret = mt9m001_s_power(&mt9m001->subdev, 1); in mt9m001_video_probe()
532 mt9m001_s_power(&mt9m001->subdev, 0); in mt9m001_video_probe()
658 v4l2_i2c_subdev_init(&mt9m001->subdev, client, &mt9m001_subdev_ops); in mt9m001_probe()
673 mt9m001->subdev.ctrl_handler = &mt9m001->hdl; in mt9m001_probe()
709 v4l2_device_unregister_subdev(&mt9m001->subdev); in mt9m001_remove()
Dov772x.c394 struct v4l2_subdev subdev; member
513 return container_of(sd, struct ov772x_priv, subdev); in to_ov772x()
578 struct v4l2_subdev *sd = &priv->subdev; in ov772x_s_ctrl()
704 struct i2c_client *client = v4l2_get_subdevdata(&priv->subdev); in ov772x_set_params()
937 struct i2c_client *client = v4l2_get_subdevdata(&priv->subdev); in ov772x_video_probe()
942 ret = ov772x_s_power(&priv->subdev, 1); in ov772x_video_probe()
976 ov772x_s_power(&priv->subdev, 0); in ov772x_video_probe()
1063 v4l2_i2c_subdev_init(&priv->subdev, client, &ov772x_subdev_ops); in ov772x_probe()
1071 priv->subdev.ctrl_handler = &priv->hdl; in ov772x_probe()
1099 v4l2_device_unregister_subdev(&priv->subdev); in ov772x_remove()
Dov5642.c610 struct v4l2_subdev subdev; member
626 return container_of(i2c_get_clientdata(client), struct ov5642, subdev); in to_ov5642()
967 struct v4l2_subdev *subdev = i2c_get_clientdata(client); in ov5642_video_probe() local
972 ret = ov5642_s_power(subdev, 1); in ov5642_video_probe()
999 ov5642_s_power(subdev, 0); in ov5642_video_probe()
1019 v4l2_i2c_subdev_init(&priv->subdev, client, &ov5642_subdev_ops); in ov5642_probe()
Dmt9t031.c71 struct v4l2_subdev subdev; member
88 return container_of(i2c_get_clientdata(client), struct mt9t031, subdev); in to_mt9t031()
450 struct v4l2_subdev *sd = &mt9t031->subdev; in mt9t031_s_ctrl()
619 ret = mt9t031_s_power(&mt9t031->subdev, 1); in mt9t031_video_probe()
647 mt9t031_s_power(&mt9t031->subdev, 0); in mt9t031_video_probe()
759 v4l2_i2c_subdev_init(&mt9t031->subdev, client, &mt9t031_subdev_ops); in mt9t031_probe()
778 mt9t031->subdev.ctrl_handler = &mt9t031->hdl; in mt9t031_probe()
815 v4l2_device_unregister_subdev(&mt9t031->subdev); in mt9t031_remove()
Dov2640.c284 struct v4l2_subdev subdev; member
624 subdev); in to_ov2640()
690 &container_of(ctrl->handler, struct ov2640_priv, hdl)->subdev; in ov2640_s_ctrl()
970 ret = ov2640_s_power(&priv->subdev, 1); in ov2640_video_probe()
1001 ov2640_s_power(&priv->subdev, 0); in ov2640_video_probe()
1145 v4l2_i2c_subdev_init(&priv->subdev, client, &ov2640_subdev_ops); in ov2640_probe()
1151 priv->subdev.ctrl_handler = &priv->hdl; in ov2640_probe()
1161 ret = v4l2_async_register_subdev(&priv->subdev); in ov2640_probe()
1180 v4l2_async_unregister_subdev(&priv->subdev); in ov2640_remove()
1182 v4l2_device_unregister_subdev(&priv->subdev); in ov2640_remove()
Dov9640.c37 #define to_ov9640_sensor(sd) container_of(sd, struct ov9640_priv, subdev)
273 struct i2c_client *client = v4l2_get_subdevdata(&priv->subdev); in ov9640_s_ctrl()
586 ret = ov9640_s_power(&priv->subdev, 1); in ov9640_video_probe()
625 ov9640_s_power(&priv->subdev, 0); in ov9640_video_probe()
694 v4l2_i2c_subdev_init(&priv->subdev, client, &ov9640_subdev_ops); in ov9640_probe()
701 priv->subdev.ctrl_handler = &priv->hdl; in ov9640_probe()
727 v4l2_device_unregister_subdev(&priv->subdev); in ov9640_remove()
Dmt9v022.c142 struct v4l2_subdev subdev; member
170 return container_of(i2c_get_clientdata(client), struct mt9v022, subdev); in to_mt9v022()
512 struct v4l2_subdev *sd = &mt9v022->subdev; in mt9v022_g_volatile_ctrl()
556 struct v4l2_subdev *sd = &mt9v022->subdev; in mt9v022_s_ctrl()
655 ret = mt9v022_s_power(&mt9v022->subdev, 1); in mt9v022_video_probe()
734 mt9v022_s_power(&mt9v022->subdev, 0); in mt9v022_video_probe()
888 v4l2_i2c_subdev_init(&mt9v022->subdev, client, &mt9v022_subdev_ops); in mt9v022_probe()
919 mt9v022->subdev.ctrl_handler = &mt9v022->hdl; in mt9v022_probe()
964 v4l2_device_unregister_subdev(&mt9v022->subdev); in mt9v022_remove()
Dov9740.c23 #define to_ov9740(sd) container_of(sd, struct ov9740_priv, subdev)
197 struct v4l2_subdev subdev; member
844 ret = ov9740_s_power(&priv->subdev, 1); in ov9740_video_probe()
885 ov9740_s_power(&priv->subdev, 0); in ov9740_video_probe()
953 v4l2_i2c_subdev_init(&priv->subdev, client, &ov9740_subdev_ops); in ov9740_probe()
959 priv->subdev.ctrl_handler = &priv->hdl; in ov9740_probe()
984 v4l2_device_unregister_subdev(&priv->subdev); in ov9740_remove()
Dov6650.c181 struct v4l2_subdev subdev; member
299 return container_of(i2c_get_clientdata(client), struct ov6650, subdev); in to_ov6650()
312 struct v4l2_subdev *sd = &priv->subdev; in ov6550_g_volatile_ctrl()
345 struct v4l2_subdev *sd = &priv->subdev; in ov6550_s_ctrl()
828 ret = ov6650_s_power(&priv->subdev, 1); in ov6650_video_probe()
864 ov6650_s_power(&priv->subdev, 0); in ov6650_video_probe()
972 v4l2_i2c_subdev_init(&priv->subdev, client, &ov6650_subdev_ops); in ov6650_probe()
1002 priv->subdev.ctrl_handler = &priv->hdl; in ov6650_probe()
1040 v4l2_device_unregister_subdev(&priv->subdev); in ov6650_remove()
Drj54n1cb0c.c152 struct v4l2_subdev subdev; member
425 return container_of(i2c_get_clientdata(client), struct rj54n1, subdev); in to_rj54n1()
1171 struct v4l2_subdev *sd = &rj54n1->subdev; in rj54n1_s_ctrl()
1279 ret = rj54n1_s_power(&rj54n1->subdev, 1); in rj54n1_video_probe()
1305 rj54n1_s_power(&rj54n1->subdev, 0); in rj54n1_video_probe()
1335 v4l2_i2c_subdev_init(&rj54n1->subdev, client, &rj54n1_subdev_ops); in rj54n1_probe()
1345 rj54n1->subdev.ctrl_handler = &rj54n1->hdl; in rj54n1_probe()
1383 v4l2_device_unregister_subdev(&rj54n1->subdev); in rj54n1_remove()
Dtw9910.c230 struct v4l2_subdev subdev; member
334 subdev); in to_tw9910()
785 ret = tw9910_s_power(&priv->subdev, 1); in tw9910_video_probe()
812 tw9910_s_power(&priv->subdev, 0); in tw9910_video_probe()
934 v4l2_i2c_subdev_init(&priv->subdev, client, &tw9910_subdev_ops); in tw9910_probe()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/mpeg/
Dnv44.c94 nv44_mpeg_intr(struct nvkm_subdev *subdev) in nv44_mpeg_intr() argument
96 struct nvkm_fifo *pfifo = nvkm_fifo(subdev); in nv44_mpeg_intr()
97 struct nvkm_engine *engine = nv_engine(subdev); in nv44_mpeg_intr()
100 struct nv44_mpeg_priv *priv = (void *)subdev; in nv44_mpeg_intr()
141 nv44_mpeg_me_intr(struct nvkm_subdev *subdev) in nv44_mpeg_me_intr() argument
143 struct nv44_mpeg_priv *priv = (void *)subdev; in nv44_mpeg_me_intr()
147 nv44_mpeg_intr(subdev); in nv44_mpeg_me_intr()
Dnv50.c123 nv50_mpeg_intr(struct nvkm_subdev *subdev) in nv50_mpeg_intr() argument
125 struct nv50_mpeg_priv *priv = (void *)subdev; in nv50_mpeg_intr()
150 nv50_vpe_intr(struct nvkm_subdev *subdev) in nv50_vpe_intr() argument
152 struct nv50_mpeg_priv *priv = (void *)subdev; in nv50_vpe_intr()
155 nv50_mpeg_intr(subdev); in nv50_vpe_intr()
Dnv40.c90 nv40_mpeg_intr(struct nvkm_subdev *subdev) in nv40_mpeg_intr() argument
92 struct nv31_mpeg_priv *priv = (void *)subdev; in nv40_mpeg_intr()
96 nv31_mpeg_intr(subdev); in nv40_mpeg_intr()
Dnv31.c194 nv31_mpeg_intr(struct nvkm_subdev *subdev) in nv31_mpeg_intr() argument
196 struct nv31_mpeg_priv *priv = (void *)subdev; in nv31_mpeg_intr()
197 struct nvkm_fifo *pfifo = nvkm_fifo(subdev); in nv31_mpeg_intr()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/ibus/
DKbuild1 nvkm-y += nvkm/subdev/ibus/gf100.o
2 nvkm-y += nvkm/subdev/ibus/gk104.o
3 nvkm-y += nvkm/subdev/ibus/gk20a.o
Dgk20a.c44 gk20a_ibus_intr(struct nvkm_subdev *subdev) in gk20a_ibus_intr() argument
46 struct gk20a_ibus_priv *priv = (void *)subdev; in gk20a_ibus_intr()
57 if (!nv_wait(subdev, 0x12004c, 0x3f, 0x00)) in gk20a_ibus_intr()
Dgf100.c61 gf100_ibus_intr(struct nvkm_subdev *subdev) in gf100_ibus_intr() argument
63 struct gf100_ibus_priv *priv = (void *)subdev; in gf100_ibus_intr()
Dgk104.c61 gk104_ibus_intr(struct nvkm_subdev *subdev) in gk104_ibus_intr() argument
63 struct gk104_ibus_priv *priv = (void *)subdev; in gk104_ibus_intr()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/timer/
DKbuild1 nvkm-y += nvkm/subdev/timer/base.o
2 nvkm-y += nvkm/subdev/timer/nv04.o
3 nvkm-y += nvkm/subdev/timer/gk20a.o
Dnv04.c112 nv04_timer_intr(struct nvkm_subdev *subdev) in nv04_timer_intr() argument
114 struct nv04_timer_priv *priv = (void *)subdev; in nv04_timer_intr()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/mxm/
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.1.27/drivers/staging/media/davinci_vpfe/
Dvpfe_video.c55 struct v4l2_subdev *subdev; in vpfe_update_current_ext_subdev() local
65 subdev = media_entity_to_v4l2_subdev(remote->entity); in vpfe_update_current_ext_subdev()
68 if (!strcmp(vpfe_cfg->sub_devs[i].module_name, subdev->name)) { in vpfe_update_current_ext_subdev()
83 video->current_ext_subdev->subdev = vpfe_dev->sd[i]; in vpfe_update_current_ext_subdev()
107 struct v4l2_subdev *subdev; in __vpfe_video_get_format() local
112 subdev = vpfe_video_remote_subdev(video, &pad); in __vpfe_video_get_format()
113 if (subdev == NULL) in __vpfe_video_get_format()
120 ret = v4l2_subdev_call(subdev, pad, get_fmt, NULL, &fmt); in __vpfe_video_get_format()
219 struct v4l2_subdev *subdev; in vpfe_video_validate_pipeline() local
229 subdev = vpfe_video_remote_subdev(pipe->outputs[0], NULL); in vpfe_video_validate_pipeline()
[all …]
Ddm365_resizer.c490 struct device *dev = resizer->crop_resizer.subdev.v4l2_dev->dev; in resizer_configure_in_continious_mode()
668 struct device *dev = resizer->crop_resizer.subdev.v4l2_dev->dev; in resizer_configure_in_single_shot_mode()
943 struct device *dev = resizer->crop_resizer.subdev.v4l2_dev->dev; in resizer_get_configuration()
1211 struct device *dev = resizer->crop_resizer.subdev.v4l2_dev->dev; in resizer_ioctl()
1215 if (&resizer->crop_resizer.subdev != sd) in resizer_ioctl()
1267 if (&resizer->crop_resizer.subdev != sd) in resizer_set_stream()
1304 if (&resizer->crop_resizer.subdev == sd) in __resizer_get_format()
1306 if (&resizer->resizer_a.subdev == sd) in __resizer_get_format()
1308 if (&resizer->resizer_b.subdev == sd) in __resizer_get_format()
1331 if ((&resizer->resizer_a.subdev == sd && pad == RESIZER_PAD_SINK) || in resizer_try_format()
[all …]
Dvpfe_mc_capture.c449 0, &vpfe_dev->vpfe_isif.subdev.entity, in vpfe_register_entities()
455 ret = media_entity_create_link(&vpfe_dev->vpfe_isif.subdev.entity, 1, in vpfe_register_entities()
456 &vpfe_dev->vpfe_ipipeif.subdev.entity, in vpfe_register_entities()
461 ret = media_entity_create_link(&vpfe_dev->vpfe_ipipeif.subdev.entity, 1, in vpfe_register_entities()
462 &vpfe_dev->vpfe_ipipe.subdev.entity, in vpfe_register_entities()
467 ret = media_entity_create_link(&vpfe_dev->vpfe_ipipe.subdev.entity, in vpfe_register_entities()
468 1, &vpfe_dev->vpfe_resizer.crop_resizer.subdev.entity, in vpfe_register_entities()
473 ret = media_entity_create_link(&vpfe_dev->vpfe_ipipeif.subdev.entity, 1, in vpfe_register_entities()
474 &vpfe_dev->vpfe_resizer.crop_resizer.subdev.entity, in vpfe_register_entities()
Ddm365_ipipe.c81 dev = ipipe->subdev.v4l2_dev->dev; in ipipe_set_lutdpc_params()
182 dev = ipipe->subdev.v4l2_dev->dev; in ipipe_set_otfdpc_params()
241 dev = ipipe->subdev.v4l2_dev->dev; in ipipe_set_nf_params()
303 struct device *dev = ipipe->subdev.v4l2_dev->dev; in ipipe_set_gic_params()
498 struct device *dev = ipipe->subdev.v4l2_dev->dev; in ipipe_set_rgb2rgb_params()
639 struct device *dev = ipipe->subdev.v4l2_dev->dev; in ipipe_set_gamma_params()
683 struct device *dev = ipipe->subdev.v4l2_dev->dev; in ipipe_get_gamma_params()
742 struct device *dev = ipipe->subdev.v4l2_dev->dev; in ipipe_get_3d_lut_params()
762 struct device *dev = ipipe->subdev.v4l2_dev->dev; in ipipe_set_3d_lut_params()
831 struct device *dev = ipipe->subdev.v4l2_dev->dev; in ipipe_set_rgb2yuv_params()
[all …]
Ddm365_ipipeif.c381 struct device *dev = ipipeif->subdev.v4l2_dev->dev; in ipipeif_set_config()
425 struct device *dev = ipipeif->subdev.v4l2_dev->dev; in ipipeif_get_config()
687 return v4l2_subdev_get_try_format(&ipipeif->subdev, cfg, pad); in __ipipeif_get_format()
916 if (remote->entity == &vpfe->vpfe_ipipe.subdev.entity) in ipipeif_link_setup()
920 crop_resizer.subdev.entity) in ipipeif_link_setup()
948 v4l2_device_unregister_subdev(&ipipeif->subdev); in vpfe_ipipeif_unregister_entities()
950 media_entity_cleanup(&ipipeif->subdev.entity); in vpfe_ipipeif_unregister_entities()
962 ret = v4l2_device_register_subdev(vdev, &ipipeif->subdev); in vpfe_ipipeif_register_entities()
975 &ipipeif->subdev.entity, 0, flags); in vpfe_ipipeif_register_entities()
981 v4l2_device_unregister_subdev(&ipipeif->subdev); in vpfe_ipipeif_register_entities()
[all …]
Ddm365_resizer.h192 struct v4l2_subdev subdev; member
217 struct v4l2_subdev subdev; member
Dvpfe.h48 struct v4l2_subdev *subdev; member
Ddm365_isif.h182 struct v4l2_subdev subdev; member
/linux-4.1.27/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,
Dcomedi_compat32.c44 unsigned int subdev; member
57 unsigned int subdev; member
79 unsigned int subdev; member
119 err |= __get_user(temp.uint, &chaninfo32->subdev); in compat_chaninfo()
120 err |= __put_user(temp.uint, &chaninfo->subdev); in compat_chaninfo()
180 err |= __get_user(temp.uint, &cmd32->subdev); in get_compat_cmd()
181 err |= __put_user(temp.uint, &cmd->subdev); in get_compat_cmd()
233 err |= __get_user(temp, &cmd->subdev); in put_compat_cmd()
234 err |= __put_user(temp, &cmd32->subdev); in put_compat_cmd()
338 err |= __get_user(temp.uint, &insn32->subdev); in get_compat_insn()
[all …]
Dcomedi.h376 unsigned int subdev; /* subdevice */ member
394 unsigned int subdev; member
405 unsigned int subdev; member
431 unsigned int subdev; member
Dcomedi_fops.c1023 if (it.subdev >= dev->n_subdevices) in do_chaninfo_ioctl()
1025 s = &dev->subdevices[it.subdev]; in do_chaninfo_ioctl()
1046 x = (dev->minor << 28) | (it.subdev << 24) | (i << 16) | in do_chaninfo_ioctl()
1245 if (insn->subdev >= dev->n_subdevices) { in parse_insn()
1248 insn->subdev); in parse_insn()
1252 s = &dev->subdevices[insn->subdev]; in parse_insn()
1276 if (insn->subdev >= dev->n_subdevices) { in parse_insn()
1278 insn->subdev); in parse_insn()
1282 s = &dev->subdevices[insn->subdev]; in parse_insn()
1286 insn->subdev); in parse_insn()
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/sec/
Dg98.c76 g98_sec_intr(struct nvkm_subdev *subdev) in g98_sec_intr() argument
78 struct nvkm_fifo *pfifo = nvkm_fifo(subdev); in g98_sec_intr()
79 struct nvkm_engine *engine = nv_engine(subdev); in g98_sec_intr()
81 struct g98_sec_priv *priv = (void *)subdev; in g98_sec_intr()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/ce/
Dgt215.c78 gt215_ce_intr(struct nvkm_subdev *subdev) in gt215_ce_intr() argument
80 struct nvkm_fifo *pfifo = nvkm_fifo(subdev); in gt215_ce_intr()
81 struct nvkm_engine *engine = nv_engine(subdev); in gt215_ce_intr()
82 struct nvkm_falcon *falcon = (void *)subdev; in gt215_ce_intr()
Dgk104.c67 gk104_ce_intr(struct nvkm_subdev *subdev) in gk104_ce_intr() argument
69 const int ce = nv_subidx(subdev) - NVDEV_ENGINE_CE0; in gk104_ce_intr()
70 struct gk104_ce_priv *priv = (void *)subdev; in gk104_ce_intr()
Dgm204.c67 gm204_ce_intr(struct nvkm_subdev *subdev) in gm204_ce_intr() argument
69 const int ce = nv_subidx(subdev) - NVDEV_ENGINE_CE0; in gm204_ce_intr()
70 struct gm204_ce_priv *priv = (void *)subdev; in gm204_ce_intr()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/cipher/
Dg84.c109 g84_cipher_intr(struct nvkm_subdev *subdev) in g84_cipher_intr() argument
111 struct nvkm_fifo *pfifo = nvkm_fifo(subdev); in g84_cipher_intr()
112 struct nvkm_engine *engine = nv_engine(subdev); in g84_cipher_intr()
114 struct g84_cipher_priv *priv = (void *)subdev; in g84_cipher_intr()
/linux-4.1.27/drivers/media/platform/exynos4-is/
Dmedia-dev.c479 sd = &fimc_lite->subdev; in register_fimc_lite_entity()
506 sd = &fimc->vid_cap.subdev; in register_fimc_entity()
555 struct v4l2_subdev *sd = &is->isp.subdev; in register_fimc_is_entity()
669 v4l2_device_unregister_subdev(&dev->vid_cap.subdev); in fimc_md_unregister_entities()
677 v4l2_device_unregister_subdev(&dev->subdev); in fimc_md_unregister_entities()
689 v4l2_device_unregister_subdev(&fmd->fimc_is->isp.subdev); in fimc_md_unregister_entities()
731 sink = &fmd->fimc[i]->vid_cap.subdev.entity; in __fimc_md_create_fimc_sink_links()
751 sink = &fmd->fimc_lite[i]->subdev.entity; in __fimc_md_create_fimc_sink_links()
781 source = &fimc->subdev.entity; in __fimc_md_create_flite_source_links()
789 sink = &fmd->fimc_is->isp.subdev.entity; in __fimc_md_create_flite_source_links()
[all …]
Dfimc-lite.c595 sink_fmt = v4l2_subdev_get_try_format(&fimc->subdev, cfg, in fimc_lite_subdev_try_fmt()
601 rect = v4l2_subdev_get_try_crop(&fimc->subdev, cfg, in fimc_lite_subdev_try_fmt()
616 v4l2_dbg(1, debug, &fimc->subdev, "code: %#x (%d), %dx%d\n", in fimc_lite_subdev_try_fmt()
634 v4l2_dbg(1, debug, &fimc->subdev, "(%d,%d)/%dx%d, sink fmt: %dx%d\n", in fimc_lite_try_crop()
654 v4l2_dbg(1, debug, &fimc->subdev, "(%d,%d)/%dx%d, source fmt: %dx%d\n", in fimc_lite_try_compose()
791 struct v4l2_subdev *sd = &fimc->subdev; in fimc_pipeline_validate()
802 if (sd == &fimc->subdev) { in fimc_pipeline_validate()
854 fimc->sensor = fimc_find_remote_sensor(&fimc->subdev.entity); in fimc_lite_streamon()
1429 struct v4l2_subdev *sd = &fimc->subdev; in fimc_lite_create_capture_subdev()
1463 struct v4l2_subdev *sd = &fimc->subdev; in fimc_lite_unregister_capture_subdev()
Dfimc-isp.c181 format = v4l2_subdev_get_try_format(&isp->subdev, cfg, in __isp_subdev_try_format()
660 v4l2_err(&isp->subdev, "Failed to set control: %s (%d)\n", in fimc_is_s_ctrl()
695 struct v4l2_subdev *sd = &isp->subdev; in fimc_isp_subdev_create()
780 struct v4l2_subdev *sd = &isp->subdev; in fimc_isp_subdev_destroy()
/linux-4.1.27/Documentation/video4linux/
Dfimc.txt44 - MIPI-CSI2 receiver subdev
94 Each FIMC instance exports a sub-device node (/dev/v4l-subdev?), a sub-device
105 sensor subdev -> mipi-csi subdev -> fimc subdev -> video node
125 5. Device mapping to video and subdev device nodes
129 hardware - video capture and mem-to-mem and additionally a subdev node for
133 How to find out which /dev/video? or /dev/v4l-subdev? is assigned to which
148 optional s5p-csis.ko (MIPI-CSI receiver subdev).
Dv4l2-framework.txt216 (v4l2-subdev.h) was created.
230 Bridges might also need to store per-subdev private data, such as a pointer to
231 bridge-specific per-subdev private data. The v4l2_subdev structure provides
248 may be NULL if the subdev driver does not support anything from that category.
293 Afterwards you need to initialize subdev->name with a unique name and set the
310 subdev device node (if any) is opened/closed.
316 If the subdev driver intends to process video and integrate with the media
320 In that case, the subdev driver may set the link_validate field to provide
356 This can fail if the subdev module disappeared before it could be registered.
357 After this function was called successfully the subdev->dev field points to
[all …]
Domap3isp.txt34 having one subdev to represent it. Each of the subdevs provide a V4L2 subdev
73 The CCDC subdev produces V4L2_EVENT_FRAME_SYNC type event on HS_VS
77 in the CCDC module. The event can be subscribed on the CCDC subdev.
197 the user from the statistics subdev nodes using private IOCTLs.
Dv4l2-controls.txt111 on subdev drivers are converted to the control framework these helpers will
278 and v4l2_device are set, then the controls of the subdev will become
279 automatically available in the V4L2 driver as well. If the subdev driver
281 skipped (so a V4L2 driver can always override a subdev control).
284 v4l2_ctrl_add_handler() adding the controls of the subdev to the controls
618 you need to block the automatic merging of subdev controls to the global
621 merge subdev controls.
623 After each subdev was added, you will then have to call v4l2_ctrl_add_handler
624 manually to add the subdev's control handler (sd->ctrl_handler) to the desired
670 not own. For example, if you have to find a volume control from a subdev.
[all …]
/linux-4.1.27/include/media/
Dv4l2-async.h84 struct v4l2_subdev *subdev,
88 struct v4l2_subdev *subdev,
Dadp1653.h108 #define to_adp1653_flash(sd) container_of(sd, struct adp1653_flash, subdev)
111 struct v4l2_subdev subdev; member
Das3645a.h60 int (*set_power)(struct v4l2_subdev *subdev, int on);
/linux-4.1.27/drivers/media/platform/s5p-tv/
DKconfig30 subdev for use by other drivers. This driver requires
48 subdev for use by other drivers.
58 subdev for use by other drivers.
68 subdev for use by other drivers. This driver requires
/linux-4.1.27/sound/drivers/
Dmtpav.c182 static int translate_subdevice_to_hwport(struct mtpav *chip, int subdev) in translate_subdevice_to_hwport() argument
184 if (subdev < 0) in translate_subdevice_to_hwport()
186 else if (subdev < chip->num_ports) in translate_subdevice_to_hwport()
187 return subdev + 1; /* single mtp port */ in translate_subdevice_to_hwport()
188 else if (subdev < chip->num_ports * 2) in translate_subdevice_to_hwport()
189 return subdev - chip->num_ports + 0x09; /* remote port */ in translate_subdevice_to_hwport()
190 else if (subdev == chip->num_ports * 2 + MTPAV_PIDX_COMPUTER) in translate_subdevice_to_hwport()
192 else if (subdev == chip->num_ports + MTPAV_PIDX_ADAT) in translate_subdevice_to_hwport()
/linux-4.1.27/drivers/media/usb/em28xx/
Dem28xx-camera.c400 struct v4l2_subdev *subdev; in em28xx_init_camera() local
420 subdev = in em28xx_init_camera()
423 if (NULL == subdev) { in em28xx_init_camera()
431 v4l2_subdev_call(subdev, video, s_mbus_fmt, &fmt); in em28xx_init_camera()
/linux-4.1.27/Documentation/zh_CN/video4linux/
Dv4l2-framework.txt216 统一接口,v4l2_subdev 结构体(v4l2-subdev.h)产生了。
289 然后,你必须用一个唯一的名字初始化 subdev->name,并初始化模块的
326 subdev->dev 域就指向了 v4l2_device。
345 这个宏将会做 NULL 指针检查,如果 subdev 为 NULL,则返回-ENODEV;如果
346 subdev->core 或 subdev->core->g_std 为 NULL,则返回 -ENOIOCTLCMD;
347 否则将返回 subdev->ops->core->g_std ops 调用的实际结果。
522 platform_data 为参数调用。早期的 v4l2_i2c_new_(probed_)subdev 函数
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/sw/
Dnv04.c106 nv04_sw_intr(struct nvkm_subdev *subdev) in nv04_sw_intr() argument
108 nv_mask(subdev, 0x000100, 0x80000000, 0x00000000); in nv04_sw_intr()
/linux-4.1.27/drivers/mfd/
Dtps6586x.c396 struct tps6586x_subdev_info *subdev; in tps6586x_add_subdevs() local
401 subdev = &pdata->subdevs[i]; in tps6586x_add_subdevs()
403 pdev = platform_device_alloc(subdev->name, subdev->id); in tps6586x_add_subdevs()
410 pdev->dev.platform_data = subdev->platform_data; in tps6586x_add_subdevs()
411 pdev->dev.of_node = subdev->of_node; in tps6586x_add_subdevs()
Dda903x.c465 struct da903x_subdev_info *subdev; in da903x_add_subdevs() local
470 subdev = &pdata->subdevs[i]; in da903x_add_subdevs()
472 pdev = platform_device_alloc(subdev->name, subdev->id); in da903x_add_subdevs()
479 pdev->dev.platform_data = subdev->platform_data; in da903x_add_subdevs()
Dezx-pcap.c374 struct pcap_subdev *subdev) in pcap_add_subdev() argument
379 pdev = platform_device_alloc(subdev->name, subdev->id); in pcap_add_subdev()
384 pdev->dev.platform_data = subdev->platform_data; in pcap_add_subdev()
/linux-4.1.27/include/linux/mtd/
Dconcat.h27 struct mtd_info *subdev[], /* subdevices to concatenate */
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/
DKbuild2 include $(src)/nvkm/subdev/Kbuild
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
Dinit.h4 struct nvkm_subdev *subdev; member
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/
Dxtensa.c56 _nvkm_xtensa_intr(struct nvkm_subdev *subdev) in _nvkm_xtensa_intr() argument
58 struct nvkm_xtensa *xtensa = (void *)subdev; in _nvkm_xtensa_intr()
Dfalcon.c28 nvkm_falcon_intr(struct nvkm_subdev *subdev) in nvkm_falcon_intr() argument
30 struct nvkm_falcon *falcon = (void *)subdev; in nvkm_falcon_intr()
/linux-4.1.27/drivers/media/i2c/m5mols/
Dm5mols.h325 static inline struct m5mols_info *to_m5mols(struct v4l2_subdev *subdev) in to_m5mols() argument
327 return container_of(subdev, struct m5mols_info, sd); in to_m5mols()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dnv04.c150 nv04_disp_intr(struct nvkm_subdev *subdev) in nv04_disp_intr() argument
152 struct nv04_disp_priv *priv = (void *)subdev; in nv04_disp_intr()
Ddport.c56 .subdev = nv_subdev(disp), in dp_set_link_config()
266 .subdev = nv_subdev(disp), in dp_link_train_init()
292 .subdev = nv_subdev(disp), in dp_link_train_fini()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dnv40.c284 nv40_gr_intr(struct nvkm_subdev *subdev) in nv40_gr_intr() argument
286 struct nvkm_fifo *pfifo = nvkm_fifo(subdev); in nv40_gr_intr()
287 struct nvkm_engine *engine = nv_engine(subdev); in nv40_gr_intr()
290 struct nv40_gr_priv *priv = (void *)subdev; in nv40_gr_intr()
Dnv20.c189 nv20_gr_intr(struct nvkm_subdev *subdev) in nv20_gr_intr() argument
191 struct nvkm_engine *engine = nv_engine(subdev); in nv20_gr_intr()
194 struct nv20_gr_priv *priv = (void *)subdev; in nv20_gr_intr()
Dnv50.c784 nv50_gr_intr(struct nvkm_subdev *subdev) in nv50_gr_intr() argument
786 struct nvkm_fifo *pfifo = nvkm_fifo(subdev); in nv50_gr_intr()
787 struct nvkm_engine *engine = nv_engine(subdev); in nv50_gr_intr()
790 struct nv50_gr_priv *priv = (void *)subdev; in nv50_gr_intr()
/linux-4.1.27/drivers/media/platform/s3c-camif/
Dcamif-core.c238 v4l2_subdev_call(&camif->subdev, pad, set_fmt, NULL, &format); in camif_register_sensor()
267 &camif->subdev.entity, CAMIF_SD_PAD_SINK, in camif_create_media_links()
274 ret = media_entity_create_link(&camif->subdev.entity, i, in camif_create_media_links()
494 ret = v4l2_device_register_subdev(&camif->v4l2_dev, &camif->subdev); in s3c_camif_probe()
/linux-4.1.27/sound/pci/au88x0/
Dau88x0_pcm.c554 int subdev = kcontrol->id.subdevice; in snd_vortex_pcm_vol_get() local
555 struct pcm_vol *p = &vortex->pcm_vol[subdev]; in snd_vortex_pcm_vol_get()
570 int subdev = kcontrol->id.subdevice; in snd_vortex_pcm_vol_put() local
571 struct pcm_vol *p = &vortex->pcm_vol[subdev]; in snd_vortex_pcm_vol_put()
/linux-4.1.27/Documentation/DocBook/media/
DMakefile67 …rl -ne 'print "$$1 " if /\#define\s+([^\s]+)\s+_IO/' $(srctree)/include/uapi/linux/v4l2-subdev.h) \
90 …$(shell perl -ne 'print "$$1 " if /^enum\s+([^\s]+)\s+/' $(srctree)/include/uapi/linux/v4l2-subdev
101 …l perl -ne 'print "$$1 " if /^struct\s+([^\s]+)\s+/' $(srctree)/include/uapi/linux/v4l2-subdev.h) \
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/engine/
Dfalcon.h74 void nvkm_falcon_intr(struct nvkm_subdev *subdev);
/linux-4.1.27/drivers/media/v4l2-core/
DMakefile8 v4l2-event.o v4l2-ctrls.o v4l2-subdev.o v4l2-clk.o \

12