Home
last modified time | relevance | path

Searched refs:unlikely (Results 1 – 25 of 63) sorted by relevance

123

/rk3399_rockchip-uboot/include/linux/
H A Dbug.h14 #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); \
H A Derr.h22 #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)
H A Dcompiler.h136 # ifndef unlikely
137 # define unlikely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 0)) macro
166 # define unlikely(x) __builtin_expect(!!(x), 0) macro
/rk3399_rockchip-uboot/lib/
H A Dlz4.c103 …if ((endOnInput) && (unlikely(outputSize==0))) return ((inputSize==1) && (*ip==0)) ? 0 : -1; /* E… in LZ4_decompress_generic()
104 if ((!endOnInput) && (unlikely(outputSize==0))) return (*ip==0?1:-1); in LZ4_decompress_generic()
125 …if ((safeDecode) && unlikely((size_t)(op+length)<(size_t)(op))) goto _output_error; /* overflow … in LZ4_decompress_generic()
126 …if ((safeDecode) && unlikely((size_t)(ip+length)<(size_t)(ip))) goto _output_error; /* overflow … in LZ4_decompress_generic()
154 …if ((checkOffset) && (unlikely(match < lowLimit))) goto _output_error; /* Error : offset outside… in LZ4_decompress_generic()
167 …if ((safeDecode) && unlikely((size_t)(op+length)<(size_t)op)) goto _output_error; /* overflow de… in LZ4_decompress_generic()
174 …if (unlikely(op+length > oend-LASTLITERALS)) goto _output_error; /* doesn't respect parsing rest… in LZ4_decompress_generic()
206 if (unlikely((op-match)<8)) in LZ4_decompress_generic()
218 if (unlikely(cpy>oend-12)) in LZ4_decompress_generic()
/rk3399_rockchip-uboot/drivers/gpio/
H A Dadi_gpio2.c148 if (unlikely(!check_gpio(ident) && is_reserved(gpio, ident, 1))) { in peripheral_request()
154 if (unlikely(is_reserved(peri, ident, 1))) { in peripheral_request()
217 if (unlikely(!is_reserved(peri, ident, 0))) in peripheral_free()
260 if (unlikely(is_reserved(gpio, gpio, 1))) { in gpio_request()
265 if (unlikely(is_reserved(peri, gpio, 1))) { in gpio_request()
284 if (unlikely(!is_reserved(gpio, gpio, 0))) { in gpio_free()
310 if (unlikely(is_reserved(special_gpio, gpio, 1))) { in special_gpio_request()
315 if (unlikely(is_reserved(peri, gpio, 1))) { in special_gpio_request()
333 if (unlikely(!is_reserved(special_gpio, gpio, 0))) { in special_gpio_free()
/rk3399_rockchip-uboot/drivers/dma/
H A Dlpc32xx_dma.c88 if (unlikely(i == DMA_NO_OF_CHANNELS)) in lpc32xx_dma_get_channel()
97 if (unlikely(((BIT_MASK(channel) & alloc_ch) == 0) || in lpc32xx_dma_start_xfer()
119 if (unlikely(channel >= DMA_NO_OF_CHANNELS)) { in lpc32xx_dma_wait_status()
138 if (unlikely(readl(&dma->raw_err_stat) & BIT_MASK(channel))) { in lpc32xx_dma_wait_status()
/rk3399_rockchip-uboot/post/lib_powerpc/fpu/
H A Ddarwin-ldouble.c41 #define unlikely(x) __builtin_expect((x), 0) macro
42 #define nonfinite(a) unlikely(!isless(fabs(a), inf()))
97 if (unlikely(t == 0) /* Preserve -0. */ in __gcc_qmul()
/rk3399_rockchip-uboot/include/
H A Dsdhci.h302 if (unlikely(host->ops->write_l)) in sdhci_writel()
310 if (unlikely(host->ops->write_w)) in sdhci_writew()
318 if (unlikely(host->ops->write_b)) in sdhci_writeb()
326 if (unlikely(host->ops->read_l)) in sdhci_readl()
334 if (unlikely(host->ops->read_w)) in sdhci_readw()
342 if (unlikely(host->ops->read_b)) in sdhci_readb()
H A Dcompiler.h147 #define unlikely(x) __builtin_expect(!!(x), 0) macro
/rk3399_rockchip-uboot/drivers/core/
H A Ddevres.c69 if (unlikely(!dr)) in __devres_alloc()
154 if (unlikely(!res)) in devres_destroy()
167 if (unlikely(!res)) in devres_release()
245 if (unlikely(!data)) in devm_kmalloc()
/rk3399_rockchip-uboot/arch/arm/mach-uniphier/arm32/
H A Dcache-uniphier.c112 if (unlikely(UNIPHIER_SSCOQWM_IS_NEEDED(operation))) in uniphier_cache_maint_common()
114 } while (unlikely(readl(UNIPHIER_SSCOPPQSEF) & in uniphier_cache_maint_common()
142 if (unlikely(size >= (u32)(-UNIPHIER_SSC_LINE_SIZE))) { in uniphier_cache_maint_range()
/rk3399_rockchip-uboot/fs/ubifs/
H A Dtnc_misc.c40 if (unlikely(!znode)) in ubifs_tnc_levelorder_next()
43 if (unlikely(znode == zr)) { in ubifs_tnc_levelorder_next()
64 if (unlikely(znode->parent == zr && in ubifs_tnc_levelorder_next()
173 if (unlikely(!znode)) in ubifs_tnc_postorder_first()
200 if (unlikely(!znode->parent)) in ubifs_tnc_postorder_next()
H A Dtnc.c83 if (unlikely(!old_idx)) in insert_old_idx()
202 if (unlikely(!zn)) in copy_znode()
265 if (unlikely(err)) in dirty_cow_znode()
277 if (unlikely(err)) in dirty_cow_znode()
288 if (unlikely(err)) in dirty_cow_znode()
710 if (unlikely(err < 0)) in resolve_collision()
900 if (unlikely(cmp < 0)) in fallible_resolve_collision()
1182 if (unlikely(!znode)) { in ubifs_lookup_level0()
1269 if (unlikely(err < 0)) in ubifs_lookup_level0()
1317 if (unlikely(!znode)) { in lookup_level0_dirty()
[all …]
H A Dbudget.c340 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()
H A Ddebug.h142 if (unlikely(!(expr))) { \
150 if (unlikely(down_write_trylock(&(c)->commit_sem))) { \
/rk3399_rockchip-uboot/drivers/usb/gadget/
H A Dpxa25x_udc.c484 if (unlikely(count != max)) in write_fifo()
493 is_short = unlikely(max < ep->fifo_size); in write_fifo()
558 if (unlikely(is_short)) { in write_ep0_fifo()
618 if (unlikely((udccs & UDCCS_BO_RPC) == 0)) in read_fifo()
638 if (unlikely(bufferspace == 0)) { in read_fifo()
695 if (unlikely(bufferspace == 0)) { in read_ep0_fifo()
732 if (unlikely(!_req || !_req->complete || !_req->buf in pxa25x_ep_queue()
739 if (unlikely(!_ep || (!ep->desc && ep->ep.name != ep0name))) { in pxa25x_ep_queue()
745 if (unlikely(!dev->driver in pxa25x_ep_queue()
755 if (unlikely(ep->bmAttributes == USB_ENDPOINT_XFER_ISOC in pxa25x_ep_queue()
[all …]
H A Df_rockusb.c383 if (unlikely(amount == 0)) { in rkusb_do_lba_erase()
437 if (unlikely(amount == 0)) { in rkusb_do_erase_force()
478 if (unlikely(common->data_size == 0)) in rkusb_do_vs_write()
692 if (unlikely(common->data_size == 0)) in rkusb_do_vs_read()
794 if (unlikely(common->data_size == 0) || unlikely(!gd->pstore_addr)) in rkusb_do_uart_debug_read()
/rk3399_rockchip-uboot/arch/powerpc/cpu/mpc85xx/
H A Dfsl_corenet_serdes.c172 if (unlikely((in_be32(&gur->rcwsr[5]) & 0x2000) == 0)) in serdes_get_first_lane()
193 if (unlikely(lane < 0)) in serdes_get_bank_by_device()
219 if (unlikely(lane < 0)) in __serdes_reset_rx()
248 if (unlikely(device == NONE)) in serdes_reset_rx()
254 if (unlikely((in_be32(&gur->rcwsr[5]) & 0x2000) == 0)) in serdes_reset_rx()
H A Dfsl_corenet2_serdes.c158 if (unlikely(cfg == 0)) in serdes_get_first_lane()
338 if (unlikely(lane_prtcl >= SERDES_PRCTL_COUNT)) in serdes_init()
/rk3399_rockchip-uboot/drivers/watchdog/
H A Dtangier_wdt.c43 if (unlikely((now - last) > (WDT_PRETIMEOUT / 2) * 1000000)) { in hw_watchdog_reset()
/rk3399_rockchip-uboot/arch/mips/include/asm/
H A Dptrace.h79 if (unlikely(offset > MAX_REG_OFFSET)) in regs_get_register()
/rk3399_rockchip-uboot/drivers/mtd/nand/raw/
H A Dnand_spl_loaders.c23 if (unlikely(page_offset)) { in nand_spl_load_image()
/rk3399_rockchip-uboot/drivers/mtd/onenand/
H A Donenand_base.c890 if (unlikely(ret)) in onenand_read_ops_nolock()
915 unlikely(from == (this->chipsize >> 1))) { in onenand_read_ops_nolock()
943 if (unlikely(ret)) in onenand_read_ops_nolock()
955 if (unlikely(boundary)) in onenand_read_ops_nolock()
1024 if (unlikely(column >= oobsize)) { in onenand_read_oob_nolock()
1030 if (unlikely(from >= mtd->size || in onenand_read_oob_nolock()
1052 if (unlikely(ret)) in onenand_read_oob_nolock()
1229 if (unlikely((from + len) > mtd->size)) { in onenand_bbt_read_oob()
1250 if (unlikely(ret)) in onenand_bbt_read_oob()
1431 if (unlikely(NOTALIGNED(to) || NOTALIGNED(len))) { in onenand_write_ops_nolock()
[all …]
/rk3399_rockchip-uboot/arch/arm/cpu/armv7/ls102xa/
H A Dfsl_ls1_serdes.c65 if (unlikely(cfg == 0)) in serdes_get_first_lane()
/rk3399_rockchip-uboot/drivers/mtd/ubi/
H A Ddebug.h24 if (unlikely(!(expr))) { \

123