SD_RESERVE
if ((un->un_resvd_status & SD_RESERVE) == SD_RESERVE) {
err = sd_reserve_release(dev, SD_RESERVE);
un->un_resvd_status |= SD_RESERVE;
un->un_resvd_status &= ~SD_RESERVE;
~(SD_RESERVE | SD_LOST_RESERVE | SD_WANT_RESERVE);
if (un->un_resvd_status & SD_RESERVE) {
(un->un_resvd_status & SD_RESERVE)) {
if ((un->un_resvd_status & SD_RESERVE) &&
if ((un->un_resvd_status & SD_RESERVE) == SD_RESERVE) {
if ((un->un_resvd_status & SD_RESERVE) == SD_RESERVE) {
SD_RESERVE) == 0) {
un->un_resvd_status |= SD_RESERVE;
if ((un->un_resvd_status & SD_RESERVE) == SD_RESERVE) {
un->un_resvd_status |= SD_RESERVE;
if ((err = sd_reserve_release(dev, SD_RESERVE)) != 0) {
if ((sd_reserve_release(dev, SD_RESERVE)) != 0) {
un->un_resvd_status |= SD_RESERVE;
ASSERT((cmd == SD_RELEASE) || (cmd == SD_RESERVE) ||
(SD_RESERVE | SD_WANT_RESERVE | SD_LOST_RESERVE)) {
(SD_RESERVE | SD_WANT_RESERVE | SD_LOST_RESERVE))) {
if ((un->un_resvd_status & SD_RESERVE) &&
if (((un)->un_resvd_status & SD_RESERVE) == SD_RESERVE) { \