Searched refs:mode_hdr (Results 1 – 3 of 3) sorted by relevance
81 struct scsi_mode_header_10 *mode_hdr = NULL; in set_restore_flags() local129 mode_hdr = (struct scsi_mode_header_10 *)&mode_buf[0]; in set_restore_flags()130 blk_desc_length = scsi_2btoul(mode_hdr->blk_desc_len); in set_restore_flags()
3892 struct scsi_mode_header_6 *mode_hdr; in sagetparams() local3908 mode_buffer_len = sizeof(*mode_hdr) + sizeof(*mode_blk); in sagetparams()3924 mode_hdr = (struct scsi_mode_header_6 *)mode_buffer; in sagetparams()3925 mode_blk = (struct scsi_mode_blk_desc *)&mode_hdr[1]; in sagetparams()3967 if ((mode_hdr->blk_desc_len == 0) && in sagetparams()3983 bcopy(&mode_hdr[0], &mode_hdr[1], sizeof (sa_comp_t)); in sagetparams()3984 bzero(&mode_hdr[0], sizeof (mode_hdr[0])); in sagetparams()4010 *buff_mode = mode_hdr->dev_spec & SMH_SA_BUF_MODE_MASK; in sagetparams()4016 *write_protect = (mode_hdr->dev_spec & SMH_SA_WP)? TRUE : FALSE; in sagetparams()4019 *speed = mode_hdr->dev_spec & SMH_SA_SPEED_MASK; in sagetparams()[all …]
1428 struct scsi_mode_header_6 *mode_hdr; in probedone() local1431 mode_hdr = (struct scsi_mode_header_6 *)csio->data_ptr; in probedone()1436 offset = ((u_int8_t *)&mode_hdr[1]) in probedone()1437 + mode_hdr->blk_desc_len; in probedone()1449 free(mode_hdr, M_CAMXPT); in probedone()