Home
last modified time | relevance | path

Searched refs:spad (Results 1 – 17 of 17) sorted by relevance

/kernel/linux/linux-5.10/drivers/ntb/test/
Dntb_tool.c1159 struct tool_spad *spad = filep->private_data; in tool_spad_read() local
1163 if (!spad->tc->ntb->ops->spad_read) in tool_spad_read()
1167 ntb_spad_read(spad->tc->ntb, spad->sidx)); in tool_spad_read()
1175 struct tool_spad *spad = filep->private_data; in tool_spad_write() local
1179 if (!spad->tc->ntb->ops->spad_write) { in tool_spad_write()
1180 dev_dbg(&spad->tc->ntb->dev, "no spad write fn\n"); in tool_spad_write()
1188 ret = ntb_spad_write(spad->tc->ntb, spad->sidx, val); in tool_spad_write()
1200 struct tool_spad *spad = filep->private_data; in tool_peer_spad_read() local
1204 if (!spad->tc->ntb->ops->peer_spad_read) in tool_peer_spad_read()
1208 ntb_peer_spad_read(spad->tc->ntb, spad->pidx, spad->sidx)); in tool_peer_spad_read()
[all …]
/kernel/linux/linux-5.10/drivers/ntb/hw/mscc/
Dntb_hw_switchtec.c39 u32 spad[128]; member
726 return ARRAY_SIZE(sndev->self_shared->spad); in switchtec_ntb_spad_count()
733 if (idx < 0 || idx >= ARRAY_SIZE(sndev->self_shared->spad)) in switchtec_ntb_spad_read()
739 return sndev->self_shared->spad[idx]; in switchtec_ntb_spad_read()
746 if (idx < 0 || idx >= ARRAY_SIZE(sndev->self_shared->spad)) in switchtec_ntb_spad_write()
752 sndev->self_shared->spad[idx] = val; in switchtec_ntb_spad_write()
765 if (sidx < 0 || sidx >= ARRAY_SIZE(sndev->peer_shared->spad)) in switchtec_ntb_peer_spad_read()
771 return ioread32(&sndev->peer_shared->spad[sidx]); in switchtec_ntb_peer_spad_read()
782 if (sidx < 0 || sidx >= ARRAY_SIZE(sndev->peer_shared->spad)) in switchtec_ntb_peer_spad_write()
788 iowrite32(val, &sndev->peer_shared->spad[sidx]); in switchtec_ntb_peer_spad_write()
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/imx/
Dimx-media-dev-common.c233 struct media_pad *pad, *spad = &entity->pads[i]; in imx_media_inherit_controls() local
235 if (!(spad->flags & MEDIA_PAD_FL_SINK)) in imx_media_inherit_controls()
238 pad = media_entity_remote_pad(spad); in imx_media_inherit_controls()
Dimx-media-utils.c716 struct media_pad *spad = &me->pads[i]; in imx_media_pipeline_pad() local
718 if ((upstream && !(spad->flags & MEDIA_PAD_FL_SINK)) || in imx_media_pipeline_pad()
719 (!upstream && !(spad->flags & MEDIA_PAD_FL_SOURCE))) in imx_media_pipeline_pad()
722 pad = media_entity_remote_pad(spad); in imx_media_pipeline_pad()
/kernel/linux/linux-5.10/drivers/ntb/
Dntb_transport.c698 int spad = qp_num * 2 + nt->msi_spad_offset; in ntb_transport_setup_qp_peer_msi() local
703 if (spad >= ntb_spad_count(nt->ndev)) in ntb_transport_setup_qp_peer_msi()
707 ntb_peer_spad_read(qp->ndev, PIDX, spad); in ntb_transport_setup_qp_peer_msi()
709 ntb_peer_spad_read(qp->ndev, PIDX, spad + 1); in ntb_transport_setup_qp_peer_msi()
725 int spad = qp_num * 2 + nt->msi_spad_offset; in ntb_transport_setup_qp_msi() local
731 if (spad >= ntb_spad_count(nt->ndev)) { in ntb_transport_setup_qp_msi()
737 ntb_spad_write(qp->ndev, spad, 0); in ntb_transport_setup_qp_msi()
738 ntb_spad_write(qp->ndev, spad + 1, 0); in ntb_transport_setup_qp_msi()
752 rc = ntb_spad_write(qp->ndev, spad, qp->msi_desc.addr_offset); in ntb_transport_setup_qp_msi()
756 rc = ntb_spad_write(qp->ndev, spad + 1, qp->msi_desc.data); in ntb_transport_setup_qp_msi()
[all …]
/kernel/linux/linux-5.10/drivers/ntb/hw/intel/
Dntb_hw_intel.h117 unsigned long spad; member
Dntb_hw_gen1.c1168 ndev->self_reg->spad); in intel_ntb_spad_read()
1177 ndev->self_reg->spad); in intel_ntb_spad_write()
1186 ndev->peer_reg->spad); in intel_ntb_peer_spad_addr()
1195 ndev->peer_reg->spad); in intel_ntb_peer_spad_read()
1205 ndev->peer_reg->spad); in intel_ntb_peer_spad_write()
1950 .spad = XEON_SPAD_OFFSET,
1957 .spad = XEON_SPAD_OFFSET + (XEON_SPAD_COUNT << 1),
1962 .spad = XEON_B2B_SPAD_OFFSET,
Dntb_hw_gen3.c77 .spad = GEN3_IM_SPAD_OFFSET,
84 .spad = GEN3_B2B_SPAD_OFFSET,
Dntb_hw_gen4.c35 .spad = GEN4_IM_SPAD_OFFSET,
46 .spad = GEN4_EM_SPAD_OFFSET,
/kernel/linux/linux-5.10/Documentation/driver-api/
Dntb.rst193 * *hw*/spad
197 (eg: `echo '4 0x123 7 0xabc' > spad`
201 *spad* for details.
/kernel/linux/linux-5.10/drivers/media/platform/exynos4-is/
Dmedia-dev.c81 struct media_pad *spad = &me->pads[i]; in fimc_pipeline_prepare() local
82 if (!(spad->flags & MEDIA_PAD_FL_SINK)) in fimc_pipeline_prepare()
84 pad = media_entity_remote_pad(spad); in fimc_pipeline_prepare()
/kernel/linux/linux-5.10/drivers/staging/media/rkisp1/
Drkisp1-capture.c858 struct media_pad *spad = &entity->pads[i]; in rkisp1_pipeline_sink_walk() local
860 if (!(spad->flags & MEDIA_PAD_FL_SINK)) in rkisp1_pipeline_sink_walk()
862 pad = media_entity_remote_pad(spad); in rkisp1_pipeline_sink_walk()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dminimal.c50 err = mlxsw_reg_query(mlxsw_m->core, MLXSW_REG(spad), spad_pl); in mlxsw_m_base_mac_get()
Dswitchib.c111 err = mlxsw_reg_query(mlxsw_sib->core, MLXSW_REG(spad), spad_pl); in mlxsw_sib_hw_id_get()
Dswitchx2.c877 err = mlxsw_reg_query(mlxsw_sx->core, MLXSW_REG(spad), spad_pl); in mlxsw_sx_hw_id_get()
Dreg.h62 MLXSW_REG_DEFINE(spad, MLXSW_REG_SPAD_ID, MLXSW_REG_SPAD_LEN);
70 MLXSW_ITEM_BUF(reg, spad, base_mac, 0x02, 6);
11113 MLXSW_REG(spad),
Dspectrum.c284 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(spad), spad_pl); in mlxsw_sp_base_mac_get()