Home
last modified time | relevance | path

Searched full:scp (Results 1 – 25 of 260) sorted by relevance

1234567891011

/openbmc/linux/drivers/remoteproc/
H A Dmtk_scp.c27 * scp_get() - get a reference to SCP.
29 * @pdev: the platform device of the module requesting SCP platform
30 * device for using SCP API.
32 * Return: Return NULL if failed. otherwise reference to SCP.
40 scp_node = of_parse_phandle(dev->of_node, "mediatek,scp", 0); in scp_get()
42 dev_err(dev, "can't get SCP node\n"); in scp_get()
50 dev_err(dev, "SCP pdev failed\n"); in scp_get()
59 * scp_put() - "free" the SCP
61 * @scp: mtk_scp structure from scp_get().
63 void scp_put(struct mtk_scp *scp) in scp_put() argument
[all …]
H A Dmtk_scp_ipi.c23 * @scp: mtk_scp structure
28 * Register an ipi function to receive ipi interrupt from SCP.
32 int scp_ipi_register(struct mtk_scp *scp, in scp_ipi_register() argument
37 if (!scp) in scp_ipi_register()
43 scp_ipi_lock(scp, id); in scp_ipi_register()
44 scp->ipi_desc[id].handler = handler; in scp_ipi_register()
45 scp->ipi_desc[id].priv = priv; in scp_ipi_register()
46 scp_ipi_unlock(scp, id); in scp_ipi_register()
55 * @scp: mtk_scp structure
58 * Unregister an ipi function to receive ipi interrupt from SCP.
[all …]
H A Dmtk_common.h80 int (*scp_clk_get)(struct mtk_scp *scp);
81 int (*scp_before_load)(struct mtk_scp *scp);
82 void (*scp_irq_handler)(struct mtk_scp *scp);
83 void (*scp_reset_assert)(struct mtk_scp *scp);
84 void (*scp_reset_deassert)(struct mtk_scp *scp);
85 void (*scp_stop)(struct mtk_scp *scp);
86 void *(*scp_da_to_va)(struct mtk_scp *scp, u64 da, size_t len);
125 * struct mtk_share_obj - SRAM buffer shared with AP and SCP
138 void scp_ipi_lock(struct mtk_scp *scp, u32 id);
139 void scp_ipi_unlock(struct mtk_scp *scp, u32 id);
/openbmc/linux/drivers/scsi/arm/
H A Darm_scsi.h30 * entries of uninitialized memory. SCp is from scsi-ml and has a valid
33 static inline int copy_SCp_to_sg(struct scatterlist *sg, struct scsi_pointer *SCp, int max) in copy_SCp_to_sg() argument
35 int bufs = SCp->buffers_residual; in copy_SCp_to_sg()
42 sg_set_buf(sg, SCp->ptr, SCp->this_residual); in copy_SCp_to_sg()
48 for_each_sg(sg_next(SCp->buffer), src_sg, bufs, i) in copy_SCp_to_sg()
56 static inline int next_SCp(struct scsi_pointer *SCp) in next_SCp() argument
58 int ret = SCp->buffers_residual; in next_SCp()
60 SCp->buffer = sg_next(SCp->buffer); in next_SCp()
61 SCp->buffers_residual--; in next_SCp()
62 SCp->ptr = sg_virt(SCp->buffer); in next_SCp()
[all …]
H A Dfas216.c177 static void print_SCp(struct scsi_pointer *SCp, const char *prefix, const char *suffix) in print_SCp() argument
180 prefix, SCp->ptr, SCp->this_residual, SCp->buffer, in print_SCp()
181 SCp->buffers_residual, suffix); in print_SCp()
203 print_SCp(&info->scsi.SCp, " SCp={ ", " }\n"); in fas216_dumpinfo()
632 struct scsi_pointer *SCp = &info->scsi.SCp; in fas216_updateptrs() local
638 SCp->phase -= bytes_transferred; in fas216_updateptrs()
641 if (SCp->this_residual > bytes_transferred) in fas216_updateptrs()
647 bytes_transferred -= SCp->this_residual; in fas216_updateptrs()
648 if (!next_SCp(SCp) && bytes_transferred) { in fas216_updateptrs()
655 SCp->this_residual -= bytes_transferred; in fas216_updateptrs()
[all …]
/openbmc/linux/drivers/scsi/
H A D53c700.c54 * Bogendoerfer). Added missing SCp->request_bufflen initialisation
577 struct scsi_cmnd *SCp, __u32 dsp) in save_for_reselection() argument
580 if(SCp != NULL) { in save_for_reselection()
582 (struct NCR_700_command_slot *)SCp->host_scribble; in save_for_reselection()
591 NCR_700_unmap(struct NCR_700_Host_Parameters *hostdata, struct scsi_cmnd *SCp, in NCR_700_unmap() argument
594 if(SCp->sc_data_direction != DMA_NONE && in NCR_700_unmap()
595 SCp->sc_data_direction != DMA_BIDIRECTIONAL) in NCR_700_unmap()
596 scsi_dma_unmap(SCp); in NCR_700_unmap()
601 struct scsi_cmnd *SCp, int result) in NCR_700_scsi_done() argument
606 if(SCp != NULL) { in NCR_700_scsi_done()
[all …]
H A Dscsi_debug.c919 static void mk_sense_invalid_fld(struct scsi_cmnd *scp, in mk_sense_invalid_fld() argument
927 sbuff = scp->sense_buffer; in mk_sense_invalid_fld()
929 sdev_printk(KERN_ERR, scp->device, in mk_sense_invalid_fld()
935 scsi_build_sense(scp, sdebug_dsense, ILLEGAL_REQUEST, asc, 0); in mk_sense_invalid_fld()
954 sdev_printk(KERN_INFO, scp->device, "%s: [sense_key,asc,ascq" in mk_sense_invalid_fld()
959 static void mk_sense_buffer(struct scsi_cmnd *scp, int key, int asc, int asq) in mk_sense_buffer() argument
961 if (!scp->sense_buffer) { in mk_sense_buffer()
962 sdev_printk(KERN_ERR, scp->device, in mk_sense_buffer()
966 memset(scp->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); in mk_sense_buffer()
968 scsi_build_sense(scp, sdebug_dsense, key, asc, asq); in mk_sense_buffer()
[all …]
H A Dhptiop.c719 struct scsi_cmnd *scp; in hptiop_finish_scsi_req() local
729 scp = hba->reqs[tag].scp; in hptiop_finish_scsi_req()
731 if (HPT_SCP(scp)->mapped) in hptiop_finish_scsi_req()
732 scsi_dma_unmap(scp); in hptiop_finish_scsi_req()
736 scsi_set_resid(scp, in hptiop_finish_scsi_req()
737 scsi_bufflen(scp) - le32_to_cpu(req->dataxfer_length)); in hptiop_finish_scsi_req()
738 scp->result = (DID_OK<<16); in hptiop_finish_scsi_req()
741 scp->result = (DID_BAD_TARGET<<16); in hptiop_finish_scsi_req()
744 scp->result = (DID_BUS_BUSY<<16); in hptiop_finish_scsi_req()
747 scp->result = (DID_RESET<<16); in hptiop_finish_scsi_req()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/remoteproc/
H A Dmtk,scp.yaml4 $id: http://devicetree.org/schemas/remoteproc/mtk,scp.yaml#
7 title: Mediatek SCP
19 - mediatek,mt8183-scp
20 - mediatek,mt8186-scp
21 - mediatek,mt8188-scp
22 - mediatek,mt8192-scp
23 - mediatek,mt8195-scp
56 initializing SCP.
71 - mediatek,mt8183-scp
72 - mediatek,mt8192-scp
[all …]
/openbmc/linux/include/linux/remoteproc/
H A Dmtk_scp.h19 * @SCP_IPI_INIT: The interrupt from scp is to notfiy kernel
20 * SCP initialization completed.
21 * IPI_SCP_INIT is sent from SCP when firmware is
23 * command to SCP.
25 * to SCP to trigger the interrupt.
51 void scp_put(struct mtk_scp *scp);
53 struct device *scp_get_device(struct mtk_scp *scp);
54 struct rproc *scp_get_rproc(struct mtk_scp *scp);
56 int scp_ipi_register(struct mtk_scp *scp, u32 id, scp_ipi_handler_t handler,
58 void scp_ipi_unregister(struct mtk_scp *scp, u32 id);
[all …]
/openbmc/linux/drivers/media/platform/mediatek/vcodec/common/
H A Dmtk_vcodec_fw_scp.c9 return rproc_boot(scp_get_rproc(fw->scp)); in mtk_vcodec_scp_load_firmware()
14 return scp_get_vdec_hw_capa(fw->scp); in mtk_vcodec_scp_get_vdec_capa()
19 return scp_get_venc_hw_capa(fw->scp); in mtk_vcodec_scp_get_venc_capa()
25 return scp_mapping_dm_addr(fw->scp, dtcm_dmem_addr); in mtk_vcodec_vpu_scp_dm_addr()
32 return scp_ipi_register(fw->scp, id, handler, priv); in mtk_vcodec_scp_set_ipi_register()
38 return scp_ipi_send(fw->scp, id, buf, len, wait); in mtk_vcodec_scp_ipi_send()
43 scp_put(fw->scp); in mtk_vcodec_scp_release()
60 struct mtk_scp *scp; in mtk_vcodec_fw_scp_init() local
75 scp = scp_get(plat_dev); in mtk_vcodec_fw_scp_init()
76 if (!scp) { in mtk_vcodec_fw_scp_init()
[all …]
/openbmc/linux/drivers/pmdomain/mediatek/
H A Dmtk-scpsys.c112 * struct scp_domain_data - scp domain data for power on/off flow
133 struct scp;
137 struct scp *scp; member
148 struct scp { struct
174 struct scp *scp = scpd->scp; in scpsys_domain_is_on() argument
176 u32 status = readl(scp->base + scp->ctrl_reg.pwr_sta_offs) & in scpsys_domain_is_on()
178 u32 status2 = readl(scp->base + scp->ctrl_reg.pwr_sta2nd_offs) & in scpsys_domain_is_on()
281 struct scp *scp = scpd->scp; in scpsys_bus_protect_enable() local
286 return mtk_infracfg_set_bus_protection(scp->infracfg, in scpsys_bus_protect_enable()
288 scp->bus_prot_reg_update); in scpsys_bus_protect_enable()
[all …]
/openbmc/linux/drivers/scsi/megaraid/
H A Dmega_common.h49 * @scp : associated scsi command
69 struct scsi_cmnd *scp; member
199 #define SCP2HOST(scp) (scp)->device->host // to host argument
200 #define SCP2HOSTDATA(scp) SCP2HOST(scp)->hostdata // to soft state argument
201 #define SCP2CHANNEL(scp) (scp)->device->channel // to channel argument
202 #define SCP2TARGET(scp) (scp)->device->id // to target argument
203 #define SCP2LUN(scp) (u32)(scp)->device->lun // to LUN argument
207 #define SCP2ADAPTER(scp) (adapter_t *)SCSIHOST2ADAP(SCP2HOST(scp)) argument
210 #define MRAID_IS_LOGICAL(adp, scp) \ argument
211 (SCP2CHANNEL(scp) == (adp)->max_channel) ? 1 : 0
[all …]
H A Dmegaraid_mbox.c1073 scb->scp = NULL; in megaraid_alloc_cmd_packets()
1268 * @scp : pointer to the scsi command to be executed
1274 megaraid_alloc_scb(adapter_t *adapter, struct scsi_cmnd *scp) in megaraid_alloc_scb() argument
1294 scb->scp = scp; in megaraid_alloc_scb()
1318 scb->scp = NULL; in megaraid_dealloc_scb()
1341 struct scsi_cmnd *scp; in megaraid_mbox_mksgl() local
1346 scp = scb->scp; in megaraid_mbox_mksgl()
1349 sgcnt = scsi_dma_map(scp); in megaraid_mbox_mksgl()
1358 scsi_for_each_sg(scp, sgl, sgcnt, i) { in megaraid_mbox_mksgl()
1433 * @scp : pointer to the scsi command to be executed
[all …]
/openbmc/linux/drivers/media/platform/mediatek/mdp3/
H A Dmtk-mdp3-vpu.c26 dev = scp_get_device(vpu->scp); in mdp_vpu_shared_mem_alloc()
68 dev = scp_get_device(vpu->scp); in mdp_vpu_shared_mem_free()
126 struct mtk_scp *scp = mdp->scp; in mdp_vpu_register() local
129 err = scp_ipi_register(scp, SCP_IPI_MDP_INIT, in mdp_vpu_register()
135 err = scp_ipi_register(scp, SCP_IPI_MDP_DEINIT, in mdp_vpu_register()
141 err = scp_ipi_register(scp, SCP_IPI_MDP_FRAME, in mdp_vpu_register()
150 scp_ipi_unregister(scp, SCP_IPI_MDP_DEINIT); in mdp_vpu_register()
152 scp_ipi_unregister(scp, SCP_IPI_MDP_INIT); in mdp_vpu_register()
160 scp_ipi_unregister(mdp->scp, SCP_IPI_MDP_INIT); in mdp_vpu_unregister()
161 scp_ipi_unregister(mdp->scp, SCP_IPI_MDP_DEINIT); in mdp_vpu_unregister()
[all …]
/openbmc/openbmc/meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/
H A Dkudo-scp-update.bb1 SUMMARY = "Phosphor OpenBMC Kudo SCP Firmware Upgrade Command"
2 DESCRIPTION = "Phosphor OpenBMC Kudo SCP Firmware Upgrade Comman Daemon"
16 FILES:${PN} += "${datadir}/phosphor-ipmi-flash/config-scp.json"
20 file://phosphor-ipmi-flash-scp-update.service \
22 file://config-scp.json \
28 phosphor-ipmi-flash-scp-update.service \
34 install -m 0644 ${UNPACKDIR}/config-scp.json ${D}${datadir}/phosphor-ipmi-flash
38 … install -m 0644 ${UNPACKDIR}/phosphor-ipmi-flash-scp-update.service ${D}${systemd_system_unitdir}
/openbmc/openbmc/meta-arm/meta-arm/recipes-bsp/scp-firmware/
H A Dscp-firmware_2.15.0.bb1 SUMMARY = "SCP and MCP Firmware"
2 DESCRIPTION = "Firmware for SCP and MCP software reference implementation"
3 HOMEPAGE = "https://gitlab.arm.com/firmware/SCP-firmware"
9 SRC_URI_SCP_FIRMWARE ?= "gitsm://git.gitlab.arm.com/firmware/SCP-firmware.git;protocol=https"
39 # Allow platform specific copying of only scp or both scp & mcp, default to both
40 FW_TARGETS ?= "scp mcp"
83 if [ "$FW" = "scp" ]; then
91 if [ "$FW" = "scp" ]; then
/openbmc/openbmc/meta-ampere/meta-jade/recipes-phosphor/gpio/phosphor-gpio-monitor/
H A Dampere_scp_failover.sh3 # Handle the SCP Failover feature in which:
17 echo "scp-failover: switch HOST to failover boot EEPROM"
23 # Turn OFF Host as SCP firmware on both Boot EEPROM fail
26 echo "scp-failover: switch HOST back to the main Boot EEPROM"
30 …ampere_add_redfishevent.sh OpenBMC.0.1.GeneralFirmwareSecurityViolation "SCP Authentication failur…
/openbmc/openbmc-test-automation/ffdc/lib/
H A Dssh_utility.py16 from scp import SCPClient, SCPException
22 for remote host command execution and scp.
179 Establish an SCP connection for file transfer.
181 This method creates an SCP connection for file transfer using the SSH
192 "\n\t[Check] %s SCP transport established.\t [OK]"
198 "\n\tERROR: SCP get_transport has failed. %s %s"
210 SCP a file from the remote host to the local host with a filename.
213 the SCP protocol. The method takes the remote_file and local_file as
230 "\n\tERROR: Fail scp %s from remotehost %s %s\n\n"
/openbmc/openbmc/meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/kudo-scp-update/
H A Dphosphor-ipmi-flash-scp-update.service2 Description=Phosphor-ipmi-flash update main EEPROM SCP firmware service
5 ExecStart=/usr/sbin/kudo-fw.sh scp /run/initramfs/scp-fw.slim
9 WantedBy=phosphor-ipmi-flash-scp-update.target
/openbmc/openbmc/meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/kudo-fw/
H A Dkudo-fw.sh44 # Disable LPI mode NV_SI_CPU_LPI_FREQ_DISABLE for SCP 1.06 and older.
46 echo "Setting LPI mode for SCP 1.06 and older failed " >&2
50 # Disable LPI mode NV_SI_CPU_LPI_FREQ_DISABLE for SCP 1.07 and newer
52 echo "Setting LPI mode for SCP 1.07 and newer failed " >&2
63 echo "Extracting the SCP from the image"
108 echo "SCP eeprom update failed" >&2
125 echo "SCP BACKUP eeprom update failed" >&2
188 scp)
/openbmc/openbmc-test-automation/extended/code_update/
H A Dcode_update_utils.robot63 SCP Tar Image File to BMC
70 Open Connection for SCP
72 Loop SCP Retry ${image_file_path}
75 Loop SCP Retry
83 ${status}= Retry SCP ${image_file_path}
88 Retry SCP
89 [Documentation] Delete the incomplete file and scp file.
101 scp.Put File ${image_file_path} ${targ_file_path}
/openbmc/openbmc-test-automation/ffdc/plugins/
H A Dscp_execution.py26 Copy a file from a remote host to the local host using SCP.
29 SCP protocol. The function takes the remote host details (hostname,
39 port_ssh (int): SSH/SCP port value. By default, 22.
50 # Obtain scp connection.
61 # Close ssh/scp session
/openbmc/linux/arch/mips/cavium-octeon/executive/
H A Docteon-model.c96 /* SCP = No DFA, No zip */ in octeon_model_get_string_buffer()
102 suffix = "SCP"; in octeon_model_get_string_buffer()
306 suffix = "SCP"; in octeon_model_get_string_buffer()
335 suffix = "SCP"; in octeon_model_get_string_buffer()
348 suffix = "SCP"; in octeon_model_get_string_buffer()
363 suffix = "SCP"; in octeon_model_get_string_buffer()
374 suffix = "SCP"; in octeon_model_get_string_buffer()
383 suffix = "SCP"; in octeon_model_get_string_buffer()
404 suffix = "SCP"; in octeon_model_get_string_buffer()
418 suffix = "SCP"; in octeon_model_get_string_buffer()
[all …]
/openbmc/openbmc/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-cmd/
H A Dkudo.sh20 echo " off --> change to CPU 0 SCP console"
21 echo " status --> change to CPU 1 SCP console"
27 echo " scp --> show SCP0 console"
29 echo " swscp1 --> change to CPU 0 SCP console to ttyS3"
30 echo " swscp2 --> change to CPU 1 SCP console"
32 echo " swscphr --> change SCP console to header"
127 echo " SCP Firmware: ${cmd}"
144 scp)
146 echo "Couldn't redirect to the scp console within BMC local console"

1234567891011