Lines Matching refs:page_buf
525 uchar_t *page_buf;
591 if ((page_buf = (uchar_t *)calloc(1,
599 (void) g_destroy_data(page_buf);
603 if (err = l_get_envsen_page(fd, page_buf, MAX_REC_DIAG_LENGTH,
607 (void) g_destroy_data(page_buf);
611 page_len = (page_buf[2] << 8 | page_buf[3]) + HEADER_LEN;
617 (void) g_destroy_data(page_buf);
657 elem = (struct device_element *)(page_buf + offset);
722 (uchar_t *)page_buf, page_len)) {
724 (void) g_destroy_data(page_buf);
729 bzero(page_buf, MAX_REC_DIAG_LENGTH);
730 if (err = l_get_envsen_page(fd, page_buf, MAX_REC_DIAG_LENGTH,
732 (void) g_destroy_data(page_buf);
737 elem = (struct device_element *)(page_buf + offset);
749 (void) g_destroy_data(page_buf);
1189 uchar_t *page_buf;
1216 if ((page_buf = (uchar_t *)malloc(MAX_REC_DIAG_LENGTH)) == NULL) {
1219 if (err = l_get_envsen_page(fd, page_buf, MAX_REC_DIAG_LENGTH,
1222 (void) g_destroy_data(page_buf);
1226 page_len = (page_buf[2] << 8 | page_buf[3]) + HEADER_LEN;
1231 (void) g_destroy_data(page_buf);
1238 (void) g_destroy_data(page_buf);
1248 front_elem = (struct device_element *)(page_buf + front_offset);
1249 rear_elem = (struct device_element *)(page_buf + rear_offset);
1285 (uchar_t *)page_buf, page_len)) {
1287 (void) g_destroy_data(page_buf);
1291 (void) g_destroy_data(page_buf);