Lines Matching +full:non +full:- +full:zero
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
20 __func__, __LINE__, current->pid); \
29 pr_debug("UBI DBG " type " (pid %d): " fmt "\n", current->pid, \
34 /* Messages from the eraseblock association sub-system */
36 /* Messages from the wear-leveling sub-system */
38 /* Messages from the input/output sub-system */
56 * ubi_dbg_is_bgt_disabled - if the background thread is disabled.
59 * Returns non-zero if the UBI background thread is disabled for testing
64 return ubi->dbg.disable_bgt; in ubi_dbg_is_bgt_disabled()
68 * ubi_dbg_is_bitflip - if it is time to emulate a bit-flip.
71 * Returns non-zero if a bit-flip should be emulated, otherwise returns zero.
75 if (ubi->dbg.emulate_bitflips) in ubi_dbg_is_bitflip()
81 * ubi_dbg_is_write_failure - if it is time to emulate a write failure.
84 * Returns non-zero if a write failure should be emulated, otherwise returns
85 * zero.
89 if (ubi->dbg.emulate_io_failures) in ubi_dbg_is_write_failure()
95 * ubi_dbg_is_erase_failure - if its time to emulate an erase failure.
98 * Returns non-zero if an erase failure should be emulated, otherwise returns
99 * zero.
103 if (ubi->dbg.emulate_io_failures) in ubi_dbg_is_erase_failure()
110 return ubi->dbg.chk_io; in ubi_dbg_chk_io()
115 return ubi->dbg.chk_gen; in ubi_dbg_chk_gen()
120 return ubi->dbg.chk_fastmap; in ubi_dbg_chk_fastmap()
125 ubi->dbg.chk_fastmap = 1; in ubi_enable_dbg_chk_fastmap()