Home
last modified time | relevance | path

Searched refs:mask (Results 1 – 25 of 701) sorted by relevance

12345678910>>...29

/u-boot/arch/microblaze/include/asm/
A Dbitops.h39 int mask; in set_bit() local
45 *a |= mask; in set_bit()
52 int mask; in __set_bit() local
56 *a |= mask; in __set_bit()
69 int mask; in clear_bit() local
75 *a &= ~mask; in clear_bit()
84 int mask; in change_bit() local
97 int mask; in __change_bit() local
115 *a |= mask; in test_and_set_bit()
129 *a |= mask; in __test_and_set_bit()
[all …]
/u-boot/drivers/gpio/
A Dat91_gpio.c49 u32 mask; in at91_set_port_pullup() local
75 u32 mask; in at91_set_pio_periph() local
93 u32 mask; in at91_set_a_periph() local
112 u32 mask; in at91_set_b_periph() local
131 u32 mask; in at91_pio3_set_a_periph() local
154 u32 mask; in at91_pio3_set_b_periph() local
176 u32 mask; in at91_pio3_set_c_periph() local
198 u32 mask; in at91_pio3_set_d_periph() local
228 u32 mask; in at91_set_port_input() local
254 u32 mask; in at91_set_port_output() local
[all …]
A Dlpc32xx_gpio.c69 int port, mask; in lpc32xx_gpio_direction_input() local
74 mask = GPIO_TO_MASK(offset); in lpc32xx_gpio_direction_input()
89 if ((mask >= 25) && (mask <= 30)) in lpc32xx_gpio_direction_input()
111 int port, rank, mask, value; in lpc32xx_gpio_get_value() local
140 mask = GPIO_TO_MASK(offset); in lpc32xx_gpio_get_value()
151 int port, mask; in gpio_set() local
156 mask = GPIO_TO_MASK(gpio); in gpio_set()
185 int port, mask; in gpio_clr() local
190 mask = GPIO_TO_MASK(gpio); in gpio_clr()
233 int port, mask; in lpc32xx_gpio_direction_output() local
[all …]
A Dgpio-uniphier.c42 unsigned int *bank, u32 *mask) in uniphier_gpio_get_bank_and_mask() argument
49 unsigned int reg, u32 mask, u32 val) in uniphier_gpio_reg_update() argument
54 tmp &= ~mask; in uniphier_gpio_reg_update()
55 tmp |= mask & val; in uniphier_gpio_reg_update()
60 unsigned int reg, u32 mask, u32 val) in uniphier_gpio_bank_write() argument
64 if (!mask) in uniphier_gpio_bank_write()
68 mask, val); in uniphier_gpio_bank_write()
75 u32 mask; in uniphier_gpio_offset_write() local
79 uniphier_gpio_bank_write(dev, bank, reg, mask, val ? mask : 0); in uniphier_gpio_offset_write()
87 u32 mask; in uniphier_gpio_offset_read() local
[all …]
A Datmel_pio4.c52 u32 reg, mask; in atmel_pio4_config_io_func() local
61 mask = 1 << pin; in atmel_pio4_config_io_func()
130 u32 reg, mask; in atmel_pio4_set_pio_output() local
139 mask = 0x01 << pin; in atmel_pio4_set_pio_output()
156 u32 reg, mask; in atmel_pio4_get_pio_input() local
165 mask = 0x01 << pin; in atmel_pio4_get_pio_input()
200 u32 mask = BIT(line); in atmel_pio4_direction_input() local
216 u32 mask = BIT(line); in atmel_pio4_direction_output() local
236 u32 mask = BIT(line); in atmel_pio4_get_value() local
247 u32 mask = BIT(line); in atmel_pio4_set_value() local
[all …]
/u-boot/arch/sh/include/asm/
A Dbitops.h16 int mask; in set_bit() local
23 *a |= mask; in set_bit()
34 int mask; in clear_bit() local
41 *a &= ~mask; in clear_bit()
47 int mask; in change_bit() local
54 *a ^= mask; in change_bit()
60 int mask, retval; in test_and_set_bit() local
68 *a |= mask; in test_and_set_bit()
76 int mask, retval; in test_and_clear_bit() local
84 *a &= ~mask; in test_and_clear_bit()
[all …]
/u-boot/arch/riscv/include/asm/
A Dbitops.h38 int mask; in __set_bit() local
42 *a |= mask; in __set_bit()
50 int mask; in __clear_bit() local
54 *a &= ~mask; in __clear_bit()
61 int mask; in __change_bit() local
66 *ADDR ^= mask; in __change_bit()
71 int mask, retval; in __test_and_set_bit() local
77 *a |= mask; in __test_and_set_bit()
83 int mask, retval; in __test_and_clear_bit() local
89 *a &= ~mask; in __test_and_clear_bit()
[all …]
/u-boot/arch/nios2/include/asm/bitops/
A Dnon-atomic.h17 unsigned long mask = BIT_MASK(nr); in __set_bit() local
20 *p |= mask; in __set_bit()
27 unsigned long mask = BIT_MASK(nr); in __clear_bit() local
30 *p &= ~mask; in __clear_bit()
49 *p ^= mask; in __change_bit()
67 *p = old | mask; in __test_and_set_bit()
68 return (old & mask) != 0; in __test_and_set_bit()
86 *p = old & ~mask; in __test_and_clear_bit()
87 return (old & mask) != 0; in __test_and_clear_bit()
98 *p = old ^ mask; in __test_and_change_bit()
[all …]
A Datomic.h67 unsigned long mask = BIT_MASK(nr); in set_bit() local
72 *p |= mask; in set_bit()
88 unsigned long mask = BIT_MASK(nr); in clear_bit() local
93 *p &= ~mask; in clear_bit()
114 *p ^= mask; in change_bit()
136 *p = old | mask; in test_and_set_bit()
139 return (old & mask) != 0; in test_and_set_bit()
160 *p = old & ~mask; in test_and_clear_bit()
163 return (old & mask) != 0; in test_and_clear_bit()
183 *p = old ^ mask; in test_and_change_bit()
[all …]
/u-boot/arch/mips/include/asm/
A Dbitops.h207 *a |= mask; in __test_and_set_bit()
310 *a ^= mask; in __test_and_change_bit()
329 int mask; in set_bit() local
336 *a |= mask; in set_bit()
351 int mask; in __set_bit() local
356 *a |= mask; in __set_bit()
371 int mask; in clear_bit() local
393 int mask; in change_bit() local
400 *a ^= mask; in change_bit()
438 *a |= mask; in test_and_set_bit()
[all …]
/u-boot/drivers/phy/marvell/
A Dcomphy_cp110.c127 u32 mask, data, ret = 1; in comphy_usb3_power_up() local
233 mask = data; in comphy_usb3_power_up()
363 u32 mask, data, ret = 1; in comphy_rxauii_power_up() local
498 mask = data; in comphy_rxauii_power_up()
517 mask = data; in comphy_rxauii_power_up()
543 u32 mask, data; in comphy_utmi_power_down() local
588 u32 mask, data; in comphy_utmi_phy_config() local
648 u32 data, mask, ret = 1; in comphy_utmi_power_up() local
665 mask = data; in comphy_utmi_power_up()
674 mask = data; in comphy_utmi_power_up()
[all …]
/u-boot/include/
A Dbitfield.h61 uint mask = bitfield_mask(shift, width); in bitfield_replace() local
63 return (reg_val & ~mask) | ((bitfield_val << shift) & mask); in bitfield_replace()
67 static inline uint bitfield_shift(uint mask) in bitfield_shift() argument
69 return mask ? ffs(mask) - 1 : 0; in bitfield_shift()
73 static inline uint bitfield_extract_by_mask(uint reg_val, uint mask) in bitfield_extract_by_mask() argument
75 uint shift = bitfield_shift(mask); in bitfield_extract_by_mask()
77 return (reg_val & mask) >> shift; in bitfield_extract_by_mask()
84 static inline uint bitfield_replace_by_mask(uint reg_val, uint mask, in bitfield_replace_by_mask() argument
87 uint shift = bitfield_shift(mask); in bitfield_replace_by_mask()
89 return (reg_val & ~mask) | ((bitfield_val << shift) & mask); in bitfield_replace_by_mask()
/u-boot/drivers/pinctrl/
A Dpinctrl-at91.c124 writel(mask, &pio->idr); in at91_mux_disable_interrupt()
187 u32 mask, bool is_on) in at91_mux_pio3_set_deglitch() argument
200 writel(mask, &pio->ifer); in at91_mux_pio3_set_debounce()
210 writel(mask, &pio->pudr); in at91_mux_pio3_set_pulldown()
216 u32 mask) in at91_mux_pio3_disable_schmitt_trig() argument
351 writel(mask, &pio->pdr); in at91_mux_gpio_disable()
356 writel(mask, &pio->per); in at91_mux_gpio_enable()
369 ops->mux_A_periph(pio, mask); in at91_pmx_set()
394 u32 mask = BIT(pin); in at91_pinconf_set() local
447 u32 conf, mask, count, i; in at91_pinctrl_set_state() local
[all …]
/u-boot/arch/nds32/include/asm/
A Dbitops.h40 int mask; in __set_bit() local
44 *a |= mask; in __set_bit()
54 int mask; in __clear_bit() local
60 *a &= ~mask; in __clear_bit()
70 int mask; in __change_bit() local
75 *ADDR ^= mask; in __change_bit()
82 int mask, retval; in __test_and_set_bit() local
88 *a |= mask; in __test_and_set_bit()
96 int mask, retval; in __test_and_clear_bit() local
102 *a &= ~mask; in __test_and_clear_bit()
[all …]
/u-boot/drivers/misc/
A Dgpio_led.c18 static int gpio_led_gpio_value(led_id_t mask, int state) in gpio_led_gpio_value() argument
23 if (gpio_led_inv[i] == mask) in gpio_led_gpio_value()
30 void __led_init(led_id_t mask, int state) in __led_init() argument
34 if (gpio_request(mask, "gpio_led") != 0) { in __led_init()
39 gpio_value = gpio_led_gpio_value(mask, state); in __led_init()
40 gpio_direction_output(mask, gpio_value); in __led_init()
43 void __led_set(led_id_t mask, int state) in __led_set() argument
45 int gpio_value = gpio_led_gpio_value(mask, state); in __led_set()
47 gpio_set_value(mask, gpio_value); in __led_set()
50 void __led_toggle(led_id_t mask) in __led_toggle() argument
[all …]
A Dpca9551_led.c67 u8 shift, buf, mask; in pca9551_led_set_state() local
79 mask = 0x03 << shift; in pca9551_led_set_state()
85 buf = (buf & ~mask) | ((state & 0x03) << shift); in pca9551_led_set_state()
125 void __led_set(led_id_t mask, int state) in __led_set() argument
133 void __led_toggle(led_id_t mask) in __led_toggle() argument
137 pca9551_led_get_state(mask, &state); in __led_toggle()
138 pca9551_led_set_state(mask, !state); in __led_toggle()
141 void __led_blink(led_id_t mask, int freq) in __led_blink() argument
147 if ((freq == freq_last) || (mask == mask_last)) { in __led_blink()
164 mask_last = mask; in __led_blink()
[all …]
/u-boot/drivers/power/regulator/
A Drk8xx.c384 uint mask = 0; in _buck_get_enable() local
426 uint mask = 0; in _buck_set_suspend_enable() local
463 uint mask = 0; in _buck_get_suspend_enable() local
526 uint mask = 0; in _ldo_get_enable() local
625 uint mask; in _ldo_set_suspend_enable() local
662 uint mask; in _ldo_get_suspend_enable() local
893 uint mask = 0; in switch_set_enable() local
907 mask = 1 << 6; in switch_set_enable()
923 uint mask = 0; in switch_get_enable() local
960 uint mask = 0; in switch_set_suspend_enable() local
[all …]
/u-boot/board/ti/beagle/
A Dled.c29 static int get_led_gpio(led_id_t mask) in get_led_gpio() argument
32 if (CONFIG_LED_STATUS_BIT & mask) in get_led_gpio()
36 if (CONFIG_LED_STATUS_BIT1 & mask) in get_led_gpio()
43 void __led_init (led_id_t mask, int state) in __led_init() argument
47 toggle_gpio = get_led_gpio(mask); in __led_init()
50 __led_set(mask, state); in __led_init()
53 void __led_toggle (led_id_t mask) in __led_toggle() argument
57 toggle_gpio = get_led_gpio(mask); in __led_toggle()
64 void __led_set (led_id_t mask, int state) in __led_set() argument
68 toggle_gpio = get_led_gpio(mask); in __led_set()
/u-boot/arch/mips/mach-mscc/
A Dgpio.c12 u32 mask = BIT(gpio); in mscc_gpio_set_alternate() local
19 val0 |= mask; in mscc_gpio_set_alternate()
20 val1 &= ~mask; in mscc_gpio_set_alternate()
22 val0 &= ~mask; in mscc_gpio_set_alternate()
23 val1 |= mask; in mscc_gpio_set_alternate()
25 val0 |= mask; in mscc_gpio_set_alternate()
26 val1 |= mask; in mscc_gpio_set_alternate()
28 val0 &= ~mask; in mscc_gpio_set_alternate()
29 val1 &= ~mask; in mscc_gpio_set_alternate()
/u-boot/arch/arm/mach-zynqmp/
A Dpsu_spl_init.c14 int __maybe_unused mask_pollonvalue(unsigned long add, u32 mask, u32 value) in mask_pollonvalue() argument
18 while ((__raw_readl(add) & mask) != value) { in mask_pollonvalue()
26 __weak int mask_poll(u32 add, u32 mask) in mask_poll() argument
31 while (!(__raw_readl(addr) & mask)) { in mask_poll()
39 __weak u32 mask_read(u32 add, u32 mask) in mask_read() argument
43 return __raw_readl(addr) & mask; in mask_read()
51 __weak void psu_mask_write(unsigned long offset, unsigned long mask, in psu_mask_write() argument
57 regval &= ~(mask); in psu_mask_write()
58 regval |= (val & mask); in psu_mask_write()
62 __weak void prog_reg(unsigned long addr, unsigned long mask, in prog_reg() argument
[all …]
/u-boot/drivers/ddr/marvell/a38x/
A Dmv_ddr_topology.h260 #define IS_ACTIVE(mask, id) \ argument
261 ((mask) & (1 << (id)))
263 #define VALIDATE_ACTIVE(mask, id) \ argument
265 if (IS_ACTIVE(mask, id) == 0) \
272 #define VALIDATE_IF_ACTIVE(mask, id) \ argument
274 if (IS_IF_ACTIVE(mask, id) == 0) \
283 if (IS_BUS_ACTIVE(mask, id) == 0) \
295 (((mask) == BUS_MASK_16BIT || \
296 (mask) == BUS_MASK_16BIT_ECC || \
309 (((mask) == BUS_MASK_32BIT) || \
[all …]
/u-boot/board/corscience/tricorder/
A Dled.c17 void __led_init(led_id_t mask, int state) in __led_init() argument
19 __led_set(mask, state); in __led_init()
22 void __led_toggle(led_id_t mask) in __led_toggle() argument
26 if (!toggle_gpio && CONFIG_LED_STATUS_BIT & mask) in __led_toggle()
30 if (!toggle_gpio && CONFIG_LED_STATUS_BIT1 & mask) in __led_toggle()
34 if (!toggle_gpio && CONFIG_LED_STATUS_BIT2 & mask) { in __led_toggle()
51 void __led_set(led_id_t mask, int state) in __led_set() argument
54 if (CONFIG_LED_STATUS_BIT & mask) { in __led_set()
61 if (CONFIG_LED_STATUS_BIT1 & mask) { in __led_set()
68 if (CONFIG_LED_STATUS_BIT2 & mask) { in __led_set()
/u-boot/arch/arm/mach-nexell/
A Dtieoff.c42 u32 regindex, mask; in nx_tieoff_set() local
59 mask = ~(0xffffffff << lsb); in nx_tieoff_set()
60 regval = tieoff_readl(&nx_tieoff->tieoffreg[regindex]) & mask; in nx_tieoff_set()
64 mask = (0xffffffff << msb); in nx_tieoff_set()
65 regval = tieoff_readl(&nx_tieoff->tieoffreg[regindex]) & mask; in nx_tieoff_set()
69 mask = (0xffffffff << msb) | (~(0xffffffff << lsb)); in nx_tieoff_set()
78 u32 regindex, mask; in nx_tieoff_get() local
94 mask = 0xffffffff << lsb; in nx_tieoff_get()
98 mask = ~(0xffffffff << msb); in nx_tieoff_get()
100 & mask) << (32 - lsb)); in nx_tieoff_get()
[all …]
/u-boot/tools/
A Dpbl_crc32.c15 uint32_t mask; in make_crc_table() local
29 mask = i << 24; in make_crc_table()
31 if (mask & 0x80000000) in make_crc_table()
32 mask = (mask << 1) ^ poly; in make_crc_table()
34 mask <<= 1; in make_crc_table()
36 crc_table[i] = mask; in make_crc_table()
/u-boot/arch/powerpc/include/asm/
A Dbitops.h44 : "r" (mask), "r" (p), "m" (*p) in set_bit()
61 : "r" (mask), "r" (p), "m" (*p) in clear_bit()
98 return (old & mask) != 0; in test_and_set_bit()
117 return (old & mask) != 0; in test_and_clear_bit()
136 return (old & mask) != 0; in test_and_change_bit()
287 int mask; in ext2_set_bit() local
292 mask = 1 << (nr & 0x07); in ext2_set_bit()
294 *ADDR |= mask; in ext2_set_bit()
300 int mask; in ext2_clear_bit() local
305 mask = 1 << (nr & 0x07); in ext2_clear_bit()
[all …]

Completed in 54 milliseconds

12345678910>>...29