Lines Matching defs:len
76 * @len: Length of the source buffer to be copied.
82 void scp_memcpy_aligned(void __iomem *dst, const void *src, unsigned int len)
96 __iowrite32_copy(dst + i, src + i, (len - i) / 4);
97 remain = (len - i) % 4;
100 val = readl_relaxed(dst + len - remain);
101 memcpy(&val, src + len - remain, remain);
102 writel_relaxed(val, dst + len - remain);
145 * @len: the data buffer length
155 int scp_ipi_send(struct mtk_scp *scp, u32 id, void *buf, unsigned int len,
164 WARN_ON(len > sizeof(send_obj->share_buf)) || WARN_ON(!buf))
185 scp_memcpy_aligned(send_obj->share_buf, buf, len);
187 writel(len, &send_obj->len);