Home
last modified time | relevance | path

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

12345678910>>...25

/external/wpa_supplicant_8/src/ap/
Dneighbor_db.c21 struct hostapd_neighbor_entry *nr; in hostapd_neighbor_get() local
23 dl_list_for_each(nr, &hapd->nr_db, struct hostapd_neighbor_entry, in hostapd_neighbor_get()
25 if (os_memcmp(bssid, nr->bssid, ETH_ALEN) == 0 && in hostapd_neighbor_get()
27 (ssid->ssid_len == nr->ssid.ssid_len && in hostapd_neighbor_get()
28 os_memcmp(ssid->ssid, nr->ssid.ssid, in hostapd_neighbor_get()
30 return nr; in hostapd_neighbor_get()
36 static void hostapd_neighbor_clear_entry(struct hostapd_neighbor_entry *nr) in hostapd_neighbor_clear_entry() argument
38 wpabuf_free(nr->nr); in hostapd_neighbor_clear_entry()
39 nr->nr = NULL; in hostapd_neighbor_clear_entry()
40 wpabuf_free(nr->lci); in hostapd_neighbor_clear_entry()
[all …]
Drrm.c156 static int hostapd_check_lci_age(struct hostapd_neighbor_entry *nr, u16 max_age) in hostapd_check_lci_age() argument
161 if (nr->stationary || max_age == 0xffff) in hostapd_check_lci_age()
170 os_time_sub(&curr, &nr->lci_date, &diff); in hostapd_check_lci_age()
184 struct hostapd_neighbor_entry *nr, in hostapd_neighbor_report_len() argument
187 size_t len = 2 + wpabuf_len(nr->nr); in hostapd_neighbor_report_len()
189 if (send_lci && nr->lci) in hostapd_neighbor_report_len()
190 len += 2 + wpabuf_len(nr->lci); in hostapd_neighbor_report_len()
192 if (send_civic && nr->civic) in hostapd_neighbor_report_len()
193 len += 2 + wpabuf_len(nr->civic); in hostapd_neighbor_report_len()
204 struct hostapd_neighbor_entry *nr; in hostapd_send_nei_report_resp() local
[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/linux-kselftest/tools/testing/selftests/gpio/
Dgpio-mockup-sysfs.sh6 active_low_sysfs=`cat $GPIO_SYSFS/gpio$nr/active_low`
7 val_sysfs=`cat $GPIO_SYSFS/gpio$nr/value`
8 dir_sysfs=`cat $GPIO_SYSFS/gpio$nr/direction`
10 gpio_this_debugfs=`cat $GPIO_DEBUGFS |grep "gpio-$nr" | sed "s/(.*)//g"`
37 nr=$1
42 echo $direction > $GPIO_SYSFS/gpio$nr/direction
43 echo $active_low > $GPIO_SYSFS/gpio$nr/active_low
45 echo $value > $GPIO_SYSFS/gpio$nr/value
47 is_consistent $nr
52 nr=$1
[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/kernel-headers/original/uapi/asm-generic/
Dioctl.h65 #define _IOC(dir,type,nr,size) \ argument
68 ((nr) << _IOC_NRSHIFT) | \
76 #define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0) argument
77 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size))) argument
78 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) argument
79 #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) argument
80 #define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) argument
81 #define _IOW_BAD(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) argument
82 #define _IOWR_BAD(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) argument
85 #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/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/e2fsprogs/lib/ext2fs/
Dbitops.c34 int ext2fs_set_bit(unsigned int nr,void * addr) in ext2fs_set_bit() argument
39 ADDR += nr >> 3; in ext2fs_set_bit()
40 mask = 1 << (nr & 0x07); in ext2fs_set_bit()
46 int ext2fs_clear_bit(unsigned int nr, void * addr) in ext2fs_clear_bit() argument
51 ADDR += nr >> 3; in ext2fs_clear_bit()
52 mask = 1 << (nr & 0x07); in ext2fs_clear_bit()
58 int ext2fs_test_bit(unsigned int nr, const void * addr) in ext2fs_test_bit() argument
63 ADDR += nr >> 3; in ext2fs_test_bit()
64 mask = 1 << (nr & 0x07); in ext2fs_test_bit()
85 int ext2fs_set_bit64(__u64 nr, void * addr) in ext2fs_set_bit64() argument
[all …]
/external/libnetfilter_conntrack/include/internal/
Dbitops.h7 static inline void set_bit(int nr, uint32_t *addr) in set_bit() argument
9 addr[nr >> 5] |= (1UL << (nr & 31)); in set_bit()
12 static inline void unset_bit(int nr, uint32_t *addr) in unset_bit() argument
14 addr[nr >> 5] &= ~(1UL << (nr & 31)); in unset_bit()
17 static inline void set_bit_u16(int nr, uint16_t *addr) in set_bit_u16() argument
19 addr[nr >> 4] |= (1UL << (nr & 15)); in set_bit_u16()
22 static inline void unset_bit_u16(int nr, uint16_t *addr) in unset_bit_u16() argument
24 addr[nr >> 4] &= ~(1UL << (nr & 15)); in unset_bit_u16()
45 static inline int test_bit(int nr, const uint32_t *addr) in test_bit() argument
47 return ((1UL << (nr & 31)) & (addr[nr >> 5])) != 0; in test_bit()
/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 …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_reg.h254 unsigned nr:16; member
355 unsigned nr, in brw_reg() argument
368 assert(nr < BRW_MAX_GRF); in brw_reg()
370 assert(nr <= BRW_ARF_TIMESTAMP); in brw_reg()
383 reg.nr = nr; in brw_reg()
403 brw_vec16_reg(enum brw_reg_file file, unsigned nr, unsigned subnr) in brw_vec16_reg() argument
406 nr, in brw_vec16_reg()
420 brw_vec8_reg(enum brw_reg_file file, unsigned nr, unsigned subnr) in brw_vec8_reg() argument
423 nr, in brw_vec8_reg()
437 brw_vec4_reg(enum brw_reg_file file, unsigned nr, unsigned subnr) in brw_vec4_reg() argument
[all …]
Dbrw_vec4_reg_allocate.cpp36 reg->nr = reg_hw_locations[reg->nr] + reg->offset / REG_SIZE; in assign()
57 virtual_grf_used[inst->dst.nr] = true; in reg_allocate_trivial()
61 virtual_grf_used[inst->src[i].nr] = true; in reg_allocate_trivial()
231 ra_add_node_interference(g, inst->dst.nr, inst->src[i].nr); in reg_allocate()
311 if (inst->src[n].file == VGRF && inst->src[n].nr == scratch_reg) in can_use_scratch_for_source()
324 if (prev_inst->dst.file == VGRF && prev_inst->dst.nr == scratch_reg) { in can_use_scratch_for_source()
344 prev_inst->src[n].nr == scratch_reg) { in can_use_scratch_for_source()
401 if (inst->src[i].file == VGRF && !no_spill[inst->src[i].nr]) { in evaluate_spill_costs()
406 if (!can_use_scratch_for_source(inst, i, inst->src[i].nr)) { in evaluate_spill_costs()
407 spill_costs[inst->src[i].nr] += in evaluate_spill_costs()
[all …]
/external/libchrome/sandbox/linux/seccomp-bpf/
Dsyscall.h49 Call(int nr, T0 p0, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7) { in Call() argument
50 return Call(nr, in Call()
69 Call(int nr, T0 p0, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6) { in Call() argument
70 return Call(nr, in Call()
83 Call(int nr, T0 p0, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5) { in Call() argument
84 return Call(nr, in Call()
96 static inline intptr_t Call(int nr, T0 p0, T1 p1, T2 p2, T3 p3, T4 p4) { in Call() argument
97 return Call(nr, p0, p1, p2, p3, p4, 0, 0, 0); in Call()
101 static inline intptr_t Call(int nr, T0 p0, T1 p1, T2 p2, T3 p3) { in Call() argument
102 return Call(nr, p0, p1, p2, p3, 0, 0, 0, 0); in Call()
[all …]
/external/autotest/client/tests/linus_stress/
Dlinus_stress.c14 static void fillmem(void *start, int nr) in fillmem() argument
16 memset(start, nr, CHUNKSIZE); in fillmem()
23 static int order(int nr) in order() argument
26 if (nr < 0 || nr >= NRCHUNKS) in order()
29 if (chunkorder[i] == nr) in order()
34 static void checkmem(void *buf, int nr) in checkmem() argument
37 unsigned char c = nr, *p = buf, differs = 0; in checkmem()
50 printf("Chunk %d corrupted (%u-%u) (%u-%u) \n", nr, start, end, in checkmem()
53 printf("Written as (%d)%d(%d)\n", order(nr-1), order(nr), order(nr+1)); in checkmem()
84 int nr = chunkorder[index]; in main() local
[all …]
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_prim_vbuf.c160 sp_vbuf_draw_elements(struct vbuf_render *vbr, const ushort *indices, uint nr) in sp_vbuf_draw_elements() argument
172 for (i = 0; i < nr; i++) { in sp_vbuf_draw_elements()
179 for (i = 1; i < nr; i += 2) { in sp_vbuf_draw_elements()
187 for (i = 1; i < nr; i ++) { in sp_vbuf_draw_elements()
195 for (i = 1; i < nr; i ++) { in sp_vbuf_draw_elements()
200 if (nr) { in sp_vbuf_draw_elements()
202 get_vert(vertex_buffer, indices[nr-1], stride), in sp_vbuf_draw_elements()
208 for (i = 2; i < nr; i += 3) { in sp_vbuf_draw_elements()
218 for (i = 2; i < nr; i += 1) { in sp_vbuf_draw_elements()
228 for (i = 2; i < nr; i += 1) { in sp_vbuf_draw_elements()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_push.c92 unsigned size, nr; in emit_vertices_i08() local
94 nr = push; in emit_vertices_i08()
96 nr = prim_restart_search_i08(elts, push, ctx->restart_index); in emit_vertices_i08()
98 size = ctx->vertex_words * nr; in emit_vertices_i08()
102 ctx->translate->run_elts8(ctx->translate, elts, nr, 0, 0, ctx->push->cur); in emit_vertices_i08()
105 count -= nr; in emit_vertices_i08()
106 elts += nr; in emit_vertices_i08()
108 if (nr != push) { in emit_vertices_i08()
124 unsigned size, nr; in emit_vertices_i16() local
126 nr = push; in emit_vertices_i16()
[all …]
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_setup_vbuf.c136 lp_setup_draw_elements(struct vbuf_render *vbr, const ushort *indices, uint nr) in lp_setup_draw_elements() argument
151 for (i = 0; i < nr; i++) { in lp_setup_draw_elements()
158 for (i = 1; i < nr; i += 2) { in lp_setup_draw_elements()
166 for (i = 1; i < nr; i ++) { in lp_setup_draw_elements()
174 for (i = 1; i < nr; i ++) { in lp_setup_draw_elements()
179 if (nr) { in lp_setup_draw_elements()
181 get_vert(vertex_buffer, indices[nr-1], stride), in lp_setup_draw_elements()
187 for (i = 2; i < nr; i += 3) { in lp_setup_draw_elements()
197 for (i = 2; i < nr; i += 1) { in lp_setup_draw_elements()
207 for (i = 2; i < nr; i += 1) { in lp_setup_draw_elements()
[all …]
/external/libchrome/sandbox/linux/bpf_dsl/
Dseccomp_macros.h42 #define SECCOMP_NR_IDX (offsetof(struct arch_seccomp_data, nr))
48 #define SECCOMP_ARG_MSB_IDX(nr) (offsetof(struct arch_seccomp_data, args) + \ argument
49 8*(nr) + 4)
50 #define SECCOMP_ARG_LSB_IDX(nr) (offsetof(struct arch_seccomp_data, args) + \ argument
51 8*(nr) + 0)
104 #define SECCOMP_NR_IDX (offsetof(struct arch_seccomp_data, nr))
110 #define SECCOMP_ARG_MSB_IDX(nr) (offsetof(struct arch_seccomp_data, args) + \ argument
111 8*(nr) + 4)
112 #define SECCOMP_ARG_LSB_IDX(nr) (offsetof(struct arch_seccomp_data, args) + \ argument
113 8*(nr) + 0)
[all …]
/external/blktrace/
Dverify_blkparse.c13 int major, minor, cpu, nr, alias; in main() local
18 for (nr = 0; nr < MAX_CPUS; nr++) in main()
19 last_seq[nr] = -1; in main()
33 alias = nr = 0; in main()
42 nr++; in main()
62 fprintf(stdout, "Events %Lu: %d unordered, %d aliases\n", total_entries, nr, alias); in main()
65 return nr != 0; in main()
/external/strace/tests-m32/
Dprctl-seccomp-filter-v.c55 #define SOCK_FILTER_ALLOW_SYSCALL(nr) \ argument
56 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
59 #define SOCK_FILTER_DENY_SYSCALL(nr, err) \ argument
60 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
66 #define PRINT_ALLOW_SYSCALL(nr) \ argument
69 __NR_ ## nr)
71 #define PRINT_DENY_SYSCALL(nr, err) \ argument
74 __NR_ ## nr, err)
78 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, offsetof(struct seccomp_data, nr)),
109 (unsigned) offsetof(struct seccomp_data, nr)); in main()
/external/strace/tests/
Dprctl-seccomp-filter-v.c55 #define SOCK_FILTER_ALLOW_SYSCALL(nr) \ argument
56 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
59 #define SOCK_FILTER_DENY_SYSCALL(nr, err) \ argument
60 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
66 #define PRINT_ALLOW_SYSCALL(nr) \ argument
69 __NR_ ## nr)
71 #define PRINT_DENY_SYSCALL(nr, err) \ argument
74 __NR_ ## nr, err)
78 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, offsetof(struct seccomp_data, nr)),
109 (unsigned) offsetof(struct seccomp_data, nr)); in main()
/external/strace/tests-mx32/
Dprctl-seccomp-filter-v.c55 #define SOCK_FILTER_ALLOW_SYSCALL(nr) \ argument
56 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
59 #define SOCK_FILTER_DENY_SYSCALL(nr, err) \ argument
60 BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, __NR_ ## nr, 0, 1), \
66 #define PRINT_ALLOW_SYSCALL(nr) \ argument
69 __NR_ ## nr)
71 #define PRINT_DENY_SYSCALL(nr, err) \ argument
74 __NR_ ## nr, err)
78 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, offsetof(struct seccomp_data, nr)),
109 (unsigned) offsetof(struct seccomp_data, nr)); in main()

12345678910>>...25