/u-boot/lib/ |
A D | slre.c | 142 r->code[pc + 1], r->code[pc + 2]); in slre_dump() 148 ch = r->data[r->code[pc + 1] + j]; in slre_dump() 180 if (r->code_size >= (int) (sizeof(r->code) / sizeof(r->code[0]))) in emit() 192 r->data[r->data_size++] = ch; in store_char_in_data() 205 emit(r, r->data_size - old_data_size); in exact() 259 emit(r, r->data_size - old_data_size); in anyof() 284 memmove(r->code + begin + shift, r->code + begin, r->code_size - begin); in relocate() 294 emit(r, r->code[prev + 1] + r->code[prev + 2]); in quantifier() 307 emit(r, r->data_size); in exact_one_char() 416 r->code_size = r->data_size = r->num_caps = r->anchored = 0; in slre_compile() [all …]
|
A D | gzip.c | 53 int r, flush, orig, window; in zzip() local 72 if (r != Z_OK) { in zzip() 91 r = deflate(&s, flush); in zzip() 92 if (r == Z_STREAM_ERROR && stoponerr == 1) { in zzip() 94 r = -1; in zzip() 101 r = func((unsigned long)dst, in zzip() 103 if (r < 0) in zzip() 109 r = -1; in zzip() 115 r = -1; in zzip() 122 r = 0; in zzip() [all …]
|
A D | gunzip.c | 127 int r = 0; in gzwrite() local 201 if (r != Z_OK) { in gzwrite() 214 __func__, r); in gzwrite() 227 if ((r != Z_OK) && in gzwrite() 261 r = -1; in gzwrite() 263 r = 0; in gzwrite() 271 return r; in gzwrite() 283 int r; in zunzip() local 289 if (r != Z_OK) { in zunzip() 298 r = inflate(&s, Z_FINISH); in zunzip() [all …]
|
/u-boot/arch/nds32/lib/ |
A D | interrupts.c | 83 regs->p1, regs->p0, regs->r[25], regs->r[24]); in show_regs() 85 regs->r[23], regs->r[22], regs->r[21], regs->r[20]); in show_regs() 87 regs->r[19], regs->r[18], regs->r[17], regs->r[16]); in show_regs() 89 regs->r[15], regs->r[14], regs->r[13], regs->r[12]); in show_regs() 91 regs->r[11], regs->r[10], regs->r[9], regs->r[8]); in show_regs() 93 regs->r[7], regs->r[6], regs->r[5], regs->r[4]); in show_regs() 95 regs->r[3], regs->r[2], regs->r[1], regs->r[0]); in show_regs()
|
/u-boot/drivers/net/ |
A D | smc91111.h | 72 #define SMC_inl(a,r) (*((volatile dword *)((a)->iobase+((r)<<1)))) argument 73 #define SMC_inw(a,r) (*((volatile word *)((a)->iobase+((r)<<1)))) argument 81 #define SMC_inl(a,r) (*((volatile dword *)((a)->iobase+(r)))) argument 82 #define SMC_inw(a,r) (*((volatile word *)((a)->iobase+(r)))) argument 96 #define SMC_outw(a,d,r) (*((volatile word *)((a)->iobase+(r))) = d) argument 219 #define SMC_inw(a, r) *((volatile word*)((a)->iobase + (r))) argument 259 #define SMC_inw(a, r) (*((volatile word*)((a)->iobase+(r)))) argument 261 #define SMC_inb(a,r) (((r)&1) ? SMC_inw((a),(r)&~1)>>8 : SMC_inw((a),(r)&0xFF)) argument 279 #define SMC_outsw(a,r,b,l) outsw((a)->iobase+(r), (b), (l)) 291 #define SMC_insw(a,r,b,l) insw((a)->iobase+(r), (b), (l)) [all …]
|
A D | lan91c96.h | 62 #define SMCREG(edev, r) ((edev)->iobase+((r)<<SMC_IO_SHIFT)) argument 64 #define SMC_inl(edev, r) (*((volatile dword *)SMCREG(edev, r))) argument 65 #define SMC_inw(edev, r) (*((volatile word *)SMCREG(edev, r))) argument 87 r); \ 96 r); \ 105 r); \ 115 r); \ 125 r); \ 137 #define SMC_inb(edev, r) (((r)&1) ? SMC_inw(edev, (r)&~1)>>8 :\ argument 152 r); \ [all …]
|
/u-boot/arch/arm/include/asm/arch-mx5/ |
A D | crm_regs.h | 81 #define MXC_CCM_CCR_OSCNT_RD(r) ((r) & 0xFF) argument 93 #define MXC_CCM_CCSR_STEP_SEL_RD(r) (((r) >> 7) & 0x3) argument 97 #define MXC_CCM_CCSR_PLL2_DIV_PODF_RD(r) (((r) >> 5) & 0x3) argument 101 #define MXC_CCM_CCSR_PLL3_DIV_PODF_RD(r) (((r) >> 3) & 0x3) argument 110 #define MXC_CCM_CACRR_ARM_PODF_RD(r) ((r) & 0x7) argument 117 #define MXC_CCM_CBCDR_DDR_PODF_RD(r) (((r) >> 27) & 0x7) argument 123 #define MXC_CCM_CBCDR_EMI_PODF_RD(r) (((r) >> 22) & 0x7) argument 135 #define MXC_CCM_CBCDR_NFC_PODF_RD(r) (((r) >> 13) & 0x7) argument 139 #define MXC_CCM_CBCDR_AHB_PODF_RD(r) (((r) >> 10) & 0x7) argument 143 #define MXC_CCM_CBCDR_IPG_PODF_RD(r) (((r) >> 8) & 0x3) argument [all …]
|
/u-boot/lib/efi_loader/ |
A D | efi_watchdog.c | 46 efi_status_t r; in efi_set_watchdog() local 50 r = efi_set_timer(watchdog_timer_event, EFI_TIMER_RELATIVE, in efi_set_watchdog() 54 r = efi_set_timer(watchdog_timer_event, EFI_TIMER_STOP, 0); in efi_set_watchdog() 55 return r; in efi_set_watchdog() 67 efi_status_t r; in efi_watchdog_register() local 72 r = efi_create_event(EVT_TIMER | EVT_NOTIFY_SIGNAL, TPL_CALLBACK, in efi_watchdog_register() 75 if (r != EFI_SUCCESS) { in efi_watchdog_register() 77 return r; in efi_watchdog_register() 86 r = efi_set_watchdog(300); in efi_watchdog_register() 87 if (r != EFI_SUCCESS) { in efi_watchdog_register() [all …]
|
/u-boot/doc/sphinx/ |
A D | parse-headers.pl | 260 foreach my $r (keys %ioctls) { 261 my $s = $ioctls{$r}; 265 print "$r -> $s\n" if ($debug); 270 foreach my $r (keys %defines) { 271 my $s = $defines{$r}; 281 my $s = $enum_symbols{$r}; 290 foreach my $r (keys %enums) { 291 my $s = $enums{$r}; 300 foreach my $r (keys %structs) { 301 my $s = $structs{$r}; [all …]
|
/u-boot/arch/nios2/include/asm/bitops/ |
A D | ffs.h | 14 int r = 1; in ffs() local 20 r += 16; in ffs() 24 r += 8; in ffs() 28 r += 4; in ffs() 32 r += 2; in ffs() 36 r += 1; in ffs() 38 return r; in ffs()
|
/u-boot/include/asm-generic/bitops/ |
A D | fls.h | 14 int r = 32; in fls() local 20 r -= 16; in fls() 24 r -= 8; in fls() 28 r -= 4; in fls() 32 r -= 2; in fls() 36 r -= 1; in fls() 38 return r; in fls()
|
/u-boot/drivers/fastboot/ |
A D | fb_getvar.c | 104 int r; in getvar_get_part_info() local 121 r = -ENODEV; in getvar_get_part_info() 124 return r; in getvar_get_part_info() 189 int r; in getvar_has_slot() local 201 if (r >= 0) { in getvar_has_slot() 207 if (r >= 0) in getvar_has_slot() 221 int r; in getvar_partition_type() local 228 r = fs_set_blk_dev_with_part(dev_desc, r); in getvar_partition_type() 229 if (r < 0) in getvar_partition_type() 240 int r; in getvar_partition_size() local [all …]
|
/u-boot/drivers/sysreset/ |
A D | poweroff_gpio.c | 33 int r; in poweroff_gpio_request() local 41 r = dm_gpio_set_value(&priv->gpio, 1); in poweroff_gpio_request() 42 if (r < 0) in poweroff_gpio_request() 43 return r; in poweroff_gpio_request() 47 r = dm_gpio_set_value(&priv->gpio, 0); in poweroff_gpio_request() 48 if (r < 0) in poweroff_gpio_request() 49 return r; in poweroff_gpio_request() 53 r = dm_gpio_set_value(&priv->gpio, 1); in poweroff_gpio_request() 54 if (r < 0) in poweroff_gpio_request() 55 return r; in poweroff_gpio_request()
|
/u-boot/fs/ubifs/ |
A D | replay.c | 219 r->lnum, r->offs, r->len, r->deletion, r->sqnum); in apply_replay_entry() 226 err = ubifs_tnc_remove_nm(c, &r->key, &r->nm); in apply_replay_entry() 228 err = ubifs_tnc_add_nm(c, &r->key, r->lnum, r->offs, in apply_replay_entry() 229 r->len, &r->nm); in apply_replay_entry() 248 err = ubifs_tnc_add(c, &r->key, r->lnum, r->offs, in apply_replay_entry() 254 err = ubifs_recover_size_accum(c, &r->key, r->deletion, in apply_replay_entry() 327 kfree(r); in destroy_replay_list() 364 if (!r) in insert_node() 371 r->len = len; in insert_node() 411 if (!r) in insert_dent() [all …]
|
/u-boot/include/linux/ |
A D | bitops.h | 54 r += 16; in generic_ffs() 58 r += 8; in generic_ffs() 62 r += 4; in generic_ffs() 66 r += 2; in generic_ffs() 70 r += 1; in generic_ffs() 72 return r; in generic_ffs() 90 r -= 16; in generic_fls() 94 r -= 8; in generic_fls() 98 r -= 4; in generic_fls() 102 r -= 2; in generic_fls() [all …]
|
/u-boot/fs/yaffs2/ |
A D | yaffs_qsort.c | 65 int d, r, swaptype, swap_cnt; in yaffs_qsort() local 95 if (r == 0) { in yaffs_qsort() 103 if (r == 0) { in yaffs_qsort() 127 vecswap(a, pb - r, r); in yaffs_qsort() 129 vecswap(pb, pn - r, r); in yaffs_qsort() 130 r = pb - pa; in yaffs_qsort() 131 if (r > es) in yaffs_qsort() 133 r = pd - pc; in yaffs_qsort() 134 if (r > es) { in yaffs_qsort() 136 a = pn - r; in yaffs_qsort() [all …]
|
/u-boot/drivers/input/ |
A D | twl4030.c | 53 u8 c, r; in twl4030_keypad_scan() local 73 for (r = 0; r < 8; r++) in twl4030_keypad_scan() 74 matrix[c * 8 + r] = !(data & (1 << r)); in twl4030_keypad_scan() 84 int twl4030_keypad_key(unsigned char *matrix, u8 c, u8 r) in twl4030_keypad_key() argument 86 return matrix[c * 8 + r]; in twl4030_keypad_key()
|
/u-boot/arch/arm/mach-s5pc1xx/ |
A D | clock.c | 34 r = readl(&clk->apll_con); in s5pc100_get_pll_clk() 37 r = readl(&clk->mpll_con); in s5pc100_get_pll_clk() 40 r = readl(&clk->epll_con); in s5pc100_get_pll_clk() 43 r = readl(&clk->hpll_con); in s5pc100_get_pll_clk() 61 m = (r >> 16) & mask; in s5pc100_get_pll_clk() 64 p = (r >> 8) & 0x3f; in s5pc100_get_pll_clk() 66 s = r & 0x7; in s5pc100_get_pll_clk() 85 r = readl(&clk->apll_con); in s5pc110_get_pll_clk() 112 m = (r >> 16) & mask; in s5pc110_get_pll_clk() 115 p = (r >> 8) & 0x3f; in s5pc110_get_pll_clk() [all …]
|
/u-boot/include/ |
A D | usbdevice.h | 86 #define mmio_insw(r,b,l) ({ int __i ; \ argument 90 *(__b2 + __i) = inw(r); \ 96 #define mmio_outsw(r,b,l) ({ int __i; \ argument 100 outw( *(__b2 + __i), r); \ 106 #define mmio_insb(r,b,l) ({ int __i ; \ argument 110 *(__b2 + __i) = inb(r); \ 702 if (r->bRequest == USB_REQ_GET_STATUS) in print_usb_device_request() 704 else if (r->bRequest == USB_REQ_SET_ADDRESS) in print_usb_device_request() 706 else if (r->bRequest == USB_REQ_SET_FEATURE) in print_usb_device_request() 718 switch (r->wValue >> 8) { in print_usb_device_request() [all …]
|
/u-boot/drivers/reset/ |
A D | sandbox-reset-test.c | 34 struct reset_ctl *r; in sandbox_reset_test_get_devm() local 36 r = devm_reset_control_get(dev, "not-a-valid-reset-ctl"); in sandbox_reset_test_get_devm() 37 if (!IS_ERR(r)) in sandbox_reset_test_get_devm() 40 r = devm_reset_control_get_optional(dev, "not-a-valid-reset-ctl"); in sandbox_reset_test_get_devm() 41 if (r) in sandbox_reset_test_get_devm() 62 struct reset_ctl_bulk *r; in sandbox_reset_test_get_bulk_devm() local 64 r = devm_reset_bulk_get_optional(dev); in sandbox_reset_test_get_bulk_devm() 65 if (IS_ERR(r)) in sandbox_reset_test_get_bulk_devm() 66 return PTR_ERR(r); in sandbox_reset_test_get_bulk_devm() 68 sbrt->bulkp = r; in sandbox_reset_test_get_bulk_devm()
|
/u-boot/test/dm/ |
A D | k210_pll.c | 16 u64 f, r, od, max_r, inv_ratio; in dm_test_k210_pll_calc_config() local 25 for (r = 1; r <= max_r; r++) { in dm_test_k210_pll_calc_config() 28 u64 vco = DIV_ROUND_CLOSEST_ULL(rate_in * f, r); in dm_test_k210_pll_calc_config() 34 r * od); in dm_test_k210_pll_calc_config() 38 best->r = r; in dm_test_k210_pll_calc_config() 55 return (u32)ours->f * theirs->r * theirs->od != in dm_test_k210_pll_compare() 56 (u32)theirs->f * ours->r * ours->od; in dm_test_k210_pll_compare()
|
/u-boot/drivers/clk/kendryte/ |
A D | pll.c | 137 #define PACK(r, od) (((((r) - 1) & 0xF) << 4) | (((od) - 1) & 0xF)) argument 251 u64 r, f, od; in k210_pll_calc_config() local 285 r = 0; in k210_pll_calc_config() 296 u64 last_r = r; in k210_pll_calc_config() 343 r = last_r; in k210_pll_calc_config() 359 if (r > max_r) { in k210_pll_calc_config() 375 u64 tmp = r; in k210_pll_calc_config() 377 r = od; in k210_pll_calc_config() 394 r = new_r; in k210_pll_calc_config() 410 best->r = r; in k210_pll_calc_config() [all …]
|
/u-boot/arch/arc/lib/ |
A D | libgcc2.c | 165 UDWtype q = 0, r = n, y = d; in __udivmoddi4() local 178 if (y <= r) { in __udivmoddi4() 194 if (r >= y) { in __udivmoddi4() 195 r = r - y; in __udivmoddi4() 208 if (r >= y) in __udivmoddi4() 209 r = ((r - y) << 1) + 1; in __udivmoddi4() 211 r = (r << 1); in __udivmoddi4() 219 q = q + r; in __udivmoddi4() 220 r = r >> k; in __udivmoddi4() 221 q = q - (r << k); in __udivmoddi4() [all …]
|
/u-boot/drivers/clk/at91/ |
A D | sama7g5.c | 504 struct clk_range r; member 597 struct clk_range r; member 615 .r = { .max = 200000000 }, 625 .r = { .max = 27000000 }, 635 .r = { .max = 200000000 }, 645 .r = { .max = 200000000 }, 655 .r = { .max = 200000000 }, 665 .r = { .max = 200000000 }, 675 .r = { .max = 200000000 }, 685 .r = { .max = 200000000 }, [all …]
|
/u-boot/drivers/power/regulator/ |
A D | bd71837.c | 248 if (!val || sel < r->min_sel || sel > r->max_sel) in vrange_find_value() 251 *val = r->min_volt + r->step * (sel - r->min_sel); in vrange_find_value() 259 int num_vals = r->max_sel - r->min_sel + 1; in vrange_find_selector() 261 if (val >= r->min_volt && in vrange_find_selector() 262 val <= r->min_volt + r->step * (num_vals - 1)) { in vrange_find_selector() 263 if (r->step) { in vrange_find_selector() 264 *sel = r->min_sel + ((val - r->min_volt) / r->step); in vrange_find_selector() 267 *sel = r->min_sel; in vrange_find_selector() 348 range = r->rangeval; in bd71837_set_value() 388 r->rangeval)) in bd71837_get_value() [all …]
|