/linux-master/drivers/leds/rgb/ |
H A D | leds-ncp5623.c | 42 static int ncp5623_brightness_set(struct led_classdev *cdev, argument 45 struct led_classdev_mc *mc_cdev = lcdev_to_mccdev(cdev); 78 static int ncp5623_pattern_set(struct led_classdev *cdev, argument 82 struct led_classdev_mc *mc_cdev = lcdev_to_mccdev(cdev);
|
/linux-master/drivers/platform/x86/ |
H A D | fujitsu-laptop.c | 691 static int logolamp_set(struct led_classdev *cdev, argument 694 struct acpi_device *device = to_acpi_device(cdev->dev->parent); 711 static enum led_brightness logolamp_get(struct led_classdev *cdev) argument 713 struct acpi_device *device = to_acpi_device(cdev->dev->parent); 727 static int kblamps_set(struct led_classdev *cdev, argument 730 struct acpi_device *device = to_acpi_device(cdev->dev->parent); 740 static enum led_brightness kblamps_get(struct led_classdev *cdev) argument 742 struct acpi_device *device = to_acpi_device(cdev->dev->parent); 752 static int radio_led_set(struct led_classdev *cdev, argument 755 struct acpi_device *device = to_acpi_device(cdev 765 radio_led_get(struct led_classdev *cdev) argument 776 eco_led_set(struct led_classdev *cdev, enum led_brightness brightness) argument 791 eco_led_get(struct led_classdev *cdev) argument [all...] |
H A D | acerhdf.c | 382 struct thermal_cooling_device *cdev) 385 if (cdev != cl_dev) 388 if (thermal_zone_bind_cooling_device(thermal, 0, cdev, 398 struct thermal_cooling_device *cdev) 400 if (cdev != cl_dev) 403 if (thermal_zone_unbind_cooling_device(thermal, 0, cdev)) { 461 static int acerhdf_get_max_state(struct thermal_cooling_device *cdev, argument 469 static int acerhdf_get_cur_state(struct thermal_cooling_device *cdev, argument 483 static int acerhdf_set_cur_state(struct thermal_cooling_device *cdev, argument 381 acerhdf_bind(struct thermal_zone_device *thermal, struct thermal_cooling_device *cdev) argument 397 acerhdf_unbind(struct thermal_zone_device *thermal, struct thermal_cooling_device *cdev) argument
|
/linux-master/tools/testing/selftests/gpio/ |
H A D | gpio-mockup.sh | 12 dev_type="cdev" 33 echo " cdev (character device ABI) - default" 90 # This implementation drives the GPIO character device (cdev) uAPI. 106 $BASE/gpio-mockup-cdev $cdev_opts /dev/$chip $offset 150 $BASE/gpio-mockup-cdev $cdev_opts -s$val /dev/$chip $offset & 153 # allow for gpio-mockup-cdev to launch and request line 158 $BASE/gpio-mockup-cdev $cdev_opts /dev/$chip $offset || true 201 # tested where supported by the userspace interface (cdev). 347 echo "WARNING: gpio cdev ABI v1 is deprecated." 350 cdev) [all...] |
/linux-master/drivers/net/ethernet/qlogic/qede/ |
H A D | qede_ptp.c | 50 rc = ptp->ops->adjfreq(edev->cdev, ppb); 153 rc = ptp->ops->read_tx_ts(edev->cdev, ×tamp); 193 rc = ptp->ops->read_cc(edev->cdev, &phc_cycles); 286 ptp->ops->cfg_filters(edev->cdev, rx_filter, tx_type); 393 ptp->ops->disable(edev->cdev); 412 rc = ptp->ops->enable(edev->cdev); 537 rc = ptp->ops->read_rx_ts(edev->cdev, ×tamp);
|
/linux-master/drivers/platform/chrome/wilco_ec/ |
H A D | event.c | 34 #include <linux/cdev.h> 177 * @cdev: Char dev that userspace reads() and polls() from. 178 * @dev: Device associated with the %cdev. 194 struct cdev cdev; member in struct:event_device_data 308 dev_data = container_of(inode->i_cdev, struct event_device_data, cdev); 488 cdev_init(&dev_data->cdev, &event_fops); 489 error = cdev_device_add(&dev_data->cdev, &dev_data->dev); 506 cdev_device_del(&dev_data->cdev, &dev_data->dev);
|
/linux-master/drivers/scsi/cxgbi/ |
H A D | libcxgbi.h | 83 #define cxgbi_is_iso_config(csk) ((csk)->cdev->skb_iso_txhdr) 113 struct cxgbi_device *cdev; member in struct:cxgbi_sock 455 struct cxgbi_device *cdev; member in struct:cxgbi_hba 506 void (*csk_ddp_clear_map)(struct cxgbi_device *cdev, 525 #define cxgbi_cdev_priv(cdev) ((cdev)->dd_data) 579 if (chba->cdev->flags & CXGBI_FLAG_IPV4_SET) 598 int cxgbi_device_portmap_create(struct cxgbi_device *cdev, unsigned int base, 600 void cxgbi_device_portmap_cleanup(struct cxgbi_device *cdev); 641 int cxgbi_ddp_ppm_setup(void **ppm_pp, struct cxgbi_device *cdev, [all...] |
/linux-master/drivers/s390/cio/ |
H A D | qdio_debug.c | 70 dev_name(&irq_ptr->cdev->dev)); 182 struct ccw_device *cdev = m->private; local 186 rc = qdio_get_ssqd_desc(cdev, &ssqd); 299 irq_ptr->debugfs_dev = debugfs_create_dir(dev_name(&irq_ptr->cdev->dev), 303 debugfs_create_file("ssqd", 0444, irq_ptr->debugfs_dev, irq_ptr->cdev,
|
/linux-master/drivers/vfio/ |
H A D | vfio.h | 11 #include <linux/cdev.h> 72 struct cdev cdev; member in struct:vfio_group 362 /* cdev does not support noiommu device */ 366 return cdev_device_add(&device->cdev, &device->device); 374 cdev_device_del(&device->cdev, &device->device);
|
/linux-master/kernel/time/ |
H A D | posix-clock.c | 117 container_of(inode->i_cdev, struct posix_clock, cdev); 188 cdev_init(&clk->cdev, &posix_clock_file_operations); 189 err = cdev_device_add(&clk->cdev, dev); 195 clk->cdev.owner = clk->ops.owner; 204 cdev_device_del(&clk->cdev, clk->dev);
|
/linux-master/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_spq.c | 414 ret = qed_chain_alloc(p_hwfn->cdev, &p_eq->chain, ¶ms); 443 qed_chain_free(p_hwfn->cdev, &p_hwfn->p_eq->chain); 456 if (IS_VF(p_hwfn->cdev)) 542 rc = qed_db_recovery_add(p_hwfn->cdev, db_addr, &p_spq->db_data, 557 struct qed_dev *cdev = p_hwfn->cdev; local 570 ret = qed_chain_alloc(cdev, &p_spq->chain, ¶ms); 580 p_virt = dma_alloc_coherent(&cdev->pdev->dev, 593 qed_chain_free(cdev, &p_spq->chain); 612 qed_db_recovery_del(p_hwfn->cdev, db_add [all...] |
H A D | qed_mcp.c | 855 mb_params.param = PDA_COMP | hsi_ver | p_hwfn->cdev->drv_type; 1109 switch (p_hwfn->cdev->wol_config) { 1119 p_hwfn->cdev->wol_config); 1158 if (p_hwfn->cdev->wol_config == QED_OV_WOL_ENABLED) { 1159 u8 *p_mac = p_hwfn->cdev->wol_mac; 1438 qed_configure_vp_wfq_on_link_change(p_hwfn->cdev, p_ptt, 1671 if (IS_VF(p_hwfn->cdev)) 1690 struct qed_dev *cdev = p_hwfn->cdev; local 1703 if (p_hwfn != QED_LEADING_HWFN(cdev)) 2650 struct qed_dev *cdev = p_hwfn->cdev; local 2666 qed_recovery_prolog(struct qed_dev *cdev) argument 3066 qed_mcp_nvm_read(struct qed_dev *cdev, u32 addr, u8 *p_buf, u32 len) argument 3112 qed_mcp_nvm_resp(struct qed_dev *cdev, u8 *p_buf) argument 3127 qed_mcp_nvm_write(struct qed_dev *cdev, u32 cmd, u32 addr, u8 *p_buf, u32 len) argument 3976 struct qed_dev *cdev = p_hwfn->cdev; local 4015 struct qed_dev *cdev = p_hwfn->cdev; local [all...] |
H A D | qed_roce.c | 85 if (p_hwfn->cdev->recov_in_prog) 241 qp->irq = dma_alloc_coherent(&p_hwfn->cdev->pdev->dev, 353 dma_free_coherent(&p_hwfn->cdev->pdev->dev, 379 qp->orq = dma_alloc_coherent(&p_hwfn->cdev->pdev->dev, 484 dma_free_coherent(&p_hwfn->cdev->pdev->dev, 711 p_ramrod_res = dma_alloc_coherent(&p_hwfn->cdev->pdev->dev, 734 dma_free_coherent(&p_hwfn->cdev->pdev->dev, 743 dma_free_coherent(&p_hwfn->cdev->pdev->dev, 768 p_ramrod_res = dma_alloc_coherent(&p_hwfn->cdev->pdev->dev, 796 dma_free_coherent(&p_hwfn->cdev [all...] |
/linux-master/drivers/s390/block/ |
H A D | dasd_eckd.c | 129 dasd_eckd_probe (struct ccw_device *cdev) argument 134 ret = ccw_device_set_options(cdev, CCWDEV_ALLOW_FORCE | 137 DBF_EVENT_DEVID(DBF_WARNING, cdev, "%s", 142 ret = dasd_generic_probe(cdev); 147 dasd_eckd_set_online(struct ccw_device *cdev) argument 149 return dasd_generic_set_online(cdev, &dasd_eckd_discipline); 345 dev_err(&device->cdev->dev, 774 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); 776 spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), flags); 786 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flag 3560 struct ccw_device *cdev = device->cdev; local [all...] |
H A D | dasd_fba.c | 53 dasd_fba_set_online(struct ccw_device *cdev) argument 55 return dasd_generic_set_online(cdev, &dasd_fba_discipline); 117 struct ccw_device *cdev = device->cdev; local 124 dev_warn(&device->cdev->dev, 135 DBF_EVENT_DEVID(DBF_WARNING, cdev, "%s", "could not allocate " 148 DBF_EVENT_DEVID(DBF_WARNING, cdev, "Read device " 166 dasd_set_feature(cdev, DASD_FEATURE_DISCARD, 1); 168 dev_info(&device->cdev->dev, 171 cdev [all...] |
/linux-master/drivers/infiniband/core/ |
H A D | device.c | 384 struct ib_core_device *cdev; local 389 xa_for_each (&device->compat_devs, index, cdev) { 390 ret = device_rename(&cdev->dev, dev_name(&device->dev)); 392 dev_warn(&cdev->dev, 914 struct ib_core_device *cdev = local 917 kfree(cdev); 923 struct ib_core_device *cdev; local 944 cdev = xa_load(&device->compat_devs, rnet->id); 945 if (cdev) { 953 cdev 996 struct ib_core_device *cdev; local 1010 struct ib_core_device *cdev; local 1037 struct ib_compat_device *cdev; local [all...] |
/linux-master/drivers/most/ |
H A D | most_cdev.c | 3 * cdev.c - Character device component for Mostcore 13 #include <linux/cdev.h> 33 struct cdev cdev; member in struct:comp_channel 46 #define to_channel(d) container_of(d, struct comp_channel, cdev) 95 cdev_del(&c->cdev); 317 * This frees allocated memory and removes the cdev that represents this 439 cdev_init(&c->cdev, &channel_fops); 440 c->cdev.owner = THIS_MODULE; 441 retval = cdev_add(&c->cdev, [all...] |
/linux-master/drivers/misc/ |
H A D | phantom.c | 19 #include <linux/cdev.h> 53 struct cdev cdev; member in struct:phantom_device 216 struct phantom_device, cdev); 391 cdev_init(&pht->cdev, &phantom_file_ops); 392 pht->cdev.owner = THIS_MODULE; 403 retval = cdev_add(&pht->cdev, MKDEV(phantom_major, minor), 1); 440 unsigned int minor = MINOR(pht->cdev.dev); 444 cdev_del(&pht->cdev);
|
/linux-master/drivers/leds/ |
H A D | leds-lm355x.c | 308 static int lm355x_torch_brightness_set(struct led_classdev *cdev, argument 312 container_of(cdev, struct lm355x_chip_data, cdev_torch); 323 static int lm355x_strobe_brightness_set(struct led_classdev *cdev, argument 327 container_of(cdev, struct lm355x_chip_data, cdev_flash); 338 static int lm355x_indicator_brightness_set(struct led_classdev *cdev, argument 342 container_of(cdev, struct lm355x_chip_data, cdev_indicator);
|
/linux-master/drivers/crypto/cavium/cpt/ |
H A D | cptvf_algs.c | 21 void *cdev[MAX_DEVICES]; member in struct:cpt_device_handle 200 void *cdev = NULL; local 209 cdev = dev_handle.cdev[smp_processor_id()]; 210 status = cptvf_do_request(cdev, req_info); 442 dev_handle.cdev[dev_count] = cptvf;
|
/linux-master/drivers/usb/gadget/legacy/ |
H A D | webcam.c | 515 webcam_unbind(struct usb_composite_dev *cdev) argument 525 webcam_bind(struct usb_composite_dev *cdev) argument 566 ret = usb_string_ids_tab(cdev, webcam_strings); 577 if ((ret = usb_add_config(cdev, &webcam_config_driver, 581 usb_composite_overwrite_options(cdev, &coverwrite); 582 INFO(cdev, "Webcam Video Gadget\n");
|
/linux-master/drivers/net/wireless/mediatek/mt76/mt7996/ |
H A D | init.c | 125 mt7996_thermal_get_max_throttle_state(struct thermal_cooling_device *cdev, argument 134 mt7996_thermal_get_cur_throttle_state(struct thermal_cooling_device *cdev, argument 137 struct mt7996_phy *phy = cdev->devdata; 145 mt7996_thermal_set_cur_throttle_state(struct thermal_cooling_device *cdev, argument 148 struct mt7996_phy *phy = cdev->devdata; 183 if (!phy->cdev) 187 thermal_cooling_device_unregister(phy->cdev); 193 struct thermal_cooling_device *cdev; local 200 cdev = thermal_cooling_device_register(name, phy, &mt7996_thermal_ops); 201 if (!IS_ERR(cdev)) { [all...] |
/linux-master/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | init.c | 122 mt7915_thermal_get_max_throttle_state(struct thermal_cooling_device *cdev, argument 131 mt7915_thermal_get_cur_throttle_state(struct thermal_cooling_device *cdev, argument 134 struct mt7915_phy *phy = cdev->devdata; 142 mt7915_thermal_set_cur_throttle_state(struct thermal_cooling_device *cdev, argument 145 struct mt7915_phy *phy = cdev->devdata; 181 if (!phy->cdev) 185 thermal_cooling_device_unregister(phy->cdev); 191 struct thermal_cooling_device *cdev; local 198 cdev = thermal_cooling_device_register(name, phy, &mt7915_thermal_ops); 199 if (!IS_ERR(cdev)) { [all...] |
/linux-master/drivers/leds/blink/ |
H A D | leds-lgm-sso.c | 117 struct led_classdev cdev; member in struct:sso_led 189 return container_of(led_cdev, struct sso_led, cdev); 359 led->cdev.default_trigger = desc->default_trigger; 360 led->cdev.brightness_set = sso_led_brightness_set; 361 led->cdev.brightness_get = sso_led_brightness_get; 362 led->cdev.brightness = desc->brightness; 363 led->cdev.max_brightness = LED_FULL; 366 led->cdev.flags |= LED_RETAIN_AT_SHUTDOWN; 368 led->cdev.flags |= LED_CORE_SUSPENDRESUME; 370 led->cdev [all...] |
/linux-master/drivers/remoteproc/ |
H A D | xlnx_r5_remoteproc.c | 215 * @cdev: child node device 220 static struct mbox_info *zynqmp_r5_setup_mbox(struct device *cdev) argument 234 mbox_cl->dev = cdev; 241 dev_warn(cdev, "mbox tx channel request failed\n"); 251 dev_warn(cdev, "mbox rx channel request failed\n"); 832 * @cdev: Device node of each r5 core 836 static struct zynqmp_r5_core *zynqmp_r5_add_rproc_core(struct device *cdev) argument 843 ret = dma_set_coherent_mask(cdev, DMA_BIT_MASK(32)); 848 r5_rproc = rproc_alloc(cdev, dev_name(cdev), [all...] |