Home
last modified time | relevance | path

Searched refs:remainder (Results 1 – 25 of 30) sorted by relevance

12

/u-boot/lib/
A Ddiv64.c71 s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder) in div_s64_rem() argument
76 quotient = div_u64_rem(-dividend, abs(divisor), (u32 *)remainder); in div_s64_rem()
77 *remainder = -*remainder; in div_s64_rem()
81 quotient = div_u64_rem(dividend, abs(divisor), (u32 *)remainder); in div_s64_rem()
102 u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder) in div64_u64_rem() argument
110 *remainder = rem32; in div64_u64_rem()
118 *remainder = dividend - quot * divisor; in div64_u64_rem()
119 if (*remainder >= divisor) { in div64_u64_rem()
121 *remainder -= divisor; in div64_u64_rem()
188 u32 iter_div_u64_rem(u64 dividend, u32 divisor, u64 *remainder) in iter_div_u64_rem() argument
[all …]
/u-boot/include/linux/
A Dmath64.h21 *remainder = dividend % divisor; in div_u64_rem()
30 *remainder = dividend % divisor; in div_s64_rem()
39 *remainder = dividend % divisor; in div64_u64_rem()
67 *remainder = do_div(dividend, divisor); in div_u64_rem()
100 u32 remainder; in div_u64() local
101 return div_u64_rem(dividend, divisor, &remainder); in div_u64()
111 s32 remainder; in div_s64() local
112 return div_s64_rem(dividend, divisor, &remainder); in div_s64()
116 u32 iter_div_u64_rem(u64 dividend, u32 divisor, u64 *remainder);
119 __iter_div_u64_rem(u64 dividend, u32 divisor, u64 *remainder) in __iter_div_u64_rem() argument
[all …]
/u-boot/cmd/
A Dtime.c12 ulong total_seconds, remainder; in report_time() local
15 remainder = cycles % CONFIG_SYS_HZ; in report_time()
19 milliseconds = (remainder * 1000 + CONFIG_SYS_HZ / 2) / CONFIG_SYS_HZ; in report_time()
/u-boot/board/freescale/m5253demo/
A Dflash.c100 int remainder; in flash_print_info() local
104 remainder = (info->size % 0x100000); in flash_print_info()
105 if (remainder) { in flash_print_info()
106 remainder >>= 10; in flash_print_info()
107 remainder = (int)((float) in flash_print_info()
108 (((float)remainder / (float)1024) * in flash_print_info()
110 printf(".%d ", remainder); in flash_print_info()
/u-boot/fs/ext4/
A Dext4_write.c144 int remainder; in delete_single_indirect_block() local
162 if (!remainder) in delete_single_indirect_block()
193 int remainder; in delete_double_indirect_block() local
224 if (!remainder) in delete_double_indirect_block()
257 if (!remainder) in delete_double_indirect_block()
290 int remainder; in delete_triple_indirect_block() local
333 if (!remainder) in delete_triple_indirect_block()
375 if (!remainder) in delete_triple_indirect_block()
410 if (!remainder) in delete_triple_indirect_block()
443 int remainder; in ext4fs_delete_file() local
[all …]
A Dext4_common.c199 uint64_t remainder; in put_ext4() local
220 if (remainder) { in put_ext4()
309 int i, remainder, status; in ext4fs_set_block_bmap() local
313 remainder = blockno % 8; in ext4fs_set_block_bmap()
327 if (remainder == 0) { in ext4fs_set_block_bmap()
349 remainder = blockno % 8; in ext4fs_reset_block_bmap()
360 if (remainder == 0) { in ext4fs_reset_block_bmap()
382 if (remainder == 0) { in ext4fs_set_inode_bmap()
407 if (remainder == 0) { in ext4fs_reset_inode_bmap()
965 int remainder; in ext4fs_get_new_blk_no() local
[all …]
/u-boot/common/
A Ddlmalloc.c1376 remainder = chunk_at_offset(victim, nb);
1378 link_last_remainder(remainder);
1380 set_foot(remainder, remainder_size);
1439 remainder = chunk_at_offset(victim, nb);
1442 link_last_remainder(remainder);
1444 set_foot(remainder, remainder_size);
1874 remainder = chunk_at_offset(newp, nb);
1877 set_head(remainder, remainder_size | PREV_INUSE);
2046 remainder = chunk_at_offset(p, nb);
2047 set_head(remainder, remainder_size | PREV_INUSE);
[all …]
A Ddlmalloc.src1775 /* Place p as the last remainder */
2111 mchunkptr remainder; /* remainder from a split */
2193 remainder = chunk_at_offset(victim, nb);
2195 link_last_remainder(remainder);
2197 set_foot(remainder, remainder_size);
2256 remainder = chunk_at_offset(victim, nb);
2259 link_last_remainder(remainder);
2261 set_foot(remainder, remainder_size);
2674 remainder = chunk_at_offset(newp, nb);
2799 remainder = chunk_at_offset(p, nb);
[all …]
/u-boot/drivers/usb/host/
A Dxhci-ring.c666 u32 remainder = 0; in xhci_bulk_tx() local
693 remainder = xhci_td_remainder(ctrl, running_total, trb_buff_len, in xhci_bulk_tx()
698 TRB_TD_SIZE(remainder) | in xhci_bulk_tx()
776 u32 remainder; in xhci_ctrl_tx() local
878 remainder = xhci_td_remainder(ctrl, 0, length, length, in xhci_ctrl_tx()
880 length_field = TRB_LEN(length) | TRB_TD_SIZE(remainder) | in xhci_ctrl_tx()
885 TRB_TD_SIZE(remainder), 0); in xhci_ctrl_tx()
A Dsl811-hcd.c259 int remainder = sl811_read(SL811_CNT_A); in sl811_send_packet() local
260 if (remainder) { in sl811_send_packet()
261 PDEBUG(0, "usb transfer remainder = %d\n", remainder); in sl811_send_packet()
262 len -= remainder; in sl811_send_packet()
/u-boot/drivers/serial/
A Dserial_pl01x.c154 unsigned int remainder; in pl01x_generic_setbrg() local
168 remainder = clock % temp; in pl01x_generic_setbrg()
169 temp = (8 * remainder) / baudrate; in pl01x_generic_setbrg()
/u-boot/drivers/clk/at91/
A Dclk-sam9x60-pll.c62 unsigned long tmprate, remainder; in sam9x60_frac_pll_compute_mul_frac() local
75 remainder = rate - tmprate; in sam9x60_frac_pll_compute_mul_frac()
77 if (remainder) { in sam9x60_frac_pll_compute_mul_frac()
78 nfrac = DIV_ROUND_CLOSEST_ULL((u64)remainder * (1 << 22), in sam9x60_frac_pll_compute_mul_frac()
/u-boot/drivers/net/
A Dlan91c96.c645 int remainder; in print_packet()
651 remainder = length % 16; in print_packet()
665 for (i = 0; i < remainder / 2; i++) { in print_packet()
A Dsmc91111.c1239 int remainder; in print_packet() local
1246 remainder = length % 16; in print_packet()
1260 for ( i = 0; i < remainder/2 ; i++ ) { in print_packet()
/u-boot/drivers/video/exynos/
A Dexynos_fb.c207 unsigned int cfg = 0, div = 0, remainder, remainder_div; in exynos_fimd_set_clock() local
240 remainder = do_div(src_clock, pixel_clock); in exynos_fimd_set_clock()
243 remainder *= 10; in exynos_fimd_set_clock()
244 remainder_div = remainder / pixel_clock; in exynos_fimd_set_clock()
/u-boot/drivers/video/imx/
A Dipu_common.c307 u32 remainder; in ipu_pixel_clk_round_rate() local
316 remainder = do_div(div, rate); in ipu_pixel_clk_round_rate()
318 if (remainder > (rate / 2)) in ipu_pixel_clk_round_rate()
340 u32 remainder; in ipu_pixel_clk_set_rate() local
344 remainder = do_div(div, rate); in ipu_pixel_clk_set_rate()
346 if (remainder > (rate / 2)) in ipu_pixel_clk_set_rate()
/u-boot/arch/arm/lib/
A Ddiv64.S117 @ The top part of remainder became zero. If carry is set
141 @ Current remainder is now 1. It is worthless to compare with
/u-boot/board/compulab/common/
A Deeprom.c247 int remainder = simple_strtol(tok, &endptr, 0); in eeprom_field_update_bin_ver() local
251 num = num * 100 + remainder; in eeprom_field_update_bin_ver()
/u-boot/arch/mips/mach-octeon/include/mach/
A Docteon_ddr.h755 u64 quotent, remainder; in divide_nint() local
758 remainder = dividend % divisor; in divide_nint()
759 return (quotent + ((remainder * 2) >= divisor)); in divide_nint()
/u-boot/drivers/spi/
A Dfsl_dspi.c392 u32 remainder; in ns_delay_scale() local
396 &remainder); in ns_delay_scale()
397 if (remainder) in ns_delay_scale()
/u-boot/doc/imx/common/
A Dimx6.txt35 34 / 8 = 4 and the remainder is 2, so in this case:
56 35 / 8 = 4 and the remainder is 3, so in this case:
/u-boot/doc/usage/
A Dfdt_overlays.rst78 The remainder of this document will discuss using overlays via the manual
/u-boot/arch/sh/lib/
A Dmovmem.S46 ! done all the large groups, do the remainder
/u-boot/arch/arm/mach-rockchip/
A DKconfig347 remainder of the first stage is loaded, but the BROM
361 remainder of the first stage is loaded, but the BROM
/u-boot/board/sbc8349/
A DREADME38 that is executed. This frees up the remainder of flash for other uses.

Completed in 63 milliseconds

12