Home
last modified time | relevance | path

Searched refs:element (Results 1 – 25 of 165) sorted by relevance

1234567

/linux-3.4.99/mm/
Dmempool.c18 static void add_element(mempool_t *pool, void *element) in add_element() argument
21 pool->elements[pool->curr_nr++] = element; in add_element()
41 void *element = remove_element(pool); in mempool_destroy() local
42 pool->free(element, pool->pool_data); in mempool_destroy()
94 void *element; in mempool_create_node() local
96 element = pool->alloc(GFP_KERNEL, pool->pool_data); in mempool_create_node()
97 if (unlikely(!element)) { in mempool_create_node()
101 add_element(pool, element); in mempool_create_node()
125 void *element; in mempool_resize() local
134 element = remove_element(pool); in mempool_resize()
[all …]
/linux-3.4.99/security/tomoyo/
Dgc.c39 static bool tomoyo_struct_used_by_io_buffer(const struct list_head *element) in tomoyo_struct_used_by_io_buffer() argument
49 if (head->r.domain == element || head->r.group == element || in tomoyo_struct_used_by_io_buffer()
50 head->r.acl == element || &head->w.domain->list == element) in tomoyo_struct_used_by_io_buffer()
106 static inline void tomoyo_del_transition_control(struct list_head *element) in tomoyo_del_transition_control() argument
109 container_of(element, typeof(*ptr), head.list); in tomoyo_del_transition_control()
121 static inline void tomoyo_del_aggregator(struct list_head *element) in tomoyo_del_aggregator() argument
124 container_of(element, typeof(*ptr), head.list); in tomoyo_del_aggregator()
136 static inline void tomoyo_del_manager(struct list_head *element) in tomoyo_del_manager() argument
139 container_of(element, typeof(*ptr), head.list); in tomoyo_del_manager()
150 static void tomoyo_del_acl(struct list_head *element) in tomoyo_del_acl() argument
[all …]
/linux-3.4.99/drivers/acpi/
Dutils.c100 union acpi_object *element = &(package->package.elements[i]); in acpi_extract_package() local
102 if (!element) { in acpi_extract_package()
106 switch (element->type) { in acpi_extract_package()
136 (element->string.length * sizeof(char)) + in acpi_extract_package()
143 (element->buffer.length * sizeof(u8)); in acpi_extract_package()
186 union acpi_object *element = &(package->package.elements[i]); in acpi_extract_package() local
188 if (!element) { in acpi_extract_package()
192 switch (element->type) { in acpi_extract_package()
198 element->integer.value; in acpi_extract_package()
205 element->integer.value; in acpi_extract_package()
[all …]
Dscan.c713 union acpi_object *element = NULL; in acpi_bus_extract_wakeup_device_power_package() local
734 element = &(package->package.elements[0]); in acpi_bus_extract_wakeup_device_power_package()
735 if (!element) { in acpi_bus_extract_wakeup_device_power_package()
739 if (element->type == ACPI_TYPE_PACKAGE) { in acpi_bus_extract_wakeup_device_power_package()
740 if ((element->package.count < 2) || in acpi_bus_extract_wakeup_device_power_package()
741 (element->package.elements[0].type != in acpi_bus_extract_wakeup_device_power_package()
743 || (element->package.elements[1].type != ACPI_TYPE_INTEGER)) { in acpi_bus_extract_wakeup_device_power_package()
748 element->package.elements[0].reference.handle; in acpi_bus_extract_wakeup_device_power_package()
750 (u32) element->package.elements[1].integer.value; in acpi_bus_extract_wakeup_device_power_package()
751 } else if (element->type == ACPI_TYPE_INTEGER) { in acpi_bus_extract_wakeup_device_power_package()
[all …]
Dprocessor_idle.c397 union acpi_object *element; in acpi_processor_get_power_info_cst() local
404 element = &(cst->package.elements[i]); in acpi_processor_get_power_info_cst()
405 if (element->type != ACPI_TYPE_PACKAGE) in acpi_processor_get_power_info_cst()
408 if (element->package.count != 4) in acpi_processor_get_power_info_cst()
411 obj = &(element->package.elements[0]); in acpi_processor_get_power_info_cst()
423 obj = &(element->package.elements[1]); in acpi_processor_get_power_info_cst()
479 obj = &(element->package.elements[2]); in acpi_processor_get_power_info_cst()
485 obj = &(element->package.elements[3]); in acpi_processor_get_power_info_cst()
Dbattery.c382 union acpi_object *element; in extract_package() local
388 element = &package->package.elements[i]; in extract_package()
391 if (element->type == ACPI_TYPE_STRING || in extract_package()
392 element->type == ACPI_TYPE_BUFFER) in extract_package()
393 strncpy(ptr, element->string.pointer, 32); in extract_package()
394 else if (element->type == ACPI_TYPE_INTEGER) { in extract_package()
395 strncpy(ptr, (u8 *)&element->integer.value, in extract_package()
402 *x = (element->type == ACPI_TYPE_INTEGER) ? in extract_package()
403 element->integer.value : -1; in extract_package()
/linux-3.4.99/drivers/staging/tidspbridge/gen/
Dgh.c22 struct element { struct
23 struct element *next; argument
30 struct element **buckets; argument
59 kzalloc(sizeof(struct element *) * max_bucket, GFP_KERNEL); in gh_create()
76 struct element *elem, *next; in gh_delete()
103 struct element *elem; in gh_find()
121 struct element *elem; in gh_insert()
125 elem = kzalloc(sizeof(struct element) - 1 + hash_tab->val_size, in gh_insert()
165 struct element *elem; in gh_iterate()
/linux-3.4.99/net/irda/
Dirqueue.c233 static void enqueue_first(irda_queue_t **queue, irda_queue_t* element) in enqueue_first() argument
245 element->q_next = element->q_prev = *queue = element; in enqueue_first()
251 element->q_next = (*queue); in enqueue_first()
252 (*queue)->q_prev->q_next = element; in enqueue_first()
253 element->q_prev = (*queue)->q_prev; in enqueue_first()
254 (*queue)->q_prev = element; in enqueue_first()
255 (*queue) = element; in enqueue_first()
307 static irda_queue_t *dequeue_general(irda_queue_t **queue, irda_queue_t* element) in dequeue_general() argument
333 element->q_prev->q_next = element->q_next; in dequeue_general()
334 element->q_next->q_prev = element->q_prev; in dequeue_general()
[all …]
/linux-3.4.99/include/linux/
Dmempool.h12 typedef void (mempool_free_t)(void *element, void *pool_data);
34 extern void mempool_free(void *element, mempool_t *pool);
41 void mempool_free_slab(void *element, void *pool_data);
54 void mempool_kfree(void *element, void *pool_data);
66 void mempool_free_pages(void *element, void *pool_data);
/linux-3.4.99/arch/ia64/sn/kernel/
Dio_common.c355 struct sysdata_el *element; in sn_bus_store_sysdata() local
357 element = kzalloc(sizeof(struct sysdata_el), GFP_KERNEL); in sn_bus_store_sysdata()
358 if (!element) { in sn_bus_store_sysdata()
362 element->sysdata = SN_PCIDEV_INFO(dev); in sn_bus_store_sysdata()
363 list_add(&element->entry, &sn_sysdata_list); in sn_bus_store_sysdata()
368 struct sysdata_el *element; in sn_bus_free_sysdata() local
372 element = list_entry(list, struct sysdata_el, entry); in sn_bus_free_sysdata()
373 list_del(&element->entry); in sn_bus_free_sysdata()
375 (element->sysdata))->pdi_list)); in sn_bus_free_sysdata()
376 kfree(element->sysdata); in sn_bus_free_sysdata()
[all …]
/linux-3.4.99/arch/powerpc/platforms/pseries/
Dhvcserver.c77 struct list_head *element; in hvcs_free_partner_info() local
83 element = head->next; in hvcs_free_partner_info()
84 pi = list_entry(element, struct hvcs_partner_info, node); in hvcs_free_partner_info()
85 list_del(element); in hvcs_free_partner_info()
/linux-3.4.99/drivers/s390/net/
Dqeth_core_main.c1161 if (buf->buffer->element[0].sflags & SBAL_SFLAGS0_PCI_REQ) in qeth_clear_output_buffer()
1168 if (buf->buffer->element[i].addr && buf->is_header[i]) in qeth_clear_output_buffer()
1170 buf->buffer->element[i].addr); in qeth_clear_output_buffer()
1172 buf->buffer->element[i].length = 0; in qeth_clear_output_buffer()
1173 buf->buffer->element[i].addr = NULL; in qeth_clear_output_buffer()
1174 buf->buffer->element[i].eflags = 0; in qeth_clear_output_buffer()
1175 buf->buffer->element[i].sflags = 0; in qeth_clear_output_buffer()
1177 buf->buffer->element[15].eflags = 0; in qeth_clear_output_buffer()
1178 buf->buffer->element[15].sflags = 0; in qeth_clear_output_buffer()
2713 buf->buffer->element[i].length = PAGE_SIZE; in qeth_init_input_buffer()
[all …]
/linux-3.4.99/drivers/s390/scsi/
Dzfcp_qdio.h80 return &qdio->req_q[q_req->sbal_last]->element[0]; in zfcp_qdio_sbale_req()
92 return &qdio->req_q[q_req->sbal_last]->element[q_req->sbale_curr]; in zfcp_qdio_sbale_curr()
223 sbale = qdio->req_q[q_req->sbal_first]->element; in zfcp_qdio_set_data_div()
267 sbale = qdio->req_q[q_req->sbal_first]->element; in zfcp_qdio_set_scount()
/linux-3.4.99/drivers/infiniband/core/
Dsysfs.c479 struct port_table_attribute *element; in alloc_group_attrs() local
487 element = kzalloc(sizeof(struct port_table_attribute), in alloc_group_attrs()
489 if (!element) in alloc_group_attrs()
492 if (snprintf(element->name, sizeof(element->name), in alloc_group_attrs()
493 "%d", i) >= sizeof(element->name)) { in alloc_group_attrs()
494 kfree(element); in alloc_group_attrs()
498 element->attr.attr.name = element->name; in alloc_group_attrs()
499 element->attr.attr.mode = S_IRUGO; in alloc_group_attrs()
500 element->attr.show = show; in alloc_group_attrs()
501 element->index = i; in alloc_group_attrs()
[all …]
/linux-3.4.99/Documentation/
Dflexible-arrays.txt48 element size and total will be checked for validity at compile time.
73 flex_array_put() call on an element in that range is guaranteed not to
80 The return value is a pointer to the data element, or NULL if that
81 particular element has never been allocated.
83 Note that it is possible to get back a valid pointer for an element which
96 This function will set the given element to FLEX_ARRAY_FREE and return
97 zero. If storage for the indicated element is not allocated for the array,
99 element does not release the storage associated with it; to reduce the
/linux-3.4.99/lib/
Dlru_cache.c72 struct lc_element **element = NULL; in lc_create() local
90 element = kzalloc(e_count * sizeof(struct lc_element *), GFP_KERNEL); in lc_create()
91 if (!element) in lc_create()
108 lc->lc_element = element; in lc_create()
121 element[i] = e; in lc_create()
128 void *p = element[i]; in lc_create()
133 kfree(element); in lc_create()
/linux-3.4.99/drivers/net/wireless/iwlwifi/
Diwl-eeprom.c518 int element, s8 *max_txpower_in_half_dbm) in iwl_get_max_txpower_avg() argument
524 (enhanced_txpower[element].chain_a_max > max_txpower_avg)) in iwl_get_max_txpower_avg()
525 max_txpower_avg = enhanced_txpower[element].chain_a_max; in iwl_get_max_txpower_avg()
527 (enhanced_txpower[element].chain_b_max > max_txpower_avg)) in iwl_get_max_txpower_avg()
528 max_txpower_avg = enhanced_txpower[element].chain_b_max; in iwl_get_max_txpower_avg()
530 (enhanced_txpower[element].chain_c_max > max_txpower_avg)) in iwl_get_max_txpower_avg()
531 max_txpower_avg = enhanced_txpower[element].chain_c_max; in iwl_get_max_txpower_avg()
535 (enhanced_txpower[element].mimo2_max > max_txpower_avg)) in iwl_get_max_txpower_avg()
536 max_txpower_avg = enhanced_txpower[element].mimo2_max; in iwl_get_max_txpower_avg()
538 (enhanced_txpower[element].mimo3_max > max_txpower_avg)) in iwl_get_max_txpower_avg()
[all …]
/linux-3.4.99/net/ceph/
Dmsgpool.c25 static void msgpool_free(void *element, void *arg) in msgpool_free() argument
28 struct ceph_msg *msg = element; in msgpool_free()
/linux-3.4.99/drivers/usb/host/
Duhci-debug.c158 __hc32 element = qh_element(qh); in uhci_show_qh() local
176 hc32_to_cpu(uhci, element)); in uhci_show_qh()
186 if (element & UHCI_PTR_QH(uhci)) in uhci_show_qh()
189 if (element & UHCI_PTR_DEPTH(uhci)) in uhci_show_qh()
192 if (element & cpu_to_hc32(uhci, 8)) in uhci_show_qh()
195 if (!(element & ~(UHCI_PTR_QH(uhci) | UHCI_PTR_DEPTH(uhci)))) in uhci_show_qh()
209 if (element != LINK_TO_TD(uhci, td)) in uhci_show_qh()
/linux-3.4.99/Documentation/RCU/
DUP.txt19 is referencing element B when it is interrupted by softirq processing,
20 which deletes element B, and then invokes call_rcu() to free element B
25 element B. This situation can greatly decrease the life expectancy of
40 on each element as it is scanned. Suppose further that this function
41 deletes element B from the list, then passes it to call_rcu() for deferred
Drcuref.txt34 search_and_reference() could potentially hold reference to an element which
63 Sometimes, a reference to the element needs to be obtained in the
/linux-3.4.99/Documentation/power/
Dpm_qos_interface.txt38 Will insert an element into the list for that identified PM QoS class with the
45 Will update the list element pointed to by the handle with the new target value
50 Will remove the element. After removal it will update the aggregate target and
103 Will insert an element into the list for that identified device with the
110 Will update the list element pointed to by the handle with the new target value
115 Will remove the element. After removal it will update the aggregate target and
/linux-3.4.99/drivers/net/ethernet/xscale/ixp2000/
Dixp2400_rx.uc13 * only one full element list is used. This includes, for example,
314 * Copy the mpacket and give back the RBUF element.
317 .reg element
322 alu_shf[element, 0x7f, and, $rsw0, >>24]
328 alu_shf[temp, temp, or, element, <<11]
335 alu[temp, RBUF_ELEMENT_DONE, or, element, <<16]
/linux-3.4.99/drivers/hwmon/
Dacpi_power_meter.c587 union acpi_object *element = &(pss->package.elements[i]); in read_domain_devices() local
590 if (element->type != ACPI_TYPE_LOCAL_REFERENCE) in read_domain_devices()
595 status = acpi_bus_get_device(element->reference.handle, in read_domain_devices()
813 union acpi_object *element = &(pss->package.elements[i]); in read_capabilities() local
815 if (element->type != ACPI_TYPE_STRING) { in read_capabilities()
820 *str = kzalloc(sizeof(u8) * (element->string.length + 1), in read_capabilities()
827 strncpy(*str, element->string.pointer, element->string.length); in read_capabilities()
/linux-3.4.99/Documentation/devicetree/bindings/powerpc/fsl/
Dsrio-rmu.txt65 element is associated with the transmit (TX) interrupt and the
66 second element is associated with the receive (RX) interrupt.
95 element is associated with the transmit (TX) interrupt and the
96 second element is associated with the receive (RX) interrupt.

1234567