id stringlengths 4 63 | text stringlengths 153 8.81M |
|---|---|
spi_nor_parse_bfpt(9) | NAME spi_nor_parse_bfpt - read and parse the Basic Flash Parameter Table.
SYNOPSIS int spi_nor_parse_bfpt (struct spi_nor *nor , const struct sfdp_parameter_header *bfpt_header );
ARGUMENTS nor pointer to a 'struct spi_nor'
bfpt_header pointer to the 'struct sfdp_parameter_header' describing the Basic... |
spi_nor_parse_profile1(9) | NAME spi_nor_parse_profile1 - parse the xSPI Profile 1.0 table
SYNOPSIS int spi_nor_parse_profile1 (struct spi_nor *nor , const struct sfdp_parameter_header *profile1_header );
ARGUMENTS nor pointer to a 'struct spi_nor'
profile1_header
pointer to the 'struct sfdp_parameter_header' ... |
spi_nor_parse_sccr(9) | NAME spi_nor_parse_sccr - Parse the Status, Control and Configuration Register Map.
SYNOPSIS int spi_nor_parse_sccr (struct spi_nor *nor , const struct sfdp_parameter_header *sccr_header );
ARGUMENTS nor pointer to a 'struct spi_nor'
sccr_header pointer to the 'struct sfdp_parameter_header' describing... |
spi_nor_parse_sccr_mc(9) | NAME spi_nor_parse_sccr_mc - Parse the Status, Control and Configuration Register Map Offsets for Multi-Chip SPI Memory Devices.
SYNOPSIS int spi_nor_parse_sccr_mc (struct spi_nor *nor , const struct sfdp_parameter_header *sccr_mc_header );
ARGUMENTS nor pointer to a 'struct spi_nor'
sccr_mc_header
... |
spi_nor_parse_sfdp(9) | NAME spi_nor_parse_sfdp - parse the Serial Flash Discoverable Parameters.
SYNOPSIS int spi_nor_parse_sfdp (struct spi_nor *nor );
ARGUMENTS nor pointer to a 'struct spi_nor'
DESCRIPTION The Serial Flash Discoverable Parameters are described by the JEDEC JESD216 specification. This is a standard which tends... |
spi_nor_parse_smpt(9) | NAME spi_nor_parse_smpt - parse Sector Map Parameter Table
SYNOPSIS int spi_nor_parse_smpt (struct spi_nor *nor , const struct sfdp_parameter_header *smpt_header );
ARGUMENTS nor pointer to a 'struct spi_nor'
smpt_header sector map parameter table header
DESCRIPTION This table is optional, but when a... |
spi_nor_post_sfdp_fixups(9) | NAME spi_nor_post_sfdp_fixups - Updates the flash's parameters and settings after SFDP has been parsed. Called only for flashes that define JESD216 SFDP tables.
SYNOPSIS int spi_nor_post_sfdp_fixups (struct spi_nor *nor );
ARGUMENTS nor pointer to a 'struct spi_nor'
DESCRIPTION Used to tweak various flash pa... |
spi_nor_quad_enable(9) | NAME spi_nor_quad_enable - enable Quad I/O if needed.
SYNOPSIS int spi_nor_quad_enable (struct spi_nor *nor );
ARGUMENTS nor pointer to a 'struct spi_nor'
RETURN 0 on success, -errno otherwise.
SEE ALSO Kernel file ./drivers/mtd/spi-nor/core.c spi_nor_get_cmd_ext(9), spi_nor_spimem_setup_op(9),... |
spi_nor_read_any_reg(9) | NAME spi_nor_read_any_reg - read any register from flash memory, nonvolatile or volatile.
SYNOPSIS int spi_nor_read_any_reg (struct spi_nor *nor , struct spi_mem_op *op , enum spi_nor_protocol proto );
ARGUMENTS nor pointer to 'struct spi_nor'.
op SPI memory operation. op->data.buf must be DM... |
spi_nor_read_cr(9) | NAME spi_nor_read_cr - Read the Configuration Register using the SPINOR_OP_RDCR (35h) command.
SYNOPSIS int spi_nor_read_cr (struct spi_nor *nor , u8 *cr );
ARGUMENTS nor pointer to 'struct spi_nor'
cr pointer to a DMA-able buffer where the value of the Configuration Register will be written.... |
spi_nor_read_data(9) | NAME spi_nor_read_data - read data from flash memory
SYNOPSIS ssize_t spi_nor_read_data (struct spi_nor *nor , loff_t from , size_t len , u8 *buf );
ARGUMENTS nor pointer to 'struct spi_nor'
from offset to read from
len number of bytes to read
buf pointer to dst ... |
spi_nor_read_id(9) | NAME spi_nor_read_id - Read the JEDEC ID.
SYNOPSIS int spi_nor_read_id (struct spi_nor *nor , u8 naddr , u8 ndummy , u8 *id , enum spi_nor_protocol proto );
ARGUMENTS nor pointer to 'struct spi_nor'.
naddr number of address bytes to send. Can be zero if the operation does not need to send an add... |
spi_nor_read_raw(9) | NAME spi_nor_read_raw - raw read of serial flash memory. read_opcode, addr_nbytes and read_dummy members of the struct spi_nor should be previously set.
SYNOPSIS int spi_nor_read_raw (struct spi_nor *nor , u32 addr , size_t len , u8 *buf );
ARGUMENTS nor pointer to a 'struct spi_nor'
addr offse... |
spi_nor_read_sfdp(9) | NAME spi_nor_read_sfdp - read Serial Flash Discoverable Parameters.
SYNOPSIS int spi_nor_read_sfdp (struct spi_nor *nor , u32 addr , size_t len , void *buf );
ARGUMENTS nor pointer to a 'struct spi_nor'
addr offset in the SFDP area to start reading data from
len number of bytes ... |
spi_nor_read_sfdp_dma_unsafe(9) | NAME spi_nor_read_sfdp_dma_unsafe - read Serial Flash Discoverable Parameters.
SYNOPSIS int spi_nor_read_sfdp_dma_unsafe (struct spi_nor *nor , u32 addr , size_t len , void *buf );
ARGUMENTS nor pointer to a 'struct spi_nor'
addr offset in the SFDP area to start reading data from
len ... |
spi_nor_read_sr(9) | NAME spi_nor_read_sr - Read the Status Register.
SYNOPSIS int spi_nor_read_sr (struct spi_nor *nor , u8 *sr );
ARGUMENTS nor pointer to 'struct spi_nor'.
sr pointer to a DMA-able buffer where the value of the Status Register will be written. Should be at least 2 bytes.
RETURN 0 on success, -... |
spi_nor_read_sr2(9) | NAME spi_nor_read_sr2 - Read the Status Register 2 using the SPINOR_OP_RDSR2 (3fh) command.
SYNOPSIS int spi_nor_read_sr2 (struct spi_nor *nor , u8 *sr2 );
ARGUMENTS nor pointer to 'struct spi_nor'.
sr2 pointer to DMA-able buffer where the value of the Status Register 2 will be written.
RETUR... |
spi_nor_ready(9) | NAME spi_nor_ready - Query the flash to see if it is ready for new commands.
SYNOPSIS int spi_nor_ready (struct spi_nor *nor );
ARGUMENTS nor pointer to 'struct spi_nor'.
RETURN 1 if ready, 0 if not ready, -errno on errors.
SEE ALSO Kernel file ./drivers/mtd/spi-nor/core.c spi_nor_get_cmd_ext(9), ... |
spi_nor_region_check_overlay(9) | NAME spi_nor_region_check_overlay - set overlay bit when the region is overlaid
SYNOPSIS void spi_nor_region_check_overlay (struct spi_nor_erase_region *region , const struct spi_nor_erase_type *erase , const u8 erase_type );
ARGUMENTS region pointer to a structure that describes a SPI NOR erase region
e... |
spi_nor_regions_sort_erase_types(9) | NAME spi_nor_regions_sort_erase_types - sort erase types in each region
SYNOPSIS void spi_nor_regions_sort_erase_types (struct spi_nor_erase_map *map );
ARGUMENTS map the erase map of the SPI NOR
DESCRIPTION Function assumes that the erase types defined in the erase map are already sorted in ascending orde... |
spi_nor_scan(9) | NAME spi_nor_scan - scan the SPI NOR
SYNOPSIS int spi_nor_scan (struct spi_nor *nor , const char *name , const struct spi_nor_hwcaps *hwcaps );
ARGUMENTS nor the spi_nor structure
name the chip type name
hwcaps the hardware capabilities supported by the controller driver
DESCRIPTI... |
spi_nor_select_uniform_erase(9) | NAME spi_nor_select_uniform_erase - select optimum uniform erase type
SYNOPSIS const struct spi_nor_erase_type * spi_nor_select_uniform_erase (struct spi_nor_erase_map *map );
ARGUMENTS map the erase map of the SPI NOR
DESCRIPTION Once the optimum uniform sector erase command is found, disable all the other.... |
spi_nor_set_4byte_addr_mode(9) | NAME spi_nor_set_4byte_addr_mode - Set address mode.
SYNOPSIS int spi_nor_set_4byte_addr_mode (struct spi_nor *nor , bool enable );
ARGUMENTS nor pointer to a 'struct spi_nor'.
enable enable/disable 4 byte address mode.
RETURN 0 on success, -errno otherwise.
SEE ALSO Kernel file ./driver... |
spi_nor_set_4byte_addr_mode_brwr(9) | NAME spi_nor_set_4byte_addr_mode_brwr - Set 4-byte address mode using SPINOR_OP_BRWR. Typically used by Spansion flashes.
SYNOPSIS int spi_nor_set_4byte_addr_mode_brwr (struct spi_nor *nor , bool enable );
ARGUMENTS nor pointer to 'struct spi_nor'.
enable true to enter the 4-byte address mode, fa... |
spi_nor_set_4byte_addr_mode_en4b_ex4b(9) | NAME spi_nor_set_4byte_addr_mode_en4b_ex4b - Enter/Exit 4-byte address mode using SPINOR_OP_EN4B/SPINOR_OP_EX4B. Typically used by Winbond and Macronix.
SYNOPSIS int spi_nor_set_4byte_addr_mode_en4b_ex4b (struct spi_nor *nor , bool enable );
ARGUMENTS nor pointer to 'struct spi_nor'.
enable true ... |
spi_nor_set_4byte_addr_mode_wren_en4b_ex4b(9) | NAME spi_nor_set_4byte_addr_mode_wren_en4b_ex4b - Set 4-byte address mode using SPINOR_OP_WREN followed by SPINOR_OP_EN4B or SPINOR_OP_EX4B. Typically used by ST and Micron flashes.
SYNOPSIS int spi_nor_set_4byte_addr_mode_wren_en4b_ex4b (struct spi_nor *nor , bool enable );
ARGUMENTS nor pointer to 'struct s... |
spi_nor_set_erase_settings_from_bfpt(9) | NAME spi_nor_set_erase_settings_from_bfpt - set erase type settings from BFPT
SYNOPSIS void spi_nor_set_erase_settings_from_bfpt (struct spi_nor_erase_type *erase , u32 size , u8 opcode , u8 i );
ARGUMENTS erase pointer to a structure that describes a SPI NOR erase type
size the size of the secto... |
spi_nor_set_erase_type(9) | NAME spi_nor_set_erase_type - set a SPI NOR erase type
SYNOPSIS void spi_nor_set_erase_type (struct spi_nor_erase_type *erase , u32 size , u8 opcode );
ARGUMENTS erase pointer to a structure that describes a SPI NOR erase type
size the size of the sector/block erased by the erase type
opc... |
spi_nor_sfdp_init_params_deprecated(9) | NAME spi_nor_sfdp_init_params_deprecated - Deprecated way of initializing flash parameters and settings based on JESD216 SFDP standard.
SYNOPSIS void spi_nor_sfdp_init_params_deprecated (struct spi_nor *nor );
ARGUMENTS nor pointer to a 'struct spi_nor'.
DESCRIPTION The method has a roll-back mechanism: in c... |
spi_nor_smpt_addr_nbytes(9) | NAME spi_nor_smpt_addr_nbytes - return the number of address bytes used in the configuration detection command.
SYNOPSIS u8 spi_nor_smpt_addr_nbytes (const struct spi_nor *nor , const u32 settings );
ARGUMENTS nor pointer to a 'struct spi_nor'
settings configuration detection command descriptor, dw... |
spi_nor_smpt_read_dummy(9) | NAME spi_nor_smpt_read_dummy - return the configuration detection command read latency, in clock cycles.
SYNOPSIS u8 spi_nor_smpt_read_dummy (const struct spi_nor *nor , const u32 settings );
ARGUMENTS nor pointer to a 'struct spi_nor'
settings configuration detection command descriptor, dword1
RE... |
spi_nor_soft_reset(9) | NAME spi_nor_soft_reset - Perform a software reset
SYNOPSIS void spi_nor_soft_reset (struct spi_nor *nor );
ARGUMENTS nor pointer to 'struct spi_nor'
DESCRIPTION Performs a "Soft Reset and Enter Default Protocol Mode" sequence which resets the device to its power-on-reset state. This is useful when the soft... |
spi_nor_sort_erase_mask(9) | NAME spi_nor_sort_erase_mask - sort erase mask
SYNOPSIS u8 spi_nor_sort_erase_mask (struct spi_nor_erase_map *map , u8 erase_mask );
ARGUMENTS map the erase map of the SPI NOR
erase_mask the erase type mask to be sorted
DESCRIPTION Replicate the sort done for the map's erase types in BFPT: sort the ... |
spi_nor_spimem_adjust_hwcaps(9) | NAME spi_nor_spimem_adjust_hwcaps - Find optimal Read/Write protocol based on SPI controller capabilities
SYNOPSIS void spi_nor_spimem_adjust_hwcaps (struct spi_nor *nor , u32 *hwcaps );
ARGUMENTS nor pointer to a 'struct spi_nor'
hwcaps pointer to resulting capabilities after adjusting according... |
spi_nor_spimem_bounce(9) | NAME spi_nor_spimem_bounce - check if a bounce buffer is needed for the data transfer
SYNOPSIS bool spi_nor_spimem_bounce (struct spi_nor *nor , struct spi_mem_op *op );
ARGUMENTS nor pointer to 'struct spi_nor'
op pointer to 'struct spi_mem_op' template for transfer
DESCRIPTION If we have t... |
spi_nor_spimem_check_pp(9) | NAME spi_nor_spimem_check_pp - check if the page program op is supported by controller
SYNOPSIS int spi_nor_spimem_check_pp (struct spi_nor *nor , const struct spi_nor_pp_command *pp );
ARGUMENTS nor pointer to a 'struct spi_nor'
pp pointer to op template to be checked
DESCRIPTION Returns 0 ... |
spi_nor_spimem_check_read_pp_op(9) | NAME spi_nor_spimem_check_read_pp_op - check if a read or a page program operation is supported by controller
SYNOPSIS int spi_nor_spimem_check_read_pp_op (struct spi_nor *nor , struct spi_mem_op *op );
ARGUMENTS nor pointer to a 'struct spi_nor'
op pointer to op template to be checked
DESCR... |
spi_nor_spimem_check_readop(9) | NAME spi_nor_spimem_check_readop - check if the read op is supported by controller
SYNOPSIS int spi_nor_spimem_check_readop (struct spi_nor *nor , const struct spi_nor_read_command *read );
ARGUMENTS nor pointer to a 'struct spi_nor'
read pointer to op template to be checked
DESCRIPTION Return... |
spi_nor_spimem_exec_op(9) | NAME spi_nor_spimem_exec_op - execute a memory operation
SYNOPSIS int spi_nor_spimem_exec_op (struct spi_nor *nor , struct spi_mem_op *op );
ARGUMENTS nor pointer to 'struct spi_nor'
op pointer to 'struct spi_mem_op' template for transfer
RETURN 0 on success, -error otherwise.
SEE ALSO Kern... |
spi_nor_spimem_read_data(9) | NAME spi_nor_spimem_read_data - read data from flash's memory region via spi-mem
SYNOPSIS ssize_t spi_nor_spimem_read_data (struct spi_nor *nor , loff_t from , size_t len , u8 *buf );
ARGUMENTS nor pointer to 'struct spi_nor'
from offset to read from
len number of bytes to read
... |
spi_nor_spimem_setup_op(9) | NAME spi_nor_spimem_setup_op - Set up common properties of a spi-mem op.
SYNOPSIS void spi_nor_spimem_setup_op (const struct spi_nor *nor , struct spi_mem_op *op , const enum spi_nor_protocol proto );
ARGUMENTS nor pointer to a 'struct spi_nor'
op pointer to the 'struct spi_mem_op' whose prop... |
spi_nor_spimem_write_data(9) | NAME spi_nor_spimem_write_data - write data to flash memory via spi-mem
SYNOPSIS ssize_t spi_nor_spimem_write_data (struct spi_nor *nor , loff_t to , size_t len , const u8 *buf );
ARGUMENTS nor pointer to 'struct spi_nor'
to offset to write to
len number of bytes to write
... |
spi_nor_sr1_bit6_quad_enable(9) | NAME spi_nor_sr1_bit6_quad_enable - Set the Quad Enable BIT(6) in the Status Register 1.
SYNOPSIS int spi_nor_sr1_bit6_quad_enable (struct spi_nor *nor );
ARGUMENTS nor pointer to a 'struct spi_nor'
DESCRIPTION Bit 6 of the Status Register 1 is the QE bit for Macronix like QSPI memories.
RETURN 0 on success... |
spi_nor_sr2_bit1_quad_enable(9) | NAME spi_nor_sr2_bit1_quad_enable - set the Quad Enable BIT(1) in the Status Register 2.
SYNOPSIS int spi_nor_sr2_bit1_quad_enable (struct spi_nor *nor );
ARGUMENTS nor pointer to a 'struct spi_nor'.
DESCRIPTION Bit 1 of the Status Register 2 is the QE bit for Spansion like QSPI memories.
RETURN 0 on succes... |
spi_nor_sr2_bit7_quad_enable(9) | NAME spi_nor_sr2_bit7_quad_enable - set QE bit in Status Register 2.
SYNOPSIS int spi_nor_sr2_bit7_quad_enable (struct spi_nor *nor );
ARGUMENTS nor pointer to a 'struct spi_nor'
DESCRIPTION Set the Quad Enable (QE) bit in the Status Register 2. This is one of the procedures to set the QE bit described in t... |
spi_nor_sr_ready(9) | NAME spi_nor_sr_ready - Query the Status Register to see if the flash is ready for new commands.
SYNOPSIS int spi_nor_sr_ready (struct spi_nor *nor );
ARGUMENTS nor pointer to 'struct spi_nor'.
RETURN 1 if ready, 0 if not ready, -errno on errors.
SEE ALSO Kernel file ./drivers/mtd/spi-nor/core.c s... |
spi_nor_try_unlock_all(9) | NAME spi_nor_try_unlock_all - Tries to unlock the entire flash memory array.
SYNOPSIS void spi_nor_try_unlock_all (struct spi_nor *nor );
ARGUMENTS nor pointer to a 'struct spi_nor'.
DESCRIPTION Some SPI NOR flashes are write protected by default after a power-on reset cycle, in order to avoid inadvertent wr... |
spi_nor_use_parallel_locking(9) | NAME spi_nor_use_parallel_locking - Checks if RWW locking scheme shall be used
SYNOPSIS bool spi_nor_use_parallel_locking (struct spi_nor *nor );
ARGUMENTS nor pointer to 'struct spi_nor'.
RETURN true if parallel locking is enabled, false otherwise.
SEE ALSO Kernel file ./drivers/mtd/spi-nor/core.c ... |
spi_nor_wait_till_ready(9) | NAME spi_nor_wait_till_ready - Wait for a predefined amount of time for the flash to be ready, or timeout occurs.
SYNOPSIS int spi_nor_wait_till_ready (struct spi_nor *nor );
ARGUMENTS nor pointer to "struct spi_nor".
RETURN 0 on success, -errno otherwise.
SEE ALSO Kernel file ./drivers/mtd/spi-nor/c... |
spi_nor_wait_till_ready_with_timeout(9) | NAME spi_nor_wait_till_ready_with_timeout - Service routine to read the Status Register until ready, or timeout occurs.
SYNOPSIS int spi_nor_wait_till_ready_with_timeout (struct spi_nor *nor , unsigned long timeout_jiffies );
ARGUMENTS nor pointer to "struct spi_nor".
timeout_jiffies
... |
spi_nor_write_16bit_cr_and_check(9) | NAME spi_nor_write_16bit_cr_and_check - Write the Status Register 1 and the Configuration Register in one shot. Ensure that the byte written in the Configuration Register match the received value, and that the 16-bit Write did not affect what was already in the Status Register 1.
SYNOPSIS int spi_nor_write_16bit_c... |
spi_nor_write_16bit_sr_and_check(9) | NAME spi_nor_write_16bit_sr_and_check - Write the Status Register 1 and the Status Register 2 in one shot. Ensure that the byte written in the Status Register 1 match the received value, and that the 16-bit Write did not af‐ fect what was already in the Status Register 2.
SYNOPSIS int spi_nor_write_16bit_sr_and_chec... |
spi_nor_write_any_volatile_reg(9) | NAME spi_nor_write_any_volatile_reg - write any volatile register to flash memory.
SYNOPSIS int spi_nor_write_any_volatile_reg (struct spi_nor *nor , struct spi_mem_op *op , enum spi_nor_protocol proto );
ARGUMENTS nor pointer to 'struct spi_nor'
op SPI memory operation. op->data.buf must be ... |
spi_nor_write_data(9) | NAME spi_nor_write_data - write data to flash memory
SYNOPSIS ssize_t spi_nor_write_data (struct spi_nor *nor , loff_t to , size_t len , const u8 *buf );
ARGUMENTS nor pointer to 'struct spi_nor'
to offset to write to
len number of bytes to write
buf pointer to... |
spi_nor_write_disable(9) | NAME spi_nor_write_disable - Send Write Disable instruction to the chip.
SYNOPSIS int spi_nor_write_disable (struct spi_nor *nor );
ARGUMENTS nor pointer to 'struct spi_nor'.
RETURN 0 on success, -errno otherwise.
SEE ALSO Kernel file ./drivers/mtd/spi-nor/core.c spi_nor_get_cmd_ext(9), spi_nor... |
spi_nor_write_enable(9) | NAME spi_nor_write_enable - Set write enable latch with Write Enable command.
SYNOPSIS int spi_nor_write_enable (struct spi_nor *nor );
ARGUMENTS nor pointer to 'struct spi_nor'.
RETURN 0 on success, -errno otherwise.
SEE ALSO Kernel file ./drivers/mtd/spi-nor/core.c spi_nor_get_cmd_ext(9), spi... |
spi_nor_write_sr(9) | NAME spi_nor_write_sr - Write the Status Register.
SYNOPSIS int spi_nor_write_sr (struct spi_nor *nor , const u8 *sr , size_t len );
ARGUMENTS nor pointer to 'struct spi_nor'.
sr pointer to DMA-able buffer to write to the Status Register.
len number of bytes to write to the St... |
spi_nor_write_sr1_and_check(9) | NAME spi_nor_write_sr1_and_check - Write one byte to the Status Register 1 and ensure that the byte written match the received value.
SYNOPSIS int spi_nor_write_sr1_and_check (struct spi_nor *nor , u8 sr1 );
ARGUMENTS nor pointer to a 'struct spi_nor'.
sr1 byte value to be written to the Statu... |
spi_nor_write_sr2(9) | NAME spi_nor_write_sr2 - Write the Status Register 2 using the SPINOR_OP_WRSR2 (3eh) command.
SYNOPSIS int spi_nor_write_sr2 (struct spi_nor *nor , const u8 *sr2 );
ARGUMENTS nor pointer to 'struct spi_nor'.
sr2 pointer to DMA-able buffer to write to the Status Register 2.
RETURN 0 on success... |
spi_nor_write_sr_and_check(9) | NAME spi_nor_write_sr_and_check - Write the Status Register 1 and ensure that the byte written match the received value without affecting other bits in the Status Register 1 and 2.
SYNOPSIS int spi_nor_write_sr_and_check (struct spi_nor *nor , u8 sr1 );
ARGUMENTS nor pointer to a 'struct spi_nor'.
sr1... |
spi_offload_trigger_disable(9) | NAME spi_offload_trigger_disable - disables hardware trigger for offload
SYNOPSIS void spi_offload_trigger_disable (struct spi_offload *offload , struct spi_offload_trigger *trigger );
ARGUMENTS offload Offload instance
trigger Offload trigger instance
DESCRIPTION Disables the hardware trigger for th... |
spi_offload_trigger_enable(9) | NAME spi_offload_trigger_enable - enables trigger for offload
SYNOPSIS int spi_offload_trigger_enable (struct spi_offload *offload , struct spi_offload_trigger *trigger , struct spi_offload_trigger_config *config );
ARGUMENTS offload Offload instance
trigger Offload trigger instance
config ... |
spi_offload_trigger_get_priv(9) | NAME spi_offload_trigger_get_priv - Get the private data for the trigger
SYNOPSIS void * spi_offload_trigger_get_priv (struct spi_offload_trigger *trigger );
ARGUMENTS trigger Offload trigger instance.
RETURN Private data for the trigger.
SEE ALSO Kernel file ./drivers/spi/spi-offload.c devm_spi_offload_alloc(... |
spi_offload_trigger_validate(9) | NAME spi_offload_trigger_validate - Validate the requested trigger
SYNOPSIS int spi_offload_trigger_validate (struct spi_offload_trigger *trigger , struct spi_offload_trigger_config *config );
ARGUMENTS trigger Offload trigger instance
config Trigger config to validate
DESCRIPTION On success, conf... |
spi_optimize_message(9) | NAME spi_optimize_message - do any one-time validation and setup for a SPI message
SYNOPSIS int spi_optimize_message (struct spi_device *spi , struct spi_message *msg );
ARGUMENTS spi the device that will be used for the message
msg the message to optimize
DESCRIPTION Peripheral drivers that ... |
spi_populate_tag_msg(9) | NAME spi_populate_tag_msg - place a tag message in a buffer
SYNOPSIS int spi_populate_tag_msg (unsigned char *msg , struct scsi_cmnd *cmd );
ARGUMENTS msg pointer to the area to place the tag
cmd pointer to the scsi command for the tag
NOTES designed to create the correct type of tag message ... |
spi_pump_messages(9) | NAME spi_pump_messages - kthread work function which processes spi message queue
SYNOPSIS void spi_pump_messages (struct kthread_work *work );
ARGUMENTS work pointer to kthread work struct contained in the controller struct
SEE ALSO Kernel file ./drivers/spi/spi.c __spi_register_driver(9), spi_alloc_device(9)... |
spi_queued_transfer(9) | NAME spi_queued_transfer - transfer function for queued transfers
SYNOPSIS int spi_queued_transfer (struct spi_device *spi , struct spi_message *msg );
ARGUMENTS spi SPI device which is requesting transfer
msg SPI message which is to handled is queued to driver queue
RETURN zero on success, e... |
spi_read(9) | NAME spi_read - SPI synchronous read
SYNOPSIS int spi_read (struct spi_device *spi , void *buf , size_t len );
ARGUMENTS spi device from which data will be read
buf data buffer
len data buffer size
CONTEXT can sleep
DESCRIPTION This function reads the buffer buf. Callable on... |
spi_register_board_info(9) | NAME spi_register_board_info - register SPI devices for a given board
SYNOPSIS int spi_register_board_info (struct spi_board_info const *info , unsigned n );
ARGUMENTS info array of chip descriptors
n how many descriptors are provided
CONTEXT can sleep
DESCRIPTION Board-specific early init... |
spi_register_controller(9) | NAME spi_register_controller - register SPI host or target controller
SYNOPSIS int spi_register_controller (struct spi_controller *ctlr );
ARGUMENTS ctlr initialized controller, originally from spi_alloc_host or spi_alloc_target
CONTEXT can sleep
DESCRIPTION SPI controllers connect to their drivers using so... |
spi_replace_transfers(9) | NAME spi_replace_transfers - replace transfers with several transfers and register change with spi_message.resources
SYNOPSIS struct spi_replaced_transfers * spi_replace_transfers (struct spi_message *msg , struct spi_transfer *xfer_first , size_t remove , size_t insert , spi_replaced_release_t release , size_t extrad... |
spi_res_add(9) | NAME spi_res_add - add a spi_res to the spi_message
SYNOPSIS void spi_res_add (struct spi_message *message , void *res );
ARGUMENTS message the SPI message
res the spi_resource
SEE ALSO Kernel file ./drivers/spi/spi.c __spi_register_driver(9), spi_alloc_device(9), spi_add_device(9), spi_new_d... |
spi_res_alloc(9) | NAME spi_res_alloc - allocate a spi resource that is life-cycle managed during the processing of a spi_message while using spi_transfer_one
SYNOPSIS void * spi_res_alloc (struct spi_device *spi , spi_res_release_t release , size_t size , gfp_t gfp );
ARGUMENTS spi the SPI device for which we allocate memory
... |
spi_res_free(9) | NAME spi_res_free - free an SPI resource
SYNOPSIS void spi_res_free (void *res );
ARGUMENTS res pointer to the custom data of a resource
SEE ALSO Kernel file ./drivers/spi/spi.c __spi_register_driver(9), spi_alloc_device(9), spi_add_device(9), spi_new_device(9), spi_unregister_device(9), spi_register_bo... |
spi_res_release(9) | NAME spi_res_release - release all SPI resources for this message
SYNOPSIS void spi_res_release (struct spi_controller *ctlr , struct spi_message *message );
ARGUMENTS ctlr the spi_controller
message the spi_message
SEE ALSO Kernel file ./drivers/spi/spi.c __spi_register_driver(9), spi_alloc_devic... |
spi_schedule_dv_device(9) | NAME spi_schedule_dv_device - schedule domain validation to occur on the device
SYNOPSIS void spi_schedule_dv_device (struct scsi_device *sdev );
ARGUMENTS sdev The device to validate
DESCRIPTION Identical to spi_dv_device above, except that the DV will be scheduled to occur in a workqueue later. All memory ... |
spi_set_cs_timing(9) | NAME spi_set_cs_timing - configure CS setup, hold, and inactive delays
SYNOPSIS int spi_set_cs_timing (struct spi_device *spi );
ARGUMENTS spi the device that requires specific CS timing configuration
RETURN zero on success, else a negative error code.
SEE ALSO Kernel file ./drivers/spi/spi.c __spi_register... |
spi_set_thread_rt(9) | NAME spi_set_thread_rt - set the controller to pump at realtime priority
SYNOPSIS void spi_set_thread_rt (struct spi_controller *ctlr );
ARGUMENTS ctlr controller to boost priority of
DESCRIPTION This can be called because the controller requested realtime priority (by setting the ->rt value before calling sp... |
spi_setup(9) | NAME spi_setup - setup SPI mode and clock rate
SYNOPSIS int spi_setup (struct spi_device *spi );
ARGUMENTS spi the device whose settings are being modified
CONTEXT can sleep, and no requests are queued to the device
DESCRIPTION SPI protocol drivers may need to update the transfer mode if the device does... |
spi_split_transfers_maxsize(9) | NAME spi_split_transfers_maxsize - split spi transfers into multiple transfers when an individual transfer exceeds a certain size
SYNOPSIS int spi_split_transfers_maxsize (struct spi_controller *ctlr , struct spi_message *msg , size_t maxsize );
ARGUMENTS ctlr the spi_controller for this transfer
msg ... |
spi_split_transfers_maxwords(9) | NAME spi_split_transfers_maxwords - split SPI transfers into multiple transfers when an individual transfer exceeds a certain number of SPI words
SYNOPSIS int spi_split_transfers_maxwords (struct spi_controller *ctlr , struct spi_message *msg , size_t maxwords );
ARGUMENTS ctlr the spi_controller for this tran... |
spi_sync(9) | NAME spi_sync - blocking/synchronous SPI data transfers
SYNOPSIS int spi_sync (struct spi_device *spi , struct spi_message *message );
ARGUMENTS spi device with which data will be exchanged
message describes the data transfers
CONTEXT can sleep
DESCRIPTION This call may only be used from a cont... |
spi_sync_locked(9) | NAME spi_sync_locked - version of spi_sync with exclusive bus usage
SYNOPSIS int spi_sync_locked (struct spi_device *spi , struct spi_message *message );
ARGUMENTS spi device with which data will be exchanged
message describes the data transfers
CONTEXT can sleep
DESCRIPTION This call may onl... |
spi_sync_transfer(9) | NAME spi_sync_transfer - synchronous SPI data transfer
SYNOPSIS int spi_sync_transfer (struct spi_device *spi , struct spi_transfer *xfers , unsigned int num_xfers );
ARGUMENTS spi device with which data will be exchanged
xfers An array of spi_transfers
num_xfers Number of items in the... |
spi_take_timestamp_post(9) | NAME spi_take_timestamp_post - helper to collect the end of the TX timestamp
SYNOPSIS void spi_take_timestamp_post (struct spi_controller *ctlr , struct spi_transfer *xfer , size_t progress , bool irqs_off );
ARGUMENTS ctlr Pointer to the spi_controller structure of the driver
xfer Pointer to th... |
spi_take_timestamp_pre(9) | NAME spi_take_timestamp_pre - helper to collect the beginning of the TX timestamp
SYNOPSIS void spi_take_timestamp_pre (struct spi_controller *ctlr , struct spi_transfer *xfer , size_t progress , bool irqs_off );
ARGUMENTS ctlr Pointer to the spi_controller structure of the driver
xfer Pointer t... |
spi_target_abort(9) | NAME spi_target_abort - abort the ongoing transfer request on an SPI target controller
SYNOPSIS int spi_target_abort (struct spi_device *spi );
ARGUMENTS spi device used for the current transfer
SEE ALSO Kernel file ./drivers/spi/spi.c __spi_register_driver(9), spi_alloc_device(9), spi_add_device(9), spi_new... |
spi_test_execute_msg(9) | NAME spi_test_execute_msg - default implementation to run a test
SYNOPSIS int spi_test_execute_msg (struct spi_device *spi , struct spi_test *test , void *tx , void *rx );
ARGUMENTS spi spi_device on which to run the spi_message
test the test to execute, which already contains msg
tx ... |
spi_test_run_test(9) | NAME spi_test_run_test - run an individual spi_test including all the relevant iterations on: length and buffer alignment
SYNOPSIS int spi_test_run_test (struct spi_device *spi , const struct spi_test *test , void *tx , void *rx );
ARGUMENTS spi the spi_device to send the messages to
test the t... |
spi_test_run_tests(9) | NAME spi_test_run_tests - run an array of spi_messages tests
SYNOPSIS int spi_test_run_tests (struct spi_device *spi , struct spi_test *tests );
ARGUMENTS spi the spi device on which to run the tests
tests NULL-terminated array of spi_test
RETURN status errors as per spi_test_run_test
SEE ALSO... |
spi_unoptimize_message(9) | NAME spi_unoptimize_message - releases any resources allocated by spi_optimize_message()
SYNOPSIS void spi_unoptimize_message (struct spi_message *msg );
ARGUMENTS msg the message to unoptimize
DESCRIPTION Calls to this function must be balanced with calls to spi_optimize_message.
CONTEXT can sleep
SEE ALS... |
spi_unregister_controller(9) | NAME spi_unregister_controller - unregister SPI host or target controller
SYNOPSIS void spi_unregister_controller (struct spi_controller *ctlr );
ARGUMENTS ctlr the controller being unregistered
CONTEXT can sleep
DESCRIPTION This call is used only by SPI controller drivers, which are the only ones direct... |
spi_unregister_device(9) | NAME spi_unregister_device - unregister a single SPI device
SYNOPSIS void spi_unregister_device (struct spi_device *spi );
ARGUMENTS spi spi_device to unregister
DESCRIPTION Start making the passed SPI device vanish. Normally this would be handled by spi_unregister_controller.
SEE ALSO Kernel file ./drive... |
spi_unregister_driver(9) | NAME spi_unregister_driver - reverse effect of spi_register_driver
SYNOPSIS void spi_unregister_driver (struct spi_driver *sdrv );
ARGUMENTS sdrv the driver to unregister
CONTEXT can sleep
SEE ALSO Kernel file ./include/linux/spi/spi.h struct spi_statistics(9), struct spi_delay(9), struct spi_device(9), st... |
spi_w8r16(9) | NAME spi_w8r16 - SPI synchronous 8 bit write followed by 16 bit read
SYNOPSIS ssize_t spi_w8r16 (struct spi_device *spi , u8 cmd );
ARGUMENTS spi device with which data will be exchanged
cmd command to be written before data is read back
CONTEXT can sleep
DESCRIPTION The number is returned i... |
spi_w8r16be(9) | NAME spi_w8r16be - SPI synchronous 8 bit write followed by 16 bit big-endian read
SYNOPSIS ssize_t spi_w8r16be (struct spi_device *spi , u8 cmd );
ARGUMENTS spi device with which data will be exchanged
cmd command to be written before data is read back
CONTEXT can sleep
DESCRIPTION This func... |
spi_w8r8(9) | NAME spi_w8r8 - SPI synchronous 8 bit write followed by 8 bit read
SYNOPSIS ssize_t spi_w8r8 (struct spi_device *spi , u8 cmd );
ARGUMENTS spi device with which data will be exchanged
cmd command to be written before data is read back
CONTEXT can sleep
DESCRIPTION Callable only from contexts... |
spi_write(9) | NAME spi_write - SPI synchronous write
SYNOPSIS int spi_write (struct spi_device *spi , const void *buf , size_t len );
ARGUMENTS spi device to which data will be written
buf data buffer
len data buffer size
CONTEXT can sleep
DESCRIPTION This function writes the buffer buf. ... |
spi_write_then_read(9) | NAME spi_write_then_read - SPI synchronous write followed by read
SYNOPSIS int spi_write_then_read (struct spi_device *spi , const void *txbuf , unsigned n_tx , void *rxbuf , unsigned n_rx );
ARGUMENTS spi device with which data will be exchanged
txbuf data to be written (need not be DMA-safe)
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.