Lines Matching defs:pc_rx_addr
243 int xspi_read(uint32_t pc_rx_addr, uint32_t *pc_rx_buf, uint32_t x_size_bytes)
251 return xspi_ahb_read(pc_rx_addr, pc_rx_buf, x_size_bytes);
253 return xspi_ip_read(pc_rx_addr, pc_rx_buf, x_size_bytes);
257 int xspi_ahb_read(uint32_t pc_rx_addr, uint32_t *pc_rx_buf, uint32_t x_size_bytes)
259 VERBOSE("In func %s 0x%x\n", __func__, (pc_rx_addr));
262 pc_rx_addr = ((uint32_t)(pcRxAddr & MASK_24BIT_ADDRESS));
264 pc_rx_addr = ((uint32_t)(pcRxAddr & MASK_32BIT_ADDRESS));
267 pc_rx_addr = ((uint32_t)(pcRxAddr + fspi_flash_base_addr));
269 if (((pc_rx_addr % 4) != 0) || (((uintptr_t)pc_rx_buf % 4) != 0)) {
271 __func__, (pc_rx_addr - fspi_flash_base_addr), pc_rx_buf);
275 memcpy(pc_rx_buf, (void *)(uintptr_t)pc_rx_addr, x_size_bytes);
282 int xspi_ip_read(uint32_t pc_rx_addr, uint32_t *pv_rx_buf, uint32_t ui_len)
291 x_addr = (uint32_t) pc_rx_addr;