Lines Matching refs:dma_port
154 ret = dma_port_flash_write(sw->dma_port, in nvm_validate_and_write()
166 return dma_port_flash_write(sw->dma_port, 0, buf, image_size); in nvm_validate_and_write()
186 ret = dma_port_flash_update_auth(sw->dma_port); in nvm_authenticate_host()
194 dma_port_power_cycle(sw->dma_port); in nvm_authenticate_host()
202 ret = dma_port_flash_update_auth(sw->dma_port); in nvm_authenticate_device()
215 ret = dma_port_flash_update_auth_status(sw->dma_port, &status); in nvm_authenticate_device()
225 dma_port_power_cycle(sw->dma_port); in nvm_authenticate_device()
248 ret = dma_port_flash_read(sw->dma_port, offset, val, bytes); in tb_switch_nvm_read()
325 if (!sw->dma_port) in tb_switch_nvm_add()
342 ret = dma_port_flash_read(sw->dma_port, NVM_FLASH_SIZE, &val, in tb_switch_nvm_add()
351 ret = dma_port_flash_read(sw->dma_port, NVM_VERSION, &val, in tb_switch_nvm_add()
1356 if (sw->dma_port && !sw->no_nvm_upgrade) in switch_attr_is_visible()
1360 if (sw->dma_port) in switch_attr_is_visible()
1387 dma_port_free(sw->dma_port); in tb_switch_release()
1716 sw->dma_port = dma_port_alloc(sw); in tb_switch_add_dma_port()
1717 if (!sw->dma_port) in tb_switch_add_dma_port()
1728 ret = dma_port_flash_update_auth_status(sw->dma_port, &status); in tb_switch_add_dma_port()
1745 dma_port_power_cycle(sw->dma_port); in tb_switch_add_dma_port()