/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * BCH Error Location Module * * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/ */ #ifndef __ELM_H #define __ELM_H enum bch_ecc { BCH4_ECC = 0, BCH8_ECC, BCH16_ECC, }; /* ELM support 8 error syndrome process */ #define ERROR_VECTOR_MAX 8 /** * struct elm_errorvec - error vector for elm * @error_reported: set true for vectors error is reported * @error_uncorrectable: number of uncorrectable errors * @error_count: number of correctable errors in the sector * @error_loc: buffer for error location * */ struct elm_errorvec { bool error_reported; bool error_uncorrectable; int error_count; int error_loc[16]; }; #if IS_ENABLED(CONFIG_MTD_NAND_OMAP_BCH) void elm_decode_bch_error_page(struct device *dev, u8 *ecc_calc, struct elm_errorvec *err_vec); int elm_config(struct device *dev, enum bch_ecc bch_type, int ecc_steps, int ecc_step_size, int ecc_syndrome_size); #else static inline void elm_decode_bch_error_page(struct device *dev, u8 *ecc_calc, struct elm_errorvec *err_vec) { } static inline int elm_config(struct device *dev, enum bch_ecc bch_type, int ecc_steps, int ecc_step_size, int ecc_syndrome_size) { return -ENOSYS; } #endif /* CONFIG_MTD_NAND_OMAP_BCH */ #endif /* __ELM_H */ option> Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
path: root/include/scsi
AgeCommit message (Expand)Author
2017-09-13Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds
2017-09-07Merge branch 'fixes' into miscJames Bottomley
2017-09-05scsi: Remove Scsi_Host.uspace_req_qBart Van Assche
2017-08-31scsi: Call scsi_initialize_rq() for filesystem requestsBart Van Assche
2017-08-29scsi: scsi_transport_sas: switch to bsg-lib for SMP passthroughChristoph Hellwig
2017-08-29scsi: Rework handling of scsi_device.vpd_pg8[03]Bart Van Assche
2017-08-25scsi: libsas: move bus_reset_handler() to target_reset_handler()Hannes Reinecke
2017-08-25scsi: scsi_transport_srp: Suppress a W=1 compiler warningBart Van Assche
2017-08-25scsi: Use blk_mq_rq_to_pdu() to convert a request to a SCSI command pointerBart Van Assche
2017-08-25scsi: Avoid sign extension of scsi_device.typeBart Van Assche
2017-08-25scsi: Remove an obsolete function declarationBart Van Assche
2017-08-16scsi: sd_zbc: Write unlock zone from sd_uninit_cmnd()Damien Le Moal
2017-08-07scsi: fc: start decoupling fc_block_scsi_eh from scsi_cmndSteffen Maier
2017-07-13Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/...Linus Torvalds
2017-07-06target: Use macro for WRITE_VERIFY_32 operation codesDamien Le Moal
2017-07-06Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds
2017-07-06Merge branch 'for-4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/l...Linus Torvalds
2017-07-01scsi: Add STARGET_CREATED_REMOVE state to scsi_target_stateEwan D. Milne
2017-06-29sd: add support for TCG OPAL self encrypting disksChristoph Hellwig
2017-06-27scsi: sas: scsi_queue_work can fail, so make callers awareJohannes Thumshirn
2017-06-27libata: Support for an ATA PASS-THROUGH(32) command.Minwoo Im
2017-06-26scsi: Remove the definition of VLC_SA_RECEIVE_CREDENTIALBart Van Assche
2017-06-26scsi: fc: drop residual tsk_mgmt_response and it_nexus_responseKefeng Wang
2017-06-26scsi: scsi_dh_alua: remove synchronous STPG supportChristoph Hellwig
2017-06-26scsi: remove various unused blist flagsChristoph Hellwig
2017-06-20block: Change argument type of scsi_req_init()Bart Van Assche
2017-06-20block: Make most scsi_req_init() calls implicitBart Van Assche
2017-06-12scsi: Protect SCSI device state changes with a mutexBart Van Assche
2017-06-12scsi: Create two versions of scsi_internal_device_unblock()Bart Van Assche
2017-06-12scsi: Split scsi_internal_device_block()Bart Van Assche
2017-06-12scsi: Avoid that scsi_exit_rq() triggers a use-after-freeBart Van Assche
2017-06-09block: introduce new block status code typeChristoph Hellwig
2017-05-12Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/...Linus Torvalds
2017-05-11uapi: export all headers under uapi directoriesNicolas Dichtel
2017-05-04Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds
2017-05-01target: Add WRITE_VERIFY_16Bryant G. Ly
2017-04-25scsi: Improve scsi_get_sense_info_fldDamien Le Moal
2017-04-20scsi: introduce a result field in struct scsi_requestChristoph Hellwig
2017-04-19scsi: scsi_transport_fc: Add dummy initiator role to rportCathy Avery
2017-04-11scsi: sg: disable SET_FORCE_LOW_DMAHannes Reinecke
2017-04-06scsi: make asynchronous aborts mandatoryHannes Reinecke
2017-04-06scsi: make eh_eflags persistentHannes Reinecke
2017-04-06scsi: scsi_error: count medium access timeout only once per EH runHannes Reinecke