/openbmc/linux/drivers/scsi/ |
H A D | scsi_transport_spi.c | 217 bflags = scsi_get_device_flags_keyed(sdev, &sdev->inquiry[8], in spi_device_configure() 218 &sdev->inquiry[16], in spi_device_configure() 952 spi_dv_retrain(sdev, buffer, buffer + sdev->inquiry_len, in spi_dv_device_internal() 1056 scsi_device_put(sdev); in spi_dv_device() 1067 struct scsi_device *sdev; member 1075 struct scsi_device *sdev = wqw->sdev; in spi_dv_device_work_wrapper() local 1078 spi_dv_device(sdev); in spi_dv_device_work_wrapper() 1080 scsi_device_put(sdev); in spi_dv_device_work_wrapper() 1115 wqw->sdev = sdev; in spi_schedule_dv_device() 1379 struct scsi_device *sdev; in spi_device_match() local [all …]
|
H A D | scsi_proc.c | 275 struct scsi_device *sdev; in proc_print_scsidevice() local 282 sdev = to_scsi_device(dev); in proc_print_scsidevice() 285 sdev->host->host_no, sdev->channel, sdev->id, sdev->lun); in proc_print_scsidevice() 295 if (sdev->model[i] >= 0x20) in proc_print_scsidevice() 303 if (sdev->rev[i] >= 0x20) in proc_print_scsidevice() 313 sdev->scsi_level - (sdev->scsi_level > 1)); in proc_print_scsidevice() 314 if (sdev->scsi_level == 2) in proc_print_scsidevice() 368 struct scsi_device *sdev; in scsi_remove_single_device() local 376 if (sdev) { in scsi_remove_single_device() 377 scsi_remove_device(sdev); in scsi_remove_single_device() [all …]
|
H A D | myrs.c | 855 if (sdev && sdev->hostdata && in myrs_log_event() 941 if (!sdev->hostdata) in raid_state_show() 1001 status = myrs_translate_pdev(cs, sdev->channel, sdev->id, in raid_state_store() 1060 if (!sdev->hostdata) in raid_level_show() 1784 ldev_num = sdev->id + chan_offset * sdev->host->max_id; in myrs_translate_ldev() 1794 if (sdev->channel > sdev->host->max_channel) in myrs_slave_alloc() 1801 if (sdev->lun > 0) in myrs_slave_alloc() 1873 sdev->id, sdev->lun, in myrs_slave_alloc() 1890 if (sdev->channel > sdev->host->max_channel) in myrs_slave_configure() 1900 if (sdev->lun != 0) in myrs_slave_configure() [all …]
|
H A D | scsi_priv.h | 71 extern blist_flags_t scsi_get_device_flags(struct scsi_device *sdev, 74 extern blist_flags_t scsi_get_device_flags_keyed(struct scsi_device *sdev, 106 extern void scsi_device_unbusy(struct scsi_device *sdev, struct scsi_cmnd *cmd); 111 extern void scsi_start_queue(struct scsi_device *sdev); 189 void scsi_dh_add_device(struct scsi_device *sdev); 190 void scsi_dh_release_device(struct scsi_device *sdev); 192 static inline void scsi_dh_add_device(struct scsi_device *sdev) { } in scsi_dh_add_device() argument 193 static inline void scsi_dh_release_device(struct scsi_device *sdev) { } in scsi_dh_release_device() argument 196 struct bsg_device *scsi_bsg_register_queue(struct scsi_device *sdev); 198 extern int scsi_device_max_queue_depth(struct scsi_device *sdev);
|
/openbmc/u-boot/drivers/serial/ |
H A D | serial-uclass.c | 344 _serial_putc(sdev->priv, ch); in serial_stub_putc() 350 _serial_puts(sdev->priv, str); in serial_stub_puts() 431 struct stdio_dev sdev; in serial_post_probe() local 467 memset(&sdev, '\0', sizeof(sdev)); in serial_post_probe() 469 strncpy(sdev.name, dev->name, sizeof(sdev.name)); in serial_post_probe() 471 sdev.priv = dev; in serial_post_probe() 472 sdev.putc = serial_stub_putc; in serial_post_probe() 473 sdev.puts = serial_stub_puts; in serial_post_probe() 474 sdev.getc = serial_stub_getc; in serial_post_probe() 475 sdev.tstc = serial_stub_tstc; in serial_post_probe() [all …]
|
H A D | serial.c | 184 static int serial_stub_start(struct stdio_dev *sdev) in serial_stub_start() argument 186 struct serial_device *dev = sdev->priv; in serial_stub_start() 191 static int serial_stub_stop(struct stdio_dev *sdev) in serial_stub_stop() argument 193 struct serial_device *dev = sdev->priv; in serial_stub_stop() 198 static void serial_stub_putc(struct stdio_dev *sdev, const char ch) in serial_stub_putc() argument 200 struct serial_device *dev = sdev->priv; in serial_stub_putc() 207 struct serial_device *dev = sdev->priv; in serial_stub_puts() 212 static int serial_stub_getc(struct stdio_dev *sdev) in serial_stub_getc() argument 214 struct serial_device *dev = sdev->priv; in serial_stub_getc() 219 static int serial_stub_tstc(struct stdio_dev *sdev) in serial_stub_tstc() argument [all …]
|
/openbmc/linux/drivers/regulator/ |
H A D | scmi-regulator.c | 40 struct scmi_device *sdev; member 77 dev_err(&sreg->sdev->dev, in scmi_reg_is_enabled() 155 dev_err(&sreg->sdev->dev, in scmi_config_linear_regulator_mappings() 204 struct device *dev = &sreg->sdev->dev; in scmi_regulator_common_init() 270 dev_err(&sdev->dev, in process_scmi_regulator_of_node() 276 rinfo->sregv[dom] = devm_kzalloc(&sdev->dev, in process_scmi_regulator_of_node() 283 rinfo->sregv[dom]->sdev = sdev; in process_scmi_regulator_of_node() 290 dev_dbg(&sdev->dev, in process_scmi_regulator_of_node() 377 dev_info(&sdev->dev, in scmi_regulator_probe() 382 dev_set_drvdata(&sdev->dev, rinfo); in scmi_regulator_probe() [all …]
|
/openbmc/linux/sound/soc/sof/ |
H A D | ipc4-topology.c | 578 list_for_each_entry(w, &sdev->widget_list, list) { in sof_ipc4_widget_setup_comp_dai() 1336 struct sof_ipc4_fw_data *ipc4_data = sdev->private; in snd_sof_get_nhlt_endpoint_data() 1370 dev_err(sdev->dev, in snd_sof_get_nhlt_endpoint_data() 2219 struct sof_ipc4_fw_data *ipc4_data = sdev->private; in sof_ipc4_widget_setup() 2377 struct sof_ipc4_fw_data *ipc4_data = sdev->private; in sof_ipc4_widget_free() 2512 const struct sof_ipc_ops *iops = sdev->ipc->ops; in sof_ipc4_set_copier_sink_format() 2574 dev_err(sdev->dev, in sof_ipc4_route_setup() 2583 dev_err(sdev->dev, in sof_ipc4_route_setup() 2621 dev_dbg(sdev->dev, "bind %s:%d -> %s:%d\n", in sof_ipc4_route_setup() 2770 struct sof_ipc4_fw_data *ipc4_data = sdev->private; in sof_ipc4_parse_manifest() [all …]
|
H A D | ipc4-control.c | 21 const struct sof_ipc_ops *iops = sdev->ipc->ops; in sof_ipc4_set_get_kcontrol_data() 28 list_for_each_entry(swidget, &sdev->widget_list, list) { in sof_ipc4_set_get_kcontrol_data() 56 ret = iops->set_get_data(sdev, msg, msg->data_size, set); in sof_ipc4_set_get_kcontrol_data() 73 ret = iops->set_get_data(sdev, msg, msg->data_size, set); in sof_ipc4_set_get_kcontrol_data() 170 list_for_each_entry(swidget, &sdev->widget_list, list) { in sof_ipc4_volume_put() 214 if (set && !pm_runtime_active(sdev->dev)) in sof_ipc4_set_get_bytes_data() 224 dev_err(sdev->dev, "Failed to %s for %s\n", in sof_ipc4_set_get_bytes_data() 263 sof_ipc4_set_get_bytes_data(sdev, scontrol, true, true); in sof_ipc4_bytes_put() 453 ret = sof_ipc4_set_volume_data(sdev, swidget, in sof_ipc4_widget_kcontrol_setup() 457 ret = sof_ipc4_set_get_bytes_data(sdev, scontrol, in sof_ipc4_widget_kcontrol_setup() [all …]
|
H A D | ipc4-priv.h | 85 int (*load_library)(struct snd_sof_dev *sdev, 110 int sof_ipc4_set_pipeline_state(struct snd_sof_dev *sdev, u32 id, u32 state); 111 int sof_ipc4_mtrace_update_pos(struct snd_sof_dev *sdev, int core); 113 int sof_ipc4_query_fw_configuration(struct snd_sof_dev *sdev); 114 int sof_ipc4_reload_fw_libraries(struct snd_sof_dev *sdev); 115 struct sof_ipc4_fw_module *sof_ipc4_find_module_by_uuid(struct snd_sof_dev *sdev, 119 void sof_ipc4_update_cpc_from_manifest(struct snd_sof_dev *sdev,
|
H A D | topology.c | 841 scontrol->comp_id = sdev->next_comp_id; in sof_control_load_volume() 881 sdev->led_present = true; in sof_control_load_volume() 909 scontrol->comp_id = sdev->next_comp_id; in sof_control_load_enum() 930 scontrol->comp_id = sdev->next_comp_id; in sof_control_load_bytes() 1155 if (sdev->dspless_mode_selected) in spcm_bind() 1488 list_add(&dai->list, &sdev->dai_list); in sof_widget_ready() 1835 ipc_pcm_ops->pcm_free(sdev, spcm); in sof_dai_unload() 2143 dev_err(sdev->dev, in sof_set_widget_pipeline() 2208 dev_err(sdev->dev, in sof_complete() 2445 if (sdev->dspless_mode_selected) in snd_sof_load_topology() [all …]
|
/openbmc/linux/drivers/infiniband/sw/siw/ |
H A D | siw_verbs.c | 91 ctx->sdev = sdev; in siw_alloc_ucontext() 109 atomic_dec(&sdev->num_ctx); in siw_alloc_ucontext() 149 attr->max_res_rd_atom = sdev->attrs.max_qp * sdev->attrs.max_ird; in siw_query_device() 160 sdev->raw_gid); in siw_query_device() 182 attr->state = sdev->state; in siw_query_port() 231 atomic_dec(&sdev->num_pd); in siw_alloc_pd() 244 atomic_dec(&sdev->num_pd); in siw_dealloc_pd() 359 rv = siw_qp_add(sdev, qp); in siw_create_qp() 497 atomic_dec(&sdev->num_qp); in siw_create_qp() 510 struct siw_device *sdev; in siw_query_qp() local [all …]
|
/openbmc/linux/sound/soc/sof/intel/ |
H A D | skl.c | 41 static int skl_dsp_ipc_get_window_offset(struct snd_sof_dev *sdev, u32 id) in skl_dsp_ipc_get_window_offset() argument 46 static int skl_dsp_ipc_get_mailbox_offset(struct snd_sof_dev *sdev) in skl_dsp_ipc_get_mailbox_offset() argument 55 int sof_skl_ops_init(struct snd_sof_dev *sdev) in sof_skl_ops_init() argument 65 sdev->private = devm_kzalloc(sdev->dev, sizeof(*ipc4_data), GFP_KERNEL); in sof_skl_ops_init() 66 if (!sdev->private) in sof_skl_ops_init() 69 ipc4_data = sdev->private; in sof_skl_ops_init() 84 hda_set_dai_drv_ops(sdev, &sof_skl_ops); in sof_skl_ops_init()
|
H A D | apl.c | 34 int sof_apl_ops_init(struct snd_sof_dev *sdev) in sof_apl_ops_init() argument 42 if (sdev->pdata->ipc_type == SOF_IPC) { in sof_apl_ops_init() 55 if (sdev->pdata->ipc_type == SOF_INTEL_IPC4) { in sof_apl_ops_init() 58 sdev->private = devm_kzalloc(sdev->dev, sizeof(*ipc4_data), GFP_KERNEL); in sof_apl_ops_init() 59 if (!sdev->private) in sof_apl_ops_init() 62 ipc4_data = sdev->private; in sof_apl_ops_init() 83 hda_set_dai_drv_ops(sdev, &sof_apl_ops); in sof_apl_ops_init()
|
/openbmc/qemu/hw/virtio/ |
H A D | virtio-iommu.c | 109 assert(sdev); in virtio_iommu_switch_address_space() 393 sdev->resv_regions = resv_region_list_insert(sdev->resv_regions, reg); in add_prop_resv_regions() 403 IOMMUDevice *sdev; in virtio_iommu_find_add_as() local 413 if (!sdev) { in virtio_iommu_find_add_as() 419 sdev->viommu = s; in virtio_iommu_find_add_as() 420 sdev->bus = bus; in virtio_iommu_find_add_as() 426 address_space_init(&sdev->as, &sdev->root, TYPE_VIRTIO_IOMMU); in virtio_iommu_find_add_as() 442 memory_region_init_iommu(&sdev->iommu_mr, sizeof(sdev->iommu_mr), in virtio_iommu_find_add_as() 461 return &sdev->as; in virtio_iommu_find_add_as() 476 IOMMUDevice *sdev; in virtio_iommu_attach() local [all …]
|
/openbmc/linux/drivers/base/regmap/ |
H A D | regmap-spmi.c | 85 struct regmap *__regmap_init_spmi_base(struct spmi_device *sdev, in __regmap_init_spmi_base() argument 90 return __regmap_init(&sdev->dev, ®map_spmi_base, sdev, config, in __regmap_init_spmi_base() 95 struct regmap *__devm_regmap_init_spmi_base(struct spmi_device *sdev, in __devm_regmap_init_spmi_base() argument 100 return __devm_regmap_init(&sdev->dev, ®map_spmi_base, sdev, config, in __devm_regmap_init_spmi_base() 205 struct regmap *__regmap_init_spmi_ext(struct spmi_device *sdev, in __regmap_init_spmi_ext() argument 210 return __regmap_init(&sdev->dev, ®map_spmi_ext, sdev, config, in __regmap_init_spmi_ext() 215 struct regmap *__devm_regmap_init_spmi_ext(struct spmi_device *sdev, in __devm_regmap_init_spmi_ext() argument 220 return __devm_regmap_init(&sdev->dev, ®map_spmi_ext, sdev, config, in __devm_regmap_init_spmi_ext()
|
/openbmc/linux/drivers/net/ethernet/broadcom/ |
H A D | b44.c | 1257 struct ssb_device *sdev = bp->sdev; in b44_chip_reset() local 1263 ssb_pcicore_dev_irqvecs_enable(&sdev->bus->pcicore, sdev); in b44_chip_reset() 2139 struct ssb_device *sdev = bp->sdev; in b44_get_invariants() local 2234 struct ssb_device *sdev = bp->sdev; in b44_register_phy_one() local 2266 dev_info(sdev->dev, in b44_register_phy_one() 2343 bp->sdev = sdev; in b44_init_one() 2360 dev->irq = sdev->irq; in b44_init_one() 2365 dev_err(sdev->dev, in b44_init_one() 2372 dev_err(sdev->dev, in b44_init_one() 2379 dev_err(sdev->dev, in b44_init_one() [all …]
|
/openbmc/linux/drivers/scsi/cxlflash/ |
H A D | superpipe.h | 64 struct scsi_device *sdev; member 70 struct scsi_device *sdev; member 117 int cxlflash_vlun_resize(struct scsi_device *sdev, 119 int _cxlflash_vlun_resize(struct scsi_device *sdev, struct ctx_info *ctxi, 122 int cxlflash_disk_release(struct scsi_device *sdev, 124 int _cxlflash_disk_release(struct scsi_device *sdev, struct ctx_info *ctxi, 127 int cxlflash_disk_clone(struct scsi_device *sdev, 130 int cxlflash_disk_virtual_open(struct scsi_device *sdev, void *arg); 148 int cxlflash_manage_lun(struct scsi_device *sdev,
|
/openbmc/linux/drivers/ssb/ |
H A D | driver_gige.c | 179 dev->dev = sdev; in ssb_gige_probe() 194 if (!ssb_device_is_enabled(sdev)) in ssb_gige_probe() 195 ssb_device_enable(sdev, 0); in ssb_gige_probe() 222 tmslow = ssb_read32(sdev, SSB_TMSLOW); in ssb_gige_probe() 223 tmshigh = ssb_read32(sdev, SSB_TMSHIGH); in ssb_gige_probe() 234 ssb_write32(sdev, SSB_TMSLOW, tmslow); in ssb_gige_probe() 236 ssb_set_drvdata(sdev, dev); in ssb_gige_probe() 253 struct ssb_gige *dev = ssb_get_drvdata(sdev); in ssb_gige_pcibios_plat_dev_init() 269 pdev->irq = ssb_mips_irq(sdev) + 2; in ssb_gige_pcibios_plat_dev_init() 275 int ssb_gige_map_irq(struct ssb_device *sdev, in ssb_gige_map_irq() argument [all …]
|
/openbmc/linux/drivers/hwmon/ |
H A D | drivetemp.c | 114 struct scsi_device *sdev; /* SCSI device */ member 225 dev_dbg(&st->sdev->sdev_gendev, in drivetemp_get_smarttemp() 304 struct scsi_device *sdev = st->sdev; in drivetemp_sct_avoid() local 307 if (!sdev->model) in drivetemp_sct_avoid() 325 struct scsi_device *sdev = st->sdev; in drivetemp_identify_sata() local 340 vpd = rcu_dereference(sdev->vpd_pg89); in drivetemp_identify_sata() 366 dev_notice(&sdev->sdev_gendev, in drivetemp_identify_sata() 435 struct scsi_device *sdev = st->sdev; in drivetemp_identify() local 438 if (!sdev->inquiry || sdev->inquiry_len < 16) in drivetemp_identify() 442 if (sdev->type != TYPE_DISK && sdev->type != TYPE_ZBC) in drivetemp_identify() [all …]
|
/openbmc/linux/tools/usb/usbip/libsrc/ |
H A D | usbip_common.c | 211 READ_ATTR(udev, uint8_t, sdev, bDeviceClass, "%02x\n"); in read_usb_device() 212 READ_ATTR(udev, uint8_t, sdev, bDeviceSubClass, "%02x\n"); in read_usb_device() 213 READ_ATTR(udev, uint8_t, sdev, bDeviceProtocol, "%02x\n"); in read_usb_device() 215 READ_ATTR(udev, uint16_t, sdev, idVendor, "%04x\n"); in read_usb_device() 216 READ_ATTR(udev, uint16_t, sdev, idProduct, "%04x\n"); in read_usb_device() 217 READ_ATTR(udev, uint16_t, sdev, bcdDevice, "%04x\n"); in read_usb_device() 221 READ_ATTR(udev, uint8_t, sdev, bNumInterfaces, "%02x\n"); in read_usb_device() 223 READ_ATTR(udev, uint8_t, sdev, devnum, "%d\n"); in read_usb_device() 224 udev->speed = read_attr_speed(sdev); in read_usb_device() 226 path = udev_device_get_syspath(sdev); in read_usb_device() [all …]
|
/openbmc/linux/sound/soc/sof/imx/ |
H A D | imx-common.h | 11 void imx8_get_registers(struct snd_sof_dev *sdev, 16 void imx8_dump(struct snd_sof_dev *sdev, u32 flags); 23 int imx8_parse_clocks(struct snd_sof_dev *sdev, struct imx_clocks *clks); 24 int imx8_enable_clocks(struct snd_sof_dev *sdev, struct imx_clocks *clks); 25 void imx8_disable_clocks(struct snd_sof_dev *sdev, struct imx_clocks *clks);
|
/openbmc/linux/drivers/s390/scsi/ |
H A D | zfcp_unit.c | 217 struct scsi_device *sdev; in zfcp_unit_sdev_status() local 220 sdev = zfcp_unit_sdev(unit); in zfcp_unit_sdev_status() 221 if (sdev) { in zfcp_unit_sdev_status() 222 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_unit_sdev_status() 224 scsi_device_put(sdev); in zfcp_unit_sdev_status() 241 struct scsi_device *sdev; in zfcp_unit_remove() local 252 sdev = zfcp_unit_sdev(unit); in zfcp_unit_remove() 253 if (sdev) { in zfcp_unit_remove() 254 scsi_remove_device(sdev); in zfcp_unit_remove() 255 scsi_device_put(sdev); in zfcp_unit_remove()
|
/openbmc/qemu/pc-bios/s390-ccw/ |
H A D | virtio-scsi.c | 65 const ScsiDevice *sdev = vdev->scsi_device; in prepare_request() local 68 req.lun = make_lun(sdev->channel, sdev->target, sdev->lun); in prepare_request() 208 ScsiDevice *sdev = vdev->scsi_device; in virtio_scsi_locate_device() local 221 sdev->channel = vdev->selected_scsi_device.channel; in virtio_scsi_locate_device() 222 sdev->target = vdev->selected_scsi_device.target; in virtio_scsi_locate_device() 223 sdev->lun = vdev->selected_scsi_device.lun; in virtio_scsi_locate_device() 232 sdev->channel = channel; in virtio_scsi_locate_device() 233 sdev->target = target; in virtio_scsi_locate_device() 254 debug_print_int("Have to use LUN", sdev->lun); in virtio_scsi_locate_device() 260 sdev->lun = r->lun[i].v16[0]; in virtio_scsi_locate_device() [all …]
|
/openbmc/linux/drivers/mfd/ |
H A D | hi6421-spmi-pmic.c | 29 static int hi6421_spmi_pmic_probe(struct spmi_device *sdev) in hi6421_spmi_pmic_probe() argument 31 struct device *dev = &sdev->dev; in hi6421_spmi_pmic_probe() 35 regmap = devm_regmap_init_spmi_ext(sdev, ®map_config); in hi6421_spmi_pmic_probe() 39 dev_set_drvdata(&sdev->dev, regmap); in hi6421_spmi_pmic_probe() 41 ret = devm_mfd_add_devices(&sdev->dev, PLATFORM_DEVID_NONE, in hi6421_spmi_pmic_probe()
|