Searched refs:mode_hdr (Results 1 – 3 of 3) sorted by relevance
78 struct scsi_mode_header_10 *mode_hdr = NULL; in set_restore_flags() local126 mode_hdr = (struct scsi_mode_header_10 *)&mode_buf[0]; in set_restore_flags()127 blk_desc_length = scsi_2btoul(mode_hdr->blk_desc_len); in set_restore_flags()
3885 struct scsi_mode_header_6 *mode_hdr; in sagetparams() local3901 mode_buffer_len = sizeof(*mode_hdr) + sizeof(*mode_blk); in sagetparams()3917 mode_hdr = (struct scsi_mode_header_6 *)mode_buffer; in sagetparams()3918 mode_blk = (struct scsi_mode_blk_desc *)&mode_hdr[1]; in sagetparams()3960 if ((mode_hdr->blk_desc_len == 0) && in sagetparams()3975 bcopy(&mode_hdr[0], &mode_hdr[1], sizeof (sa_comp_t)); in sagetparams()3976 bzero(&mode_hdr[0], sizeof (mode_hdr[0])); in sagetparams()4002 *buff_mode = mode_hdr->dev_spec & SMH_SA_BUF_MODE_MASK; in sagetparams()4008 *write_protect = (mode_hdr->dev_spec & SMH_SA_WP)? TRUE : FALSE; in sagetparams()4011 *speed = mode_hdr->dev_spec & SMH_SA_SPEED_MASK; in sagetparams()[all …]
1408 struct scsi_mode_header_6 *mode_hdr; in probedone() local1411 mode_hdr = (struct scsi_mode_header_6 *)csio->data_ptr; in probedone()1416 offset = ((uint8_t *)&mode_hdr[1]) in probedone()1417 + mode_hdr->blk_desc_len; in probedone()1429 free(mode_hdr, M_CAMXPT); in probedone()