/u-boot/include/asm-generic/ |
A D | atomic.h | 22 unsigned long flags = 0; in atomic_add() local 24 local_irq_save(flags); in atomic_add() 31 unsigned long flags = 0; in atomic_sub() local 33 local_irq_save(flags); in atomic_sub() 42 local_irq_save(flags); in atomic_inc() 51 local_irq_save(flags); in atomic_dec() 61 local_irq_save(flags); in atomic_dec_and_test() 74 local_irq_save(flags); in atomic_add_negative() 86 local_irq_save(flags); in atomic_clear_mask() 97 local_irq_save(flags); in atomic64_add() [all …]
|
A D | gpio.h | 121 unsigned long flags; member 140 #define GPIOD_FLAGS_OUTPUT(flags) \ argument 317 ulong flags); 332 ulong *flags); 531 int flags); 565 struct gpio_desc *desc, int flags); 575 int flags); 591 char *list_name, int index, int flags, 718 unsigned int index, int flags); 720 #define devm_gpiod_get(dev, id, flags) devm_gpiod_get_index(dev, id, 0, flags) argument [all …]
|
/u-boot/arch/sh/include/asm/ |
A D | irqflags.h | 24 unsigned long flags; in raw_local_irq_disable() local 30 : "=&z" (flags) in raw_local_irq_disable() 67 unsigned long flags; in __raw_local_save_flags() local 72 : "=&z" (flags) in __raw_local_save_flags() 77 return flags; in __raw_local_save_flags() 85 return (flags != 0); in raw_irqs_disabled_flags() 97 unsigned long flags, __dummy; in __raw_local_irq_save() local 106 : "=&z" (flags), "=&r" (__dummy) in __raw_local_irq_save() 111 return flags; in __raw_local_irq_save() 114 #define raw_local_irq_save(flags) \ argument [all …]
|
A D | bitops.h | 18 unsigned long flags; in set_bit() local 22 local_irq_save(flags); in set_bit() 24 local_irq_restore(flags); in set_bit() 36 unsigned long flags; in clear_bit() local 40 local_irq_save(flags); in clear_bit() 49 unsigned long flags; in change_bit() local 53 local_irq_save(flags); in change_bit() 62 unsigned long flags; in test_and_set_bit() local 66 local_irq_save(flags); in test_and_set_bit() 78 unsigned long flags; in test_and_clear_bit() local [all …]
|
/u-boot/arch/microblaze/include/asm/ |
A D | system.h | 67 #define __save_flags(flags) \ argument 69 #define __restore_flags(flags) \ argument 97 #define local_irq_save(flags) __save_flags_cli (flags) argument 98 #define local_irq_set(flags) __save_flags_sti (flags) argument 99 #define local_irq_restore(flags) __restore_flags (flags) argument 105 #define save_flags(flags) __save_flags (flags) argument 106 #define restore_flags(flags) __restore_flags (flags) argument 107 #define save_flags_cli(flags) __save_flags_cli (flags) argument 137 unsigned long tmp, flags; in __xchg() local 139 save_flags_cli (flags); in __xchg() [all …]
|
A D | bitops.h | 40 unsigned long flags; in set_bit() local 44 save_flags_cli(flags); in set_bit() 46 restore_flags(flags); in set_bit() 70 unsigned long flags; in clear_bit() local 74 save_flags_cli(flags); in clear_bit() 76 restore_flags(flags); in clear_bit() 85 unsigned long flags; in change_bit() local 92 restore_flags(flags); in change_bit() 109 unsigned long flags; in test_and_set_bit() local 137 unsigned long flags; in test_and_clear_bit() local [all …]
|
/u-boot/drivers/usb/host/ |
A D | ehci-mxc.c | 80 if (flags & MXC_EHCI_PWR_PIN_ACTIVE_HIGH) in mxc_set_usbcontrol() 103 if (!(flags & MXC_EHCI_TTL_ENABLED)) in mxc_set_usbcontrol() 106 if (flags & MXC_EHCI_INTERNAL_PHY) in mxc_set_usbcontrol() 109 if (flags & MXC_EHCI_IPPUE_DOWN) in mxc_set_usbcontrol() 112 if (flags & MXC_EHCI_IPPUE_UP) in mxc_set_usbcontrol() 136 if (!(flags & MXC_EHCI_TTL_ENABLED)) in mxc_set_usbcontrol() 147 if (!(flags & MXC_EHCI_TTL_ENABLED)) in mxc_set_usbcontrol() 187 if (!(flags & MXC_EHCI_TTL_ENABLED)) in mxc_set_usbcontrol() 190 if (flags & MXC_EHCI_INTERNAL_PHY) in mxc_set_usbcontrol() 193 if (flags & MXC_EHCI_IPPUE_DOWN) in mxc_set_usbcontrol() [all …]
|
/u-boot/post/ |
A D | tests.c | 11 extern int ocm_post_test (int flags); 12 extern int cache_post_test (int flags); 14 extern int i2c_post_test (int flags); 15 extern int rtc_post_test (int flags); 17 extern int cpu_post_test (int flags); 18 extern int fpu_post_test (int flags); 19 extern int uart_post_test (int flags); 21 extern int spi_post_test (int flags); 22 extern int usb_post_test (int flags); 23 extern int spr_post_test (int flags); [all …]
|
A D | post.c | 250 if (!(flags & POST_REBOOT)) { in post_run_single() 252 !(flags & POST_MANUAL)) { in post_run_single() 273 gd->flags |= GD_FLG_POSTFAIL; in post_run_single() 275 gd->flags |= GD_FLG_POSTSTOP; in post_run_single() 283 gd->flags |= GD_FLG_POSTFAIL; in post_run_single() 285 gd->flags |= GD_FLG_POSTSTOP; in post_run_single() 317 gd->flags |= GD_FLG_POSTFAIL; in post_run() 332 flags, i); in post_run() 341 flags, i); in post_run() 356 flags, i); in post_run() [all …]
|
/u-boot/arch/nios2/include/asm/bitops/ |
A D | atomic.h | 69 unsigned long flags; in set_bit() local 71 _atomic_spin_lock_irqsave(p, flags); in set_bit() 90 unsigned long flags; in clear_bit() local 92 _atomic_spin_lock_irqsave(p, flags); in clear_bit() 111 unsigned long flags; in change_bit() local 113 _atomic_spin_lock_irqsave(p, flags); in change_bit() 132 unsigned long flags; in test_and_set_bit() local 134 _atomic_spin_lock_irqsave(p, flags); in test_and_set_bit() 156 unsigned long flags; in test_and_clear_bit() local 158 _atomic_spin_lock_irqsave(p, flags); in test_and_clear_bit() [all …]
|
/u-boot/arch/xtensa/include/asm/ |
A D | system.h | 12 #define local_irq_save(flags) \ argument 14 : "=a"(flags) \ 17 #define local_irq_restore(flags) \ argument 20 :: "a"(flags) : "memory") 22 #define local_irq_save(flags) ((void)(flags)) argument 23 #define local_irq_restore(flags) ((void)(flags)) argument
|
/u-boot/env/ |
A D | flags.c | 131 flags[ENV_FLAGS_VARTYPE_LOC]); in env_flags_parse_vartype() 138 flags[ENV_FLAGS_VARTYPE_LOC]); in env_flags_parse_vartype() 155 flags[ENV_FLAGS_VARACCESS_LOC]); in env_flags_parse_varaccess() 307 char *flags) in env_flags_lookup() 311 if (!flags) in env_flags_lookup() 463 if (!ret && strlen(flags)) in env_flags_init() 464 var_entry->flags = env_parse_flags_to_bin(flags); in env_flags_init() 473 entry->flags = 0; in clear_flags() 493 ep->flags = 0; in set_flags() 503 int flags) in on_flags() argument [all …]
|
A D | common.c | 59 gd->flags &= ~GD_FLG_ENV_READY; in env_get_default() 63 gd->flags = real_gd_flags; in env_get_default() 85 flags |= H_DEFAULT; in env_set_default() 92 gd->flags |= GD_FLG_ENV_READY; in env_set_default() 107 flags, 0, nvars, vars); in env_set_default_vars() 184 if (tmp_env1->flags == 255 && tmp_env2->flags == 0) in env_check_redund() 186 else if (tmp_env2->flags == 255 && tmp_env1->flags == 0) in env_check_redund() 188 else if (tmp_env1->flags > tmp_env2->flags) in env_check_redund() 190 else if (tmp_env2->flags > tmp_env1->flags) in env_check_redund() 201 int flags) in env_import_redund() argument [all …]
|
/u-boot/drivers/clk/ |
A D | clk-divider.c | 45 if (flags & CLK_DIVIDER_ONE_BASED) in _get_div() 47 if (flags & CLK_DIVIDER_POWER_OF_TWO) in _get_div() 49 if (flags & CLK_DIVIDER_MAX_AT_ZERO) in _get_div() 106 if (flags & CLK_DIVIDER_POWER_OF_TWO) in clk_divider_is_valid_div() 127 if (flags & CLK_DIVIDER_ONE_BASED) in _get_val() 131 if (flags & CLK_DIVIDER_MAX_AT_ZERO) in _get_val() 139 unsigned long flags) in divider_get_val() argument 161 divider->width, divider->flags); in clk_divider_set_rate() 207 div->flags = clk_divider_flags; in _register_divider() 215 clk->flags = flags; in _register_divider() [all …]
|
A D | clk-mux.c | 54 if (val && (flags & CLK_MUX_INDEX_BIT)) in clk_mux_val_to_index() 57 if (val && (flags & CLK_MUX_INDEX_ONE)) in clk_mux_val_to_index() 73 if (flags & CLK_MUX_INDEX_BIT) in clk_mux_index_to_val() 76 if (flags & CLK_MUX_INDEX_ONE) in clk_mux_index_to_val() 132 if (mux->flags & CLK_MUX_HIWORD_MASK) { in clk_mux_set_parent() 160 unsigned long flags, in clk_hw_register_mux_table() argument 190 mux->flags = clk_mux_flags; in clk_hw_register_mux_table() 197 clk->flags = flags; in clk_hw_register_mux_table() 217 unsigned long flags, in clk_register_mux_table() argument 233 unsigned long flags, in clk_register_mux() argument [all …]
|
/u-boot/lib/ |
A D | sscanf.c | 403 flags = 0; in vsscanf() 421 flags |= SUPPRESS; in vsscanf() 425 flags &= ~LONG; in vsscanf() 426 flags |= QUAD; in vsscanf() 428 flags |= LONG; in vsscanf() 432 flags |= QUAD; in vsscanf() 436 flags &= ~SHORT; in vsscanf() 439 flags |= SHORT; in vsscanf() 489 flags |= NOSKIP; in vsscanf() 494 flags |= NOSKIP; in vsscanf() [all …]
|
A D | vsprintf.c | 453 flags); in pointer() 475 flags |= SPECIAL; in pointer() 481 flags |= SPECIAL; in pointer() 500 flags |= SMALL; in pointer() 540 flags = 0; in vsnprintf_internal() 545 flags |= LEFT; in vsnprintf_internal() 548 flags |= PLUS; in vsnprintf_internal() 571 flags |= LEFT; in vsnprintf_internal() 661 flags |= SMALL; in vsnprintf_internal() 668 flags |= SIGN; in vsnprintf_internal() [all …]
|
/u-boot/arch/arm/include/asm/proc-armv/ |
A D | system.h | 22 #define local_irq_save(flags) \ argument 27 : "=r" (flags) \ 35 #define local_irq_restore(flags) \ argument 40 : "r" (flags) \ 188 unsigned long flags; in __xchg() local 194 local_irq_save(flags); in __xchg() 197 local_irq_restore(flags); in __xchg() 201 local_irq_save(flags); in __xchg() 204 local_irq_restore(flags); in __xchg()
|
/u-boot/arch/arm/mach-sunxi/ |
A D | prcm.c | 24 void prcm_apb0_enable(u32 flags) in prcm_apb0_enable() argument 30 setbits_le32(&prcm->apb0_gate, flags); in prcm_apb0_enable() 33 setbits_le32(&prcm->apb0_reset, flags); in prcm_apb0_enable() 36 void prcm_apb0_disable(u32 flags) in prcm_apb0_disable() argument 42 clrbits_le32(&prcm->apb0_reset, flags); in prcm_apb0_disable() 45 clrbits_le32(&prcm->apb0_gate, flags); in prcm_apb0_disable()
|
/u-boot/drivers/xen/ |
A D | gnttab.c | 47 unsigned long flags; in put_free_entry() local 49 local_irq_save(flags); in put_free_entry() 52 local_irq_restore(flags); in put_free_entry() 58 unsigned long flags; in get_free_entry() local 60 local_irq_save(flags); in get_free_entry() 64 local_irq_restore(flags); in get_free_entry() 98 u16 flags, nflags; in gnttab_end_access() local 102 nflags = gnttab_table[ref].flags; in gnttab_end_access() 104 flags = nflags; in gnttab_end_access() 109 } while ((nflags = synch_cmpxchg(&gnttab_table[ref].flags, flags, 0)) != in gnttab_end_access() [all …]
|
/u-boot/drivers/rtc/ |
A D | abx80x.c | 142 int flags = 0; in abx80x_is_rc_mode() local 145 if (flags < 0) { in abx80x_is_rc_mode() 147 return flags; in abx80x_is_rc_mode() 191 return flags; in abx80x_rtc_read_time() 219 int err, flags; in abx80x_rtc_set_time() local 242 if (flags < 0) { in abx80x_rtc_set_time() 244 return flags; in abx80x_rtc_set_time() 269 if (flags < 0) in abx80x_rtc_set_autocalibration() 270 return flags; in abx80x_rtc_set_autocalibration() 301 if (flags < 0) in abx80x_rtc_get_autocalibration() [all …]
|
/u-boot/common/ |
A D | console.c | 28 int flags) in on_console() argument 60 if ((flags & H_FORCE) == 0) in on_console() 72 int flags) in on_silent() argument 75 if (flags & H_INTERACTIVE) in on_silent() 83 gd->flags |= GD_FLG_SILENT; in on_silent() 85 gd->flags &= ~GD_FLG_SILENT; in on_silent() 750 gd->flags |= GD_FLG_RECORD; in console_record_reset_enable() 847 if (dev && (dev->flags & flags)) in console_search_dev() 876 unsigned long flags = gd->flags; in console_update_silent() local 882 gd->flags |= GD_FLG_SILENT; in console_update_silent() [all …]
|
/u-boot/drivers/pci/ |
A D | pci_common.c | 146 unsigned long flags, in __pci_hose_bus_to_phys() argument 156 if (((res->flags ^ flags) & PCI_REGION_TYPE) != 0) in __pci_hose_bus_to_phys() 159 if (res->flags & skip_mask) in __pci_hose_bus_to_phys() 174 unsigned long flags) in pci_hose_bus_to_phys() argument 188 if ((flags & PCI_REGION_TYPE) == PCI_REGION_MEM) { in pci_hose_bus_to_phys() 190 flags, PCI_REGION_SYS_MEMORY, &phys_addr); in pci_hose_bus_to_phys() 205 unsigned long flags, in __pci_hose_phys_to_bus() argument 216 if (((res->flags ^ flags) & PCI_REGION_TYPE) != 0) in __pci_hose_phys_to_bus() 219 if (res->flags & skip_mask) in __pci_hose_phys_to_bus() 243 unsigned long flags) in pci_hose_phys_to_bus() argument [all …]
|
/u-boot/drivers/pci_endpoint/ |
A D | pcie-cadence-ep.c | 57 int flags = ep_bar->flags; in cdns_set_bar() local 73 bool is_prefetch = !!(flags & PCI_BASE_ADDRESS_MEM_PREFETCH); in cdns_set_bar() 75 !!(ep_bar->flags & PCI_BASE_ADDRESS_MEM_TYPE_64); in cdns_set_bar() 80 if (is_64bits && !(flags & PCI_BASE_ADDRESS_MEM_TYPE_64)) in cdns_set_bar() 81 ep_bar->flags |= PCI_BASE_ADDRESS_MEM_TYPE_64; in cdns_set_bar() 127 u16 flags; in cdns_set_msi() local 129 flags = cdns_pcie_ep_fn_readw(pcie, fn, cap + PCI_MSI_FLAGS); in cdns_set_msi() 130 flags = (flags & ~PCI_MSI_FLAGS_QMASK) | (mmc << 1); in cdns_set_msi() 131 flags |= PCI_MSI_FLAGS_64BIT; in cdns_set_msi() 132 flags &= ~PCI_MSI_FLAGS_MASKBIT; in cdns_set_msi() [all …]
|
/u-boot/drivers/core/ |
A D | device-remove.c | 48 uint flags) in device_chld_remove() argument 61 ret = device_remove(pos, flags); in device_chld_remove() 181 if (!(flags & DM_REMOVE_NORMAL)) { in flags_remove() 186 (drv_flags & flags); in flags_remove() 187 vital_match = !(flags & DM_REMOVE_NON_VITAL) || in flags_remove() 198 int device_remove(struct udevice *dev, uint flags) in device_remove() argument 213 ret = device_chld_remove(dev, NULL, flags); in device_remove() 223 ret = flags_remove(flags, drv->flags); in device_remove() 226 dev->name, flags, drv->flags, ret); in device_remove() 248 if (!(flags & DM_REMOVE_NO_PD) && in device_remove() [all …]
|