Home
last modified time | relevance | path

Searched refs:array (Results 1 – 25 of 31) sorted by relevance

12

/include/linux/
Dassoc_array.h54 static inline void assoc_array_init(struct assoc_array *array) in assoc_array_init() argument
56 array->root = NULL; in assoc_array_init()
57 array->nr_leaves_on_tree = 0; in assoc_array_init()
60 extern int assoc_array_iterate(const struct assoc_array *array,
64 extern void *assoc_array_find(const struct assoc_array *array,
67 extern void assoc_array_destroy(struct assoc_array *array,
69 extern struct assoc_array_edit *assoc_array_insert(struct assoc_array *array,
75 extern struct assoc_array_edit *assoc_array_delete(struct assoc_array *array,
78 extern struct assoc_array_edit *assoc_array_clear(struct assoc_array *array,
82 extern int assoc_array_gc(struct assoc_array *array,
Dskb_array.h107 struct sk_buff **array, int n) in skb_array_consume_batched() argument
109 return ptr_ring_consume_batched(&a->ring, (void **)array, n); in skb_array_consume_batched()
118 struct sk_buff **array, int n) in skb_array_consume_batched_irq() argument
120 return ptr_ring_consume_batched_irq(&a->ring, (void **)array, n); in skb_array_consume_batched_irq()
129 struct sk_buff **array, int n) in skb_array_consume_batched_any() argument
131 return ptr_ring_consume_batched_any(&a->ring, (void **)array, n); in skb_array_consume_batched_any()
141 struct sk_buff **array, int n) in skb_array_consume_batched_bh() argument
143 return ptr_ring_consume_batched_bh(&a->ring, (void **)array, n); in skb_array_consume_batched_bh()
Dgpio.h117 int gpio_request_array(const struct gpio *array, size_t num);
118 void gpio_free_array(const struct gpio *array, size_t num);
149 static inline int gpio_request_array(const struct gpio *array, size_t num) in gpio_request_array() argument
162 static inline void gpio_free_array(const struct gpio *array, size_t num) in gpio_free_array() argument
Dminmax.h188 #define __minmax_array(op, array, len) ({ \ argument
189 typeof(&(array)[0]) __array = (array); \
203 #define min_array(array, len) __minmax_array(min, array, len) argument
212 #define max_array(array, len) __minmax_array(max, array, len) argument
Dptr_ring.h307 void **array, int n) in __ptr_ring_consume_batched() argument
316 array[i] = ptr; in __ptr_ring_consume_batched()
373 void **array, int n) in ptr_ring_consume_batched() argument
378 ret = __ptr_ring_consume_batched(r, array, n); in ptr_ring_consume_batched()
385 void **array, int n) in ptr_ring_consume_batched_irq() argument
390 ret = __ptr_ring_consume_batched(r, array, n); in ptr_ring_consume_batched_irq()
397 void **array, int n) in ptr_ring_consume_batched_any() argument
403 ret = __ptr_ring_consume_batched(r, array, n); in ptr_ring_consume_batched_any()
410 void **array, int n) in ptr_ring_consume_batched_bh() argument
415 ret = __ptr_ring_consume_batched(r, array, n); in ptr_ring_consume_batched_bh()
Dlinkmode.h46 static inline void linkmode_set_bit_array(const int *array, int array_size, in linkmode_set_bit_array() argument
52 linkmode_set_bit(array[i], addr); in linkmode_set_bit_array()
Ddma-fence-unwrap.h26 struct dma_fence *array; member
Dstring_helpers.h30 int parse_int_array_user(const char __user *from, size_t count, int **array);
115 void kfree_strarray(char **array, size_t n);
Ddma-fence-array.h25 struct dma_fence_array *array; member
Dfs_parser.h127 #define fsparam_enum(NAME, OPT, array) __fsparam(fs_param_is_enum, NAME, OPT, 0, array) argument
Dmoduleparam.h514 #define module_param_array_named(name, array, type, nump, perm) \ argument
515 param_check_##type(name, &(array)[0]); \
517 = { .max = ARRAY_SIZE(array), .num = nump, \
519 .elemsize = sizeof(array[0]), .elem = array }; \
Dassoc_array_priv.h76 struct assoc_array *array; member
Dxarray.h1164 struct xarray *array; /* The array we belong to */ member
1365 #define __XA_STATE(array, index, shift, sibs) { \ argument
1366 .xa = array, \
1386 #define XA_STATE(name, array, index) \ argument
1387 struct xa_state name = __XA_STATE(array, index, 0, 0)
1400 #define XA_STATE_ORDER(name, array, index, order) \ argument
1401 struct xa_state name = __XA_STATE(array, \
Ddebugfs.h42 u32 *array; member
157 struct debugfs_u32_array *array);
348 struct debugfs_u32_array *array) in debugfs_create_u32_array() argument
Dring_buffer.h22 u32 array[]; member
25 #define RB_EVNT_HDR_SIZE (offsetof(struct ring_buffer_event, array))
Dstring.h227 int match_string(const char * const *array, size_t n, const char *string);
228 int __sysfs_match_string(const char * const *array, size_t n, const char *s);
Dbpf-cgroup.h182 struct bpf_prog_array *array; in cgroup_bpf_sock_enabled() local
184 array = rcu_access_pointer(cgrp->bpf.effective[type]); in cgroup_bpf_sock_enabled()
185 return array != &bpf_empty_prog_array.hdr; in cgroup_bpf_sock_enabled()
Dpagemap.h1408 struct page **array, unsigned int array_sz) in __readahead_batch() argument
1426 array[i++] = page; in __readahead_batch()
1447 #define readahead_page_batch(rac, array) \ argument
1448 __readahead_batch(rac, array, ARRAY_SIZE(array))
Dbpf.h1888 bool bpf_prog_array_is_empty(struct bpf_prog_array *array);
1894 int bpf_prog_array_delete_safe_at(struct bpf_prog_array *array, int index);
1895 int bpf_prog_array_update_at(struct bpf_prog_array *array, int index,
1897 int bpf_prog_array_copy_info(struct bpf_prog_array *array,
1952 bpf_prog_run_array(const struct bpf_prog_array *array, in bpf_prog_run_array() argument
1963 if (unlikely(!array)) in bpf_prog_run_array()
1970 item = &array->items[0]; in bpf_prog_run_array()
1997 const struct bpf_prog_array *array; in bpf_prog_run_array_uprobe() local
2009 array = rcu_dereference_check(array_rcu, rcu_read_lock_trace_held()); in bpf_prog_run_array_uprobe()
2010 if (unlikely(!array)) in bpf_prog_run_array_uprobe()
[all …]
/include/media/
Dv4l2-common.h410 #define v4l2_find_nearest_size(array, array_size, width_field, height_field, \ argument
413 BUILD_BUG_ON(sizeof((array)->width_field) != sizeof(u32) || \
414 sizeof((array)->height_field) != sizeof(u32)); \
415 (typeof(&(array)[0]))__v4l2_find_nearest_size( \
416 (array), array_size, sizeof(*(array)), \
417 offsetof(typeof(*(array)), width_field), \
418 offsetof(typeof(*(array)), height_field), \
422 __v4l2_find_nearest_size(const void *array, size_t array_size,
/include/sound/
Dhdaudio.h684 void *snd_array_new(struct snd_array *array);
685 void snd_array_free(struct snd_array *array);
686 static inline void snd_array_init(struct snd_array *array, unsigned int size, in snd_array_init() argument
689 array->elem_size = size; in snd_array_init()
690 array->alloc_align = align; in snd_array_init()
693 static inline void *snd_array_elem(struct snd_array *array, unsigned int idx) in snd_array_elem() argument
695 return array->list + idx * array->elem_size; in snd_array_elem()
698 static inline unsigned int snd_array_index(struct snd_array *array, void *ptr) in snd_array_index() argument
700 return (unsigned long)(ptr - array->list) / array->elem_size; in snd_array_index()
704 #define snd_array_for_each(array, idx, ptr) \ argument
[all …]
/include/linux/sunrpc/
Dxdr.h602 const __u32 *array, size_t array_size) in xdr_stream_encode_uint32_array() argument
610 for (; array_size > 0; p++, array++, array_size--) in xdr_stream_encode_uint32_array()
611 *p = cpu_to_be32p(array); in xdr_stream_encode_uint32_array()
774 __u32 *array, size_t array_size) in xdr_stream_decode_uint32_array() argument
787 if (array == NULL) in xdr_stream_decode_uint32_array()
791 memset(array+len, 0, (array_size-len)*sizeof(*array)); in xdr_stream_decode_uint32_array()
796 for (; array_size > 0; p++, array++, array_size--) in xdr_stream_decode_uint32_array()
797 *array = be32_to_cpup(p); in xdr_stream_decode_uint32_array()
/include/uapi/linux/
Dsem.h50 unsigned short __user *array; /* array for GETALL & SETALL */ member
/include/trace/stages/
Dstage3_trace_output.h115 #define __print_array(array, count, el_size) \ argument
119 trace_print_array_seq(p, array, count, el_size); \
/include/kunit/
Dtest.h371 __kunit_test_suites(__UNIQUE_ID(array), \
397 __kunit_test_suites(CONCATENATE(__UNIQUE_ID(array), _probe), \
1506 #define KUNIT_ARRAY_PARAM(name, array, get_desc) \ argument
1509 typeof((array)[0]) *__next = prev ? ((typeof(__next)) prev) + 1 : (array); \
1510 if (__next - (array) < ARRAY_SIZE((array))) { \

12