| /linux/sound/soc/sof/ |
| H A D | core.c | 123 void sof_print_oops_and_stack(struct snd_sof_dev *sdev, const char *level, in sof_print_oops_and_stack() argument 133 dev_printk(level, sdev->dev, "unexpected fault %#010x trace %#010x\n", in sof_print_oops_and_stack() 142 dev_printk(level, sdev->dev, "reason: %s (%#x)\n", in sof_print_oops_and_stack() 144 dev_printk(level, sdev->dev, "trace point: %#010x\n", tracep_code); in sof_print_oops_and_stack() 150 dev_printk(level, sdev->dev, "unknown panic code: %#x\n", in sof_print_oops_and_stack() 152 dev_printk(level, sdev->dev, "trace point: %#010x\n", tracep_code); in sof_print_oops_and_stack() 155 dev_printk(level, sdev->dev, "panic at %s:%d\n", panic_info->filename, in sof_print_oops_and_stack() 157 sof_oops(sdev, level, oops); in sof_print_oops_and_stack() 158 sof_stack(sdev, level, oops, stack, stack_words); in sof_print_oops_and_stack() 163 void sof_set_fw_state(struct snd_sof_dev *sdev, enum sof_fw_state new_state) in sof_set_fw_state() argument [all …]
|
| H A 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() 40 if (snd_sof_stream_suspend_ignored(sdev)) in snd_sof_dsp_power_target() 55 static void sof_cache_debugfs(struct snd_sof_dev *sdev) in sof_cache_debugfs() argument 59 list_for_each_entry(dfse, &sdev->dfsentry_list, list) { in sof_cache_debugfs() 75 struct snd_sof_dev *sdev = dev_get_drvdata(dev); in sof_resume() local 76 const struct sof_ipc_pm_ops *pm_ops = sof_ipc_get_ops(sdev, pm); in sof_resume() 77 const struct sof_ipc_tplg_ops *tplg_ops = sof_ipc_get_ops(sdev, tplg); in sof_resume() 78 u32 old_state = sdev->dsp_power_state.state; in sof_resume() 82 if (!runtime_resume && !sof_ops(sdev)->resume) in sof_resume() [all …]
|
| H A D | loader.c | 17 int snd_sof_load_firmware_raw(struct snd_sof_dev *sdev) in snd_sof_load_firmware_raw() argument 19 struct snd_sof_pdata *plat_data = sdev->pdata; in snd_sof_load_firmware_raw() 25 if (sdev->basefw.fw) in snd_sof_load_firmware_raw() 34 ret = request_firmware(&sdev->basefw.fw, fw_filename, sdev->dev); in snd_sof_load_firmware_raw() 37 dev_err(sdev->dev, in snd_sof_load_firmware_raw() 39 dev_err(sdev->dev, in snd_sof_load_firmware_raw() 43 dev_dbg(sdev->dev, "request_firmware %s successful\n", in snd_sof_load_firmware_raw() 48 ext_man_size = sdev->ipc->ops->fw_loader->parse_ext_manifest(sdev); in snd_sof_load_firmware_raw() 51 sdev->basefw.payload_offset = ext_man_size; in snd_sof_load_firmware_raw() 54 dev_dbg(sdev->dev, "firmware doesn't contain extended manifest\n"); in snd_sof_load_firmware_raw() [all …]
|
| H A D | debug.c | 26 struct snd_sof_dev *sdev = dfse->sdev; in sof_dfsentry_read() local 69 if (pm_runtime_active(sdev->dev) || in sof_dfsentry_read() 73 dev_info(sdev->dev, in sof_dfsentry_read() 79 if (!pm_runtime_active(sdev->dev) && in sof_dfsentry_read() 81 dev_err(sdev->dev, in sof_dfsentry_read() 114 static int snd_sof_debugfs_io_item(struct snd_sof_dev *sdev, in snd_sof_debugfs_io_item() argument 121 if (!sdev) in snd_sof_debugfs_io_item() 124 dfse = devm_kzalloc(sdev->dev, sizeof(*dfse), GFP_KERNEL); in snd_sof_debugfs_io_item() 131 dfse->sdev = sdev; in snd_sof_debugfs_io_item() 140 dfse->cache_buf = devm_kzalloc(sdev->dev, size, GFP_KERNEL); in snd_sof_debugfs_io_item() [all …]
|
| H A D | ops.c | 15 bool snd_sof_pci_update_bits_unlocked(struct snd_sof_dev *sdev, u32 offset, in snd_sof_pci_update_bits_unlocked() argument 18 struct pci_dev *pci = to_pci_dev(sdev->dev); in snd_sof_pci_update_bits_unlocked() 24 dev_dbg(sdev->dev, "Debug PCIR: %8.8x at %8.8x\n", old & mask, offset); in snd_sof_pci_update_bits_unlocked() 32 dev_dbg(sdev->dev, "Debug PCIW: %8.8x at %8.8x\n", value, in snd_sof_pci_update_bits_unlocked() 38 bool snd_sof_pci_update_bits(struct snd_sof_dev *sdev, u32 offset, in snd_sof_pci_update_bits() argument 44 spin_lock_irqsave(&sdev->hw_lock, flags); in snd_sof_pci_update_bits() 45 change = snd_sof_pci_update_bits_unlocked(sdev, offset, mask, value); in snd_sof_pci_update_bits() 46 spin_unlock_irqrestore(&sdev->hw_lock, flags); in snd_sof_pci_update_bits() 51 bool snd_sof_dsp_update_bits_unlocked(struct snd_sof_dev *sdev, u32 bar, in snd_sof_dsp_update_bits_unlocked() argument 57 ret = snd_sof_dsp_read(sdev, bar, offset); in snd_sof_dsp_update_bits_unlocked() [all …]
|
| /linux/sound/soc/sof/imx/ |
| H A D | imx-common.c | 28 void imx8_get_registers(struct snd_sof_dev *sdev, in imx8_get_registers() argument 33 u32 offset = sdev->dsp_oops_offset; in imx8_get_registers() 36 sof_mailbox_read(sdev, offset, xoops, sizeof(*xoops)); in imx8_get_registers() 40 dev_err(sdev->dev, "invalid header size 0x%x. FW oops is bogus\n", in imx8_get_registers() 45 sof_mailbox_read(sdev, offset, panic_info, sizeof(*panic_info)); in imx8_get_registers() 49 sof_mailbox_read(sdev, offset, stack, stack_words * sizeof(u32)); in imx8_get_registers() 58 void imx8_dump(struct snd_sof_dev *sdev, u32 flags) in imx8_dump() argument 68 sof_mailbox_read(sdev, sdev->debug_box.offset + 0x4, &status, 4); in imx8_dump() 73 imx8_get_registers(sdev, &xoops, &panic_info, stack, in imx8_dump() 77 sof_print_oops_and_stack(sdev, KERN_ERR, status, status, &xoops, in imx8_dump() [all …]
|
| /linux/drivers/scsi/ |
| H A D | scsi.c | 160 struct scsi_device *sdev = cmd->device; in scsi_finish_command() local 161 struct scsi_target *starget = scsi_target(sdev); in scsi_finish_command() 162 struct Scsi_Host *shost = sdev->host; in scsi_finish_command() 166 scsi_device_unbusy(sdev, cmd); in scsi_finish_command() 176 if (atomic_read(&sdev->device_blocked)) in scsi_finish_command() 177 atomic_set(&sdev->device_blocked, 0); in scsi_finish_command() 179 SCSI_LOG_MLCOMPLETE(4, sdev_printk(KERN_INFO, sdev, in scsi_finish_command() 205 int scsi_device_max_queue_depth(struct scsi_device *sdev) in scsi_device_max_queue_depth() argument 207 return min_t(int, sdev->host->can_queue, 4096); in scsi_device_max_queue_depth() 217 int scsi_change_queue_depth(struct scsi_device *sdev, int depth) in scsi_change_queue_depth() argument [all …]
|
| H A D | scsi_scan.c | 202 static void scsi_unlock_floptical(struct scsi_device *sdev, in scsi_unlock_floptical() argument 207 sdev_printk(KERN_NOTICE, sdev, "unlocking floptical drive\n"); in scsi_unlock_floptical() 214 scsi_execute_cmd(sdev, scsi_cmd, REQ_OP_DRV_IN, result, 0x2a, in scsi_unlock_floptical() 218 static int scsi_realloc_sdev_budget_map(struct scsi_device *sdev, in scsi_realloc_sdev_budget_map() argument 222 bool need_alloc = !sdev->budget_map.map; in scsi_realloc_sdev_budget_map() 228 depth = min_t(unsigned int, depth, scsi_device_max_queue_depth(sdev)); in scsi_realloc_sdev_budget_map() 234 if (!need_alloc && new_shift != sdev->budget_map.shift) in scsi_realloc_sdev_budget_map() 245 memflags = blk_mq_freeze_queue(sdev->request_queue); in scsi_realloc_sdev_budget_map() 246 sb_backup = sdev->budget_map; in scsi_realloc_sdev_budget_map() 248 ret = sbitmap_init_node(&sdev->budget_map, in scsi_realloc_sdev_budget_map() [all …]
|
| H A 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 …]
|
| H A 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 = to_scsi_device(dev); in scsi_device_dev_release() local 457 scsi_dh_release_device(sdev); in scsi_device_dev_release() 459 parent = sdev->sdev_gendev.parent; in scsi_device_dev_release() 461 spin_lock_irqsave(sdev->host->host_lock, flags); in scsi_device_dev_release() 462 list_del(&sdev->siblings); in scsi_device_dev_release() 463 list_del(&sdev->same_target_siblings); in scsi_device_dev_release() 464 list_del(&sdev->starved_entry); in scsi_device_dev_release() [all …]
|
| /linux/sound/soc/sof/intel/ |
| H A D | hda-ipc.c | 29 static void hda_dsp_ipc_host_done(struct snd_sof_dev *sdev) in hda_dsp_ipc_host_done() argument 35 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, in hda_dsp_ipc_host_done() 41 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in hda_dsp_ipc_host_done() 47 static void hda_dsp_ipc_dsp_done(struct snd_sof_dev *sdev) in hda_dsp_ipc_dsp_done() argument 53 snd_sof_dsp_update_bits_forced(sdev, HDA_DSP_BAR, in hda_dsp_ipc_dsp_done() 59 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in hda_dsp_ipc_dsp_done() 65 int hda_dsp_ipc_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) in hda_dsp_ipc_send_msg() argument 68 sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, in hda_dsp_ipc_send_msg() 70 snd_sof_dsp_write(sdev, HDA_DSP_BA in hda_dsp_ipc_send_msg() 104 hda_dsp_ipc4_send_msg(struct snd_sof_dev * sdev,struct snd_sof_ipc_msg * msg) hda_dsp_ipc4_send_msg() argument 131 hda_dsp_ipc_get_reply(struct snd_sof_dev * sdev) hda_dsp_ipc_get_reply() argument 170 struct snd_sof_dev *sdev = context; hda_dsp_ipc4_irq_thread() local 253 struct snd_sof_dev *sdev = context; hda_dsp_ipc_irq_thread() local 364 hda_dsp_check_ipc_irq(struct snd_sof_dev * sdev) hda_dsp_check_ipc_irq() argument 397 hda_dsp_ipc_get_mailbox_offset(struct snd_sof_dev * sdev) hda_dsp_ipc_get_mailbox_offset() argument 403 hda_dsp_ipc_get_window_offset(struct snd_sof_dev * sdev,u32 id) hda_dsp_ipc_get_window_offset() argument 409 hda_ipc_msg_data(struct snd_sof_dev * sdev,struct snd_sof_pcm_stream * sps,void * p,size_t sz) hda_ipc_msg_data() argument 435 hda_set_stream_data_offset(struct snd_sof_dev * sdev,struct snd_sof_pcm_stream * sps,size_t posn_offset) hda_set_stream_data_offset() argument 460 hda_ipc4_dsp_dump(struct snd_sof_dev * sdev,u32 flags) hda_ipc4_dsp_dump() argument 474 hda_check_ipc_irq(struct snd_sof_dev * sdev) hda_check_ipc_irq() argument 486 hda_ipc_irq_dump(struct snd_sof_dev * sdev) hda_ipc_irq_dump() argument 507 hda_ipc_dump(struct snd_sof_dev * sdev) hda_ipc_dump() argument 527 hda_ipc4_dump(struct snd_sof_dev * sdev) hda_ipc4_dump() argument 546 hda_ipc4_tx_is_busy(struct snd_sof_dev * sdev) hda_ipc4_tx_is_busy() argument [all...] |
| H A D | hda-loader-skl.c | 115 static int cl_skl_cldma_setup_bdle(struct snd_sof_dev *sdev, in cl_skl_cldma_setup_bdle() argument 135 static void cl_skl_cldma_stream_run(struct snd_sof_dev *sdev, bool enable) in cl_skl_cldma_stream_run() argument 142 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_run() 151 val = snd_sof_dsp_read(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_run() 161 dev_err(sdev->dev, "%s: failed to set Run bit=%d enable=%d\n", in cl_skl_cldma_stream_run() 165 static void cl_skl_cldma_stream_clear(struct snd_sof_dev *sdev) in cl_skl_cldma_stream_clear() argument 170 cl_skl_cldma_stream_run(sdev, 0); in cl_skl_cldma_stream_clear() 175 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear() 178 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear() 182 snd_sof_dsp_write(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_clear() [all …]
|
| H A 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); 83 static int bdw_run(struct snd_sof_dev *sdev) in bdw_run() argument 86 snd_sof_dsp_update_bits(sdev, BDW_DSP_BAR, SHIM_HMDC, in bdw_run() 91 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_run() 98 static int bdw_reset(struct snd_sof_dev *sdev) in bdw_reset() argument 101 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_reset() 109 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_reset() 116 static int bdw_set_dsp_D0(struct snd_sof_dev *sdev) in bdw_set_dsp_D0() argument 122 snd_sof_dsp_update_bits_unlocked(sdev, BDW_PCI_BAR, PCI_VDRTCTL2, in bdw_set_dsp_D0() [all …]
|
| H A D | cnl.c | 33 static void cnl_ipc_host_done(struct snd_sof_dev *sdev); 34 static void cnl_ipc_dsp_done(struct snd_sof_dev *sdev); 39 struct snd_sof_dev *sdev = context; in cnl_ipc4_irq_thread() local 44 hipcida = snd_sof_dsp_read(sdev, HDA_DSP_BAR, CNL_DSP_REG_HIPCIDA); in cnl_ipc4_irq_thread() 45 hipctdr = snd_sof_dsp_read(sdev, HDA_DSP_BAR, CNL_DSP_REG_HIPCTDR); in cnl_ipc4_irq_thread() 48 snd_sof_dsp_update_bits(sdev, HDA_DSP_BAR, in cnl_ipc4_irq_thread() 51 cnl_ipc_dsp_done(sdev); in cnl_ipc4_irq_thread() 59 u32 hipctdd = snd_sof_dsp_read(sdev, HDA_DSP_BAR, in cnl_ipc4_irq_thread() 66 if (likely(sdev->fw_state == SOF_FW_BOOT_COMPLETE)) { in cnl_ipc4_irq_thread() 67 struct sof_ipc4_msg *data = sdev in cnl_ipc4_irq_thread() 117 struct snd_sof_dev *sdev = context; cnl_ipc_irq_thread() local 208 cnl_ipc_host_done(struct snd_sof_dev * sdev) cnl_ipc_host_done() argument 228 cnl_ipc_dsp_done(struct snd_sof_dev * sdev) cnl_ipc_dsp_done() argument 264 cnl_ipc4_send_msg(struct snd_sof_dev * sdev,struct snd_sof_ipc_msg * msg) cnl_ipc4_send_msg() argument 291 cnl_ipc_send_msg(struct snd_sof_dev * sdev,struct snd_sof_ipc_msg * msg) cnl_ipc_send_msg() argument 339 cnl_ipc_dump(struct snd_sof_dev * sdev) cnl_ipc_dump() argument 360 cnl_ipc4_dump(struct snd_sof_dev * sdev) cnl_ipc4_dump() argument 386 sof_cnl_ops_init(struct snd_sof_dev * sdev) sof_cnl_ops_init() argument [all...] |
| H A D | hda-loader.c | 34 static void hda_ssp_set_cbp_cfp(struct snd_sof_dev *sdev) in hda_ssp_set_cbp_cfp() argument 36 struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; in hda_ssp_set_cbp_cfp() 42 snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR, in hda_ssp_set_cbp_cfp() 56 struct snd_sof_dev *sdev = dev_get_drvdata(dev); in hda_cl_prepare() local 61 hext_stream = hda_dsp_stream_get(sdev, direction, 0); in hda_cl_prepare() 64 dev_err(sdev->dev, "error: no stream available\n"); in hda_cl_prepare() 79 dev_err(sdev->dev, "%s: memory alloc failed: %d\n", in hda_cl_prepare() 90 ret = hda_dsp_iccmax_stream_hw_params(sdev, hext_stream, dmab, NULL); in hda_cl_prepare() 92 dev_err(sdev->dev, "error: iccmax stream prepare failed: %d\n", ret); in hda_cl_prepare() 96 ret = hda_dsp_stream_hw_params(sdev, hext_stream, dmab, NULL); in hda_cl_prepare() [all …]
|
| H A 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); 35 static void atom_get_registers(struct snd_sof_dev *sdev, in atom_get_registers() argument 40 u32 offset = sdev->dsp_oops_offset; in atom_get_registers() 43 sof_mailbox_read(sdev, offset, xoops, sizeof(*xoops)); in atom_get_registers() 49 dev_err(sdev->dev, "invalid header size 0x%x. FW oops is bogus\n", in atom_get_registers() 54 sof_mailbox_read(sdev, offset, panic_info, sizeof(*panic_info)); in atom_get_registers() 58 sof_mailbox_read(sdev, offset, stack, stack_words * sizeof(u32)); in atom_get_registers() 61 void atom_dump(struct snd_sof_dev *sdev, u32 flags) in atom_dump() argument 69 status = snd_sof_dsp_read64(sdev, DSP_BAR, SHIM_IPCD); in atom_dump() [all …]
|
| /linux/sound/soc/sof/amd/ |
| H A D | acp.c | 50 struct snd_sof_dev *sdev = adata->dev; in init_dma_descriptor() local 51 const struct sof_amd_acp_desc *desc = get_chip_info(sdev->pdata); in init_dma_descriptor() 52 struct acp_dev_data *acp_data = sdev->pdata->hw_pdata; in init_dma_descriptor() 56 addr = desc->sram_pte_offset + sdev->debug_box.offset + in init_dma_descriptor() 70 snd_sof_dsp_write(sdev, ACP_DSP_BAR, acp_dma_desc_base_addr, addr); in init_dma_descriptor() 71 snd_sof_dsp_write(sdev, ACP_DSP_BAR, acp_dma_desc_max_num_dscr, ACP_MAX_DESC_CNT); in init_dma_descriptor() 77 struct snd_sof_dev *sdev = adata->dev; in configure_dma_descriptor() local 80 offset = ACP_SCRATCH_REG_0 + sdev->debug_box.offset + in configure_dma_descriptor() 84 snd_sof_dsp_write(sdev, ACP_DSP_BAR, offset, dscr_info->src_addr); in configure_dma_descriptor() 85 snd_sof_dsp_write(sdev, ACP_DSP_BAR, offset + 0x4, dscr_info->dest_addr); in configure_dma_descriptor() [all …]
|
| H A D | acp-ipc.c | 18 void acp_mailbox_write(struct snd_sof_dev *sdev, u32 offset, void *message, size_t bytes) in acp_mailbox_write() argument 20 memcpy_to_scratch(sdev, offset, message, bytes); in acp_mailbox_write() 24 void acp_mailbox_read(struct snd_sof_dev *sdev, u32 offset, void *message, size_t bytes) in acp_mailbox_read() argument 26 memcpy_from_scratch(sdev, offset, message, bytes); in acp_mailbox_read() 32 struct snd_sof_dev *sdev = adata->dev; in acpbus_trigger_host_to_dsp_swintr() local 33 const struct sof_amd_acp_desc *desc = get_chip_info(sdev->pdata); in acpbus_trigger_host_to_dsp_swintr() 36 swintr_trigger = snd_sof_dsp_read(sdev, ACP_DSP_BAR, desc->dsp_intr_base + in acpbus_trigger_host_to_dsp_swintr() 39 snd_sof_dsp_write(sdev, ACP_DSP_BAR, desc->dsp_intr_base + DSP_SW_INTR_TRIG_OFFSET, in acpbus_trigger_host_to_dsp_swintr() 43 static void acp_ipc_host_msg_set(struct snd_sof_dev *sdev) in acp_ipc_host_msg_set() argument 45 unsigned int host_msg = sdev->debug_box.offset + in acp_ipc_host_msg_set() [all …]
|
| /linux/drivers/media/radio/si4713/ |
| H A 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/drivers/net/ethernet/alacritech/ |
| H A 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/drivers/usb/usbip/ |
| H A 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/drivers/iommu/ |
| H A D | sprd-iommu.c | 81 struct sprd_iommu_device *sdev; member 92 sprd_iommu_write(struct sprd_iommu_device *sdev, unsigned int reg, u32 val) in sprd_iommu_write() argument 94 writel_relaxed(val, sdev->base + reg); in sprd_iommu_write() 98 sprd_iommu_read(struct sprd_iommu_device *sdev, unsigned int reg) in sprd_iommu_read() argument 100 return readl_relaxed(sdev->base + reg); in sprd_iommu_read() 104 sprd_iommu_update_bits(struct sprd_iommu_device *sdev, unsigned int reg, in sprd_iommu_update_bits() argument 107 u32 t = sprd_iommu_read(sdev, reg); in sprd_iommu_update_bits() 110 sprd_iommu_write(sdev, reg, t); in sprd_iommu_update_bits() 114 sprd_iommu_get_version(struct sprd_iommu_device *sdev) in sprd_iommu_get_version() argument 116 int ver = (sprd_iommu_read(sdev, SPRD_IOMMU_VERSION) & in sprd_iommu_get_version() [all …]
|
| /linux/include/scsi/ |
| H A D | scsi_device.h | 308 #define sdev_dbg(sdev, fmt, a...) \ argument 309 dev_dbg(&(sdev)->sdev_gendev, fmt, ##a) 319 #define sdev_printk(l, sdev, fmt, a...) \ argument 320 sdev_prefix_printk(l, sdev, NULL, fmt, ##a) 389 static inline struct scsi_target *scsi_target(struct scsi_device *sdev) in scsi_target() argument 391 return to_scsi_target(sdev->sdev_gendev.parent); in scsi_target() 406 void scsi_attach_vpd(struct scsi_device *sdev); 407 void scsi_cdl_check(struct scsi_device *sdev); 408 int scsi_cdl_enable(struct scsi_device *sdev, bool enable); 440 #define shost_for_each_device(sdev, shost) \ argument [all …]
|
| /linux/drivers/gpu/drm/renesas/shmobile/ |
| H A D | shmob_drm_drv.c | 40 static int shmob_drm_setup_clocks(struct shmob_drm_device *sdev, in shmob_drm_setup_clocks() argument 49 sdev->lddckr = LDDCKR_ICKSEL_BUS; in shmob_drm_setup_clocks() 53 sdev->lddckr = LDDCKR_ICKSEL_MIPI; in shmob_drm_setup_clocks() 57 sdev->lddckr = LDDCKR_ICKSEL_HDMI; in shmob_drm_setup_clocks() 63 clk = devm_clk_get(sdev->dev, clkname); in shmob_drm_setup_clocks() 65 dev_err(sdev->dev, "cannot get dot clock %s\n", clkname); in shmob_drm_setup_clocks() 69 sdev->clock = clk; in shmob_drm_setup_clocks() 80 struct shmob_drm_device *sdev = to_shmob_device(dev); in shmob_drm_irq() local 88 spin_lock_irqsave(&sdev->irq_lock, flags); in shmob_drm_irq() 89 status = lcdc_read(sdev, LDINTR); in shmob_drm_irq() [all …]
|
| /linux/arch/arm/common/ |
| H A 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 …]
|