Home
last modified time | relevance | path

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

12345678910>>...12

/linux-3.4.99/tools/perf/util/
Devsel.c408 const u64 *array = event->sample.array; in perf_event__parse_id_sample() local
410 array += ((event->header.size - in perf_event__parse_id_sample()
414 u32 *p = (u32 *)array; in perf_event__parse_id_sample()
416 array--; in perf_event__parse_id_sample()
420 sample->stream_id = *array; in perf_event__parse_id_sample()
421 array--; in perf_event__parse_id_sample()
425 sample->id = *array; in perf_event__parse_id_sample()
426 array--; in perf_event__parse_id_sample()
430 sample->time = *array; in perf_event__parse_id_sample()
431 array--; in perf_event__parse_id_sample()
[all …]
Devlist.h63 #define perf_evlist__add_attrs_array(evlist, array) \ argument
64 perf_evlist__add_attrs(evlist, array, ARRAY_SIZE(array))
66 #define perf_evlist__add_tracepoints_array(evlist, array) \ argument
67 perf_evlist__add_tracepoints(evlist, array, ARRAY_SIZE(array))
69 #define perf_evlist__set_tracepoints_handlers_array(evlist, array) \ argument
70 perf_evlist__set_tracepoints_handlers(evlist, array, ARRAY_SIZE(array))
/linux-3.4.99/arch/s390/include/asm/
Dctl_reg.h12 #define __ctl_load(array, low, high) ({ \ argument
13 typedef struct { char _[sizeof(array)]; } addrtype; \
16 : : "Q" (*(addrtype *)(&array)), \
20 #define __ctl_store(array, low, high) ({ \ argument
21 typedef struct { char _[sizeof(array)]; } addrtype; \
24 : "=Q" (*(addrtype *)(&array)) \
30 #define __ctl_load(array, low, high) ({ \ argument
31 typedef struct { char _[sizeof(array)]; } addrtype; \
34 : : "Q" (*(addrtype *)(&array)), \
38 #define __ctl_store(array, low, high) ({ \ argument
[all …]
/linux-3.4.99/drivers/infiniband/hw/mthca/
Dmthca_allocator.c118 void *mthca_array_get(struct mthca_array *array, int index) in mthca_array_get() argument
122 if (array->page_list[p].page) in mthca_array_get()
123 return array->page_list[p].page[index & MTHCA_ARRAY_MASK]; in mthca_array_get()
128 int mthca_array_set(struct mthca_array *array, int index, void *value) in mthca_array_set() argument
133 if (!array->page_list[p].page) in mthca_array_set()
134 array->page_list[p].page = (void **) get_zeroed_page(GFP_ATOMIC); in mthca_array_set()
136 if (!array->page_list[p].page) in mthca_array_set()
139 array->page_list[p].page[index & MTHCA_ARRAY_MASK] = value; in mthca_array_set()
140 ++array->page_list[p].used; in mthca_array_set()
145 void mthca_array_clear(struct mthca_array *array, int index) in mthca_array_clear() argument
[all …]
/linux-3.4.99/drivers/scsi/isci/
Dunsolicited_frame_control.c75 …size = buf_len + header_len + SCU_MAX_UNSOLICITED_FRAMES * sizeof(uf_control->address_table.array[… in sci_unsolicited_frame_control_construct()
97 uf_control->headers.array = virt + buf_len; in sci_unsolicited_frame_control_construct()
107 uf_control->address_table.array = virt + buf_len + header_len; in sci_unsolicited_frame_control_construct()
122 uf = &uf_control->buffers.array[i]; in sci_unsolicited_frame_control_construct()
124 uf_control->address_table.array[i] = dma; in sci_unsolicited_frame_control_construct()
127 uf->header = &uf_control->headers.array[i]; in sci_unsolicited_frame_control_construct()
150 *frame_header = &uf_control->buffers.array[frame_index].header->data; in sci_unsolicited_frame_control_get_header()
163 *frame_buffer = uf_control->buffers.array[frame_index].buffer; in sci_unsolicited_frame_control_get_buffer()
185 while (lower_32_bits(uf_control->address_table.array[frame_get]) == 0 && in sci_unsolicited_frame_control_release_frame()
186 upper_32_bits(uf_control->address_table.array[frame_get]) == 0 && in sci_unsolicited_frame_control_release_frame()
[all …]
Dunsolicited_frame_control.h172 struct scu_unsolicited_frame_header *array; member
195 struct sci_unsolicited_frame array[SCU_MAX_UNSOLICITED_FRAMES]; member
217 u64 *array; member
/linux-3.4.99/Documentation/
Dflexible-arrays.txt16 piecing together an array from smaller parts; the flexible array library
19 A flexible array holds an arbitrary (within limits) number of fixed-sized
24 system page size, and putting data into a flexible array requires a copy
26 locking at all; if concurrent access to an array is possible, then the
29 The creation of a flexible array is done with:
38 maximum number of objects which can be stored in the array. The flags
47 This macro will result in a definition of an array with the given name; the
50 Storing data into a flexible array is accomplished with a call to:
52 int flex_array_put(struct flex_array *array, unsigned int element_nr,
55 This call will copy the data from src into the array, in the position
[all …]
Dmd.txt16 or, to assemble a partitionable array:
57 If a raid5 or raid6 array is both dirty and degraded, it could have
63 For this reason, md will normally refuse to start such an array. This
64 requires the sysadmin to take action to explicitly start the array
68 This option is not really available if the array has the root
70 array, md supports a module parameter "start_dirty_degraded" which,
95 An array is 'created' by writing appropriate superblocks to all
102 An array should be created by a user-space tool. This will write
103 superblocks to all devices. It will usually mark the array as
108 When an array is assembled, it is first initialized with the
[all …]
/linux-3.4.99/arch/x86/xen/
Ddebugfs.c24 void *array; member
35 u32 *array, unsigned array_size) in format_array() argument
43 len = snprintf(buf, bufsize, fmt, array[i]); in format_array()
61 static char *format_array_alloc(const char *fmt, u32 *array, unsigned array_size) in format_array_alloc() argument
63 size_t len = format_array(NULL, 0, fmt, array, array_size); in format_array_alloc()
70 format_array(ret, len, fmt, array, array_size); in format_array_alloc()
87 file->private_data = format_array_alloc("%u", data->array, data->elements); in u32_array_read()
114 u32 *array, unsigned elements) in xen_debugfs_create_u32_array() argument
121 data->array = array; in xen_debugfs_create_u32_array()
/linux-3.4.99/drivers/media/video/gspca/stv06xx/
Dstv06xx_hdcs.c139 } array; member
387 if (width > hdcs->array.width) in hdcs_set_size()
388 width = hdcs->array.width; in hdcs_set_size()
392 if (height + 2 * hdcs->array.border + HDCS_1020_BOTTOM_Y_SKIP in hdcs_set_size()
393 > hdcs->array.height) in hdcs_set_size()
394 height = hdcs->array.height - 2 * hdcs->array.border - in hdcs_set_size()
397 y = (hdcs->array.height - HDCS_1020_BOTTOM_Y_SKIP - height) / 2 in hdcs_set_size()
398 + hdcs->array.top; in hdcs_set_size()
400 if (height > hdcs->array.height) in hdcs_set_size()
401 height = hdcs->array.height; in hdcs_set_size()
[all …]
/linux-3.4.99/Documentation/RCU/
DarrayRCU.txt18 Hash tables are often implemented as an array, where each array entry
21 to other array-of-list situations, such as radix trees.
27 located in each array element, and where the array is never resized,
39 function used by the System V IPC code. The array is used to map from
48 the new array, and invokes ipc_rcu_putref() to free up the old array.
80 * contents of the new array are visible before the new
81 * array becomes visible.
89 The ipc_rcu_putref() function decrements the array's reference count
91 to free the array after a grace period has elapsed.
93 The array is traversed by the ipc_lock() function. This function
[all …]
/linux-3.4.99/fs/dlm/
Dmember.c64 struct rcom_slot *ro0, struct dlm_slot *array, in log_debug_slots() argument
77 if (array) { in log_debug_slots()
79 if (!array[i].nodeid) in log_debug_slots()
83 array[i].slot, array[i].nodeid); in log_debug_slots()
173 struct dlm_slot *array; in dlm_slots_assign() local
224 array = kzalloc(array_size * sizeof(struct dlm_slot), GFP_NOFS); in dlm_slots_assign()
225 if (!array) in dlm_slots_assign()
238 kfree(array); in dlm_slots_assign()
242 array[memb->slot - 1].nodeid = memb->nodeid; in dlm_slots_assign()
243 array[memb->slot - 1].slot = memb->slot; in dlm_slots_assign()
[all …]
/linux-3.4.99/drivers/target/iscsi/
Discsi_target_seq_pdu_list.c100 static void iscsit_create_random_array(u32 *array, u32 count) in iscsit_create_random_array() argument
105 array[0] = 0; in iscsit_create_random_array()
115 if ((array[k] & 0x80000000) && (array[k] == j)) in iscsit_create_random_array()
118 array[i] = j; in iscsit_create_random_array()
122 array[i] &= ~0x80000000; in iscsit_create_random_array()
130 u32 *array, pdu_count, seq_count = 0, seq_no = 0, seq_offset = 0; in iscsit_randomize_pdu_lists() local
138 array = kzalloc(seq_count * sizeof(u32), GFP_KERNEL); in iscsit_randomize_pdu_lists()
139 if (!array) { in iscsit_randomize_pdu_lists()
144 iscsit_create_random_array(array, seq_count); in iscsit_randomize_pdu_lists()
147 cmd->pdu_list[seq_offset+i].pdu_send_order = array[i]; in iscsit_randomize_pdu_lists()
[all …]
/linux-3.4.99/net/netfilter/
Dnf_conntrack_ftp.c117 static int try_number(const char *data, size_t dlen, u_int32_t array[], in try_number() argument
122 memset(array, 0, sizeof(array[0])*array_size); in try_number()
127 array[i] = array[i]*10 + *data - '0'; in try_number()
152 u_int32_t array[6]; in try_rfc959() local
154 length = try_number(data, dlen, array, 6, ',', term); in try_rfc959()
158 cmd->u3.ip = htonl((array[0] << 24) | (array[1] << 16) | in try_rfc959()
159 (array[2] << 8) | array[3]); in try_rfc959()
160 cmd->u.tcp.port = htons((array[4] << 8) | array[5]); in try_rfc959()
218 u_int32_t array[4]; in try_eprt() local
221 length = try_number(data + 3, dlen - 3, array, 4, '.', delim); in try_eprt()
[all …]
/linux-3.4.99/net/8021q/
Dvlan.h109 struct net_device **array; in vlan_group_get_device() local
110 array = vg->vlan_devices_arrays[vlan_id / VLAN_GROUP_ARRAY_PART_LEN]; in vlan_group_get_device()
111 return array ? array[vlan_id % VLAN_GROUP_ARRAY_PART_LEN] : NULL; in vlan_group_get_device()
118 struct net_device **array; in vlan_group_set_device() local
121 array = vg->vlan_devices_arrays[vlan_id / VLAN_GROUP_ARRAY_PART_LEN]; in vlan_group_set_device()
122 array[vlan_id % VLAN_GROUP_ARRAY_PART_LEN] = dev; in vlan_group_set_device()
/linux-3.4.99/arch/sparc/boot/
Dbtfixupprep.c57 btfixup array[MAXSYMS]; variable
75 if (array[i].type == type && !strcmp(array[i].name, name)) in find()
76 return array + i; in find()
78 array[last].type = type; in find()
79 array[last].name = strdup(name); in find()
80 array[last].setinitval = 0; in find()
81 if (!array[last].name) fatal(); in find()
82 array[last].rel = NULL; in find()
88 return array + last - 1; in find()
331 f = array + i; in main()
[all …]
/linux-3.4.99/fs/nfs/
Ddir.c213 struct nfs_cache_array_entry array[0]; member
260 struct nfs_cache_array *array; in nfs_readdir_clear_array() local
263 array = kmap_atomic(page); in nfs_readdir_clear_array()
264 for (i = 0; i < array->size; i++) in nfs_readdir_clear_array()
265 kfree(array->array[i].string.name); in nfs_readdir_clear_array()
266 kunmap_atomic(array); in nfs_readdir_clear_array()
293 struct nfs_cache_array *array = nfs_readdir_get_array(page); in nfs_readdir_add_to_array() local
297 if (IS_ERR(array)) in nfs_readdir_add_to_array()
298 return PTR_ERR(array); in nfs_readdir_add_to_array()
300 cache_entry = &array->array[array->size]; in nfs_readdir_add_to_array()
[all …]
/linux-3.4.99/fs/befs/
Ddatastream.c249 befs_block_run *array = data->direct; in befs_find_brun_direct() local
263 sum += array[i].len, i++) { in befs_find_brun_direct()
264 if (blockno >= sum && blockno < sum + (array[i].len)) { in befs_find_brun_direct()
266 run->allocation_group = array[i].allocation_group; in befs_find_brun_direct()
267 run->start = array[i].start + offset; in befs_find_brun_direct()
268 run->len = array[i].len - offset; in befs_find_brun_direct()
313 befs_disk_block_run *array; in befs_find_brun_indirect() local
335 array = (befs_disk_block_run *) indirblock->b_data; in befs_find_brun_indirect()
338 int len = fs16_to_cpu(sb, array[j].len); in befs_find_brun_indirect()
343 fs32_to_cpu(sb, array[j].allocation_group); in befs_find_brun_indirect()
[all …]
/linux-3.4.99/Documentation/input/
Dgpio-tilt.txt13 The array of struct gpio in the gpios field is used to list the gpios
16 The array of struct gpio_tilt_axis describes the axes that are reported
20 The array of struct gpio_tilt_state maps gpio states to the corresponding
22 bit-index corresponds to the index of the gpio in the struct gpio array.
23 In the same manner the values stored in the axes array correspond to
24 the elements of the gpio_tilt_axis-array.
/linux-3.4.99/sound/pci/lola/
Dlola_mixer.c133 chip->mixer.array = (struct lola_mixer_array __iomem *) in lola_init_mixer_widget()
229 oldval = val = readl(&chip->mixer.array->src_gain_enable); in lola_mixer_set_src_gain()
236 (gain == readw(&chip->mixer.array->src_gain[id]))) in lola_mixer_set_src_gain()
241 writew(gain, &chip->mixer.array->src_gain[id]); in lola_mixer_set_src_gain()
242 writel(val, &chip->mixer.array->src_gain_enable); in 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]); in lola_mixer_set_mapping_gain()
292 val = readl(&chip->mixer.array->dest_mix_gain_enable[dest]); in lola_mixer_set_mapping_gain()
297 writel(val, &chip->mixer.array->dest_mix_gain_enable[dest]); in lola_mixer_set_mapping_gain()
[all …]
/linux-3.4.99/Documentation/video4linux/
Dw9968cf.txt205 Type: int array (min = 0, max = 32)
218 Type: int array (min = 0, max = 32)
225 Type: int array (min = 0, max = 32)
233 Type: bool array (min = 0, max = 32)
242 Type: bool array (min = 0, max = 32)
248 Type: int array (min = 0, max = 32)
257 Type: bool array (min = 0, max = 32)
263 Type: bool array (min = 0, max = 32)
273 Type: int array (min = 0, max = 32)
289 Type: int array (min = 0, max = 32)
[all …]
/linux-3.4.99/arch/arm/mach-msm/
Dirq-vic.c137 #define DPRINT_ARRAY(array, format, ...) \ argument
139 array[0], array[1])
145 #define DPRINT_ARRAY(array, format, ...) \ argument
147 array[0], array[1], \
148 array[2], array[3])
/linux-3.4.99/Documentation/networking/
Dfib_trie.txt11 An internal node, holding an array of child (leaf or tnode) pointers,
18 child array - the "child index". See Level Compression.
22 the child array. See Path Compression.
25 Any given tnode is linked to from the child array of its parent, using
39 contain an arbitrarily large array of links to several children.
40 Conversely, a tnode with a mostly empty child array (see empty_children)
45 the number of positions in the child array of a given tnode that are
81 Analyzes a tnode and optimizes the child array size by either inflating
87 Doubles the size of the child array within a tnode. Used by resize().
90 Halves the size of the child array within a tnode - the inverse of
[all …]
/linux-3.4.99/Documentation/video4linux/bttv/
DSound-FAQ10 To handle the grabber boards correctly, there is a array tvcards[] in
57 As mentioned above, there is a array which holds the required
73 The audiomux[] array holds the data values for the different inputs
80 the audiomux array. If you have Windows and the drivers four your
98 audiomux=i,j,... set the values of the audiomux array
99 audioall=a set the values of the audiomux array (one
100 value for all array elements, useful to check
115 Other elements of the tvcards array
119 know what the other elements in the tvcards array are good for:
135 If some config item is specified both from the tvcards array and as
/linux-3.4.99/sound/pci/hda/
Dhda_codec.h564 void *snd_array_new(struct snd_array *array);
565 void snd_array_free(struct snd_array *array);
566 static inline void snd_array_init(struct snd_array *array, unsigned int size, in snd_array_init() argument
569 array->elem_size = size; in snd_array_init()
570 array->alloc_align = align; in snd_array_init()
573 static inline void *snd_array_elem(struct snd_array *array, unsigned int idx) in snd_array_elem() argument
575 return array->list + idx * array->elem_size; in snd_array_elem()
578 static inline unsigned int snd_array_index(struct snd_array *array, void *ptr) in snd_array_index() argument
580 return (unsigned long)(ptr - array->list) / array->elem_size; in snd_array_index()

12345678910>>...12