Searched refs:array (Results 1 - 200 of 2723) sorted by relevance

1234567891011>>

/linux-4.4.14/sound/hda/
H A Darray.c10 * snd_array_new - get a new element from the given array
11 * @array: the array object
13 * Get a new element from the given array. If it exceeds the
14 * pre-allocated array size, re-allocate the array.
18 void *snd_array_new(struct snd_array *array) snd_array_new() argument
20 if (snd_BUG_ON(!array->elem_size)) snd_array_new()
22 if (array->used >= array->alloced) { snd_array_new()
23 int num = array->alloced + array->alloc_align; snd_array_new()
24 int size = (num + 1) * array->elem_size; snd_array_new()
28 nlist = krealloc(array->list, size, GFP_KERNEL | __GFP_ZERO); snd_array_new()
31 array->list = nlist; snd_array_new()
32 array->alloced = num; snd_array_new()
34 return snd_array_elem(array, array->used++); snd_array_new()
39 * snd_array_free - free the given array elements
40 * @array: the array object
42 void snd_array_free(struct snd_array *array) snd_array_free() argument
44 kfree(array->list); snd_array_free()
45 array->used = 0; snd_array_free()
46 array->alloced = 0; snd_array_free()
47 array->list = NULL; snd_array_free()
H A DMakefile2 hdac_regmap.o hdac_controller.o hdac_stream.o array.o
/linux-4.4.14/drivers/misc/vmw_vmci/
H A Dvmci_handle_array.c27 struct vmci_handle_arr *array; vmci_handle_arr_create() local
32 array = kmalloc(handle_arr_calc_size(capacity), GFP_ATOMIC); vmci_handle_arr_create()
33 if (!array) vmci_handle_arr_create()
36 array->capacity = capacity; vmci_handle_arr_create()
37 array->size = 0; vmci_handle_arr_create()
39 return array; vmci_handle_arr_create()
42 void vmci_handle_arr_destroy(struct vmci_handle_arr *array) vmci_handle_arr_destroy() argument
44 kfree(array); vmci_handle_arr_destroy()
50 struct vmci_handle_arr *array = *array_ptr; vmci_handle_arr_append_entry() local
52 if (unlikely(array->size >= array->capacity)) { vmci_handle_arr_append_entry()
55 size_t new_capacity = array->capacity * VMCI_ARR_CAP_MULT; vmci_handle_arr_append_entry()
58 new_array = krealloc(array, new_size, GFP_ATOMIC); vmci_handle_arr_append_entry()
63 *array_ptr = array = new_array; vmci_handle_arr_append_entry()
66 array->entries[array->size] = handle; vmci_handle_arr_append_entry()
67 array->size++; vmci_handle_arr_append_entry()
73 struct vmci_handle vmci_handle_arr_remove_entry(struct vmci_handle_arr *array, vmci_handle_arr_remove_entry() argument
79 for (i = 0; i < array->size; i++) { vmci_handle_arr_remove_entry()
80 if (vmci_handle_is_equal(array->entries[i], entry_handle)) { vmci_handle_arr_remove_entry()
81 handle = array->entries[i]; vmci_handle_arr_remove_entry()
82 array->size--; vmci_handle_arr_remove_entry()
83 array->entries[i] = array->entries[array->size]; vmci_handle_arr_remove_entry()
84 array->entries[array->size] = VMCI_INVALID_HANDLE; vmci_handle_arr_remove_entry()
93 * Handle that was removed, VMCI_INVALID_HANDLE if array was empty.
95 struct vmci_handle vmci_handle_arr_remove_tail(struct vmci_handle_arr *array) vmci_handle_arr_remove_tail() argument
99 if (array->size) { vmci_handle_arr_remove_tail()
100 array->size--; vmci_handle_arr_remove_tail()
101 handle = array->entries[array->size]; vmci_handle_arr_remove_tail()
102 array->entries[array->size] = VMCI_INVALID_HANDLE; vmci_handle_arr_remove_tail()
112 vmci_handle_arr_get_entry(const struct vmci_handle_arr *array, size_t index) vmci_handle_arr_get_entry() argument
114 if (unlikely(index >= array->size)) vmci_handle_arr_get_entry()
117 return array->entries[index]; vmci_handle_arr_get_entry()
120 bool vmci_handle_arr_has_entry(const struct vmci_handle_arr *array, vmci_handle_arr_has_entry() argument
125 for (i = 0; i < array->size; i++) vmci_handle_arr_has_entry()
126 if (vmci_handle_is_equal(array->entries[i], entry_handle)) vmci_handle_arr_has_entry()
133 * NULL if the array is empty. Otherwise, a pointer to the array
134 * of VMCI handles in the handle array.
136 struct vmci_handle *vmci_handle_arr_get_handles(struct vmci_handle_arr *array) vmci_handle_arr_get_handles() argument
138 if (array->size) vmci_handle_arr_get_handles()
139 return array->entries; vmci_handle_arr_get_handles()
H A Dvmci_handle_array.h32 void vmci_handle_arr_destroy(struct vmci_handle_arr *array);
35 struct vmci_handle vmci_handle_arr_remove_entry(struct vmci_handle_arr *array,
38 struct vmci_handle vmci_handle_arr_remove_tail(struct vmci_handle_arr *array);
40 vmci_handle_arr_get_entry(const struct vmci_handle_arr *array, size_t index);
41 bool vmci_handle_arr_has_entry(const struct vmci_handle_arr *array,
43 struct vmci_handle *vmci_handle_arr_get_handles(struct vmci_handle_arr *array);
46 const struct vmci_handle_arr *array) vmci_handle_arr_get_size()
48 return array->size; vmci_handle_arr_get_size()
45 vmci_handle_arr_get_size( const struct vmci_handle_arr *array) vmci_handle_arr_get_size() argument
/linux-4.4.14/tools/lib/lockdep/uinclude/linux/
H A Dstacktrace.h23 void *array[64]; dump_stack() local
26 size = backtrace(array, 64); dump_stack()
27 backtrace_symbols_fd(array, size, 1); dump_stack()
/linux-4.4.14/drivers/gpio/
H A Dgpiolib-legacy.c81 * @array: array of the 'struct gpio'
82 * @num: how many GPIOs in the array
84 int gpio_request_array(const struct gpio *array, size_t num) gpio_request_array() argument
88 for (i = 0; i < num; i++, array++) { gpio_request_array()
89 err = gpio_request_one(array->gpio, array->flags, array->label); gpio_request_array()
97 gpio_free((--array)->gpio); gpio_request_array()
104 * @array: array of the 'struct gpio'
105 * @num: how many GPIOs in the array
107 void gpio_free_array(const struct gpio *array, size_t num) gpio_free_array() argument
110 gpio_free((array++)->gpio); gpio_free_array()
/linux-4.4.14/kernel/bpf/
H A Darraymap.c23 struct bpf_array *array; array_map_alloc() local
41 attr->max_entries > (U32_MAX - PAGE_SIZE - sizeof(*array)) / elem_size) array_map_alloc()
44 array_size = sizeof(*array) + attr->max_entries * elem_size; array_map_alloc()
47 array = kzalloc(array_size, GFP_USER | __GFP_NOWARN); array_map_alloc()
48 if (!array) { array_map_alloc()
49 array = vzalloc(array_size); array_map_alloc()
50 if (!array) array_map_alloc()
55 array->map.key_size = attr->key_size; array_map_alloc()
56 array->map.value_size = attr->value_size; array_map_alloc()
57 array->map.max_entries = attr->max_entries; array_map_alloc()
58 array->map.pages = round_up(array_size, PAGE_SIZE) >> PAGE_SHIFT; array_map_alloc()
59 array->elem_size = elem_size; array_map_alloc()
61 return &array->map; array_map_alloc()
67 struct bpf_array *array = container_of(map, struct bpf_array, map); array_map_lookup_elem() local
70 if (index >= array->map.max_entries) array_map_lookup_elem()
73 return array->value + array->elem_size * index; array_map_lookup_elem()
79 struct bpf_array *array = container_of(map, struct bpf_array, map); array_map_get_next_key() local
83 if (index >= array->map.max_entries) { array_map_get_next_key()
88 if (index == array->map.max_entries - 1) array_map_get_next_key()
99 struct bpf_array *array = container_of(map, struct bpf_array, map); array_map_update_elem() local
106 if (index >= array->map.max_entries) array_map_update_elem()
114 memcpy(array->value + array->elem_size * index, value, map->value_size); array_map_update_elem()
127 struct bpf_array *array = container_of(map, struct bpf_array, map); array_map_free() local
132 * and free the array array_map_free()
136 kvfree(array); array_map_free()
170 struct bpf_array *array = container_of(map, struct bpf_array, map); fd_array_map_free() local
176 for (i = 0; i < array->map.max_entries; i++) fd_array_map_free()
177 BUG_ON(array->ptrs[i] != NULL); fd_array_map_free()
178 kvfree(array); fd_array_map_free()
190 struct bpf_array *array = container_of(map, struct bpf_array, map); fd_array_map_update_elem() local
197 if (index >= array->map.max_entries) fd_array_map_update_elem()
205 old_ptr = xchg(array->ptrs + index, new_ptr); fd_array_map_update_elem()
214 struct bpf_array *array = container_of(map, struct bpf_array, map); fd_array_map_delete_elem() local
218 if (index >= array->map.max_entries) fd_array_map_delete_elem()
221 old_ptr = xchg(array->ptrs + index, NULL); fd_array_map_delete_elem()
232 struct bpf_array *array = container_of(map, struct bpf_array, map); prog_fd_array_get_ptr() local
237 if (!bpf_prog_array_compatible(array, prog)) { prog_fd_array_get_ptr()
254 struct bpf_array *array = container_of(map, struct bpf_array, map); bpf_fd_array_map_clear() local
257 for (i = 0; i < array->map.max_entries; i++) bpf_fd_array_map_clear()
H A Dcore.c191 * @insn: is the array of eBPF instructions
447 struct bpf_array *array = container_of(map, struct bpf_array, map); __bpf_prog_run() local
451 if (unlikely(index >= array->map.max_entries)) __bpf_prog_run()
459 prog = READ_ONCE(array->ptrs[index]); __bpf_prog_run()
657 bool bpf_prog_array_compatible(struct bpf_array *array, bpf_prog_array_compatible() argument
660 if (!array->owner_prog_type) { bpf_prog_array_compatible()
664 array->owner_prog_type = fp->type; bpf_prog_array_compatible()
665 array->owner_jited = fp->jited; bpf_prog_array_compatible()
670 return array->owner_prog_type == fp->type && bpf_prog_array_compatible()
671 array->owner_jited == fp->jited; bpf_prog_array_compatible()
681 struct bpf_array *array; bpf_check_tail_call() local
686 array = container_of(map, struct bpf_array, map); bpf_check_tail_call()
687 if (!bpf_prog_array_compatible(array, fp)) bpf_check_tail_call()
/linux-4.4.14/drivers/md/persistent-data/
H A Ddm-array.h14 * The dm-array is a persistent version of an array. It packs the data
25 * size along with the array root in your encompassing data.
28 * Arrays are not sparse; if you resize an array to have 'n' entries then
33 * a) initialise a dm_array_info structure. This describes the array
39 * disk that holds a particular instance of an array. You may have a
41 * want to create a brand new, empty array with dm_array_empty().
45 * root for a _new_ array. If you've incremented the old root, via
49 * c) resize an array with dm_array_resize().
51 * d) Get a value from the array with dm_array_get_value().
53 * e) Set a value in the array with dm_array_set_value().
55 * f) Walk an array of values in index order with dm_array_walk(). More
58 * g) Destroy the array with dm_array_del(). This tells the transaction
65 * Describes an array. Don't initialise this structure yourself, use the
87 * Create an empty, zero length array.
89 * info - describes the array
95 * Resizes the array.
97 * info - describes the array
98 * root - the root block of the array on disk
100 * the array
102 * value - if we're growing the array the new entries will have this value
115 * Frees a whole array. The value_type's decrement operation will be called
116 * for all values in the array
121 * Lookup a value in the array
123 * info - describes the array
124 * root - root block of the array
125 * index - array index
134 * Set an entry in the array.
136 * info - describes the array
137 * root - root block of the array
138 * index - array index
153 * Walk through all the entries in an array.
155 * info - describes the array
156 * root - root block of the array
H A DMakefile3 dm-array.o \
H A Ddm-array.c7 #include "dm-array.h"
14 #define DM_MSG_PREFIX "array"
19 * The array is implemented as a fully populated btree, which points to
80 .name = "array",
88 * Functions for manipulating the array blocks.
92 * Returns a pointer to a value within an array block.
108 * in an array block.
120 * Increment every value in an array block.
131 * Decrement every value in an array block.
142 * Each array block can hold this many values.
150 * Allocate a new array block. The caller will need to unlock block.
171 * Pad an array block out with a particular value. Every instance will
195 * Remove some entries from the back of an array block. Every value
217 * Read locks a block, and coerces it to an array block. The caller must
234 * Unlocks an array block.
248 * Looks up an array block in the btree, and then read locks it.
250 * index is the index of the index of the array_block, (ie. the array index
269 * Insert an array block into the btree. The block is _not_ unlocked.
281 * Looks up an array block in the btree. Then shadows it, and updates the
335 * Allocate an new array block, and fill it with some values.
371 * There are a bunch of functions involved with resizing an array. This
377 * Describes the array.
382 * The current root of the array. This gets updated.
388 * array block.
393 * Maximum nr entries in an array block.
398 * nr of completely full blocks in the array.
406 * the array.
411 * The default value used when growing the array.
417 * Removes a consecutive set of array blocks from the btree. The values
420 * begin_index - the index of the first array block to remove.
440 * Calculates how many blocks are needed for the array.
449 * Shrink an array.
489 * Grow an array.
560 * to array blocks.
598 DMERR_LIMIT("couldn't get array block %llu", block_dec()
H A Ddm-bitset.h9 #include "dm-array.h"
15 * uses a tiny, one word cache to reduce the number of array lookups and so
18 * Like the dm-array that it's based on, the caller needs to keep track of
19 * the size of the bitset separately. The underlying dm-array implicitly
40 * root for a _new_ array. If you've incremented the old root, via
99 * old_root - the root block of the array on disk
/linux-4.4.14/include/linux/
H A Dassoc_array.h1 /* Generic associative array implementation.
24 * Generic associative array.
32 * Operations on objects and index keys for use by array manipulation routines.
58 static inline void assoc_array_init(struct assoc_array *array) assoc_array_init() argument
60 array->root = NULL; assoc_array_init()
61 array->nr_leaves_on_tree = 0; assoc_array_init()
64 extern int assoc_array_iterate(const struct assoc_array *array,
68 extern void *assoc_array_find(const struct assoc_array *array,
71 extern void assoc_array_destroy(struct assoc_array *array,
73 extern struct assoc_array_edit *assoc_array_insert(struct assoc_array *array,
79 extern struct assoc_array_edit *assoc_array_delete(struct assoc_array *array,
82 extern struct assoc_array_edit *assoc_array_clear(struct assoc_array *array,
86 extern int assoc_array_gc(struct assoc_array *array,
H A Dutil_macros.h18 * find_closest - locate the closest element in a sorted array
20 * @a: The array in which to look for the closest element. Must be sorted
29 * find_closest_descending - locate the closest element in a sorted array
31 * @a: The array in which to look for the closest element. Must be sorted
H A Dsem.h16 struct sem *sem_base; /* ptr to first semaphore in array */
18 /* that alter the array */
21 struct list_head list_id; /* undo requests on this array */
22 int sem_nsems; /* no. of semaphores in array */
H A Dgpio-fan.h29 * Speed conversion array: rpm from/to GPIO bit field.
30 * This array _must_ be sorted in ascending rpm order.
H A Dsh_dma.h54 * @slave: array of slaves
55 * @slave_num: number of slaves in the above array
56 * @channel: array of DMA channels
57 * @channel_num: number of channels in the above array
62 * @ts_shift: array of Transfer Size shifts, indexed by TS value
63 * @ts_shift_num: number of shifts in the above array
H A Detherdevice.h64 * @addr: Pointer to a six-byte array containing the Ethernet address
87 * @addr: Pointer to a six-byte array containing the Ethernet address
106 * @addr: Pointer to a six-byte array containing the Ethernet address
140 * @addr: Pointer to a six-byte array containing the Ethernet address
151 * @addr: Pointer to a six-byte array containing the Ethernet address
166 * @addr: Pointer to a six-byte array containing the Ethernet address
177 * @addr: Pointer to a six-byte array containing the Ethernet address
213 * @addr: Pointer to a six-byte array containing the Ethernet address
229 * @addr: Pointer to a six-byte array containing the Ethernet address
231 * Assign the broadcast address to the given address array.
240 * @addr: Pointer to a six-byte array containing the Ethernet address
242 * Assign the zero address to the given address array.
266 * @dst: Pointer to a six-byte array Ethernet address destination
267 * @src: Pointer to a six-byte array Ethernet address source
303 * @addr1: Pointer to a six-byte array containing the Ethernet address
304 * @addr2: Pointer other six-byte array containing the Ethernet address
327 * @addr1: Pointer to an array of 8 bytes
328 * @addr2: Pointer to an other array of 8 bytes
357 * @addr1: Pointer to a six-byte array containing the Ethernet address
358 * @addr2: Pointer other six-byte array containing the Ethernet address
376 * @addr: Pointer to a six-byte array containing the Ethernet address
H A Dring_buffer.h20 u32 array[]; member in struct:ring_buffer_event
28 * array is ignored
32 * array[0] holds the actual length
36 * array[0] = time delta (28 .. 59)
40 * array[0] = tv_nsec
41 * array[1..2] = tv_sec
47 * array[0] holds the actual length
48 * array[1..(length+3)/4] holds data
52 * array[0..(length+3)/4-1] holds data
H A Dflex_array.h14 * This is meant to replace cases where an array-like
50 * Defines a statically allocated flex array and ensures its parameters are
H A Dgpio_keys.h39 * @buttons: pointer to array of &gpio_keys_button structures
41 * @nbuttons: number of elements in @buttons array
H A Dmoduleparam.h282 * module_param_string - a char array parameter
416 * module_param_array - a parameter which is an array of some type
417 * @name: the name of the array variable
423 * don't work properly (eg. an array of charp).
426 * array, so the definition must be visible.
432 * module_param_array_named - renamed parameter which is an array of some type
434 * @array: the name of the array variable
442 #define module_param_array_named(name, array, type, nump, perm) \
443 param_check_##type(name, &(array)[0]); \
445 = { .max = ARRAY_SIZE(array), .num = nump, \
447 .elemsize = sizeof(array[0]), .elem = array }; \
452 __MODULE_PARM_TYPE(name, "array of " #type)
/linux-4.4.14/drivers/pinctrl/
H A Dpinctrl-adi2.h17 * @pins: an array of pins
18 * @num: the number of pins in this array
38 * @groups: an array of pin groups
39 * @num_groups: the number of pin groups in this array
40 * @mux: the function mux setting array, end by zero
59 * @groups: An array describing all pin groups the pin SoC supports.
61 * @pins: An array describing all pins the pin controller affects.
H A Dpinctrl-tegra.h70 * @groups: An array of pin groups that may select this function.
82 * @pins An array of pin IDs included in this pin group.
167 * @pins: An array describing all pins the pin controller affects.
169 * array, and be numbered identically to the GPIO controller's
172 * @functions: An array describing all mux functions the SoC supports.
174 * @groups: An array describing all pin groups the pin SoC supports.
/linux-4.4.14/drivers/infiniband/hw/mthca/
H A Dmthca_allocator.c113 * serialize access to the array.
118 void *mthca_array_get(struct mthca_array *array, int index) mthca_array_get() argument
122 if (array->page_list[p].page) mthca_array_get()
123 return array->page_list[p].page[index & MTHCA_ARRAY_MASK]; mthca_array_get()
128 int mthca_array_set(struct mthca_array *array, int index, void *value) mthca_array_set() argument
133 if (!array->page_list[p].page) mthca_array_set()
134 array->page_list[p].page = (void **) get_zeroed_page(GFP_ATOMIC); mthca_array_set()
136 if (!array->page_list[p].page) mthca_array_set()
139 array->page_list[p].page[index & MTHCA_ARRAY_MASK] = value; mthca_array_set()
140 ++array->page_list[p].used; mthca_array_set()
145 void mthca_array_clear(struct mthca_array *array, int index) mthca_array_clear() argument
149 if (--array->page_list[p].used == 0) { mthca_array_clear()
150 free_page((unsigned long) array->page_list[p].page); mthca_array_clear()
151 array->page_list[p].page = NULL; mthca_array_clear()
153 array->page_list[p].page[index & MTHCA_ARRAY_MASK] = NULL; mthca_array_clear()
155 if (array->page_list[p].used < 0) mthca_array_clear()
157 array, index, p, array->page_list[p].used); mthca_array_clear()
160 int mthca_array_init(struct mthca_array *array, int nent) mthca_array_init() argument
165 array->page_list = kmalloc(npage * sizeof *array->page_list, GFP_KERNEL); mthca_array_init()
166 if (!array->page_list) mthca_array_init()
170 array->page_list[i].page = NULL; mthca_array_init()
171 array->page_list[i].used = 0; mthca_array_init()
177 void mthca_array_cleanup(struct mthca_array *array, int nent) mthca_array_cleanup() argument
182 free_page((unsigned long) array->page_list[i].page); mthca_array_cleanup()
184 kfree(array->page_list); mthca_array_cleanup()
/linux-4.4.14/include/asm-generic/
H A Dtrace_clock.h9 * array in kernel/trace/trace.c
H A Dirq.h6 * in the platform. It is used to size the static irq_map array,
/linux-4.4.14/include/media/
H A Dsh_mobile_ceu.h25 struct v4l2_async_subdev **asd; /* Flat array, arranged in groups */
26 unsigned int *asd_sizes; /* 0-terminated array pf asd group sizes */
H A Dadv7343.h31 * @dac: array to configure power on/off DAC's 1..6
46 * @sd_dac_out: array configuring SD DAC Outputs 1 and 2
H A Dv4l2-of.h29 * @data_lanes: an array of physical data lane indexes
60 * @link_frequencies: array of supported link frequencies
61 * @nr_of_link_frequencies: number of elements in link_frequenccies array
H A Dv4l2-async.h23 /* A random max subdevice number, used to allocate an array on stack */
69 * @subdevs: array of pointers to subdevice descriptors
/linux-4.4.14/arch/s390/include/asm/
H A Dctl_reg.h12 #define __ctl_load(array, low, high) { \
13 typedef struct { char _[sizeof(array)]; } addrtype; \
18 : : "Q" (*(addrtype *)(&array)), "i" (low), "i" (high));\
21 #define __ctl_store(array, low, high) { \
22 typedef struct { char _[sizeof(array)]; } addrtype; \
27 : "=Q" (*(addrtype *)(&array)) \
H A Dfacility.h38 * @stfle_fac_list: array where facility list can be stored
39 * @size: size of passed in array in double words
H A Dccwdev.h37 /* scan through an array of device ids and return the first
40 * the array must end with an entry containing zero match_flags
43 ccw_device_id_match(const struct ccw_device_id *array, ccw_device_id_match() argument
46 const struct ccw_device_id *id = array; ccw_device_id_match()
48 for (id = array; id->match_flags; id++) { ccw_device_id_match()
/linux-4.4.14/tools/perf/util/
H A Devsel.c108 * PERF_SAMPLE_IDENTIFIER) in a sample event i.e. in the array of struct
1513 const u64 *array = event->sample.array; perf_evsel__parse_id_sample() local
1517 array += ((event->header.size - perf_evsel__parse_id_sample()
1521 sample->id = *array; perf_evsel__parse_id_sample()
1522 array--; perf_evsel__parse_id_sample()
1526 u.val64 = *array; perf_evsel__parse_id_sample()
1534 array--; perf_evsel__parse_id_sample()
1538 sample->stream_id = *array; perf_evsel__parse_id_sample()
1539 array--; perf_evsel__parse_id_sample()
1543 sample->id = *array; perf_evsel__parse_id_sample()
1544 array--; perf_evsel__parse_id_sample()
1548 sample->time = *array; perf_evsel__parse_id_sample()
1549 array--; perf_evsel__parse_id_sample()
1553 u.val64 = *array; perf_evsel__parse_id_sample()
1563 array--; perf_evsel__parse_id_sample()
1589 const u64 *array; perf_evsel__parse_sample() local
1612 array = event->sample.array; perf_evsel__parse_sample()
1624 data->id = *array; perf_evsel__parse_sample()
1625 array++; perf_evsel__parse_sample()
1629 data->ip = *array; perf_evsel__parse_sample()
1630 array++; perf_evsel__parse_sample()
1634 u.val64 = *array; perf_evsel__parse_sample()
1644 array++; perf_evsel__parse_sample()
1648 data->time = *array; perf_evsel__parse_sample()
1649 array++; perf_evsel__parse_sample()
1654 data->addr = *array; perf_evsel__parse_sample()
1655 array++; perf_evsel__parse_sample()
1659 data->id = *array; perf_evsel__parse_sample()
1660 array++; perf_evsel__parse_sample()
1664 data->stream_id = *array; perf_evsel__parse_sample()
1665 array++; perf_evsel__parse_sample()
1670 u.val64 = *array; perf_evsel__parse_sample()
1678 array++; perf_evsel__parse_sample()
1682 data->period = *array; perf_evsel__parse_sample()
1683 array++; perf_evsel__parse_sample()
1689 OVERFLOW_CHECK_u64(array); perf_evsel__parse_sample()
1691 data->read.group.nr = *array; perf_evsel__parse_sample()
1693 data->read.one.value = *array; perf_evsel__parse_sample()
1695 array++; perf_evsel__parse_sample()
1698 OVERFLOW_CHECK_u64(array); perf_evsel__parse_sample()
1699 data->read.time_enabled = *array; perf_evsel__parse_sample()
1700 array++; perf_evsel__parse_sample()
1704 OVERFLOW_CHECK_u64(array); perf_evsel__parse_sample()
1705 data->read.time_running = *array; perf_evsel__parse_sample()
1706 array++; perf_evsel__parse_sample()
1718 OVERFLOW_CHECK(array, sz, max_size); perf_evsel__parse_sample()
1720 (struct sample_read_value *)array; perf_evsel__parse_sample()
1721 array = (void *)array + sz; perf_evsel__parse_sample()
1723 OVERFLOW_CHECK_u64(array); perf_evsel__parse_sample()
1724 data->read.one.id = *array; perf_evsel__parse_sample()
1725 array++; perf_evsel__parse_sample()
1732 OVERFLOW_CHECK_u64(array); perf_evsel__parse_sample()
1733 data->callchain = (struct ip_callchain *)array++; perf_evsel__parse_sample()
1737 OVERFLOW_CHECK(array, sz, max_size); perf_evsel__parse_sample()
1738 array = (void *)array + sz; perf_evsel__parse_sample()
1742 OVERFLOW_CHECK_u64(array); perf_evsel__parse_sample()
1743 u.val64 = *array; perf_evsel__parse_sample()
1752 array = (void *)array + sizeof(u32); perf_evsel__parse_sample()
1754 OVERFLOW_CHECK(array, data->raw_size, max_size); perf_evsel__parse_sample()
1755 data->raw_data = (void *)array; perf_evsel__parse_sample()
1756 array = (void *)array + data->raw_size; perf_evsel__parse_sample()
1763 OVERFLOW_CHECK_u64(array); perf_evsel__parse_sample()
1764 data->branch_stack = (struct branch_stack *)array++; perf_evsel__parse_sample()
1769 OVERFLOW_CHECK(array, sz, max_size); perf_evsel__parse_sample()
1770 array = (void *)array + sz; perf_evsel__parse_sample()
1774 OVERFLOW_CHECK_u64(array); perf_evsel__parse_sample()
1775 data->user_regs.abi = *array; perf_evsel__parse_sample()
1776 array++; perf_evsel__parse_sample()
1782 OVERFLOW_CHECK(array, sz, max_size); perf_evsel__parse_sample()
1784 data->user_regs.regs = (u64 *)array; perf_evsel__parse_sample()
1785 array = (void *)array + sz; perf_evsel__parse_sample()
1790 OVERFLOW_CHECK_u64(array); perf_evsel__parse_sample()
1791 sz = *array++; perf_evsel__parse_sample()
1793 data->user_stack.offset = ((char *)(array - 1) perf_evsel__parse_sample()
1799 OVERFLOW_CHECK(array, sz, max_size); perf_evsel__parse_sample()
1800 data->user_stack.data = (char *)array; perf_evsel__parse_sample()
1801 array = (void *)array + sz; perf_evsel__parse_sample()
1802 OVERFLOW_CHECK_u64(array); perf_evsel__parse_sample()
1803 data->user_stack.size = *array++; perf_evsel__parse_sample()
1812 OVERFLOW_CHECK_u64(array); perf_evsel__parse_sample()
1813 data->weight = *array; perf_evsel__parse_sample()
1814 array++; perf_evsel__parse_sample()
1819 OVERFLOW_CHECK_u64(array); perf_evsel__parse_sample()
1820 data->data_src = *array; perf_evsel__parse_sample()
1821 array++; perf_evsel__parse_sample()
1826 OVERFLOW_CHECK_u64(array); perf_evsel__parse_sample()
1827 data->transaction = *array; perf_evsel__parse_sample()
1828 array++; perf_evsel__parse_sample()
1833 OVERFLOW_CHECK_u64(array); perf_evsel__parse_sample()
1834 data->intr_regs.abi = *array; perf_evsel__parse_sample()
1835 array++; perf_evsel__parse_sample()
1841 OVERFLOW_CHECK(array, sz, max_size); perf_evsel__parse_sample()
1843 data->intr_regs.regs = (u64 *)array; perf_evsel__parse_sample()
1844 array = (void *)array + sz; perf_evsel__parse_sample()
1961 u64 *array; perf_event__synthesize_sample() local
1969 array = event->sample.array; perf_event__synthesize_sample()
1972 *array = sample->id; perf_event__synthesize_sample()
1973 array++; perf_event__synthesize_sample()
1977 *array = sample->ip; perf_event__synthesize_sample()
1978 array++; perf_event__synthesize_sample()
1993 *array = u.val64; perf_event__synthesize_sample()
1994 array++; perf_event__synthesize_sample()
1998 *array = sample->time; perf_event__synthesize_sample()
1999 array++; perf_event__synthesize_sample()
2003 *array = sample->addr; perf_event__synthesize_sample()
2004 array++; perf_event__synthesize_sample()
2008 *array = sample->id; perf_event__synthesize_sample()
2009 array++; perf_event__synthesize_sample()
2013 *array = sample->stream_id; perf_event__synthesize_sample()
2014 array++; perf_event__synthesize_sample()
2026 *array = u.val64; perf_event__synthesize_sample()
2027 array++; perf_event__synthesize_sample()
2031 *array = sample->period; perf_event__synthesize_sample()
2032 array++; perf_event__synthesize_sample()
2037 *array = sample->read.group.nr; perf_event__synthesize_sample()
2039 *array = sample->read.one.value; perf_event__synthesize_sample()
2040 array++; perf_event__synthesize_sample()
2043 *array = sample->read.time_enabled; perf_event__synthesize_sample()
2044 array++; perf_event__synthesize_sample()
2048 *array = sample->read.time_running; perf_event__synthesize_sample()
2049 array++; perf_event__synthesize_sample()
2056 memcpy(array, sample->read.group.values, sz); perf_event__synthesize_sample()
2057 array = (void *)array + sz; perf_event__synthesize_sample()
2059 *array = sample->read.one.id; perf_event__synthesize_sample()
2060 array++; perf_event__synthesize_sample()
2066 memcpy(array, sample->callchain, sz); perf_event__synthesize_sample()
2067 array = (void *)array + sz; perf_event__synthesize_sample()
2081 *array = u.val64; perf_event__synthesize_sample()
2082 array = (void *)array + sizeof(u32); perf_event__synthesize_sample()
2084 memcpy(array, sample->raw_data, sample->raw_size); perf_event__synthesize_sample()
2085 array = (void *)array + sample->raw_size; perf_event__synthesize_sample()
2091 memcpy(array, sample->branch_stack, sz); perf_event__synthesize_sample()
2092 array = (void *)array + sz; perf_event__synthesize_sample()
2097 *array++ = sample->user_regs.abi; perf_event__synthesize_sample()
2099 memcpy(array, sample->user_regs.regs, sz); perf_event__synthesize_sample()
2100 array = (void *)array + sz; perf_event__synthesize_sample()
2102 *array++ = 0; perf_event__synthesize_sample()
2108 *array++ = sz; perf_event__synthesize_sample()
2110 memcpy(array, sample->user_stack.data, sz); perf_event__synthesize_sample()
2111 array = (void *)array + sz; perf_event__synthesize_sample()
2112 *array++ = sz; perf_event__synthesize_sample()
2117 *array = sample->weight; perf_event__synthesize_sample()
2118 array++; perf_event__synthesize_sample()
2122 *array = sample->data_src; perf_event__synthesize_sample()
2123 array++; perf_event__synthesize_sample()
2127 *array = sample->transaction; perf_event__synthesize_sample()
2128 array++; perf_event__synthesize_sample()
2133 *array++ = sample->intr_regs.abi; perf_event__synthesize_sample()
2135 memcpy(array, sample->intr_regs.regs, sz); perf_event__synthesize_sample()
2136 array = (void *)array + sz; perf_event__synthesize_sample()
2138 *array++ = 0; perf_event__synthesize_sample()
H A Dsession.h121 #define perf_session__set_tracepoints_handlers(session, array) \
122 __perf_session__set_tracepoints_handlers(session, array, ARRAY_SIZE(array))
H A Dstrbuf.h5 * Strbuf's can be use in many ways: as a byte array, or to store arbitrary
17 * 2. the ->buf member is a byte array that has at least ->len + 1 bytes
26 * ... Here, the memory array starting at sb->buf, and of length
/linux-4.4.14/lib/
H A Dbsearch.c16 * bsearch - binary search an array of elements
23 * This function does a binary search on the given array. The
24 * contents of the array should already be in ascending sorted order
28 * the array, e.g. key could be a string and the comparison function
30 * the key and elements in the array are of the same type, you can use
H A Dflex_array.c2 * Flexible array managed in PAGE_SIZE parts
36 * flex_array->parts[] array to store the user
48 * flex_array_alloc - allocate a new flexible array
49 * @element_size: the size of individual elements in the array
51 * @flags: page allocation flags to use for base array
56 * accesses any array indexes >=@total, it will produce errors.
132 * @fa: the flex array from which to free parts
182 * flex_array_put - copy data into the array at @element_nr
183 * @fa: the flex array to copy data into
186 * @src: address of data to copy into the array
187 * @flags: page allocation flags to use for array expansion
191 * the array. If you are trying to store an array of
224 * flex_array_clear - clear element in array at @element_nr
225 * @fa: the flex array of the element.
255 * flex_array_prealloc - guarantee that array space exists
256 * @fa: the flex array for which to preallocate parts
257 * @start: index of first array element for which space is allocated
264 * data into the array.
304 * flex_array_get - pull data back out of the array
305 * @fa: the flex array from which to extract data
306 * @element_nr: index of the element to fetch from the array
337 * flex_array_get_ptr - pull a ptr back out of the array
338 * @fa: the flex array from which to extract data
339 * @element_nr: index of the element to fetch from the array
341 * Returns the pointer placed in the flex array at element_nr using
369 * @fa: the flex array to shrink
H A Dsha1.c3 * and to avoid unnecessary copies into the context array.
16 * try to change the array[] accesses into registers. However, on
44 /* This "rolls" over the 512-bit array */
45 #define W(x) (array[(x)&15])
49 * the input data, the next mix it from the 512-bit array.
70 * @array: 16 words of workspace (see note)
81 void sha_transform(__u32 *digest, const char *data, __u32 *array) sha_transform() argument
109 /* Round 1 - tail. Input from 512-bit mixing array */ sha_transform()
H A Dassoc_array.c1 /* Generic associative array implementation.
20 * Iterate over an associative array. The caller must hold the RCU read lock
123 * assoc_array_iterate - Pass all objects in the array to a callback
124 * @array: The array to iterate over.
128 * Iterate over all the objects in an associative array. Each one will be
131 * If the array is being modified concurrently with the iteration then it is
132 * possible that some objects in the array will be passed to the iterator
137 * The function will return 0 if no objects were in the array or else it will
145 int assoc_array_iterate(const struct assoc_array *array, assoc_array_iterate() argument
150 struct assoc_array_ptr *root = ACCESS_ONCE(array->root); assoc_array_iterate()
182 assoc_array_walk(const struct assoc_array *array, assoc_array_walk() argument
197 cursor = ACCESS_ONCE(array->root); assoc_array_walk()
309 * @array: The associative array to search.
313 * Find an object in an associative array by walking through the internal tree
315 * there. NULL is returned if the requested object was not found in the array.
319 void *assoc_array_find(const struct assoc_array *array, assoc_array_find() argument
329 if (assoc_array_walk(array, ops, index_key, &result) != assoc_array_find()
357 * Destructively iterate over an associative array. The caller must prevent
446 * assoc_array_destroy - Destroy an associative array
447 * @array: The array to destroy.
450 * Discard all metadata and free all objects in an associative array. The
451 * array will be empty and ready to use again upon completion. This function
458 void assoc_array_destroy(struct assoc_array *array, assoc_array_destroy() argument
461 assoc_array_destroy_subtree(array->root, ops); assoc_array_destroy()
462 array->root = NULL; assoc_array_destroy()
481 edit->set[0].ptr = &edit->array->root; assoc_array_insert_in_empty_tree()
711 edit->set[0].ptr = &edit->array->root; assoc_array_insert_into_terminal_node()
857 edit->set[0].ptr = &edit->array->root; assoc_array_insert_mid_shortcut()
978 * assoc_array_insert - Script insertion of an object into an associative array
979 * @array: The array to insert into.
985 * object in an associative array. This results in an edit script that can
996 struct assoc_array_edit *assoc_array_insert(struct assoc_array *array, assoc_array_insert() argument
1016 edit->array = array; assoc_array_insert()
1021 switch (assoc_array_walk(array, ops, index_key, &result)) { assoc_array_insert()
1093 * assoc_array_delete - Script deletion of an object from an associative array
1094 * @array: The array to search.
1099 * associative array. This results in an edit script that can either be
1111 struct assoc_array_edit *assoc_array_delete(struct assoc_array *array, assoc_array_delete() argument
1128 edit->array = array; assoc_array_delete()
1132 switch (assoc_array_walk(array, ops, index_key, &result)) { assoc_array_delete()
1157 BUG_ON(array->nr_leaves_on_tree <= 0); assoc_array_delete()
1168 * internal array. assoc_array_delete()
1170 if (array->nr_leaves_on_tree == 1) { assoc_array_delete()
1171 edit->set[1].ptr = &array->root; assoc_array_delete()
1174 edit->excised_subtree = array->root; assoc_array_delete()
1262 edit->set[1].ptr = &array->root; assoc_array_delete()
1289 * assoc_array_clear - Script deletion of all objects from an associative array
1290 * @array: The array to clear.
1294 * from an associative array. This results in an edit script that can either
1298 * deleted, NULL if there are no objects in the array or -ENOMEM.
1306 struct assoc_array_edit *assoc_array_clear(struct assoc_array *array, assoc_array_clear() argument
1313 if (!array->root) assoc_array_clear()
1319 edit->array = array; assoc_array_clear()
1321 edit->set[1].ptr = &array->root; assoc_array_clear()
1323 edit->excised_subtree = array->root; assoc_array_clear()
1365 * assoc_array_apply_edit - Apply an edit script to an associative array
1368 * Apply an edit script to an associative array to effect an insertion,
1374 * accesses on the array to continue to do so under the RCU read lock whilst
1405 if (edit->array->root == NULL) { assoc_array_apply_edit()
1406 edit->array->nr_leaves_on_tree = 0; assoc_array_apply_edit()
1425 edit->array->nr_leaves_on_tree += edit->adjust_count_by; assoc_array_apply_edit()
1436 * any changes to the associative array it was intended for.
1462 * assoc_array_gc - Garbage collect an associative array.
1463 * @array: The array to clean.
1468 * Collect garbage from an associative array and pack down the internal tree to
1472 * array. If it returns false, the object is discard and if it returns true,
1477 * latter case, the array is not changed.
1485 int assoc_array_gc(struct assoc_array *array, assoc_array_gc() argument
1500 if (!array->root) assoc_array_gc()
1506 edit->array = array; assoc_array_gc()
1509 edit->set[0].ptr = &array->root; assoc_array_gc()
1510 edit->excised_subtree = array->root; assoc_array_gc()
1514 cursor = array->root; assoc_array_gc()
1743 array->nr_leaves_on_tree = nr_leaves_on_tree; assoc_array_gc()
H A Dargv_split.c2 * Helper function for splitting a string into an argv-like array.
48 * Returns an array of pointers to strings which are split out from
51 * considered to be a single argument separator. The returned array
H A Datomic64.c20 * We use a hashed array of spinlocks to provide exclusive access
23 * relatively small array of 16 spinlocks to avoid wasting too much
24 * memory on the spinlock array.
H A Dcmdline.c22 * the values[M, M+1, ..., N] into the ints array in get_options.
75 * @nints: size of integer array
76 * @ints: integer array
80 * or a combination of both. The parse halts when the array is
H A Dsort.c43 * sort - sort an array of elements
50 * This function does a heapsort on the given array. You may provide a
H A Dtest_rhashtable.c66 static struct test_obj array[MAX_ENTRIES]; variable in typeref:struct:test_obj
88 if (array[i / 2].value == TEST_INSERT_FAIL) test_rht_lookup()
170 struct test_obj *obj = &array[i]; test_rhashtable()
201 if (array[i].value != TEST_INSERT_FAIL) { test_rhashtable()
324 memset(&array, 0, sizeof(array)); test_rht_init()
/linux-4.4.14/include/linux/platform_data/
H A Ddma-imx-sdma.h46 /* End of v1 array */
50 /* End of v2 array */
53 /* End of v3 array */
H A Dcamera-mx3.h48 struct v4l2_async_subdev **asd; /* Flat array, arranged in groups */
49 int *asd_sizes; /* 0-terminated array of asd group sizes */
H A Dsimplefb.h19 /* format array, use it to initialize a "struct simplefb_format" array */
H A Ddma-s3c24xx.h36 * @channels: array of virtual channel descriptions
H A Ddma-ep93xx.h58 * @channels: array of channels which are passed to the driver
59 * @num_channels: number of channels in the array
H A Dsi5351.h104 * @pll_src: array of pll source clock setting
105 * @clkout: array of clkout configuration
/linux-4.4.14/drivers/irqchip/
H A Dirqchip.c18 * of_device_id[] array of all irqchips. It is automatically placed at
19 * the end of the array by the linker, thanks to being part of a
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
H A Dcalib.h36 #define STATIC_INI_ARRAY(array) { \
37 .ia_array = (u32 *)(array), \
38 .ia_rows = ARRAY_SIZE(array), \
39 .ia_columns = ARRAY_SIZE(array[0]), \
42 #define INIT_INI_ARRAY(iniarray, array) do { \
43 (iniarray)->ia_array = (u32 *)(array); \
44 (iniarray)->ia_rows = ARRAY_SIZE(array); \
45 (iniarray)->ia_columns = ARRAY_SIZE(array[0]); \
/linux-4.4.14/include/uapi/linux/
H A Dsem.h27 struct sem *sem_base; /* ptr to first semaphore in array */
30 struct sem_undo *undo; /* undo requests on this array */
31 unsigned short sem_nsems; /* no. of semaphores in array */
37 /* semop system calls takes an array of these. */
39 unsigned short sem_num; /* semaphore index in array */
48 unsigned short __user *array; /* array for GETALL & SETALL */ member in union:semun
74 * allocating the sop array.
H A Datmapi.h20 * the struct in order hide the array, so that we can make simple assignments
H A Dfiemap.h34 __u32 fm_extent_count; /* size of fm_extents array (in) */
36 struct fiemap_extent fm_extents[0]; /* array of mapped extents (out) */
/linux-4.4.14/arch/arm/include/asm/
H A Ddma-iommu.h16 unsigned long **bitmaps; /* array of bitmaps */
17 unsigned int nr_bitmaps; /* nr of elements in array */
/linux-4.4.14/arch/tile/lib/
H A Dmemchr_32.c29 /* Don't dereference any memory if the array is empty. */ memchr()
40 /* Read the first word, but munge it so that bytes before the array memchr()
57 /* We already read the last word in the array, memchr()
66 * of the array. memchr()
H A Dmemchr_64.c30 /* Don't dereference any memory if the array is empty. */ memchr()
41 /* Read the first word, but munge it so that bytes before the array memchr()
55 /* We already read the last word in the array, memchr()
64 * of the array. memchr()
/linux-4.4.14/include/media/davinci/
H A Dvpif_types.h62 struct v4l2_async_subdev **asd; /* Flat array, arranged in groups */
63 int *asd_sizes; /* 0-terminated array of asd group sizes */
86 struct v4l2_async_subdev **asd; /* Flat array, arranged in groups */
87 int *asd_sizes; /* 0-terminated array of asd group sizes */
/linux-4.4.14/arch/s390/include/asm/fpu/
H A Dtypes.h22 /* VX array structure for address operand constraints in inline assemblies */
/linux-4.4.14/include/linux/i2c/
H A Dmpr121_touchkey.h8 * @keymap: pointer to array of KEY_* values representing keymap
/linux-4.4.14/drivers/target/iscsi/
H A Discsi_target_seq_pdu_list.c101 * Generate count random values into array.
102 * Use 0x80000000 to mark generates valued in array[].
104 static void iscsit_create_random_array(u32 *array, u32 count) iscsit_create_random_array() argument
109 array[0] = 0; iscsit_create_random_array()
119 if ((array[k] & 0x80000000) && (array[k] == j)) iscsit_create_random_array()
122 array[i] = j; iscsit_create_random_array()
126 array[i] &= ~0x80000000; iscsit_create_random_array()
134 u32 *array, pdu_count, seq_count = 0, seq_no = 0, seq_offset = 0; iscsit_randomize_pdu_lists() local
142 array = kcalloc(seq_count, sizeof(u32), GFP_KERNEL); iscsit_randomize_pdu_lists()
143 if (!array) { iscsit_randomize_pdu_lists()
145 " for random array.\n"); iscsit_randomize_pdu_lists()
148 iscsit_create_random_array(array, seq_count); iscsit_randomize_pdu_lists()
151 cmd->pdu_list[seq_offset+i].pdu_send_order = array[i]; iscsit_randomize_pdu_lists()
153 kfree(array); iscsit_randomize_pdu_lists()
162 array = kcalloc(seq_count, sizeof(u32), GFP_KERNEL); iscsit_randomize_pdu_lists()
163 if (!array) { iscsit_randomize_pdu_lists()
165 " random array.\n"); iscsit_randomize_pdu_lists()
168 iscsit_create_random_array(array, seq_count); iscsit_randomize_pdu_lists()
171 cmd->pdu_list[seq_offset+i].pdu_send_order = array[i]; iscsit_randomize_pdu_lists()
173 kfree(array); iscsit_randomize_pdu_lists()
184 u32 *array, seq_count = cmd->seq_count; iscsit_randomize_seq_lists() local
194 array = kcalloc(seq_count, sizeof(u32), GFP_KERNEL); iscsit_randomize_seq_lists()
195 if (!array) { iscsit_randomize_seq_lists()
196 pr_err("Unable to allocate memory for random array.\n"); iscsit_randomize_seq_lists()
199 iscsit_create_random_array(array, seq_count); iscsit_randomize_seq_lists()
204 cmd->seq_list[i].seq_send_order = array[j++]; iscsit_randomize_seq_lists()
207 kfree(array); iscsit_randomize_seq_lists()
/linux-4.4.14/drivers/media/usb/gspca/stv06xx/
H A Dstv06xx_hdcs.c74 /* visible area of the sensor array */
79 } array; member in struct:hdcs
300 if (width > hdcs->array.width) hdcs_set_size()
301 width = hdcs->array.width; hdcs_set_size()
305 if (height + 2 * hdcs->array.border + HDCS_1020_BOTTOM_Y_SKIP hdcs_set_size()
306 > hdcs->array.height) hdcs_set_size()
307 height = hdcs->array.height - 2 * hdcs->array.border - hdcs_set_size()
310 y = (hdcs->array.height - HDCS_1020_BOTTOM_Y_SKIP - height) / 2 hdcs_set_size()
311 + hdcs->array.top; hdcs_set_size()
313 if (height > hdcs->array.height) hdcs_set_size()
314 height = hdcs->array.height; hdcs_set_size()
316 y = hdcs->array.top + (hdcs->array.height - height) / 2; hdcs_set_size()
319 x = hdcs->array.left + (hdcs->array.width - width) / 2; hdcs_set_size()
388 hdcs->array.left = 8; hdcs_probe_1x00()
389 hdcs->array.top = 8; hdcs_probe_1x00()
390 hdcs->array.width = HDCS_1X00_DEF_WIDTH; hdcs_probe_1x00()
391 hdcs->array.height = HDCS_1X00_DEF_HEIGHT; hdcs_probe_1x00()
392 hdcs->array.border = 4; hdcs_probe_1x00()
450 hdcs->array.left = 24; hdcs_probe_1020()
451 hdcs->array.top = 4; hdcs_probe_1020()
452 hdcs->array.width = HDCS_1020_DEF_WIDTH; hdcs_probe_1020()
453 hdcs->array.height = 304; hdcs_probe_1020()
454 hdcs->array.border = 4; hdcs_probe_1020()
530 return hdcs_set_size(sd, hdcs->array.width, hdcs->array.height); hdcs_init()
/linux-4.4.14/drivers/pinctrl/freescale/
H A Dpinctrl-imx.h40 * @npins: the number of pins in this group array, i.e. the number of
41 * elements in .pins so we can iterate over that array
42 * @pin_ids: array of pin_ids. pinctrl forces us to maintain such an array
43 * @pins: array of pins
H A Dpinctrl-imx1.h35 * @pins: an array of imx1_pin structs used in this group
36 * @npins: the number of pins in this group array, i.e. the number of
37 * elements in .pins so we can iterate over that array
/linux-4.4.14/arch/arm/plat-samsung/
H A Dpm-common.c25 * @ptr: Pointer to an array of registers.
26 * @count: Size of the ptr array.
29 * array for later restoration when we wakeup.
41 * @ptr: Pointer to an array of registers.
42 * @count: Size of the ptr array.
/linux-4.4.14/drivers/pinctrl/nomadik/
H A Dpinctrl-nomadik.h86 * @altcx: array of other alternate-C[1-4] functions
96 * @groups: An array of pin groups that may select this function.
108 * @pins: an array of discrete physical pins used in this group, taken
110 * @num_pins: the number of pins in this group array, i.e. the number of
111 * elements in .pins so we can iterate over that array
124 * @pins: An array describing all pins the pin controller affects.
126 * array, and be numbered identically to the GPIO controller's
131 * @groups: An array describing all pin groups the pin SoC supports.
135 * @prcm_gpiocr_registers: The array of PRCM GPIOCR registers on this SoC
H A Dpinctrl-abx500.h33 * @groups: An array of pin groups that may select this function.
45 * @pins: an array of discrete physical pins used in this group, taken
47 * @num_pins: the number of pins in this group array, i.e. the number of
48 * elements in .pins so we can iterate over that array
151 * @gpio_ranges: An array of GPIO ranges for this SoC
153 * @pins: An array describing all pins the pin controller affects.
155 * array, and be numbered identically to the GPIO controller's
160 * @groups: An array describing all pin groups the pin SoC supports.
162 * @alternate_functions: array describing pins which supports alternate and
164 * @pullud: array describing pins which supports pull up/down
166 * @gpio_irq_cluster: An array of GPIO interrupt capable for this SoC
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_bo_list.c57 (*result)->array = NULL; amdgpu_bo_list_create()
86 struct amdgpu_bo_list_entry *array; amdgpu_bo_list_set() local
94 array = drm_malloc_ab(num_entries, sizeof(struct amdgpu_bo_list_entry)); amdgpu_bo_list_set()
95 if (!array) amdgpu_bo_list_set()
97 memset(array, 0, num_entries * sizeof(struct amdgpu_bo_list_entry)); amdgpu_bo_list_set()
100 struct amdgpu_bo_list_entry *entry = &array[i]; amdgpu_bo_list_set()
133 amdgpu_bo_unref(&list->array[i].robj); amdgpu_bo_list_set()
135 drm_free_large(list->array); amdgpu_bo_list_set()
141 list->array = array; amdgpu_bo_list_set()
147 drm_free_large(array); amdgpu_bo_list_set()
174 amdgpu_bo_unref(&list->array[i].robj); amdgpu_bo_list_free()
177 drm_free_large(list->array); amdgpu_bo_list_free()
202 /* copy the handle array from userspace to a kernel buffer */ amdgpu_bo_list_ioctl()
H A Damdgpu_ucode.h42 uint32_t io_debug_size_bytes; /* size of debug array in dwords */
83 uint32_t reg_list_format_size_bytes; /* size of reg list format array in bytes */
85 uint32_t reg_list_size_bytes; /* size of reg list array in bytes */
87 uint32_t reg_list_format_separate_size_bytes; /* size of reg list format array in bytes */
89 uint32_t reg_list_separate_size_bytes; /* size of reg list array in bytes */
/linux-4.4.14/fs/ntfs/
H A Drunlist.h32 * runlist_element - in memory vcn to lcn mapping array element
33 * @vcn: starting vcn of the current array element
34 * @lcn: starting lcn of the current array element
35 * @length: length in clusters of the current array element
49 * runlist - in memory vcn to lcn mapping array including a read/write lock
50 * @rl: pointer to an array of runlist elements
H A Dmst.c37 * NOTE: We consider the absence / invalidity of an update sequence array to
57 /* Position of usn in update sequence array. */ post_read_mst_fixup()
113 * NOTE: We consider the absence / invalidity of an update sequence array to
116 * array header in the ntfs record before calling this function, otherwise it
118 * array together with the number of elements in the array). You also need to
143 /* Position of usn in update sequence array. */ pre_write_mst_fixup()
186 /* Position of usn in update sequence array. */ post_write_mst_fixup()
H A Dlogfile.h39 * except for the update sequence array which usually has a different update
104 * in this particular client array. Also inside the client records themselves,
134 /* 8*/ le16 log_clients; /* Number of log client records in the array of
138 in the array of log client records.
140 free log client records in the array.
154 record in the array of log client records.
156 in-use log client records in the array. If
193 client array. Following checks required if
219 the client array. This probably means that
249 sequence array of the log record page. */
275 in the array of log client records.
280 the array of log client records.
/linux-4.4.14/drivers/scsi/isci/
H A Dunsolicited_frame_control.c85 uf_control->headers.array = virt + SCI_UFI_BUF_SIZE; sci_unsolicited_frame_control_construct()
95 uf_control->address_table.array = virt + SCI_UFI_BUF_SIZE + SCI_UFI_HDR_SIZE; sci_unsolicited_frame_control_construct()
107 * the controller's array of UFs. sci_unsolicited_frame_control_construct()
110 uf = &uf_control->buffers.array[i]; sci_unsolicited_frame_control_construct()
112 uf_control->address_table.array[i] = dma; sci_unsolicited_frame_control_construct()
115 uf->header = &uf_control->headers.array[i]; sci_unsolicited_frame_control_construct()
136 *frame_header = &uf_control->buffers.array[frame_index].header->data; sci_unsolicited_frame_control_get_header()
149 *frame_buffer = uf_control->buffers.array[frame_index].buffer; sci_unsolicited_frame_control_get_buffer()
171 while (lower_32_bits(uf_control->address_table.array[frame_get]) == 0 && sci_unsolicited_frame_control_release_frame()
172 upper_32_bits(uf_control->address_table.array[frame_get]) == 0 && sci_unsolicited_frame_control_release_frame()
184 uf_control->buffers.array[frame_index].state = UNSOLICITED_FRAME_RELEASED; sci_unsolicited_frame_control_release_frame()
198 while (uf_control->buffers.array[frame_get].state == UNSOLICITED_FRAME_RELEASED) { sci_unsolicited_frame_control_release_frame()
199 uf_control->buffers.array[frame_get].state = UNSOLICITED_FRAME_EMPTY; sci_unsolicited_frame_control_release_frame()
H A Dunsolicited_frame_control.h172 struct scu_unsolicited_frame_header *array; member in struct:sci_uf_header_array
176 * buffer array.
195 struct sci_unsolicited_frame array[SCU_MAX_UNSOLICITED_FRAMES]; member in struct:sci_uf_buffer_array
199 * buffer array.
217 u64 *array; member in struct:sci_uf_address_table_array
/linux-4.4.14/drivers/misc/altera-stapl/
H A Daltera.c359 * bit 3: 0 = scalar, 1 = array altera_execute()
369 /* initialized compressed Boolean array */ altera_execute()
393 /* initialized Boolean array */ altera_execute()
396 /* initialized integer array */ altera_execute()
399 /* uninitialized array */ altera_execute()
408 /* integer array */ altera_execute()
411 /* Boolean array */ altera_execute()
1121 * Pop stack into integer array element altera_execute()
1123 * ...stack 0 is array index altera_execute()
1132 * convert to writable array altera_execute()
1136 /* Allocate a writable buffer for this array */ altera_execute()
1167 /* check that variable is a writable integer array */ altera_execute()
1173 /* pop the array index */ altera_execute()
1176 /* pop the value and store it into the array */ altera_execute()
1183 * Pop stack into Boolean array altera_execute()
1186 * ...stack 1 is array index altera_execute()
1195 * convert to writable array altera_execute()
1199 /* Allocate a writable buffer for this array */ altera_execute()
1246 * a writable Boolean array altera_execute()
1258 /* pop the array index */ altera_execute()
1265 * stack 0 = array right index altera_execute()
1266 * stack 1 = array left index altera_execute()
1326 * ...stack 0 is array index altera_execute()
1336 * stack 0 = array right index altera_execute()
1337 * stack 1 = array left index altera_execute()
1393 * DRPRE with array data altera_execute()
1395 * ...stack 0 is array index altera_execute()
1405 * stack 0 = array right index altera_execute()
1406 * stack 1 = array left index altera_execute()
1416 * DRPOST with array data altera_execute()
1418 * ...stack 0 is array index altera_execute()
1428 * stack 0 = array right index altera_execute()
1429 * stack 1 = array left index altera_execute()
1439 * IRPRE with array data altera_execute()
1441 * ...stack 0 is array index altera_execute()
1451 * stack 0 = array right index altera_execute()
1452 * stack 1 = array left index altera_execute()
1463 * IRPOST with array data altera_execute()
1465 * ...stack 0 is array index altera_execute()
1475 * stack 0 = array right index altera_execute()
1476 * stack 1 = array left index altera_execute()
1499 * Push integer array element altera_execute()
1501 * ...stack 0 is array index altera_execute()
1510 /* writable integer array */ altera_execute()
1514 /* read-only integer array */ altera_execute()
1525 * Push Boolean array altera_execute()
1528 * ...stack 1 is array index altera_execute()
1534 /* check that variable is a Boolean array */ altera_execute()
1545 /* pop the array index */ altera_execute()
1550 * stack 0 = array right index altera_execute()
1551 * stack 1 = array left index altera_execute()
1572 * Dynamically change size of array altera_execute()
1585 /* allocate integer array */ altera_execute()
1588 /* allocate Boolean array */ altera_execute()
1631 * Export Boolean array altera_execute()
1634 * ...stack 1 is array right index altera_execute()
1635 * ...stack 2 is array left index altera_execute()
1771 * If destination is a read-only array, altera_execute()
1772 * allocate a buffer and convert it to a writable array altera_execute()
1777 /* Allocate a writable buffer for this array */ altera_execute()
1820 /* check if destination is a writable Boolean array */ altera_execute()
1892 * If capture array is read-only, allocate a buffer altera_execute()
1893 * and convert it to a writable array altera_execute()
1898 /* Allocate a writable buffer for this array */ altera_execute()
1952 * check that capture array altera_execute()
1953 * is a writable Boolean array altera_execute()
/linux-4.4.14/drivers/net/ethernet/cisco/enic/
H A Dvnic_rss.h22 /* RSS key array */
36 /* RSS cpu array */
/linux-4.4.14/arch/s390/include/uapi/asm/
H A Dhypfs.h36 __u64 count; /* Number of entries (CPUs) in diag0c array */
51 struct hypfs_diag0c_entry entry[]; /* diag0c entry array */
H A Dsembuf.h24 unsigned long sem_nsems; /* no. of semaphores in array */
H A Dkvm_virtio.h21 /* The number of virtqueues (first in config array) */
28 /* The number of bytes of the config array after virtqueues. */
/linux-4.4.14/tools/perf/
H A Dperf-completion.sh192 local -a array
199 array[${#array[@]}+1]="$c"
203 compadd -Q -S '' -a -- array && _ret=0
212 local -a array
223 array[$#array+1]=${c#"$colon_word"}
227 compadd -Q -S '' -a -- array && _ret=0
/linux-4.4.14/drivers/net/wireless/mwifiex/
H A Dutil.h47 char name[32]; /* variable/array name */
48 u32 size; /* size of the variable/array */
49 size_t addr; /* address of the variable/array */
50 int num; /* number of variables in an array */
/linux-4.4.14/arch/x86/include/uapi/asm/
H A Dsembuf.h19 __kernel_ulong_t sem_nsems; /* no. of semaphores in array */
/linux-4.4.14/arch/alpha/include/uapi/asm/
H A Dsembuf.h17 unsigned long sem_nsems; /* no. of semaphores in array */
/linux-4.4.14/samples/trace_events/
H A Dtrace-events-sample.c23 int array[6]; simple_thread_func() local
31 array[i] = i + 1; simple_thread_func()
32 array[i] = 0; simple_thread_func()
35 trace_foo_bar("hello", cnt, array, random_strings[len], simple_thread_func()
H A Dtrace-events-sample.h89 * but not an array). Be careful using complex types, as each
98 * type of elements in teh array, the name is the name of the array.
99 * size is the number of items in the array (not the total size).
103 * Assigning arrays can be done like any array:
109 * __dynamic_array: This is similar to array, but can vary its size from
112 * type is the type of the element, name is the name of the array.
114 * but the algorithm to figure out the length of the array for the
116 * items in the array, not the total length in bytes.
121 * to access the array.
128 * have a nul terminated character array passed to it (it allows
144 * an array of longs, and the number of bits to parse. It takes
170 * Use __get_dynamic_array_len(foo) to get the length of the array
172 * length of the dynamic array; __print_array() expects the second
173 * parameter to be the number of elements. To get that, the array length
289 * __print_array( array, len, element_size )
291 * This prints out the array that is defined by __array in a nice format.
/linux-4.4.14/fs/proc/
H A DMakefile10 proc-y += inode.o root.o base.o generic.o array.o \
/linux-4.4.14/include/linux/spi/
H A Dspi_oc_tiny.h9 * @gpio_cs: array of gpio pins used for chipselect.
H A Dxilinx_spi.h10 * @num_devices: Number of devices in the devices array.
H A Dflash.h9 * @parts: optional array of mtd_partitions for static partitioning
/linux-4.4.14/arch/mips/include/uapi/asm/
H A Dsembuf.h17 unsigned long sem_nsems; /* no. of semaphores in array */
/linux-4.4.14/arch/mn10300/include/uapi/asm/
H A Dsembuf.h20 unsigned long sem_nsems; /* no. of semaphores in array */
/linux-4.4.14/arch/frv/include/uapi/asm/
H A Dsembuf.h20 unsigned long sem_nsems; /* no. of semaphores in array */
/linux-4.4.14/arch/ia64/include/uapi/asm/
H A Dsembuf.h17 unsigned long sem_nsems; /* no. of semaphores in array */
/linux-4.4.14/arch/m32r/include/uapi/asm/
H A Dsembuf.h20 unsigned long sem_nsems; /* no. of semaphores in array */
/linux-4.4.14/arch/avr32/include/uapi/asm/
H A Dsembuf.h20 unsigned long sem_nsems; /* no. of semaphores in array */
/linux-4.4.14/sound/firewire/
H A Dpackets-buffer.h10 * @packets: an array, with each element pointing to one packet
/linux-4.4.14/drivers/net/ethernet/qlogic/qed/
H A Dqed_init_ops.h42 * @brief qed_init_hwfn_allocate - Allocate RT array, Store 'values' ptrs.
60 * @brief qed_init_clear_rt_data - Clears the runtime init array.
68 * @brief qed_init_store_rt_reg - Store a configuration value in the RT array.
/linux-4.4.14/arch/blackfin/include/asm/
H A Dsyscall.h62 * @args: array to return the syscall arguments in
73 * array in memory to store into the args array. syscall_get_arguments()
/linux-4.4.14/arch/arm/mach-shmobile/
H A Dheadsmp.S53 adr r5, 1f @ array of per-cpu mpidr values
54 adr r6, 2f @ array of per-cpu functions
55 adr r7, 3f @ array of per-cpu arguments
/linux-4.4.14/include/linux/input/
H A Dgpio_tilt.h23 * @axes: array containing the axes settings for the gpio state
24 * The array indizes must correspond to the axes defined
31 * from the gpios-array defined in gpio_regulator_config below.
H A Dmatrix_keypad.h23 * @keymap: pointer to array of uint32 values encoded with KEY() macro
38 * @row_gpios: pointer to array of gpio numbers representing rows
39 * @col_gpios: pointer to array of gpio numbers reporesenting colums
/linux-4.4.14/drivers/md/bcache/
H A Dutil.h243 * Simple array based allocator - preallocates a number of elements and you can
260 #define array_alloc(array) \
262 typeof((array)->freelist) _ret = (array)->freelist; \
265 (array)->freelist = *((typeof((array)->freelist) *) _ret);\
270 #define array_free(array, ptr) \
272 typeof((array)->freelist) _ptr = ptr; \
274 *((typeof((array)->freelist) *) _ptr) = (array)->freelist; \
275 (array)->freelist = _ptr; \
278 #define array_allocator_init(array) \
280 typeof((array)->freelist) _i; \
282 BUILD_BUG_ON(sizeof((array)->data[0]) < sizeof(void *)); \
283 (array)->freelist = NULL; \
285 for (_i = (array)->data; \
286 _i < (array)->data + ARRAY_SIZE((array)->data); \
288 array_free(array, _i); \
291 #define array_freelist_empty(array) ((array)->freelist == NULL)
/linux-4.4.14/drivers/base/
H A Dproperty.c144 * device_property_read_u8_array - return a u8 array property of a device
148 * @nval: Size of the @val array
150 * Function reads an array of u8 properties with @propname from the device
157 * %-EPROTO if the property is not an array of numbers,
169 * device_property_read_u16_array - return a u16 array property of a device
173 * @nval: Size of the @val array
175 * Function reads an array of u16 properties with @propname from the device
182 * %-EPROTO if the property is not an array of numbers,
194 * device_property_read_u32_array - return a u32 array property of a device
198 * @nval: Size of the @val array
200 * Function reads an array of u32 properties with @propname from the device
207 * %-EPROTO if the property is not an array of numbers,
219 * device_property_read_u64_array - return a u64 array property of a device
223 * @nval: Size of the @val array
225 * Function reads an array of u64 properties with @propname from the device
232 * %-EPROTO if the property is not an array of numbers,
244 * device_property_read_string_array - return a string array property of device
248 * @nval: Size of the @val array
250 * Function reads an array of string properties with @propname from the device
257 * %-EPROTO or %-EILSEQ if the property is not an array of strings,
291 * device_property_match_string - find a string in an array and return index
293 * @propname: Name of the property holding the array
296 * Find a given string in a string array and if it is found return the
302 * %-EPROTO if the property is not an array of strings,
334 * fwnode_property_read_u8_array - return a u8 array property of firmware node
338 * @nval: Size of the @val array
340 * Read an array of u8 properties with @propname from @fwnode and stores them to
347 * %-EPROTO if the property is not an array of numbers,
360 * fwnode_property_read_u16_array - return a u16 array property of firmware node
364 * @nval: Size of the @val array
366 * Read an array of u16 properties with @propname from @fwnode and store them to
373 * %-EPROTO if the property is not an array of numbers,
386 * fwnode_property_read_u32_array - return a u32 array property of firmware node
390 * @nval: Size of the @val array
392 * Read an array of u32 properties with @propname from @fwnode store them to
399 * %-EPROTO if the property is not an array of numbers,
412 * fwnode_property_read_u64_array - return a u64 array property firmware node
416 * @nval: Size of the @val array
418 * Read an array of u64 properties with @propname from @fwnode and store them to
425 * %-EPROTO if the property is not an array of numbers,
438 * fwnode_property_read_string_array - return string array property of a node
442 * @nval: Size of the @val array
451 * %-EPROTO if the property is not an array of strings,
504 * fwnode_property_match_string - find a string in an array and return index
506 * @propname: Name of the property holding the array
509 * Find a given string in a string array and if it is found return the
515 * %-EPROTO if the property is not an array of strings,
/linux-4.4.14/net/8021q/
H A Dvlan.h55 struct net_device **array; __vlan_group_get_device() local
57 array = vg->vlan_devices_arrays[pidx] __vlan_group_get_device()
59 return array ? array[vlan_id % VLAN_GROUP_ARRAY_PART_LEN] : NULL; __vlan_group_get_device()
73 struct net_device **array; vlan_group_set_device() local
76 array = vg->vlan_devices_arrays[vlan_proto_idx(vlan_proto)] vlan_group_set_device()
78 array[vlan_id % VLAN_GROUP_ARRAY_PART_LEN] = dev; vlan_group_set_device()
/linux-4.4.14/sound/pci/lola/
H A Dlola_mixer.c132 chip->mixer.array = (struct lola_mixer_array __iomem *) lola_init_mixer_widget()
181 * | dest_mix_gain_enable array | lola_init_mixer_widget()
199 * |a| | dest_mix_gain_enable array | lola_init_mixer_widget()
228 oldval = val = readl(&chip->mixer.array->src_gain_enable); lola_mixer_set_src_gain()
235 (gain == readw(&chip->mixer.array->src_gain[id]))) lola_mixer_set_src_gain()
241 writew(gain, &chip->mixer.array->src_gain[id]); lola_mixer_set_src_gain()
242 writel(val, &chip->mixer.array->src_gain_enable); lola_mixer_set_src_gain()
259 writew(*gains, &chip->mixer.array->src_gain[i]);
263 writel(mask, &chip->mixer.array->src_gain_enable);
291 writew(gain, &chip->mixer.array->dest_mix_gain[dest][src]); lola_mixer_set_mapping_gain()
292 val = readl(&chip->mixer.array->dest_mix_gain_enable[dest]); lola_mixer_set_mapping_gain()
297 writel(val, &chip->mixer.array->dest_mix_gain_enable[dest]); lola_mixer_set_mapping_gain()
314 writew(*gains, &chip->mixer.array->dest_mix_gain[id][i]);
318 writel(mask, &chip->mixer.array->dest_mix_gain_enable[id]);
354 /* store contents of mixer array */ lola_save_mixer()
355 memcpy_fromio(chip->mixer.array_saved, chip->mixer.array, lola_save_mixer()
356 sizeof(*chip->mixer.array)); lola_save_mixer()
367 /* restore contents of mixer array */ lola_restore_mixer()
368 memcpy_toio(chip->mixer.array, chip->mixer.array_saved, lola_restore_mixer()
369 sizeof(*chip->mixer.array)); lola_restore_mixer()
470 memset_io(chip->mixer.array, 0, sizeof(*chip->mixer.array)); init_mixer_values()
692 mask = readl(&chip->mixer.array->src_gain_enable); lola_src_gain_get()
699 val = readw(&chip->mixer.array->src_gain[idx]) + 1; lola_src_gain_get()
775 mask = readl(&chip->mixer.array->dest_mix_gain_enable[dst]);
782 val = readw(&chip->mixer.array->dest_mix_gain[dst][src]) + 1;
/linux-4.4.14/drivers/isdn/hardware/eicon/
H A Ddadapter.c32 Adapter array change notification framework
104 Called in order to register new adapter in adapter array
106 return -1 adapter array overflow
141 Called in order to remove one registered adapter from array
170 Read adapter array
304 Notify all client about adapter array change
333 - add adapter array notification
334 - remove adapter array notification
337 buffer - pointer to buffer that will receive adapter array
340 Adapter array will be written to memory described by 'buffer'
341 If the last adapter seen in the returned adapter array is
342 IDI_DADAPTER or if last adapter in array does have type '0', then
356 3. any other driver is loaded and is able to access adapter array
/linux-4.4.14/fs/nfs/
H A Ddir.c151 struct nfs_cache_array_entry array[0]; member in struct:nfs_cache_array
199 struct nfs_cache_array *array; nfs_readdir_clear_array() local
202 array = kmap_atomic(page); nfs_readdir_clear_array()
203 for (i = 0; i < array->size; i++) nfs_readdir_clear_array()
204 kfree(array->array[i].string.name); nfs_readdir_clear_array()
205 kunmap_atomic(array); nfs_readdir_clear_array()
232 struct nfs_cache_array *array = nfs_readdir_get_array(page); nfs_readdir_add_to_array() local
236 if (IS_ERR(array)) nfs_readdir_add_to_array()
237 return PTR_ERR(array); nfs_readdir_add_to_array()
239 cache_entry = &array->array[array->size]; nfs_readdir_add_to_array()
252 array->last_cookie = entry->cookie; nfs_readdir_add_to_array()
253 array->size++; nfs_readdir_add_to_array()
255 array->eof_index = array->size; nfs_readdir_add_to_array()
262 int nfs_readdir_search_for_pos(struct nfs_cache_array *array, nfs_readdir_descriptor_t *desc) nfs_readdir_search_for_pos() argument
269 if (diff >= array->size) { nfs_readdir_search_for_pos()
270 if (array->eof_index >= 0) nfs_readdir_search_for_pos()
276 *desc->dir_cookie = array->array[index].cookie; nfs_readdir_search_for_pos()
294 int nfs_readdir_search_for_cookie(struct nfs_cache_array *array, nfs_readdir_descriptor_t *desc) nfs_readdir_search_for_cookie() argument
300 for (i = 0; i < array->size; i++) { nfs_readdir_search_for_cookie()
301 if (array->array[i].cookie == *desc->dir_cookie) { nfs_readdir_search_for_cookie()
317 desc->file, array->array[i].string.len, nfs_readdir_search_for_cookie()
318 array->array[i].string.name, *desc->dir_cookie); nfs_readdir_search_for_cookie()
331 if (array->eof_index >= 0) { nfs_readdir_search_for_cookie()
333 if (*desc->dir_cookie == array->last_cookie) nfs_readdir_search_for_cookie()
343 struct nfs_cache_array *array; nfs_readdir_search_array() local
346 array = nfs_readdir_get_array(desc->page); nfs_readdir_search_array()
347 if (IS_ERR(array)) { nfs_readdir_search_array()
348 status = PTR_ERR(array); nfs_readdir_search_array()
353 status = nfs_readdir_search_for_pos(array, desc); nfs_readdir_search_array()
355 status = nfs_readdir_search_for_cookie(array, desc); nfs_readdir_search_array()
358 desc->last_cookie = array->last_cookie; nfs_readdir_search_array()
359 desc->current_index += array->size; nfs_readdir_search_array()
530 /* Perform conversion from xdr to cache array */
538 struct nfs_cache_array *array; nfs_readdir_page_filler() local
572 array = nfs_readdir_get_array(page); nfs_readdir_page_filler()
573 if (!IS_ERR(array)) { nfs_readdir_page_filler()
574 array->eof_index = array->size; nfs_readdir_page_filler()
578 status = PTR_ERR(array); nfs_readdir_page_filler()
621 struct nfs_cache_array *array; nfs_readdir_xdr_to_array() local
640 array = nfs_readdir_get_array(page); nfs_readdir_xdr_to_array()
641 if (IS_ERR(array)) { nfs_readdir_xdr_to_array()
642 status = PTR_ERR(array); nfs_readdir_xdr_to_array()
645 memset(array, 0, sizeof(struct nfs_cache_array)); nfs_readdir_xdr_to_array()
646 array->eof_index = -1; nfs_readdir_xdr_to_array()
664 } while (array->eof_index < 0); nfs_readdir_xdr_to_array()
679 * to an array that can be used for lookups later. This results in
764 struct nfs_cache_array *array = NULL; nfs_do_filldir() local
767 array = nfs_readdir_get_array(desc->page); nfs_do_filldir()
768 if (IS_ERR(array)) { nfs_do_filldir()
769 res = PTR_ERR(array); nfs_do_filldir()
773 for (i = desc->cache_entry_index; i < array->size; i++) { nfs_do_filldir()
776 ent = &array->array[i]; nfs_do_filldir()
783 if (i < (array->size-1)) nfs_do_filldir()
784 *desc->dir_cookie = array->array[i+1].cookie; nfs_do_filldir()
786 *desc->dir_cookie = array->last_cookie; nfs_do_filldir()
790 if (array->eof_index >= 0) nfs_do_filldir()
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/
H A Dlibcfs_mem.c67 * allocate per cpu-partition variables, returned value is an array of pointers,
152 * free variable array, see more detail in cfs_array_alloc
174 * allocate a variable array, returned value is an array of pointers.
175 * Caller can specify length of array by @count, @size is size of each
176 * memory block in array.
/linux-4.4.14/fs/dlm/
H A Dmember.c49 /* ls_slots array is sparse, but not rcom_slots */ dlm_slots_copy_out()
64 struct rcom_slot *ro0, struct dlm_slot *array, log_slots()
74 if (array) { log_slots()
76 if (!array[i].nodeid) log_slots()
80 array[i].slot, array[i].nodeid); log_slots()
170 struct dlm_slot *array; dlm_slots_assign() local
221 array = kzalloc(array_size * sizeof(struct dlm_slot), GFP_NOFS); dlm_slots_assign()
222 if (!array) dlm_slots_assign()
235 kfree(array); dlm_slots_assign()
239 array[memb->slot - 1].nodeid = memb->nodeid; dlm_slots_assign()
240 array[memb->slot - 1].slot = memb->slot; dlm_slots_assign()
251 if (array[i].nodeid) dlm_slots_assign()
256 array[i].nodeid = memb->nodeid; dlm_slots_assign()
257 array[i].slot = memb->slot; dlm_slots_assign()
267 kfree(array); dlm_slots_assign()
274 log_slots(ls, gen, num, NULL, array, array_size); dlm_slots_assign()
282 kfree(array); dlm_slots_assign()
287 *slots_out = array; dlm_slots_assign()
390 int i, w, x = 0, total = 0, all_zero = 0, *array; make_member_array() local
409 array = kmalloc(sizeof(int) * total, GFP_NOFS); make_member_array()
410 if (!array) make_member_array()
425 array[x++] = memb->nodeid; make_member_array()
428 ls->ls_node_array = array; make_member_array()
63 log_slots(struct dlm_ls *ls, uint32_t gen, int num_slots, struct rcom_slot *ro0, struct dlm_slot *array, int array_size) log_slots() argument
/linux-4.4.14/tools/vm/
H A Dslabinfo-gnuplot.sh197 array=(${OPTARG//,/ })
198 width=${array[0]}
199 height=${array[1]}
202 array=(${OPTARG//,/ })
203 xmin=${array[0]}
204 xmax=${array[1]}
/linux-4.4.14/drivers/pinctrl/sirf/
H A Dpinctrl-sirf.h72 * @pins: an array of discrete physical pins used in this group, taken
74 * @num_pins: the number of pins in this group array, i.e. the number of
75 * elements in .pins so we can iterate over that array
/linux-4.4.14/include/linux/extcon/
H A Dextcon-adc-jack.h24 * denotes the last adc_jack_cond element among the array)
47 * @cable_names: array of extcon id for supported cables.
48 * @adc_contitions: array of struct adc_jack_cond conditions ending
/linux-4.4.14/tools/firewire/
H A Dnosy-dump.h4 #define array_length(array) (sizeof(array) / sizeof(array[0]))
/linux-4.4.14/drivers/scsi/
H A Dscsi_sas_internal.h30 * The array of null terminated pointers to attributes
/linux-4.4.14/drivers/uwb/i1480/dfu/
H A Dphy.c37 * Write a value array to an address of the MPI interface
40 * @data: Data array to write
41 * @size: Size of the data array
44 * The data array is organized into pairs:
80 * Read a value array to from an address of the MPI interface
83 * @data: where to place the read array
85 * @size: Size of the data read array
88 * The command data array is organized into pairs ADDR0 ADDR1..., and
91 * We generate the command array to be a sequential read and then
/linux-4.4.14/arch/xtensa/include/asm/
H A Dsysmem.h22 * Bank array is sorted by .start.
/linux-4.4.14/samples/bpf/
H A Dbpf_load.h19 * and their FDs stored stored in prog_fd array
/linux-4.4.14/arch/mips/include/asm/mach-bcm63xx/
H A Dbcm63xx_nvram.h25 * @mac: pointer to array for allocated mac
/linux-4.4.14/arch/sparc/include/uapi/asm/
H A Dsembuf.h25 unsigned long sem_nsems; /* no. of semaphores in array */
/linux-4.4.14/arch/metag/include/asm/
H A Duser_gateway.h12 /* Offset of TLS pointer array in gateway page. */
/linux-4.4.14/arch/parisc/include/uapi/asm/
H A Dsembuf.h26 unsigned long sem_nsems; /* no. of semaphores in array */
/linux-4.4.14/include/linux/iio/
H A Ddriver.h19 * @map: array of mappings specifying association of channel with client
/linux-4.4.14/drivers/pinctrl/spear/
H A Dpinctrl-spear.h94 * @muxregs: array of muxreg configurations to be done for modes
105 * @pins: array containing pin numbers
106 * @npins: size of pins array
107 * @modemuxs: array of modemux configurations for this pin group
108 * @nmodemuxs: size of array modemuxs
124 * @groups: An array of pin groups that may select this function.
136 * @pins: An array describing all pins the pin controller affects.
137 * All pins which are also GPIOs must be listed first within the *array,
140 * @functions: An array describing all mux functions the SoC supports.
142 * @groups: An array describing all pin groups the pin SoC supports.
149 * @pmx_modes: array of modes supported by SoC
/linux-4.4.14/drivers/gpu/drm/sti/
H A Dsti_compositor.h61 * @mixer: array of mixers
62 * @vid: array of vids
H A Dsti_hdmi.h75 * A pointer to an array of these structures is passed to a TMDS (HDMI) output
77 * configurations of the HDMI PHY. Each entry in the array specifies a hardware
/linux-4.4.14/arch/x86/kernel/cpu/
H A Dmatch.c8 * x86_match_cpu - match current CPU again an array of x86_cpu_ids
9 * @match: Pointer to array of x86_cpu_ids. Last entry terminated with
/linux-4.4.14/fs/ncpfs/
H A Dgetopt.c18 * @opts: an array of &struct option entries controlling parser operations
25 * Returns opts->val if a matching entry in the 'opts' array is found,
/linux-4.4.14/include/uapi/linux/netfilter_bridge/
H A Debt_among.h22 * MAC address is mapped onto an array of two 32-bit integers.
25 * (in `cmp' array). This is quick as it requires only two elementary
/linux-4.4.14/arch/arm/include/asm/hardware/
H A Dicst.h25 const unsigned char *s2div; /* chip specific s2div array */
26 const unsigned char *idx2s; /* chip specific idx2s array */
/linux-4.4.14/drivers/video/fbdev/
H A Dssd1307fb.c103 struct ssd1307fb_array *array; ssd1307fb_alloc_array() local
105 array = kzalloc(sizeof(struct ssd1307fb_array) + len, GFP_KERNEL); ssd1307fb_alloc_array()
106 if (!array) ssd1307fb_alloc_array()
109 array->type = type; ssd1307fb_alloc_array()
111 return array; ssd1307fb_alloc_array()
115 struct ssd1307fb_array *array, u32 len) ssd1307fb_write_array()
121 ret = i2c_master_send(client, (u8 *)array, len); ssd1307fb_write_array()
132 struct ssd1307fb_array *array; ssd1307fb_write_cmd() local
135 array = ssd1307fb_alloc_array(1, SSD1307FB_COMMAND); ssd1307fb_write_cmd()
136 if (!array) ssd1307fb_write_cmd()
139 array->data[0] = cmd; ssd1307fb_write_cmd()
141 ret = ssd1307fb_write_array(client, array, 1); ssd1307fb_write_cmd()
142 kfree(array); ssd1307fb_write_cmd()
149 struct ssd1307fb_array *array; ssd1307fb_update_display() local
153 array = ssd1307fb_alloc_array(par->width * par->height / 8, ssd1307fb_update_display()
155 if (!array) ssd1307fb_update_display()
190 array->data[array_idx] = 0; ssd1307fb_update_display()
197 array->data[array_idx] |= bit << k; ssd1307fb_update_display()
202 ssd1307fb_write_array(par->client, array, par->width * par->height / 8); ssd1307fb_update_display()
203 kfree(array); ssd1307fb_update_display()
114 ssd1307fb_write_array(struct i2c_client *client, struct ssd1307fb_array *array, u32 len) ssd1307fb_write_array() argument
/linux-4.4.14/drivers/pinctrl/intel/
H A Dpinctrl-intel.h37 * @groups: An array of groups for this function
99 * @npins: Number of pins in the array
101 * @ngroups: Number of groups in the array
103 * @nfunctions: Number of functions in the array
105 * @ncommunities: Number of communities in the array
/linux-4.4.14/mm/
H A Dswap_cgroup.c145 void *array; swap_cgroup_swapon() local
156 array = vzalloc(array_size); swap_cgroup_swapon()
157 if (!array) swap_cgroup_swapon()
163 ctrl->map = array; swap_cgroup_swapon()
170 vfree(array); swap_cgroup_swapon()
H A Dpercpu-vm.c23 * pcpu_get_pages - get temp pages array
26 * Returns pointer to array of pointers to struct page which can be indexed
27 * with pcpu_page_idx(). Note that there is only one array and accesses
31 * Pointer to temp pages array on success.
48 * @pages: array of pages to be freed, indexed by pcpu_page_idx()
74 * @pages: array to put the allocated pages into, indexed by pcpu_page_idx()
141 * @pages: pages array which can be used to pass information to free
201 * @pages: pages array containing pages to be mapped
313 * successful population attempt so the temp pages array must pcpu_depopulate_chunk()
H A Dprocess_vm_access.c26 * @pages: array of pointers to pages we want to copy
125 /* Maximum number of entries for process pages array
133 * @rvec: iovec array specifying where to copy to/from in the other process
134 * @riovcnt: size of rvec array
237 * @lvec: iovec array specifying where to copy to/from locally
238 * @liovcnt: size of lvec array
239 * @rvec: iovec array specifying where to copy to/from in the other process
240 * @riovcnt: size of rvec array
/linux-4.4.14/net/netfilter/
H A Dnf_conntrack_ftp.c121 static int try_number(const char *data, size_t dlen, u_int32_t array[], try_number() argument
126 memset(array, 0, sizeof(array[0])*array_size); try_number()
131 array[i] = array[i]*10 + *data - '0'; try_number()
158 u_int32_t array[6]; try_rfc959() local
160 length = try_number(data, dlen, array, 6, ',', term); try_rfc959()
164 cmd->u3.ip = htonl((array[0] << 24) | (array[1] << 16) | try_rfc959()
165 (array[2] << 8) | array[3]); try_rfc959()
166 cmd->u.tcp.port = htons((array[4] << 8) | array[5]); try_rfc959()
251 u_int32_t array[4]; try_eprt() local
254 length = try_number(data + 3, dlen - 3, array, 4, '.', delim); try_eprt()
256 cmd->u3.ip = htonl((array[0] << 24) | (array[1] << 16) try_eprt()
257 | (array[2] << 8) | array[3]); try_eprt()
/linux-4.4.14/drivers/md/
H A Draid1.h23 * second half of the array.
39 * of the array that has been resynced. 'next_resync' tells us
44 /* When raid1 starts resync, we divide array into four partitions
99 * mempools - it changes when the array grows or shrinks
110 /* When taking over an array from a different personality, we store
111 * the new thread here until we fully activate the array.
160 /* DO NOT PUT ANY NEW FIELDS HERE - bios array is contiguously alloced*/
H A Ddm-raid.c25 * The following flags are used by dm-raid.c to set up the array state.
294 * Without metadata, we will not be able to tell if the array dev_parms()
299 * indicate that the array is not in-sync and it will then dev_parms()
304 DMERR("Unable to rebuild drive while array is not in-sync"); dev_parms()
378 * Determine if there are enough devices in the array that haven't
379 * failed (or are being rebuilt) to form a usable array.
480 * entire array
760 __le32 num_devices; /* Number of devices in this array. (Max 64) */
761 __le32 array_position; /* The position of this drive in the array */
773 * This offset tracks the progress of the initial array
955 * 1) The array is brand new - in which case, all of the super_init_validation()
958 * 2) This is a new device being added to an old array super_init_validation()
974 DMINFO("Superblocks created for new array");
978 "into existing array without 'rebuild' "
984 "injected into an array with other first-time devices");
987 DMERR("'rebuild' specified while array is not in-sync");
1009 "positions in RAID array"; rdev_for_each()
1035 * the array. super_validate()
1079 * the array to undergo initialization again as rdev_for_each_safe()
1138 rs->ti->error = "Insufficient redundancy to activate array";
1146 ti->error = "Unable to assemble array: Invalid superblocks";
1289 /* Has to be held on running the array */ raid_ctr()
1296 ti->error = "Fail to run raid array"; raid_ctr()
1390 * If "check" or "repair" is occurring, the array has raid_status()
1397 * The array may be doing an initial sync, or it may raid_status()
1399 * devices are In_sync, then it is the array that is raid_status()
1431 * - Initializing the array raid_status()
1432 * - Rebuilding a subset of devices of the array raid_status()
1450 * performing a "check" of the array. raid_status()
1458 /* The string you would use to construct this array */ raid_status()
1655 * Faulty bit may be set, but sometimes the array can attempt_restore_of_faulty_devices()
1657 * by removing the device from the array (i.e. calling attempt_restore_of_faulty_devices()
1754 "Set to Y if all devices in each array reliably return zeroes on reads from discarded regions");
H A Dmd.h45 struct mddev *mddev; /* RAID array if running */
59 sector_t data_offset; /* start of data in array */
71 * in sync with array
82 int raid_disk; /* role of device in array */
84 * the array after a level-change completes.
87 * array and could again if we did a partial
139 In_sync, /* device is in_sync with rest of array */
184 * than other devices in the array
231 #define MD_ARRAY_FIRST_USE 3 /* First use of array, needs initialization */
232 #define MD_STILL_CLOSED 4 /* If set, then array has not been opened since
236 #define MD_HAS_JOURNAL 6 /* The raid array has journal feature set */
270 sector_t array_sectors; /* exported array size */
283 /* If the array is being reshaped, we need to record the
321 /* allow user-space to request suspension of IO to regions of the array */
368 * that we are never stopping an array while it is open.
527 /* takeover is used to transition an array from one
534 * array.
538 * Will not be called while array is 'suspended' */
597 * iterates through the 'same array disks' ringlist
H A Draid10.h85 /* When taking over an array from a different personality, we store
86 * the new thread here until we fully activate the array.
154 * 'previous' part of the array, in which case this
/linux-4.4.14/arch/ia64/include/asm/sn/sn2/
H A Dsn_hwperf.h19 * return an array of these. Do not change this without also
59 /* numa port structure, SN_HWPERF_ENUM_PORTS returns an array of these */
140 * p pointer to array of struct sn_hwperf_object_info
149 * p pointer to array of struct sn_hwperf_port_info
161 * p pointer to array of struct sn_hwperf_data
195 * get cpu info as an array of hwperf_object_info_t.
202 * p pointer to array of struct sn_hwperf_object_info
/linux-4.4.14/fs/nfsd/
H A Dblocklayoutxdr.c99 dprintk("%s: extent array too small: %u\n", __func__, len); nfsd4_block_decode_layoutupdate()
106 dprintk("%s: extent array size mismatch: %u/%u\n", nfsd4_block_decode_layoutupdate()
113 dprintk("%s: failed to allocate extent array\n", __func__); nfsd4_block_decode_layoutupdate()
/linux-4.4.14/include/uapi/xen/
H A Dprivcmd.h65 xen_pfn_t __user *arr; /* array of mfns - or'd with
76 const xen_pfn_t __user *arr; /* array of mfns */
77 int __user *err; /* array of error codes */
/linux-4.4.14/arch/xtensa/include/uapi/asm/
H A Dsembuf.h39 unsigned long sem_nsems; /* no. of semaphores in array */
/linux-4.4.14/fs/nilfs2/
H A Dsufile.h94 * @segnumv: array of segment numbers
95 * @nsegs: size of @segnumv array
108 * @segnumv: array of segment numbers
109 * @nsegs: size of @segnumv array
/linux-4.4.14/fs/quota/
H A Dquotaio_v1.h17 * (as it appears on disk) - the file is an array of these structures
/linux-4.4.14/include/trace/
H A Dsyscall.h13 * A syscall entry in the ftrace syscalls array.
/linux-4.4.14/include/uapi/asm-generic/
H A Dsembuf.h33 unsigned long sem_nsems; /* no. of semaphores in array */
/linux-4.4.14/include/linux/power/
H A Dgpio-charger.h28 * @num_supplicants: Number of entries in the supplied_to array
/linux-4.4.14/arch/powerpc/include/uapi/asm/
H A Dsembuf.h31 unsigned long sem_nsems; /* no. of semaphores in array */
/linux-4.4.14/arch/mips/include/asm/
H A Dmaar.h98 * @cfg: Pointer to an array of struct maar_config.
99 * @num_cfg: The number of structs in the cfg array.
103 * array with the values taken from the cfg array.
/linux-4.4.14/arch/sh/include/asm/
H A Dcache.h29 * in memory mapped cache array ops.
/linux-4.4.14/arch/frv/lib/
H A Dinsl_ns.S1 /* insl_ns.S: input array of 4b words from device port without byte swapping
H A Dinsl_sw.S1 /* insl_sw.S: input array of 4b words from device port with byte swapping
H A Doutsl_sw.S1 /* outsl_ns.S: output array of 4b words to device with byte swapping
/linux-4.4.14/arch/arm/include/asm/mach/
H A Dflash.h24 * parts: optional array of mtd_partitions for static partitioning
/linux-4.4.14/sound/usb/
H A Dmidi.h22 /* for QUIRK_COMPOSITE, data points to an array of snd_usb_audio_quirk
/linux-4.4.14/tools/lib/api/fd/
H A Darray.h11 * @priv: Per array entry priv area, users should access just its contents,
/linux-4.4.14/drivers/scsi/csiostor/
H A Dcsio_hw_t5.c75 { RNPP_F, "RXNP array parity error", -1, 1 }, csio_t5_pcie_intr_handler()
76 { RPCP_F, "RXPC array parity error", -1, 1 }, csio_t5_pcie_intr_handler()
77 { RCIP_F, "RXCIF array parity error", -1, 1 }, csio_t5_pcie_intr_handler()
78 { RCCP_F, "Rx completions control array parity error", -1, 1 }, csio_t5_pcie_intr_handler()
79 { RFTP_F, "RXFT array parity error", -1, 1 }, csio_t5_pcie_intr_handler()
83 { TPCP_F, "TXPC array parity error", -1, 1 }, csio_t5_pcie_intr_handler()
84 { TNPP_F, "TXNP array parity error", -1, 1 }, csio_t5_pcie_intr_handler()
85 { TFTP_F, "TXFT array parity error", -1, 1 }, csio_t5_pcie_intr_handler()
86 { TCAP_F, "TXCA array parity error", -1, 1 }, csio_t5_pcie_intr_handler()
87 { TCIP_F, "TXCIF array parity error", -1, 1 }, csio_t5_pcie_intr_handler()
88 { RCAP_F, "RXCA array parity error", -1, 1 }, csio_t5_pcie_intr_handler()
/linux-4.4.14/drivers/usb/gadget/function/
H A Du_uvc.h32 * Control descriptors array pointers for full-/high-speed and
41 * Streaming descriptors array pointers for full-speed, high-speed and
/linux-4.4.14/drivers/thunderbolt/
H A Dnhi_regs.h46 * 00: physical pointer to an array of struct ring_desc
55 * 00: physical pointer to an array of struct ring_desc
/linux-4.4.14/drivers/media/usb/pvrusb2/
H A Dpvrusb2-std.h40 // Create an array of suitable v4l2_standard structures given a bit mask of
41 // video standards to support. The array is allocated from the heap, and
/linux-4.4.14/drivers/acpi/acpica/
H A Dtbxface.c62 * DESCRIPTION: Allocate a root table array. Used by iASL compiler and
79 * PARAMETERS: initial_table_array - Pointer to an array of pre-allocated
81 * array is dynamically allocated.
85 * pre-allocated array is allowed. Ignored
92 * NOTE: Allows static allocation of the initial table array in order
111 * Setup the Root Table Array and allocate the table array acpi_initialize_tables()
144 * Root Table Array. This array contains the information of the RSDT/XSDT acpi_initialize_tables()
175 * for the table array in the call to acpi_initialize_tables. ACPI_EXPORT_SYMBOL_INIT()
/linux-4.4.14/drivers/gpu/drm/msm/mdp/mdp5/
H A Dmdp5_ctl.h50 * @stage: array to contain the pipe num for each stage
51 * @stage_cnt: valid stage number in stage array
/linux-4.4.14/drivers/clk/samsung/
H A Dclk-cpu.h42 * @num_cfgs: number of array elements in @cfg array.
/linux-4.4.14/lib/fonts/
H A Dfonts.c105 * @font_w: bit array of supported widths (1 - 32)
106 * @font_h: bit array of supported heights (1 - 32)
/linux-4.4.14/include/uapi/linux/mmc/
H A Dioctl.h61 * MMC_IOC_MULTI_CMD: Used to send an array of MMC commands described by
63 * commands in array in sequence to card.
/linux-4.4.14/arch/sh/mm/
H A Dtlb-pteaex.c66 * address arrays. In compat mode the second array is inaccessible, while
67 * in extended mode, the legacy 8-bit ASID field in address array 1 has
/linux-4.4.14/arch/parisc/include/asm/
H A Dldcw.h9 we use a struct containing an array of four ints for the atomic lock
10 type and dynamically select the 16-byte aligned int from the array
/linux-4.4.14/arch/ia64/sn/include/xtalk/
H A Dhubdev.h64 * **widget_p - Used as an array[wid_num][device] of sn_flush_device_kernel.
67 struct sn_flush_device_kernel **widget_p; // Used as an array of wid_num
/linux-4.4.14/sound/soc/
H A Dsoc-jack.c32 * @num_pins: Number of elements in the @pins array
132 * array will be associated with the jack.
178 * pins array will have their status updated to reflect the current
301 * @gpios: array of gpio pins
304 * for each gpio in the array.
397 * @gpios: array of gpio pins
400 * for each gpio in the array.
420 * @gpios: array of gpio pins
/linux-4.4.14/tools/power/cpupower/utils/helpers/
H A Damd.c65 * pstates -> a pointer to an array of size MAX_HW_PSTATES
68 * no -> amount of pstates above array got filled up with
/linux-4.4.14/drivers/staging/rtl8188eu/hal/
H A Drf_cfg.c158 i += 2; v1 = array[i]; \
159 v2 = array[i+1]; \
202 u32 *array = Array_RadioA_1T_8188E; rtl88e_phy_config_rf_with_headerfile() local
205 u32 v1 = array[i]; rtl88e_phy_config_rf_with_headerfile()
206 u32 v2 = array[i+1]; rtl88e_phy_config_rf_with_headerfile()
212 if (!check_condition(adapt, array[i])) { rtl88e_phy_config_rf_with_headerfile()
H A Dbb_cfg.c162 u32 *array = array_agc_tab_1t_8188e; set_baseband_agc_config() local
165 u32 v1 = array[i]; set_baseband_agc_config()
166 u32 v2 = array[i + 1]; set_baseband_agc_config()
397 u32 *array = array_phy_reg_1t_8188e; set_baseband_phy_config() local
400 u32 v1 = array[i]; set_baseband_phy_config()
401 u32 v2 = array[i + 1]; set_baseband_phy_config()
581 u32 *array = array_phy_reg_pg_8188e; config_bb_with_pgheader() local
584 u32 v1 = array[i]; config_bb_with_pgheader()
585 u32 v2 = array[i + 1]; config_bb_with_pgheader()
586 u32 v3 = array[i + 2]; config_bb_with_pgheader()
/linux-4.4.14/drivers/soc/qcom/
H A Dqcom_gsbi.c33 const u32 (*array)[MAX_GSBI]; member in struct:crci_config
51 .array = crci_ipq8064,
69 .array = crci_apq8064,
87 .array = crci_msm8960,
115 .array = crci_msm8660,
207 mask = config->array[i][gsbi_num - 1]; gsbi_probe()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
H A Dmsgbuf.c280 struct brcmf_msgbuf_pktid *array; member in struct:brcmf_msgbuf_pktids
290 struct brcmf_msgbuf_pktid *array; brcmf_msgbuf_init_pktids() local
293 array = kcalloc(nr_array_entries, sizeof(*array), GFP_KERNEL); brcmf_msgbuf_init_pktids()
294 if (!array) brcmf_msgbuf_init_pktids()
299 kfree(array); brcmf_msgbuf_init_pktids()
302 pktids->array = array; brcmf_msgbuf_init_pktids()
315 struct brcmf_msgbuf_pktid *array; brcmf_msgbuf_alloc_pktid() local
318 array = pktids->array; brcmf_msgbuf_alloc_pktid()
335 if (array[*idx].allocated.counter == 0) brcmf_msgbuf_alloc_pktid()
336 if (atomic_cmpxchg(&array[*idx].allocated, 0, 1) == 0) brcmf_msgbuf_alloc_pktid()
344 array[*idx].data_offset = data_offset; brcmf_msgbuf_alloc_pktid()
345 array[*idx].physaddr = *physaddr; brcmf_msgbuf_alloc_pktid()
346 array[*idx].skb = skb; brcmf_msgbuf_alloc_pktid()
366 if (pktids->array[idx].allocated.counter) { brcmf_msgbuf_get_pktid()
367 pktid = &pktids->array[idx]; brcmf_msgbuf_get_pktid()
386 struct brcmf_msgbuf_pktid *array; brcmf_msgbuf_release_array() local
390 array = pktids->array; brcmf_msgbuf_release_array()
393 if (array[count].allocated.counter) { brcmf_msgbuf_release_array()
394 pktid = &array[count]; brcmf_msgbuf_release_array()
403 kfree(array); brcmf_msgbuf_release_array()
/linux-4.4.14/arch/x86/tools/
H A Dgen-insn-attr-x86.awk359 # print escape opcode map's array
360 print "/* Escape opcode map array */"
368 # print group opcode map's array
369 print "/* Group opcode map array */"
377 # print AVX opcode map's array
378 print "/* AVX opcode map array */"
/linux-4.4.14/kernel/trace/
H A Dbpf_trace.c192 struct bpf_array *array = container_of(map, struct bpf_array, map); bpf_perf_event_read() local
195 if (unlikely(index >= array->map.max_entries)) bpf_perf_event_read()
198 event = (struct perf_event *)array->ptrs[index]; bpf_perf_event_read()
227 struct bpf_array *array = container_of(map, struct bpf_array, map); bpf_perf_event_output() local
236 if (unlikely(index >= array->map.max_entries)) bpf_perf_event_output()
239 event = (struct perf_event *)array->ptrs[index]; bpf_perf_event_output()
/linux-4.4.14/tools/perf/util/intel-pt-decoder/
H A Dgen-insn-attr-x86.awk359 # print escape opcode map's array
360 print "/* Escape opcode map array */"
368 # print group opcode map's array
369 print "/* Group opcode map array */"
377 # print AVX opcode map's array
378 print "/* AVX opcode map array */"
/linux-4.4.14/ipc/
H A Dsem.c46 * the per-semaphore array structure.
48 * If multiple semaphores in one array are used, then cache line
49 * trashing on the semaphore array spinlock will limit the scaling.
60 * - A woken up task may not even touch the semaphore array anymore, it may
65 * - UNDO values are stored in an array (one per process and per
66 * semaphore array, lazily allocated). For backwards compatibility, multiple
69 * - There are two lists of the pending operations: a per-array list
70 * and per-semaphore list (stored in the array). This allows to achieve FIFO
111 struct sembuf *sops; /* array of pending operations */
114 int alter; /* does *sops alter the array? */
126 struct list_head list_id; /* per semaphore array list:
127 * all undos for one array */
129 short *semadj; /* array of adjustments */
201 * @sma: semaphore array
204 * It must be called prior to dropping the global semaphore array lock.
229 * @sma: semaphore array
294 * Otherwise, lock the entire semaphore array, since we either have
468 * performing any operation on the sem array.
606 * @sma: semaphore array
711 * The function is called without any locks held, thus the semaphore array
739 * @sma: semaphore array
745 * modified the array.
762 * altered the array. It must be a decrement, because check_restart()
774 * @sma: semaphore array.
778 * wake_const_ops must be called after a semaphore in a semaphore array
823 * @sma: semaphore array
829 * on the actual changes that were performed on the semaphore array.
874 * @sma: semaphore array.
878 * update_queue must be called after a semaphore in a semaphore array
943 * @sma: semaphore array
944 * @sops: operations that modified the array, may be NULL
961 * @sma: semaphore array
968 * based on the actual changes that were performed on the semaphore array.
981 /* semaphore array uses the global queue - just process it. */ do_smart_update()
1371 ushort __user *array = p; semctl_main() local
1404 if (copy_to_user(array, sem_io, nsems*sizeof(ushort))) semctl_main()
1678 * find_alloc_undo - lookup (and if not present create) undo array
1680 * @semid: semaphore array id
1684 * array, thus the alloc path is not that straightforward.
1707 /* step 1: figure out the size of the semaphore array */ find_alloc_undo()
1729 /* step 3: Acquire the lock on semaphore array */ find_alloc_undo()
1892 * and now a new array with received the same id. Check and fail. SYSCALL_DEFINE4()
/linux-4.4.14/net/irda/
H A Dqos.c161 * Function value_index (value, array, size)
163 * Returns the index to the value in the specified array
165 static inline int value_index(__u32 value, __u32 *array, int size) value_index() argument
170 if (array[i] == value) value_index()
176 * Function index_value (index, array)
178 * Returns value to index in array, easy!
181 static inline __u32 index_value(int index, __u32 *array) index_value() argument
183 return array[index]; index_value()
205 /* The only safe choice (we don't know the array size) */ msb_index()
219 * Function value_lower_bits (value, array)
223 static inline int value_lower_bits(__u32 value, __u32 *array, int size, __u16 *field) value_lower_bits() argument
234 if (array[i] >= value) value_lower_bits()
245 * Function value_highest_bit (value, array)
249 static inline int value_highest_bit(__u32 value, __u32 *array, int size, __u16 *field) value_highest_bit() argument
257 if (array[i] <= value) value_highest_bit()
/linux-4.4.14/drivers/clk/bcm/
H A Dclk-kona-setup.c288 * A selector bitfield must be valid. Its parent_sel array must
307 * in the array. sel_valid()
508 * Scan an array of parent clock names to determine whether there
511 * position of each clock name in the original array.
513 * Allocates an array of pointers to to hold the names of all
514 * non-null entries in the original array, and returns a pointer to
515 * that array in *names. This will be used for registering the
517 * *count indicates how many entries are in that names array.
519 * If there is more than one entry in the resulting names array,
520 * another array is allocated to record the parent selector value
523 * register. The position of the clock in the original parent array
524 * defines that selector value. The number of entries in this array
525 * is the same as the number of entries in the parent names array.
527 * The array of selector values is returned. If the clock has no
530 * Returns a null pointer if the clock names array supplied was
553 * Count the number of names in the null-terminated array, parent_process()
575 * We also maintain an array containing the selector value parent_process()
578 * array anyway to keep things simple. parent_process()
587 /* There is at least one parent, so allocate a selector array */ parent_process()
625 * have BAD_CLK_NAME entries in the parents[] array. The clk_sel_setup()
630 * array of parent selector values to map between the clk_sel_setup()
797 * initialize the array of clocks provided by the CCU.
850 * the clock framework clock array (in ccu->data). Then kona_dt_ccu_setup()
/linux-4.4.14/include/uapi/linux/raid/
H A Dmd_p.h121 * - if an array is being reshaped (restriped) in order to change the
122 * the number of active devices in the array, 'raid_disks' will be
177 __u64 reshape_position; /* 12,13 next address in array-space for reshape */
187 __u32 layout; /* 0 the array's physical layout */
225 /* constant array information - 128 bytes */
248 __le64 reshape_position; /* next address in array-space for reshape */
254 * different on each device in the array.
278 /* array state information - 64 bytes */
283 __le32 max_dev; /* size of devs[] array to consider */
292 __le16 dev_roles[0]; /* role in array, or 0xffff for a spare, or 0xfffe for faulty */
/linux-4.4.14/fs/befs/
H A Ddatastream.c229 Linear search. Checks each element of array[] to see if it
235 you can search multiple arrays that are logicaly one array,
250 befs_block_run *array = data->direct; befs_find_brun_direct() local
264 sum += array[i].len, i++) { befs_find_brun_direct()
265 if (blockno >= sum && blockno < sum + (array[i].len)) { befs_find_brun_direct()
267 run->allocation_group = array[i].allocation_group; befs_find_brun_direct()
268 run->start = array[i].start + offset; befs_find_brun_direct()
269 run->len = array[i].len - offset; befs_find_brun_direct()
315 befs_disk_block_run *array; befs_find_brun_indirect() local
336 array = (befs_disk_block_run *) indirblock->b_data; befs_find_brun_indirect()
339 int len = fs16_to_cpu(sb, array[j].len); befs_find_brun_indirect()
344 fs32_to_cpu(sb, array[j].allocation_group); befs_find_brun_indirect()
346 fs16_to_cpu(sb, array[j].start) + offset; befs_find_brun_indirect()
348 fs16_to_cpu(sb, array[j].len) - offset; befs_find_brun_indirect()
/linux-4.4.14/fs/xfs/libxfs/
H A Dxfs_inode_fork.c471 * requested for the if_broot array.
599 * requested for the if_data array.
693 * array so just look for an inline data array. If we're xfs_idestroy_fork()
984 /* Indirection array */ xfs_iext_add()
1017 * the indirection array and the new extent(s) don't fit xfs_iext_add()
1019 * the next index needed in the indirection array. xfs_iext_add()
1038 * array and the new extents do not fit in the target extent list. The
1040 * in the indirection array, and the idx parameter contains the extent
1106 /* Add nex2 extents back to indirection array */ xfs_iext_add_indirect_multi()
1157 * extent array. Otherwise, use kmem_realloc() to adjust the
1269 * indirection array and the extents being removed span multiple extent
1288 xfs_ext_irec_t *erp; /* indirection array pointer */ xfs_iext_remove_indirect()
1289 int erp_idx = 0; /* indirection array index */ xfs_iext_remove_indirect()
1445 * Resize an extent indirection array to new_size bytes.
1450 int new_size) /* new indirection array size */ xfs_iext_realloc_indirect()
1453 int size; /* current indirection array size */ xfs_iext_realloc_indirect()
1470 * Switch from indirection array to linear (direct) extent allocations.
1537 xfs_ext_irec_t *erp = NULL; /* indirection array pointer */ xfs_iext_bno_to_ext()
1595 * Return a pointer to the indirection array entry containing the
1605 xfs_ext_irec_t *erp = NULL; /* indirection array pointer */ xfs_iext_bno_to_irec()
1606 xfs_ext_irec_t *erp_next; /* next indirection array entry */ xfs_iext_bno_to_irec()
1607 int erp_idx; /* indirection array index */ xfs_iext_bno_to_irec()
1635 * Return a pointer to the indirection array entry containing the
1649 int erp_idx; /* indirection array index */ xfs_iext_idx_to_irec()
1695 * Allocate and initialize an indirection array once the space needed
1702 xfs_ext_irec_t *erp; /* indirection array pointer */ xfs_iext_irec_init()
1731 * Allocate and initialize a new entry in the indirection array.
1738 xfs_ext_irec_t *erp; /* indirection array pointer */ xfs_iext_irec_new()
1745 /* Resize indirection array */ xfs_iext_irec_new()
1749 * Move records down in the array so the xfs_iext_irec_new()
1770 * Remove a record from the indirection array.
1777 xfs_ext_irec_t *erp; /* indirection array pointer */ xfs_iext_irec_remove()
1796 * array. A call to xfs_iext_realloc_indirect() with a size xfs_iext_irec_remove()
1812 * by the indirection array. Before compacting anything though, verify
1813 * that the indirection array is still needed and switch back to the
1852 int erp_idx = 0; /* indirection array index */ xfs_iext_irec_compact_pages()
1883 * array when extents have been added or removed from one of the
/linux-4.4.14/drivers/cpuidle/
H A Ddt_idle_states.c37 * pointer of the passed in struct of_device_id array to the idle init_state_node()
131 * idle driver states array
135 * struct of_device_id entry in the matches array must point to
146 * array entries in the cpuidle driver are initialized accordingly starting
188 pr_warn("State index reached static CPU idle driver states array size\n"); dt_init_idle_driver()
/linux-4.4.14/drivers/clk/ingenic/
H A Dcgu.h45 * @od_encoding: a pointer to an array mapping post-VCO divider values to
126 * @parents: an array of the indices of potential parents of this clock
127 * within the clock_info array of the CGU, or -1 in entries
171 * @clock_info: an array containing information about implemented clocks
201 * @clock_info: an array of clock information structures describing the clocks
/linux-4.4.14/include/uapi/linux/usb/
H A Dfunctionfs.h120 * Descriptor[] is an array of valid USB descriptors which have the following
129 * OSDesc[] is an array of valid MS OS Feature Descriptors which have one of
151 * ExtCompat[] is an array of valid Extended Compatiblity descriptors
163 * ExtProp[] is an array of valid Extended Properties descriptors
200 * | 2 | strings | String[str_count] | array of strings in given language |
/linux-4.4.14/include/net/sctp/
H A Dtsnmap.h44 * Mapping An array of bits or bytes indicating which out of
47 * order packets have been received, this array
49 * in the form of a circular buffer or bit array.
52 /* This array counts the number of chunks with each TSN.
137 /* Return pointer to duplicate tsn array as needed by SACK. */ sctp_tsnmap_get_dups()
/linux-4.4.14/include/sound/
H A Dseq_midi_emul.h63 * port for this midi synth and an array of snd_midi_channel structures.
65 * channel set type if it wished with the channel array null.
72 int max_channels; /* Size of the channels array */
104 * These names exist to allow symbolic access to the controls array.
106 * be really have these members in the struct, and not the array.
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/
H A Dservice.c452 struct ptlrpc_at_array *array; ptlrpc_service_part_init() local
482 array = &svcpt->scp_at_array; ptlrpc_service_part_init()
485 array->paa_size = size; ptlrpc_service_part_init()
486 array->paa_count = 0; ptlrpc_service_part_init()
487 array->paa_deadline = -1; ptlrpc_service_part_init()
490 array->paa_reqs_array = ptlrpc_service_part_init()
493 if (array->paa_reqs_array == NULL) ptlrpc_service_part_init()
497 INIT_LIST_HEAD(&array->paa_reqs_array[index]); ptlrpc_service_part_init()
499 array->paa_reqs_count = ptlrpc_service_part_init()
502 if (array->paa_reqs_count == NULL) ptlrpc_service_part_init()
524 kfree(array->paa_reqs_count); ptlrpc_service_part_init()
525 array->paa_reqs_count = NULL; ptlrpc_service_part_init()
527 kfree(array->paa_reqs_array); ptlrpc_service_part_init()
528 array->paa_reqs_array = NULL; ptlrpc_service_part_init()
581 CERROR("%s: failed to parse CPT array %s: %d\n", ptlrpc_register_service()
902 struct ptlrpc_at_array *array = &svcpt->scp_at_array; ptlrpc_at_set_timer() local
905 if (array->paa_count == 0) { ptlrpc_at_set_timer()
911 next = (__s32)(array->paa_deadline - ktime_get_real_seconds() - ptlrpc_at_set_timer()
926 struct ptlrpc_at_array *array = &svcpt->scp_at_array; ptlrpc_at_add_timed() local
942 div_u64_rem(req->rq_deadline, array->paa_size, &index); ptlrpc_at_add_timed()
943 if (array->paa_reqs_count[index] > 0) { ptlrpc_at_add_timed()
947 &array->paa_reqs_array[index], ptlrpc_at_add_timed()
960 &array->paa_reqs_array[index]); ptlrpc_at_add_timed()
966 array->paa_reqs_count[index]++; ptlrpc_at_add_timed()
967 array->paa_count++; ptlrpc_at_add_timed()
968 if (array->paa_count == 1 || array->paa_deadline > req->rq_deadline) { ptlrpc_at_add_timed()
969 array->paa_deadline = req->rq_deadline; ptlrpc_at_add_timed()
980 struct ptlrpc_at_array *array; ptlrpc_at_remove_timed() local
982 array = &req->rq_rqbd->rqbd_svcpt->scp_at_array; ptlrpc_at_remove_timed()
992 array->paa_reqs_count[req->rq_at_index]--; ptlrpc_at_remove_timed()
993 array->paa_count--; ptlrpc_at_remove_timed()
1123 struct ptlrpc_at_array *array = &svcpt->scp_at_array; ptlrpc_at_check_timed() local
1140 if (array->paa_count == 0) { ptlrpc_at_check_timed()
1146 first = array->paa_deadline - now; ptlrpc_at_check_timed()
1158 div_u64_rem(array->paa_deadline, array->paa_size, &index); ptlrpc_at_check_timed()
1159 count = array->paa_count; ptlrpc_at_check_timed()
1161 count -= array->paa_reqs_count[index]; ptlrpc_at_check_timed()
1163 &array->paa_reqs_array[index], ptlrpc_at_check_timed()
1184 if (++index >= array->paa_size) ptlrpc_at_check_timed()
1187 array->paa_deadline = deadline; ptlrpc_at_check_timed()
2713 struct ptlrpc_at_array *array; ptlrpc_service_free() local
2722 array = &svcpt->scp_at_array; ptlrpc_service_for_each_part()
2724 kfree(array->paa_reqs_array); ptlrpc_service_for_each_part()
2725 array->paa_reqs_array = NULL; ptlrpc_service_for_each_part()
2726 kfree(array->paa_reqs_count); ptlrpc_service_for_each_part()
2727 array->paa_reqs_count = NULL; ptlrpc_service_for_each_part()
/linux-4.4.14/drivers/i2c/busses/
H A Di2c-designware-core.h42 * @msgs: points to an array of messages currently being transfered
45 * array
49 * array
/linux-4.4.14/drivers/hid/
H A Dhid-samsung.c48 * Report #4 has an array field with logical range 0..18 instead of 1..15.
51 * Report #4 has an array field with logical range 0..17 instead of 1..14.
54 * Report #3 has an array field with logical range 0..1 instead of 1..3.
/linux-4.4.14/drivers/media/platform/exynos4-is/
H A Dmedia-dev.h105 * @sensor: array of registered sensor subdevs
108 * @fimc: array of registered fimc devices
120 * @slock: spinlock protecting @sensor array
/linux-4.4.14/drivers/net/wireless/
H A Dmac80211_hwsim.h100 * @HWSIM_ATTR_FRAME: Data array
107 * @HWSIM_ATTR_TX_INFO: ieee80211_tx_rate array
162 * in an array of retry rates, that no more rates should be tried.
/linux-4.4.14/drivers/pinctrl/qcom/
H A Dpinctrl-msm.h102 * @pins: An array describing all pins the pin controller affects.
104 * @functions: An array describing all mux functions the SoC supports.
106 * @groups: An array describing all pin groups the pin SoC supports.
/linux-4.4.14/drivers/pinctrl/uniphier/
H A Dpinctrl-uniphier.h193 #define UNIPHIER_PINCTRL_GROUP_SINGLE(grp, array, ofst) \
196 .pins = array##_pins + ofst, \
198 .muxvals = array##_muxvals + ofst, \
/linux-4.4.14/sound/aoa/fabrics/
H A Dlayout.c132 {} /* terminate array by .connected == 0 */
156 {} /* terminate array by .connected == 0 */
173 {} /* terminate array by .connected == 0 */
190 {} /* terminate array by .connected == 0 */
203 {} /* terminate array by .connected == 0 */
216 {} /* terminate array by .connected == 0 */
233 {} /* terminate array by .connected == 0 */
241 {} /* terminate array by .connected == 0 */
249 {} /* terminate array by .connected == 0 */
257 {} /* terminate array by .connected == 0 */
269 {} /* terminate array by .connected == 0 */
896 /* need to add this codec to our codec array! */ layout_attached_codec()

Completed in 6118 milliseconds

1234567891011>>