Home
last modified time | relevance | path

Searched refs:scp (Results 1 – 25 of 58) sorted by relevance

123

/linux/drivers/scsi/megaraid/
H A Dmega_common.h69 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
227 #define MRAID_GET_DEVICE_MAP(adp, scp, p_chan, target, islogical) \ argument
[all …]
H A Dmegaraid_mbox.c1073 scb->scp = NULL; in megaraid_alloc_cmd_packets()
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()
1437 static int megaraid_queue_command_lck(struct scsi_cmnd *scp) in megaraid_queue_command_lck() argument
1444 adapter = SCP2ADAPTER(scp); in megaraid_queue_command_lck()
[all …]
H A Dmegaraid_sas_fusion.c2271 struct scsi_cmnd *scp, in megasas_make_sgl_fusion() argument
2287 scsi_for_each_sg(scp, os_sgl, sge_count, i) { in megasas_make_sgl_fusion()
2347 int megasas_make_sgl(struct megasas_instance *instance, struct scsi_cmnd *scp, in megasas_make_sgl() argument
2354 sge_count = scsi_dma_map(scp); in megasas_make_sgl()
2363 build_prp = megasas_make_prp_nvme(instance, scp, sgl_chain64, in megasas_make_sgl()
2367 megasas_make_sgl_fusion(instance, scp, sgl_chain64, in megasas_make_sgl()
2386 struct IO_REQUEST_INFO *io_info, struct scsi_cmnd *scp, in megasas_set_pd_lba() argument
2404 if (scp->sc_data_direction == DMA_FROM_DEVICE) in megasas_set_pd_lba()
2433 if (scp->sc_data_direction == DMA_FROM_DEVICE) { in megasas_set_pd_lba()
2447 io_request->EEDPBlockSize = cpu_to_le32(scp->device->sector_size); in megasas_set_pd_lba()
[all …]
H A Dmegaraid_sas_base.c1262 megasas_make_sgl32(struct megasas_instance *instance, struct scsi_cmnd *scp, in megasas_make_sgl32() argument
1269 sge_count = scsi_dma_map(scp); in megasas_make_sgl32()
1273 scsi_for_each_sg(scp, os_sgl, sge_count, i) { in megasas_make_sgl32()
1291 megasas_make_sgl64(struct megasas_instance *instance, struct scsi_cmnd *scp, in megasas_make_sgl64() argument
1298 sge_count = scsi_dma_map(scp); in megasas_make_sgl64()
1302 scsi_for_each_sg(scp, os_sgl, sge_count, i) { in megasas_make_sgl64()
1321 struct scsi_cmnd *scp, union megasas_sgl *mfi_sgl) in megasas_make_sgl_skinny() argument
1327 sge_count = scsi_dma_map(scp); in megasas_make_sgl_skinny()
1330 scsi_for_each_sg(scp, os_sgl, sge_count, i) { in megasas_make_sgl_skinny()
1410 megasas_build_dcdb(struct megasas_instance *instance, struct scsi_cmnd *scp, in megasas_build_dcdb() argument
[all …]
/linux/drivers/pmdomain/mediatek/
H A Dmtk-scpsys.c133 struct scp;
137 struct scp *scp; member
148 struct scp { struct
174 struct scp *scp = scpd->scp; in scpsys_domain_is_on() local
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()
293 struct scp *scp = scpd->scp; in scpsys_bus_protect_disable() local
[all …]
/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 …]
H A Dmtk_vcodec_fw_priv.h15 struct mtk_scp *scp; member
/linux/drivers/scsi/
H A Dscsi_debug.c557 static int resp_get_stream_status(struct scsi_cmnd *scp,
1277 static void mk_sense_invalid_fld(struct scsi_cmnd *scp, in mk_sense_invalid_fld() argument
1285 sbuff = scp->sense_buffer; in mk_sense_invalid_fld()
1287 sdev_printk(KERN_ERR, scp->device, in mk_sense_invalid_fld()
1293 scsi_build_sense(scp, sdebug_dsense, ILLEGAL_REQUEST, asc, 0); in mk_sense_invalid_fld()
1312 sdev_printk(KERN_INFO, scp->device, "%s: [sense_key,asc,ascq" in mk_sense_invalid_fld()
1317 static void mk_sense_buffer(struct scsi_cmnd *scp, int key, int asc, int asq) in mk_sense_buffer() argument
1319 if (!scp->sense_buffer) { in mk_sense_buffer()
1320 sdev_printk(KERN_ERR, scp->device, in mk_sense_buffer()
1324 memset(scp->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); 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 …]
H A Dadvansys.c3600 static void asc_scsi_done(struct scsi_cmnd *scp) in asc_scsi_done() argument
3602 scsi_dma_unmap(scp); in asc_scsi_done()
3603 ASC_STATS(scp->device->host, done); in asc_scsi_done()
3604 scsi_done(scp); in asc_scsi_done()
5901 struct scsi_cmnd *scp; in adv_isr_callback() local
5914 scp = scsi_host_find_tag(boardp->shost, scsiqp->srb_tag); in adv_isr_callback()
5916 ASC_DBG(1, "scp 0x%p\n", scp); in adv_isr_callback()
5917 if (scp == NULL) { in adv_isr_callback()
5922 ASC_DBG_PRT_CDB(2, scp->cmnd, scp->cmd_len); in adv_isr_callback()
5924 reqp = (adv_req_t *)scp->host_scribble; in adv_isr_callback()
[all …]
H A Dhptiop.h250 struct scsi_cmnd *scp; member
260 #define HPT_SCP(scp) ((struct hpt_cmd_priv *)scsi_cmd_priv(scp)) argument
/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 …]
H A Dmtk-mdp3-vpu.h43 struct mtk_scp *scp; member
58 int mdp_vpu_dev_init(struct mdp_vpu_dev *vpu, struct mtk_scp *scp,
/linux/drivers/scsi/pcmcia/
H A Dsym53c500_cs.c360 struct sym53c500_cmd_priv *scp = scsi_cmd_priv(curSC); in SYM53C500_intr() local
407 if (scp->phase != message_in) { /* Unexpected disconnect */ in SYM53C500_intr()
410 curSC->result = (scp->status & 0xff) | in SYM53C500_intr()
411 ((scp->message & 0xff) << 8) | (DID_OK << 16); in SYM53C500_intr()
422 scp->phase = data_out; in SYM53C500_intr()
441 scp->phase = data_in; in SYM53C500_intr()
456 scp->phase = command_ph; in SYM53C500_intr()
461 scp->phase = status_ph; in SYM53C500_intr()
474 scp->phase = message_out; in SYM53C500_intr()
481 scp->phase = message_in; in SYM53C500_intr()
[all …]
/linux/drivers/scsi/cxlflash/
H A Dmain.c47 static void process_cmd_err(struct afu_cmd *cmd, struct scsi_cmnd *scp) in process_cmd_err() argument
59 scsi_set_resid(scp, resid); in process_cmd_err()
61 __func__, cmd, scp, resid); in process_cmd_err()
66 __func__, cmd, scp); in process_cmd_err()
67 scp->result = (DID_ERROR << 16); in process_cmd_err()
78 memcpy(scp->sense_buffer, ioasa->sense_data, in process_cmd_err()
80 scp->result = ioasa->rc.scsi_rc; in process_cmd_err()
82 scp->result = ioasa->rc.scsi_rc | (DID_ERROR << 16); in process_cmd_err()
93 scp->result = (DID_REQUEUE << 16); in process_cmd_err()
103 scp->result = (DID_ERROR << 16); in process_cmd_err()
[all …]
/linux/arch/arm64/boot/dts/arm/
H A Djuno-scmi.dtsi201 /delete-node/ scp-sram@0;
202 /delete-node/ scp-sram@200;
204 cpu_scp_lpri0: scp-sram@0 {
209 cpu_scp_lpri1: scp-sram@80 {
214 cpu_scp_hpri0: scp-sram@100 {
219 cpu_scp_hpri1: scp-sram@180 {
/linux/tools/testing/ktest/examples/include/
H A Dbootconfig.conf21 BOOTCONFIG_TEST_PREP = scp ${BOOTCONFIG_PATH}${BOOTCONFIG_FILE} ${SSH_USER}@${MACHINE}:/tmp && ${AD…
28 DO_TEST = scp ${BOOTCONFIG_PATH}${BOOTCONFIG_VERIFY} ${SSH_USER}@${MACHINE}:/tmp && ${SSH} /tmp/${B…
/linux/drivers/net/ethernet/i825xx/
H A Dsun3_82586.c152 volatile struct scp_struct *scp; /* volatile is important */ member
218 p->scp = (struct scp_struct *)(p->base + SCP_DEFAULT_ADDRESS); in check586()
219 memset((char *)p->scp,0, sizeof(struct scp_struct)); in check586()
221 if(((char *)p->scp)[i]) in check586()
223 p->scp->sysbus = SYSBUSVAL; /* 1 = 8Bit-Bus, 0 = 16 Bit */ in check586()
224 if(p->scp->sysbus != SYSBUSVAL) in check586()
232 p->scp->iscp = make24(p->iscp); in check586()
255 p->scp = (struct scp_struct *) (p->base + SCP_DEFAULT_ADDRESS); in alloc586()
260 memset((char *) p->scp ,0,sizeof(struct scp_struct)); in alloc586()
262 p->scp->iscp = make24(p->iscp); in alloc586()
[all …]
H A D82596.c316 volatile struct i596_scp scp; member
463 &lp->scp, lp->scp.sysbus, lp->scp.iscp); in i596_display_data()
648 MPU_PORT(dev, PORT_ALTSCP, (void *)virt_to_bus((void *)&lp->scp)); in init_i596_mem()
656 lp->scp.sysbus = 0x00000054; in init_i596_mem()
660 lp->scp.sysbus = 0x0000004c; in init_i596_mem()
663 lp->scp.iscp = WSWAPiscp(virt_to_bus((void *)&lp->iscp)); in init_i596_mem()
H A Dlib82596.c300 struct i596_scp scp __attribute__((aligned(32))); member
442 &dma->scp, dma->scp.sysbus, SWAP32(dma->scp.iscp)); in i596_display_data()
594 dma->scp.sysbus = SYSBUS; in init_i596_mem()
595 dma->scp.iscp = SWAP32(virt_to_dma(lp, &(dma->iscp))); in init_i596_mem()
605 dma_sync_dev(dev, &(dma->scp), sizeof(struct i596_scp)); in init_i596_mem()
609 mpu_port(dev, PORT_ALTSCP, virt_to_dma(lp, &dma->scp)); in init_i596_mem()
/linux/drivers/net/
H A Deql.c482 static int eql_g_slave_cfg(struct net_device *dev, slave_config_t __user *scp) in eql_g_slave_cfg() argument
490 if (copy_from_user(&sc, scp, sizeof (slave_config_t))) in eql_g_slave_cfg()
509 if (!ret && copy_to_user(scp, &sc, sizeof (slave_config_t))) in eql_g_slave_cfg()
515 static int eql_s_slave_cfg(struct net_device *dev, slave_config_t __user *scp) in eql_s_slave_cfg() argument
523 if (copy_from_user(&sc, scp, sizeof (slave_config_t))) in eql_s_slave_cfg()
/linux/fs/ext4/
H A Dhash.c122 const signed char *scp = (const signed char *) name; in dx_hack_hash_signed() local
125 hash = hash1 + (hash0 ^ (((int) *scp++) * 7152373)); in dx_hack_hash_signed()
139 const signed char *scp = (const signed char *) msg; in str2hashbuf_signed() local
148 val = ((int) scp[i]) + (val << 8); in str2hashbuf_signed()
/linux/drivers/tty/serial/
H A Dcpm_uart.c753 scc_t __iomem *scp; in cpm_uart_init_scc() local
758 scp = pinfo->sccp; in cpm_uart_init_scc()
801 out_be32(&scp->scc_gsmrh, 0); in cpm_uart_init_scc()
802 out_be32(&scp->scc_gsmrl, in cpm_uart_init_scc()
806 out_be16(&scp->scc_sccm, 0); in cpm_uart_init_scc()
807 out_be16(&scp->scc_scce, 0xffff); in cpm_uart_init_scc()
808 out_be16(&scp->scc_dsr, 0x7e7e); in cpm_uart_init_scc()
809 out_be16(&scp->scc_psmr, 0x3000); in cpm_uart_init_scc()
811 setbits32(&scp->scc_gsmrl, SCC_GSMRL_ENR | SCC_GSMRL_ENT); in cpm_uart_init_scc()
/linux/Documentation/scsi/
H A Dscsi_mid_low_api.rst697 * @scp: identifies command timing out
718 int eh_timed_out(struct scsi_cmnd * scp)
722 * eh_abort_handler - abort command associated with scp
723 * @scp: identifies command to be aborted
739 int eh_abort_handler(struct scsi_cmnd * scp)
744 * @scp: SCSI bus that contains this device should be reset
757 int eh_bus_reset_handler(struct scsi_cmnd * scp)
762 * @scp: identifies SCSI device to be reset
775 int eh_device_reset_handler(struct scsi_cmnd * scp)
780 * @scp: SCSI host that contains this device should be reset
[all …]
/linux/tools/sound/
H A Ddapm-graph83 scp -q "${1}:${3}/dapm.tar" "${3}"

123