| /kernel/linux/linux-5.10/drivers/scsi/ufs/ |
| D | ufs-qcom-ice.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2014-2019, The Linux Foundation. All rights reserved. 12 #include "ufshcd-crypto.h" 13 #include "ufs-qcom.h" 54 /* BIST ("built-in self-test"?) status flags */ 62 writel((val), (host)->ice_mmio + (reg)) 64 readl((host)->ice_mmio + (reg)) 68 struct device *dev = host->hba->dev; in qcom_ice_supported() 97 struct ufs_hba *hba = host->hba; in ufs_qcom_ice_init() local 98 struct device *dev = hba->dev; in ufs_qcom_ice_init() [all …]
|
| D | ufshcd-crypto.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include "ufshcd-crypto.h" 9 /* Blk-crypto modes supported by UFS crypto */ 20 static int ufshcd_program_key(struct ufs_hba *hba, in ufshcd_program_key() argument 24 u32 slot_offset = hba->crypto_cfg_register + slot * sizeof(*cfg); in ufshcd_program_key() 27 ufshcd_hold(hba, false); in ufshcd_program_key() 29 if (hba->vops && hba->vops->program_key) { in ufshcd_program_key() 30 err = hba->vops->program_key(hba, cfg, slot); in ufshcd_program_key() 35 ufshcd_writel(hba, 0, slot_offset + 16 * sizeof(cfg->reg_val[0])); in ufshcd_program_key() 37 ufshcd_writel(hba, le32_to_cpu(cfg->reg_val[i]), in ufshcd_program_key() [all …]
|
| D | ufs-hisi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2016-2017 Linaro Ltd. 6 * Copyright (c) 2016-2017 HiSilicon Technologies Co., Ltd. 12 #include <linux/dma-mapping.h> 17 #include "ufshcd-pltfrm.h" 19 #include "ufs-hisi.h" 23 static int ufs_hisi_check_hibern8(struct ufs_hba *hba) in ufs_hisi_check_hibern8() argument 31 err = ufshcd_dme_get(hba, UIC_ARG_MIB_SEL(MPHY_TX_FSM_STATE, 0), in ufs_hisi_check_hibern8() 33 err |= ufshcd_dme_get(hba, in ufs_hisi_check_hibern8() 48 err = ufshcd_dme_get(hba, UIC_ARG_MIB_SEL(MPHY_TX_FSM_STATE, 0), in ufs_hisi_check_hibern8() [all …]
|
| /kernel/linux/linux-6.6/drivers/ufs/core/ |
| D | ufshcd-crypto.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include "ufshcd-crypto.h" 9 /* Blk-crypto modes supported by UFS crypto */ 20 static int ufshcd_program_key(struct ufs_hba *hba, in ufshcd_program_key() argument 24 u32 slot_offset = hba->crypto_cfg_register + slot * sizeof(*cfg); in ufshcd_program_key() 27 ufshcd_hold(hba); in ufshcd_program_key() 29 if (hba->vops && hba->vops->program_key) { in ufshcd_program_key() 30 err = hba->vops->program_key(hba, cfg, slot); in ufshcd_program_key() 35 ufshcd_writel(hba, 0, slot_offset + 16 * sizeof(cfg->reg_val[0])); in ufshcd_program_key() 37 ufshcd_writel(hba, le32_to_cpu(cfg->reg_val[i]), in ufshcd_program_key() [all …]
|
| D | ufshcd.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 2011-2013 Samsung India Software Operations 5 * Copyright (c) 2013-2016, The Linux Foundation. All rights reserved. 17 #include <linux/blk-pm.h> 30 #include "ufshcd-priv.h" 33 #include "ufs-sysfs.h" 34 #include "ufs-debugfs.h" 35 #include "ufs-fault-injection.h" 37 #include "ufshcd-crypto.h" 74 /* maximum number of link-startup retries */ [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/ata/ |
| D | ahci-common.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/ata/ahci-common.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Hans de Goede <hdegoede@redhat.com> 11 - Damien Le Moal <dlemoal@kernel.org> 18 document doesn't constitute a DT-node binding by itself but merely 19 defines a set of common properties for the AHCI-compatible devices. 24 - $ref: sata-common.yaml# 32 reg-names: [all …]
|
| D | ahci-platform.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/ata/ahci-platform.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 SATA nodes are defined to describe on-chip Serial ATA controllers. 13 It is possible, but not required, to represent each port as a sub-node. 18 - Hans de Goede <hdegoede@redhat.com> 19 - Jens Axboe <axboe@kernel.dk> 26 - brcm,iproc-ahci 27 - cavium,octeon-7130-ahci [all …]
|
| D | snps,dwc-ahci.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/ata/snps,dwc-ahci.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Serge Semin <fancer.lancer@gmail.com> 20 - snps,dwc-ahci 21 - snps,spear-ahci 23 - compatible 26 - $ref: snps,dwc-ahci-common.yaml# 31 - description: Synopsys AHCI SATA-compatible devices [all …]
|
| D | rockchip,dwc-ahci.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/ata/rockchip,dwc-ahci.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Serge Semin <fancer.lancer@gmail.com> 22 - rockchip,rk3568-dwc-ahci 23 - rockchip,rk3588-dwc-ahci 25 - compatible 30 - enum: 31 - rockchip,rk3568-dwc-ahci [all …]
|
| /kernel/linux/linux-6.6/drivers/ufs/host/ |
| D | ufs-qcom.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2013-2016, Linux Foundation. All rights reserved. 16 #include <linux/reset-controller.h> 22 #include "ufshcd-pltfrm.h" 24 #include "ufs-qcom.h" 96 static int ufs_qcom_set_dme_vs_core_clk_ctrl_clear_div(struct ufs_hba *hba, 108 if (host->hba->caps & UFSHCD_CAP_CRYPTO) in ufs_qcom_ice_enable() 109 qcom_ice_enable(host->ice); in ufs_qcom_ice_enable() 114 struct ufs_hba *hba = host->hba; in ufs_qcom_ice_init() local 115 struct device *dev = hba->dev; in ufs_qcom_ice_init() [all …]
|
| D | ufs-hisi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2016-2017 Linaro Ltd. 6 * Copyright (c) 2016-2017 HiSilicon Technologies Co., Ltd. 14 #include <linux/dma-mapping.h> 19 #include "ufshcd-pltfrm.h" 21 #include "ufs-hisi.h" 25 static int ufs_hisi_check_hibern8(struct ufs_hba *hba) in ufs_hisi_check_hibern8() argument 33 err = ufshcd_dme_get(hba, UIC_ARG_MIB_SEL(MPHY_TX_FSM_STATE, 0), in ufs_hisi_check_hibern8() 35 err |= ufshcd_dme_get(hba, in ufs_hisi_check_hibern8() 50 err = ufshcd_dme_get(hba, UIC_ARG_MIB_SEL(MPHY_TX_FSM_STATE, 0), in ufs_hisi_check_hibern8() [all …]
|
| /kernel/linux/linux-5.10/drivers/s390/scsi/ |
| D | zfcp_dbf.c | 1 // SPDX-License-Identifier: GPL-2.0 36 return sizeof(struct zfcp_dbf_pay) + offset - ZFCP_DBF_PAY_MAX_REC; in zfcp_dbf_plen() 43 struct zfcp_dbf_pay *pl = &dbf->pay_buf; in zfcp_dbf_pl_write() 46 spin_lock(&dbf->pay_lock); in zfcp_dbf_pl_write() 48 pl->fsf_req_id = req_id; in zfcp_dbf_pl_write() 49 memcpy(pl->area, area, ZFCP_DBF_TAG_LEN); in zfcp_dbf_pl_write() 53 (u16) (length - offset)); in zfcp_dbf_pl_write() 54 memcpy(pl->data, data + offset, rec_length); in zfcp_dbf_pl_write() 55 debug_event(dbf->pay, 1, pl, zfcp_dbf_plen(rec_length)); in zfcp_dbf_pl_write() 58 pl->counter++; in zfcp_dbf_pl_write() [all …]
|
| /kernel/linux/linux-6.6/drivers/s390/scsi/ |
| D | zfcp_dbf.c | 1 // SPDX-License-Identifier: GPL-2.0 36 return sizeof(struct zfcp_dbf_pay) + offset - ZFCP_DBF_PAY_MAX_REC; in zfcp_dbf_plen() 43 struct zfcp_dbf_pay *pl = &dbf->pay_buf; in zfcp_dbf_pl_write() 46 spin_lock(&dbf->pay_lock); in zfcp_dbf_pl_write() 48 pl->fsf_req_id = req_id; in zfcp_dbf_pl_write() 49 memcpy(pl->area, area, ZFCP_DBF_TAG_LEN); in zfcp_dbf_pl_write() 53 (u16) (length - offset)); in zfcp_dbf_pl_write() 54 memcpy(pl->data, data + offset, rec_length); in zfcp_dbf_pl_write() 55 debug_event(dbf->pay, 1, pl, zfcp_dbf_plen(rec_length)); in zfcp_dbf_pl_write() 58 pl->counter++; in zfcp_dbf_pl_write() [all …]
|
| /kernel/linux/linux-6.6/drivers/ata/ |
| D | libahci_platform.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2004-2005 Red Hat, Inc. 37 * ahci_platform_enable_phys - Enable PHYs 40 * This function enables all the PHYs found in hpriv->phys, if any. 51 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_enable_phys() 52 rc = phy_init(hpriv->phys[i]); in ahci_platform_enable_phys() 56 rc = phy_set_mode(hpriv->phys[i], PHY_MODE_SATA); in ahci_platform_enable_phys() 58 phy_exit(hpriv->phys[i]); in ahci_platform_enable_phys() 62 rc = phy_power_on(hpriv->phys[i]); in ahci_platform_enable_phys() 64 phy_exit(hpriv->phys[i]); in ahci_platform_enable_phys() [all …]
|
| D | libahci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * libahci.c - Common AHCI SATA low-level routines 6 * Please ALWAYS copy linux-ide@vger.kernel.org 9 * Copyright 2004-2005 Red Hat, Inc. 12 * as Documentation/driver-api/libata.rst 27 #include <linux/dma-mapping.h> 236 * ahci_rpm_get_port - Make sure the port is powered on 245 return pm_runtime_get_sync(ap->dev); in ahci_rpm_get_port() 249 * ahci_rpm_put_port - Undoes ahci_rpm_get_port() 257 pm_runtime_put(ap->dev); in ahci_rpm_put_port() [all …]
|
| D | acard-ahci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * acard-ahci.c - ACard AHCI SATA support 7 * Please ALWAYS copy linux-ide@vger.kernel.org 13 * as Documentation/driver-api/libata.rst 26 #include <linux/dma-mapping.h> 35 #define DRV_NAME "acard-ahci" 70 AHCI_SHT("acard-ahci"), 115 struct ahci_host_priv *hpriv = host->private_data; in acard_ahci_pci_device_suspend() 116 void __iomem *mmio = hpriv->mmio; in acard_ahci_pci_device_suspend() 120 hpriv->flags & AHCI_HFLAG_NO_SUSPEND) { in acard_ahci_pci_device_suspend() [all …]
|
| D | ahci_dwc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 25 #define DRV_NAME "ahci-dwc" 95 /* Baikal-T1 AHCI SATA specific registers */ 127 struct ahci_dwc_host_priv *dpriv = hpriv->plat_data; in ahci_bt1_init() 134 dev_err(&dpriv->pdev->dev, "No system clocks specified\n"); in ahci_bt1_init() 135 return -EINVAL; in ahci_bt1_init() 145 dev_err(&dpriv->pdev->dev, "Couldn't assert the resets\n"); in ahci_bt1_init() 151 dev_err(&dpriv->pdev->dev, "Couldn't de-assert the resets\n"); in ahci_bt1_init() 163 dpriv = devm_kzalloc(&pdev->dev, sizeof(*dpriv), GFP_KERNEL); in ahci_dwc_get_resources() 165 return ERR_PTR(-ENOMEM); in ahci_dwc_get_resources() [all …]
|
| D | sata_highbank.c | 1 // SPDX-License-Identifier: GPL-2.0-only 53 /* Each of the 6 phys can have up to 4 sata ports attached to i. Map 0-based 91 return 1 << (3 * pdata->port_to_sgpio[port] + shift); in sgpio_bit_shift() 97 pdata->sgpio_pattern |= sgpio_bit_shift(pdata, port, in ecx_parse_sgpio() 100 pdata->sgpio_pattern &= ~sgpio_bit_shift(pdata, port, in ecx_parse_sgpio() 103 pdata->sgpio_pattern |= sgpio_bit_shift(pdata, port, in ecx_parse_sgpio() 106 pdata->sgpio_pattern &= ~sgpio_bit_shift(pdata, port, in ecx_parse_sgpio() 109 pdata->sgpio_pattern |= sgpio_bit_shift(pdata, port, in ecx_parse_sgpio() 112 pdata->sgpio_pattern &= ~sgpio_bit_shift(pdata, port, in ecx_parse_sgpio() 122 gpiod_set_value(pdata->sgpio_gpiod[SCLOCK], 1); in ecx_led_cycle_clock() [all …]
|
| /kernel/linux/linux-5.10/include/scsi/ |
| D | scsi_host.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 #include <linux/blk-mq.h> 57 * When unknown ioctl is passed return -ENOIOCTLCMD. 74 * command. It must also push it to the HBA if the scsi_cmnd 92 * For compatibility, any other non-zero return is treated the 116 * define one of these if you don't want to - there is a default 119 * own strategy routine, this is where it is specified. Note - the 148 * Return values: 0 on success, non-0 on failure 182 * device->sdtr will be true if the device supports SDTR messages. 187 * 6. Return 0 on success, non-0 on error. The device will be marked [all …]
|
| /kernel/linux/linux-6.6/include/scsi/ |
| D | scsi_host.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 #include <linux/blk-mq.h> 31 * enum scsi_timeout_action - How to handle a command that timed out. 49 * Additional per-command data allocated for the driver. 59 * command. It must also push it to the HBA if the scsi_cmnd 77 * For compatibility, any other non-zero return is treated the 123 * When unknown ioctl is passed return -ENOIOCTLCMD. 136 * define one of these if you don't want to - there is a default 139 * own strategy routine, this is where it is specified. Note - the 168 * Return values: 0 on success, non-0 on failure [all …]
|
| /kernel/linux/linux-6.6/drivers/char/agp/ |
| D | parisc-agp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2006, Kyle McMartin <kyle@parisc-linux.org> 7 * Based on drivers/char/agpgart/hp-agp.c which is 8 * (c) Copyright 2002, 2003 Hewlett-Packard Development Company, L.P. 20 #include <asm/parisc-device.h> 71 agp_bridge->current_size = (void *) &parisc_agp_sizes[0]; in parisc_agp_fetch_size() 81 agp_bridge->gart_bus_addr = info->gart_base; in parisc_agp_configure() 82 agp_bridge->capndx = info->lba_cap_offset; in parisc_agp_configure() 83 agp_bridge->mode = readl(info->lba_regs+info->lba_cap_offset+PCI_AGP_STATUS); in parisc_agp_configure() 96 writeq(info->gart_base | ilog2(info->gart_size), info->ioc_regs+IOC_PCOM); in parisc_agp_tlbflush() [all …]
|
| /kernel/linux/linux-5.10/drivers/char/agp/ |
| D | parisc-agp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2006, Kyle McMartin <kyle@parisc-linux.org> 7 * Based on drivers/char/agpgart/hp-agp.c which is 8 * (c) Copyright 2002, 2003 Hewlett-Packard Development Company, L.P. 20 #include <asm/parisc-device.h> 71 agp_bridge->current_size = (void *) &parisc_agp_sizes[0]; in parisc_agp_fetch_size() 81 agp_bridge->gart_bus_addr = info->gart_base; in parisc_agp_configure() 82 agp_bridge->capndx = info->lba_cap_offset; in parisc_agp_configure() 83 agp_bridge->mode = readl(info->lba_regs+info->lba_cap_offset+PCI_AGP_STATUS); in parisc_agp_configure() 96 writeq(info->gart_base | ilog2(info->gart_size), info->ioc_regs+IOC_PCOM); in parisc_agp_tlbflush() [all …]
|
| /kernel/linux/linux-5.10/drivers/ata/ |
| D | acard-ahci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * acard-ahci.c - ACard AHCI SATA support 7 * Please ALWAYS copy linux-ide@vger.kernel.org 13 * as Documentation/driver-api/libata.rst 26 #include <linux/dma-mapping.h> 35 #define DRV_NAME "acard-ahci" 70 AHCI_SHT("acard-ahci"), 115 struct ahci_host_priv *hpriv = host->private_data; in acard_ahci_pci_device_suspend() 116 void __iomem *mmio = hpriv->mmio; in acard_ahci_pci_device_suspend() 120 hpriv->flags & AHCI_HFLAG_NO_SUSPEND) { in acard_ahci_pci_device_suspend() [all …]
|
| D | sata_highbank.c | 1 // SPDX-License-Identifier: GPL-2.0-only 53 /* Each of the 6 phys can have up to 4 sata ports attached to i. Map 0-based 91 return 1 << (3 * pdata->port_to_sgpio[port] + shift); in sgpio_bit_shift() 97 pdata->sgpio_pattern |= sgpio_bit_shift(pdata, port, in ecx_parse_sgpio() 100 pdata->sgpio_pattern &= ~sgpio_bit_shift(pdata, port, in ecx_parse_sgpio() 103 pdata->sgpio_pattern |= sgpio_bit_shift(pdata, port, in ecx_parse_sgpio() 106 pdata->sgpio_pattern &= ~sgpio_bit_shift(pdata, port, in ecx_parse_sgpio() 109 pdata->sgpio_pattern |= sgpio_bit_shift(pdata, port, in ecx_parse_sgpio() 112 pdata->sgpio_pattern &= ~sgpio_bit_shift(pdata, port, in ecx_parse_sgpio() 122 gpiod_set_value(pdata->sgpio_gpiod[SCLOCK], 1); in ecx_led_cycle_clock() [all …]
|
| D | libahci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * libahci.c - Common AHCI SATA low-level routines 6 * Please ALWAYS copy linux-ide@vger.kernel.org 9 * Copyright 2004-2005 Red Hat, Inc. 12 * as Documentation/driver-api/libata.rst 26 #include <linux/dma-mapping.h> 214 * ahci_rpm_get_port - Make sure the port is powered on 223 return pm_runtime_get_sync(ap->dev); in ahci_rpm_get_port() 227 * ahci_rpm_put_port - Undoes ahci_rpm_get_port() 235 pm_runtime_put(ap->dev); in ahci_rpm_put_port() [all …]
|