Lines Matching refs:element

152 	 *	   valid element..
163 * element indexes that, instead of memoizing in the softc, we calculate
164 * on the fly during the traversal of the element objects. The various
173 * you may also seek to any particular element by either it's global or
174 * individual element index via the ses_iter_seek_to() function. You may
175 * also return an iterator to the position just before the first element
190 * \brief Index of the type of the current element within the
196 * \brief The position (0 based) of this element relative to all other
205 * \brief The position (0 based) of this element relative to all
210 * an overall status element, individual_element_index is
212 * not apply to the current element.
217 * \brief The position (0 based) of this element relative to
225 * \brief The last valid individual element index of this
228 * When an iterator traverses an overal status element, the
229 * individual element index is reset to ITERATOR_INDEX_INVALID
233 * reaching the next individual element.
374 * \brief Reset a SES iterator to just before the first element
387 * Set our indexes to just before the first valid element
400 * the position just before the first element of the
416 * \brief Traverse the provided SES iterator to the next element
421 * \return If a valid next element exists, a pointer to it's enc_element_t.
448 ("Corrupted element iterator. %d not less than %d",
457 * to one for each allowed element, but only if the element
464 * This next element belongs to the next type.
499 * element status page (page 0xa).
509 * \param element_index The index of the element to find.
512 * \return If the element is found, a pointer to it's enc_element_t.
519 enc_element_t *element;
533 while ((element = ses_iter_next(iter)) != NULL
540 return (element);
714 * The element map is independent even though it starts out
805 * additional element status data for elm, passing that data
946 * specified element.
968 * element.
996 * CAM EDT entries corresponding to a given SES element.
1101 /* Append the element descriptor if one exists */
1118 * status data for this element.
1327 enc_element_t *element;
1456 + /*overall status element*/1;
1471 while ((element = ses_iter_next(&iter)) != NULL) {
1478 element->subenclosure = thdr->etype_subenc;
1479 element->enctype = thdr->etype_elm_type;
1480 element->overall_status_elem = iter.type_element_index == 0;
1481 element->elm_private = ENC_MALLOCZ(sizeof(ses_element_t));
1482 if (element->elm_private == NULL) {
1523 enc_element_t *element;
1590 * Read in individual element status. The element order
1601 && (element = ses_iter_next(&iter)) != NULL) {
1608 memcpy(&element->encstat, cur_stat, sizeof(element->encstat));
1609 element->svalid = 1;
1630 * The enclosure should not provide additional element
1631 * status for this element type in page 0x0A.
1641 * The element type provides additional element status
1647 * The element type may provide additional element status
1693 * \brief Parse the additional status element data for each object.
1697 * element response.
1717 enc_element_t *element, *telement;
1762 && (element = ses_iter_next(&iter)) != NULL) {
1768 * Additional element status is only provided for
1795 element = telement;
1801 ENC_VLOG(enc, "%s: provided element "
1803 " element at index %d\n",
1808 elmpriv = element->elm_private;
1810 ENC_DLOG(enc, "%s: global element index=%d, type index=%d "
1811 "type element index=%d, offset=0x%x, "
1892 enc_element_t *element;
1898 while ((element = ses_iter_next(&iter)) != NULL) {
1901 * the physpath of any element. This allows us to
1903 * many times we process additional element status.
1905 if (ses_set_physpath(enc, element, &iter) == 0)
1906 ses_print_addl_data(enc, element);
1940 enc_element_t *element;
1987 && (element = ses_iter_next(&iter)) != NULL) {
2007 elmpriv = element->elm_private;
2062 enc_element_t *element;
2078 element = ses_iter_seek_to(&iter, req->elm_idx, SES_ELEM_INDEX_GLOBAL);
2079 if (element == NULL)
2084 * The +1 is for the overall status element for the type.
2195 * \brief Print the additional element status data for this object, for SAS
2264 * \brief Print the additional element status data for this object, for SAS
2317 * \brief Print the additional element status data for this object.
2378 * \brief Update the softc with the additional element status data for this
2382 * \param buf The additional element status response buffer.
2437 * \brief Update the softc with the additional element status data for this
2441 * \param buf The additional element status response buffer.
2503 * \brief Update the softc with the additional element status data for this
2507 * \param buf The additional element status response buffer.
2542 "invalid for SES element type 0x%x\n", nobj,
2560 "invalid for SES element type 0x%x\n", nobj,