Home
last modified time | relevance | path

Searched refs:subdev (Results 1 – 25 of 170) sorted by relevance

1234567

/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 …]
/drivers/gpu/drm/nouveau/core/core/
Dsubdev.c31 nouveau_subdev_reset(struct nouveau_object *subdev) in nouveau_subdev_reset() argument
33 nv_trace(subdev, "resetting...\n"); in nouveau_subdev_reset()
34 nv_ofuncs(subdev)->fini(subdev, false); in nouveau_subdev_reset()
35 nv_debug(subdev, "reset\n"); in nouveau_subdev_reset()
39 nouveau_subdev_init(struct nouveau_subdev *subdev) in nouveau_subdev_init() argument
41 int ret = nouveau_object_init(&subdev->base); in nouveau_subdev_init()
45 nouveau_subdev_reset(&subdev->base); in nouveau_subdev_init()
56 nouveau_subdev_fini(struct nouveau_subdev *subdev, bool suspend) in nouveau_subdev_fini() argument
58 if (subdev->unit) { in nouveau_subdev_fini()
59 nv_mask(subdev, 0x000200, subdev->unit, 0x00000000); in nouveau_subdev_fini()
[all …]
Dprintk.c40 struct nouveau_object *subdev = object; in nv_printk_() local
47 subdev = object->engine; in nv_printk_()
51 if (subdev->parent) in nv_printk_()
52 device = subdev->parent; in nv_printk_()
54 if (level > nv_subdev(subdev)->debug) in nv_printk_()
58 name[level], nv_subdev(subdev)->name, in nv_printk_()
/drivers/gpu/drm/nouveau/
DMakefile25 nouveau-y += core/core/subdev.o
27 nouveau-y += core/subdev/bar/base.o
28 nouveau-y += core/subdev/bar/nv50.o
29 nouveau-y += core/subdev/bar/nvc0.o
30 nouveau-y += core/subdev/bios/base.o
31 nouveau-y += core/subdev/bios/bit.o
32 nouveau-y += core/subdev/bios/conn.o
33 nouveau-y += core/subdev/bios/dcb.o
34 nouveau-y += core/subdev/bios/disp.o
35 nouveau-y += core/subdev/bios/dp.o
[all …]
/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 …]
/drivers/gpu/drm/nouveau/core/include/core/
Dsubdev.h62 struct nouveau_subdev *subdev = nv_subdev(obj); in nv_rd08() local
63 u8 data = ioread8(subdev->mmio + addr); in nv_rd08()
64 nv_spam(subdev, "nv_rd08 0x%06x 0x%02x\n", addr, data); in nv_rd08()
71 struct nouveau_subdev *subdev = nv_subdev(obj); in nv_rd16() local
72 u16 data = ioread16_native(subdev->mmio + addr); in nv_rd16()
73 nv_spam(subdev, "nv_rd16 0x%06x 0x%04x\n", addr, data); in nv_rd16()
80 struct nouveau_subdev *subdev = nv_subdev(obj); in nv_rd32() local
81 u32 data = ioread32_native(subdev->mmio + addr); in nv_rd32()
82 nv_spam(subdev, "nv_rd32 0x%06x 0x%08x\n", addr, data); in nv_rd32()
89 struct nouveau_subdev *subdev = nv_subdev(obj); in nv_wr08() local
[all …]
/drivers/gpu/drm/nouveau/core/engine/device/
Dbase.c57 struct nouveau_object *subdev[NVDEV_SUBDEV_NR]; member
245 if (device->subdev[i]) { in nouveau_devobj_ctor()
246 nouveau_object_ref(device->subdev[i], in nouveau_devobj_ctor()
247 &devobj->subdev[i]); in nouveau_devobj_ctor()
253 &devobj->subdev[i]); in nouveau_devobj_ctor()
269 struct nouveau_object *subdev = devobj->subdev[c++]; in nouveau_devobj_ctor() local
270 if (subdev && !nv_iclass(subdev, NV_ENGINE_CLASS)) { in nouveau_devobj_ctor()
271 ret = nouveau_object_inc(subdev); in nouveau_devobj_ctor()
276 if (subdev) { in nouveau_devobj_ctor()
277 nouveau_subdev_reset(subdev); in nouveau_devobj_ctor()
[all …]
/drivers/gpu/drm/nouveau/core/subdev/bus/
Dnv31.c33 nv31_bus_intr(struct nouveau_subdev *subdev) in nv31_bus_intr() argument
35 struct nouveau_bus *pbus = nouveau_bus(subdev); in nv31_bus_intr()
40 subdev = nouveau_subdev(pbus, NVDEV_SUBDEV_GPIO); in nv31_bus_intr()
41 if (subdev && subdev->intr) in nv31_bus_intr()
42 subdev->intr(subdev); in nv31_bus_intr()
58 subdev = nouveau_subdev(pbus, NVDEV_SUBDEV_THERM); in nv31_bus_intr()
59 if (subdev && subdev->intr) in nv31_bus_intr()
60 subdev->intr(subdev); in nv31_bus_intr()
Dnv04.c33 nv04_bus_intr(struct nouveau_subdev *subdev) in nv04_bus_intr() argument
35 struct nouveau_bus *pbus = nouveau_bus(subdev); in nv04_bus_intr()
45 subdev = nouveau_subdev(subdev, NVDEV_SUBDEV_GPIO); in nv04_bus_intr()
46 if (subdev && subdev->intr) in nv04_bus_intr()
47 subdev->intr(subdev); in nv04_bus_intr()
Dnv50.c33 nv50_bus_intr(struct nouveau_subdev *subdev) in nv50_bus_intr() argument
35 struct nouveau_bus *pbus = nouveau_bus(subdev); in nv50_bus_intr()
51 subdev = nouveau_subdev(pbus, NVDEV_SUBDEV_THERM); in nv50_bus_intr()
52 if (subdev && subdev->intr) in nv50_bus_intr()
53 subdev->intr(subdev); in nv50_bus_intr()
/drivers/media/i2c/
Dmt9v032.c123 struct v4l2_subdev subdev; member
152 return container_of(sd, struct mt9v032, subdev); in to_mt9v032()
173 struct i2c_client *client = v4l2_get_subdevdata(&mt9v032->subdev); in mt9v032_set_chip_control()
188 struct i2c_client *client = v4l2_get_subdevdata(&mt9v032->subdev); in mt9v032_update_aec_agc()
208 struct i2c_client *client = v4l2_get_subdevdata(&mt9v032->subdev); in mt9v032_update_hblank()
219 struct i2c_client *client = v4l2_get_subdevdata(&mt9v032->subdev); in mt9v032_power_on()
223 mt9v032->pdata->set_clock(&mt9v032->subdev, mt9v032->sysclk); in mt9v032_power_on()
242 mt9v032->pdata->set_clock(&mt9v032->subdev, 0); in mt9v032_power_off()
247 struct i2c_client *client = v4l2_get_subdevdata(&mt9v032->subdev); in __mt9v032_set_power()
307 static int mt9v032_s_stream(struct v4l2_subdev *subdev, int enable) in mt9v032_s_stream() argument
[all …]
Dmt9p031.c118 struct v4l2_subdev subdev; member
146 return container_of(sd, struct mt9p031, subdev); in to_mt9p031()
162 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in mt9p031_set_output_control()
176 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in mt9p031_set_mode2()
190 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in mt9p031_reset()
223 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in mt9p031_clk_setup()
240 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in mt9p031_pll_enable()
266 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in mt9p031_pll_disable()
315 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in __mt9p031_set_power()
342 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in mt9p031_set_params()
[all …]
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
389 static int mt9m032_get_pad_format(struct v4l2_subdev *subdev, in mt9m032_get_pad_format() argument
[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 …]
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 …]
Dmt9t001.c116 struct v4l2_subdev subdev; member
131 return container_of(sd, struct mt9t001, subdev); in to_mt9t001()
147 struct i2c_client *client = v4l2_get_subdevdata(&mt9t001->subdev); in mt9t001_set_output_control()
194 static int mt9t001_s_stream(struct v4l2_subdev *subdev, int enable) in mt9t001_s_stream() argument
197 struct i2c_client *client = v4l2_get_subdevdata(subdev); in mt9t001_s_stream()
198 struct mt9t001 *mt9t001 = to_mt9t001(subdev); in mt9t001_s_stream()
240 static int mt9t001_enum_mbus_code(struct v4l2_subdev *subdev, in mt9t001_enum_mbus_code() argument
251 static int mt9t001_enum_frame_size(struct v4l2_subdev *subdev, in mt9t001_enum_frame_size() argument
266 static int mt9t001_get_format(struct v4l2_subdev *subdev, in mt9t001_get_format() argument
270 struct mt9t001 *mt9t001 = to_mt9t001(subdev); in mt9t001_get_format()
[all …]
/drivers/media/platform/omap3isp/
Dispstat.c139 "match.\n", stat->subdev.name); in isp_stat_buf_check_magic()
148 "not match.\n", stat->subdev.name); in isp_stat_buf_check_magic()
265 stat->subdev.name); in isp_stat_buf_queue()
283 stat->subdev.name); in isp_stat_buf_next()
313 stat->subdev.name); in isp_stat_buf_get()
318 "corrupted data\n.", stat->subdev.name); in isp_stat_buf_get()
333 "not enough.\n", stat->subdev.name); in isp_stat_buf_get()
347 stat->subdev.name, rval); in isp_stat_buf_get()
386 stat->subdev.name); in isp_stat_bufs_free()
409 "buffer %d\n", stat->subdev.name, i); in isp_stat_bufs_alloc_iommu()
[all …]
Disp.c536 pipe = to_isp_pipeline(&isp->isp_ccp2.subdev.entity); in isp_isr_sbl()
542 pipe = to_isp_pipeline(&isp->isp_csi2a.subdev.entity); in isp_isr_sbl()
548 pipe = to_isp_pipeline(&isp->isp_ccdc.subdev.entity); in isp_isr_sbl()
554 pipe = to_isp_pipeline(&isp->isp_prev.subdev.entity); in isp_isr_sbl()
563 pipe = to_isp_pipeline(&isp->isp_res.subdev.entity); in isp_isr_sbl()
701 struct v4l2_subdev *subdev; in isp_pipeline_pm_power_one() local
704 subdev = media_entity_type(entity) == MEDIA_ENT_T_V4L2_SUBDEV in isp_pipeline_pm_power_one()
707 if (entity->use_count == 0 && change > 0 && subdev != NULL) { in isp_pipeline_pm_power_one()
708 ret = v4l2_subdev_call(subdev, core, s_power, 1); in isp_pipeline_pm_power_one()
716 if (entity->use_count == 0 && change < 0 && subdev != NULL) in isp_pipeline_pm_power_one()
[all …]
/drivers/media/i2c/smiapp/
Dsmiapp-core.c1279 static int smiapp_set_power(struct v4l2_subdev *subdev, int on) in smiapp_set_power() argument
1281 struct smiapp_sensor *sensor = to_smiapp_sensor(subdev); in smiapp_set_power()
1464 static int smiapp_set_stream(struct v4l2_subdev *subdev, int enable) in smiapp_set_stream() argument
1466 struct smiapp_sensor *sensor = to_smiapp_sensor(subdev); in smiapp_set_stream()
1485 static int smiapp_enum_mbus_code(struct v4l2_subdev *subdev, in smiapp_enum_mbus_code() argument
1489 struct i2c_client *client = v4l2_get_subdevdata(subdev); in smiapp_enum_mbus_code()
1490 struct smiapp_sensor *sensor = to_smiapp_sensor(subdev); in smiapp_enum_mbus_code()
1498 subdev->name, code->pad, code->index); in smiapp_enum_mbus_code()
1500 if (subdev != &sensor->src->sd || code->pad != SMIAPP_PAD_SRC) { in smiapp_enum_mbus_code()
1528 static u32 __smiapp_get_mbus_code(struct v4l2_subdev *subdev, in __smiapp_get_mbus_code() argument
[all …]
/drivers/media/platform/soc_camera/
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()
158 platform_set_drvdata(pdev, &priv->subdev); in soc_camera_platform_probe()
164 v4l2_subdev_init(&priv->subdev, &platform_subdev_ops); in soc_camera_platform_probe()
165 v4l2_set_subdevdata(&priv->subdev, p); in soc_camera_platform_probe()
166 strncpy(priv->subdev.name, dev_name(&pdev->dev), V4L2_SUBDEV_NAME_SIZE); in soc_camera_platform_probe()
168 ret = v4l2_device_register_subdev(&ici->v4l2_dev, &priv->subdev); in soc_camera_platform_probe()
182 struct soc_camera_platform_info *p = v4l2_get_subdevdata(&priv->subdev); in soc_camera_platform_remove()
185 v4l2_device_unregister_subdev(&priv->subdev); in soc_camera_platform_remove()
Dsh_mobile_csi2.c38 struct v4l2_subdev subdev; member
50 struct sh_csi2 *priv = container_of(sd, struct sh_csi2, subdev); in sh_csi2_try_fmt()
98 struct sh_csi2 *priv = container_of(sd, struct sh_csi2, subdev); in sh_csi2_s_fmt()
146 struct sh_csi2 *priv = container_of(sd, struct sh_csi2, subdev); in sh_csi2_s_mbus_config()
206 struct soc_camera_device *icd = v4l2_get_subdev_hostdata(&priv->subdev); in sh_csi2_client_connect()
208 struct device *dev = v4l2_get_subdevdata(&priv->subdev); in sh_csi2_client_connect()
275 pm_runtime_put(v4l2_get_subdevdata(&priv->subdev)); in sh_csi2_client_disconnect()
280 struct sh_csi2 *priv = container_of(sd, struct sh_csi2, subdev); in sh_csi2_s_power()
335 v4l2_subdev_init(&priv->subdev, &sh_csi2_subdev_ops); in sh_csi2_probe()
336 v4l2_set_subdevdata(&priv->subdev, &pdev->dev); in sh_csi2_probe()
[all …]
/drivers/staging/comedi/kcomedilib/
Dkcomedilib_main.c86 if (insn->subdev >= dev->n_subdevices) { in comedi_do_insn()
90 s = &dev->subdevices[insn->subdev]; in comedi_do_insn()
94 "%d not useable subdevice\n", insn->subdev); in comedi_do_insn()
133 int comedi_dio_config(struct comedi_device *dev, unsigned int subdev, in comedi_dio_config() argument
141 insn.subdev = subdev; in comedi_dio_config()
148 int comedi_dio_bitfield(struct comedi_device *dev, unsigned int subdev, in comedi_dio_bitfield() argument
158 insn.subdev = subdev; in comedi_dio_bitfield()
/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()
/drivers/gpu/drm/nouveau/core/subdev/vm/
Dnvc0.c164 nvc0_vm_flush_engine(struct nouveau_subdev *subdev, u64 addr, int type) in nvc0_vm_flush_engine() argument
166 struct nvc0_vmmgr_priv *priv = (void *)nouveau_vmmgr(subdev); in nvc0_vm_flush_engine()
173 if (!nv_wait_ne(subdev, 0x100c80, 0x00ff0000, 0x00000000)) { in nvc0_vm_flush_engine()
174 nv_error(subdev, "vm timeout 0: 0x%08x %d\n", in nvc0_vm_flush_engine()
175 nv_rd32(subdev, 0x100c80), type); in nvc0_vm_flush_engine()
178 nv_wr32(subdev, 0x100cb8, addr >> 8); in nvc0_vm_flush_engine()
179 nv_wr32(subdev, 0x100cbc, 0x80000000 | type); in nvc0_vm_flush_engine()
182 if (!nv_wait(subdev, 0x100c80, 0x00008000, 0x00008000)) { in nvc0_vm_flush_engine()
183 nv_error(subdev, "vm timeout 1: 0x%08x %d\n", in nvc0_vm_flush_engine()
184 nv_rd32(subdev, 0x100c80), type); in nvc0_vm_flush_engine()
/drivers/staging/comedi/drivers/
Dadl_pci7x3x.c156 int subdev; in adl_pci7x3x_auto_attach() local
188 subdev = 0; in adl_pci7x3x_auto_attach()
193 s = &dev->subdevices[subdev]; in adl_pci7x3x_auto_attach()
204 subdev++; in adl_pci7x3x_auto_attach()
208 s = &dev->subdevices[subdev]; in adl_pci7x3x_auto_attach()
219 subdev++; in adl_pci7x3x_auto_attach()
226 s = &dev->subdevices[subdev]; in adl_pci7x3x_auto_attach()
237 subdev++; in adl_pci7x3x_auto_attach()
241 s = &dev->subdevices[subdev]; in adl_pci7x3x_auto_attach()
252 subdev++; in adl_pci7x3x_auto_attach()

1234567