Searched defs:dev (Results 176 - 200 of 5572) sorted by relevance

1234567891011>>

/drivers/leds/
H A Dleds-s3c24xx.c32 static inline struct s3c24xx_gpio_led *pdev_to_gpio(struct platform_device *dev) argument
34 return platform_get_drvdata(dev);
62 static int s3c24xx_led_remove(struct platform_device *dev) argument
64 struct s3c24xx_gpio_led *led = pdev_to_gpio(dev);
71 static int s3c24xx_led_probe(struct platform_device *dev) argument
73 struct s3c24xx_led_platdata *pdata = dev_get_platdata(&dev->dev);
77 led = devm_kzalloc(&dev->dev, sizeof(struct s3c24xx_gpio_led),
82 platform_set_drvdata(dev, le
[all...]
/drivers/macintosh/
H A Dmacio_sysfs.c8 field##_show (struct device *dev, struct device_attribute *attr, \
11 struct macio_dev *mdev = to_macio_device (dev); \
12 return sprintf (buf, format_string, mdev->ofdev.dev.of_node->field); \
16 compatible_show (struct device *dev, struct device_attribute *attr, char *buf) argument
23 of = &to_macio_device (dev)->ofdev;
24 compat = of_get_property(of->dev.of_node, "compatible", &cplen);
41 static ssize_t modalias_show (struct device *dev, struct device_attribute *attr, argument
44 int len = of_device_get_modalias(dev, buf, PAGE_SIZE - 2);
52 static ssize_t devspec_show(struct device *dev, argument
57 ofdev = to_platform_device(dev);
[all...]
/drivers/media/common/siano/
H A Dsmsir.c48 ir_raw_event_store(coredev->ir.dev, &ev);
50 ir_raw_event_handle(coredev->ir.dev);
57 struct rc_dev *dev; local
60 dev = rc_allocate_device();
61 if (!dev) {
77 dev->input_name = coredev->ir.name;
78 dev->input_phys = coredev->ir.phys;
79 dev->dev.parent = coredev->device;
83 dev
[all...]
H A Dsmsir.h38 struct rc_dev *dev; member in struct:ir_t
/drivers/media/firewire/
H A Dfiredtv-rc.c129 int fdtv_register_rc(struct firedtv *fdtv, struct device *dev) argument
140 idev->dev.parent = dev;
/drivers/media/i2c/
H A Daptina-pll.c29 int aptina_pll_calculate(struct device *dev, argument
40 dev_dbg(dev, "PLL: ext clock %u pix clock %u\n",
45 dev_err(dev, "pll: invalid external clock frequency.\n");
50 dev_err(dev, "pll: invalid pixel clock frequency.\n");
78 dev_dbg(dev, "pll: mf min %u max %u\n", mf_min, mf_max);
80 dev_err(dev, "pll: no valid combined N*P1 divisor.\n");
137 dev_err(dev, "pll: P1 minimum value must be >0.\n");
162 dev_dbg(dev, "PLL: N %u M %u P1 %u\n", pll->n, pll->m, pll->p1);
166 dev_err(dev, "pll: no valid N and P1 divisors found.\n");
/drivers/media/pci/cx23885/
H A Dcx23885-ioctl.c27 struct cx23885_dev *dev = video_drvdata(file); local
32 if (dev->v4l_device == NULL)
36 strlcpy(chip->name, dev->v4l2_dev.name, sizeof(chip->name));
41 static int cx23417_g_register(struct cx23885_dev *dev, argument
46 if (dev->v4l_device == NULL)
52 if (mc417_register_read(dev, (u16) reg->reg, &value))
63 struct cx23885_dev *dev = video_drvdata(file); local
68 return cx23417_g_register(dev, reg);
70 if ((reg->reg & 0x3) != 0 || reg->reg >= pci_resource_len(dev->pci, 0))
78 static int cx23417_s_register(struct cx23885_dev *dev, argument
95 struct cx23885_dev *dev = video_drvdata(file); local
[all...]
H A Dcx23885-ir.c35 struct cx23885_dev *dev = local
38 unsigned long *notifications = &dev->ir_rx_notifications;
52 if (dev->kernel_ir)
53 cx23885_input_rx_work_handler(dev, events);
58 struct cx23885_dev *dev = local
61 unsigned long *notifications = &dev->ir_tx_notifications;
74 struct cx23885_dev *dev = to_cx23885(sd->v4l2_dev); local
75 unsigned long *notifications = &dev->ir_rx_notifications;
90 if (sd == dev->sd_cx25840)
91 cx23885_ir_rx_work_handler(&dev
99 struct cx23885_dev *dev = to_cx23885(sd->v4l2_dev); local
[all...]
H A Dnetup-init.c106 void netup_initialize(struct cx23885_dev *dev) argument
108 struct cx23885_i2c *i2c_bus = &dev->i2c_bus[2];
/drivers/media/pci/cx25821/
H A Dcx25821-gpio.c27 void cx25821_set_gpiopin_direction(struct cx25821_dev *dev, argument
56 static void cx25821_set_gpiopin_logicvalue(struct cx25821_dev *dev, argument
68 cx25821_set_gpiopin_direction(dev, pin_number, 0);
85 void cx25821_gpio_init(struct cx25821_dev *dev) argument
87 if (dev == NULL)
90 switch (dev->board) {
94 cx25821_set_gpiopin_logicvalue(dev, 5, 1);
/drivers/media/pci/cx88/
H A Dcx88-vp3054-i2c.c42 struct cx8802_dev *dev = data; local
43 struct cx88_core *core = dev->core;
44 struct vp3054_i2c_state *vp3054_i2c = dev->vp3054;
59 struct cx8802_dev *dev = data; local
60 struct cx88_core *core = dev->core;
61 struct vp3054_i2c_state *vp3054_i2c = dev->vp3054;
76 struct cx8802_dev *dev = data; local
77 struct cx88_core *core = dev->core;
86 struct cx8802_dev *dev = data; local
87 struct cx88_core *core = dev
107 vp3054_i2c_probe(struct cx8802_dev *dev) argument
145 vp3054_i2c_remove(struct cx8802_dev *dev) argument
[all...]
/drivers/media/pci/saa7164/
H A Dsaa7164-buffer.c71 struct saa7164_dev *dev = buf->port->dev; local
97 struct saa7164_dev *dev = port->dev; local
122 buf->cpu = pci_alloc_consistent(port->dev->pci, buf->pci_size,
127 buf->pt_cpu = pci_alloc_consistent(port->dev->pci, buf->pt_size,
156 pci_free_consistent(port->dev->pci, buf->pci_size, buf->cpu, buf->dma);
167 struct saa7164_dev *dev; local
171 dev = buf->port->dev;
189 struct saa7164_dev *dev = port->dev; local
205 struct saa7164_dev *dev = port->dev; local
238 struct saa7164_dev *dev = port->dev; local
286 saa7164_buffer_alloc_user(struct saa7164_dev *dev, u32 len) argument
[all...]
H A Dsaa7164-i2c.c33 struct saa7164_dev *dev = bus->dev; local
96 struct saa7164_dev *dev = bus->dev; local
103 bus->i2c_adap.dev.parent = &dev->pci->dev;
105 strlcpy(bus->i2c_adap.name, bus->dev->name,
116 dev->name, bus->nr);
/drivers/media/platform/s5p-mfc/
H A Ds5p_mfc_cmd_v5.c20 static int s5p_mfc_cmd_host2risc_v5(struct s5p_mfc_dev *dev, int cmd, argument
33 cur_cmd = mfc_read(dev, S5P_FIMV_HOST2RISC_CMD);
35 mfc_write(dev, args->arg[0], S5P_FIMV_HOST2RISC_ARG1);
36 mfc_write(dev, args->arg[1], S5P_FIMV_HOST2RISC_ARG2);
37 mfc_write(dev, args->arg[2], S5P_FIMV_HOST2RISC_ARG3);
38 mfc_write(dev, args->arg[3], S5P_FIMV_HOST2RISC_ARG4);
40 mfc_write(dev, cmd, S5P_FIMV_HOST2RISC_CMD);
45 static int s5p_mfc_sys_init_cmd_v5(struct s5p_mfc_dev *dev) argument
50 h2r_args.arg[0] = dev->fw_size;
51 return s5p_mfc_cmd_host2risc_v5(dev, S5P_FIMV_H2R_CMD_SYS_INI
56 s5p_mfc_sleep_cmd_v5(struct s5p_mfc_dev *dev) argument
65 s5p_mfc_wakeup_cmd_v5(struct s5p_mfc_dev *dev) argument
77 struct s5p_mfc_dev *dev = ctx->dev; local
130 struct s5p_mfc_dev *dev = ctx->dev; local
[all...]
H A Ds5p_mfc_cmd_v6.c21 static int s5p_mfc_cmd_host2risc_v6(struct s5p_mfc_dev *dev, int cmd, argument
27 mfc_write(dev, 0x0, S5P_FIMV_RISC2HOST_CMD_V6);
30 mfc_write(dev, cmd, S5P_FIMV_HOST2RISC_CMD_V6);
31 mfc_write(dev, 0x1, S5P_FIMV_HOST2RISC_INT_V6);
36 static int s5p_mfc_sys_init_cmd_v6(struct s5p_mfc_dev *dev) argument
39 struct s5p_mfc_buf_size_v6 *buf_size = dev->variant->buf_size->priv;
41 s5p_mfc_hw_call(dev->mfc_ops, alloc_dev_context_buffer, dev);
42 mfc_write(dev, dev
48 s5p_mfc_sleep_cmd_v6(struct s5p_mfc_dev *dev) argument
57 s5p_mfc_wakeup_cmd_v6(struct s5p_mfc_dev *dev) argument
69 struct s5p_mfc_dev *dev = ctx->dev; local
130 struct s5p_mfc_dev *dev = ctx->dev; local
[all...]
H A Ds5p_mfc_pm.c36 int s5p_mfc_init_pm(struct s5p_mfc_dev *dev) argument
40 pm = &dev->pm;
41 p_dev = dev;
42 pm->clock_gate = clk_get(&dev->plat_dev->dev, MFC_GATE_CLK_NAME);
55 if (dev->variant->version != MFC_VERSION_V6) {
56 pm->clock = clk_get(&dev->plat_dev->dev, MFC_SCLK_NAME);
71 pm->device = &dev->plat_dev->dev;
87 s5p_mfc_final_pm(struct s5p_mfc_dev *dev) argument
[all...]
/drivers/media/usb/cx231xx/
H A Dcx231xx-input.c34 dev_dbg(&ir->rc->input_dev->dev, "%s\n", __func__);
52 dev_dbg(&ir->rc->input_dev->dev, "cmd %02x, scan = %02x\n",
61 int cx231xx_ir_init(struct cx231xx *dev) argument
66 dev_dbg(&dev->udev->dev, "%s\n", __func__);
69 if (!cx231xx_boards[dev->model].rc_map_name)
75 memset(&dev->init_data, 0, sizeof(dev->init_data));
76 dev->init_data.rc_dev = rc_allocate_device();
77 if (!dev
108 cx231xx_ir_exit(struct cx231xx *dev) argument
[all...]
H A Dcx231xx-pcb-cfg.c657 int initialize_cx231xx(struct cx231xx *dev) argument
674 retval = cx231xx_read_ctrl_reg(dev, VRT_GET_REGISTER, BOARD_CFG_STAT,
778 dev->current_scenario_idx = _current_scenario_idx;
780 memcpy(&dev->current_pcb_config, p_pcb_info,
786 (dev->current_pcb_config.index) + 1);
787 cx231xx_info("type=%x\n", dev->current_pcb_config.type);
788 cx231xx_info("mode=%x\n", dev->current_pcb_config.mode);
789 cx231xx_info("speed=%x\n", dev->current_pcb_config.speed);
791 dev->current_pcb_config.ts1_source);
793 dev
[all...]
/drivers/media/usb/hdpvr/
H A Dhdpvr-control.c27 int hdpvr_config_call(struct hdpvr_device *dev, uint value, u8 valbuf) argument
32 mutex_lock(&dev->usbc_mutex);
33 dev->usbc_buf[0] = valbuf;
34 ret = usb_control_msg(dev->udev,
35 usb_sndctrlpipe(dev->udev, 0),
38 dev->usbc_buf, 1, 10000);
40 mutex_unlock(&dev->usbc_mutex);
41 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev,
48 int get_video_info(struct hdpvr_device *dev, struct hdpvr_video_info *vidinf) argument
53 mutex_lock(&dev
80 get_input_lines_info(struct hdpvr_device *dev) argument
106 hdpvr_set_bitrate(struct hdpvr_device *dev) argument
124 hdpvr_set_audio(struct hdpvr_device *dev, u8 input, enum v4l2_mpeg_audio_encoding codec) argument
159 hdpvr_set_options(struct hdpvr_device *dev) argument
[all...]
/drivers/media/usb/usbtv/
H A Dusbtv-core.c58 struct device *dev = &intf->dev; local
76 usbtv->dev = dev;
94 dev_info(dev, "Fushicai USBTV007 Audio-Video Grabber\n");
/drivers/mfd/
H A Drn5t618.c25 static bool rn5t618_volatile_reg(struct device *dev, unsigned int reg) argument
68 priv = devm_kzalloc(&i2c->dev, sizeof(*priv), GFP_KERNEL);
77 dev_err(&i2c->dev, "regmap init failed: %d\n", ret);
81 ret = mfd_add_devices(&i2c->dev, -1, rn5t618_cells,
84 dev_err(&i2c->dev, "failed to add sub-devices: %d\n", ret);
105 mfd_remove_devices(&i2c->dev);
H A Ducb1400_core.c48 static int ucb1400_core_probe(struct device *dev) argument
55 struct ucb1400_pdata *pdata = dev_get_platdata(dev);
66 dev_set_drvdata(dev, ucb);
68 ac97 = to_ac97_t(dev);
131 static int ucb1400_core_remove(struct device *dev) argument
133 struct ucb1400 *ucb = dev_get_drvdata(dev);
H A Ducb1x00-assabet.c24 static ssize_t name##_show(struct device *dev, struct device_attribute *attr, \
27 struct ucb1x00 *ucb = classdev_to_ucb1x00(dev); \
40 static int ucb1x00_assabet_add(struct ucb1x00_dev *dev) argument
42 struct ucb1x00 *ucb = dev->ucb;
63 pdev = platform_device_register_data(&ucb->dev, "gpio-keys", -1,
66 device_create_file(&ucb->dev, &dev_attr_vbatt);
67 device_create_file(&ucb->dev, &dev_attr_vcharger);
68 device_create_file(&ucb->dev, &dev_attr_batt_temp);
70 dev->priv = pdev;
74 static void ucb1x00_assabet_remove(struct ucb1x00_dev *dev) argument
[all...]
H A Dwm831x-i2c.c33 wm831x = devm_kzalloc(&i2c->dev, sizeof(struct wm831x), GFP_KERNEL);
38 wm831x->dev = &i2c->dev;
43 dev_err(wm831x->dev, "Failed to allocate register map: %d\n",
60 static int wm831x_i2c_suspend(struct device *dev) argument
62 struct wm831x *wm831x = dev_get_drvdata(dev);
67 static int wm831x_i2c_poweroff(struct device *dev) argument
69 struct wm831x *wm831x = dev_get_drvdata(dev);
H A Dwm831x-otp.c46 static ssize_t wm831x_unique_id_show(struct device *dev, argument
49 struct wm831x *wm831x = dev_get_drvdata(dev);
73 ret = device_create_file(wm831x->dev, &dev_attr_unique_id);
75 dev_err(wm831x->dev, "Unique ID attribute not created: %d\n",
82 dev_err(wm831x->dev, "Failed to read UUID: %d\n", ret);
89 device_remove_file(wm831x->dev, &dev_attr_unique_id);

Completed in 276 milliseconds

1234567891011>>