/kernel/linux/linux-5.10/drivers/remoteproc/ |
D | mtk_scp.c | 63 void scp_put(struct mtk_scp *scp) in scp_put() argument 65 put_device(scp->dev); in scp_put() 69 static void scp_wdt_handler(struct mtk_scp *scp, u32 scp_to_host) in scp_wdt_handler() argument 71 dev_err(scp->dev, "SCP watchdog timeout! 0x%x", scp_to_host); in scp_wdt_handler() 72 rproc_report_crash(scp->rproc, RPROC_WATCHDOG); in scp_wdt_handler() 77 struct mtk_scp *scp = (struct mtk_scp *)priv; in scp_init_ipi_handler() local 80 scp->run.signaled = run->signaled; in scp_init_ipi_handler() 81 strscpy(scp->run.fw_ver, run->fw_ver, SCP_FW_VER_LEN); in scp_init_ipi_handler() 82 scp->run.dec_capability = run->dec_capability; in scp_init_ipi_handler() 83 scp->run.enc_capability = run->enc_capability; in scp_init_ipi_handler() [all …]
|
D | mtk_scp_ipi.c | 28 int scp_ipi_register(struct mtk_scp *scp, in scp_ipi_register() argument 33 if (!scp) in scp_ipi_register() 39 scp_ipi_lock(scp, id); in scp_ipi_register() 40 scp->ipi_desc[id].handler = handler; in scp_ipi_register() 41 scp->ipi_desc[id].priv = priv; in scp_ipi_register() 42 scp_ipi_unlock(scp, id); in scp_ipi_register() 56 void scp_ipi_unregister(struct mtk_scp *scp, u32 id) in scp_ipi_unregister() argument 58 if (!scp) in scp_ipi_unregister() 64 scp_ipi_lock(scp, id); in scp_ipi_unregister() 65 scp->ipi_desc[id].handler = NULL; in scp_ipi_unregister() [all …]
|
D | mtk_common.h | 74 int (*scp_before_load)(struct mtk_scp *scp); 75 void (*scp_irq_handler)(struct mtk_scp *scp); 76 void (*scp_reset_assert)(struct mtk_scp *scp); 77 void (*scp_reset_deassert)(struct mtk_scp *scp); 78 void (*scp_stop)(struct mtk_scp *scp); 124 void scp_ipi_lock(struct mtk_scp *scp, u32 id); 125 void scp_ipi_unlock(struct mtk_scp *scp, u32 id);
|
/kernel/linux/linux-5.10/net/decnet/ |
D | dn_nsp_out.c | 69 struct dn_scp *scp = DN_SK(sk); in dn_nsp_send() local 74 scp->stamp = jiffies; in dn_nsp_send() 86 fld.saddr = dn_saddr2dn(&scp->addr); in dn_nsp_send() 87 fld.daddr = dn_saddr2dn(&scp->peer); in dn_nsp_send() 88 dn_sk_ports_copy(&fld, scp); in dn_nsp_send() 136 struct dn_scp *scp = DN_SK(sk); in dn_nsp_persist() local 138 unsigned long t = ((scp->nsp_srtt >> 2) + scp->nsp_rttvar) >> 1; in dn_nsp_persist() 140 t *= nsp_backoff[scp->nsp_rxtshift]; in dn_nsp_persist() 145 if (scp->nsp_rxtshift < NSP_MAXRXTSHIFT) in dn_nsp_persist() 146 scp->nsp_rxtshift++; in dn_nsp_persist() [all …]
|
D | af_decnet.c | 137 struct dn_scp scp; member 159 struct dn_scp *scp = DN_SK(sk); in dn_find_list() local 161 if (scp->addr.sdn_flags & SDF_WILD) in dn_find_list() 164 return &dn_sk_hash[le16_to_cpu(scp->addrloc) & DN_SK_HASH_MASK]; in dn_find_list() 178 struct dn_scp *scp = DN_SK(sk); in check_port() local 179 if (scp->addrloc == port) in check_port() 187 struct dn_scp *scp = DN_SK(sk); in port_alloc() local 196 scp->addrloc = cpu_to_le16(port); in port_alloc() 208 struct dn_scp *scp = DN_SK(sk); in dn_hash_sock() local 216 if (!scp->addrloc && !port_alloc(sk)) in dn_hash_sock() [all …]
|
D | dn_nsp_in.c | 94 struct dn_scp *scp = DN_SK(sk); in dn_ack() local 100 if (dn_after(ack, scp->ackrcv_dat)) { in dn_ack() 101 scp->ackrcv_dat = ack & 0x0fff; in dn_ack() 103 &scp->data_xmit_queue, in dn_ack() 110 if (dn_after(ack, scp->ackrcv_oth)) { in dn_ack() 111 scp->ackrcv_oth = ack & 0x0fff; in dn_ack() 113 &scp->other_xmit_queue, in dn_ack() 339 struct dn_scp *scp = DN_SK(sk); in dn_nsp_conn_conf() local 350 if ((scp->state == DN_CI) || (scp->state == DN_CD)) { in dn_nsp_conn_conf() 351 scp->persist = 0; in dn_nsp_conn_conf() [all …]
|
D | dn_timer.c | 53 struct dn_scp *scp = DN_SK(sk); in dn_slow_timer() local 73 if (scp->persist && scp->persist_fxn) { in dn_slow_timer() 74 if (scp->persist <= SLOW_INTERVAL) { in dn_slow_timer() 75 scp->persist = 0; in dn_slow_timer() 77 if (scp->persist_fxn(sk)) in dn_slow_timer() 80 scp->persist -= SLOW_INTERVAL; in dn_slow_timer() 95 if (scp->keepalive && scp->keepalive_fxn && (scp->state == DN_RUN)) { in dn_slow_timer() 96 if (time_after_eq(jiffies, scp->stamp + scp->keepalive)) in dn_slow_timer() 97 scp->keepalive_fxn(sk); in dn_slow_timer()
|
/kernel/linux/linux-5.10/drivers/scsi/megaraid/ |
D | mega_common.h | 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 227 #define MRAID_GET_DEVICE_MAP(adp, scp, p_chan, target, islogical) \ argument [all …]
|
D | megaraid_mbox.c | 1071 scb->scp = NULL; in megaraid_alloc_cmd_packets() 1272 megaraid_alloc_scb(adapter_t *adapter, struct scsi_cmnd *scp) in megaraid_alloc_scb() argument 1292 scb->scp = scp; in megaraid_alloc_scb() 1316 scb->scp = NULL; in megaraid_dealloc_scb() 1339 struct scsi_cmnd *scp; in megaraid_mbox_mksgl() local 1344 scp = scb->scp; in megaraid_mbox_mksgl() 1347 sgcnt = scsi_dma_map(scp); in megaraid_mbox_mksgl() 1356 scsi_for_each_sg(scp, sgl, sgcnt, i) { in megaraid_mbox_mksgl() 1437 megaraid_queue_command_lck(struct scsi_cmnd *scp, void (*done)(struct scsi_cmnd *)) in megaraid_queue_command_lck() argument 1443 adapter = SCP2ADAPTER(scp); in megaraid_queue_command_lck() [all …]
|
D | megaraid_sas_fusion.c | 2235 struct scsi_cmnd *scp, in megasas_make_sgl_fusion() argument 2251 scsi_for_each_sg(scp, os_sgl, sge_count, i) { in megasas_make_sgl_fusion() 2311 int megasas_make_sgl(struct megasas_instance *instance, struct scsi_cmnd *scp, in megasas_make_sgl() argument 2318 sge_count = scsi_dma_map(scp); in megasas_make_sgl() 2327 build_prp = megasas_make_prp_nvme(instance, scp, sgl_chain64, in megasas_make_sgl() 2331 megasas_make_sgl_fusion(instance, scp, sgl_chain64, in megasas_make_sgl() 2350 struct IO_REQUEST_INFO *io_info, struct scsi_cmnd *scp, in megasas_set_pd_lba() argument 2368 if (scp->sc_data_direction == DMA_FROM_DEVICE) in megasas_set_pd_lba() 2397 if (scp->sc_data_direction == DMA_FROM_DEVICE) { in megasas_set_pd_lba() 2411 io_request->EEDPBlockSize = cpu_to_le32(scp->device->sector_size); in megasas_set_pd_lba() [all …]
|
D | megaraid_sas_base.c | 1252 megasas_make_sgl32(struct megasas_instance *instance, struct scsi_cmnd *scp, in megasas_make_sgl32() argument 1259 sge_count = scsi_dma_map(scp); in megasas_make_sgl32() 1263 scsi_for_each_sg(scp, os_sgl, sge_count, i) { in megasas_make_sgl32() 1281 megasas_make_sgl64(struct megasas_instance *instance, struct scsi_cmnd *scp, in megasas_make_sgl64() argument 1288 sge_count = scsi_dma_map(scp); in megasas_make_sgl64() 1292 scsi_for_each_sg(scp, os_sgl, sge_count, i) { in megasas_make_sgl64() 1311 struct scsi_cmnd *scp, union megasas_sgl *mfi_sgl) in megasas_make_sgl_skinny() argument 1317 sge_count = scsi_dma_map(scp); in megasas_make_sgl_skinny() 1320 scsi_for_each_sg(scp, os_sgl, sge_count, i) { in megasas_make_sgl_skinny() 1400 megasas_build_dcdb(struct megasas_instance *instance, struct scsi_cmnd *scp, in megasas_build_dcdb() argument [all …]
|
/kernel/linux/linux-5.10/drivers/soc/mediatek/ |
D | mtk-scpsys.c | 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() 293 struct scp *scp = scpd->scp; in scpsys_bus_protect_disable() local [all …]
|
/kernel/linux/linux-5.10/drivers/media/platform/mtk-vcodec/ |
D | mtk_vcodec_fw_scp.c | 9 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() 59 struct mtk_scp *scp; in mtk_vcodec_fw_scp_init() local 61 scp = scp_get(dev->plat_dev); in mtk_vcodec_fw_scp_init() 62 if (!scp) { in mtk_vcodec_fw_scp_init() [all …]
|
/kernel/linux/linux-5.10/include/linux/remoteproc/ |
D | mtk_scp.h | 49 void scp_put(struct mtk_scp *scp); 51 struct device *scp_get_device(struct mtk_scp *scp); 52 struct rproc *scp_get_rproc(struct mtk_scp *scp); 54 int scp_ipi_register(struct mtk_scp *scp, u32 id, scp_ipi_handler_t handler, 56 void scp_ipi_unregister(struct mtk_scp *scp, u32 id); 58 int scp_ipi_send(struct mtk_scp *scp, u32 id, void *buf, unsigned int len, 61 unsigned int scp_get_vdec_hw_capa(struct mtk_scp *scp); 62 unsigned int scp_get_venc_hw_capa(struct mtk_scp *scp); 64 void *scp_mapping_dm_addr(struct mtk_scp *scp, u32 mem_addr);
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | scsi_debug.c | 914 static void mk_sense_invalid_fld(struct scsi_cmnd *scp, in mk_sense_invalid_fld() argument 922 sbuff = scp->sense_buffer; in mk_sense_invalid_fld() 924 sdev_printk(KERN_ERR, scp->device, in mk_sense_invalid_fld() 949 sdev_printk(KERN_INFO, scp->device, "%s: [sense_key,asc,ascq" in mk_sense_invalid_fld() 954 static void mk_sense_buffer(struct scsi_cmnd *scp, int key, int asc, int asq) in mk_sense_buffer() argument 958 sbuff = scp->sense_buffer; in mk_sense_buffer() 960 sdev_printk(KERN_ERR, scp->device, in mk_sense_buffer() 969 sdev_printk(KERN_INFO, scp->device, in mk_sense_buffer() 974 static void mk_sense_invalid_opcode(struct scsi_cmnd *scp) in mk_sense_invalid_opcode() argument 976 mk_sense_buffer(scp, ILLEGAL_REQUEST, INVALID_OPCODE, 0); in mk_sense_invalid_opcode() [all …]
|
D | gdth.c | 122 struct scsi_cmnd *scp); 126 static void gdth_putq(gdth_ha_str *ha, struct scsi_cmnd *scp, u8 priority); 128 static int gdth_fill_raw_cmd(gdth_ha_str *ha, struct scsi_cmnd *scp, u8 b); 129 static int gdth_special_cmd(gdth_ha_str *ha, struct scsi_cmnd *scp); 137 static void gdth_copy_internal_data(gdth_ha_str *ha, struct scsi_cmnd *scp, 139 static int gdth_internal_cache_cmd(gdth_ha_str *ha, struct scsi_cmnd *scp); 140 static int gdth_fill_cache_cmd(gdth_ha_str *ha, struct scsi_cmnd *scp, 162 static int __gdth_queuecommand(gdth_ha_str *ha, struct scsi_cmnd *scp, 164 static void gdth_scsi_done(struct scsi_cmnd *scp); 316 static void gdth_scsi_done(struct scsi_cmnd *scp) in gdth_scsi_done() argument [all …]
|
D | hptiop.c | 719 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 …]
|
D | advansys.c | 3649 static void asc_scsi_done(struct scsi_cmnd *scp) in asc_scsi_done() argument 3651 scsi_dma_unmap(scp); in asc_scsi_done() 3652 ASC_STATS(scp->device->host, done); in asc_scsi_done() 3653 scp->scsi_done(scp); in asc_scsi_done() 5950 struct scsi_cmnd *scp; in adv_isr_callback() local 5963 scp = scsi_host_find_tag(boardp->shost, scsiqp->srb_tag); in adv_isr_callback() 5965 ASC_DBG(1, "scp 0x%p\n", scp); in adv_isr_callback() 5966 if (scp == NULL) { in adv_isr_callback() 5971 ASC_DBG_PRT_CDB(2, scp->cmnd, scp->cmd_len); in adv_isr_callback() 5973 reqp = (adv_req_t *)scp->host_scribble; in adv_isr_callback() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/cxlflash/ |
D | main.c | 42 static void process_cmd_err(struct afu_cmd *cmd, struct scsi_cmnd *scp) in process_cmd_err() argument 54 scsi_set_resid(scp, resid); in process_cmd_err() 56 __func__, cmd, scp, resid); in process_cmd_err() 61 __func__, cmd, scp); in process_cmd_err() 62 scp->result = (DID_ERROR << 16); in process_cmd_err() 73 memcpy(scp->sense_buffer, ioasa->sense_data, in process_cmd_err() 75 scp->result = ioasa->rc.scsi_rc; in process_cmd_err() 77 scp->result = ioasa->rc.scsi_rc | (DID_ERROR << 16); in process_cmd_err() 88 scp->result = (DID_REQUEUE << 16); in process_cmd_err() 98 scp->result = (DID_ERROR << 16); in process_cmd_err() [all …]
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/remoteproc/ |
D | mtk,scp.txt | 8 - compatible Should be "mediatek,mt8183-scp" 29 scp: scp@10500000 { 30 compatible = "mediatek,mt8183-scp";
|
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/ |
D | It_posix_pthread.h | 93 #define CASE(det, expl, scp, spa, sco, sta, gua, ssi, desc, res) \ argument 95 { 0 }, det, expl, scp, spa, sco, sta, gua, ssi, desc, NULL, res, \ 100 #define CASE_POS(det, expl, scp, spa, sco, sta, gua, ssi, desc) CASE(det, expl, scp, spa, sco, sta,… argument 101 #define CASE_NEG(det, expl, scp, spa, sco, sta, gua, ssi, desc) CASE(det, expl, scp, spa, sco, sta,… argument 102 #define CASE_UNK(det, expl, scp, spa, sco, sta, gua, ssi, desc) CASE(det, expl, scp, spa, sco, sta,… argument
|
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/ |
D | It_posix_pthread.h | 100 #define CASE(det, expl, scp, spa, sco, sta, gua, ssi, desc, res) \ argument 102 { 0 }, det, expl, scp, spa, sco, sta, gua, ssi, desc, NULL, res, \ 107 #define CASE_POS(det, expl, scp, spa, sco, sta, gua, ssi, desc) CASE(det, expl, scp, spa, sco, sta,… argument 108 #define CASE_NEG(det, expl, scp, spa, sco, sta, gua, ssi, desc) CASE(det, expl, scp, spa, sco, sta,… argument 109 #define CASE_UNK(det, expl, scp, spa, sco, sta, gua, ssi, desc) CASE(det, expl, scp, spa, sco, sta,… argument
|
/kernel/linux/linux-5.10/include/net/ |
D | dn.h | 190 static inline void dn_sk_ports_copy(struct flowidn *fld, struct dn_scp *scp) in dn_sk_ports_copy() argument 192 fld->fld_sport = scp->addrloc; in dn_sk_ports_copy() 193 fld->fld_dport = scp->addrrem; in dn_sk_ports_copy()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/i825xx/ |
D | sun3_82586.c | 150 volatile struct scp_struct *scp; /* volatile is important */ member 216 p->scp = (struct scp_struct *)(p->base + SCP_DEFAULT_ADDRESS); in check586() 217 memset((char *)p->scp,0, sizeof(struct scp_struct)); in check586() 219 if(((char *)p->scp)[i]) in check586() 221 p->scp->sysbus = SYSBUSVAL; /* 1 = 8Bit-Bus, 0 = 16 Bit */ in check586() 222 if(p->scp->sysbus != SYSBUSVAL) in check586() 230 p->scp->iscp = make24(p->iscp); in check586() 253 p->scp = (struct scp_struct *) (p->base + SCP_DEFAULT_ADDRESS); in alloc586() 258 memset((char *) p->scp ,0,sizeof(struct scp_struct)); in alloc586() 260 p->scp->iscp = make24(p->iscp); in alloc586() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ |
D | eql.c | 477 static int eql_g_slave_cfg(struct net_device *dev, slave_config_t __user *scp) in eql_g_slave_cfg() argument 485 if (copy_from_user(&sc, scp, sizeof (slave_config_t))) in eql_g_slave_cfg() 504 if (!ret && copy_to_user(scp, &sc, sizeof (slave_config_t))) in eql_g_slave_cfg() 510 static int eql_s_slave_cfg(struct net_device *dev, slave_config_t __user *scp) in eql_s_slave_cfg() argument 518 if (copy_from_user(&sc, scp, sizeof (slave_config_t))) in eql_s_slave_cfg()
|