Lines Matching defs:mh
66 #define MODE_PAGE_HEADER(mh) \
67 (struct scsi_mode_page_header *)find_mode_page_6(mh)
533 struct scsi_mode_header_6 *mh; /* Location of mode header. */
542 mh = (struct scsi_mode_header_6 *)data;
543 mph = MODE_PAGE_HEADER(mh);
547 buff_decode_visit(mode_pars, mh->data_length, format,
553 buff_decode_visit(mode_pars, mh->data_length, format,
563 struct scsi_mode_header_6 *mh; /* Location of mode header. */
580 mh = (struct scsi_mode_header_6 *)data;
581 mph = MODE_PAGE_HEADER(mh);
585 buff_encode_visit(mode_pars, mh->data_length, format,
589 bcopy(mph, ((u_int8_t *)mh) + sizeof(*mh),
593 mh->blk_desc_len = 0; /* No block descriptors. */
594 mh->dev_spec = 0; /* Clear device-specific parameters. */
595 mph = MODE_PAGE_HEADER(mh);
599 mh->data_length = 0; /* Reserved for MODE SELECT command. */
608 retries, timeout, (u_int8_t *)mh,
609 sizeof(*mh) + mh->blk_desc_len + sizeof(*mph) + mph->page_length);
783 struct scsi_mode_header_6 *mh; /* Location of mode header. */
790 mh = (struct scsi_mode_header_6 *)data;
791 mph = MODE_PAGE_HEADER(mh);
870 struct scsi_mode_header_6 *mh; /* Location of mode header. */
888 mh = (struct scsi_mode_header_6 *)data;
889 len = sizeof(*mh) + mh->blk_desc_len; /* Skip block descriptors. */
891 while (len < mh->data_length) {
894 ((intptr_t)mh + len);