OpenOCD
dw-spi-helper.h File Reference

Driver for SPI NOR flash chips connected via DesignWare SPI Core. More...

Include dependency graph for dw-spi-helper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dw_spi_check_fill
 Arguments for check_fill helper function. More...
 
struct  dw_spi_erase
 Arguments for erase helper function. More...
 
struct  dw_spi_program
 Arguments for program helper function. More...
 
struct  dw_spi_read
 Arguments for read helper function. More...
 
struct  dw_spi_transaction
 Arguments for transaction helper function. More...
 

Functions

struct dw_spi_transaction __attribute__ ((packed))
 

Variables

uint32_t address
 Starting address. Sector aligned. More...
 
uint64_t buffer
 Pointer to data buffer to send over SPI. More...
 
uint32_t buffer_size
 Size of dw_spi_program::buffer. More...
 
uint8_t busy_mask
 Busy mask. More...
 
uint64_t data_reg
 Pointer to DR register. More...
 
uint8_t erase_sector_cmd
 Erase sector command. More...
 
uint64_t fill_status_array
 Pointer to array describing sectors fill status. More...
 
uint8_t four_byte_mode
 Four byte addressing mode flag. More...
 
uint32_t page_size
 Page size. More...
 
uint8_t pattern
 Fill pattern. More...
 
uint8_t program_cmd
 Program command. More...
 
uint8_t read_cmd
 Read data command. More...
 
uint8_t read_flag
 When 1, store RX FIFO data to dw_spi_transaction::buffer. More...
 
uint8_t read_status_cmd
 Read status command. More...
 
uint32_t sector_count
 Number of sectors to check. More...
 
uint32_t sector_size
 Sector size. More...
 
uint32_t size
 Size of dw_spi_transaction::buffer. More...
 
uint64_t status_reg
 Pointer to SR register. More...
 
uint8_t write_enable_cmd
 Write enable command. More...
 
uint8_t write_enable_mask
 Write enable mask. More...
 

Detailed Description

Driver for SPI NOR flash chips connected via DesignWare SPI Core.

In order to avoid using stack, all helper function arguments are packed into a single struct, passed by pointer.

Pointers are represented by 64 bit integers to make structs compatible with 64 bit targets.

This file contains helper function argument structures.

Definition in file dw-spi-helper.h.

Function Documentation

◆ __attribute__()

struct dw_spi_transaction __attribute__ ( (packed)  )

Variable Documentation

◆ address

uint32_t address

Starting address. Sector aligned.

First sector address.

First page address.

First sector address. Sector aligned.

Page aligned when write is crossing the page boundary.

Definition at line 0 of file dw-spi-helper.h.

Referenced by aarch64_dap_write_memap_register_u32(), aarch64_prep_restart_smp(), aarch64_read_cpu_memory(), aarch64_read_memory(), aarch64_read_phys_memory(), aarch64_restore_one(), aarch64_resume(), aarch64_step(), aarch64_write_cpu_memory(), aarch64_write_memory(), aarch64_write_phys_memory(), adapter_read_memory(), adapter_resume(), adapter_step(), adapter_write_memory(), adbg_burst_command(), add_dbus_scan(), aduc702x_write_block(), aducm360_write_block_async(), aducm360_write_block_sync(), ambiqmicro_write_block(), arc_mem_read(), arc_mem_write(), arc_read_instruction_u32(), arc_resume(), arc_step(), arc_write_instruction_u32(), arm11_nextpc(), arm11_read_memory(), arm11_read_memory_inner(), arm11_read_memory_word(), arm11_resume(), arm11_sc7_clear_vbw(), arm11_sc7_run(), arm11_step(), arm11_write_memory(), arm11_write_memory_inner(), arm720t_read_memory(), arm720t_read_phys_memory(), arm720t_write_phys_memory(), arm7_9_bulk_write_memory(), arm7_9_read_memory(), arm7_9_resume(), arm7_9_step(), arm7_9_write_memory(), arm7_9_write_memory_no_opt(), arm7_9_write_memory_opt(), arm920t_read_cp15_interpreted(), arm920t_read_memory(), arm920t_read_phys_memory(), arm920t_write_cp15_interpreted(), arm920t_write_memory(), arm920t_write_phys_memory(), arm926ejs_cp15_read(), arm926ejs_cp15_write(), arm926ejs_read_phys_memory(), arm926ejs_write_memory(), arm926ejs_write_phys_memory(), arm946e_invalidate_dcache(), arm946e_invalidate_icache(), arm946e_read_memory(), arm946e_write_memory(), arm_blank_check_memory(), arm_checksum_memory(), arm_evaluate_opcode(), armv4_5_mmu_read_physical(), armv4_5_mmu_write_physical(), armv4_5_run_algorithm_inner(), armv7m_blank_check_memory(), armv7m_checksum_memory(), armv7m_start_algorithm(), armv7m_wait_algorithm(), at91sam9_address(), ath79_read_buffer(), ath79_write_buffer(), ath79_write_page(), avr32_ap7k_read_memory(), avr32_ap7k_write_memory(), bluenrgx_erase(), bluenrgx_write(), breakpoint_add(), breakpoint_add_internal(), breakpoint_find(), breakpoint_remove(), breakpoint_remove_internal(), cache_get32(), cache_write(), cc26xx_erase(), cc26xx_write(), cc3220sf_erase(), cc3220sf_write(), cfi_intel_write_block(), cfi_intel_write_word(), cfi_intel_write_words(), cfi_query_string(), cfi_read(), cfi_send_command(), cfi_spansion_write_block(), cfi_spansion_write_block_mips(), cfi_spansion_write_word(), cfi_spansion_write_words(), cfi_write(), cfi_write_word(), cfi_write_words(), check_flash_status(), cmapi_read_dap_reg(), cmapi_write_dap_reg(), COMMAND_HANDLER(), cortex_a_internal_restore(), cortex_a_read_buffer(), cortex_a_read_cpu_memory(), cortex_a_read_memory(), cortex_a_read_phys_memory(), cortex_a_restore_smp(), cortex_a_resume(), cortex_a_set_watchpoint(), cortex_a_step(), cortex_a_write_buffer(), cortex_a_write_cpu_memory(), cortex_a_write_memory(), cortex_a_write_phys_memory(), cortex_m_read_memory(), cortex_m_restore_one(), cortex_m_restore_smp(), cortex_m_resume(), cortex_m_step(), cortex_m_write_memory(), davinci_address(), dbus_read(), dbus_write(), decode_dmi(), dmi_op(), dmi_op_timeout(), dmi_read(), dmi_read_exec(), dmi_write(), dmi_write_exec(), dram_check32(), dram_read32(), dsp563xx_add_custom_watchpoint(), dsp563xx_read_buffer_default(), dsp563xx_read_memory(), dsp563xx_read_memory_core(), dsp563xx_read_memory_default(), dsp563xx_resume(), dsp563xx_run_algorithm(), dsp563xx_step(), dsp563xx_step_ex(), dsp563xx_write_buffer_default(), dsp563xx_write_memory(), dsp563xx_write_memory_core(), dsp563xx_write_memory_default(), dsp5680xx_convert_address(), dsp5680xx_f_ex(), dsp5680xx_f_signature(), dsp5680xx_f_wr(), dsp5680xx_read(), dsp5680xx_read_16_single(), dsp5680xx_read_32_single(), dsp5680xx_read_buffer(), dsp5680xx_resume(), dsp5680xx_write(), dsp5680xx_write_16(), dsp5680xx_write_16_single(), dsp5680xx_write_32(), dsp5680xx_write_32_single(), dsp5680xx_write_8(), dw_spi_ctrl_check_sectors_fill(), dw_spi_ctrl_erase_sectors(), dw_spi_ctrl_program(), dw_spi_ctrl_read(), dw_spi_write_buffer(), efm32x_write_block(), em357_write(), em357_write_block(), eneispif_read_reg(), eneispif_write_reg(), esirisc_flash_erase(), esirisc_jtag_read_byte(), esirisc_jtag_read_hword(), esirisc_jtag_read_word(), esirisc_jtag_write_byte(), esirisc_jtag_write_hword(), esirisc_jtag_write_word(), esirisc_read_memory(), esirisc_resume(), esirisc_resume_or_step(), esirisc_step(), esirisc_trace_analyze_memory(), esirisc_trace_dump_memory(), esirisc_trace_read_memory(), esirisc_write_memory(), esp32s2_step(), esp_xtensa_smp_resume(), esp_xtensa_smp_step(), evaluate_add_sp_pc_thumb(), evaluate_add_sub_thumb(), evaluate_adjust_stack_thumb(), evaluate_b_bl(), evaluate_b_bl_blx_thumb(), evaluate_blx_imm(), evaluate_breakpoint_thumb(), evaluate_byterev_thumb(), evaluate_cb_thumb(), evaluate_cdp_mcr_mrc(), evaluate_cond_branch_thumb(), evaluate_cps_thumb(), evaluate_data_proc(), evaluate_data_proc_imm_thumb(), evaluate_data_proc_thumb(), evaluate_extend_thumb(), evaluate_hint_thumb(), evaluate_ifthen_thumb(), evaluate_ldc_stc_mcrr_mrrc(), evaluate_ldm_stm(), evaluate_load_literal_thumb(), evaluate_load_store(), evaluate_load_store_imm_thumb(), evaluate_load_store_multiple_thumb(), evaluate_load_store_reg_thumb(), evaluate_load_store_stack_thumb(), evaluate_media(), evaluate_misc_instr(), evaluate_misc_load_store(), evaluate_mov_imm(), evaluate_mrs_msr(), evaluate_mul_and_extra_ld_st(), evaluate_pld(), evaluate_shift_imm_thumb(), evaluate_srs(), evaluate_swi(), evaluate_unknown(), feroceon_bulk_write_memory(), fespi_read_reg(), fespi_write_reg(), fm3_write_block(), gdb_breakpoint_watchpoint_packet(), gdb_step_continue_packet(), handle_halt_routine(), handle_iod_output(), hwthread_read_buffer(), hwthread_write_buffer(), hybrid_breakpoint_add(), hybrid_breakpoint_add_internal(), image_ihex_buffer_complete_inner(), image_mot_buffer_complete_inner(), image_read_section(), imx31_address(), init_mem_param(), jlink_open_device(), kinetis_ke_write_words(), kinetis_write_block(), lakemont_poll(), linux_compute_virt2phys(), linux_read_memory(), log_memory_access(), lpc2900_address2sector(), lpc3180_address(), lpc32xx_address(), ls1_sap_memory_cmd(), ls1_sap_read_memory(), max32xxx_write(), max32xxx_write_block(), max_tar_block_size(), mdr_write_block(), mem_ap_read(), mem_ap_read_atomic_u32(), mem_ap_read_buf(), mem_ap_read_buf_noincr(), mem_ap_read_memory(), mem_ap_read_u32(), mem_ap_setup_transfer_verify_size_packing(), mem_ap_setup_transfer_verify_size_packing_fallback(), mem_ap_write(), mem_ap_write_atomic_u32(), mem_ap_write_buf(), mem_ap_write_buf_noincr(), mem_ap_write_u32(), mem_should_skip_abstract(), mem_should_skip_progbuf(), mem_should_skip_sysbus(), mips32_blank_check_memory(), mips32_checksum_memory(), mips32_run_algorithm(), mips64_pracc_exec(), mips64_pracc_exec_read(), mips64_pracc_exec_write(), mips64_pracc_fastdata_xfer(), mips_m4k_bulk_read_memory(), mips_m4k_bulk_write_memory(), mips_m4k_internal_restore(), mips_m4k_isa_filter(), mips_m4k_read_memory(), mips_m4k_restore_smp(), mips_m4k_resume(), mips_m4k_step(), mips_m4k_write_memory(), mips_mips64_bulk_write_memory(), mips_mips64_read_memory(), mips_mips64_resume(), mips_mips64_step(), mips_mips64_write_memory(), mqx_target_read_buffer(), mqx_valid_address_check(), mxc_address(), niietcm4_write_block(), npcx_erase(), npcx_write(), nrf5_ll_flash_write(), nuc910_nand_address(), nulink_max_block_size(), numicro_writeblock(), old_or_new_riscv_step(), oldriscv_step(), or1k_read_memory(), or1k_resume(), or1k_resume_or_step(), or1k_step(), or1k_write_memory(), orion_nand_address(), pic32mx_write(), pic32mx_write_block(), pic32mx_write_word(), read_by_given_size(), read_channel_name(), read_memory(), read_memory_abstract(), read_memory_bus_v0(), read_memory_bus_v1(), read_memory_bus_word(), read_memory_progbuf(), read_memory_progbuf_inner(), read_memory_progbuf_one(), read_rtt_channel(), resume_go(), resume_prep(), riscv_batch_add_dmi_read(), riscv_batch_add_dmi_write(), riscv_checksum_memory(), riscv_openocd_step(), riscv_read_by_any_size(), riscv_read_memory(), riscv_resume(), riscv_target_resume(), riscv_write_by_any_size(), riscv_write_memory(), rpchf_spansion_write_words(), rpchf_write(), rpchf_write_words(), rsl10_ll_flash_erase(), rsl10_ll_flash_write(), rtos_generic_stack_read(), rtos_read_buffer(), rtos_write_buffer(), rtt_setup(), s3c24xx_address(), sam4l_write_page(), sam4l_write_page_partial(), samd_erase_row(), samd_write(), same5_erase_block(), same5_write(), sb_read_address(), sb_write_address(), scans_add_read32(), scans_add_write32(), scans_add_write_jump(), scans_add_write_load(), scans_add_write_store(), set_debug_regs(), sh_qspi_erase_sector(), sim3x_write_block(), smi_write_buffer(), stellaris_write(), stellaris_write_block(), step(), stlink_max_block_size(), stm32l4_write_block(), stm32l4_write_block_without_loader(), stm32lx_write(), stm32lx_write_half_pages(), stm32x_write(), stm32x_write_block(), stm32x_write_block_async(), stm32x_write_block_riscv(), stm8_blank_check_memory(), stm8_read_memory(), stm8_resume(), stm8_run_algorithm(), stm8_step(), stm8_write_flash(), stm8_write_memory(), str7x_write(), str7x_write_block(), str9x_write(), str9x_write_block(), target_checksum_memory(), target_fill_io(), target_fill_mem(), target_handle_md_output(), target_read_buffer(), target_read_buffer_default(), target_read_memory(), target_read_phys_memory(), target_read_u16(), target_read_u32(), target_read_u64(), target_read_u8(), target_resume(), target_rtt_find_control_block(), target_rtt_read_control_block(), target_step(), target_write_buffer(), target_write_buffer_default(), target_write_memory(), target_write_phys_memory(), target_write_phys_u16(), target_write_phys_u32(), target_write_phys_u64(), target_write_phys_u8(), target_write_u16(), target_write_u32(), target_write_u64(), target_write_u8(), test_iomux_settings(), thumb_evaluate_opcode(), watchpoint_add(), watchpoint_add_internal(), watchpoint_hit(), watchpoint_remove(), watchpoint_remove_internal(), wrap_write_u32(), write_by_given_size(), write_gmon(), write_memory(), write_memory_abstract(), write_memory_bus_v0(), write_memory_bus_v1(), write_memory_progbuf(), x86_32_common_virt2phys(), xds110_legacy_read_reg(), xds110_legacy_write_reg(), xds110_swd_queue_cmd(), xmc4xxx_erase_sector(), xscale_deassert_reset(), xscale_read_memory(), xscale_read_phys_memory(), xscale_resume(), xscale_step(), xscale_write_memory(), xscale_write_phys_memory(), xtensa_do_step(), xtensa_is_cacheable(), xtensa_is_dcacheable(), xtensa_is_icacheable(), xtensa_memory_op_validate_range(), xtensa_memory_region_find(), xtensa_prepare_resume(), xtensa_read_buffer(), xtensa_read_memory(), xtensa_resume(), xtensa_start_algorithm(), xtensa_step(), xtensa_target_memory_region_find(), xtensa_update_instruction(), xtensa_wait_algorithm(), xtensa_write_buffer(), xtensa_write_memory(), and zephyr_update_threads().

◆ buffer

uint64_t buffer

Pointer to data buffer to send over SPI.

Data buffer pointer.

Return values are stored in place of output data when dw_spi_transaction::read_flag is 1.

Definition at line 0 of file dw-spi-helper.h.

Referenced by aarch64_read_cpu_memory(), aarch64_read_cpu_memory_fast(), aarch64_read_cpu_memory_slow(), aarch64_read_memory(), aarch64_read_phys_memory(), aarch64_write_cpu_memory(), aarch64_write_cpu_memory_fast(), aarch64_write_cpu_memory_slow(), aarch64_write_memory(), aarch64_write_phys_memory(), adapter_read_memory(), adapter_write_memory(), aduc702x_write(), aduc702x_write_block(), aduc702x_write_single(), aducm360_write(), aducm360_write_block(), aducm360_write_block_async(), aducm360_write_block_sync(), aducm360_write_modified(), ambiqmicro_write(), ambiqmicro_write_block(), amt_jtagaccel_execute_queue(), amt_jtagaccel_init(), amt_jtagaccel_scan(), angie_execute_queued_commands(), arc_jtag_enque_status_read(), arc_jtag_read_aux_reg(), arc_jtag_read_core_reg(), arc_jtag_read_memory(), arc_jtag_read_registers(), arc_jtag_status(), arc_jtag_write_aux_reg(), arc_jtag_write_core_reg(), arc_jtag_write_memory(), arc_jtag_write_registers(), arc_mem_read(), arc_mem_write(), arm11_read_memory(), arm11_read_memory_inner(), arm11_write_memory(), arm11_write_memory_inner(), arm720t_read_memory(), arm720t_read_phys_memory(), arm720t_write_phys_memory(), arm7_9_bulk_write_memory(), arm7_9_dcc_completion(), arm7_9_read_memory(), arm7_9_target_request_data(), arm7_9_write_memory(), arm7_9_write_memory_no_opt(), arm7_9_write_memory_opt(), arm7tdmi_read_core_regs_target_buffer(), arm920t_read_memory(), arm920t_read_phys_memory(), arm920t_write_memory(), arm920t_write_phys_memory(), arm926ejs_read_phys_memory(), arm926ejs_write_memory(), arm926ejs_write_phys_memory(), arm946e_read_memory(), arm946e_write_memory(), arm9tdmi_read_core_regs_target_buffer(), armjtagew_execute_queue(), armjtagew_scan(), armjtagew_tap_append_scan(), armjtagew_tap_execute(), armv4_5_mmu_read_physical(), armv4_5_mmu_write_physical(), at91sam7_erase(), at91sam7_write(), ath79_read(), ath79_read_buffer(), ath79_write(), ath79_write_buffer(), ath79_write_page(), autodetect_image_type(), avr32_ap7k_read_memory(), avr32_ap7k_write_memory(), avr32_jtag_read_memory16(), avr32_jtag_read_memory32(), avr32_jtag_read_memory8(), avr32_jtag_write_memory16(), avr32_jtag_write_memory32(), avr32_jtag_write_memory8(), avrf_write(), bitbang_execute_queue(), bitbang_scan(), bluenrgx_write(), buf_get_u32(), buf_get_u64(), buf_set_u32(), buf_set_u64(), buspirate_execute_queue(), buspirate_scan(), buspirate_tap_append_scan(), buspirate_tap_execute(), cc26xx_write(), cc3220sf_write(), cfi_intel_write_block(), cfi_read(), cfi_spansion_write_block(), cfi_spansion_write_block_mips(), cfi_target_read_memory(), cfi_target_write_memory(), cfi_write(), COMMAND_HANDLER(), COMMAND_HELPER(), cortex_a_read_buffer(), cortex_a_read_cpu_memory(), cortex_a_read_cpu_memory_fast(), cortex_a_read_cpu_memory_slow(), cortex_a_read_memory(), cortex_a_read_phys_memory(), cortex_a_write_buffer(), cortex_a_write_cpu_memory(), cortex_a_write_cpu_memory_fast(), cortex_a_write_cpu_memory_slow(), cortex_a_write_memory(), cortex_a_write_phys_memory(), cortex_m_read_memory(), cortex_m_target_request_data(), cortex_m_write_memory(), cpu_context_read(), default_flash_mem_blank_check(), default_flash_read(), default_flash_verify(), dsp563xx_read_buffer_default(), dsp563xx_read_memory(), dsp563xx_read_memory_core(), dsp563xx_read_memory_default(), dsp563xx_write_buffer_default(), dsp563xx_write_memory(), dsp563xx_write_memory_core(), dsp563xx_write_memory_default(), dsp5680xx_f_wr(), dsp5680xx_flash_write(), dsp5680xx_read(), dsp5680xx_read_buffer(), dsp5680xx_write(), dw_spi_ctrl_check_sectors_fill(), dw_spi_ctrl_program(), dw_spi_ctrl_read(), dw_spi_ctrl_transaction(), dw_spi_erase_chip(), dw_spi_read(), dw_spi_read_id(), dw_spi_read_status(), dw_spi_write(), dw_spi_write_buffer(), dw_spi_write_enable(), efinix_read_bit_file(), efm32x_priv_write(), efm32x_write(), em357_write(), em357_write_block(), embeddedice_write_dcc(), eneispif_read_flash_id(), eneispif_write(), esirisc_flash_fill_pb(), esirisc_flash_write(), esirisc_read_memory(), esirisc_trace_analyze(), esirisc_trace_analyze_buffer(), esirisc_trace_analyze_full(), esirisc_trace_analyze_memory(), esirisc_trace_analyze_simple(), esirisc_trace_buf_get_pc(), esirisc_trace_buf_get_u32(), esirisc_trace_dump(), esirisc_trace_dump_buffer(), esirisc_trace_dump_memory(), esirisc_trace_read_buffer(), esirisc_trace_read_memory(), esirisc_write_memory(), esp_xtensa_apptrace_data_normal_read(), esp_xtensa_apptrace_data_read(), esp_xtensa_apptrace_data_reverse_read(), fa526_read_core_regs_target_buffer(), faux_write(), feroceon_bulk_write_memory(), feroceon_read_core_regs_target_buffer(), fespi_write(), fetch_packet(), fileio_fgets(), fileio_local_fgets(), fileio_local_read(), fileio_local_write(), fileio_read(), fileio_write(), fill_addr(), fill_buffer(), fill_task(), flash_driver_read(), flash_driver_verify(), flash_driver_write(), flash_write_unlock_verify(), fm3_write_block(), fm4_flash_write(), gatemate_add_byte_to_bitfile(), gatemate_getline(), gdb_get_packet(), gdb_get_packet_inner(), gdb_put_packet(), gdb_put_packet_inner(), gdb_query_packet(), gdb_read_memory_packet(), gdb_read_smp_packet(), gdb_write_memory_packet(), get_buffer(), get_current(), gowin_add_byte_to_bit_file(), gowin_read_fs_file_header(), gw16012_execute_queue(), gw16012_scan(), handle_iod_output(), hl_target_request_data(), hwthread_read_buffer(), hwthread_write_buffer(), icdi_send_packet(), icdi_usb_read_mem(), icdi_usb_read_mem_int(), icdi_usb_write_mem(), icdi_usb_write_mem_int(), image_calculate_checksum(), image_elf32_read_section(), image_elf64_read_section(), image_elf_read_section(), image_read_section(), isc_data_read_out(), jlink_swd_run_queue(), jsp_input(), jtag_build_buffer(), jtag_read_buffer(), jtagspi_page_write(), jtagspi_read(), jtagspi_write(), kinetis_ke_write(), kinetis_ke_write_words(), kinetis_write(), kinetis_write_block(), kinetis_write_inner(), kinetis_write_sections(), kitprog_swd_run_queue(), lattice_certus_connect_spi_to_jtag(), lattice_certus_enable_programming(), lattice_certus_enable_transparent_mode(), lattice_certus_erase_device(), lattice_ecp2_3_erase_device(), lattice_ecp2_3_write_usercode(), lattice_ecp5_connect_spi_to_jtag(), lattice_ecp5_enable_sram_programming(), lattice_ecp5_erase_sram(), lattice_ecp5_init_address(), lattice_ecp5_write_usercode(), lattice_preload(), lattice_read_u32_register(), lattice_read_u64_register(), linux_read_memory(), lpc2000_write(), lpc2900_write(), lpcspifi_write(), ls1_sap_read_memory(), max32xxx_write(), max32xxx_write_block(), mdr_read(), mdr_write(), mdr_write_block(), mem_ap_read(), mem_ap_read_buf(), mem_ap_read_buf_noincr(), mem_ap_read_memory(), mem_ap_write(), mem_ap_write_buf(), mem_ap_write_buf_noincr(), mips_m4k_bulk_read_memory(), mips_m4k_bulk_write_memory(), mips_m4k_read_memory(), mips_m4k_write_memory(), mips_mips64_bulk_write_memory(), mips_mips64_read_memory(), mips_mips64_write_memory(), mqx_target_read_buffer(), mrvlqspi_flash_read(), mrvlqspi_flash_write(), msp432_wait_inactive(), msp432_write(), need_bit_reverse(), next_task(), niietcm4_write(), niietcm4_write_block(), npcx_write(), nrf5_ll_flash_write(), nrf5_write(), nulink_usb_read_mem(), nulink_usb_read_mem32(), nulink_usb_read_mem8(), nulink_usb_write_mem(), nulink_usb_write_mem32(), nulink_usb_write_mem8(), numicro_write(), numicro_writeblock(), ocl_write(), oocd_libusb_dev_mem_alloc(), oocd_libusb_dev_mem_free(), opendous_execute_queue(), opendous_scan(), opendous_tap_append_scan(), opendous_tap_execute(), openjtag_add_scan(), openjtag_execute_scan(), openjtag_execute_tap_queue(), or1k_adv_jtag_read_memory(), or1k_adv_jtag_write_memory(), or1k_read_memory(), or1k_write_memory(), osbdm_swap(), parport_init(), pic32mx_write(), pic32mx_write_block(), psoc4_write(), psoc5lp_eeprom_write(), psoc5lp_nvl_read(), psoc5lp_nvl_write(), psoc5lp_write(), psoc6_program(), psoc6_program_row(), qn908x_write(), qspi_read_write_block(), qspi_verify(), read_and_discard_all_data(), read_by_given_size(), read_callback(), read_from_channel(), read_memory(), read_memory_abstract(), read_memory_bus_v0(), read_memory_bus_v1(), read_memory_bus_word(), read_memory_progbuf(), read_memory_progbuf_inner(), read_memory_progbuf_one(), read_phys_mem(), read_section(), read_sfdp_block(), read_socket(), read_userrow(), remote_escape_output(), remote_unescape_input(), riot_update_threads(), riscv_address_translate(), riscv_hit_watchpoint(), riscv_read_by_any_size(), riscv_read_memory(), riscv_read_phys_memory(), riscv_write_by_any_size(), riscv_write_memory(), riscv_write_phys_memory(), rp2040_flash_write(), rpchf_target_read_memory(), rpchf_target_write_memory(), rpchf_write(), rsl10_ll_flash_write(), rsl10_write(), rtos_read_buffer(), rtos_thread_packet(), rtos_write_buffer(), rtt_write_channel(), sam3_write(), sam4_write(), sam4l_write(), samd_write(), same5_write(), samv_write(), scratch_read64(), scratch_write64(), sh_qspi_read(), sh_qspi_write(), sim3x_flash_write(), slow_fespi_write_buffer(), smi_write_buffer(), stellaris_write(), stellaris_write_block(), stlink_open(), stlink_swim_op_read_mem(), stlink_swim_op_write_mem(), stlink_usb_read_ap_mem(), stlink_usb_read_mem(), stlink_usb_read_mem16(), stlink_usb_read_mem32(), stlink_usb_read_mem32_noaddrinc(), stlink_usb_read_mem8(), stlink_usb_rw_misc_in(), stlink_usb_rw_misc_out(), stlink_usb_write_ap_mem(), stlink_usb_write_mem(), stlink_usb_write_mem16(), stlink_usb_write_mem32(), stlink_usb_write_mem32_noaddrinc(), stlink_usb_write_mem8(), stm32l4_write(), stm32l4_write_block(), stm32l4_write_block_without_loader(), stm32lx_write(), stm32lx_write_half_pages(), stm32x_write(), stm32x_write_block(), stm32x_write_block_async(), stm32x_write_block_riscv(), stm8_read_memory(), stm8_write_flash(), stm8_write_memory(), stmqspi_read(), stmqspi_verify(), stmqspi_write(), stmsmi_write(), str7x_write(), str7x_write_block(), str9x_write(), str9x_write_block(), str9xpec_blank_check(), str9xpec_erase_area(), str9xpec_write(), swim_read_mem(), swim_write_mem(), swm050_write(), syncbb_scan(), target_buffer_get_addr(), target_buffer_get_u16(), target_buffer_get_u16_array(), target_buffer_get_u24(), target_buffer_get_u32(), target_buffer_get_u32_array(), target_buffer_get_u64(), target_buffer_get_u64_array(), target_buffer_set_u16(), target_buffer_set_u16_array(), target_buffer_set_u24(), target_buffer_set_u32(), target_buffer_set_u32_array(), target_buffer_set_u64(), target_buffer_set_u64_array(), target_buffer_set_u8(), target_checksum_memory(), target_handle_md_output(), target_jim_write_memory(), target_read_buffer(), target_read_buffer_default(), target_read_memory(), target_read_phys_memory(), target_rtt_read_callback(), target_rtt_write_callback(), target_run_flash_async_algorithm(), target_run_read_async_algorithm(), target_write_buffer(), target_write_buffer_default(), target_write_memory(), target_write_phys_memory(), telnet_input(), telnet_load_history(), tms470_erase_check(), tms470_write(), ublast2_libusb_init(), ulink_execute_queued_commands(), usb_get_response(), usb_read(), usb_write(), usbprog_execute_queue(), usbprog_jtag_read_tdo(), usbprog_jtag_write_and_read(), usbprog_jtag_write_tdi(), usbprog_scan(), versaloon_add_pending(), virtual_write(), vsllink_execute_queue(), vsllink_jtag_execute(), vsllink_scan(), vsllink_tap_append_scan(), w600_write(), write_by_given_size(), write_memory(), write_memory_abstract(), write_memory_bus_v0(), write_memory_bus_v1(), write_memory_progbuf(), write_phys_mem(), write_socket(), write_to_channel(), x86_32_common_read_phys_mem(), x86_32_common_write_phys_mem(), xcf_read(), xcf_write(), xds110_get_u16(), xds110_get_u32(), xds110_queue_scan(), xds110_set_u16(), xds110_set_u32(), xmc1xxx_write(), xmc4xxx_write(), xscale_deassert_reset(), xscale_debug_entry(), xscale_full_context(), xscale_load_ic(), xscale_read_memory(), xscale_read_phys_memory(), xscale_receive(), xscale_send(), xscale_write_memory(), xscale_write_phys_memory(), xtensa_read_buffer(), xtensa_read_memory(), xtensa_update_instruction(), xtensa_write_buffer(), and xtensa_write_memory().

◆ buffer_size

◆ busy_mask

uint8_t busy_mask

Busy mask.

Definition at line 9 of file dw-spi-helper.h.

Referenced by dw_spi_ctrl_erase_sectors(), and dw_spi_ctrl_program().

◆ data_reg

uint64_t data_reg

Pointer to DR register.

Definition at line 6 of file dw-spi-helper.h.

◆ erase_sector_cmd

uint8_t erase_sector_cmd

Erase sector command.

Definition at line 7 of file dw-spi-helper.h.

Referenced by dw_spi_ctrl_erase_sectors().

◆ fill_status_array

uint64_t fill_status_array

Pointer to array describing sectors fill status.

1 if filled, 0 if not filled.

Definition at line 5 of file dw-spi-helper.h.

◆ four_byte_mode

uint8_t four_byte_mode

Four byte addressing mode flag.

Definition at line 10 of file dw-spi-helper.h.

◆ page_size

◆ pattern

uint8_t pattern

◆ program_cmd

uint8_t program_cmd

Program command.

Definition at line 10 of file dw-spi-helper.h.

Referenced by dw_spi_ctrl_program().

◆ read_cmd

uint8_t read_cmd

Read data command.

Definition at line 9 of file dw-spi-helper.h.

Referenced by dw_spi_ctrl_check_sectors_fill(), and dw_spi_ctrl_read().

◆ read_flag

uint8_t read_flag

When 1, store RX FIFO data to dw_spi_transaction::buffer.

Definition at line 7 of file dw-spi-helper.h.

◆ read_status_cmd

uint8_t read_status_cmd

Read status command.

Definition at line 5 of file dw-spi-helper.h.

◆ sector_count

uint32_t sector_count

Number of sectors to check.

Number of sectors to erase.

Definition at line 2 of file dw-spi-helper.h.

Referenced by dw_spi_blank_check(), dw_spi_ctrl_check_sectors_fill(), and dw_spi_ctrl_erase_sectors().

◆ sector_size

uint32_t sector_size

Sector size.

Definition at line 1 of file dw-spi-helper.h.

Referenced by dw_spi_ctrl_check_sectors_fill(), dw_spi_ctrl_erase_sectors(), gdb_memory_map(), and psoc6_erase().

◆ size

uint32_t size

Size of dw_spi_transaction::buffer.

Definition at line 4 of file dw-spi-helper.h.

Referenced by __attribute__(), aarch64_read_cpu_memory(), aarch64_read_cpu_memory_slow(), aarch64_read_memory(), aarch64_read_phys_memory(), aarch64_write_cpu_memory(), aarch64_write_cpu_memory_slow(), aarch64_write_memory(), aarch64_write_phys_memory(), access_register_command(), adapter_poll_trace(), adapter_read_memory(), adapter_write_memory(), adbg_wb_burst_read(), adbg_wb_burst_write(), alloc_block_array(), angie_allocate_payload(), angie_write_firmware_section(), arc_mem_is_slow_memory(), arc_mem_read(), arc_mem_read_block(), arc_mem_write(), arm11_read_memory(), arm11_read_memory_inner(), arm11_write_memory(), arm11_write_memory_inner(), arm720t_read_memory(), arm720t_read_phys_memory(), arm720t_write_phys_memory(), arm7_9_endianness_callback(), arm7_9_read_memory(), arm7_9_target_request_data(), arm7_9_write_memory(), arm7_9_write_memory_no_opt(), arm7_9_write_memory_opt(), arm7tdmi_clock_data_in_endianness(), arm7tdmi_read_core_regs_target_buffer(), arm920t_read_memory(), arm920t_read_phys_memory(), arm920t_write_memory(), arm920t_write_phys_memory(), arm926ejs_read_phys_memory(), arm926ejs_write_memory(), arm926ejs_write_phys_memory(), arm946e_invalidate_dcache(), arm946e_invalidate_icache(), arm946e_read_memory(), arm946e_write_memory(), arm9tdmi_clock_data_in_endianness(), arm9tdmi_read_core_regs_target_buffer(), arm_blank_check_memory(), arm_code_to_working_area(), arm_nandread(), arm_nandwrite(), arm_tpiu_swo_poll_trace(), armv4_5_identify_cache(), armv4_5_mmu_read_physical(), armv4_5_mmu_write_physical(), armv4_5_run_algorithm_inner(), armv7a_cache_flush_virt(), armv7a_l1_d_cache_clean_virt(), armv7a_l1_d_cache_flush_level(), armv7a_l1_d_cache_flush_virt(), armv7a_l1_d_cache_inval_virt(), armv7a_l1_i_cache_inval_virt(), armv7a_l2x_cache_clean_virt(), armv7a_l2x_cache_flush_virt(), armv7a_l2x_cache_inval_virt(), armv7m_blank_check_memory(), armv7m_get_gdb_reg_list(), armv7m_start_algorithm(), armv7m_wait_algorithm(), armv8_cache_d_inner_flush_level(), armv8_cache_d_inner_flush_virt(), armv8_cache_i_inner_inval_virt(), at91sam9_oob_init(), at91sam9_read_block_data(), at91sam9_write_block_data(), avr32_ap7k_read_memory(), avr32_ap7k_write_memory(), binprint(), buf_cpy(), buf_eq(), buf_eq_mask(), buf_set_ones(), buspirate_print_buffer(), buspirate_serial_read(), buspirate_serial_write(), cc26xx_write(), cc3220sf_probe(), clear_malloc(), cmd_queue_alloc(), cmsis_dap_poll_trace(), cmsis_dap_tfer_cmd_size(), cmsis_dap_tfer_resp_size(), COMMAND_HANDLER(), COMMAND_HELPER(), cortex_a_read_buffer(), cortex_a_read_cpu_memory(), cortex_a_read_cpu_memory_slow(), cortex_a_read_memory(), cortex_a_read_phys_memory(), cortex_a_write_buffer(), cortex_a_write_cpu_memory(), cortex_a_write_cpu_memory_slow(), cortex_a_write_memory(), cortex_a_write_phys_memory(), cortex_m_read_memory(), cortex_m_target_request_data(), cortex_m_write_memory(), dap_info_cs_component(), dsp563xx_read_buffer_default(), dsp563xx_read_memory(), dsp563xx_read_memory_core(), dsp563xx_read_memory_default(), dsp563xx_run_algorithm(), dsp563xx_write_buffer_default(), dsp563xx_write_memory(), dsp563xx_write_memory_core(), dsp563xx_write_memory_default(), dsp5680xx_read(), dsp5680xx_read_buffer(), dsp5680xx_write(), dsp5680xx_write_buffer(), dtc_queue_enqueue_reply(), dw_spi_ctrl_transaction(), dw_spi_probe(), embeddedice_receive(), embeddedice_send(), esirisc_read_memory(), esirisc_trace_analyze(), esirisc_trace_analyze_buffer(), esirisc_trace_analyze_full(), esirisc_trace_analyze_memory(), esirisc_trace_analyze_simple(), esirisc_trace_buf_get_pc(), esirisc_trace_buf_get_u32(), esirisc_trace_dump(), esirisc_trace_dump_buffer(), esirisc_trace_dump_memory(), esirisc_trace_read_buffer(), esirisc_trace_read_memory(), esirisc_write_memory(), esp32_apptrace_console_dest_write(), esp32_apptrace_file_dest_write(), esp32_apptrace_tcp_dest_write(), esp_apptrace_usr_block_write(), esp_xtensa_apptrace_data_normal_read(), esp_xtensa_apptrace_data_read(), esp_xtensa_apptrace_data_reverse_read(), esp_xtensa_apptrace_usr_block_write(), esp_xtensa_stub_tramp_get(), etmv1_data(), fa526_read_core_regs_target_buffer(), feroceon_read_core_regs_target_buffer(), fileio_fgets(), fileio_local_fgets(), fileio_local_read(), fileio_local_write(), fileio_read(), fileio_size(), fileio_write(), fill_malloc(), find_exe_path(), flash_write_unlock_verify(), gdb_breakpoint_watchpoint_packet(), gdb_generate_reg_type_description(), gdb_generate_target_description(), gdb_generate_thread_list(), gdb_get_register_packet(), gdb_get_registers_packet(), gdb_memory_map(), gdb_query_packet(), gdb_set_register_packet(), gdb_set_registers_packet(), handle_iod_output(), has_sufficient_progbuf(), hexdump(), hl_interface_poll_trace(), hl_target_request_data(), hwthread_get_thread_reg_list(), hwthread_read_buffer(), hwthread_write_buffer(), icdi_usb_read_mem(), icdi_usb_write_mem(), image_add_section(), image_elf32_read_section(), image_elf64_read_section(), image_elf_read_section(), image_read_section(), init_mem_param(), init_reg_param(), jtag_libusb_bulk_read(), jtag_libusb_bulk_write(), jtag_libusb_control_transfer(), kinetis_write_sections(), linux_read_memory(), load_section_from_image(), ls1_sap_memory_cmd(), ls1_sap_memory_read(), ls1_sap_memory_write(), ls1_sap_read_memory(), mem_ap_read(), mem_ap_read_buf(), mem_ap_read_buf_noincr(), mem_ap_read_memory(), mem_ap_setup_transfer_verify_size_packing(), mem_ap_setup_transfer_verify_size_packing_fallback(), mem_ap_write(), mem_ap_write_buf(), mem_ap_write_buf_noincr(), mem_should_skip_abstract(), mem_should_skip_progbuf(), mem_should_skip_sysbus(), mips32_dmaacc_read_mem(), mips32_dmaacc_write_mem(), mips32_pracc_fastdata_xfer_synchronize_cache(), mips32_pracc_read_mem(), mips32_pracc_write_mem(), mips32_pracc_write_mem_generic(), mips64_pracc_read_mem(), mips64_pracc_write_mem(), mips_m4k_read_memory(), mips_m4k_write_memory(), mips_mips64_read_memory(), mips_mips64_write_memory(), mqx_target_read_buffer(), msp432_probe(), msp432_write(), nand_read_data_page(), nand_write_data_page(), npcx_write(), nulink1_usb_init_buffer(), nulink2_usb_init_buffer(), nulink_usb_init_buffer(), nulink_usb_read_mem(), nulink_usb_write_mem(), nulink_usb_xfer(), nuttx_getreg_current_thread(), openjtag_buf_write(), openjtag_buf_write_cy7c65215(), openjtag_buf_write_standard(), or1k_adv_jtag_read_memory(), or1k_adv_jtag_write_memory(), or1k_read_memory(), or1k_write_memory(), orion_nand_fast_block_write(), orion_nand_slow_block_write(), poll_trace(), presto_read(), presto_write(), read_by_given_size(), read_mem(), read_memory(), read_memory_abstract(), read_memory_bus_v0(), read_memory_bus_v1(), read_memory_bus_word(), read_memory_progbuf(), read_memory_progbuf_inner(), read_memory_progbuf_one(), read_phys_mem(), register_read_abstract(), register_write_abstract(), riscv_read_by_any_size(), riscv_read_memory(), riscv_read_phys_memory(), riscv_write_by_any_size(), riscv_write_memory(), riscv_write_phys_memory(), rpc_hf_xfer(), rtos_generic_stack_read(), rtos_put_gdb_reg_list(), rtos_read_buffer(), rtos_thread_packet(), rtos_write_buffer(), semihosting_common(), semihosting_read(), semihosting_redirect_read(), semihosting_redirect_write(), semihosting_write(), setup_sector(), setup_write_memory(), stlink_cmd_allow_retry(), stlink_dap_trace_read(), stlink_get_com_freq(), stlink_swim_op_read_mem(), stlink_swim_op_write_mem(), stlink_tcp_read_trace(), stlink_tcp_xfer_noerrcheck(), stlink_usb_init_buffer(), stlink_usb_read_ap_mem(), stlink_usb_read_mem(), stlink_usb_read_trace(), stlink_usb_set_cbw_transfer_datalength(), stlink_usb_state(), stlink_usb_usb_read_trace(), stlink_usb_usb_xfer_noerrcheck(), stlink_usb_write_ap_mem(), stlink_usb_write_mem(), stlink_usb_xfer_errcheck(), stlink_usb_xfer_rw(), stlink_usb_xfer_v1_create_cmd(), stm32l4_write(), stm32x_probe(), stm8_adapter_read_memory(), stm8_adapter_write_memory(), stm8_blank_check_memory(), stm8_read_memory(), stm8_run_algorithm(), stm8_write_flash(), stm8_write_memory(), swim_read_mem(), swim_write_mem(), target_alloc_working_area(), target_alloc_working_area_try(), target_checksum_memory(), target_get_working_area_avail(), target_handle_md_output(), target_hexmsg(), target_read_buffer(), target_read_buffer_default(), target_read_memory(), target_read_phys_memory(), target_rtt_find_control_block(), target_split_working_area(), target_write_buffer(), target_write_buffer_default(), target_write_memory(), target_write_phys_memory(), ublast2_libusb_read(), ublast2_libusb_write(), ublast2_write_firmware_section(), ublast_buf_read(), ublast_buf_write(), ublast_ftdi_read(), ublast_ftdi_write(), ulink_allocate_payload(), ulink_write_firmware_section(), usb_get_response(), usb_read(), usb_send_command(), usb_write(), usbprog_jtag_read_tdo(), usbprog_jtag_write_and_read(), usbprog_jtag_write_tdi(), usbprog_scan(), usbtopoll_checkfail(), usbtopoll_checkok(), usbtopoll_verifybuff(), versaloon_add_want_pos(), write_by_given_size(), write_mem(), write_memory(), write_memory_abstract(), write_memory_bus_v0(), write_memory_bus_v1(), write_memory_progbuf(), write_phys_mem(), x86_32_common_read_io(), x86_32_common_read_memory(), x86_32_common_read_phys_mem(), x86_32_common_write_io(), x86_32_common_write_memory(), x86_32_common_write_phys_mem(), xscale_read_memory(), xscale_read_phys_memory(), xscale_send(), xscale_write_memory(), xscale_write_phys_memory(), xtensa_dm_trace_data_read(), xtensa_fetch_all_regs(), xtensa_gdb_query_custom(), xtensa_memory_op_validate_range(), xtensa_read_memory(), xtensa_start_algorithm(), xtensa_update_instruction(), xtensa_wait_algorithm(), xtensa_write_memory(), zephyr_array_append(), zephyr_get_arc_state(), and zephyr_get_arm_state().

◆ status_reg

uint64_t status_reg

Pointer to SR register.

Definition at line 5 of file dw-spi-helper.h.

◆ write_enable_cmd

uint8_t write_enable_cmd

Write enable command.

Definition at line 6 of file dw-spi-helper.h.

◆ write_enable_mask

uint8_t write_enable_mask

Write enable mask.

Definition at line 8 of file dw-spi-helper.h.