id
stringlengths
4
63
text
stringlengths
153
8.81M
nand_get_nvddr_timings(9)
NAME nand_get_nvddr_timings - get NV-DDR timing from data interface SYNOPSIS const struct nand_nvddr_timings * nand_get_nvddr_timings (const struct nand_interface_config *conf ); ARGUMENTS conf The data interface SEE ALSO Kernel file ./include/linux/mtd/rawnand.h struct nand_parameters(9), struct nand_id(9...
nand_get_sdr_timings(9)
NAME nand_get_sdr_timings - get SDR timing from data interface SYNOPSIS const struct nand_sdr_timings * nand_get_sdr_timings (const struct nand_interface_config *conf ); ARGUMENTS conf The data interface SEE ALSO Kernel file ./include/linux/mtd/rawnand.h struct nand_parameters(9), struct nand_id(9), struct...
nand_get_set_features_notsupp(9)
NAME nand_get_set_features_notsupp - set/get features stub returning -ENOTSUPP SYNOPSIS int nand_get_set_features_notsupp (struct nand_chip *chip , int addr , u8 *subfeature_param ); ARGUMENTS chip nand chip info structure addr feature address. subfeature_param the sub...
nand_gpio_waitrdy(9)
NAME nand_gpio_waitrdy - Poll R/B GPIO pin until ready SYNOPSIS int nand_gpio_waitrdy (struct nand_chip *chip , struct gpio_desc *gpiod , unsigned long timeout_ms ); ARGUMENTS chip NAND chip structure gpiod GPIO descriptor of R/B pin timeout_ms Timeout in ms DESCRIPTION Poll the R/B GPI...
nand_interface_is_nvddr(9)
NAME nand_interface_is_nvddr - get the interface type SYNOPSIS bool nand_interface_is_nvddr (const struct nand_interface_config *conf ); ARGUMENTS conf The data interface SEE ALSO Kernel file ./include/linux/mtd/rawnand.h struct nand_parameters(9), struct nand_id(9), struct nand_ecc_step_info(9), struct na...
nand_interface_is_sdr(9)
NAME nand_interface_is_sdr - get the interface type SYNOPSIS bool nand_interface_is_sdr (const struct nand_interface_config *conf ); ARGUMENTS conf The data interface SEE ALSO Kernel file ./include/linux/mtd/rawnand.h struct nand_parameters(9), struct nand_id(9), struct nand_ecc_step_info(9), struct nand_e...
nand_isbad_bbt(9)
NAME nand_isbad_bbt - [NAND Interface] Check if a block is bad SYNOPSIS int nand_isbad_bbt (struct nand_chip *this , loff_t offs , int allowbbt ); ARGUMENTS this NAND chip object offs offset in the device allowbbt allow access to bad block table region SEE ALSO Kernel file ./driv...
nand_isreserved_bbt(9)
NAME nand_isreserved_bbt - [NAND Interface] Check if a block is reserved SYNOPSIS int nand_isreserved_bbt (struct nand_chip *this , loff_t offs ); ARGUMENTS this NAND chip object offs offset in the device SEE ALSO Kernel file ./drivers/mtd/nand/raw/nand_bbt.c check_pattern(9), check_sho...
nand_lock(9)
NAME nand_lock - [MTD Interface] Lock the NAND flash SYNOPSIS int nand_lock (struct mtd_info *mtd , loff_t ofs , uint64_t len ); ARGUMENTS mtd MTD device structure ofs offset byte address len number of bytes to lock (must be a multiple of block/page size) SEE ALSO Kernel file...
nand_markbad_bbm(9)
NAME nand_markbad_bbm - mark a block by updating the BBM SYNOPSIS int nand_markbad_bbm (struct nand_chip *chip , loff_t ofs ); ARGUMENTS chip NAND chip object ofs offset of the block to mark bad SEE ALSO Kernel file ./drivers/mtd/nand/raw/nand_base.c nand_extract_bits(9), nand_select_targe...
nand_markbad_bbt(9)
NAME nand_markbad_bbt - [NAND Interface] Mark a block bad in the BBT SYNOPSIS int nand_markbad_bbt (struct nand_chip *this , loff_t offs ); ARGUMENTS this NAND chip object offs offset of the bad block SEE ALSO Kernel file ./drivers/mtd/nand/raw/nand_bbt.c check_pattern(9), check_short_p...
nand_match_ecc_req(9)
NAME nand_match_ecc_req - meet the chip's requirement with least ECC bytes SYNOPSIS int nand_match_ecc_req (struct nand_chip *chip , const struct nand_ecc_caps *caps , int oobavail ); ARGUMENTS chip nand chip info structure caps ECC engine caps info structure oobavail OOB size that th...
nand_maximize_ecc(9)
NAME nand_maximize_ecc - choose the max ECC strength available SYNOPSIS int nand_maximize_ecc (struct nand_chip *chip , const struct nand_ecc_caps *caps , int oobavail ); ARGUMENTS chip nand chip info structure caps ECC engine caps info structure oobavail OOB size that the ECC engine ...
nand_memory_bbt(9)
NAME nand_memory_bbt - [GENERIC] create a memory based bad block table SYNOPSIS int nand_memory_bbt (struct nand_chip *this , struct nand_bbt_descr *bd ); ARGUMENTS this NAND chip object bd descriptor for the good/bad block search pattern DESCRIPTION The function creates a memory based bbt by...
nand_monolithic_read_page_raw(9)
NAME nand_monolithic_read_page_raw - Monolithic page read in raw mode SYNOPSIS int nand_monolithic_read_page_raw (struct nand_chip *chip , u8 *buf , int oob_required , int page ); ARGUMENTS chip NAND chip info structure buf buffer to store read data oob_required calle...
nand_monolithic_write_page_raw(9)
NAME nand_monolithic_write_page_raw - Monolithic page write in raw mode SYNOPSIS int nand_monolithic_write_page_raw (struct nand_chip *chip , const u8 *buf , int oob_required , int page ); ARGUMENTS chip NAND chip info structure buf data buffer to write oob_required m...
nand_op_parser_exec_op(9)
NAME nand_op_parser_exec_op - exec_op parser SYNOPSIS int nand_op_parser_exec_op (struct nand_chip *chip , const struct nand_op_parser *parser , const struct nand_operation *op , bool check_only ); ARGUMENTS chip the NAND chip parser patterns description provided by the controller driver o...
nand_op_parser_match_pat(9)
NAME nand_op_parser_match_pat - Checks if a pattern matches the instructions remaining in the parser context SYNOPSIS bool nand_op_parser_match_pat (const struct nand_op_parser_pattern *pat , struct nand_op_parser_ctx *ctx ); ARGUMENTS pat the pattern to test ctx the parser context structure t...
nand_op_parser_must_split_instr(9)
NAME nand_op_parser_must_split_instr - Checks if an instruction must be split SYNOPSIS bool nand_op_parser_must_split_instr (const struct nand_op_parser_pattern_elem *pat , const struct nand_op_instr *instr , unsigned int *start_offset ); ARGUMENTS pat the parser pattern element that matches instr ins...
nand_opcode_8bits(9)
NAME nand_opcode_8bits - Check if the opcode's address should be sent only on the lower 8 bits SYNOPSIS int nand_opcode_8bits (unsigned int command ); ARGUMENTS command opcode to check SEE ALSO Kernel file ./include/linux/mtd/rawnand.h struct nand_parameters(9), struct nand_id(9), struct nand_ecc_step_info(9)...
nand_prog_page_begin_op(9)
NAME nand_prog_page_begin_op - starts a PROG PAGE operation SYNOPSIS int nand_prog_page_begin_op (struct nand_chip *chip , unsigned int page , unsigned int offset_in_page , const void *buf , unsigned int len ); ARGUMENTS chip The NAND chip page page to write offset_in_page ...
nand_prog_page_end_op(9)
NAME nand_prog_page_end_op - ends a PROG PAGE operation SYNOPSIS int nand_prog_page_end_op (struct nand_chip *chip ); ARGUMENTS chip The NAND chip DESCRIPTION This function issues the second half of a PROG PAGE operation. This function does not select/unselect the CS line. Returns 0 on success, a negative e...
nand_prog_page_op(9)
NAME nand_prog_page_op - Do a full PROG PAGE operation SYNOPSIS int nand_prog_page_op (struct nand_chip *chip , unsigned int page , unsigned int offset_in_page , const void *buf , unsigned int len ); ARGUMENTS chip The NAND chip page page to write offset_in_page offset...
nand_read_buf(9)
NAME nand_read_buf - [DEFAULT] read chip data into buffer SYNOPSIS void nand_read_buf (struct nand_chip *chip , uint8_t *buf , int len ); ARGUMENTS chip NAND chip object buf buffer to store date len number of bytes to read DESCRIPTION Default read function for 8bit buswidth. S...
nand_read_buf16(9)
NAME nand_read_buf16 - [DEFAULT] read chip data into buffer SYNOPSIS void nand_read_buf16 (struct nand_chip *chip , uint8_t *buf , int len ); ARGUMENTS chip NAND chip object buf buffer to store date len number of bytes to read DESCRIPTION Default read function for 16bit buswidt...
nand_read_byte(9)
NAME nand_read_byte - [DEFAULT] read one byte from the chip SYNOPSIS uint8_t nand_read_byte (struct nand_chip *chip ); ARGUMENTS chip NAND chip object DESCRIPTION Default read function for 8bit buswidth SEE ALSO Kernel file ./drivers/mtd/nand/raw/nand_legacy.c nand_read_byte16(9), nand_select_chip(9), ...
nand_read_byte16(9)
NAME nand_read_byte16 - [DEFAULT] read one byte endianness aware from the chip SYNOPSIS uint8_t nand_read_byte16 (struct nand_chip *chip ); ARGUMENTS chip NAND chip object DESCRIPTION Default read function for 16bit buswidth with endianness conversion. SEE ALSO Kernel file ./drivers/mtd/nand/raw/nand_leg...
nand_read_data_op(9)
NAME nand_read_data_op - Read data from the NAND SYNOPSIS int nand_read_data_op (struct nand_chip *chip , void *buf , unsigned int len , bool force_8bit , bool check_only ); ARGUMENTS chip The NAND chip buf buffer used to store the data len length of the buffer force_8bi...
nand_read_oob(9)
NAME nand_read_oob - [MTD Interface] NAND read data and/or out-of-band SYNOPSIS int nand_read_oob (struct mtd_info *mtd , loff_t from , struct mtd_oob_ops *ops ); ARGUMENTS mtd MTD device structure from offset to read from ops oob operation description structure DESCRIPTION NAN...
nand_read_oob_op(9)
NAME nand_read_oob_op - Do a READ OOB operation SYNOPSIS int nand_read_oob_op (struct nand_chip *chip , unsigned int page , unsigned int offset_in_oob , void *buf , unsigned int len ); ARGUMENTS chip The NAND chip page page to read offset_in_oob offset within the OOB a...
nand_read_oob_std(9)
NAME nand_read_oob_std - [REPLACEABLE] the most common OOB data read function SYNOPSIS int nand_read_oob_std (struct nand_chip *chip , int page ); ARGUMENTS chip nand chip info structure page page number to read SEE ALSO Kernel file ./drivers/mtd/nand/raw/nand_base.c nand_extract_bits(9), n...
nand_read_oob_syndrome(9)
NAME nand_read_oob_syndrome - [REPLACEABLE] OOB data read function for HW ECC with syndromes SYNOPSIS int nand_read_oob_syndrome (struct nand_chip *chip , int page ); ARGUMENTS chip nand chip info structure page page number to read SEE ALSO Kernel file ./drivers/mtd/nand/raw/nand_base.c nand...
nand_read_page_hwecc(9)
NAME nand_read_page_hwecc - [REPLACEABLE] hardware ECC based page read function SYNOPSIS int nand_read_page_hwecc (struct nand_chip *chip , uint8_t *buf , int oob_required , int page ); ARGUMENTS chip nand chip info structure buf buffer to store read data oob_required ...
nand_read_page_hwecc_oob_first(9)
NAME nand_read_page_hwecc_oob_first - Hardware ECC page read with ECC data read from OOB area SYNOPSIS int nand_read_page_hwecc_oob_first (struct nand_chip *chip , uint8_t *buf , int oob_required , int page ); ARGUMENTS chip nand chip info structure buf buffer to store read data oob_req...
nand_read_page_op(9)
NAME nand_read_page_op - Do a READ PAGE operation SYNOPSIS int nand_read_page_op (struct nand_chip *chip , unsigned int page , unsigned int offset_in_page , void *buf , unsigned int len ); ARGUMENTS chip The NAND chip page page to read offset_in_page offset within the ...
nand_read_page_raw(9)
NAME nand_read_page_raw - [INTERN] read raw page data without ecc SYNOPSIS int nand_read_page_raw (struct nand_chip *chip , uint8_t *buf , int oob_required , int page ); ARGUMENTS chip nand chip info structure buf buffer to store read data oob_required caller requires...
nand_read_page_raw_notsupp(9)
NAME nand_read_page_raw_notsupp - dummy read raw page function SYNOPSIS int nand_read_page_raw_notsupp (struct nand_chip *chip , u8 *buf , int oob_required , int page ); ARGUMENTS chip nand chip info structure buf buffer to store read data oob_required caller requires...
nand_read_page_raw_syndrome(9)
NAME nand_read_page_raw_syndrome - [INTERN] read raw page data without ecc SYNOPSIS int nand_read_page_raw_syndrome (struct nand_chip *chip , uint8_t *buf , int oob_required , int page ); ARGUMENTS chip nand chip info structure buf buffer to store read data oob_required ...
nand_read_page_swecc(9)
NAME nand_read_page_swecc - [REPLACEABLE] software ECC based page read function SYNOPSIS int nand_read_page_swecc (struct nand_chip *chip , uint8_t *buf , int oob_required , int page ); ARGUMENTS chip nand chip info structure buf buffer to store read data oob_required ...
nand_read_page_syndrome(9)
NAME nand_read_page_syndrome - [REPLACEABLE] hardware ECC syndrome based page read SYNOPSIS int nand_read_page_syndrome (struct nand_chip *chip , uint8_t *buf , int oob_required , int page ); ARGUMENTS chip nand chip info structure buf buffer to store read data oob_required ...
nand_read_param_page_op(9)
NAME nand_read_param_page_op - Do a READ PARAMETER PAGE operation SYNOPSIS int nand_read_param_page_op (struct nand_chip *chip , u8 page , void *buf , unsigned int len ); ARGUMENTS chip The NAND chip page parameter page to read buf buffer used to store the data len ...
nand_read_subpage(9)
NAME nand_read_subpage - [REPLACEABLE] ECC based sub-page read function SYNOPSIS int nand_read_subpage (struct nand_chip *chip , uint32_t data_offs , uint32_t readlen , uint8_t *bufpoi , int page ); ARGUMENTS chip nand chip info structure data_offs offset of requested data within the page rea...
nand_readid_op(9)
NAME nand_readid_op - Do a READID operation SYNOPSIS int nand_readid_op (struct nand_chip *chip , u8 addr , void *buf , unsigned int len ); ARGUMENTS chip The NAND chip addr address cycle to pass after the READID command buf buffer used to store the ID len length ...
nand_region_is_secured(9)
NAME nand_region_is_secured - Check if the region is secured SYNOPSIS bool nand_region_is_secured (struct nand_chip *chip , loff_t offset , u64 size ); ARGUMENTS chip NAND chip object offset Offset of the region to check size Size of the region to check DESCRIPTION Checks if the re...
nand_release_device(9)
NAME nand_release_device - [GENERIC] release chip SYNOPSIS void nand_release_device (struct nand_chip *chip ); ARGUMENTS chip NAND chip object DESCRIPTION Release chip lock and wake up anyone waiting on the device. SEE ALSO Kernel file ./drivers/mtd/nand/raw/nand_base.c nand_extract_bits(9), nand_sele...
nand_reset(9)
NAME nand_reset - Reset and initialize a NAND device SYNOPSIS int nand_reset (struct nand_chip *chip , int chipnr ); ARGUMENTS chip The NAND chip chipnr Internal die id DESCRIPTION Save the timings data structure, then apply SDR timings mode 0 (see nand_reset_interface for details), do the reset ...
nand_reset_interface(9)
NAME nand_reset_interface - Reset data interface and timings SYNOPSIS int nand_reset_interface (struct nand_chip *chip , int chipnr ); ARGUMENTS chip The NAND chip chipnr Internal die id DESCRIPTION Reset the Data interface and timings to ONFI mode 0. Returns 0 for success or negative error code...
nand_reset_op(9)
NAME nand_reset_op - Do a reset operation SYNOPSIS int nand_reset_op (struct nand_chip *chip ); ARGUMENTS chip The NAND chip DESCRIPTION This function sends a RESET command and waits for the NAND to be ready before returning. This function does not select/unselect the CS line. Returns 0 on success, a negati...
nand_resume(9)
NAME nand_resume - [MTD Interface] Resume the NAND flash SYNOPSIS void nand_resume (struct mtd_info *mtd ); ARGUMENTS mtd MTD device structure SEE ALSO Kernel file ./drivers/mtd/nand/raw/nand_base.c nand_extract_bits(9), nand_select_target(9), nand_deselect_target(9), nand_release_device(9), nand_bbm_...
nand_scan_bbt(9)
NAME nand_scan_bbt - [NAND Interface] scan, find, read and maybe create bad block table(s) SYNOPSIS int nand_scan_bbt (struct nand_chip *this , struct nand_bbt_descr *bd ); ARGUMENTS this the NAND device bd descriptor for the good/bad block search pattern DESCRIPTION The function checks, i...
nand_scan_ident(9)
NAME nand_scan_ident - Scan for the NAND device SYNOPSIS int nand_scan_ident (struct nand_chip *chip , unsigned int maxchips , struct nand_flash_dev *table ); ARGUMENTS chip NAND chip object maxchips number of chips to scan for table alternative NAND ID table DESCRIPTION This is the f...
nand_scan_tail(9)
NAME nand_scan_tail - Scan for the NAND device SYNOPSIS int nand_scan_tail (struct nand_chip *chip ); ARGUMENTS chip NAND chip object DESCRIPTION This is the second phase of the normal nand_scan function. It fills out all the uninitialized function pointers with the defaults and scans for a bad block table if...
nand_scan_with_ids(9)
NAME nand_scan_with_ids - [NAND Interface] Scan for the NAND device SYNOPSIS int nand_scan_with_ids (struct nand_chip *chip , unsigned int maxchips , struct nand_flash_dev *ids ); ARGUMENTS chip NAND chip object maxchips number of chips to scan for. ids optional flash IDs table DESC...
nand_select_chip(9)
NAME nand_select_chip - [DEFAULT] control CE line SYNOPSIS void nand_select_chip (struct nand_chip *chip , int chipnr ); ARGUMENTS chip NAND chip object chipnr chipnumber to select, -1 for deselect DESCRIPTION Default select function for 1 chip devices. SEE ALSO Kernel file ./drivers/mtd/nan...
nand_select_target(9)
NAME nand_select_target - Select a NAND target (A.K.A. die) SYNOPSIS void nand_select_target (struct nand_chip *chip , unsigned int cs ); ARGUMENTS chip NAND chip object cs the CS line to select. Note that this CS id is always from the chip PoV, not the controller one DESCRIPTION Select a NAN...
nand_set_features(9)
NAME nand_set_features - wrapper to perform a SET_FEATURE SYNOPSIS int nand_set_features (struct nand_chip *chip , int addr , u8 *subfeature_param ); ARGUMENTS chip NAND chip info structure addr feature address subfeature_param the subfeature parameters, a four bytes a...
nand_set_features_op(9)
NAME nand_set_features_op - Do a SET FEATURES operation SYNOPSIS int nand_set_features_op (struct nand_chip *chip , u8 feature , const void *data ); ARGUMENTS chip The NAND chip feature feature id data 4 bytes of data DESCRIPTION This function sends a SET FEATURES command and waits ...
nand_setup_interface(9)
NAME nand_setup_interface - Setup the best data interface and timings SYNOPSIS int nand_setup_interface (struct nand_chip *chip , int chipnr ); ARGUMENTS chip The NAND chip chipnr Internal die id DESCRIPTION Configure what has been reported to be the best data interface and NAND timings supported...
nand_setup_read_retry(9)
NAME nand_setup_read_retry - [INTERN] Set the READ RETRY mode SYNOPSIS int nand_setup_read_retry (struct nand_chip *chip , int retry_mode ); ARGUMENTS chip NAND chip object retry_mode the retry mode to use DESCRIPTION Some vendors supply a special command to shift the Vt threshold, to be used when th...
nand_shutdown(9)
NAME nand_shutdown - [MTD Interface] Finish the current NAND operation and prevent further operations SYNOPSIS void nand_shutdown (struct mtd_info *mtd ); ARGUMENTS mtd MTD device structure SEE ALSO Kernel file ./drivers/mtd/nand/raw/nand_base.c nand_extract_bits(9), nand_select_target(9), nand_deselect...
nand_soft_waitrdy(9)
NAME nand_soft_waitrdy - Poll STATUS reg until RDY bit is set to 1 SYNOPSIS int nand_soft_waitrdy (struct nand_chip *chip , unsigned long timeout_ms ); ARGUMENTS chip NAND chip structure timeout_ms Timeout in ms DESCRIPTION Poll the STATUS register using ->exec_op until the RDY bit becomes 1. If ...
nand_status_op(9)
NAME nand_status_op - Do a STATUS operation SYNOPSIS int nand_status_op (struct nand_chip *chip , u8 *status ); ARGUMENTS chip The NAND chip status out variable to store the NAND status DESCRIPTION This function sends a STATUS command and reads back the status returned by the NAND. This function...
nand_subop_get_addr_start_off(9)
NAME nand_subop_get_addr_start_off - Get the start offset in an address array SYNOPSIS unsigned int nand_subop_get_addr_start_off (const struct nand_subop *subop , unsigned int instr_idx ); ARGUMENTS subop The entire sub-operation instr_idx Index of the instruction inside the sub-operation DESCRIPTIO...
nand_subop_get_data_len(9)
NAME nand_subop_get_data_len - Get the number of bytes to retrieve SYNOPSIS unsigned int nand_subop_get_data_len (const struct nand_subop *subop , unsigned int instr_idx ); ARGUMENTS subop The entire sub-operation instr_idx Index of the instruction inside the sub-operation DESCRIPTION During driver d...
nand_subop_get_data_start_off(9)
NAME nand_subop_get_data_start_off - Get the start offset in a data array SYNOPSIS unsigned int nand_subop_get_data_start_off (const struct nand_subop *subop , unsigned int instr_idx ); ARGUMENTS subop The entire sub-operation instr_idx Index of the instruction inside the sub-operation DESCRIPTION Du...
nand_subop_get_num_addr_cyc(9)
NAME nand_subop_get_num_addr_cyc - Get the remaining address cycles to assert SYNOPSIS unsigned int nand_subop_get_num_addr_cyc (const struct nand_subop *subop , unsigned int instr_idx ); ARGUMENTS subop The entire sub-operation instr_idx Index of the instruction inside the sub-operation DESCRIPTION ...
nand_suspend(9)
NAME nand_suspend - [MTD Interface] Suspend the NAND flash SYNOPSIS int nand_suspend (struct mtd_info *mtd ); ARGUMENTS mtd MTD device structure DESCRIPTION Returns 0 for success or negative error code otherwise. SEE ALSO Kernel file ./drivers/mtd/nand/raw/nand_base.c nand_extract_bits(9), nand_select_t...
nand_sync(9)
NAME nand_sync - [MTD Interface] sync SYNOPSIS void nand_sync (struct mtd_info *mtd ); ARGUMENTS mtd MTD device structure DESCRIPTION Sync is actually a wait for chip ready function. SEE ALSO Kernel file ./drivers/mtd/nand/raw/nand_base.c nand_extract_bits(9), nand_select_target(9), nand_deselect_targe...
nand_to_spinand(9)
NAME nand_to_spinand - Get the SPI NAND device embedding an NAND object SYNOPSIS struct spinand_device * nand_to_spinand (struct nand_device *nand ); ARGUMENTS nand NAND object RETURN the SPI NAND device embedding nand. SEE ALSO Kernel file ./include/linux/mtd/spinand.h struct spinand_id(9), struct spi...
nand_transfer_oob(9)
NAME nand_transfer_oob - [INTERN] Transfer oob to client buffer SYNOPSIS uint8_t * nand_transfer_oob (struct nand_chip *chip , uint8_t *oob , struct mtd_oob_ops *ops , size_t len ); ARGUMENTS chip NAND chip object oob oob destination address ops oob ops structure len ...
nand_unlock(9)
NAME nand_unlock - [MTD Interface] Unlock the NAND flash SYNOPSIS int nand_unlock (struct mtd_info *mtd , loff_t ofs , uint64_t len ); ARGUMENTS mtd MTD device structure ofs offset byte address len number of bytes to unlock (must be a multiple of block/page size) SEE ALSO Kern...
nand_update_bbt(9)
NAME nand_update_bbt - update bad block table(s) SYNOPSIS int nand_update_bbt (struct nand_chip *this , loff_t offs ); ARGUMENTS this the NAND device offs the offset of the newly marked block DESCRIPTION The function updates the bad block table(s). SEE ALSO Kernel file ./drivers/mtd/nand/r...
nand_wait(9)
NAME nand_wait - [DEFAULT] wait until the command is done SYNOPSIS int nand_wait (struct nand_chip *chip ); ARGUMENTS chip NAND chip structure DESCRIPTION Wait for command done. This applies to erase and program only. SEE ALSO Kernel file ./drivers/mtd/nand/raw/nand_legacy.c nand_read_byte(9), nand_read_...
nand_wait_ready(9)
NAME nand_wait_ready - [GENERIC] Wait for the ready pin after commands. SYNOPSIS void nand_wait_ready (struct nand_chip *chip ); ARGUMENTS chip NAND chip object DESCRIPTION Wait for the ready pin after a command, and warn if a timeout occurs. SEE ALSO Kernel file ./drivers/mtd/nand/raw/nand_legacy.c nan...
nand_wait_status_ready(9)
NAME nand_wait_status_ready - [GENERIC] Wait for the ready status after commands. SYNOPSIS void nand_wait_status_ready (struct nand_chip *chip , unsigned long timeo ); ARGUMENTS chip NAND chip object timeo Timeout in ms DESCRIPTION Wait for status ready (i.e. command done) or timeout. SEE ALSO ...
nand_write_buf(9)
NAME nand_write_buf - [DEFAULT] write buffer to chip SYNOPSIS void nand_write_buf (struct nand_chip *chip , const uint8_t *buf , int len ); ARGUMENTS chip NAND chip object buf data buffer len number of bytes to write DESCRIPTION Default write function for 8bit buswidth. SEE AL...
nand_write_buf16(9)
NAME nand_write_buf16 - [DEFAULT] write buffer to chip SYNOPSIS void nand_write_buf16 (struct nand_chip *chip , const uint8_t *buf , int len ); ARGUMENTS chip NAND chip object buf data buffer len number of bytes to write DESCRIPTION Default write function for 16bit buswidth. S...
nand_write_byte(9)
NAME nand_write_byte - [DEFAULT] write single byte to chip SYNOPSIS void nand_write_byte (struct nand_chip *chip , uint8_t byte ); ARGUMENTS chip NAND chip object byte value to write DESCRIPTION Default function to write a byte to I/O[7:0] SEE ALSO Kernel file ./drivers/mtd/nand/raw/nand_l...
nand_write_byte16(9)
NAME nand_write_byte16 - [DEFAULT] write single byte to a chip with width 16 SYNOPSIS void nand_write_byte16 (struct nand_chip *chip , uint8_t byte ); ARGUMENTS chip NAND chip object byte value to write DESCRIPTION Default function to write a byte to I/O[7:0] on a 16-bit wide chip. SEE ALSO Ke...
nand_write_data_op(9)
NAME nand_write_data_op - Write data from the NAND SYNOPSIS int nand_write_data_op (struct nand_chip *chip , const void *buf , unsigned int len , bool force_8bit ); ARGUMENTS chip The NAND chip buf buffer containing the data to send on the bus len length of the buffer fo...
nand_write_oob(9)
NAME nand_write_oob - [MTD Interface] NAND write data and/or out-of-band SYNOPSIS int nand_write_oob (struct mtd_info *mtd , loff_t to , struct mtd_oob_ops *ops ); ARGUMENTS mtd MTD device structure to offset to write to ops oob operation description structure SEE ALSO Kernel...
nand_write_oob_std(9)
NAME nand_write_oob_std - [REPLACEABLE] the most common OOB data write function SYNOPSIS int nand_write_oob_std (struct nand_chip *chip , int page ); ARGUMENTS chip nand chip info structure page page number to write SEE ALSO Kernel file ./drivers/mtd/nand/raw/nand_base.c nand_extract_bits(9)...
nand_write_oob_syndrome(9)
NAME nand_write_oob_syndrome - [REPLACEABLE] OOB data write function for HW ECC with syndrome - only for large page flash SYNOPSIS int nand_write_oob_syndrome (struct nand_chip *chip , int page ); ARGUMENTS chip nand chip info structure page page number to write SEE ALSO Kernel file ./drivers...
nand_write_page(9)
NAME nand_write_page - write one page SYNOPSIS int nand_write_page (struct nand_chip *chip , uint32_t offset , int data_len , const uint8_t *buf , int oob_required , int page , int raw ); ARGUMENTS chip NAND chip descriptor offset address offset within the page data_len length of actual...
nand_write_page_hwecc(9)
NAME nand_write_page_hwecc - [REPLACEABLE] hardware ECC based page write function SYNOPSIS int nand_write_page_hwecc (struct nand_chip *chip , const uint8_t *buf , int oob_required , int page ); ARGUMENTS chip nand chip info structure buf data buffer oob_required must...
nand_write_page_raw(9)
NAME nand_write_page_raw - [INTERN] raw page write function SYNOPSIS int nand_write_page_raw (struct nand_chip *chip , const uint8_t *buf , int oob_required , int page ); ARGUMENTS chip nand chip info structure buf data buffer oob_required must write chip->oob_poi to ...
nand_write_page_raw_notsupp(9)
NAME nand_write_page_raw_notsupp - dummy raw page write function SYNOPSIS int nand_write_page_raw_notsupp (struct nand_chip *chip , const u8 *buf , int oob_required , int page ); ARGUMENTS chip nand chip info structure buf data buffer oob_required must write chip->oob...
nand_write_page_raw_syndrome(9)
NAME nand_write_page_raw_syndrome - [INTERN] raw page write function SYNOPSIS int nand_write_page_raw_syndrome (struct nand_chip *chip , const uint8_t *buf , int oob_required , int page ); ARGUMENTS chip nand chip info structure buf data buffer oob_required must write...
nand_write_page_swecc(9)
NAME nand_write_page_swecc - [REPLACEABLE] software ECC based page write function SYNOPSIS int nand_write_page_swecc (struct nand_chip *chip , const uint8_t *buf , int oob_required , int page ); ARGUMENTS chip nand chip info structure buf data buffer oob_required must...
nand_write_page_syndrome(9)
NAME nand_write_page_syndrome - [REPLACEABLE] hardware ECC syndrome based page write SYNOPSIS int nand_write_page_syndrome (struct nand_chip *chip , const uint8_t *buf , int oob_required , int page ); ARGUMENTS chip nand chip info structure buf data buffer oob_required ...
nand_write_subpage_hwecc(9)
NAME nand_write_subpage_hwecc - [REPLACEABLE] hardware ECC based subpage write SYNOPSIS int nand_write_subpage_hwecc (struct nand_chip *chip , uint32_t offset , uint32_t data_len , const uint8_t *buf , int oob_required , int page ); ARGUMENTS chip nand chip info structure offset column address of ...
nandc_set_read_loc_first(9)
NAME nandc_set_read_loc_first - to set read location first register SYNOPSIS void nandc_set_read_loc_first (struct nand_chip *chip , int reg_base , u32 cw_offset , u32 read_size , u32 is_last_read_loc ); ARGUMENTS chip NAND Private Flash Chip Data reg_base location register base cw_offset ...
nandc_set_read_loc_last(9)
NAME nandc_set_read_loc_last - to set read location last register SYNOPSIS void nandc_set_read_loc_last (struct nand_chip *chip , int reg_base , u32 cw_offset , u32 read_size , u32 is_last_read_loc ); ARGUMENTS chip NAND Private Flash Chip Data reg_base location register base cw_offset cod...
nanddev_bbt_cleanup(9)
NAME nanddev_bbt_cleanup - Cleanup the BBT (Bad Block Table) SYNOPSIS void nanddev_bbt_cleanup (struct nand_device *nand ); ARGUMENTS nand NAND device DESCRIPTION Undoes what has been done in nanddev_bbt_init SEE ALSO Kernel file ./drivers/mtd/nand/bbt.c nanddev_bbt_init(9), nanddev_bbt_update(9), nanddev_bb...
nanddev_bbt_get_block_status(9)
NAME nanddev_bbt_get_block_status - Return the status of an eraseblock SYNOPSIS int nanddev_bbt_get_block_status (const struct nand_device *nand , unsigned int entry ); ARGUMENTS nand nand device entry the BBT entry RETURN a positive number nand_bbt_block_status status or -ERANGE if entry is big...
nanddev_bbt_init(9)
NAME nanddev_bbt_init - Initialize the BBT (Bad Block Table) SYNOPSIS int nanddev_bbt_init (struct nand_device *nand ); ARGUMENTS nand NAND device DESCRIPTION Initialize the in-memory BBT. RETURN 0 in case of success, a negative error code otherwise. SEE ALSO Kernel file ./drivers/mtd/nand/bbt.c nanddev_bbt...
nanddev_bbt_is_initialized(9)
NAME nanddev_bbt_is_initialized - Check if the BBT has been initialized SYNOPSIS bool nanddev_bbt_is_initialized (struct nand_device *nand ); ARGUMENTS nand NAND device RETURN true if the BBT has been initialized, false otherwise. SEE ALSO Kernel file ./include/linux/mtd/nand.h struct nand_memory_organizat...
nanddev_bbt_pos_to_entry(9)
NAME nanddev_bbt_pos_to_entry - Convert a NAND position into a BBT entry SYNOPSIS unsigned int nanddev_bbt_pos_to_entry (struct nand_device *nand , const struct nand_pos *pos ); ARGUMENTS nand NAND device pos the NAND position we want to get BBT entry for DESCRIPTION Return the BBT entry used ...
nanddev_bbt_set_block_status(9)
NAME nanddev_bbt_set_block_status - Update the status of an eraseblock in the in-memory BBT SYNOPSIS int nanddev_bbt_set_block_status (struct nand_device *nand , unsigned int entry , enum nand_bbt_block_status status ); ARGUMENTS nand nand device entry the BBT entry to update status ...
nanddev_bbt_update(9)
NAME nanddev_bbt_update - Update a BBT SYNOPSIS int nanddev_bbt_update (struct nand_device *nand ); ARGUMENTS nand nand device DESCRIPTION Update the BBT. Currently a NOP function since on-flash bbt is not yet supported. RETURN 0 in case of success, a negative error code otherwise. SEE ALSO Kernel file ./dr...