Searched refs:cdev (Results 451 - 475 of 675) sorted by relevance

<<11121314151617181920>>

/linux-master/drivers/net/ipvlan/
H A Dipvtap.c17 #include <linux/cdev.h>
31 static struct cdev ipvtap_cdev;
/linux-master/drivers/misc/
H A Dhpilo.c17 #include <linux/cdev.h>
539 hw = container_of(ip->i_cdev, struct ilo_hwinfo, cdev);
570 hw = container_of(ip->i_cdev, struct ilo_hwinfo, cdev);
749 minor = MINOR(ilo_hw->cdev.dev);
753 cdev_del(&ilo_hw->cdev);
833 cdev_init(&ilo_hw->cdev, &ilo_fops);
834 ilo_hw->cdev.owner = THIS_MODULE;
836 error = cdev_add(&ilo_hw->cdev, MKDEV(ilo_major, start), max_ccb);
838 dev_err(&pdev->dev, "Could not add cdev\n");
/linux-master/include/linux/
H A Drtc.h39 #include <linux/cdev.h>
96 struct cdev char_dev;
H A Dtty_driver.h9 #include <linux/cdev.h>
442 struct cdev **cdevs;
/linux-master/drivers/gpio/
H A Dgpiolib.h12 #include <linux/cdev.h>
59 struct cdev chrdev;
H A Dgpiolib-sysfs.c675 struct device *cdev; local
683 cdev = class_find_device(&gpio_class, NULL, desc, match_export);
684 if (!cdev)
687 ret = sysfs_create_link(&dev->kobj, &cdev->kobj, name);
688 put_device(cdev);
/linux-master/include/scsi/
H A Dlibfcoe.h84 * @cdev: (Optional) pointer to sysfs fcoe_ctlr_device.
124 struct fcoe_ctlr_device *cdev; member in struct:fcoe_ctlr
173 (x)->cdev
/linux-master/drivers/platform/x86/
H A Dhuawei-wmi.c66 struct led_classdev cdev; member in struct:huawei_wmi
309 huawei->cdev.name = "platform::micmute";
310 huawei->cdev.max_brightness = 1;
311 huawei->cdev.brightness_set_blocking = &huawei_wmi_micmute_led_set;
312 huawei->cdev.default_trigger = "audio-micmute";
313 huawei->cdev.dev = dev;
314 huawei->cdev.flags = LED_CORE_SUSPENDRESUME;
316 devm_led_classdev_register(dev, &huawei->cdev);
/linux-master/drivers/usb/gadget/function/
H A Duvc_v4l2.c184 struct usb_composite_dev *cdev = uvc->func.config->cdev; local
188 return usb_ep_set_halt(cdev->gadget->ep0);
195 return usb_ep_queue(cdev->gadget->ep0, req, GFP_KERNEL);
207 struct usb_composite_dev *cdev = uvc->func.config->cdev; local
210 strscpy(cap->card, cdev->gadget->name, sizeof(cap->card));
211 strscpy(cap->bus_info, dev_name(&cdev->gadget->dev),
H A Df_uac2.c1040 struct usb_composite_dev *cdev = cfg->cdev; local
1041 struct usb_gadget *gadget = cdev->gadget;
1053 us = usb_gstrings_attach(cdev, fn_strings, ARRAY_SIZE(strings_fn));
1423 struct usb_composite_dev *cdev = fn->config->cdev; local
1426 struct usb_gadget *gadget = cdev->gadget;
1519 struct usb_request *req = fn->config->cdev->req;
1596 struct usb_request *req = fn->config->cdev->req;
1719 struct usb_composite_dev *cdev local
1766 struct usb_composite_dev *cdev = fn->config->cdev; local
1827 struct usb_composite_dev *cdev = fn->config->cdev; local
[all...]
/linux-master/drivers/misc/cxl/
H A Dfile.c565 static int cxl_add_chardev(struct cxl_afu *afu, dev_t devt, struct cdev *cdev, argument
572 cdev_init(cdev, fops);
573 rc = cdev_add(cdev, devt, 1);
591 cdev_del(cdev);
/linux-master/drivers/hwmon/
H A Dmax6650.c470 static int max6650_get_max_state(struct thermal_cooling_device *cdev, argument
478 static int max6650_get_cur_state(struct thermal_cooling_device *cdev, argument
481 struct max6650_data *data = cdev->devdata;
488 static int max6650_set_cur_state(struct thermal_cooling_device *cdev, argument
491 struct max6650_data *data = cdev->devdata;
/linux-master/drivers/hid/
H A Dwacom_sys.c1314 static enum led_brightness __wacom_led_brightness_get(struct led_classdev *cdev) argument
1316 struct wacom_led *led = container_of(cdev, struct wacom_led, cdev);
1325 static int wacom_led_brightness_set(struct led_classdev *cdev, argument
1328 struct wacom_led *led = container_of(cdev, struct wacom_led, cdev);
1353 static void wacom_led_readonly_brightness_set(struct led_classdev *cdev, argument
1379 led->cdev.name, error);
1389 led->cdev.name = name;
1390 led->cdev
[all...]
/linux-master/drivers/mtd/ubi/
H A Dubi.h21 #include <linux/cdev.h>
277 * @cdev: character device object to create character device
332 struct cdev cdev; member in struct:ubi_volume
440 * @cdev: character device object to create character device
556 struct cdev cdev; member in struct:ubi_device
/linux-master/drivers/dma/idxd/
H A Didxd.h10 #include <linux/cdev.h>
170 struct cdev cdev; member in struct:idxd_cdev
436 #define cdev_dev(cdev) &cdev->idxd_dev.conf_dev
791 /* cdev */
/linux-master/drivers/scsi/
H A Dhosts.c566 struct device *cdev; local
569 cdev = class_find_device(&shost_class, NULL, &hostnum,
571 if (cdev) {
572 shost = scsi_host_get(class_to_shost(cdev));
573 put_device(cdev);
/linux-master/drivers/net/ethernet/qlogic/qed/
H A Dqed_cxt.c781 dma_free_coherent(&p_hwfn->cdev->pdev->dev,
804 *p_virt = dma_alloc_coherent(&p_hwfn->cdev->pdev->dev,
930 dma_free_coherent(&p_hwfn->cdev->pdev->dev,
968 p_virt = dma_alloc_coherent(&p_hwfn->cdev->pdev->dev, size,
1156 if (p_hwfn->cdev->p_iov_info) {
1157 p_mngr->vf_count = p_hwfn->cdev->p_iov_info->total_vfs;
1159 p_hwfn->cdev->p_iov_info->first_vf_in_pf;
1517 if (p_hwfn->cdev->p_iov_info) {
1518 struct qed_hw_sriov_info *p_iov = p_hwfn->cdev->p_iov_info;
1680 (p_hwfn->cdev
[all...]
/linux-master/drivers/scsi/qedi/
H A Dqedi_iscsi.c472 rval = qedi_ops->update_conn(qedi->cdev, qedi_ep->handle,
592 rval = qedi_ops->common->db_recovery_add(qedi->cdev,
602 rval = qedi_ops->offload_conn(qedi->cdev, qedi_ep->handle, conn_info);
605 rval = qedi_ops->common->db_recovery_del(qedi->cdev,
729 qedi_ops->get_stats(qedi->cdev, &iscsi_stats);
973 ret = qedi_ops->acquire_conn(qedi->cdev, &qedi_ep->handle,
1022 tmp = qedi_ops->release_conn(qedi->cdev, qedi_ep->handle);
1172 ret = qedi_ops->common->db_recovery_del(qedi->cdev,
1176 ret = qedi_ops->destroy_conn(qedi->cdev, qedi_ep->handle, abrt_conn);
1194 ret = qedi_ops->release_conn(qedi->cdev, qedi_e
1218 struct qed_dev *cdev = qedi->cdev; local
[all...]
/linux-master/drivers/input/misc/
H A Dims-pcu.c38 struct led_classdev cdev; member in struct:ims_pcu_backlight
947 static int ims_pcu_backlight_set_brightness(struct led_classdev *cdev, argument
951 container_of(cdev, struct ims_pcu_backlight, cdev);
972 ims_pcu_backlight_get_brightness(struct led_classdev *cdev) argument
975 container_of(cdev, struct ims_pcu_backlight, cdev);
1008 backlight->cdev.name = backlight->name;
1009 backlight->cdev.max_brightness = IMS_PCU_MAX_BRIGHTNESS;
1010 backlight->cdev
[all...]
/linux-master/drivers/char/
H A Dvirtio_console.c7 #include <linux/cdev.h>
206 struct cdev *cdev; member in struct:port
260 if (port->cdev->dev == dev) {
1021 struct cdev *cdev = inode->i_cdev; local
1026 port = find_port_by_devt(cdev->dev);
1356 port->cdev = cdev_alloc();
1357 if (!port->cdev) {
1358 dev_err(&port->portdev->vdev->dev, "Error allocating cdev\
[all...]
/linux-master/drivers/input/
H A Dmousedev.c25 #include <linux/cdev.h>
66 struct cdev cdev; member in struct:mousedev
544 mousedev = container_of(inode->i_cdev, struct mousedev, cdev);
905 cdev_init(&mousedev->cdev, &mousedev_fops);
907 error = cdev_device_add(&mousedev->cdev, &mousedev->dev);
927 cdev_device_del(&mousedev->cdev, &mousedev->dev);
H A Djoydev.c25 #include <linux/cdev.h>
43 struct cdev cdev; member in struct:joydev
260 container_of(inode->i_cdev, struct joydev, cdev);
999 cdev_init(&joydev->cdev, &joydev_fops);
1001 error = cdev_device_add(&joydev->cdev, &joydev->dev);
1021 cdev_device_del(&joydev->cdev, &joydev->dev);
/linux-master/drivers/fsi/
H A Dfsi-sbefifo.c21 #include <linux/cdev.h>
124 struct cdev cdev; member in struct:sbefifo
792 struct sbefifo *sbefifo = container_of(inode->i_cdev, struct sbefifo, cdev);
1040 /* Grab a reference to the device (parent of our cdev), we'll drop it later */
1065 cdev_init(&sbefifo->cdev, &sbefifo_fops);
1066 rc = cdev_device_add(&sbefifo->cdev, &sbefifo->dev);
1116 cdev_device_del(&sbefifo->cdev, &sbefifo->dev);
/linux-master/drivers/watchdog/
H A Dwatchdog_dev.c32 #include <linux/cdev.h> /* For character device */
876 cdev);
986 module_put(wd_data->cdev.owner);
1075 cdev_init(&wd_data->cdev, &watchdog_fops);
1076 wd_data->cdev.owner = wdd->ops->owner;
1079 err = cdev_device_add(&wd_data->cdev, &wd_data->dev);
1124 cdev_device_del(&wd_data->cdev, &wd_data->dev);
/linux-master/drivers/net/ethernet/broadcom/
H A Dcnic.c164 struct cnic_dev *cdev; local
167 list_for_each_entry(cdev, &cnic_dev_list, list) {
168 if (netdev == cdev->netdev) {
169 cnic_hold(cdev);
171 return cdev;
5477 struct cnic_dev *cdev; local
5483 cdev = kzalloc(alloc_size, GFP_KERNEL);
5484 if (cdev == NULL)
5487 cdev->netdev = dev;
5488 cdev
5510 struct cnic_dev *cdev; local
5570 struct cnic_dev *cdev; local
5638 struct cnic_dev *cdev = NULL; local
[all...]

Completed in 684 milliseconds

<<11121314151617181920>>