| /u-boot/include/linux/ |
| A D | bug.h | 14 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) 18 if (unlikely(__ret_warn_on)) \ 20 unlikely(__ret_warn_on); \ 25 if (unlikely(__ret_warn_on)) \ 27 unlikely(__ret_warn_on); \ 34 if (unlikely(__ret_warn_once && !__warned)) { \ 38 unlikely(__ret_warn_once); \ 45 if (unlikely(__ret_warn_once && !__warned)) { \ 49 unlikely(__ret_warn_once); \
|
| A D | err.h | 22 #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)
|
| A D | compiler.h | 47 # ifndef unlikely 48 # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) macro 78 # define unlikely(x) __builtin_expect(!!(x), 0) macro
|
| /u-boot/lib/ |
| A D | asn1_decoder.c | 73 if (unlikely(datalen - dp < 2)) { in asn1_find_indefinite_length() 95 if (unlikely(datalen - dp < 2)) in asn1_find_indefinite_length() 115 if (unlikely(n > sizeof(len) - 1)) in asn1_find_indefinite_length() 117 if (unlikely(n > datalen - dp)) in asn1_find_indefinite_length() 210 if (unlikely(pc >= machlen)) in asn1_ber_decoder() 234 if (unlikely(datalen - dp < 2)) in asn1_ber_decoder() 274 if (unlikely(2 > datalen - dp)) in asn1_ber_decoder() 278 if (unlikely(n > 2)) in asn1_ber_decoder() 399 if (unlikely(csp <= 0)) in asn1_ber_decoder() 411 if (unlikely(datalen - dp < 2)) in asn1_ber_decoder() [all …]
|
| A D | lz4.c | 174 if ((endOnInput) && (unlikely(outputSize == 0))) in LZ4_decompress_generic() 177 if ((!endOnInput) && (unlikely(outputSize == 0))) in LZ4_decompress_generic() 180 if ((endOnInput) && unlikely(srcSize == 0)) in LZ4_decompress_generic() 258 if (unlikely(endOnInput ? ip >= iend - RUN_MASK : 0)) { in LZ4_decompress_generic() 270 && unlikely((uptrval)(op) + in LZ4_decompress_generic() 276 && unlikely((uptrval)(ip) + in LZ4_decompress_generic() 356 if ((checkOffset) && (unlikely(match + dictSize < lowPrefix))) { in LZ4_decompress_generic() 386 && unlikely( in LZ4_decompress_generic() 397 if (unlikely(op + length > oend - LASTLITERALS)) { in LZ4_decompress_generic() 464 if (unlikely(offset < 8)) { in LZ4_decompress_generic() [all …]
|
| /u-boot/drivers/dma/ |
| A D | lpc32xx_dma.c | 90 if (unlikely(i == DMA_NO_OF_CHANNELS)) in lpc32xx_dma_get_channel() 99 if (unlikely(((BIT_MASK(channel) & alloc_ch) == 0) || in lpc32xx_dma_start_xfer() 121 if (unlikely(channel >= DMA_NO_OF_CHANNELS)) { in lpc32xx_dma_wait_status() 140 if (unlikely(readl(&dma->raw_err_stat) & BIT_MASK(channel))) { in lpc32xx_dma_wait_status()
|
| /u-boot/post/lib_powerpc/fpu/ |
| A D | darwin-ldouble.c | 40 #define unlikely(x) __builtin_expect((x), 0) macro 41 #define nonfinite(a) unlikely(!isless(fabs(a), inf())) 96 if (unlikely(t == 0) /* Preserve -0. */ in __gcc_qmul()
|
| /u-boot/include/ |
| A D | sdhci.h | 364 if (unlikely(host->ops->write_l)) in sdhci_writel() 372 if (unlikely(host->ops->write_w)) in sdhci_writew() 380 if (unlikely(host->ops->write_b)) in sdhci_writeb() 388 if (unlikely(host->ops->read_l)) in sdhci_readl() 396 if (unlikely(host->ops->read_w)) in sdhci_readw() 404 if (unlikely(host->ops->read_b)) in sdhci_readb()
|
| A D | compiler.h | 149 #define unlikely(x) __builtin_expect(!!(x), 0) macro
|
| /u-boot/drivers/core/ |
| A D | devres.c | 84 if (unlikely(!dr)) in __devres_alloc() 174 if (unlikely(!res)) in devres_destroy() 187 if (unlikely(!res)) in devres_release() 280 if (unlikely(!data)) in devm_kmalloc()
|
| /u-boot/arch/arm/mach-uniphier/arm32/ |
| A D | cache-uniphier.c | 111 if (unlikely(UNIPHIER_SSCOQWM_IS_NEEDED(operation))) in uniphier_cache_maint_common() 113 } while (unlikely(readl(UNIPHIER_SSCOPPQSEF) & in uniphier_cache_maint_common() 141 if (unlikely(size >= (u32)(-UNIPHIER_SSC_LINE_SIZE))) { in uniphier_cache_maint_range()
|
| /u-boot/fs/ubifs/ |
| A D | tnc_misc.c | 41 if (unlikely(!znode)) in ubifs_tnc_levelorder_next() 44 if (unlikely(znode == zr)) { in ubifs_tnc_levelorder_next() 65 if (unlikely(znode->parent == zr && in ubifs_tnc_levelorder_next() 174 if (unlikely(!znode)) in ubifs_tnc_postorder_first() 201 if (unlikely(!znode->parent)) in ubifs_tnc_postorder_next()
|
| A D | tnc.c | 87 if (unlikely(!old_idx)) in insert_old_idx() 206 if (unlikely(!zn)) in copy_znode() 269 if (unlikely(err)) in dirty_cow_znode() 281 if (unlikely(err)) in dirty_cow_znode() 292 if (unlikely(err)) in dirty_cow_znode() 714 if (unlikely(err < 0)) in resolve_collision() 904 if (unlikely(cmp < 0)) in fallible_resolve_collision() 1273 if (unlikely(err < 0)) in ubifs_lookup_level0() 1378 if (unlikely(err < 0)) in lookup_level0_dirty() 2803 if (unlikely(err)) in ubifs_tnc_next_ent() [all …]
|
| A D | budget.c | 340 if (unlikely(rsvd_idx_lebs > lebs)) { in do_budget_space() 349 if (unlikely(available < outstanding)) { in do_budget_space() 461 if (unlikely(c->bi.nospace) && (c->bi.nospace_rp || !can_use_rp(c))) { in ubifs_budget_space()
|
| A D | debug.h | 141 if (unlikely(!(expr))) { \ 149 if (unlikely(down_write_trylock(&(c)->commit_sem))) { \
|
| /u-boot/drivers/mtd/nand/raw/ |
| A D | octeontx_bch_regs.h | 144 if (unlikely(cmd_count < 1 || cmd_count > 32)) in octeontx_cmd_queue_write() 146 if (unlikely(!cmds)) in octeontx_cmd_queue_write()
|
| A D | nand_spl_loaders.c | 23 if (unlikely(page_offset)) { in nand_spl_load_image()
|
| /u-boot/arch/powerpc/cpu/mpc85xx/ |
| A D | fsl_corenet_serdes.c | 175 if (unlikely((in_be32(&gur->rcwsr[5]) & 0x2000) == 0)) in serdes_get_first_lane() 196 if (unlikely(lane < 0)) in serdes_get_bank_by_device() 222 if (unlikely(lane < 0)) in __serdes_reset_rx() 251 if (unlikely(device == NONE)) in serdes_reset_rx() 257 if (unlikely((in_be32(&gur->rcwsr[5]) & 0x2000) == 0)) in serdes_reset_rx()
|
| A D | fsl_corenet2_serdes.c | 159 if (unlikely(cfg == 0)) in serdes_get_first_lane() 339 if (unlikely(lane_prtcl >= SERDES_PRCTL_COUNT)) in serdes_init()
|
| /u-boot/arch/mips/include/asm/ |
| A D | ptrace.h | 78 if (unlikely(offset > MAX_REG_OFFSET)) in regs_get_register()
|
| /u-boot/drivers/reset/ |
| A D | reset-uclass.c | 274 if (unlikely(!reset_ctl)) in devm_reset_control_get_by_index() 292 if (unlikely(!reset_ctl)) in devm_reset_control_get() 332 if (unlikely(!bulk)) in devm_reset_bulk_get_by_node()
|
| /u-boot/drivers/mtd/onenand/ |
| A D | onenand_base.c | 893 if (unlikely(ret)) in onenand_read_ops_nolock() 946 if (unlikely(ret)) in onenand_read_ops_nolock() 958 if (unlikely(boundary)) in onenand_read_ops_nolock() 1027 if (unlikely(column >= oobsize)) { in onenand_read_oob_nolock() 1033 if (unlikely(from >= mtd->size || in onenand_read_oob_nolock() 1055 if (unlikely(ret)) in onenand_read_oob_nolock() 1253 if (unlikely(ret)) in onenand_bbt_read_oob() 1561 if (unlikely(column >= oobsize)) { in onenand_write_oob_nolock() 1567 if (unlikely(column + len > oobsize)) { in onenand_write_oob_nolock() 1574 if (unlikely(to >= mtd->size || in onenand_write_oob_nolock() [all …]
|
| /u-boot/arch/arm/cpu/armv7/ls102xa/ |
| A D | fsl_ls1_serdes.c | 64 if (unlikely(cfg == 0)) in serdes_get_first_lane()
|
| /u-boot/drivers/mtd/ubi/ |
| A D | debug.h | 23 if (unlikely(!(expr))) { \
|
| /u-boot/drivers/virtio/ |
| A D | virtio_ring.c | 170 if (unlikely(vq->num_added == (1 << 16) - 1)) in virtqueue_add() 261 if (unlikely(i >= vq->vring.num)) { in virtqueue_get_buf() 267 if (unlikely(!vq->vring_desc_shadow[i].chain_head)) { in virtqueue_get_buf()
|