| /linux-6.15/drivers/net/wireless/ath/ath10k/ |
| H A D | thermal.c | 17 ath10k_thermal_get_max_throttle_state(struct thermal_cooling_device *cdev, in ath10k_thermal_get_max_throttle_state() argument 29 struct ath10k *ar = cdev->devdata; in ath10k_thermal_get_cur_throttle_state() 42 struct ath10k *ar = cdev->devdata; in ath10k_thermal_set_cur_throttle_state() 157 struct thermal_cooling_device *cdev; in ath10k_thermal_register() local 164 cdev = thermal_cooling_device_register("ath10k_thermal", ar, in ath10k_thermal_register() 167 if (IS_ERR(cdev)) { in ath10k_thermal_register() 169 PTR_ERR(cdev)); in ath10k_thermal_register() 173 ret = sysfs_create_link(&ar->dev->kobj, &cdev->device.kobj, in ath10k_thermal_register() 180 ar->thermal.cdev = cdev; in ath10k_thermal_register() 209 thermal_cooling_device_unregister(cdev); in ath10k_thermal_register() [all …]
|
| /linux-6.15/drivers/s390/char/ |
| H A D | con3215.c | 355 raw = dev_get_drvdata(&cdev->dev); in raw3215_irq() 495 ccw_device_wait_idle(raw->cdev); in raw3215_make_room() 714 raw->cdev = cdev; in raw3215_probe() 715 dev_set_drvdata(&cdev->dev, raw); in raw3215_probe() 716 cdev->handler = raw3215_irq; in raw3215_probe() 739 ccw_device_set_offline(cdev); in raw3215_remove() 901 struct ccw_device *cdev; in con3215_init() local 927 if (IS_ERR(cdev)) in con3215_init() 931 raw->cdev = cdev; in con3215_init() 932 dev_set_drvdata(&cdev->dev, raw); in con3215_init() [all …]
|
| H A D | tape_34xx.c | 266 dev_err(&device->cdev->dev, "An unexpected condition %d " in tape_34xx_erp_bug() 425 dev_warn (&device->cdev->dev, "A read error occurred " in tape_34xx_unit_check() 439 dev_warn (&device->cdev->dev, "A write error on the " in tape_34xx_unit_check() 447 dev_warn (&device->cdev->dev, "Writing the ID-mark " in tape_34xx_unit_check() 457 dev_warn (&device->cdev->dev, "The tape contains an " in tape_34xx_unit_check() 464 if (device->cdev->id.driver_info == tape_3480) in tape_34xx_unit_check() 598 if (device->cdev->id.driver_info == tape_3490) in tape_34xx_unit_check() 714 if (device->cdev->id.driver_info == tape_3490) in tape_34xx_unit_check() 724 if (device->cdev->id.driver_info == tape_3490) { in tape_34xx_unit_check() 1176 tape_34xx_online(struct ccw_device *cdev) in tape_34xx_online() argument [all …]
|
| /linux-6.15/drivers/s390/cio/ |
| H A D | qdio_main.c | 766 wake_up(&cdev->private->wait_q); in qdio_int_handler() 810 wake_up(&cdev->private->wait_q); in qdio_int_handler() 826 if (!cdev || !cdev->private) in qdio_get_ssqd_desc() 829 ccw_device_get_schid(cdev, &schid); in qdio_get_ssqd_desc() 837 struct ccw_device *cdev = irq->cdev; in qdio_cancel_ccw() local 880 ccw_device_get_schid(cdev, &schid); in qdio_shutdown() 924 ccw_device_get_schid(cdev, &schid); in qdio_free() 930 cdev->private->qdio_data = NULL; in qdio_free() 955 ccw_device_get_schid(cdev, &schid); in qdio_allocate() 973 irq_ptr->cdev = cdev; in qdio_allocate() [all …]
|
| /linux-6.15/drivers/leds/ |
| H A D | leds-max8997.c | 40 struct led_classdev cdev; member 152 container_of(led_cdev, struct max8997_led, cdev); in max8997_led_brightness_set() 168 container_of(led_cdev, struct max8997_led, cdev); in mode_show() 202 container_of(led_cdev, struct max8997_led, cdev); in mode_store() 248 led->cdev.name = name; in max8997_led_probe() 250 led->cdev.flags |= LED_CORE_SUSPENDRESUME; in max8997_led_probe() 251 led->cdev.brightness = 0; in max8997_led_probe() 252 led->cdev.groups = max8997_groups; in max8997_led_probe() 264 if (brightness > led->cdev.max_brightness) in max8997_led_probe() 265 brightness = led->cdev.max_brightness; in max8997_led_probe() [all …]
|
| H A D | leds-nic78bx.c | 44 struct led_classdev cdev; member 47 static inline struct nic78bx_led *to_nic78bx_led(struct led_classdev *cdev) in to_nic78bx_led() argument 49 return container_of(cdev, struct nic78bx_led, cdev); in to_nic78bx_led() 52 static void nic78bx_brightness_set(struct led_classdev *cdev, in nic78bx_brightness_set() argument 55 struct nic78bx_led *nled = to_nic78bx_led(cdev); in nic78bx_brightness_set() 75 struct nic78bx_led *nled = to_nic78bx_led(cdev); in nic78bx_brightness_get() 90 .cdev = { 100 .cdev = { 110 .cdev = { 120 .cdev = { [all …]
|
| H A D | leds-gpio.c | 25 struct led_classdev cdev; member 89 led_dat->cdev.brightness_set = gpio_led_set; in create_gpio_led() 95 led_dat->cdev.blink_set = gpio_blink_set; in create_gpio_led() 104 led_dat->cdev.brightness = state; in create_gpio_led() 105 led_dat->cdev.max_brightness = 1; in create_gpio_led() 107 led_dat->cdev.flags |= LED_CORE_SUSPENDRESUME; in create_gpio_led() 109 led_dat->cdev.flags |= LED_PANIC_INDICATOR; in create_gpio_led() 111 led_dat->cdev.flags |= LED_RETAIN_AT_SHUTDOWN; in create_gpio_led() 118 led_dat->cdev.name = template->name; in create_gpio_led() 196 led_dat->cdev.dev->kobj.name); in gpio_leds_create() [all …]
|
| H A D | leds-wm8350.c | 86 container_of(led_cdev, struct wm8350_led, cdev) 97 dev_err(led->cdev.dev, "Failed to enable ISINK: %d\n", ret); in wm8350_led_enable() 103 dev_err(led->cdev.dev, "Failed to enable DCDC: %d\n", ret); in wm8350_led_enable() 131 dev_err(led->cdev.dev, "Failed to reenable DCDC: %d\n", in wm8350_led_disable() 170 dev_err(led->cdev.dev, "Failed to set %duA: %d\n", in wm8350_led_set() 220 led->cdev.brightness_set_blocking = wm8350_led_set; in wm8350_led_probe() 221 led->cdev.default_trigger = pdata->default_trigger; in wm8350_led_probe() 222 led->cdev.name = pdata->name; in wm8350_led_probe() 223 led->cdev.flags |= LED_CORE_SUSPENDRESUME; in wm8350_led_probe() 242 return led_classdev_register(&pdev->dev, &led->cdev); in wm8350_led_probe() [all …]
|
| H A D | leds-ip30.c | 16 struct led_classdev cdev; member 23 struct ip30_led *led = container_of(led_cdev, struct ip30_led, cdev); in ip30led_set() 42 data->cdev.name = "white:power"; in ip30led_create() 45 data->cdev.name = "red:fault"; in ip30led_create() 51 data->cdev.brightness = readl(data->reg); in ip30led_create() 52 data->cdev.max_brightness = 1; in ip30led_create() 53 data->cdev.brightness_set = ip30led_set; in ip30led_create() 55 return devm_led_classdev_register(&pdev->dev, &data->cdev); in ip30led_create()
|
| /linux-6.15/drivers/usb/gadget/ |
| H A D | configfs.c | 86 return container_of(cfg->c.cdev, struct gadget_info, cdev); in cfg_to_gadget_info() 1221 struct usb_composite_dev *cdev = &gi->cdev; in os_desc_link() local 1255 struct usb_composite_dev *cdev = &gi->cdev; in os_desc_unlink() local 1688 struct usb_composite_dev *cdev = &gi->cdev; in configfs_composite_bind() local 1834 gi = container_of(cdev, struct gadget_info, cdev); in configfs_composite_unbind() 1861 if (!cdev) in configfs_composite_setup() 1864 gi = container_of(cdev, struct gadget_info, cdev); in configfs_composite_setup() 1887 gi = container_of(cdev, struct gadget_info, cdev); in configfs_composite_disconnect() 1909 gi = container_of(cdev, struct gadget_info, cdev); in configfs_composite_reset() 1931 gi = container_of(cdev, struct gadget_info, cdev); in configfs_composite_suspend() [all …]
|
| /linux-6.15/drivers/net/can/m_can/ |
| H A D | m_can_platform.c | 15 struct m_can_classdev cdev; member 23 return container_of(cdev, struct m_can_plat_priv, cdev); in cdev_to_priv() 26 static u32 iomap_read_reg(struct m_can_classdev *cdev, int reg) in iomap_read_reg() argument 28 struct m_can_plat_priv *priv = cdev_to_priv(cdev); in iomap_read_reg() 35 struct m_can_plat_priv *priv = cdev_to_priv(cdev); in iomap_read_fifo() 49 struct m_can_plat_priv *priv = cdev_to_priv(cdev); in iomap_write_reg() 56 static int iomap_write_fifo(struct m_can_classdev *cdev, int offset, in iomap_write_fifo() argument 59 struct m_can_plat_priv *priv = cdev_to_priv(cdev); in iomap_write_fifo() 180 struct m_can_classdev *mcan_class = &priv->cdev; in m_can_plat_remove() 190 struct m_can_classdev *mcan_class = &priv->cdev; in m_can_runtime_suspend() [all …]
|
| /linux-6.15/drivers/usb/gadget/function/ |
| H A D | f_rndis.c | 376 struct usb_composite_dev *cdev = rndis->port.func.config->cdev; in rndis_response_available() local 401 struct usb_composite_dev *cdev = rndis->port.func.config->cdev; in rndis_response_complete() local 455 struct usb_composite_dev *cdev = f->config->cdev; in rndis_setup() local 529 struct usb_composite_dev *cdev = f->config->cdev; in rndis_set_alt() local 553 DBG(cdev, "init rndis\n"); in rndis_set_alt() 599 struct usb_composite_dev *cdev = f->config->cdev; in rndis_disable() local 625 struct usb_composite_dev *cdev = geth->func.config->cdev; in rndis_open() local 627 DBG(cdev, "%s\n", __func__); in rndis_open() 658 struct usb_composite_dev *cdev = c->cdev; in rndis_bind() local 671 if (cdev->use_os_string) { in rndis_bind() [all …]
|
| H A D | f_ncm.c | 539 struct usb_composite_dev *cdev = ncm->port.func.config->cdev; in ncm_do_notify() local 577 DBG(cdev, "notify speed %u\n", gether_bitrate(cdev->gadget)); in ncm_do_notify() 622 struct usb_composite_dev *cdev = ncm->port.func.config->cdev; in ncm_notify_complete() local 653 struct usb_composite_dev *cdev = f->config->cdev; in ncm_ep0out_complete() local 680 struct usb_composite_dev *cdev = f->config->cdev; in ncm_setup() local 860 struct usb_composite_dev *cdev = f->config->cdev; in ncm_set_alt() local 883 DBG(cdev, "reset ncm\n"); in ncm_set_alt() 1367 struct usb_composite_dev *cdev = f->config->cdev; in ncm_disable() local 1432 struct usb_composite_dev *cdev = c->cdev; in ncm_bind() local 1444 if (cdev->use_os_string) { in ncm_bind() [all …]
|
| H A D | f_eem.c | 173 struct usb_composite_dev *cdev = f->config->cdev; in eem_setup() local 190 struct usb_composite_dev *cdev = f->config->cdev; in eem_set_alt() local 198 DBG(cdev, "reset eem\n"); in eem_set_alt() 202 DBG(cdev, "init eem\n"); in eem_set_alt() 218 DBG(cdev, "activate eem\n"); in eem_set_alt() 233 struct usb_composite_dev *cdev = f->config->cdev; in eem_disable() local 235 DBG(cdev, "eem deactivated\n"); in eem_disable() 247 struct usb_composite_dev *cdev = c->cdev; in eem_bind() local 396 struct usb_composite_dev *cdev = port->func.config->cdev; in eem_unwrap() local 524 DBG(cdev, "invalid EEM CRC\n"); in eem_unwrap() [all …]
|
| /linux-6.15/sound/soc/sof/ |
| H A D | sof-client-ipc-flood-test.c | 38 struct sof_client_dev *cdev = inode->i_private; in sof_ipc_flood_dfs_open() local 41 if (sof_client_get_fw_state(cdev) == SOF_FW_CRASHED) in sof_ipc_flood_dfs_open() 64 struct sof_ipc_flood_priv *priv = cdev->data; in sof_debug_ipc_flood_test() 65 struct device *dev = &cdev->auxdev.dev; in sof_debug_ipc_flood_test() 86 ret = sof_client_ipc_tx_message_no_reply(cdev, &hdr); in sof_debug_ipc_flood_test() 156 struct sof_client_dev *cdev = file->private_data; in sof_ipc_flood_dfs_write() local 157 struct device *dev = &cdev->auxdev.dev; in sof_ipc_flood_dfs_write() 243 struct sof_client_dev *cdev = file->private_data; in sof_ipc_flood_dfs_read() local 244 struct sof_ipc_flood_priv *priv = cdev->data; in sof_ipc_flood_dfs_read() 302 cdev->data = priv; in sof_ipc_flood_probe() [all …]
|
| H A D | sof-client-probes-ipc3.c | 79 ret = sof_client_ipc_tx_message_no_reply(cdev, msg); in ipc3_probes_init() 92 static int ipc3_probes_deinit(struct sof_client_dev *cdev) in ipc3_probes_deinit() argument 99 return sof_client_ipc_tx_message_no_reply(cdev, &msg); in ipc3_probes_deinit() 105 size_t max_msg_size = sof_client_get_ipc_max_payload_size(cdev); in ipc3_probes_info() 120 ret = sof_client_ipc_tx_message(cdev, &msg, reply, max_msg_size); in ipc3_probes_info() 154 static int ipc3_probes_points_info(struct sof_client_dev *cdev, in ipc3_probes_points_info() argument 158 return ipc3_probes_info(cdev, SOF_IPC_PROBE_POINT_INFO, in ipc3_probes_points_info() 175 static int ipc3_probes_points_add(struct sof_client_dev *cdev, in ipc3_probes_points_add() argument 191 ret = sof_client_ipc_tx_message_no_reply(cdev, msg); in ipc3_probes_points_add() 205 static int ipc3_probes_points_remove(struct sof_client_dev *cdev, in ipc3_probes_points_remove() argument [all …]
|
| H A D | sof-client-ipc-kernel-injector.c | 43 struct sof_client_dev *cdev = file->private_data; in sof_kernel_msg_inject_dfs_write() local 44 struct sof_msg_inject_priv *priv = cdev->data; in sof_kernel_msg_inject_dfs_write() 46 struct device *dev = &cdev->auxdev.dev; in sof_kernel_msg_inject_dfs_write() 66 sof_client_ipc_rx_message(cdev, hdr, priv->kernel_buffer); in sof_kernel_msg_inject_dfs_write() 94 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_msg_inject_probe() local 95 struct dentry *debugfs_root = sof_client_get_debugfs_root(cdev); in sof_msg_inject_probe() 105 priv->max_msg_size = sof_client_get_ipc_max_payload_size(cdev); in sof_msg_inject_probe() 112 cdev->data = priv; in sof_msg_inject_probe() 115 debugfs_root, cdev, in sof_msg_inject_probe() 131 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_msg_inject_remove() local [all …]
|
| /linux-6.15/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_sriov.h | 17 #define IS_VF(cdev) ((cdev)->b_is_vf) argument 18 #define IS_PF(cdev) (!((cdev)->b_is_vf)) argument 19 #define IS_PF_SRIOV(p_hwfn) (!!((p_hwfn)->cdev->p_iov_info)) 21 #define IS_VF(cdev) (0) argument 22 #define IS_PF(cdev) (1) argument 377 void qed_iov_free_hw_info(struct qed_dev *cdev); 402 int qed_iov_wq_start(struct qed_dev *cdev); 405 void qed_vf_start_iov_wq(struct qed_dev *cdev); 446 static inline void qed_iov_free_hw_info(struct qed_dev *cdev) in qed_iov_free_hw_info() argument 460 static inline int qed_iov_wq_start(struct qed_dev *cdev) in qed_iov_wq_start() argument [all …]
|
| H A D | qed.h | 95 ~((1 << (p_hwfn->cdev->cache_shift)) - 1)) 97 #define for_each_hwfn(cdev, i) for (i = 0; i < (cdev)->num_hwfns; i++) argument 524 struct qed_dev *cdev; member 780 #define IS_QED_SRIOV(cdev) (!!(cdev)->p_iov_info) argument 812 #define IS_QED_ETH_IF(cdev) ((cdev)->protocol == QED_PROTOCOL_ETH) argument 813 #define IS_QED_FCOE_IF(cdev) ((cdev)->protocol == QED_PROTOCOL_FCOE) argument 953 #define DP_NAME(cdev) ((cdev)->name) argument 956 ((cdev)->regview) + \ 959 #define REG_RD(cdev, offset) readl(REG_ADDR(cdev, offset)) argument 960 #define REG_WR(cdev, offset, val) writel((u32)val, REG_ADDR(cdev, offset)) argument [all …]
|
| H A D | qed_iscsi.c | 760 qed_chain_free(p_hwfn->cdev, &p_conn->uhq); in qed_iscsi_allocate_connection() 1056 cdev->protocol_ops.iscsi = ops; in qed_register_iscsi_ops() 1057 cdev->ops_cookie = cookie; in qed_register_iscsi_ops() 1088 if (!hash_empty(cdev->connections)) { in qed_iscsi_stop() 1089 DP_NOTICE(cdev, in qed_iscsi_stop() 1097 cdev->flags &= ~QED_FLAG_STORAGE_STARTED; in qed_iscsi_stop() 1122 cdev->flags |= QED_FLAG_STORAGE_STARTED; in qed_iscsi_start() 1123 hash_init(cdev->connections); in qed_iscsi_start() 1131 qed_iscsi_stop(cdev); in qed_iscsi_start() 1138 qed_iscsi_stop(cdev); in qed_iscsi_start() [all …]
|
| /linux-6.15/net/9p/ |
| H A D | trans_usbg.c | 94 struct usb_composite_dev *cdev = usb9pfs->function.config->cdev; in usb9pfs_queue_tx() local 120 struct usb_composite_dev *cdev = usb9pfs->function.config->cdev; in usb9pfs_queue_rx() local 150 struct usb_composite_dev *cdev = usb9pfs->function.config->cdev; in usb9pfs_tx_complete() local 232 struct usb_composite_dev *cdev = usb9pfs->function.config->cdev; in usb9pfs_rx_complete() local 261 dev_info(&cdev->gadget->dev, in disable_ep() 267 struct usb_composite_dev *cdev = in disable_usb9pfs() local 268 usb9pfs->function.config->cdev; in disable_usb9pfs() 280 disable_ep(cdev, usb9pfs->in_ep); in disable_usb9pfs() 642 struct usb_composite_dev *cdev = c->cdev; in usb9pfs_func_bind() local 652 id = usb_string_id(cdev); in usb9pfs_func_bind() [all …]
|
| /linux-6.15/drivers/leds/simatic/ |
| H A D | simatic-ipc-leds.c | 28 struct led_classdev cdev; member 48 return container_of(led_cd, struct simatic_ipc_led, cdev); in cdev_to_led() 81 struct led_classdev *cdev; in simatic_ipc_leds_probe() local 108 cdev = &ipcled->cdev; in simatic_ipc_leds_probe() 109 cdev->brightness_set = simatic_ipc_led_set_io; in simatic_ipc_leds_probe() 110 cdev->brightness_get = simatic_ipc_led_get_io; in simatic_ipc_leds_probe() 111 cdev->max_brightness = LED_ON; in simatic_ipc_leds_probe() 112 cdev->name = ipcled->name; in simatic_ipc_leds_probe() 114 err = devm_led_classdev_register(dev, cdev); in simatic_ipc_leds_probe()
|
| /linux-6.15/drivers/leds/rgb/ |
| H A D | leds-group-multicolor.c | 28 static int leds_gmc_set(struct led_classdev *cdev, enum led_brightness brightness) in leds_gmc_set() argument 30 struct led_classdev_mc *mc_cdev = lcdev_to_mccdev(cdev); in leds_gmc_set() 68 struct led_classdev *cdev; in leds_gmc_probe() local 117 cdev = &priv->mc_cdev.led_cdev; in leds_gmc_probe() 118 cdev->brightness_set_blocking = leds_gmc_set; in leds_gmc_probe() 119 cdev->max_brightness = max_brightness; in leds_gmc_probe() 120 cdev->color = LED_COLOR_ID_MULTI; in leds_gmc_probe() 125 cdev->flags = LED_CORE_SUSPENDRESUME; in leds_gmc_probe() 131 cdev->name); in leds_gmc_probe() 133 ret = leds_gmc_set(cdev, cdev->brightness); in leds_gmc_probe() [all …]
|
| /linux-6.15/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
| H A D | chtls_hw.c | 157 cdev->kmap.size = num_key_ctx; in chtls_init_kmap() 158 cdev->kmap.available = bsize; in chtls_init_kmap() 161 if (!cdev->kmap.addr) in chtls_init_kmap() 172 struct chtls_dev *cdev = csk->cdev; in get_new_keyid() local 180 spin_lock_bh(&cdev->kmap.lock); in get_new_keyid() 181 keyid = find_first_zero_bit(cdev->kmap.addr, cdev->kmap.size); in get_new_keyid() 182 if (keyid < cdev->kmap.size) { in get_new_keyid() 200 struct chtls_dev *cdev = csk->cdev; in free_tls_keyid() local 204 if (!cdev->kmap.addr) in free_tls_keyid() 352 struct chtls_dev *cdev; in chtls_setkey() local [all …]
|
| /linux-6.15/drivers/usb/gadget/legacy/ |
| H A D | serial.c | 149 ret = usb_add_config_only(cdev, c); in serial_register_ports() 191 static int gs_bind(struct usb_composite_dev *cdev) in gs_bind() argument 199 status = usb_string_ids_tab(cdev, strings_dev); in gs_bind() 207 if (gadget_is_otg(cdev->gadget)) { in gs_bind() 211 usb_desc = usb_otg_descriptor_alloc(cdev->gadget); in gs_bind() 216 usb_otg_descriptor_init(cdev->gadget, usb_desc); in gs_bind() 228 usb_ep_autoconfig_reset(cdev->gadget); in gs_bind() 230 status = serial_register_ports(cdev, &serial_config_driver, in gs_bind() 239 usb_composite_overwrite_options(cdev, &coverwrite); in gs_bind() 240 INFO(cdev, "%s\n", GS_VERSION_NAME); in gs_bind() [all …]
|