| /linux-6.15/sound/soc/sof/amd/ |
| H A D | acp-probes.c | 23 static int acp_probes_compr_startup(struct sof_client_dev *cdev, in acp_probes_compr_startup() argument 27 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); in acp_probes_compr_startup() 45 static int acp_probes_compr_shutdown(struct sof_client_dev *cdev, in acp_probes_compr_shutdown() argument 49 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); in acp_probes_compr_shutdown() 68 static int acp_probes_compr_set_params(struct sof_client_dev *cdev, in acp_probes_compr_set_params() argument 73 struct snd_sof_dev *sdev = sof_client_dev_to_sof_dev(cdev); in acp_probes_compr_set_params() 101 static int acp_probes_compr_trigger(struct sof_client_dev *cdev, in acp_probes_compr_trigger() argument 109 static int acp_probes_compr_pointer(struct sof_client_dev *cdev, in acp_probes_compr_pointer() argument
|
| /linux-6.15/Documentation/devicetree/bindings/thermal/ |
| H A D | db8500-thermal.txt | 14 - tripN-cdev-num : number of the cooling devices which can be bound to trip 17 - tripN-cdev-nameM : name of the No. M cooling device of trip point N; 32 trip0-cdev-num = <1>; 33 trip0-cdev-name0 = "thermal-cpufreq-0"; 37 trip1-cdev-num = <2>; 38 trip1-cdev-name0 = "thermal-cpufreq-0"; 39 trip1-cdev-name1 = "thermal-fan"; 43 trip2-cdev-num = <0>;
|
| /linux-6.15/drivers/leds/ |
| H A D | leds-da903x.c | 31 struct led_classdev cdev; member 44 container_of(led_cdev, struct da903x_led, cdev); in da903x_led_set() 104 led->cdev.name = pdata->name; in da903x_led_probe() 105 led->cdev.default_trigger = pdata->default_trigger; in da903x_led_probe() 106 led->cdev.brightness_set_blocking = da903x_led_set; in da903x_led_probe() 107 led->cdev.brightness = LED_OFF; in da903x_led_probe() 113 ret = led_classdev_register(led->master, &led->cdev); in da903x_led_probe() 128 led_classdev_unregister(&led->cdev); in da903x_led_remove()
|
| H A D | leds-adp5520.c | 23 struct led_classdev cdev; member 34 led = container_of(led_cdev, struct adp5520_led, cdev); in adp5520_led_set() 125 led_dat->cdev.name = cur_led->name; in adp5520_led_probe() 126 led_dat->cdev.default_trigger = cur_led->default_trigger; in adp5520_led_probe() 127 led_dat->cdev.brightness_set_blocking = adp5520_led_set; in adp5520_led_probe() 128 led_dat->cdev.brightness = LED_OFF; in adp5520_led_probe() 139 ret = led_classdev_register(led_dat->master, &led_dat->cdev); in adp5520_led_probe() 160 led_classdev_unregister(&led[i].cdev); in adp5520_led_probe() 178 led_classdev_unregister(&led[i].cdev); in adp5520_led_remove()
|
| H A D | leds-lp3952.c | 58 static int lp3952_set_brightness(struct led_classdev *cdev, in lp3952_set_brightness() argument 62 struct lp3952_ctrl_hdl *led = container_of(cdev, in lp3952_set_brightness() 64 cdev); in lp3952_set_brightness() 67 dev_dbg(cdev->dev, "Brightness request: %d on %d\n", value, in lp3952_set_brightness() 76 dev_err(cdev->dev, " %s Invalid LED requested", __func__); in lp3952_set_brightness() 126 priv->leds[i].cdev.name = priv->leds[i].name; in lp3952_register_led_classdev() 127 priv->leds[i].cdev.brightness = LED_OFF; in lp3952_register_led_classdev() 128 priv->leds[i].cdev.max_brightness = LP3952_BRIGHT_MAX; in lp3952_register_led_classdev() 129 priv->leds[i].cdev.brightness_set_blocking = in lp3952_register_led_classdev() 135 &priv->leds[i].cdev); in lp3952_register_led_classdev() [all …]
|
| H A D | leds-ns2.c | 46 struct led_classdev cdev; member 106 struct ns2_led *led = container_of(led_cdev, struct ns2_led, cdev); in ns2_led_set() 131 struct ns2_led *led = container_of(led_cdev, struct ns2_led, cdev); in ns2_led_sata_store() 162 struct ns2_led *led = container_of(led_cdev, struct ns2_led, cdev); in ns2_led_sata_show() 210 led->cdev.blink_set = NULL; in ns2_led_register() 211 led->cdev.flags |= LED_CORE_SUSPENDRESUME; in ns2_led_register() 212 led->cdev.groups = ns2_led_groups; in ns2_led_register() 215 led->cdev.brightness_set_blocking = ns2_led_set_blocking; in ns2_led_register() 217 led->cdev.brightness_set = ns2_led_set; in ns2_led_register() 227 led->cdev.brightness = (mode == NS_V2_LED_OFF) ? LED_OFF : LED_FULL; in ns2_led_register() [all …]
|
| /linux-6.15/drivers/s390/char/ |
| H A D | tape_proc.c | 54 spin_lock_irq(get_ccwdev_lock(device->cdev)); in tape_proc_show() 56 seq_printf(m, "%-10.10s ", dev_name(&device->cdev->dev)); in tape_proc_show() 57 seq_printf(m, "%04X/", device->cdev->id.cu_type); in tape_proc_show() 58 seq_printf(m, "%02X\t", device->cdev->id.cu_model); in tape_proc_show() 59 seq_printf(m, "%04X/", device->cdev->id.dev_type); in tape_proc_show() 60 seq_printf(m, "%02X\t\t", device->cdev->id.dev_model); in tape_proc_show() 79 spin_unlock_irq(get_ccwdev_lock(device->cdev)); in tape_proc_show()
|
| /linux-6.15/drivers/hid/ |
| H A D | hid-winwing.c | 19 struct led_classdev cdev; member 44 static int winwing_led_write(struct led_classdev *cdev, in winwing_led_write() argument 47 struct winwing_led *led = (struct winwing_led *) cdev; in winwing_led_write() 102 led->cdev.max_brightness = info->max_brightness; in winwing_init_led() 103 led->cdev.brightness_set_blocking = winwing_led_write; in winwing_init_led() 104 led->cdev.flags = LED_HW_PLUGGABLE; in winwing_init_led() 105 led->cdev.name = devm_kasprintf(&hdev->dev, GFP_KERNEL, in winwing_init_led() 109 if (!led->cdev.name) in winwing_init_led() 112 ret = devm_led_classdev_register(&hdev->dev, &led->cdev); in winwing_init_led()
|
| /linux-6.15/drivers/net/ethernet/qlogic/qede/ |
| H A D | qede_main.c | 806 edev->cdev = cdev; in qede_alloc_etherdev() 1244 if (!cdev) { in __qede_probe() 1287 qdl->cdev = cdev; in __qede_probe() 1288 edev->cdev = cdev; in __qede_probe() 1397 cdev = edev->cdev; in __qede_remove() 1578 struct qed_dev *cdev = edev->cdev; in qede_alloc_mem_rxq() local 2103 struct qed_dev *cdev = edev->cdev; in qede_stop_queues() local 2244 struct qed_dev *cdev = edev->cdev; in qede_start_queues() local 2612 if (edev->cdev) in qede_close() 2666 if (edev->cdev) in qede_recovery_failed() [all …]
|
| /linux-6.15/drivers/thermal/intel/int340x_thermal/ |
| H A D | int3403_thermal.c | 29 struct thermal_cooling_device *cdev; member 111 static int int3403_get_max_state(struct thermal_cooling_device *cdev, in int3403_get_max_state() argument 114 struct int3403_priv *priv = cdev->devdata; in int3403_get_max_state() 121 static int int3403_get_cur_state(struct thermal_cooling_device *cdev, in int3403_get_cur_state() argument 124 struct int3403_priv *priv = cdev->devdata; in int3403_get_cur_state() 137 int3403_set_cur_state(struct thermal_cooling_device *cdev, unsigned long state) in int3403_set_cur_state() argument 139 struct int3403_priv *priv = cdev->devdata; in int3403_set_cur_state() 180 obj->cdev = in int3403_cdev_add() 183 if (IS_ERR(obj->cdev)) in int3403_cdev_add() 184 result = PTR_ERR(obj->cdev); in int3403_cdev_add() [all …]
|
| /linux-6.15/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_int.c | 131 DP_INFO(p_hwfn->cdev, in qed_pswhst_attn_cb() 198 DP_INFO(p_hwfn->cdev, in qed_grc_attn_cb() 402 DP_NOTICE(p_hwfn->cdev, in qed_db_rec_flush_queue() 472 DP_NOTICE(p_hwfn->cdev, in qed_dorq_attn_int_sts() 1256 DP_ERR(p_hwfn->cdev, in qed_int_sp_dpc() 1277 DP_ERR(p_hwfn->cdev, in qed_int_sp_dpc() 1289 DP_ERR(p_hwfn->cdev, in qed_int_sp_dpc() 1409 struct qed_dev *cdev = p_hwfn->cdev; in qed_int_sb_attn_alloc() local 1444 struct qed_dev *cdev = p_hwfn->cdev; in qed_init_cau_sb_entry() local 1687 sb_info->cdev = p_hwfn->cdev; in qed_int_sb_init() [all …]
|
| /linux-6.15/sound/soc/intel/catpt/ |
| H A D | messages.h | 69 int catpt_ipc_get_fw_version(struct catpt_dev *cdev, 207 int catpt_ipc_alloc_stream(struct catpt_dev *cdev, 217 int catpt_ipc_free_stream(struct catpt_dev *cdev, u8 stream_hw_id); 246 int catpt_ipc_set_device_format(struct catpt_dev *cdev, 271 int catpt_ipc_enter_dxstate(struct catpt_dev *cdev, enum catpt_dx_state state, 280 int catpt_ipc_get_mixer_stream_info(struct catpt_dev *cdev, 324 int catpt_ipc_reset_stream(struct catpt_dev *cdev, u8 stream_hw_id); 325 int catpt_ipc_pause_stream(struct catpt_dev *cdev, u8 stream_hw_id); 326 int catpt_ipc_resume_stream(struct catpt_dev *cdev, u8 stream_hw_id); 335 int catpt_ipc_set_volume(struct catpt_dev *cdev, u8 stream_hw_id, [all …]
|
| /linux-6.15/drivers/usb/gadget/legacy/ |
| H A D | ether.c | 214 if (gadget_is_otg(c->cdev->gadget)) { in rndis_do_config() 256 if (gadget_is_otg(c->cdev->gadget)) { in eth_do_config() 271 } else if (can_support_ecm(c->cdev->gadget)) { in eth_do_config() 304 static int eth_bind(struct usb_composite_dev *cdev) in eth_bind() argument 306 struct usb_gadget *gadget = cdev->gadget; in eth_bind() 367 gether_set_gadget(net, cdev->gadget); in eth_bind() 396 status = usb_string_ids_tab(cdev, strings_dev); in eth_bind() 417 status = usb_add_config(cdev, &rndis_config_driver, in eth_bind() 427 usb_composite_overwrite_options(cdev, &coverwrite); in eth_bind() 449 static int eth_unbind(struct usb_composite_dev *cdev) in eth_unbind() argument [all …]
|
| H A D | g_ffs.c | 143 static int gfs_bind(struct usb_composite_dev *cdev); 308 static int gfs_bind(struct usb_composite_dev *cdev) in gfs_bind() argument 318 if (can_support_ecm(cdev->gadget)) { in gfs_bind() 361 gether_set_gadget(net, cdev->gadget); in gfs_bind() 366 if (can_support_ecm(cdev->gadget)) { in gfs_bind() 383 ret = usb_string_ids_tab(cdev, gfs_strings); in gfs_bind() 396 usb_otg_descriptor_init(cdev->gadget, usb_desc); in gfs_bind() 429 if (can_support_ecm(cdev->gadget)) in gfs_bind() 450 if (can_support_ecm(cdev->gadget)) { in gfs_unbind() 481 if (gadget_is_otg(c->cdev->gadget)) { in gfs_do_config() [all …]
|
| H A D | ncm.c | 99 if (gadget_is_otg(c->cdev->gadget)) { in ncm_do_config() 127 static int gncm_bind(struct usb_composite_dev *cdev) in gncm_bind() argument 129 struct usb_gadget *gadget = cdev->gadget; in gncm_bind() 149 status = usb_string_ids_tab(cdev, strings_dev); in gncm_bind() 168 status = usb_add_config(cdev, &ncm_config_driver, in gncm_bind() 173 usb_composite_overwrite_options(cdev, &coverwrite); in gncm_bind() 186 static int gncm_unbind(struct usb_composite_dev *cdev) in gncm_unbind() argument
|
| /linux-6.15/drivers/s390/block/ |
| H A D | dasd_devmap.c | 569 get_device(&cdev->dev); in dasd_create_device() 570 device->cdev = cdev; in dasd_create_device() 587 &device->cdev->dev.kobj); in dasd_create_device() 684 dev_warn(&device->cdev->dev, in dasd_devmap_check_copy_relation() 686 dev_name(&device->cdev->dev), in dasd_devmap_check_copy_relation() 698 dev_warn(&device->cdev->dev, in dasd_devmap_check_copy_relation() 724 dev_warn(&tmp_dev->cdev->dev, in dasd_devmap_check_copy_relation() 838 struct ccw_device *cdev; in dasd_delete_device() local 875 cdev = device->cdev; in dasd_delete_device() 876 device->cdev = NULL; in dasd_delete_device() [all …]
|
| /linux-6.15/drivers/char/xillybus/ |
| H A D | xillybus_class.c | 36 struct cdev *cdev; member 94 unit->cdev = cdev_alloc(); in xillybus_init_chrdev() 95 if (!unit->cdev) { in xillybus_init_chrdev() 99 unit->cdev->ops = fops; in xillybus_init_chrdev() 100 unit->cdev->owner = owner; in xillybus_init_chrdev() 102 rc = cdev_add(unit->cdev, MKDEV(unit->major, unit->lowest_minor), in xillybus_init_chrdev() 107 kobject_put(&unit->cdev->kobj); in xillybus_init_chrdev() 160 cdev_del(unit->cdev); in xillybus_init_chrdev() 200 cdev_del(unit->cdev); in xillybus_cleanup_chrdev()
|
| /linux-6.15/drivers/gpio/ |
| H A D | gpiolib-cdev.c | 2543 fput(ctx->cdev->fp); in lineinfo_changed_func() 2580 ctx->cdev = cdev; in lineinfo_changed_notify() 2582 get_file(ctx->cdev->fp); in lineinfo_changed_notify() 2616 &cdev->wait.lock)) in lineinfo_watch_poll() 2719 cdev = kzalloc(sizeof(*cdev), GFP_KERNEL); in gpio_chrdev_open() 2720 if (!cdev) in gpio_chrdev_open() 2724 if (!cdev->watched_lines) in gpio_chrdev_open() 2728 INIT_KFIFO(cdev->events); in gpio_chrdev_open() 2746 cdev->fp = file; in gpio_chrdev_open() 2765 kfree(cdev); in gpio_chrdev_open() [all …]
|
| /linux-6.15/drivers/fpga/ |
| H A D | dfl.h | 351 struct cdev cdev; member 429 cdev); in dfl_fpga_inode_to_feature_dev_data() 552 void dfl_fpga_feature_devs_remove(struct dfl_fpga_cdev *cdev); 555 __dfl_fpga_cdev_find_port_data(struct dfl_fpga_cdev *cdev, void *data, 559 dfl_fpga_cdev_find_port_data(struct dfl_fpga_cdev *cdev, void *data, in dfl_fpga_cdev_find_port_data() argument 564 mutex_lock(&cdev->lock); in dfl_fpga_cdev_find_port_data() 565 fdata = __dfl_fpga_cdev_find_port_data(cdev, data, match); in dfl_fpga_cdev_find_port_data() 566 mutex_unlock(&cdev->lock); in dfl_fpga_cdev_find_port_data() 571 int dfl_fpga_cdev_release_port(struct dfl_fpga_cdev *cdev, int port_id); 572 int dfl_fpga_cdev_assign_port(struct dfl_fpga_cdev *cdev, int port_id); [all …]
|
| /linux-6.15/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | thermal.c | 326 static int iwl_mld_tcool_get_max_state(struct thermal_cooling_device *cdev, in iwl_mld_tcool_get_max_state() argument 337 struct iwl_mld *mld = (struct iwl_mld *)(cdev->devdata); in iwl_mld_tcool_get_cur_state() 347 struct iwl_mld *mld = (struct iwl_mld *)(cdev->devdata); in iwl_mld_tcool_set_cur_state() 381 mld->cooling_dev.cdev = in iwl_mld_cooling_device_register() 386 if (IS_ERR(mld->cooling_dev.cdev)) { in iwl_mld_cooling_device_register() 389 PTR_ERR(mld->cooling_dev.cdev)); in iwl_mld_cooling_device_register() 390 mld->cooling_dev.cdev = NULL; in iwl_mld_cooling_device_register() 409 if (!mld->cooling_dev.cdev) in iwl_mld_cooling_device_unregister() 413 if (mld->cooling_dev.cdev) { in iwl_mld_cooling_device_unregister() 414 thermal_cooling_device_unregister(mld->cooling_dev.cdev); in iwl_mld_cooling_device_unregister() [all …]
|
| /linux-6.15/drivers/hwmon/ |
| H A D | emc2305.c | 80 struct thermal_cooling_device *cdev; member 122 struct emc2305_data *data = cdev->devdata; in emc2305_get_cdev_idx() 123 size_t len = strlen(cdev->type); in emc2305_get_cdev_idx() 141 ret = cdev->type[len - 1]; in emc2305_get_cdev_idx() 154 struct emc2305_data *data = cdev->devdata; in emc2305_get_cur_state() 156 cdev_idx = emc2305_get_cdev_idx(cdev); in emc2305_get_cur_state() 166 struct emc2305_data *data = cdev->devdata; in emc2305_get_max_state() 204 struct emc2305_data *data = cdev->devdata; in emc2305_set_cur_state() 209 cdev_idx = emc2305_get_cdev_idx(cdev); in emc2305_set_cur_state() 293 data->cdev_data[cdev_idx].cdev = in emc2305_set_single_tz() [all …]
|
| /linux-6.15/drivers/thermal/ |
| H A D | thermal_trace.h | 53 TP_PROTO(struct thermal_cooling_device *cdev, unsigned long target), 55 TP_ARGS(cdev, target), 58 __string(type, cdev->type) 144 TP_PROTO(struct thermal_cooling_device *cdev, 148 TP_ARGS(cdev, status, freq, power), 151 __string(type, cdev->type ) 174 TP_PROTO(struct thermal_cooling_device *cdev, unsigned long freq, 177 TP_ARGS(cdev, freq, cdev_state, power), 180 __string(type, cdev->type)
|
| /linux-6.15/drivers/net/wireless/ath/ath10k/ |
| H A D | leds.c | 21 leds.cdev); in ath10k_leds_set_brightness_blocking() 71 ar->leds.cdev.name = ar->leds.label; in ath10k_leds_register() 72 ar->leds.cdev.brightness_set_blocking = ath10k_leds_set_brightness_blocking; in ath10k_leds_register() 73 ar->leds.cdev.default_trigger = ar->leds.wifi_led.default_trigger; in ath10k_leds_register() 75 ret = led_classdev_register(wiphy_dev(ar->hw->wiphy), &ar->leds.cdev); in ath10k_leds_register() 88 led_classdev_unregister(&ar->leds.cdev); in ath10k_leds_unregister()
|
| /linux-6.15/sound/usb/caiaq/ |
| H A D | input.h | 5 void snd_usb_caiaq_input_dispatch(struct snd_usb_caiaqdev *cdev, char *buf, unsigned int len); 6 int snd_usb_caiaq_input_init(struct snd_usb_caiaqdev *cdev); 7 void snd_usb_caiaq_input_disconnect(struct snd_usb_caiaqdev *cdev); 8 void snd_usb_caiaq_input_free(struct snd_usb_caiaqdev *cdev);
|
| /linux-6.15/drivers/leds/rgb/ |
| H A D | leds-qcom-lpg.c | 212 struct led_classdev cdev; member 858 struct lpg_led *led = container_of(cdev, struct lpg_led, cdev); in lpg_brightness_single_set() 933 struct lpg_led *led = container_of(cdev, struct lpg_led, cdev); in lpg_blink_single_set() 1133 struct lpg_led *led = container_of(cdev, struct lpg_led, cdev); in lpg_pattern_single_set() 1194 struct lpg_led *led = container_of(cdev, struct lpg_led, cdev); in lpg_pattern_single_clear() 1371 struct led_classdev *cdev; in lpg_add_led() local 1415 cdev = &led->mcdev.led_cdev; in lpg_add_led() 1429 cdev = &led->cdev; in lpg_add_led() 1449 cdev->brightness = cdev->max_brightness; in lpg_add_led() 1451 cdev->brightness = LED_OFF; in lpg_add_led() [all …]
|