Home
last modified time | relevance | path

Searched refs:class_dev (Results 1 – 25 of 102) sorted by relevance

12345

/linux/drivers/media/usb/pvrusb2/
H A Dpvrusb2-sysfs.c20 struct device *class_dev; member
69 static ssize_t show_name(struct device *class_dev, in show_name() argument
83 static ssize_t show_type(struct device *class_dev, in show_type() argument
104 static ssize_t show_min(struct device *class_dev, in show_min() argument
117 static ssize_t show_max(struct device *class_dev, in show_max() argument
130 static ssize_t show_def(struct device *class_dev, in show_def() argument
149 static ssize_t show_val_norm(struct device *class_dev, in show_val_norm() argument
168 static ssize_t show_val_custom(struct device *class_dev, in show_val_custom() argument
187 static ssize_t show_enum(struct device *class_dev, in show_enum() argument
211 static ssize_t show_bits(struct device *class_dev, in show_bits() argument
[all …]
/linux/drivers/staging/fieldbus/anybuss/
H A Darcx-anybus.c40 struct device *class_dev; member
302 cd->class_dev = kzalloc(sizeof(*cd->class_dev), GFP_KERNEL); in controller_probe()
303 if (!cd->class_dev) { in controller_probe()
307 cd->class_dev->class = &controller_class; in controller_probe()
308 cd->class_dev->groups = controller_attribute_groups; in controller_probe()
309 cd->class_dev->parent = dev; in controller_probe()
310 cd->class_dev->id = id; in controller_probe()
311 cd->class_dev->release = controller_device_release; in controller_probe()
312 dev_set_name(cd->class_dev, "%d", cd->class_dev->id); in controller_probe()
313 dev_set_drvdata(cd->class_dev, cd); in controller_probe()
[all …]
/linux/drivers/comedi/drivers/
H A Dusbduxfast.c177 dev_err(dev->class_dev, in usbduxfast_send_cmd()
252 dev_err(dev->class_dev, "urb resubm failed: %d", ret); in usbduxfast_ai_handle_urb()
284 dev_err(dev->class_dev, in usbduxfast_ai_interrupt()
313 dev_err(dev->class_dev, "usb_submit_urb error %d\n", ret); in usbduxfast_submit_urb()
327 dev_err(dev->class_dev, "unsupported combination of channels\n"); in usbduxfast_ai_check_chanlist()
336 dev_err(dev->class_dev, in usbduxfast_ai_check_chanlist()
341 dev_err(dev->class_dev, in usbduxfast_ai_check_chanlist()
451 dev_err(dev->class_dev, "urbSubmit: err=%d\n", ret); in usbduxfast_ai_inttrig()
458 dev_err(dev->class_dev, "ai is already running\n"); in usbduxfast_ai_inttrig()
776 dev_err(dev->class_dev, in usbduxfast_ai_insn_read()
[all …]
H A Dme4000.c339 dev_err(dev->class_dev, "Can't init Xilinx\n"); in me4000_xilinx_download()
362 dev_err(dev->class_dev, in me4000_xilinx_download()
371 dev_err(dev->class_dev, "DONE flag is not set\n"); in me4000_xilinx_download()
372 dev_err(dev->class_dev, "Download not successful\n"); in me4000_xilinx_download()
474 dev_err(dev->class_dev, in me4000_ai_insn_read()
480 dev_err(dev->class_dev, in me4000_ai_insn_read()
486 dev_err(dev->class_dev, in me4000_ai_insn_read()
546 dev_dbg(dev->class_dev, in me4000_ai_check_chanlist()
553 dev_err(dev->class_dev, in me4000_ai_check_chanlist()
559 dev_dbg(dev->class_dev, in me4000_ai_check_chanlist()
[all …]
H A Dcomedi_bond.c190 dev_err(dev->class_dev, in do_dev_config()
195 dev_err(dev->class_dev, in do_dev_config()
200 dev_err(dev->class_dev, in do_dev_config()
211 dev_err(dev->class_dev, in do_dev_config()
221 dev_err(dev->class_dev, in do_dev_config()
246 dev_err(dev->class_dev, in do_dev_config()
266 dev_err(dev->class_dev, "No channels found!\n"); in do_dev_config()
306 dev_info(dev->class_dev, in bonding_attach()
H A Damplc_dio200_pci.c326 dev_err(dev->class_dev, "error! bad PCI region!\n"); in dio200_pcie_board_setup()
331 dev_err(dev->class_dev, "error! failed to map registers!\n"); in dio200_pcie_board_setup()
356 dev_info(dev->class_dev, "%s: attach pci %s (%s)\n", in dio200_pci_auto_attach()
367 dev_err(dev->class_dev, in dio200_pci_auto_attach()
374 dev_err(dev->class_dev, in dio200_pci_auto_attach()
H A Ddt2801.c323 dev_dbg(dev->class_dev, in dt2801_writecmd()
327 dev_dbg(dev->class_dev, "!ready in %s, ignoring\n", __func__); in dt2801_writecmd()
355 dev_dbg(dev->class_dev, "timeout 1 status=0x%02x\n", stat); in dt2801_reset()
370 dev_dbg(dev->class_dev, "timeout 2 status=0x%02x\n", stat); in dt2801_reset()
433 dev_dbg(dev->class_dev, "timeout\n"); in dt2801_error()
435 dev_dbg(dev->class_dev, "error %d\n", stat); in dt2801_error()
438 dev_dbg(dev->class_dev, "error status 0x%02x, resetting...\n", stat); in dt2801_error()
559 dev_dbg(dev->class_dev, in dt2801_attach()
H A Dusbduxsigma.c239 dev_err(dev->class_dev, "urb resubmit failed (%d)\n", in usbduxsigma_ai_handle_urb()
242 dev_err(dev->class_dev, in usbduxsigma_ai_handle_urb()
273 dev_dbg(dev->class_dev, "CRC error in ISO IN stream\n"); in usbduxsigma_ai_urb_complete()
287 dev_err(dev->class_dev, "non-zero urb status (%d)\n", in usbduxsigma_ai_urb_complete()
355 dev_err(dev->class_dev, "buffer underflow\n"); in usbduxsigma_ao_handle_urb()
378 dev_err(dev->class_dev, "urb resubmit failed (%d)\n", in usbduxsigma_ao_handle_urb()
381 dev_err(dev->class_dev, in usbduxsigma_ao_handle_urb()
414 dev_err(dev->class_dev, "non-zero urb status (%d)\n", in usbduxsigma_ao_urb_complete()
1034 dev_err(dev->class_dev, "non-zero urb status (%d)\n", in usbduxsigma_pwm_urb_complete()
1049 dev_err(dev->class_dev, "urb resubmit failed (%d)\n", ret); in usbduxsigma_pwm_urb_complete()
[all …]
H A Dmite.c284 dev_warn(s->device->class_dev, in mite_sync_input_dma()
324 dev_warn(s->device->class_dev, "mite: DMA underrun\n"); in mite_sync_output_dma()
401 dev_err(s->device->class_dev, in mite_ack_linkc()
659 dev_dbg(s->device->class_dev, in mite_init_ring_descriptors()
663 dev_err(s->device->class_dev, in mite_init_ring_descriptors()
733 dev_err(s->device->class_dev, in mite_buf_change()
805 dev_dbg(dev->class_dev, in mite_setup()
832 dev_warn(dev->class_dev, in mite_setup()
843 dev_dbg(dev->class_dev, in mite_setup()
847 dev_dbg(dev->class_dev, in mite_setup()
[all …]
H A Dgsc_hpdi.c233 dev_err(dev->class_dev, "rx fifo overrun\n"); in gsc_hpdi_interrupt()
238 dev_err(dev->class_dev, "rx fifo underrun\n"); in gsc_hpdi_interrupt()
339 dev_dbg(dev->class_dev, in gsc_hpdi_check_chanlist()
602 dev_warn(dev->class_dev, "failed to remap io memory\n"); in gsc_hpdi_auto_attach()
611 dev_warn(dev->class_dev, in gsc_hpdi_auto_attach()
617 dev_dbg(dev->class_dev, " irq %u\n", dev->irq); in gsc_hpdi_auto_attach()
626 dev_warn(dev->class_dev, in gsc_hpdi_auto_attach()
638 dev_warn(dev->class_dev, in gsc_hpdi_auto_attach()
643 dev_warn(dev->class_dev, in gsc_hpdi_auto_attach()
H A Dni_mio_common.c386 dev_warn(dev->class_dev, "%s: unhandled register=0x%x\n", in m_series_stc_write()
399 dev_warn(dev->class_dev, "%s: unmapped register=0x%x\n", in m_series_stc_write()
434 dev_warn(dev->class_dev, "%s: unhandled register=0x%x\n", in m_series_stc_read()
447 dev_warn(dev->class_dev, "%s: unmapped register=0x%x\n", in m_series_stc_read()
561 dev_err(dev->class_dev, "called with invalid register %d\n", in ni_set_bitfield()
587 dev_err(dev->class_dev, in ni_request_ai_mite_channel()
613 dev_err(dev->class_dev, in ni_request_ao_mite_channel()
643 dev_err(dev->class_dev, in ni_request_gpct_mite_channel()
670 dev_err(dev->class_dev, in ni_request_cdo_mite_channel()
807 dev_err(dev->class_dev, "FIFO flush timeout\n"); in ni_clear_ai_fifo()
[all …]
H A Dni_tiocmd.c155 dev_err(counter->counter_dev->dev->class_dev, in ni_tio_output_cmd()
214 dev_err(counter->counter_dev->dev->class_dev, in ni_tio_cmd()
216 dev_err(counter->counter_dev->dev->class_dev, in ni_tio_cmd()
433 dev_info(counter->counter_dev->dev->class_dev, in ni_tio_acknowledge_and_confirm()
460 dev_notice(counter->counter_dev->dev->class_dev, in ni_tio_handle_interrupt()
471 dev_notice(counter->counter_dev->dev->class_dev, in ni_tio_handle_interrupt()
H A Ddt9812.c694 dev_err(dev->class_dev, "Wrong number of endpoints\n"); in dt9812_find_endpoints()
727 dev_err(dev->class_dev, in dt9812_find_endpoints()
761 dev_err(dev->class_dev, in dt9812_reset_device()
769 dev_err(dev->class_dev, "failed to read vendor id\n"); in dt9812_reset_device()
776 dev_err(dev->class_dev, "failed to read product id\n"); in dt9812_reset_device()
783 dev_err(dev->class_dev, "failed to read device id\n"); in dt9812_reset_device()
790 dev_err(dev->class_dev, "failed to read serial number\n"); in dt9812_reset_device()
796 dev_info(dev->class_dev, "USB DT9812 (%4.4x.%4.4x.%4.4x) #0x%8.8x\n", in dt9812_reset_device()
801 dev_err(dev->class_dev, "Unsupported device!\n"); in dt9812_reset_device()
H A Dusbdux.c276 dev_err(dev->class_dev, in usbduxsub_ai_handle_urb()
280 dev_err(dev->class_dev, in usbduxsub_ai_handle_urb()
311 dev_dbg(dev->class_dev, "CRC error in ISO IN stream\n"); in usbduxsub_ai_isoc_irq()
325 dev_err(dev->class_dev, in usbduxsub_ai_isoc_irq()
395 dev_err(dev->class_dev, "buffer underflow\n"); in usbduxsub_ao_handle_urb()
423 dev_err(dev->class_dev, in usbduxsub_ao_handle_urb()
427 dev_err(dev->class_dev, in usbduxsub_ao_handle_urb()
460 dev_err(dev->class_dev, in usbduxsub_ao_isoc_irq()
1176 dev_err(dev->class_dev, in usbduxsub_pwm_irq()
1194 dev_err(dev->class_dev, in usbduxsub_pwm_irq()
[all …]
H A Dadl_pci9118.c305 dev_err(dev->class_dev, in pci9118_ai_check_chanlist()
311 dev_err(dev->class_dev, in pci9118_ai_check_chanlist()
317 dev_err(dev->class_dev, in pci9118_ai_check_chanlist()
697 dev_err(dev->class_dev, "AMCC IRQ - MASTER DMA ABORT!\n"); in pci9118_interrupt()
703 dev_err(dev->class_dev, "AMCC IRQ - TARGET DMA ABORT!\n"); in pci9118_interrupt()
710 dev_err(dev->class_dev, in pci9118_interrupt()
716 dev_err(dev->class_dev, in pci9118_interrupt()
722 dev_err(dev->class_dev, "A/D Over Speed Status (Warning!)\n"); in pci9118_interrupt()
727 dev_err(dev->class_dev, "A/D Overrun Status (Fatal Error!)\n"); in pci9118_interrupt()
825 dev_info(dev->class_dev, in pci9118_ai_setup_dma()
[all …]
H A Dcomedi_isadma.c177 if (!dev->class_dev) in comedi_isadma_alloc()
180 if (dma_coerce_mask_and_coherent(dev->class_dev, in comedi_isadma_alloc()
184 dma->dev = dev->class_dev; in comedi_isadma_alloc()
H A Dni_at_a2150.c359 dev_dbg(dev->class_dev, in a2150_ai_check_chanlist()
365 dev_dbg(dev->class_dev, in a2150_ai_check_chanlist()
375 dev_dbg(dev->class_dev, in a2150_ai_check_chanlist()
383 dev_dbg(dev->class_dev, in a2150_ai_check_chanlist()
473 dev_err(dev->class_dev, in a2150_ai_cmd()
551 dev_err(dev->class_dev, "you shouldn't see this?\n"); in a2150_ai_cmd()
752 dev_err(dev->class_dev, in a2150_attach()
H A Damplc_pci230.c738 dev_dbg(dev->class_dev, in pci230_ai_insn_read()
860 dev_dbg(dev->class_dev, in pci230_ao_check_chanlist()
867 dev_dbg(dev->class_dev, in pci230_ao_check_chanlist()
1111 dev_err(dev->class_dev, "AO FIFO underrun\n"); in pci230_handle_ao_fifo()
1121 dev_err(dev->class_dev, "AO buffer underrun\n"); in pci230_handle_ao_fifo()
1166 dev_err(dev->class_dev, "AO FIFO underrun\n"); in pci230_handle_ao_fifo()
1422 dev_dbg(dev->class_dev, in pci230_ai_check_chanlist()
1438 dev_dbg(dev->class_dev, in pci230_ai_check_chanlist()
1445 dev_dbg(dev->class_dev, in pci230_ai_check_chanlist()
1452 dev_dbg(dev->class_dev, in pci230_ai_check_chanlist()
[all …]
H A Dni_atmio.c277 dev_err(dev->class_dev, "can't find board\n"); in ni_atmio_probe()
279 dev_err(dev->class_dev, in ni_atmio_probe()
282 dev_err(dev->class_dev, in ni_atmio_probe()
/linux/drivers/mfd/
H A Dcros_ec_dev.c192 device_initialize(&ec->class_dev); in ec_device_probe()
214 ec->class_dev.class = &cros_class; in ec_device_probe()
215 ec->class_dev.parent = dev; in ec_device_probe()
216 ec->class_dev.release = cros_ec_class_release; in ec_device_probe()
218 retval = dev_set_name(&ec->class_dev, "%s", ec_platform->ec_name); in ec_device_probe()
224 retval = device_add(&ec->class_dev); in ec_device_probe()
325 put_device(&ec->class_dev); in ec_device_probe()
334 device_unregister(&ec->class_dev); in ec_device_remove()
/linux/drivers/mmc/core/
H A Dhost.c33 #define cls_dev_to_mmc_host(d) container_of(d, struct mmc_host, class_dev)
548 dev_set_name(&host->class_dev, "mmc%d", host->index); in mmc_alloc_host()
549 host->ws = wakeup_source_register(NULL, dev_name(&host->class_dev)); in mmc_alloc_host()
552 host->class_dev.parent = dev; in mmc_alloc_host()
553 host->class_dev.class = &mmc_host_class; in mmc_alloc_host()
554 device_initialize(&host->class_dev); in mmc_alloc_host()
555 device_enable_async_suspend(&host->class_dev); in mmc_alloc_host()
558 put_device(&host->class_dev); in mmc_alloc_host()
649 err = device_add(&host->class_dev); in mmc_add_host()
653 led_trigger_register_simple(dev_name(&host->class_dev), &host->led); in mmc_add_host()
[all …]
/linux/drivers/comedi/
H A Dcomedi_fops.c117 put_device(dev->class_dev); in comedi_dev_kref_release()
337 dev_dbg(dev->class_dev, in resize_async_buffer()
342 dev_dbg(dev->class_dev, in resize_async_buffer()
360 dev_dbg(dev->class_dev, "subd %d buffer resized to %i bytes\n", in resize_async_buffer()
610 if (dev->class_dev) { in comedi_free_board_dev()
750 dev_err(dev->class_dev, in do_become_nonbusy()
845 dev_warn(dev->class_dev, in do_devconfig_ioctl()
890 dev_dbg(dev->class_dev, in do_bufconfig_ioctl()
1352 dev_dbg(dev->class_dev, in parse_insn()
1360 dev_dbg(dev->class_dev, "no async\n"); in parse_insn()
[all …]
H A Ddrivers.c651 dev_warn(dev->class_dev, in __comedi_device_postconfig_async()
656 dev_warn(dev->class_dev, in __comedi_device_postconfig_async()
661 dev_warn(dev->class_dev, in __comedi_device_postconfig_async()
677 dev_warn(dev->class_dev, "Buffer allocation failed\n"); in __comedi_device_postconfig_async()
878 dev_warn(dev->class_dev, in __comedi_request_region()
885 dev_warn(dev->class_dev, "%s: I/O port conflict (%#lx,%lu)\n", in __comedi_request_region()
986 dev_warn(dev->class_dev, in comedi_device_attach()
1082 dev_info(dev->class_dev, in comedi_auto_config()
1175 dev_warn(dev->class_dev, in comedi_driver_unregister()
/linux/drivers/atm/
H A Dadummy.c48 struct atm_dev *atm_dev = container_of(dev, struct atm_dev, class_dev); in __set_signal()
65 struct atm_dev *atm_dev = container_of(dev, struct atm_dev, class_dev); in __show_signal()
168 if (sysfs_create_group(&atm_dev->class_dev.kobj, &adummy_group_attrs)) in adummy_init()
169 dev_err(&atm_dev->class_dev, "Could not register attrs for adummy\n"); in adummy_init()
/linux/net/atm/
H A Datm_sysfs.c12 #define to_atm_dev(cldev) container_of(cldev, struct atm_dev, class_dev)
141 struct device *cdev = &adev->class_dev; in atm_register_sysfs()
170 struct device *cdev = &adev->class_dev; in atm_unregister_sysfs()

12345