| /Linux-v5.4/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() 46 static inline int snd_sof_dsp_run(struct snd_sof_dev *sdev) in snd_sof_dsp_run() argument 48 return sof_ops(sdev)->run(sdev); in snd_sof_dsp_run() 51 static inline int snd_sof_dsp_stall(struct snd_sof_dev *sdev) in snd_sof_dsp_stall() argument [all …]
|
| D | trace.c | 16 static size_t sof_trace_avail(struct snd_sof_dev *sdev, in sof_trace_avail() argument 19 loff_t host_offset = READ_ONCE(sdev->host_offset); in sof_trace_avail() 36 static size_t sof_wait_trace_avail(struct snd_sof_dev *sdev, in sof_wait_trace_avail() argument 40 size_t ret = sof_trace_avail(sdev, pos, buffer_size); in sof_wait_trace_avail() 46 if (!sdev->dtrace_is_enabled && sdev->dtrace_draining) { in sof_wait_trace_avail() 51 sdev->dtrace_draining = false; in sof_wait_trace_avail() 58 add_wait_queue(&sdev->trace_sleep, &wait); in sof_wait_trace_avail() 64 remove_wait_queue(&sdev->trace_sleep, &wait); in sof_wait_trace_avail() 66 return sof_trace_avail(sdev, pos, buffer_size); in sof_wait_trace_avail() 73 struct snd_sof_dev *sdev = dfse->sdev; in sof_dfsentry_trace_read() local [all …]
|
| D | loader.c | 17 static int get_ext_windows(struct snd_sof_dev *sdev, in get_ext_windows() argument 27 sdev->info_window = kmemdup(w, struct_size(w, window, w->num_windows), in get_ext_windows() 29 if (!sdev->info_window) in get_ext_windows() 36 int snd_sof_fw_parse_ext_data(struct snd_sof_dev *sdev, u32 bar, u32 offset) in snd_sof_fw_parse_ext_data() argument 47 snd_sof_dsp_block_read(sdev, bar, offset, ext_data, in snd_sof_fw_parse_ext_data() 54 snd_sof_dsp_block_read(sdev, bar, offset, in snd_sof_fw_parse_ext_data() 58 dev_dbg(sdev->dev, "found ext header type %d size 0x%x\n", in snd_sof_fw_parse_ext_data() 66 ret = get_ext_windows(sdev, ext_hdr); in snd_sof_fw_parse_ext_data() 73 dev_err(sdev->dev, "error: failed to parse ext data type %d\n", in snd_sof_fw_parse_ext_data() 80 snd_sof_dsp_block_read(sdev, bar, offset, ext_data, in snd_sof_fw_parse_ext_data() [all …]
|
| D | core.c | 27 struct snd_sof_pcm *snd_sof_find_spcm_name(struct snd_sof_dev *sdev, in snd_sof_find_spcm_name() argument 32 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_find_spcm_name() 51 struct snd_sof_pcm *snd_sof_find_spcm_comp(struct snd_sof_dev *sdev, in snd_sof_find_spcm_comp() argument 57 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_find_spcm_comp() 71 struct snd_sof_pcm *snd_sof_find_spcm_pcm_id(struct snd_sof_dev *sdev, in snd_sof_find_spcm_pcm_id() argument 76 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_find_spcm_pcm_id() 84 struct snd_sof_widget *snd_sof_find_swidget(struct snd_sof_dev *sdev, in snd_sof_find_swidget() argument 89 list_for_each_entry(swidget, &sdev->widget_list, list) { in snd_sof_find_swidget() 98 struct snd_sof_widget *snd_sof_find_swidget_sname(struct snd_sof_dev *sdev, in snd_sof_find_swidget_sname() argument 109 list_for_each_entry(swidget, &sdev->widget_list, list) { in snd_sof_find_swidget_sname() [all …]
|
| D | pm.c | 14 static int sof_restore_kcontrols(struct snd_sof_dev *sdev) in sof_restore_kcontrols() argument 21 list_for_each_entry(scontrol, &sdev->kcontrol_list, list) { in sof_restore_kcontrols() 32 ret = snd_sof_ipc_set_get_comp_data(sdev->ipc, scontrol, in sof_restore_kcontrols() 40 ret = snd_sof_ipc_set_get_comp_data(sdev->ipc, scontrol, in sof_restore_kcontrols() 51 dev_err(sdev->dev, in sof_restore_kcontrols() 62 static int sof_restore_pipelines(struct snd_sof_dev *sdev) in sof_restore_pipelines() argument 73 list_for_each_entry_reverse(swidget, &sdev->widget_list, list) { in sof_restore_pipelines() 85 ret = sof_ipc_tx_message(sdev->ipc, in sof_restore_pipelines() 99 ret = sof_load_pipeline_ipc(sdev, pipeline, &r); in sof_restore_pipelines() 103 ret = sof_ipc_tx_message(sdev->ipc, hdr->cmd, in sof_restore_pipelines() [all …]
|
| D | sof-priv.h | 131 int (*fw_ready)(struct snd_sof_dev *sdev, u32 msg_id); /* optional */ 134 int (*pcm_open)(struct snd_sof_dev *sdev, 137 int (*pcm_close)(struct snd_sof_dev *sdev, 141 int (*pcm_hw_params)(struct snd_sof_dev *sdev, 147 int (*pcm_hw_free)(struct snd_sof_dev *sdev, 151 int (*pcm_trigger)(struct snd_sof_dev *sdev, 156 snd_pcm_uframes_t (*pcm_pointer)(struct snd_sof_dev *sdev, 160 void (*ipc_msg_data)(struct snd_sof_dev *sdev, 165 int (*ipc_pcm_params)(struct snd_sof_dev *sdev, 179 int (*set_hw_params_upon_resume)(struct snd_sof_dev *sdev); /* optional */ [all …]
|
| 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-v5.4/sound/soc/sof/intel/ |
| D | bdw.c | 71 static void bdw_host_done(struct snd_sof_dev *sdev); 72 static void bdw_dsp_done(struct snd_sof_dev *sdev); 73 static void bdw_get_reply(struct snd_sof_dev *sdev); 79 static int bdw_run(struct snd_sof_dev *sdev) in bdw_run() argument 82 snd_sof_dsp_update_bits(sdev, BDW_DSP_BAR, SHIM_HMDC, in bdw_run() 87 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_run() 94 static int bdw_reset(struct snd_sof_dev *sdev) in bdw_reset() argument 97 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_reset() 105 snd_sof_dsp_update_bits_unlocked(sdev, BDW_DSP_BAR, SHIM_CSR, in bdw_reset() 112 static int bdw_set_dsp_D0(struct snd_sof_dev *sdev) in bdw_set_dsp_D0() argument [all …]
|
| D | hda-dsp.c | 27 int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_enter() argument 35 snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_enter() 40 ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_enter() 47 adspcs = snd_sof_dsp_read(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_enter() 51 dev_err(sdev->dev, in hda_dsp_core_reset_enter() 60 int hda_dsp_core_reset_leave(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_leave() argument 67 snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_leave() 74 ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_leave() 81 adspcs = snd_sof_dsp_read(sdev, HDA_DSP_BAR, in hda_dsp_core_reset_leave() 84 dev_err(sdev->dev, in hda_dsp_core_reset_leave() [all …]
|
| D | hda.c | 83 static void hda_dsp_get_status_skl(struct snd_sof_dev *sdev) in hda_dsp_get_status_skl() argument 88 status = snd_sof_dsp_read(sdev, HDA_DSP_BAR, in hda_dsp_get_status_skl() 93 dev_err(sdev->dev, "%s - code %8.8x\n", in hda_dsp_get_status_skl() 100 dev_dbg(sdev->dev, "unknown ROM status value %8.8x\n", status); in hda_dsp_get_status_skl() 103 static void hda_dsp_get_status(struct snd_sof_dev *sdev) in hda_dsp_get_status() argument 108 status = snd_sof_dsp_read(sdev, HDA_DSP_BAR, in hda_dsp_get_status() 113 dev_err(sdev->dev, "%s - code %8.8x\n", in hda_dsp_get_status() 120 dev_dbg(sdev->dev, "unknown ROM status value %8.8x\n", status); in hda_dsp_get_status() 123 static void hda_dsp_get_registers(struct snd_sof_dev *sdev, in hda_dsp_get_registers() argument 128 u32 offset = sdev->dsp_oops_offset; in hda_dsp_get_registers() [all …]
|
| D | byt.c | 109 static void byt_host_done(struct snd_sof_dev *sdev); 110 static void byt_dsp_done(struct snd_sof_dev *sdev); 111 static void byt_get_reply(struct snd_sof_dev *sdev); 117 static void byt_get_registers(struct snd_sof_dev *sdev, in byt_get_registers() argument 122 u32 offset = sdev->dsp_oops_offset; in byt_get_registers() 125 sof_mailbox_read(sdev, offset, xoops, sizeof(*xoops)); in byt_get_registers() 131 dev_err(sdev->dev, "invalid header size 0x%x. FW oops is bogus\n", in byt_get_registers() 136 sof_mailbox_read(sdev, offset, panic_info, sizeof(*panic_info)); in byt_get_registers() 140 sof_mailbox_read(sdev, offset, stack, stack_words * sizeof(u32)); in byt_get_registers() 143 static void byt_dump(struct snd_sof_dev *sdev, u32 flags) in byt_dump() argument [all …]
|
| D | hda-loader.c | 26 static int cl_stream_prepare(struct snd_sof_dev *sdev, unsigned int format, in cl_stream_prepare() argument 32 struct pci_dev *pci = to_pci_dev(sdev->dev); in cl_stream_prepare() 36 dev_err(sdev->dev, "error: code loading DMA is playback only\n"); in cl_stream_prepare() 40 dsp_stream = hda_dsp_stream_get(sdev, direction); in cl_stream_prepare() 43 dev_err(sdev->dev, "error: no stream available\n"); in cl_stream_prepare() 52 dev_err(sdev->dev, "error: memory alloc failed: %x\n", ret); in cl_stream_prepare() 60 ret = hda_dsp_stream_hw_params(sdev, dsp_stream, dmab, NULL); in cl_stream_prepare() 62 dev_err(sdev->dev, "error: hdac prepare failed: %x\n", ret); in cl_stream_prepare() 66 hda_dsp_stream_spib_config(sdev, dsp_stream, HDA_DSP_SPIB_ENABLE, size); in cl_stream_prepare() 71 hda_dsp_stream_put(sdev, direction, hstream->stream_tag); in cl_stream_prepare() [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.h | 421 struct snd_sof_dev *sdev; member 440 int hda_dsp_probe(struct snd_sof_dev *sdev); 441 int hda_dsp_remove(struct snd_sof_dev *sdev); 442 int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev, 444 int hda_dsp_core_reset_leave(struct snd_sof_dev *sdev, 446 int hda_dsp_core_stall_reset(struct snd_sof_dev *sdev, unsigned int core_mask); 447 int hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask); 448 int hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask); 449 int hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask); 450 int hda_dsp_core_power_down(struct snd_sof_dev *sdev, unsigned int core_mask); [all …]
|
| D | hda-ctrl.c | 27 int hda_dsp_ctrl_link_reset(struct snd_sof_dev *sdev, bool reset) in hda_dsp_ctrl_link_reset() argument 37 snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, SOF_HDA_GCTL, in hda_dsp_ctrl_link_reset() 43 gctl = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, SOF_HDA_GCTL); in hda_dsp_ctrl_link_reset() 50 dev_err(sdev->dev, "error: failed to %s HDA controller gctl 0x%x\n", in hda_dsp_ctrl_link_reset() 55 int hda_dsp_ctrl_get_caps(struct snd_sof_dev *sdev) in hda_dsp_ctrl_get_caps() argument 57 struct hdac_bus *bus = sof_to_bus(sdev); in hda_dsp_ctrl_get_caps() 61 offset = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, SOF_HDA_LLCH); in hda_dsp_ctrl_get_caps() 64 cap = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, offset); in hda_dsp_ctrl_get_caps() 66 dev_dbg(sdev->dev, "checking for capabilities at offset 0x%x\n", in hda_dsp_ctrl_get_caps() 73 dev_dbg(sdev->dev, "found DSP capability at 0x%x\n", in hda_dsp_ctrl_get_caps() [all …]
|
| /Linux-v5.4/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.4/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() 218 struct scsi_device *sdev; in scsi_alloc_sdev() local 222 sdev = kzalloc(sizeof(*sdev) + shost->transportt->device_size, in scsi_alloc_sdev() 224 if (!sdev) in scsi_alloc_sdev() 227 sdev->vendor = scsi_null_device_strs; in scsi_alloc_sdev() 228 sdev->model = scsi_null_device_strs; in scsi_alloc_sdev() 229 sdev->rev = scsi_null_device_strs; in scsi_alloc_sdev() 230 sdev->host = shost; in scsi_alloc_sdev() [all …]
|
| D | scsi.c | 183 struct scsi_device *sdev = cmd->device; in scsi_finish_command() local 184 struct scsi_target *starget = scsi_target(sdev); in scsi_finish_command() 185 struct Scsi_Host *shost = sdev->host; in scsi_finish_command() 189 scsi_device_unbusy(sdev); in scsi_finish_command() 199 if (atomic_read(&sdev->device_blocked)) in scsi_finish_command() 200 atomic_set(&sdev->device_blocked, 0); in scsi_finish_command() 209 SCSI_LOG_MLCOMPLETE(4, sdev_printk(KERN_INFO, sdev, in scsi_finish_command() 238 int scsi_change_queue_depth(struct scsi_device *sdev, int depth) in scsi_change_queue_depth() argument 241 sdev->queue_depth = depth; in scsi_change_queue_depth() 245 if (sdev->request_queue) in scsi_change_queue_depth() [all …]
|
| D | scsi_dh.c | 70 scsi_dh_find_driver(struct scsi_device *sdev) in scsi_dh_find_driver() argument 74 if (scsi_device_tpgs(sdev)) in scsi_dh_find_driver() 78 if (!strncmp(sdev->vendor, b->vendor, strlen(b->vendor)) && in scsi_dh_find_driver() 79 !strncmp(sdev->model, b->model, strlen(b->model))) { in scsi_dh_find_driver() 123 static int scsi_dh_handler_attach(struct scsi_device *sdev, in scsi_dh_handler_attach() argument 131 error = scsi_dh->attach(sdev); in scsi_dh_handler_attach() 149 sdev_printk(KERN_ERR, sdev, "%s: Attach failed (%d)\n", in scsi_dh_handler_attach() 153 sdev->handler = scsi_dh; in scsi_dh_handler_attach() 162 static void scsi_dh_handler_detach(struct scsi_device *sdev) in scsi_dh_handler_detach() argument 164 sdev->handler->detach(sdev); in scsi_dh_handler_detach() [all …]
|
| D | scsi_ioctl.c | 89 static int ioctl_internal_command(struct scsi_device *sdev, char *cmd, in ioctl_internal_command() argument 95 SCSI_LOG_IOCTL(1, sdev_printk(KERN_INFO, sdev, in ioctl_internal_command() 98 result = scsi_execute_req(sdev, cmd, DMA_NONE, NULL, 0, in ioctl_internal_command() 101 SCSI_LOG_IOCTL(2, sdev_printk(KERN_INFO, sdev, in ioctl_internal_command() 109 sdev->lockable = 0; in ioctl_internal_command() 111 sdev_printk(KERN_INFO, sdev, in ioctl_internal_command() 118 if (sdev->removable) in ioctl_internal_command() 122 if (sdev->removable) { in ioctl_internal_command() 123 sdev->changed = 1; in ioctl_internal_command() 129 sdev_printk(KERN_INFO, sdev, in ioctl_internal_command() [all …]
|
| D | scsi_sysfs.c | 428 struct scsi_device *sdev; in scsi_device_cls_release() local 430 sdev = class_to_sdev(class_dev); in scsi_device_cls_release() 431 put_device(&sdev->sdev_gendev); in scsi_device_cls_release() 436 struct scsi_device *sdev; in scsi_device_dev_release_usercontext() local 442 sdev = container_of(work, struct scsi_device, ew.work); in scsi_device_dev_release_usercontext() 444 scsi_dh_release_device(sdev); in scsi_device_dev_release_usercontext() 446 parent = sdev->sdev_gendev.parent; in scsi_device_dev_release_usercontext() 448 spin_lock_irqsave(sdev->host->host_lock, flags); in scsi_device_dev_release_usercontext() 449 list_del(&sdev->siblings); in scsi_device_dev_release_usercontext() 450 list_del(&sdev->same_target_siblings); in scsi_device_dev_release_usercontext() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/alacritech/ |
| D | slicoss.c | 79 static unsigned int slic_next_compl_idx(struct slic_device *sdev) in slic_next_compl_idx() argument 81 struct slic_stat_queue *stq = &sdev->stq; in slic_next_compl_idx() 103 slic_write(sdev, SLIC_REG_RBAR, lower_32_bits(paddr) | in slic_next_compl_idx() 106 slic_flush_write(sdev); in slic_next_compl_idx() 140 static void slic_start_upr(struct slic_device *sdev, struct slic_upr *upr) in slic_start_upr() argument 146 slic_write(sdev, reg, lower_32_bits(upr->paddr)); in slic_start_upr() 147 slic_flush_write(sdev); in slic_start_upr() 150 static void slic_queue_upr(struct slic_device *sdev, struct slic_upr *upr) in slic_queue_upr() argument 152 struct slic_upr_list *upr_list = &sdev->upr_list; in slic_queue_upr() 163 slic_start_upr(sdev, upr); in slic_queue_upr() [all …]
|
| /Linux-v5.4/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.4/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 50 if (!sdev) { in usbip_sockfd_store() 64 spin_lock_irq(&sdev->ud.lock); in usbip_sockfd_store() 66 if (sdev->ud.status != SDEV_ST_AVAILABLE) { in usbip_sockfd_store() 75 sdev->ud.tcp_socket = socket; in usbip_sockfd_store() [all …]
|
| /Linux-v5.4/include/scsi/ |
| D | scsi_device.h | 240 #define sdev_dbg(sdev, fmt, a...) \ argument 241 dev_dbg(&(sdev)->sdev_gendev, fmt, ##a) 251 #define sdev_printk(l, sdev, fmt, a...) \ argument 252 sdev_prefix_printk(l, sdev, NULL, fmt, ##a) 319 static inline struct scsi_target *scsi_target(struct scsi_device *sdev) in scsi_target() argument 321 return to_scsi_target(sdev->sdev_gendev.parent); in scsi_target() 336 void scsi_attach_vpd(struct scsi_device *sdev); 368 #define shost_for_each_device(sdev, shost) \ argument 369 for ((sdev) = __scsi_iterate_devices((shost), NULL); \ 370 (sdev); \ [all …]
|