Lines Matching +full:smp +full:- +full:offset

1 // SPDX-License-Identifier: GPL-2.0
324 static void __init cpm_write_patch(cpm8xx_t *cp, int offset, uint *patch, int len) in cpm_write_patch() argument
328 memcpy_toio(cp->cp_dpmem + offset, patch, len); in cpm_write_patch()
333 out_be16(&cp->cp_rccr, 0); in cpm_load_patch()
345 iip = (iic_t *)&cp->cp_dparam[PROFF_IIC]; in cpm_load_patch()
346 out_be16(&iip->iic_rpbase, rpbase); in cpm_load_patch()
348 /* Put SPI above the IIC, also 32-byte aligned. */ in cpm_load_patch()
349 spp = (struct spi_pram *)&cp->cp_dparam[PROFF_SPI]; in cpm_load_patch()
350 out_be16(&spp->rpbase, (rpbase + sizeof(iic_t) + 31) & ~31); in cpm_load_patch()
353 smc_uart_t *smp; in cpm_load_patch() local
355 smp = (smc_uart_t *)&cp->cp_dparam[PROFF_SMC1]; in cpm_load_patch()
356 out_be16(&smp->smc_rpbase, 0x1FC0); in cpm_load_patch()
361 smc_uart_t *smp; in cpm_load_patch() local
366 for (i = 0; i < sizeof(*smp); i += 4) { in cpm_load_patch()
367 u32 __iomem *src = (u32 __iomem *)&cp->cp_dparam[PROFF_SMC1 + i]; in cpm_load_patch()
368 u32 __iomem *dst = (u32 __iomem *)&cp->cp_dparam[PROFF_DSP1 + i]; in cpm_load_patch()
374 smp = (smc_uart_t *)&cp->cp_dparam[PROFF_SMC1]; in cpm_load_patch()
375 out_be16(&smp->smc_rpbase, 0x1ec0); in cpm_load_patch()
376 smp = (smc_uart_t *)&cp->cp_dparam[PROFF_SMC2]; in cpm_load_patch()
377 out_be16(&smp->smc_rpbase, 0x1fc0); in cpm_load_patch()
380 out_be16(&cp->cp_cpmcr1, patch_params.cpmcr1); in cpm_load_patch()
381 out_be16(&cp->cp_cpmcr2, patch_params.cpmcr2); in cpm_load_patch()
382 out_be16(&cp->cp_cpmcr3, patch_params.cpmcr3); in cpm_load_patch()
383 out_be16(&cp->cp_cpmcr4, patch_params.cpmcr4); in cpm_load_patch()
385 out_be16(&cp->cp_rccr, patch_params.rccr); in cpm_load_patch()