| /drivers/scsi/ |
| A D | scsi.c | 229 sbitmap_resize(&sdev->budget_map, sdev->queue_depth); in scsi_change_queue_depth() 517 scsi_update_vpd_page(sdev, 0x0, &sdev->vpd_pg0); in scsi_attach_vpd() 520 scsi_update_vpd_page(sdev, 0x80, &sdev->vpd_pg80); in scsi_attach_vpd() 523 scsi_update_vpd_page(sdev, 0x83, &sdev->vpd_pg83); in scsi_attach_vpd() 526 scsi_update_vpd_page(sdev, 0x89, &sdev->vpd_pg89); in scsi_attach_vpd() 529 scsi_update_vpd_page(sdev, 0xb0, &sdev->vpd_pgb0); in scsi_attach_vpd() 532 scsi_update_vpd_page(sdev, 0xb1, &sdev->vpd_pgb1); in scsi_attach_vpd() 696 scsi_cdl_enable(sdev, sdev->cdl_enable); in scsi_cdl_check() 944 if (sdev && scsi_device_get(sdev)) in scsi_device_lookup_by_target() 976 if (sdev->channel == channel && sdev->id == id && in __scsi_device_lookup() [all …]
|
| A D | scsi_scan.c | 292 if (!sdev) in scsi_alloc_sdev() 845 sdev->sdev_target->scsi_level = sdev->scsi_level; in scsi_probe_lun() 908 sdev->vendor = (char *) (sdev->inquiry + 8); in scsi_add_lun() 909 sdev->model = (char *) (sdev->inquiry + 16); in scsi_add_lun() 910 sdev->rev = (char *) (sdev->inquiry + 32); in scsi_add_lun() 938 __func__, sdev->type, (unsigned int)sdev->lun); in scsi_add_lun() 970 sdev->lockable = sdev->removable; in scsi_add_lun() 983 sdev->vendor, sdev->model, sdev->rev, in scsi_add_lun() 1114 sdev->max_queue_depth = sdev->queue_depth; in scsi_add_lun() 1727 if (sdev->handler && sdev->handler->rescan) in scsi_rescan_device() [all …]
|
| A D | scsi_sysfs.c | 519 kfree(sdev); in scsi_device_dev_release() 939 if (!sdev->inquiry) in show_inquiry() 1049 sdev->max_queue_depth = sdev->queue_depth; in DECLARE_EVT() 1117 if (!sdev->handler) in sdev_show_dh_state() 1144 err = sdev->handler->activate(sdev, NULL, NULL); in sdev_store_dh_state() 1172 if (!sdev->handler) in sdev_show_access_state() 1446 sdev->bsg_dev = scsi_bsg_register_queue(sdev); in scsi_sysfs_add_sdev() 1517 sdev->host->hostt->sdev_destroy(sdev); in __scsi_remove_device() 1658 sdev->host->host_no, sdev->channel, sdev->id, sdev->lun); in scsi_sysfs_device_initialize() 1662 sdev->sdev_dev.parent = get_device(&sdev->sdev_gendev); in scsi_sysfs_device_initialize() [all …]
|
| A D | scsi_dh.c | 165 sdev->handler->detach(sdev); in scsi_dh_handler_detach() 166 sdev_printk(KERN_NOTICE, sdev, "%s: Detached\n", sdev->handler->name); in scsi_dh_handler_detach() 188 if (sdev->handler) in scsi_dh_release_device() 257 if (!sdev) { in scsi_dh_activate() 275 err = sdev->handler->activate(sdev, fn, data); in scsi_dh_activate() 304 if (!sdev) in scsi_dh_set_params() 307 if (sdev->handler && sdev->handler->set_params) in scsi_dh_set_params() 308 err = sdev->handler->set_params(sdev, params); in scsi_dh_set_params() 327 if (!sdev) in scsi_dh_attach() 365 if (!sdev) in scsi_dh_attached_handler_name() [all …]
|
| A D | scsi_lib.c | 450 if (scsi_device_busy(sdev) >= sdev->queue_depth) in scsi_device_is_busy() 1164 sg_set_buf(last_sg, sdev->dma_drain_buf, sdev->dma_drain_len); in scsi_alloc_sgtables() 1510 shost = sdev->host; in scsi_mq_lld_busy() 1698 if (sdev->handler && sdev->handler->prep_fn) { in scsi_prepare_cmd() 1699 blk_status_t ret = sdev->handler->prep_fn(sdev, req); in scsi_prepare_cmd() 2122 sdev = q->queuedata; in scsi_device_from_queue() 2123 if (!sdev || !get_device(&sdev->sdev_gendev)) in scsi_device_from_queue() 2124 sdev = NULL; in scsi_device_from_queue() 2126 return sdev; in scsi_device_from_queue() 2417 sdev->changed = 1; in scsi_test_unit_ready() [all …]
|
| A D | scsi_ioctl.c | 93 sdev->lockable = 0; in ioctl_internal_command() 95 sdev_printk(KERN_INFO, sdev, in ioctl_internal_command() 102 if (sdev->removable) in ioctl_internal_command() 106 if (sdev->removable) { in ioctl_internal_command() 107 sdev->changed = 1; in ioctl_internal_command() 113 sdev_printk(KERN_INFO, sdev, in ioctl_internal_command() 141 if (!sdev->removable || !sdev->lockable) in scsi_set_medium_removal() 236 .dev_id = (sdev->id & 0xff) + in scsi_get_idlun() 237 ((sdev->lun & 0xff) << 8) + in scsi_get_idlun() 953 return sdev->host->hostt->compat_ioctl(sdev, cmd, arg); in scsi_ioctl() [all …]
|
| /drivers/media/radio/si4713/ |
| A D | si4713.c | 357 if (sdev->vdd) { in si4713_powerup() 365 if (sdev->vio) { in si4713_powerup() 400 if (sdev->vdd) { in si4713_powerup() 406 if (sdev->vio) { in si4713_powerup() 439 if (sdev->vdd) { in si4713_powerdown() 447 if (sdev->vio) { in si4713_powerdown() 1163 sdev->tune_pwr_level->val, sdev->tune_ant_cap->val); in si4713_s_ctrl() 1260 if (!sdev) in si4713_g_modulator() 1308 if (!sdev) in si4713_s_modulator() 1440 sdev = devm_kzalloc(&client->dev, sizeof(*sdev), GFP_KERNEL); in si4713_probe() [all …]
|
| /drivers/net/ethernet/alacritech/ |
| A D | slicoss.c | 146 slic_flush_write(sdev); in slic_start_upr() 232 if (sdev->promisc) in slic_configure_rcv() 278 if (sdev->speed == speed && sdev->duplex == duplex) in slic_configure_link_locked() 281 sdev->speed = speed; in slic_configure_link_locked() 282 sdev->duplex = duplex; in slic_configure_link_locked() 676 return slic_new_upr(sdev, SLIC_UPR_LSTAT, sdev->shmem.link_paddr); in slic_handle_link_change() 1320 sdev); in slic_init_iface() 1380 free_irq(sdev->pdev->irq, sdev); in slic_close() 1785 sdev->pdev = pdev; in slic_probe() 1786 sdev->netdev = dev; in slic_probe() [all …]
|
| /drivers/usb/usbip/ |
| A D | stub_dev.c | 24 if (!sdev) { in usbip_status_show() 30 status = sdev->ud.status; in usbip_status_show() 52 if (!sdev) { in usbip_sockfd_store() 267 if (!sdev) in stub_device_alloc() 283 sdev->ud.sockfd = -1; in stub_device_alloc() 302 return sdev; in stub_device_alloc() 307 kfree(sdev); in stub_device_free() 324 if (!sdev) in stub_probe() 373 busid_priv->sdev = sdev; in stub_probe() 413 stub_device_free(sdev); in stub_probe() [all …]
|
| A D | stub_tx.c | 43 struct stub_device *sdev = priv->sdev; in stub_complete() local 92 if (sdev->ud.tcp_socket == NULL) { in stub_complete() 104 wake_up(&sdev->tx_waitq); in stub_complete() 177 dev_err(&sdev->udev->dev, in stub_send_ret_submit() 287 dev_err(&sdev->udev->dev, in stub_send_ret_submit() 292 usbip_event_add(&sdev->ud, in stub_send_ret_submit() 304 usbip_event_add(&sdev->ud, in stub_send_ret_submit() 319 dev_err(&sdev->udev->dev, in stub_send_ret_submit() 394 dev_err(&sdev->udev->dev, in stub_send_ret_unlink() 440 if (stub_send_ret_submit(sdev) < 0) in stub_tx_loop() [all …]
|
| /drivers/iommu/ |
| A D | sprd-iommu.c | 157 struct sprd_iommu_device *sdev = dom->sdev; in sprd_iommu_first_vpn() local 172 struct sprd_iommu_device *sdev = dom->sdev; in sprd_iommu_vpn_range() local 189 struct sprd_iommu_device *sdev = dom->sdev; in sprd_iommu_first_ppn() local 232 if (!dom->sdev) in sprd_iommu_cleanup() 266 dom->sdev = sdev; in sprd_iommu_attach_device() 449 sdev->eb = eb; in sprd_iommu_clk_enable() 455 if (sdev->eb) in sprd_iommu_clk_disable() 466 sdev = devm_kzalloc(dev, sizeof(*sdev), GFP_KERNEL); in sprd_iommu_probe() 467 if (!sdev) in sprd_iommu_probe() 513 dma_free_coherent(sdev->dev, SPRD_IOMMU_PAGE_SIZE, sdev->prot_page_va, sdev->prot_page_pa); in sprd_iommu_probe() [all …]
|
| /drivers/gpu/drm/renesas/shmobile/ |
| A D | shmob_drm_drv.c | 69 sdev->clock = clk; in shmob_drm_setup_clocks() 136 if (sdev->clock) in shmob_drm_pm_runtime_suspend() 147 if (sdev->clock) { in shmob_drm_pm_runtime_resume() 203 if (IS_ERR(sdev)) in shmob_drm_probe() 204 return PTR_ERR(sdev); in shmob_drm_probe() 206 ddev = &sdev->ddev; in shmob_drm_probe() 207 sdev->dev = &pdev->dev; in shmob_drm_probe() 211 sdev->pdata = pdata; in shmob_drm_probe() 220 if (IS_ERR(sdev->mmio)) in shmob_drm_probe() 223 ret = shmob_drm_setup_clocks(sdev, sdev->config.clk_source); in shmob_drm_probe() [all …]
|
| A D | shmob_drm_crtc.c | 130 dev_warn(sdev->dev, in shmob_drm_crtc_setup_geometry() 215 lcdc_write(sdev, LDCNT2R, lcdc_read(sdev, LDCNT2R) | LDCNT2R_BR); in shmob_drm_crtc_atomic_enable() 221 lcdc_write(sdev, LDINTR, 0); in shmob_drm_crtc_atomic_enable() 224 lcdc_write(sdev, LDPMR, 0); in shmob_drm_crtc_atomic_enable() 226 value = sdev->lddckr; in shmob_drm_crtc_atomic_enable() 247 lcdc_write(sdev, LDSM1R, 0); in shmob_drm_crtc_atomic_enable() 276 lcdc_write(sdev, LDCNT1R, 0); in shmob_drm_crtc_atomic_disable() 278 pm_runtime_put(sdev->dev); in shmob_drm_crtc_atomic_disable() 456 if (sdev->pdata) { in shmob_drm_encoder_create() 462 bridge = devm_drm_of_get_bridge(sdev->dev, sdev->dev->of_node, 0, 0); in shmob_drm_encoder_create() [all …]
|
| A D | shmob_drm_plane.c | 85 lcdc_write(sdev, LDRCNTR, lcdc_read(sdev, LDRCNTR) ^ LDRCNTR_MRS); in shmob_drm_primary_plane_setup() 103 lcdc_read(sdev, reg(splane->index)), \ in shmob_drm_overlay_plane_setup() 106 plane_reg_dump(sdev, splane, LDBnBSIFR); in shmob_drm_overlay_plane_setup() 107 plane_reg_dump(sdev, splane, LDBnBSSZR); in shmob_drm_overlay_plane_setup() 108 plane_reg_dump(sdev, splane, LDBnBLOCR); in shmob_drm_overlay_plane_setup() 109 plane_reg_dump(sdev, splane, LDBnBSMWR); in shmob_drm_overlay_plane_setup() 110 plane_reg_dump(sdev, splane, LDBnBSAYR); in shmob_drm_overlay_plane_setup() 115 "LDBCR", lcdc_read(sdev, LDBCR)); in shmob_drm_overlay_plane_setup() 132 lcdc_write(sdev, LDBCR, in shmob_drm_overlay_plane_setup() 135 "LDBCR", lcdc_read(sdev, LDBCR)); in shmob_drm_overlay_plane_setup() [all …]
|
| /drivers/platform/surface/aggregator/ |
| A D | bus.c | 28 sdev->uid.domain, sdev->uid.category, sdev->uid.target, in modalias_show() 29 sdev->uid.instance, sdev->uid.function); in modalias_show() 46 sdev->uid.domain, sdev->uid.category, in ssam_device_uevent() 47 sdev->uid.target, sdev->uid.instance, in ssam_device_uevent() 57 kfree(sdev); in ssam_device_release() 86 sdev = kzalloc(sizeof(*sdev), GFP_KERNEL); in ssam_device_alloc() 87 if (!sdev) in ssam_device_alloc() 98 sdev->uid.domain, sdev->uid.category, sdev->uid.target, in ssam_device_alloc() 99 sdev->uid.instance, sdev->uid.function); in ssam_device_alloc() 101 return sdev; in ssam_device_alloc() [all …]
|
| /drivers/spmi/ |
| A D | spmi.c | 27 kfree(sdev); in spmi_dev_release() 67 dev_set_name(&sdev->dev, "%d-%02x", ctrl->nr, sdev->usid); in spmi_device_add() 148 return spmi_read_cmd(sdev->ctrl, SPMI_CMD_READ, sdev->usid, addr, in spmi_register_read() 284 return spmi_cmd(sdev->ctrl, SPMI_CMD_RESET, sdev->usid); in spmi_command_reset() 296 return spmi_cmd(sdev->ctrl, SPMI_CMD_SLEEP, sdev->usid); in spmi_command_sleep() 309 return spmi_cmd(sdev->ctrl, SPMI_CMD_WAKEUP, sdev->usid); in spmi_command_wakeup() 321 return spmi_cmd(sdev->ctrl, SPMI_CMD_SHUTDOWN, sdev->usid); in spmi_command_shutdown() 421 sdev = kzalloc(sizeof(*sdev), GFP_KERNEL); in spmi_device_alloc() 422 if (!sdev) in spmi_device_alloc() 430 return sdev; in spmi_device_alloc() [all …]
|
| /drivers/gpu/drm/sysfb/ |
| A D | simpledrm.c | 289 sdev->clks = drmm_kzalloc(dev, sdev->clk_count * sizeof(sdev->clks[0]), in simpledrm_device_init_clocks() 291 if (!sdev->clks) in simpledrm_device_init_clocks() 315 sdev); in simpledrm_device_init_clocks() 435 sdev); in simpledrm_device_init_regulators() 506 sdev->pwr_dom_devs = devm_kcalloc(dev, sdev->pwr_dom_count, in simpledrm_device_attach_genpd() 512 sdev->pwr_dom_links = devm_kcalloc(dev, sdev->pwr_dom_count, in simpledrm_device_attach_genpd() 618 if (IS_ERR(sdev)) in simpledrm_device_create() 768 sdev->formats, ARRAY_SIZE(sdev->formats)); in simpledrm_device_create() 782 crtc = &sdev->crtc; in simpledrm_device_create() 816 return sdev; in simpledrm_device_create() [all …]
|
| /drivers/infiniband/sw/siw/ |
| A D | siw_main.c | 69 sdev->vendor_part_id = dev_id++; in siw_device_register() 85 xa_destroy(&sdev->qp_xa); in siw_device_cleanup() 86 xa_destroy(&sdev->mem_xa); in siw_device_cleanup() 195 siw_dbg(&sdev->base_dev, in siw_get_tx_cpu() 285 if (!sdev) in siw_device_create() 288 base_dev = &sdev->base_dev; in siw_device_create() 356 spin_lock_init(&sdev->lock); in siw_device_create() 358 return sdev; in siw_device_create() 370 struct siw_device *sdev; in siw_netdev_event() local 378 sdev = to_siw_dev(base_dev); in siw_netdev_event() [all …]
|
| /drivers/scsi/device_handler/ |
| A D | scsi_dh_emc.c | 150 sdev_printk(KERN_NOTICE, sdev, in parse_sp_info_reply() 158 sdev_printk(KERN_NOTICE, sdev, in parse_sp_info_reply() 166 sdev_printk(KERN_WARNING, sdev, in parse_sp_info_reply() 276 sdev_printk(KERN_INFO, sdev, in send_trespass_cmd() 353 sp_model = parse_sp_model(sdev, sdev->inquiry); in clariion_std_inquiry() 365 sdev_printk(KERN_INFO, sdev, in clariion_std_inquiry() 410 sdev_printk(KERN_INFO, sdev, in clariion_activate() 496 sdev_printk(KERN_INFO, sdev, in clariion_bus_attach() 502 sdev->handler_data = h; in clariion_bus_attach() 512 kfree(sdev->handler_data); in clariion_bus_detach() [all …]
|
| A D | scsi_dh_alua.c | 701 if (!h->sdev) in alua_rtpg() 750 if (!h->sdev) in alua_rtpg() 855 if (!h->sdev) in alua_rtpg_select_sdev() 864 sdev = h->sdev; in alua_rtpg_select_sdev() 870 if (!sdev) { in alua_rtpg_select_sdev() 880 pg->rtpg_sdev = sdev; in alua_rtpg_select_sdev() 897 sdev = pg->rtpg_sdev; in alua_rtpg_work() 898 if (!sdev) { in alua_rtpg_work() 1049 sdev = NULL; in alua_rtpg_queue() 1053 if (sdev) in alua_rtpg_queue() [all …]
|
| A D | scsi_dh_hp_sw.c | 31 struct scsi_device *sdev; member 62 sdev_printk(KERN_WARNING, sdev, in tur_done() 111 sdev_printk(KERN_WARNING, sdev, in hp_sw_tur() 130 struct scsi_device *sdev = h->sdev; in hp_sw_start_stop() local 162 sdev_printk(KERN_WARNING, sdev, in hp_sw_start_stop() 214 ret = hp_sw_tur(sdev, h); in hp_sw_activate() 234 h->sdev = sdev; in hp_sw_bus_attach() 236 ret = hp_sw_tur(sdev, h); in hp_sw_bus_attach() 248 sdev->handler_data = h; in hp_sw_bus_attach() 257 kfree(sdev->handler_data); in hp_sw_bus_detach() [all …]
|
| /drivers/usb/storage/ |
| A D | scsiglue.c | 76 sdev->inquiry_len = 36; in sdev_init() 161 sdev->use_10_for_ms = 1; in sdev_configure() 174 sdev->read_before_ms = 1; in sdev_configure() 198 sdev->skip_vpd_pages = !sdev->try_vpd_pages; in sdev_configure() 204 sdev->no_write_same = 1; in sdev_configure() 212 sdev->fix_capacity = 1; in sdev_configure() 251 sdev->retry_hwerror = 1; in sdev_configure() 257 sdev->allow_restart = 1; in sdev_configure() 282 sdev->broken_fua = 1; in sdev_configure() 299 sdev->use_10_for_ms = 1; in sdev_configure() [all …]
|
| /drivers/platform/surface/ |
| A D | surface_platform_profile.c | 42 struct ssam_device *sdev; member 69 status = ssam_retry(__ssam_tmp_profile_get, sdev, &info); in ssam_tmp_profile_get() 166 status = ssam_tmp_profile_get(tpd->sdev, &tp); in ssam_platform_profile_get() 170 status = convert_ssam_tmp_to_profile(tpd->sdev, tp); in ssam_platform_profile_get() 186 tp = convert_profile_to_ssam_tmp(tpd->sdev, profile); in ssam_platform_profile_set() 190 tp = ssam_tmp_profile_set(tpd->sdev, tp); in ssam_platform_profile_set() 195 tp = convert_profile_to_ssam_fan(tpd->sdev, profile); in ssam_platform_profile_set() 198 tp = ssam_fan_profile_set(tpd->sdev, tp); in ssam_platform_profile_set() 224 tpd = devm_kzalloc(&sdev->dev, sizeof(*tpd), GFP_KERNEL); in surface_platform_profile_probe() 228 tpd->sdev = sdev; in surface_platform_profile_probe() [all …]
|
| /drivers/mfd/ |
| A D | qcom-spmi-pmic.c | 95 get_device(&sdev->dev); in qcom_pmic_get_base_usid() 96 return sdev; in qcom_pmic_get_base_usid() 99 function_parent_usid = sdev->usid; in qcom_pmic_get_base_usid() 109 sdev = ERR_PTR(-ENODATA); in qcom_pmic_get_base_usid() 113 sdev = ERR_PTR(ret); in qcom_pmic_get_base_usid() 119 if (!sdev) { in qcom_pmic_get_base_usid() 124 sdev = ERR_PTR(-EPROBE_DEFER); in qcom_pmic_get_base_usid() 132 return sdev; in qcom_pmic_get_base_usid() 230 struct spmi_device *sdev; in qcom_pmic_get() local 239 sdev = to_spmi_device(dev->parent); in qcom_pmic_get() [all …]
|
| /drivers/w1/masters/ |
| A D | sgi_w1.c | 78 struct sgi_w1_device *sdev; in sgi_w1_probe() local 83 if (!sdev) in sgi_w1_probe() 87 if (IS_ERR(sdev->mcr)) in sgi_w1_probe() 88 return PTR_ERR(sdev->mcr); in sgi_w1_probe() 90 sdev->bus_master.data = sdev; in sgi_w1_probe() 91 sdev->bus_master.reset_bus = sgi_w1_reset_bus; in sgi_w1_probe() 92 sdev->bus_master.touch_bit = sgi_w1_touch_bit; in sgi_w1_probe() 96 strscpy(sdev->dev_id, pdata->dev_id, sizeof(sdev->dev_id)); in sgi_w1_probe() 97 sdev->bus_master.dev_id = sdev->dev_id; in sgi_w1_probe() 100 platform_set_drvdata(pdev, sdev); in sgi_w1_probe() [all …]
|