Home
last modified time | relevance | path

Searched refs:nr (Results 1 – 25 of 935) sorted by relevance

12345678910>>...38

/external/u-boot/arch/arm/mach-omap2/am33xx/
Dddr.c38 static inline u32 get_mr(int nr, u32 cs, u32 mr_addr) in get_mr() argument
43 writel(mr_addr, &emif_reg[nr]->emif_lpddr2_mode_reg_cfg); in get_mr()
45 mr = readl(&emif_reg[nr]->emif_lpddr2_mode_reg_data); in get_mr()
55 static inline void set_mr(int nr, u32 cs, u32 mr_addr, u32 mr_val) in set_mr() argument
58 writel(mr_addr, &emif_reg[nr]->emif_lpddr2_mode_reg_cfg); in set_mr()
59 writel(mr_val, &emif_reg[nr]->emif_lpddr2_mode_reg_data); in set_mr()
62 static void configure_mr(int nr, u32 cs) in configure_mr() argument
66 while (get_mr(nr, cs, LPDDR2_MR0) & LPDDR2_MR0_DAI_MASK) in configure_mr()
68 set_mr(nr, cs, LPDDR2_MR10, 0x56); in configure_mr()
70 set_mr(nr, cs, LPDDR2_MR1, 0x43); in configure_mr()
[all …]
/external/u-boot/arch/mips/include/asm/
Dbitops.h65 set_bit(int nr, volatile void *addr) in set_bit() argument
67 unsigned long *m = ((unsigned long *) addr) + (nr >> 5); in set_bit()
76 : "ir" (1UL << (nr & 0x1f)), "m" (*m)); in set_bit()
88 static __inline__ void __set_bit(int nr, volatile void * addr) in __set_bit() argument
90 unsigned long * m = ((unsigned long *) addr) + (nr >> 5); in __set_bit()
92 *m |= 1UL << (nr & 31); in __set_bit()
107 clear_bit(int nr, volatile void *addr) in clear_bit() argument
109 unsigned long *m = ((unsigned long *) addr) + (nr >> 5); in clear_bit()
118 : "ir" (~(1UL << (nr & 0x1f))), "m" (*m)); in clear_bit()
131 change_bit(int nr, volatile void *addr) in change_bit() argument
[all …]
/external/u-boot/arch/microblaze/include/asm/
Dbitops.h36 static inline void set_bit(int nr, volatile void *addr) in set_bit() argument
42 a += nr >> 5; in set_bit()
43 mask = 1 << (nr & 0x1f); in set_bit()
49 static inline void __set_bit(int nr, volatile void *addr) in __set_bit() argument
54 a += nr >> 5; in __set_bit()
55 mask = 1 << (nr & 0x1f); in __set_bit()
66 static inline void clear_bit(int nr, volatile void *addr) in clear_bit() argument
72 a += nr >> 5; in clear_bit()
73 mask = 1 << (nr & 0x1f); in clear_bit()
79 #define __clear_bit(nr, addr) clear_bit(nr, addr) argument
[all …]
/external/u-boot/include/
Dsh_pfc.h143 #define PORT_DATA_I(nr) \ argument
144 PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, PORT##nr##_IN)
146 #define PORT_DATA_I_PD(nr) \ argument
147 PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, \
148 PORT##nr##_IN, PORT##nr##_IN_PD)
150 #define PORT_DATA_I_PU(nr) \ argument
151 PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, \
152 PORT##nr##_IN, PORT##nr##_IN_PU)
154 #define PORT_DATA_I_PU_PD(nr) \ argument
155 PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, \
[all …]
/external/wpa_supplicant_8/src/ap/
Dneighbor_db.c22 struct hostapd_neighbor_entry *nr; in hostapd_neighbor_get() local
24 dl_list_for_each(nr, &hapd->nr_db, struct hostapd_neighbor_entry, in hostapd_neighbor_get()
26 if (os_memcmp(bssid, nr->bssid, ETH_ALEN) == 0 && in hostapd_neighbor_get()
28 (ssid->ssid_len == nr->ssid.ssid_len && in hostapd_neighbor_get()
29 os_memcmp(ssid->ssid, nr->ssid.ssid, in hostapd_neighbor_get()
31 return nr; in hostapd_neighbor_get()
37 static void hostapd_neighbor_clear_entry(struct hostapd_neighbor_entry *nr) in hostapd_neighbor_clear_entry() argument
39 wpabuf_free(nr->nr); in hostapd_neighbor_clear_entry()
40 nr->nr = NULL; in hostapd_neighbor_clear_entry()
41 wpabuf_free(nr->lci); in hostapd_neighbor_clear_entry()
[all …]
/external/tcpdump/
Dprint-cnfp.c161 register const struct nfrec_v1 *nr; in cnfp_v1_print() local
187 nr = (const struct nfrec_v1 *)&nh[1]; in cnfp_v1_print()
191 for (; nrecs != 0; nr++, nrecs--) { in cnfp_v1_print()
198 ND_TCHECK(*nr); in cnfp_v1_print()
200 EXTRACT_32BITS(&nr->start_time)/1000, in cnfp_v1_print()
201 EXTRACT_32BITS(&nr->start_time)%1000, in cnfp_v1_print()
202 EXTRACT_32BITS(&nr->last_time)/1000, in cnfp_v1_print()
203 EXTRACT_32BITS(&nr->last_time)%1000)); in cnfp_v1_print()
206 ND_PRINT((ndo, "\n %s%s%s:%u ", intoa(nr->src_ina.s_addr), buf, asbuf, in cnfp_v1_print()
207 EXTRACT_16BITS(&nr->srcport))); in cnfp_v1_print()
[all …]
/external/u-boot/arch/nds32/include/asm/
Dbitops.h35 extern void set_bit(int nr, void *addr);
37 static inline void __set_bit(int nr, void *addr) in __set_bit() argument
42 a += nr >> 5; in __set_bit()
43 mask = 1 << (nr & 0x1f); in __set_bit()
49 extern void clear_bit(int nr, void *addr);
51 static inline void __clear_bit(int nr, void *addr) in __clear_bit() argument
57 a += nr >> 5; in __clear_bit()
58 mask = 1 << (nr & 0x1f); in __clear_bit()
66 extern void change_bit(int nr, void *addr);
68 static inline void __change_bit(int nr, void *addr) in __change_bit() argument
[all …]
/external/u-boot/arch/x86/include/asm/
Dbitops.h39 static __inline__ void set_bit(int nr, volatile void * addr) in set_bit() argument
44 :"Ir" (nr)); in set_bit()
56 static __inline__ void __set_bit(int nr, volatile void * addr) in __set_bit() argument
61 :"Ir" (nr)); in __set_bit()
76 static __inline__ void clear_bit(int nr, volatile void * addr) in clear_bit() argument
81 :"Ir" (nr)); in clear_bit()
95 static __inline__ void __change_bit(int nr, volatile void * addr) in __change_bit() argument
100 :"Ir" (nr)); in __change_bit()
112 static __inline__ void change_bit(int nr, volatile void * addr) in change_bit() argument
117 :"Ir" (nr)); in change_bit()
[all …]
/external/u-boot/arch/sandbox/include/asm/
Dbitops.h37 extern void set_bit(int nr, void *addr);
39 extern void clear_bit(int nr, void *addr);
41 extern void change_bit(int nr, void *addr);
43 static inline void __change_bit(int nr, void *addr) in __change_bit() argument
45 unsigned long mask = BIT_MASK(nr); in __change_bit()
46 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __change_bit()
51 static inline int __test_and_set_bit(int nr, void *addr) in __test_and_set_bit() argument
53 unsigned long mask = BIT_MASK(nr); in __test_and_set_bit()
54 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __test_and_set_bit()
61 static inline int test_and_set_bit(int nr, void *addr) in test_and_set_bit() argument
[all …]
/external/u-boot/arch/riscv/include/asm/
Dbitops.h35 static inline void __set_bit(int nr, void *addr) in __set_bit() argument
40 a += nr >> 5; in __set_bit()
41 mask = 1 << (nr & 0x1f); in __set_bit()
47 static inline void __clear_bit(int nr, void *addr) in __clear_bit() argument
52 a += nr >> 5; in __clear_bit()
53 mask = 1 << (nr & 0x1f); in __clear_bit()
59 static inline void __change_bit(int nr, void *addr) in __change_bit() argument
64 ADDR += nr >> 5; in __change_bit()
65 mask = 1 << (nr & 31); in __change_bit()
69 static inline int __test_and_set_bit(int nr, void *addr) in __test_and_set_bit() argument
[all …]
/external/mesa3d/src/gallium/auxiliary/indices/
Du_indices.c77 unsigned nr, in u_index_translator() argument
111 *out_nr = nr; in u_index_translator()
121 *out_nr = nr; in u_index_translator()
126 *out_nr = nr; in u_index_translator()
131 *out_nr = (nr - 1) * 2; in u_index_translator()
136 *out_nr = nr * 2; in u_index_translator()
141 *out_nr = nr; in u_index_translator()
146 *out_nr = (nr - 2) * 3; in u_index_translator()
151 *out_nr = (nr - 2) * 3; in u_index_translator()
156 *out_nr = (nr / 4) * 6; in u_index_translator()
[all …]
Du_unfilled_indices.c72 unsigned nr, in generate_linear_ushort() argument
77 for (i = 0; i < nr; i++) in generate_linear_ushort()
82 unsigned nr, in generate_linear_uint() argument
87 for (i = 0; i < nr; i++) in generate_linear_uint()
98 nr_lines(enum pipe_prim_type prim, unsigned nr) in nr_lines() argument
102 return (nr / 3) * 6; in nr_lines()
104 return (nr - 2) * 6; in nr_lines()
106 return (nr - 2) * 6; in nr_lines()
108 return (nr / 4) * 8; in nr_lines()
110 return (nr - 2) / 2 * 8; in nr_lines()
[all …]
/external/linux-kselftest/tools/testing/selftests/gpio/
Dgpio-mockup-sysfs.sh7 active_low_sysfs=`cat $GPIO_SYSFS/gpio$nr/active_low`
8 val_sysfs=`cat $GPIO_SYSFS/gpio$nr/value`
9 dir_sysfs=`cat $GPIO_SYSFS/gpio$nr/direction`
11 gpio_this_debugfs=`cat $GPIO_DEBUGFS |grep "gpio-$nr" | sed "s/(.*)//g"`
38 nr=$1
43 echo $direction > $GPIO_SYSFS/gpio$nr/direction
44 echo $active_low > $GPIO_SYSFS/gpio$nr/active_low
46 echo $value > $GPIO_SYSFS/gpio$nr/value
48 is_consistent $nr
53 nr=$1
[all …]
/external/u-boot/arch/powerpc/include/asm/
Dbitops.h31 static __inline__ void set_bit(int nr, volatile void * addr) in set_bit() argument
34 unsigned long mask = 1 << (nr & 0x1f); in set_bit()
35 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in set_bit()
48 static __inline__ void clear_bit(int nr, volatile void *addr) in clear_bit() argument
51 unsigned long mask = 1 << (nr & 0x1f); in clear_bit()
52 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in clear_bit()
65 static __inline__ void change_bit(int nr, volatile void *addr) in change_bit() argument
68 unsigned long mask = 1 << (nr & 0x1f); in change_bit()
69 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in change_bit()
82 static __inline__ int test_and_set_bit(int nr, volatile void *addr) in test_and_set_bit() argument
[all …]
/external/u-boot/arch/arm/include/asm/
Dbitops.h28 extern void set_bit(int nr, volatile void * addr);
30 extern void clear_bit(int nr, volatile void * addr);
32 extern void change_bit(int nr, volatile void * addr);
34 static inline void __change_bit(int nr, volatile void *addr) in __change_bit() argument
36 unsigned long mask = BIT_MASK(nr); in __change_bit()
37 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __change_bit()
42 static inline int __test_and_set_bit(int nr, volatile void *addr) in __test_and_set_bit() argument
44 unsigned long mask = BIT_MASK(nr); in __test_and_set_bit()
45 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __test_and_set_bit()
52 static inline int test_and_set_bit(int nr, volatile void * addr) in test_and_set_bit() argument
[all …]
/external/kernel-headers/original/uapi/asm-generic/
Dioctl.h69 #define _IOC(dir,type,nr,size) \ argument
72 ((nr) << _IOC_NRSHIFT) | \
85 #define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0) argument
86 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size))) argument
87 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) argument
88 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) argument
89 #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) argument
90 #define _IOW_BAD(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) argument
91 #define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) argument
94 #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) argument
[all …]
/external/mesa3d/src/mesa/tnl_dd/
Dt_dd_dmatmp2.h75 GLuint *elts, GLuint nr ) in TAG()
80 for ( i = 0 ; i+1 < nr ; i+=2, elts += 2 ) { in TAG()
84 if (i < nr) { in TAG()
94 GLuint start, GLuint nr ) in TAG()
99 for ( i = 0 ; i+1 < nr ; i+=2, start += 2 ) { in TAG()
103 if (i < nr) { in TAG()
171 GLuint j, nr; in TAG() local
180 for (j = start; j + 1 < count; j += nr - 1 ) { in TAG()
184 nr = MIN2( dmasz, count - j ); in TAG()
185 dest = ALLOC_ELTS( (nr-1)*2 ); in TAG()
[all …]
Dt_dd_dmatmp.h74 GLuint j, nr; in TAG() local
82 for (j = 0; j < count; j += nr) { in TAG()
83 nr = MIN2(currentsz, count - j); in TAG()
84 TAG(emit_verts)(ctx, start + j, nr, ALLOC_VERTS(nr)); in TAG()
101 GLuint j, nr; in TAG() local
114 for (j = 0; j < count; j += nr) { in TAG()
115 nr = MIN2(currentsz, count - j); in TAG()
116 TAG(emit_verts)(ctx, start + j, nr, ALLOC_VERTS(nr)); in TAG()
130 GLuint j, nr; in TAG() local
138 for (j = 0; j + 1 < count; j += nr - 1) { in TAG()
[all …]
/external/u-boot/arch/nios2/include/asm/bitops/
Dnon-atomic.h15 static inline void __set_bit(int nr, volatile unsigned long *addr) in __set_bit() argument
17 unsigned long mask = BIT_MASK(nr); in __set_bit()
18 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __set_bit()
25 static inline void __clear_bit(int nr, volatile unsigned long *addr) in __clear_bit() argument
27 unsigned long mask = BIT_MASK(nr); in __clear_bit()
28 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __clear_bit()
44 static inline void __change_bit(int nr, volatile unsigned long *addr) in __change_bit() argument
46 unsigned long mask = BIT_MASK(nr); in __change_bit()
47 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __change_bit()
61 static inline int __test_and_set_bit(int nr, volatile unsigned long *addr) in __test_and_set_bit() argument
[all …]
Datomic.h65 static inline void set_bit(int nr, volatile unsigned long *addr) in set_bit() argument
67 unsigned long mask = BIT_MASK(nr); in set_bit()
68 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in set_bit()
86 static inline void clear_bit(int nr, volatile unsigned long *addr) in clear_bit() argument
88 unsigned long mask = BIT_MASK(nr); in clear_bit()
89 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in clear_bit()
107 static inline void change_bit(int nr, volatile unsigned long *addr) in change_bit() argument
109 unsigned long mask = BIT_MASK(nr); in change_bit()
110 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in change_bit()
127 static inline int test_and_set_bit(int nr, volatile unsigned long *addr) in test_and_set_bit() argument
[all …]
/external/u-boot/include/asm-generic/
Dioctl.h65 #define _IOC(dir,type,nr,size) \ argument
68 ((nr) << _IOC_NRSHIFT) | \
83 #define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0) argument
84 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size))) argument
85 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) argument
86 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) argument
87 #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) argument
88 #define _IOW_BAD(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) argument
89 #define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) argument
92 #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) argument
[all …]
/external/autotest/client/bin/input/
Dlinux_ioctl.py45 def IOC(d, t, nr, size): argument
47 (nr << _IOC_NRSHIFT) | (size << _IOC_SIZESHIFT))
50 def IO(t, nr, t_format): argument
51 return IOC(IOC_NONE, t, nr, 0)
53 def IOW(t, nr, t_format): argument
54 return IOC(IOC_WRITE, t, nr, sizeof(t_format))
56 def IOR(t, nr, t_format): argument
57 return IOC(IOC_READ, t, nr, sizeof(t_format))
59 def IOWR(t, nr, t_format): argument
60 return IOC(IOC_READ|_IOC_WRITE, t, nr, sizeof(t_format))
[all …]
/external/u-boot/include/linux/
Dbitops.h9 #define BIT(nr) (1UL << (nr)) argument
10 #define BIT_ULL(nr) (1ULL << (nr)) argument
11 #define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG)) argument
12 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) argument
13 #define BIT_ULL_MASK(nr) (1ULL << ((nr) % BITS_PER_LONG_LONG)) argument
14 #define BIT_ULL_WORD(nr) ((nr) / BITS_PER_LONG_LONG) argument
16 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long)) argument
186 static inline void generic_set_bit(int nr, volatile unsigned long *addr) in generic_set_bit() argument
188 unsigned long mask = BIT_MASK(nr); in generic_set_bit()
189 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic_set_bit()
[all …]
/external/u-boot/arch/sh/include/asm/
Dbitops.h14 static inline void set_bit(int nr, volatile void * addr) in set_bit() argument
20 a += nr >> 5; in set_bit()
21 mask = 1 << (nr & 0x1f); in set_bit()
32 static inline void clear_bit(int nr, volatile void * addr) in clear_bit() argument
38 a += nr >> 5; in clear_bit()
39 mask = 1 << (nr & 0x1f); in clear_bit()
45 static inline void change_bit(int nr, volatile void * addr) in change_bit() argument
51 a += nr >> 5; in change_bit()
52 mask = 1 << (nr & 0x1f); in change_bit()
58 static inline int test_and_set_bit(int nr, volatile void * addr) in test_and_set_bit() argument
[all …]
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pt_fetch.c67 unsigned i, nr = 0, ei = 0; in draw_pt_fetch_prepare() local
89 key.element[nr].type = TRANSLATE_ELEMENT_INSTANCE_ID; in draw_pt_fetch_prepare()
90 key.element[nr].input_format = PIPE_FORMAT_R32_USCALED; in draw_pt_fetch_prepare()
91 key.element[nr].output_format = PIPE_FORMAT_R32_USCALED; in draw_pt_fetch_prepare()
92 key.element[nr].output_offset = dst_offset; in draw_pt_fetch_prepare()
96 key.element[nr].type = TRANSLATE_ELEMENT_NORMAL; in draw_pt_fetch_prepare()
97 key.element[nr].input_format = draw->pt.vertex_element[ei].src_format; in draw_pt_fetch_prepare()
98 key.element[nr].input_buffer = draw->pt.vertex_element[ei].vertex_buffer_index; in draw_pt_fetch_prepare()
99 key.element[nr].input_offset = draw->pt.vertex_element[ei].src_offset; in draw_pt_fetch_prepare()
100 key.element[nr].instance_divisor = draw->pt.vertex_element[ei].instance_divisor; in draw_pt_fetch_prepare()
[all …]

12345678910>>...38