Lines Matching refs:ref_md
607 unsigned char ref_md[MAX_ALLOC_LEN];
661 (void) memset(ref_md, 0, MAX_ALLOC_LEN);
665 res = sg_ll_mode_sense10(sg_fd, ref_md, alloc_len);
673 off = sg_mode_page_offset(ref_md, alloc_len);
679 md_len = (ref_md[0] << 8) + ref_md[1] + 2;
681 ref_md[0] = 0;
682 ref_md[1] = 0;
696 if ((clear_data.pageControls & 0x40) != (ref_md[off] & 0x40)) {
704 (void) memcpy(ref_md + off, (const void *) &clear_data,
707 res = sg_ll_mode_select10(sg_fd, ref_md, md_len);