Lines Matching defs:s
334 static unsigned int ospi_stig_addr_len(XlnxVersalOspi *s) in ospi_stig_addr_len()
341 static unsigned int ospi_stig_wr_data_len(XlnxVersalOspi *s) in ospi_stig_wr_data_len()
348 static unsigned int ospi_stig_rd_data_len(XlnxVersalOspi *s) in ospi_stig_rd_data_len()
359 static void set_irq(XlnxVersalOspi *s, uint32_t set_mask) in set_irq()
364 static void ospi_update_irq_line(XlnxVersalOspi *s) in ospi_update_irq_line()
370 static uint8_t ospi_get_wr_opcode(XlnxVersalOspi *s) in ospi_get_wr_opcode()
376 static uint8_t ospi_get_rd_opcode(XlnxVersalOspi *s) in ospi_get_rd_opcode()
382 static uint32_t ospi_get_num_addr_bytes(XlnxVersalOspi *s) in ospi_get_num_addr_bytes()
389 static void ospi_stig_membank_req(XlnxVersalOspi *s) in ospi_stig_membank_req()
398 static int ospi_stig_membank_rd_bytes(XlnxVersalOspi *s) in ospi_stig_membank_rd_bytes()
406 static uint32_t ospi_get_page_sz(XlnxVersalOspi *s) in ospi_get_page_sz()
412 static bool ospi_ind_rd_watermark_enabled(XlnxVersalOspi *s) in ospi_ind_rd_watermark_enabled()
459 static bool ospi_ind_op_all_completed(XlnxVersalOspi *s) in ospi_ind_op_all_completed()
489 static void ospi_ind_op_queue_up_rd(XlnxVersalOspi *s) in ospi_ind_op_queue_up_rd()
502 static void ospi_ind_op_queue_up_wr(XlnxVersalOspi *s) in ospi_ind_op_queue_up_wr()
515 static uint64_t flash_sz(XlnxVersalOspi *s, unsigned int cs) in flash_sz()
526 static unsigned int ospi_get_block_sz(XlnxVersalOspi *s) in ospi_get_block_sz()
534 static unsigned int flash_blocks(XlnxVersalOspi *s, unsigned int cs) in flash_blocks()
542 static int ospi_ahb_decoder_cs(XlnxVersalOspi *s, hwaddr addr) in ospi_ahb_decoder_cs()
563 static void ospi_ahb_decoder_enable_cs(XlnxVersalOspi *s, hwaddr addr) in ospi_ahb_decoder_enable_cs()
574 static unsigned int single_cs(XlnxVersalOspi *s) in single_cs()
595 static void ospi_update_cs_lines(XlnxVersalOspi *s) in ospi_update_cs_lines()
613 static void ospi_dac_cs(XlnxVersalOspi *s, hwaddr addr) in ospi_dac_cs()
622 static void ospi_disable_cs(XlnxVersalOspi *s) in ospi_disable_cs()
631 static void ospi_flush_txfifo(XlnxVersalOspi *s) in ospi_flush_txfifo()
641 static void ospi_tx_fifo_push_address_raw(XlnxVersalOspi *s, in ospi_tx_fifo_push_address_raw()
658 static void ospi_tx_fifo_push_address(XlnxVersalOspi *s, uint32_t flash_addr) in ospi_tx_fifo_push_address()
666 static void ospi_tx_fifo_push_stig_addr(XlnxVersalOspi *s) in ospi_tx_fifo_push_stig_addr()
674 static void ospi_tx_fifo_push_rd_op_addr(XlnxVersalOspi *s, uint32_t flash_addr) in ospi_tx_fifo_push_rd_op_addr()
687 static void ospi_tx_fifo_push_stig_wr_data(XlnxVersalOspi *s) in ospi_tx_fifo_push_stig_wr_data()
700 static void ospi_tx_fifo_push_stig_rd_data(XlnxVersalOspi *s) in ospi_tx_fifo_push_stig_rd_data()
717 static void ospi_rx_fifo_pop_stig_rd_data(XlnxVersalOspi *s) in ospi_rx_fifo_pop_stig_rd_data()
735 static void ospi_ind_read(XlnxVersalOspi *s, uint32_t flash_addr, uint32_t len) in ospi_ind_read()
762 static unsigned int ospi_dma_burst_size(XlnxVersalOspi *s) in ospi_dma_burst_size()
769 static unsigned int ospi_dma_single_size(XlnxVersalOspi *s) in ospi_dma_single_size()
776 static void ind_rd_inc_num_done(XlnxVersalOspi *s) in ind_rd_inc_num_done()
789 static void ospi_ind_rd_completed(XlnxVersalOspi *s) in ospi_ind_rd_completed()
801 static void ospi_dma_read(XlnxVersalOspi *s) in ospi_dma_read()
829 static void ospi_do_ind_read(XlnxVersalOspi *s) in ospi_do_ind_read()
878 static void ospi_transmit_wel(XlnxVersalOspi *s, bool ahb_decoder_cs, in ospi_transmit_wel()
896 static void ospi_ind_write(XlnxVersalOspi *s, uint32_t flash_addr, uint32_t len) in ospi_ind_write()
933 static void ind_wr_inc_num_done(XlnxVersalOspi *s) in ind_wr_inc_num_done()
945 static void ospi_ind_wr_completed(XlnxVersalOspi *s) in ospi_ind_wr_completed()
957 static void ospi_do_indirect_write(XlnxVersalOspi *s) in ospi_do_indirect_write()
997 static void ospi_stig_fill_membank(XlnxVersalOspi *s) in ospi_stig_fill_membank()
1014 static void ospi_stig_cmd_exec(XlnxVersalOspi *s) in ospi_stig_cmd_exec()
1059 static uint32_t ospi_block_address(XlnxVersalOspi *s, unsigned int block) in ospi_block_address()
1073 static uint32_t ospi_get_wr_prot_addr_low(XlnxVersalOspi *s) in ospi_get_wr_prot_addr_low()
1080 static uint32_t ospi_get_wr_prot_addr_upper(XlnxVersalOspi *s) in ospi_get_wr_prot_addr_upper()
1088 static bool ospi_is_write_protected(XlnxVersalOspi *s, hwaddr addr) in ospi_is_write_protected()
1104 static uint64_t ospi_rx_sram_read(XlnxVersalOspi *s, unsigned int size) in ospi_rx_sram_read()
1126 static void ospi_tx_sram_write(XlnxVersalOspi *s, uint64_t value, in ospi_tx_sram_write()
1137 XlnxVersalOspi *s = XILINX_VERSAL_OSPI(opaque); in ospi_do_dac_read() local
1176 XlnxVersalOspi *s = XILINX_VERSAL_OSPI(opaque); in ospi_do_dac_write() local
1213 XlnxVersalOspi *s = XILINX_VERSAL_OSPI(reg->opaque); in flash_cmd_ctrl_mem_reg_post_write() local
1227 XlnxVersalOspi *s = XILINX_VERSAL_OSPI(reg->opaque); in flash_cmd_ctrl_reg_post_write() local
1237 static uint64_t ind_wr_dec_num_done(XlnxVersalOspi *s, uint64_t val) in ind_wr_dec_num_done()
1248 static bool ind_wr_clearing_op_done(XlnxVersalOspi *s, uint64_t new_val) in ind_wr_clearing_op_done()
1261 XlnxVersalOspi *s = XILINX_VERSAL_OSPI(reg->opaque); in ind_wr_xfer_ctrl_reg_pre_write() local
1271 XlnxVersalOspi *s = XILINX_VERSAL_OSPI(reg->opaque); in ind_wr_xfer_ctrl_reg_post_write() local
1293 XlnxVersalOspi *s = XILINX_VERSAL_OSPI(reg->opaque); in ind_wr_xfer_ctrl_reg_post_read() local
1308 static uint64_t ind_rd_dec_num_done(XlnxVersalOspi *s, uint64_t val) in ind_rd_dec_num_done()
1322 XlnxVersalOspi *s = XILINX_VERSAL_OSPI(reg->opaque); in ind_rd_xfer_ctrl_reg_pre_write() local
1334 XlnxVersalOspi *s = XILINX_VERSAL_OSPI(reg->opaque); in ind_rd_xfer_ctrl_reg_post_write() local
1352 XlnxVersalOspi *s = XILINX_VERSAL_OSPI(reg->opaque); in ind_rd_xfer_ctrl_reg_post_read() local
1369 XlnxVersalOspi *s = XILINX_VERSAL_OSPI(reg->opaque); in sram_fill_reg_post_read() local
1377 XlnxVersalOspi *s = XILINX_VERSAL_OSPI(reg->opaque); in dll_obs_upper_reg_post_read() local
1395 XlnxVersalOspi *s = XILINX_VERSAL_OSPI(dev); in xlnx_versal_ospi_reset() local
1586 XlnxVersalOspi *s = xilinx_ospi_of_mr(opaque); in ospi_write() local
1604 XlnxVersalOspi *s = XILINX_VERSAL_OSPI(opaque); in ospi_indac_read() local
1615 XlnxVersalOspi *s = XILINX_VERSAL_OSPI(opaque); in ospi_indac_write() local
1628 static bool is_inside_indac_range(XlnxVersalOspi *s, hwaddr addr) in is_inside_indac_range()
1648 static bool ospi_is_indac_active(XlnxVersalOspi *s) in ospi_is_indac_active()
1659 XlnxVersalOspi *s = XILINX_VERSAL_OSPI(opaque); in ospi_dac_read() local
1686 XlnxVersalOspi *s = XILINX_VERSAL_OSPI(opaque); in ospi_dac_write() local
1730 XlnxVersalOspi *s = XILINX_VERSAL_OSPI(opaque); in ospi_update_dac_status() local
1737 XlnxVersalOspi *s = XILINX_VERSAL_OSPI(dev); in xlnx_versal_ospi_realize() local
1755 XlnxVersalOspi *s = XILINX_VERSAL_OSPI(obj); in xlnx_versal_ospi_init() local