/Linux-v5.15/sound/soc/sof/ |
D | ops.h | 21 #define sof_ops(sdev) \ argument 22 ((sdev)->pdata->desc->ops) 27 static inline int snd_sof_probe(struct snd_sof_dev *sdev) in snd_sof_probe() argument 29 return sof_ops(sdev)->probe(sdev); in snd_sof_probe() 32 static inline int snd_sof_remove(struct snd_sof_dev *sdev) in snd_sof_remove() argument 34 if (sof_ops(sdev)->remove) in snd_sof_remove() 35 return sof_ops(sdev)->remove(sdev); in snd_sof_remove() 40 static inline int snd_sof_shutdown(struct snd_sof_dev *sdev) in snd_sof_shutdown() argument 42 if (sof_ops(sdev)->shutdown) in snd_sof_shutdown() 43 return sof_ops(sdev)->shutdown(sdev); in snd_sof_shutdown() [all …]
|
D | core.c | 60 void snd_sof_get_status(struct snd_sof_dev *sdev, u32 panic_code, in snd_sof_get_status() argument 70 dev_err(sdev->dev, "error: unexpected fault 0x%8.8x trace 0x%8.8x\n", in snd_sof_get_status() 79 dev_err(sdev->dev, "error: %s\n", panic_msg[i].msg); in snd_sof_get_status() 80 dev_err(sdev->dev, "error: trace point %8.8x\n", in snd_sof_get_status() 87 dev_err(sdev->dev, "error: unknown reason %8.8x\n", panic_code); in snd_sof_get_status() 88 dev_err(sdev->dev, "error: trace point %8.8x\n", tracep_code); in snd_sof_get_status() 91 dev_err(sdev->dev, "error: panic at %s:%d\n", in snd_sof_get_status() 93 sof_oops(sdev, oops); in snd_sof_get_status() 94 sof_stack(sdev, oops, stack, stack_words); in snd_sof_get_status() 138 static int sof_probe_continue(struct snd_sof_dev *sdev) in sof_probe_continue() argument [all …]
|
D | trace.c | 19 static int trace_filter_append_elem(struct snd_sof_dev *sdev, uint32_t key, uint32_t value, in trace_filter_append_elem() argument 33 static int trace_filter_parse_entry(struct snd_sof_dev *sdev, const char *line, in trace_filter_parse_entry() argument 53 dev_err(sdev->dev, "error: invalid trace filter entry '%s'\n", line); in trace_filter_parse_entry() 58 ret = trace_filter_append_elem(sdev, SOF_IPC_TRACE_FILTER_ELEM_BY_UUID, in trace_filter_parse_entry() 64 ret = trace_filter_append_elem(sdev, SOF_IPC_TRACE_FILTER_ELEM_BY_PIPE, in trace_filter_parse_entry() 70 ret = trace_filter_append_elem(sdev, SOF_IPC_TRACE_FILTER_ELEM_BY_COMP, in trace_filter_parse_entry() 76 ret = trace_filter_append_elem(sdev, SOF_IPC_TRACE_FILTER_ELEM_SET_LEVEL | in trace_filter_parse_entry() 88 static int trace_filter_parse(struct snd_sof_dev *sdev, char *string, in trace_filter_parse() argument 113 entry_len = trace_filter_parse_entry(sdev, entry, *out, capacity, &cnt); in trace_filter_parse() 115 dev_err(sdev->dev, "error: %s failed for '%s', %d\n", __func__, entry, in trace_filter_parse() [all …]
|
D | loader.c | 18 static int get_ext_windows(struct snd_sof_dev *sdev, in get_ext_windows() argument 27 if (sdev->info_window) { in get_ext_windows() 28 if (memcmp(sdev->info_window, w, ext_hdr->hdr.size)) { in get_ext_windows() 29 …dev_err(sdev->dev, "error: mismatch between window descriptor from extended manifest and mailbox"); in get_ext_windows() 36 sdev->info_window = devm_kmemdup(sdev->dev, w, ext_hdr->hdr.size, in get_ext_windows() 38 if (!sdev->info_window) in get_ext_windows() 44 static int get_cc_info(struct snd_sof_dev *sdev, in get_cc_info() argument 52 if (sdev->cc_version) { in get_cc_info() 53 if (memcmp(sdev->cc_version, cc, cc->ext_hdr.hdr.size)) { in get_cc_info() 54 dev_err(sdev->dev, "error: receive diverged cc_version descriptions"); in get_cc_info() [all …]
|
D | pm.c | 21 static u32 snd_sof_dsp_power_target(struct snd_sof_dev *sdev) in snd_sof_dsp_power_target() argument 25 switch (sdev->system_suspend_target) { in snd_sof_dsp_power_target() 37 if (snd_sof_stream_suspend_ignored(sdev)) in snd_sof_dsp_power_target() 51 static int sof_send_pm_ctx_ipc(struct snd_sof_dev *sdev, int cmd) in sof_send_pm_ctx_ipc() argument 63 return sof_ipc_tx_message(sdev->ipc, pm_ctx.hdr.cmd, &pm_ctx, in sof_send_pm_ctx_ipc() 68 static void sof_cache_debugfs(struct snd_sof_dev *sdev) in sof_cache_debugfs() argument 72 list_for_each_entry(dfse, &sdev->dfsentry_list, list) { in sof_cache_debugfs() 88 struct snd_sof_dev *sdev = dev_get_drvdata(dev); in sof_resume() local 89 u32 old_state = sdev->dsp_power_state.state; in sof_resume() 93 if (!runtime_resume && !sof_ops(sdev)->resume) in sof_resume() [all …]
|
/Linux-v5.15/sound/soc/sof/intel/ |
D | hda-dsp.c | 37 int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_enter() argument 45 snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_enter() 50 ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_enter() 56 dev_err(sdev->dev, in hda_dsp_core_reset_enter() 63 adspcs = snd_sof_dsp_read(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_enter() 67 dev_err(sdev->dev, in hda_dsp_core_reset_enter() 76 int hda_dsp_core_reset_leave(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_leave() argument 83 snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_leave() 90 ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_leave() 97 dev_err(sdev->dev, in hda_dsp_core_reset_leave() [all …]
|
D | hda-loader.c | 29 static struct hdac_ext_stream *cl_stream_prepare(struct snd_sof_dev *sdev, unsigned int format, in cl_stream_prepare() argument 35 struct pci_dev *pci = to_pci_dev(sdev->dev); in cl_stream_prepare() 38 dsp_stream = hda_dsp_stream_get(sdev, direction, 0); in cl_stream_prepare() 41 dev_err(sdev->dev, "error: no stream available\n"); in cl_stream_prepare() 50 dev_err(sdev->dev, "error: memory alloc failed: %d\n", ret); in cl_stream_prepare() 59 ret = hda_dsp_iccmax_stream_hw_params(sdev, dsp_stream, dmab, NULL); in cl_stream_prepare() 61 dev_err(sdev->dev, "error: iccmax stream prepare failed: %d\n", ret); in cl_stream_prepare() 65 ret = hda_dsp_stream_hw_params(sdev, dsp_stream, dmab, NULL); in cl_stream_prepare() 67 dev_err(sdev->dev, "error: hdac prepare failed: %d\n", ret); in cl_stream_prepare() 70 hda_dsp_stream_spib_config(sdev, dsp_stream, HDA_DSP_SPIB_ENABLE, size); in cl_stream_prepare() [all …]
|
D | bdw.c | 76 static void bdw_host_done(struct snd_sof_dev *sdev); 77 static void bdw_dsp_done(struct snd_sof_dev *sdev); 78 static void bdw_get_reply(struct snd_sof_dev *sdev); 84 static int bdw_run(struct snd_sof_dev *sdev) in bdw_run() argument 87 snd_sof_dsp_update_bits(sdev, BDW_DSP_BAR, SHIM_HMDC, in bdw_run() 92 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_run() 99 static int bdw_reset(struct snd_sof_dev *sdev) in bdw_reset() argument 102 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_reset() 110 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_reset() 117 static int bdw_set_dsp_D0(struct snd_sof_dev *sdev) in bdw_set_dsp_D0() argument [all …]
|
D | atom.c | 28 static void atom_host_done(struct snd_sof_dev *sdev); 29 static void atom_dsp_done(struct snd_sof_dev *sdev); 30 static void atom_get_reply(struct snd_sof_dev *sdev); 36 static void atom_get_registers(struct snd_sof_dev *sdev, in atom_get_registers() argument 41 u32 offset = sdev->dsp_oops_offset; in atom_get_registers() 44 sof_mailbox_read(sdev, offset, xoops, sizeof(*xoops)); in atom_get_registers() 50 dev_err(sdev->dev, "invalid header size 0x%x. FW oops is bogus\n", in atom_get_registers() 55 sof_mailbox_read(sdev, offset, panic_info, sizeof(*panic_info)); in atom_get_registers() 59 sof_mailbox_read(sdev, offset, stack, stack_words * sizeof(u32)); in atom_get_registers() 62 void atom_dump(struct snd_sof_dev *sdev, u32 flags) in atom_dump() argument [all …]
|
D | hda.c | 70 struct snd_sof_dev *sdev = dev_get_drvdata(dev); in sdw_params_stream() local 87 ret = sof_ipc_tx_message(sdev->ipc, in sdw_params_stream() 91 dev_err(sdev->dev, in sdw_params_stream() 102 struct snd_sof_dev *sdev = dev_get_drvdata(dev); in sdw_free_stream() local 118 ret = sof_ipc_tx_message(sdev->ipc, in sdw_free_stream() 122 dev_err(sdev->dev, in sdw_free_stream() 135 void hda_sdw_int_enable(struct snd_sof_dev *sdev, bool enable) in hda_sdw_int_enable() argument 137 sdw_intel_enable_irq(sdev->bar[HDA_DSP_BAR], enable); in hda_sdw_int_enable() 140 static int hda_sdw_acpi_scan(struct snd_sof_dev *sdev) in hda_sdw_acpi_scan() argument 146 handle = ACPI_HANDLE(sdev->dev); in hda_sdw_acpi_scan() [all …]
|
D | hda.h | 473 struct snd_sof_dev *sdev; member 493 int hda_dsp_probe(struct snd_sof_dev *sdev); 494 int hda_dsp_remove(struct snd_sof_dev *sdev); 495 int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev, 497 int hda_dsp_core_reset_leave(struct snd_sof_dev *sdev, 499 int hda_dsp_core_stall_reset(struct snd_sof_dev *sdev, unsigned int core_mask); 500 int hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask); 501 int hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask); 502 int hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask); 503 int hda_dsp_core_power_down(struct snd_sof_dev *sdev, unsigned int core_mask); [all …]
|
D | hda-ipc.c | 21 static void hda_dsp_ipc_host_done(struct snd_sof_dev *sdev) in hda_dsp_ipc_host_done() argument 27 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, in hda_dsp_ipc_host_done() 33 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in hda_dsp_ipc_host_done() 39 static void hda_dsp_ipc_dsp_done(struct snd_sof_dev *sdev) in hda_dsp_ipc_dsp_done() argument 45 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, in hda_dsp_ipc_dsp_done() 51 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in hda_dsp_ipc_dsp_done() 57 int hda_dsp_ipc_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) in hda_dsp_ipc_send_msg() argument 60 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, in hda_dsp_ipc_send_msg() 62 snd_sof_dsp_write(sdev, HDA_DSP_BAR, HDA_DSP_REG_HIPCI, in hda_dsp_ipc_send_msg() 68 void hda_dsp_ipc_get_reply(struct snd_sof_dev *sdev) in hda_dsp_ipc_get_reply() argument [all …]
|
D | hda-stream.c | 31 static int hda_setup_bdle(struct snd_sof_dev *sdev, in hda_setup_bdle() argument 37 struct hdac_bus *bus = sof_to_bus(sdev); in hda_setup_bdle() 45 dev_err(sdev->dev, "error: stream frags exceeded\n"); in hda_setup_bdle() 70 dev_vdbg(sdev->dev, "bdl, frags:%d, chunk size:0x%x;\n", in hda_setup_bdle() 82 int hda_dsp_stream_setup_bdl(struct snd_sof_dev *sdev, in hda_dsp_stream_setup_bdl() argument 86 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; in hda_dsp_stream_setup_bdl() 92 dev_dbg(sdev->dev, "period_bytes:0x%x\n", period_bytes); in hda_dsp_stream_setup_bdl() 98 dev_dbg(sdev->dev, "periods:%d\n", periods); in hda_dsp_stream_setup_bdl() 119 offset = hda_setup_bdle(sdev, dmab, in hda_dsp_stream_setup_bdl() 123 offset = hda_setup_bdle(sdev, dmab, in hda_dsp_stream_setup_bdl() [all …]
|
/Linux-v5.15/drivers/media/radio/si4713/ |
D | si4713.c | 174 struct si4713_device *sdev = dev; in si4713_handler() local 176 v4l2_dbg(2, debug, &sdev->sd, in si4713_handler() 178 complete(&sdev->work); in si4713_handler() 193 static int si4713_send_command(struct si4713_device *sdev, const u8 command, in si4713_send_command() argument 197 struct i2c_client *client = v4l2_get_subdevdata(&sdev->sd); in si4713_send_command() 208 DBG_BUFFER(&sdev->sd, "Parameters", data1, argn + 1); in si4713_send_command() 212 v4l2_err(&sdev->sd, "Error while sending command 0x%02x\n", in si4713_send_command() 221 if (!wait_for_completion_timeout(&sdev->work, in si4713_send_command() 223 v4l2_warn(&sdev->sd, in si4713_send_command() 231 v4l2_err(&sdev->sd, in si4713_send_command() [all …]
|
/Linux-v5.15/drivers/scsi/ |
D | scsi_scan.c | 185 static void scsi_unlock_floptical(struct scsi_device *sdev, in scsi_unlock_floptical() argument 190 sdev_printk(KERN_NOTICE, sdev, "unlocking floptical drive\n"); in scsi_unlock_floptical() 197 scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE, result, 0x2a, NULL, in scsi_unlock_floptical() 219 struct scsi_device *sdev; in scsi_alloc_sdev() local 224 sdev = kzalloc(sizeof(*sdev) + shost->transportt->device_size, in scsi_alloc_sdev() 226 if (!sdev) in scsi_alloc_sdev() 229 sdev->vendor = scsi_null_device_strs; in scsi_alloc_sdev() 230 sdev->model = scsi_null_device_strs; in scsi_alloc_sdev() 231 sdev->rev = scsi_null_device_strs; in scsi_alloc_sdev() 232 sdev->host = shost; in scsi_alloc_sdev() [all …]
|
D | scsi.c | 169 struct scsi_device *sdev = cmd->device; in scsi_finish_command() local 170 struct scsi_target *starget = scsi_target(sdev); in scsi_finish_command() 171 struct Scsi_Host *shost = sdev->host; in scsi_finish_command() 175 scsi_device_unbusy(sdev, cmd); in scsi_finish_command() 185 if (atomic_read(&sdev->device_blocked)) in scsi_finish_command() 186 atomic_set(&sdev->device_blocked, 0); in scsi_finish_command() 188 SCSI_LOG_MLCOMPLETE(4, sdev_printk(KERN_INFO, sdev, in scsi_finish_command() 214 int scsi_device_max_queue_depth(struct scsi_device *sdev) in scsi_device_max_queue_depth() argument 216 return max_t(int, sdev->host->can_queue, 1024); in scsi_device_max_queue_depth() 226 int scsi_change_queue_depth(struct scsi_device *sdev, int depth) in scsi_change_queue_depth() argument [all …]
|
D | scsi_dh.c | 71 scsi_dh_find_driver(struct scsi_device *sdev) in scsi_dh_find_driver() argument 75 if (scsi_device_tpgs(sdev)) in scsi_dh_find_driver() 79 if (!strncmp(sdev->vendor, b->vendor, strlen(b->vendor)) && in scsi_dh_find_driver() 80 !strncmp(sdev->model, b->model, strlen(b->model))) { in scsi_dh_find_driver() 124 static int scsi_dh_handler_attach(struct scsi_device *sdev, in scsi_dh_handler_attach() argument 132 error = scsi_dh->attach(sdev); in scsi_dh_handler_attach() 150 sdev_printk(KERN_ERR, sdev, "%s: Attach failed (%d)\n", in scsi_dh_handler_attach() 154 sdev->handler = scsi_dh; in scsi_dh_handler_attach() 163 static void scsi_dh_handler_detach(struct scsi_device *sdev) in scsi_dh_handler_detach() argument 165 sdev->handler->detach(sdev); in scsi_dh_handler_detach() [all …]
|
D | scsi_sysfs.c | 438 struct scsi_device *sdev; in scsi_device_cls_release() local 440 sdev = class_to_sdev(class_dev); in scsi_device_cls_release() 441 put_device(&sdev->sdev_gendev); in scsi_device_cls_release() 446 struct scsi_device *sdev; in scsi_device_dev_release_usercontext() local 454 sdev = container_of(work, struct scsi_device, ew.work); in scsi_device_dev_release_usercontext() 456 mod = sdev->host->hostt->module; in scsi_device_dev_release_usercontext() 458 scsi_dh_release_device(sdev); in scsi_device_dev_release_usercontext() 460 parent = sdev->sdev_gendev.parent; in scsi_device_dev_release_usercontext() 462 spin_lock_irqsave(sdev->host->host_lock, flags); in scsi_device_dev_release_usercontext() 463 list_del(&sdev->siblings); in scsi_device_dev_release_usercontext() [all …]
|
/Linux-v5.15/drivers/net/ethernet/alacritech/ |
D | slicoss.c | 78 static unsigned int slic_next_compl_idx(struct slic_device *sdev) in slic_next_compl_idx() argument 80 struct slic_stat_queue *stq = &sdev->stq; in slic_next_compl_idx() 102 slic_write(sdev, SLIC_REG_RBAR, lower_32_bits(paddr) | in slic_next_compl_idx() 105 slic_flush_write(sdev); in slic_next_compl_idx() 139 static void slic_start_upr(struct slic_device *sdev, struct slic_upr *upr) in slic_start_upr() argument 145 slic_write(sdev, reg, lower_32_bits(upr->paddr)); in slic_start_upr() 146 slic_flush_write(sdev); in slic_start_upr() 149 static void slic_queue_upr(struct slic_device *sdev, struct slic_upr *upr) in slic_queue_upr() argument 151 struct slic_upr_list *upr_list = &sdev->upr_list; in slic_queue_upr() 162 slic_start_upr(sdev, upr); in slic_queue_upr() [all …]
|
/Linux-v5.15/drivers/iommu/ |
D | sprd-iommu.c | 80 struct sprd_iommu_device *sdev; member 91 sprd_iommu_write(struct sprd_iommu_device *sdev, unsigned int reg, u32 val) in sprd_iommu_write() argument 93 writel_relaxed(val, sdev->base + reg); in sprd_iommu_write() 97 sprd_iommu_read(struct sprd_iommu_device *sdev, unsigned int reg) in sprd_iommu_read() argument 99 return readl_relaxed(sdev->base + reg); in sprd_iommu_read() 103 sprd_iommu_update_bits(struct sprd_iommu_device *sdev, unsigned int reg, in sprd_iommu_update_bits() argument 106 u32 t = sprd_iommu_read(sdev, reg); in sprd_iommu_update_bits() 109 sprd_iommu_write(sdev, reg, t); in sprd_iommu_update_bits() 113 sprd_iommu_get_version(struct sprd_iommu_device *sdev) in sprd_iommu_get_version() argument 115 int ver = (sprd_iommu_read(sdev, SPRD_IOMMU_VERSION) & in sprd_iommu_get_version() [all …]
|
/Linux-v5.15/drivers/usb/usbip/ |
D | stub_dev.c | 21 struct stub_device *sdev = dev_get_drvdata(dev); in usbip_status_show() local 24 if (!sdev) { in usbip_status_show() 29 spin_lock_irq(&sdev->ud.lock); in usbip_status_show() 30 status = sdev->ud.status; in usbip_status_show() 31 spin_unlock_irq(&sdev->ud.lock); in usbip_status_show() 45 struct stub_device *sdev = dev_get_drvdata(dev); in usbip_sockfd_store() local 52 if (!sdev) { in usbip_sockfd_store() 66 mutex_lock(&sdev->ud.sysfs_lock); in usbip_sockfd_store() 67 spin_lock_irq(&sdev->ud.lock); in usbip_sockfd_store() 69 if (sdev->ud.status != SDEV_ST_AVAILABLE) { in usbip_sockfd_store() [all …]
|
/Linux-v5.15/arch/arm/common/ |
D | scoop.c | 42 struct scoop_dev *sdev = dev_get_drvdata(dev); in reset_scoop() local 44 iowrite16(0x0100, sdev->base + SCOOP_MCR); /* 00 */ in reset_scoop() 45 iowrite16(0x0000, sdev->base + SCOOP_CDR); /* 04 */ in reset_scoop() 46 iowrite16(0x0000, sdev->base + SCOOP_CCR); /* 10 */ in reset_scoop() 47 iowrite16(0x0000, sdev->base + SCOOP_IMR); /* 18 */ in reset_scoop() 48 iowrite16(0x00FF, sdev->base + SCOOP_IRM); /* 14 */ in reset_scoop() 49 iowrite16(0x0000, sdev->base + SCOOP_ISR); /* 1C */ in reset_scoop() 50 iowrite16(0x0000, sdev->base + SCOOP_IRM); in reset_scoop() 53 static void __scoop_gpio_set(struct scoop_dev *sdev, in __scoop_gpio_set() argument 58 gpwr = ioread16(sdev->base + SCOOP_GPWR); in __scoop_gpio_set() [all …]
|
/Linux-v5.15/drivers/gpu/drm/shmobile/ |
D | shmob_drm_drv.c | 33 static int shmob_drm_init_interface(struct shmob_drm_device *sdev) in shmob_drm_init_interface() argument 57 if (sdev->pdata->iface.interface >= ARRAY_SIZE(ldmt1r)) { in shmob_drm_init_interface() 58 dev_err(sdev->dev, "invalid interface type %u\n", in shmob_drm_init_interface() 59 sdev->pdata->iface.interface); in shmob_drm_init_interface() 63 sdev->ldmt1r = ldmt1r[sdev->pdata->iface.interface]; in shmob_drm_init_interface() 67 static int shmob_drm_setup_clocks(struct shmob_drm_device *sdev, in shmob_drm_setup_clocks() argument 76 sdev->lddckr = LDDCKR_ICKSEL_BUS; in shmob_drm_setup_clocks() 80 sdev->lddckr = LDDCKR_ICKSEL_MIPI; in shmob_drm_setup_clocks() 84 sdev->lddckr = LDDCKR_ICKSEL_HDMI; in shmob_drm_setup_clocks() 90 clk = devm_clk_get(sdev->dev, clkname); in shmob_drm_setup_clocks() [all …]
|
D | shmob_drm_crtc.c | 38 static int shmob_drm_clk_on(struct shmob_drm_device *sdev) in shmob_drm_clk_on() argument 42 if (sdev->clock) { in shmob_drm_clk_on() 43 ret = clk_prepare_enable(sdev->clock); in shmob_drm_clk_on() 51 static void shmob_drm_clk_off(struct shmob_drm_device *sdev) in shmob_drm_clk_off() argument 53 if (sdev->clock) in shmob_drm_clk_off() 54 clk_disable_unprepare(sdev->clock); in shmob_drm_clk_off() 64 struct shmob_drm_device *sdev = crtc->dev->dev_private; in shmob_drm_crtc_setup_geometry() local 65 const struct shmob_drm_interface_data *idata = &sdev->pdata->iface; in shmob_drm_crtc_setup_geometry() 69 value = sdev->ldmt1r in shmob_drm_crtc_setup_geometry() 77 lcdc_write(sdev, LDMT1R, value); in shmob_drm_crtc_setup_geometry() [all …]
|
/Linux-v5.15/drivers/gpu/drm/tiny/ |
D | simpledrm.c | 260 struct simpledrm_device *sdev = simpledrm_device_of_dev(res); in simpledrm_device_release_clocks() local 263 for (i = 0; i < sdev->clk_count; ++i) { in simpledrm_device_release_clocks() 264 if (sdev->clks[i]) { in simpledrm_device_release_clocks() 265 clk_disable_unprepare(sdev->clks[i]); in simpledrm_device_release_clocks() 266 clk_put(sdev->clks[i]); in simpledrm_device_release_clocks() 271 static int simpledrm_device_init_clocks(struct simpledrm_device *sdev) in simpledrm_device_init_clocks() argument 273 struct drm_device *dev = &sdev->dev; in simpledrm_device_init_clocks() 274 struct platform_device *pdev = sdev->pdev; in simpledrm_device_init_clocks() 283 sdev->clk_count = of_clk_get_parent_count(of_node); in simpledrm_device_init_clocks() 284 if (!sdev->clk_count) in simpledrm_device_init_clocks() [all …]
|