Home
last modified time | relevance | path

Searched refs:devtype (Results 1 – 60 of 60) sorted by relevance

/linux-4.1.27/drivers/staging/unisys/virtpci/
Dvirtpci.c87 static int virtpci_device_add(struct device *parentbus, int devtype,
91 static int virtpci_device_del(struct device *parentbus, int devtype,
93 static int virtpci_device_serverdown(struct device *parentbus, int devtype,
96 static int virtpci_device_serverup(struct device *parentbus, int devtype,
545 static int delete_all_virt(enum virtpci_dev_type devtype, in delete_all_virt() argument
559 if ((devtype != VIRTHBA_TYPE) && (devtype != VIRTNIC_TYPE)) in delete_all_virt()
563 i = virtpci_device_del(vbus, devtype, NULL, NULL); in delete_all_virt()
790 static int virtpci_device_add(struct device *parentbus, int devtype, in virtpci_device_add() argument
804 if ((devtype != VIRTHBA_TYPE) && (devtype != VIRTNIC_TYPE)) { in virtpci_device_add()
805 POSTCODE_LINUX_3(VPCI_CREATE_FAILURE_PC, devtype, in virtpci_device_add()
[all …]
Dvirtpci.h55 enum virtpci_dev_type devtype; /* indicates type of the member
/linux-4.1.27/drivers/bus/
Dimx-weim.c113 const struct imx_weim_devtype *devtype) in weim_timing_setup() argument
115 u32 cs_idx, value[devtype->cs_regs_count]; in weim_timing_setup()
123 if (cs_idx >= devtype->cs_count) in weim_timing_setup()
127 value, devtype->cs_regs_count); in weim_timing_setup()
132 for (i = 0; i < devtype->cs_regs_count; i++) in weim_timing_setup()
133 writel(value[i], base + cs_idx * devtype->cs_stride + i * 4); in weim_timing_setup()
143 const struct imx_weim_devtype *devtype = of_id->data; in weim_parse_dt() local
147 if (devtype == &imx50_weim_devtype) { in weim_parse_dt()
157 ret = weim_timing_setup(child, base, devtype); in weim_parse_dt()
/linux-4.1.27/drivers/leds/
Dleds-mc13783.c43 struct mc13xxx_led_devtype *devtype; member
108 mc13xxx_reg_rmw(leds->master, leds->devtype->ledctrl_base + reg, in mc13xxx_led_work()
143 leds->devtype->num_regs); in mc13xxx_led_probe_dt()
162 pdata->led[i].id = leds->devtype->led_min + tmp; in mc13xxx_led_probe_dt()
194 struct mc13xxx_led_devtype *devtype = in mc13xxx_led_probe() local
204 leds->devtype = devtype; in mc13xxx_led_probe()
218 (leds->num_leds > (devtype->led_max - devtype->led_min + 1))) { in mc13xxx_led_probe()
228 for (i = 0; i < devtype->num_regs; i++) { in mc13xxx_led_probe()
229 ret = mc13xxx_reg_write(mcdev, leds->devtype->ledctrl_base + i, in mc13xxx_led_probe()
244 if ((id > devtype->led_max) || (id < devtype->led_min)) { in mc13xxx_led_probe()
/linux-4.1.27/drivers/gpu/ipu-v3/
Dipu-common.c800 const struct ipu_devtype *devtype = ipu->devtype; in ipu_submodules_init() local
802 ret = ipu_cpmem_init(ipu, dev, ipu_base + devtype->cpmem_ofs); in ipu_submodules_init()
808 ret = ipu_csi_init(ipu, dev, 0, ipu_base + devtype->csi0_ofs, in ipu_submodules_init()
815 ret = ipu_csi_init(ipu, dev, 1, ipu_base + devtype->csi1_ofs, in ipu_submodules_init()
823 ipu_base + devtype->ic_ofs, in ipu_submodules_init()
824 ipu_base + devtype->tpm_ofs); in ipu_submodules_init()
830 ret = ipu_di_init(ipu, dev, 0, ipu_base + devtype->disp0_ofs, in ipu_submodules_init()
837 ret = ipu_di_init(ipu, dev, 1, ipu_base + devtype->disp1_ofs, in ipu_submodules_init()
844 ret = ipu_dc_init(ipu, dev, ipu_base + devtype->cm_ofs + in ipu_submodules_init()
845 IPU_CM_DC_REG_OFS, ipu_base + devtype->dc_tmpl_ofs); in ipu_submodules_init()
[all …]
Dipu-prv.h147 const struct ipu_devtype *devtype; member
/linux-4.1.27/drivers/media/platform/coda/
Dcoda-bit.c70 if (dev->devtype->product == CODA_960 || in coda_command_async()
71 dev->devtype->product == CODA_7541) { in coda_command_async()
82 if (dev->devtype->product == CODA_960) { in coda_command_async()
122 if (dev->devtype->product == CODA_960) { in coda_hw_reset()
136 if (dev->devtype->product == CODA_960) in coda_hw_reset()
294 if ((dev->devtype->product == CODA_960) && in coda_bit_stream_end_flag()
307 if (dev->devtype->product == CODA_DX6) in coda_parabuf_write()
356 dev->devtype->product != CODA_DX6) in coda_alloc_framebuffers()
378 dev->devtype->product != CODA_DX6) in coda_alloc_framebuffers()
385 if ((dev->devtype->product != CODA_DX6) && in coda_alloc_framebuffers()
[all …]
Dcoda-common.c301 const struct coda_codec *codecs = dev->devtype->codecs; in coda_find_codec()
302 int num_codecs = dev->devtype->num_codecs; in coda_find_codec()
326 const struct coda_codec *codecs = dev->devtype->codecs; in coda_get_max_dimensions()
327 int num_codecs = dev->devtype->num_codecs; in coda_get_max_dimensions()
352 if (i >= dev->devtype->num_vdevs) in to_coda_video_device()
355 return dev->devtype->vdevs[i]; in to_coda_video_device()
384 strlcpy(cap->card, coda_product_name(ctx->dev->devtype->product), in coda_querycap()
1124 if (ctx->dev->devtype->product == CODA_960) in set_default_params()
1254 ctx->dev->devtype->product == CODA_7541)) { in coda_start_streaming()
1501 if (ctx->dev->devtype->product != CODA_960) { in coda_encode_ctrls()
[all …]
Dcoda.h76 const struct coda_devtype *devtype; member
/linux-4.1.27/arch/powerpc/boot/
Dvirtex.c82 char devtype[MAX_PROP_LEN]; in platform_specific_init() local
94 if ((getprop(devp, "device_type", devtype, sizeof(devtype)) > 0) in platform_specific_init()
95 && !strcmp(devtype, "serial") in platform_specific_init()
Dserial.c88 char devtype[MAX_PROP_LEN]; in serial_get_stdout_devp() local
100 if ((getprop(devp, "device_type", devtype, sizeof(devtype)) > 0) in serial_get_stdout_devp()
101 && !strcmp(devtype, "serial")) in serial_get_stdout_devp()
/linux-4.1.27/drivers/tty/serial/
Dmax310x.c269 struct max310x_devtype *devtype; member
315 "%s ID 0x%02x does not match\n", s->devtype->name, val); in max3107_detect()
336 dev_err(dev, "%s not present\n", s->devtype->name); in max3108_detect()
358 "%s ID 0x%02x does not match\n", s->devtype->name, val); in max3109_detect()
389 "%s ID 0x%02x does not match\n", s->devtype->name, val); in max14830_detect()
918 s->devtype->power(port, 1); in max310x_startup()
952 s->devtype->power(port, 0); in max310x_shutdown()
959 return (port->type == PORT_MAX310X) ? s->devtype->name : NULL; in max310x_type()
1014 s->devtype->power(&s->p[i].port, 0); in max310x_suspend()
1026 s->devtype->power(&s->p[i].port, 1); in max310x_resume()
[all …]
Dsc16is7xx.c311 struct sc16is7xx_devtype *devtype; member
935 return (port->type == PORT_SC16IS7XX) ? s->devtype->name : NULL; in sc16is7xx_type()
1043 struct sc16is7xx_devtype *devtype, in sc16is7xx_probe() argument
1055 sizeof(struct sc16is7xx_one) * devtype->nr_uart, in sc16is7xx_probe()
1074 s->devtype = devtype; in sc16is7xx_probe()
1080 s->uart.nr = devtype->nr_uart; in sc16is7xx_probe()
1088 if (devtype->nr_gpio) { in sc16is7xx_probe()
1098 s->gpio.ngpio = devtype->nr_gpio; in sc16is7xx_probe()
1108 for (i = 0; i < devtype->nr_uart; ++i) { in sc16is7xx_probe()
1148 if (devtype->nr_gpio) in sc16is7xx_probe()
[all …]
Dimx.c192 enum imx_uart_type devtype; member
230 .devtype = IMX1_UART,
234 .devtype = IMX21_UART,
238 .devtype = IMX6Q_UART,
273 return sport->devdata->devtype == IMX1_UART; in is_imx1_uart()
278 return sport->devdata->devtype == IMX21_UART; in is_imx21_uart()
283 return sport->devdata->devtype == IMX6Q_UART; in is_imx6q_uart()
Dmxs-auart.c153 enum mxs_auart_type devtype; member
192 return s->devtype == IMX28_AUART; in is_imx28_auart()
1244 s->devtype = pdev->id_entry->driver_data; in mxs_auart_probe()
/linux-4.1.27/drivers/hid/
Dhid-wiimote-core.c206 if (wdata->state.devtype == WIIMOTE_DEV_BALANCE_BOARD) { in select_drm()
616 unsigned int devtype) in wiimote_modules_load() argument
623 mods = wiimote_devtype_mods[devtype]; in wiimote_modules_load()
663 wdata->state.devtype = devtype; in wiimote_modules_load()
686 mods = wiimote_devtype_mods[wdata->state.devtype]; in wiimote_modules_unload()
689 wdata->state.devtype = WIIMOTE_DEV_UNKNOWN; in wiimote_modules_unload()
807 __u8 devtype = WIIMOTE_DEV_GENERIC; in wiimote_init_set_type() local
816 devtype = WIIMOTE_DEV_BALANCE_BOARD; in wiimote_init_set_type()
819 devtype = WIIMOTE_DEV_PRO_CONTROLLER; in wiimote_init_set_type()
824 devtype = WIIMOTE_DEV_GEN10; in wiimote_init_set_type()
[all …]
Dhid-wiimote.h121 __u8 devtype; member
/linux-4.1.27/drivers/staging/unisys/include/
Dvbushelper.h34 snprintf(bus_device_info_ptr->devtype, in bus_device_info_init()
35 sizeof(bus_device_info_ptr->devtype), in bus_device_info_init()
/linux-4.1.27/drivers/staging/unisys/common-spar/include/
Dvbusdeviceinfo.h29 u8 devtype[16]; /* short string identifying the device type */ member
160 psrc = &devinfo->devtype[0]; in vbuschannel_devinfo_to_string()
161 nsrc = sizeof(devinfo->devtype); in vbuschannel_devinfo_to_string()
/linux-4.1.27/drivers/media/i2c/
Dov7670.c237 const struct ov7670_devtype *devtype; /* Device specifics */ member
920 unsigned int n_win_sizes = info->devtype->n_win_sizes; in ov7670_try_fmt_internal()
944 wsize = info->devtype->win_sizes + i; in ov7670_try_fmt_internal()
956 for (wsize = info->devtype->win_sizes; in ov7670_try_fmt_internal()
957 wsize < info->devtype->win_sizes + win_sizes_limit; wsize++) in ov7670_try_fmt_internal()
960 if (wsize >= info->devtype->win_sizes + win_sizes_limit) in ov7670_try_fmt_internal()
1044 info->devtype->get_framerate(sd, &cp->timeperframe); in ov7670_g_parm()
1060 return info->devtype->set_framerate(sd, tpf); in ov7670_s_parm()
1096 unsigned int n_win_sizes = info->devtype->n_win_sizes; in ov7670_enum_frame_size()
1106 struct ov7670_win_size *win = &info->devtype->win_sizes[i]; in ov7670_enum_frame_size()
[all …]
/linux-4.1.27/drivers/spi/
Dspi-imx.c84 enum spi_imx_devtype devtype; member
119 return d->devtype_data->devtype == IMX27_CSPI; in is_imx27_cspi()
124 return d->devtype_data->devtype == IMX35_CSPI; in is_imx35_cspi()
129 return (d->devtype_data->devtype == IMX51_ECSPI) ? 64 : 8; in spi_imx_get_fifosize()
628 .devtype = IMX1_CSPI,
637 .devtype = IMX21_CSPI,
647 .devtype = IMX27_CSPI,
656 .devtype = IMX31_CSPI,
666 .devtype = IMX35_CSPI,
675 .devtype = IMX51_ECSPI,
/linux-4.1.27/drivers/block/paride/
Dparide.h42 int devtype; /* device type: PI_PD etc. */ member
69 int devtype, /* device type: PI_PD, PI_PCD, etc ... */
Dparide.c349 int devtype, int verbose, char *device) in pi_init() argument
388 pi->devtype = devtype; in pi_init()
Dbpck.c243 if (pi->devtype == PI_PCD) { in bpck_connect()
/linux-4.1.27/drivers/mtd/devices/
Dlart.c306 __u32 manufacturer,devtype; in flash_probe() local
314 devtype = FLASH_TO_DATA (read32 (ADDR_TO_FLASH_U2 (0x00000001))); in flash_probe()
319 …return (manufacturer == FLASH_MANUFACTURER && (devtype == FLASH_DEVICE_16mbit_TOP || devtype == FL… in flash_probe()
/linux-4.1.27/drivers/block/
Dcciss_scsi.h62 int devtype; member
Dcciss_scsi.c437 sd->devtype = device->devtype; in cciss_scsi_add_entry()
446 scsi_device_type(sd->devtype), hostno, in cciss_scsi_add_entry()
469 scsi_device_type(sd.devtype), hostno, in cciss_scsi_remove_entry()
507 return dev1->devtype == dev2->devtype && in device_is_the_same()
589 csd->devtype = sd[j].devtype; in adjust_cciss_scsi_table()
1222 this_device->devtype = (inq_buff[0] & 0x1f); in cciss_update_non_disk_devices()
1238 switch (this_device->devtype) in cciss_update_non_disk_devices()
1263 scsi_device_type(this_device->devtype)); in cciss_update_non_disk_devices()
1344 sd->devtype, in cciss_scsi_show_info()
/linux-4.1.27/drivers/scsi/
Datp870u.h53 unsigned char devtype; member
Datp870u.c1454 dev->id[0][i].devtype = mbuf[0]; in is870()
1616 …if ((dev->id[0][i].devtype == 0x00) || (dev->id[0][i].devtype == 0x07) || ((dev->id[0][i].devtype in is870()
1973 dev->id[0][i].devtype = mbuf[0]; in is880()
2291 …if ((dev->id[0][i].devtype == 0x00) || (dev->id[0][i].devtype == 0x07) || ((dev->id[0][i].devtype in is880()
2539 atp_dev->id[c][k].devtype = 0x7f; in atp870u_init_tables()
3366 dev->id[c][i].devtype = mbuf[0]; in is885()
3677 if ((dev->id[c][i].devtype == 0x00) || (dev->id[c][i].devtype == 0x07) || in is885()
3678 ((dev->id[c][i].devtype == 0x05) && ((n & 0x10) != 0))) { in is885()
Dgdth.h370 u8 devtype; /* SCSI devicetype */ member
884 u16 devtype; /* further information */ member
Dgdth_proc.c290 pdi->devtype = 0xff; in gdth_show_info()
293 if (pdi->devtype == 0) { in gdth_show_info()
Dhpsa.h40 int devtype; member
Dhpsa.c958 scsi_device_type(device->devtype), hostno, in hpsa_scsi_add_entry()
993 scsi_device_type(new_entry->devtype), hostno, new_entry->bus, in hpsa_scsi_update_entry()
1021 scsi_device_type(new_entry->devtype), hostno, new_entry->bus, in hpsa_scsi_replace_entry()
1043 scsi_device_type(sd->devtype), hostno, sd->bus, sd->target, in hpsa_scsi_remove_entry()
1096 if (dev1->devtype != dev2->devtype) in device_is_the_same()
1292 if (dev[j]->devtype != TYPE_DISK) in hpsa_figure_phys_disk_ptrs()
1334 if (dev[i]->devtype != TYPE_DISK) in hpsa_update_log_drive_phys_drive_ptrs()
2685 this_device->devtype = (inq_buff[0] & 0x1f); in hpsa_update_device_info()
2696 if (this_device->devtype == TYPE_DISK && in hpsa_update_device_info()
2720 *is_OBDR_device = (this_device->devtype == TYPE_ROM && in hpsa_update_device_info()
[all …]
DBusLogic.h1103 unsigned char devtype:5; /* Byte 0 Bits 0-4 */ member
Dgdth.c1961 ha->hdr[hdrive].devtype = (u16)ha->info; in gdth_analyse_hdrive()
2187 if ( (nscp->cmnd[4]&1) && !(ha->hdr[t].devtype&1) ) { in gdth_next()
2196 nscp->cmnd[3] = (ha->hdr[t].devtype&1) ? 1:0; in gdth_next()
2345 t,ha->hdr[t].devtype)); in gdth_internal_cache_cmd()
2346 inq.type_qual = (ha->hdr[t].devtype&4) ? TYPE_ROM:TYPE_DISK; in gdth_internal_cache_cmd()
2350 if ((ha->hdr[t].devtype & 1) || in gdth_internal_cache_cmd()
2376 mpd.hd.dev_par = (ha->hdr[t].devtype&2) ? 0x80:0; in gdth_internal_cache_cmd()
4427 ha->hdr[i].devtype = (status == S_OK ? (u16)info : 0); in ioc_rescan()
/linux-4.1.27/sound/soc/codecs/
Dmax98090.c1508 if (max98090->devtype == MAX98091) { in max98090_add_widgets()
1519 if (max98090->devtype == MAX98091) { in max98090_add_widgets()
2423 enum max98090_type devtype; in max98090_probe() local
2459 devtype = MAX98090; in max98090_probe()
2462 devtype = MAX98091; in max98090_probe()
2465 devtype = MAX98090; in max98090_probe()
2469 if (max98090->devtype != devtype) { in max98090_probe()
2471 max98090->devtype = devtype; in max98090_probe()
2576 max98090->devtype = driver_data; in max98090_i2c_probe()
Dwm8904.c55 enum wm8904_type devtype; member
1178 switch (wm8904->devtype) { in wm8904_add_widgets()
2059 switch (wm8904->devtype) { in wm8904_probe()
2067 wm8904->devtype); in wm8904_probe()
2159 wm8904->devtype = *((enum wm8904_type *)match->data); in wm8904_i2c_probe()
2161 wm8904->devtype = id->driver_data; in wm8904_i2c_probe()
Dmax98088.c43 enum max98088_type devtype; member
1989 max98088->devtype = id->driver_data; in max98088_i2c_probe()
Dmax98090.h1523 enum max98090_type devtype; member
Dmax98095.c45 enum max98095_type devtype; member
2404 max98095->devtype = id->driver_data; in max98095_i2c_probe()
/linux-4.1.27/drivers/i2c/busses/
Di2c-rcar.c120 enum rcar_i2c_type devtype; member
176 switch (priv->devtype) { in rcar_i2c_clock_calculate()
656 priv->devtype = (long)of_match_device(rcar_i2c_dt_ids, in rcar_i2c_probe()
659 priv->devtype = platform_get_device_id(pdev)->driver_data; in rcar_i2c_probe()
Di2c-imx.c179 enum imx_i2c_type devtype; member
215 .devtype = IMX1_I2C,
225 .devtype = IMX21_I2C,
235 .devtype = VF610_I2C,
267 return i2c_imx->hwdata->devtype == IMX1_I2C; in is_imx1_i2c()
/linux-4.1.27/drivers/rtc/
Drtc-mxc.c84 enum imx_rtc_type devtype; member
102 return data->devtype == IMX1_RTC; in is_imx1_rtc()
369 pdata->devtype = pdev->id_entry->driver_data; in mxc_rtc_probe()
/linux-4.1.27/drivers/mtd/spi-nor/
Dfsl-quadspi.c200 enum fsl_qspi_devtype devtype; member
207 .devtype = FSL_QUADSPI_VYBRID,
214 .devtype = FSL_QUADSPI_IMX6SX,
240 return q->devtype_data->devtype == FSL_QUADSPI_VYBRID; in is_vybrid_qspi()
245 return q->devtype_data->devtype == FSL_QUADSPI_IMX6SX; in is_imx6sx_qspi()
/linux-4.1.27/drivers/media/pci/cx18/
Dcx18-driver.c907 u32 devtype; in cx18_probe() local
972 devtype = cx18_read_reg(cx, 0xC72028); in cx18_probe()
973 switch (devtype & 0xff000000) { in cx18_probe()
975 CX18_INFO("cx23418 revision %08x (A)\n", devtype); in cx18_probe()
978 CX18_INFO("cx23418 revision %08x (B)\n", devtype); in cx18_probe()
981 CX18_INFO("cx23418 revision %08x (Unknown)\n", devtype); in cx18_probe()
/linux-4.1.27/net/llc/
Dllc_sap.c28 static int llc_mac_header_len(unsigned short devtype) in llc_mac_header_len() argument
30 switch (devtype) { in llc_mac_header_len()
/linux-4.1.27/drivers/mmc/host/
Dmxcmmc.c162 enum mxcmci_type devtype; member
199 return host->devtype == IMX31_MMC; in is_imx31_mmc()
204 return host->devtype == MPC512X_MMC; in is_mpc512x_mmc()
1060 host->devtype = id_entry->driver_data; in mxcmci_probe()
1062 host->devtype = pdev->id_entry->driver_data; in mxcmci_probe()
/linux-4.1.27/Documentation/ABI/stable/
Dsysfs-bus-xen-backend1 What: /sys/bus/xen-backend/devices/*/devtype
/linux-4.1.27/drivers/edac/
Dmv64x60_edac.c666 u32 devtype; in mv64x60_init_csrows() local
681 devtype = (ctl >> 20) & 0x3; in mv64x60_init_csrows()
682 switch (devtype) { in mv64x60_init_csrows()
/linux-4.1.27/sound/core/
Dpcm.c1080 int devtype = -1; in snd_pcm_dev_register() local
1085 devtype = SNDRV_DEVICE_TYPE_PCM_PLAYBACK; in snd_pcm_dev_register()
1088 devtype = SNDRV_DEVICE_TYPE_PCM_CAPTURE; in snd_pcm_dev_register()
1092 err = snd_register_device(devtype, pcm->card, pcm->device, in snd_pcm_dev_register()
/linux-4.1.27/drivers/dma/
Dimx-dma.c188 enum imx_dma_type devtype; member
230 return imxdma->devtype == IMX1_DMA; in is_imx1_dma()
235 return imxdma->devtype == IMX27_DMA; in is_imx27_dma()
1067 imxdma->devtype = pdev->id_entry->driver_data; in imxdma_probe()
/linux-4.1.27/drivers/video/fbdev/
Dimxfb.c145 enum imxfb_type devtype; member
201 return fbi->devtype == IMX1_FB; in is_imx1_fb()
640 fbi->devtype = pdev->id_entry->driver_data; in imxfb_init_fbinfo()
/linux-4.1.27/Documentation/ABI/testing/
Dsysfs-driver-hid-wiimote28 What: /sys/bus/hid/drivers/wiimote/<dev>/devtype
/linux-4.1.27/drivers/scsi/aacraid/
Dlinit.c283 struct aac_driver_ident* aac_get_driver_ident(int devtype) in aac_get_driver_ident() argument
285 return &aac_drivers[devtype]; in aac_get_driver_ident()
Daacraid.h2143 struct aac_driver_ident* aac_get_driver_ident(int devtype);
/linux-4.1.27/drivers/xen/xenbus/
Dxenbus_probe.c399 static DEVICE_ATTR_RO(devtype);
/linux-4.1.27/Documentation/s390/
Ddriver-model.txt40 devtype: The device type / model, if applicable.
/linux-4.1.27/include/linux/
Dnetdevice.h1883 #define SET_NETDEV_DEVTYPE(net, devtype) ((net)->dev.type = (devtype)) argument
/linux-4.1.27/drivers/media/platform/soc_camera/
Dmx2_camera.c259 enum mx2_camera_type devtype; member
/linux-4.1.27/drivers/s390/cio/
Ddevice.c642 static DEVICE_ATTR(devtype, 0444, devtype_show, NULL);