Home
last modified time | relevance | path

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

123

/drivers/acpi/
Dutils.c97 union acpi_object *element = &(package->package.elements[i]); in acpi_extract_package() local
99 if (!element) { in acpi_extract_package()
103 switch (element->type) { in acpi_extract_package()
133 (element->string.length * sizeof(char)) + in acpi_extract_package()
140 (element->buffer.length * sizeof(u8)); in acpi_extract_package()
183 union acpi_object *element = &(package->package.elements[i]); in acpi_extract_package() local
185 if (!element) { in acpi_extract_package()
189 switch (element->type) { in acpi_extract_package()
195 element->integer.value; in acpi_extract_package()
202 element->integer.value; in acpi_extract_package()
[all …]
Dscan.c663 union acpi_object *element = NULL; in acpi_bus_extract_wakeup_device_power_package() local
668 element = &(package->package.elements[0]); in acpi_bus_extract_wakeup_device_power_package()
669 if (!element) in acpi_bus_extract_wakeup_device_power_package()
671 if (element->type == ACPI_TYPE_PACKAGE) { in acpi_bus_extract_wakeup_device_power_package()
672 if ((element->package.count < 2) || in acpi_bus_extract_wakeup_device_power_package()
673 (element->package.elements[0].type != in acpi_bus_extract_wakeup_device_power_package()
675 || (element->package.elements[1].type != ACPI_TYPE_INTEGER)) in acpi_bus_extract_wakeup_device_power_package()
678 element->package.elements[0].reference.handle; in acpi_bus_extract_wakeup_device_power_package()
680 (u32) element->package.elements[1].integer.value; in acpi_bus_extract_wakeup_device_power_package()
681 } else if (element->type == ACPI_TYPE_INTEGER) { in acpi_bus_extract_wakeup_device_power_package()
[all …]
Dbattery.c302 union acpi_object *element; in extract_package() local
308 element = &package->package.elements[i]; in extract_package()
311 if (element->type == ACPI_TYPE_STRING || in extract_package()
312 element->type == ACPI_TYPE_BUFFER) in extract_package()
313 strncpy(ptr, element->string.pointer, 32); in extract_package()
314 else if (element->type == ACPI_TYPE_INTEGER) { in extract_package()
315 strncpy(ptr, (u8 *)&element->integer.value, in extract_package()
322 *x = (element->type == ACPI_TYPE_INTEGER) ? in extract_package()
323 element->integer.value : -1; in extract_package()
Dprocessor_idle.c398 union acpi_object *element; in acpi_processor_get_power_info_cst() local
405 element = &(cst->package.elements[i]); in acpi_processor_get_power_info_cst()
406 if (element->type != ACPI_TYPE_PACKAGE) in acpi_processor_get_power_info_cst()
409 if (element->package.count != 4) in acpi_processor_get_power_info_cst()
412 obj = &(element->package.elements[0]); in acpi_processor_get_power_info_cst()
424 obj = &(element->package.elements[1]); in acpi_processor_get_power_info_cst()
480 obj = &(element->package.elements[2]); in acpi_processor_get_power_info_cst()
486 obj = &(element->package.elements[3]); in acpi_processor_get_power_info_cst()
/drivers/s390/net/
Dqeth_core_offl.c110 int element = 0; in qeth_eddp_fill_buffer() local
122 if (element == 0) in qeth_eddp_fill_buffer()
152 if (ctx->elements[element].length != 0) { in qeth_eddp_fill_buffer()
153 buffer->element[buf->next_element_to_fill]. in qeth_eddp_fill_buffer()
154 addr = ctx->elements[element].addr; in qeth_eddp_fill_buffer()
155 buffer->element[buf->next_element_to_fill]. in qeth_eddp_fill_buffer()
156 length = ctx->elements[element].length; in qeth_eddp_fill_buffer()
157 buffer->element[buf->next_element_to_fill]. in qeth_eddp_fill_buffer()
158 flags = ctx->elements[element].flags; in qeth_eddp_fill_buffer()
161 element++; in qeth_eddp_fill_buffer()
[all …]
Dqeth_core_main.c76 int element, cnt, dlen; in __qeth_fill_buffer_frag() local
79 element = *next_element_to_fill; in __qeth_fill_buffer_frag()
83 buffer->element[element].flags = in __qeth_fill_buffer_frag()
86 buffer->element[element].flags = in __qeth_fill_buffer_frag()
90 buffer->element[element].addr = skb->data; in __qeth_fill_buffer_frag()
91 buffer->element[element].length = dlen; in __qeth_fill_buffer_frag()
92 element++; in __qeth_fill_buffer_frag()
98 buffer->element[element].addr = (char *)addr; in __qeth_fill_buffer_frag()
99 buffer->element[element].length = frag->size; in __qeth_fill_buffer_frag()
101 buffer->element[element].flags = in __qeth_fill_buffer_frag()
[all …]
/drivers/infiniband/core/
Dsysfs.c448 struct port_table_attribute *element; in alloc_group_attrs() local
456 element = kzalloc(sizeof(struct port_table_attribute), in alloc_group_attrs()
458 if (!element) in alloc_group_attrs()
461 if (snprintf(element->name, sizeof(element->name), in alloc_group_attrs()
462 "%d", i) >= sizeof(element->name)) { in alloc_group_attrs()
463 kfree(element); in alloc_group_attrs()
467 element->attr.attr.name = element->name; in alloc_group_attrs()
468 element->attr.attr.mode = S_IRUGO; in alloc_group_attrs()
469 element->attr.show = show; in alloc_group_attrs()
470 element->index = i; in alloc_group_attrs()
[all …]
Duverbs_main.c414 __u64 element, __u64 event, in ib_uverbs_async_handler() argument
433 entry->desc.async.element = element; in ib_uverbs_async_handler()
448 struct ib_ucq_object *uobj = container_of(event->element.cq->uobject, in ib_uverbs_cq_event_handler()
460 uobj = container_of(event->element.qp->uobject, in ib_uverbs_qp_event_handler()
472 uobj = container_of(event->element.srq->uobject, in ib_uverbs_srq_event_handler()
486 ib_uverbs_async_handler(file, event->element.port_num, event->event, in ib_uverbs_event_handler()
/drivers/usb/host/
Duhci-hcd.h129 __le32 element; /* Queue element (TD) pointer */ member
167 __le32 element = qh->element; in qh_element() local
170 return element; in qh_element()
Duhci-debug.c153 __le32 element = qh_element(qh); in uhci_show_qh() local
170 le32_to_cpu(qh->link), le32_to_cpu(element)); in uhci_show_qh()
180 if (element & UHCI_PTR_QH) in uhci_show_qh()
183 if (element & UHCI_PTR_DEPTH) in uhci_show_qh()
186 if (element & cpu_to_le32(8)) in uhci_show_qh()
189 if (!(element & ~(UHCI_PTR_QH | UHCI_PTR_DEPTH))) in uhci_show_qh()
203 if (element != LINK_TO_TD(td)) in uhci_show_qh()
Duhci-q.c256 qh->element = UHCI_PTR_TERM; in uhci_alloc_qh()
351 qh->element = UHCI_PTR_TERM; in uhci_cleanup_queue()
490 qh->element = LINK_TO_TD(td); in uhci_activate_qh()
1111 qh->element = LINK_TO_TD(td); in uhci_fixup_short_transfer()
1125 qh->element = td->link; in uhci_fixup_short_transfer()
1214 qh->element = UHCI_PTR_TERM; in uhci_result_common()
1685 qh->element = qh->post_td->link; in uhci_advance_check()
/drivers/net/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]
Dixp2400_tx.uc139 * Determine tbuf element index, SOP/EOP flags, mpacket
222 * Mark TBUF element as ready-to-be-transmitted.
/drivers/net/wireless/iwlwifi/
Diwl-rx.c192 struct list_head *element; in iwl_rx_queue_restock() local
202 element = rxq->rx_free.next; in iwl_rx_queue_restock()
203 rxb = list_entry(element, struct iwl_rx_mem_buffer, list); in iwl_rx_queue_restock()
204 list_del(element); in iwl_rx_queue_restock()
244 struct list_head *element; in iwl_rx_allocate() local
255 element = rxq->rx_used.next; in iwl_rx_allocate()
256 rxb = list_entry(element, struct iwl_rx_mem_buffer, list); in iwl_rx_allocate()
257 list_del(element); in iwl_rx_allocate()
/drivers/net/sfc/
Dbitfield.h130 #define EFX_EXTRACT64(element, min, max, low, high) \ argument
131 EFX_EXTRACT_NATIVE(le64_to_cpu(element), min, max, low, high)
137 #define EFX_EXTRACT32(element, min, max, low, high) \ argument
138 EFX_EXTRACT_NATIVE(le32_to_cpu(element), min, max, low, high)
/drivers/infiniband/hw/amso1100/
Dc2_ae.c233 ib_event.element.qp = &qp->ibqp; in c2_ae_event()
303 ib_event.element.cq = &cq->ibcq; in c2_ae_event()
/drivers/infiniband/hw/cxgb3/
Diwch_ev.c82 event.element.cq = &chp->ibcq; in post_qp_event()
84 event.element.qp = &qhp->ibqp; in post_qp_event()
/drivers/staging/et131x/
Det1310_rx.c924 struct list_head *element; in nic_rx_pkts() local
1025 element = pRxLocal->RecvList.next; in nic_rx_pkts()
1026 pMpRfd = (PMP_RFD) list_entry(element, MP_RFD, list_node); in nic_rx_pkts()
1192 struct list_head *element; in et131x_reset_recv() local
1202 element = pAdapter->RxRing.RecvPendingList.next; in et131x_reset_recv()
1204 pMpRfd = (PMP_RFD) list_entry(element, MP_RFD, list_node); in et131x_reset_recv()
/drivers/net/wireless/ipw2x00/
Dipw2100.c700 struct list_head *element; in ipw2100_hw_send_command() local
742 element = priv->msg_free_list.next; in ipw2100_hw_send_command()
744 packet = list_entry(element, struct ipw2100_tx_packet, list); in ipw2100_hw_send_command()
758 list_del(element); in ipw2100_hw_send_command()
761 list_add_tail(element, &priv->msg_pend_list); in ipw2100_hw_send_command()
2758 struct list_head *element; in __ipw2100_tx_process() local
2767 element = priv->fw_pend_list.next; in __ipw2100_tx_process()
2769 packet = list_entry(element, struct ipw2100_tx_packet, list); in __ipw2100_tx_process()
2833 list_del(element); in __ipw2100_tx_process()
2881 list_add_tail(element, &priv->tx_free_list); in __ipw2100_tx_process()
[all …]
/drivers/infiniband/hw/mthca/
Dmthca_mad.c124 event.element.port_num = port_num; in smp_snoop()
137 event.element.port_num = port_num; in smp_snoop()
Dmthca_catas.c90 event.element.port_num = 0; in handle_catas()
/drivers/infiniband/ulp/ipoib/
Dipoib_verbs.c276 if (record->element.port_num != priv->port) in ipoib_event()
280 record->device->name, record->element.port_num); in ipoib_event()
/drivers/platform/x86/
Dpanasonic-laptop.c295 union acpi_object *element = &(hkey->package.elements[i]); in acpi_pcc_retrieve_biosdata() local
296 if (likely(element->type == ACPI_TYPE_INTEGER)) { in acpi_pcc_retrieve_biosdata()
297 sinf[i] = element->integer.value; in acpi_pcc_retrieve_biosdata()
/drivers/infiniband/hw/mlx4/
Dmad.c166 event.element.port_num = port_num; in smp_snoop()
179 event.element.port_num = port_num; in smp_snoop()
/drivers/s390/scsi/
Dzfcp_qdio.c37 return &q->sbal[sbal_idx]->element[sbale_idx]; in zfcp_qdio_sbale()
469 sbale = &(adapter->resp_q.sbal[cc]->element[0]); in zfcp_qdio_open()

123