PERIPH_OPEN
periph->periph_flags |= PERIPH_OPEN;
if ((periph->periph_flags & (PERIPH_OPEN | PERIPH_MEDIA_LOADED)) ==
PERIPH_OPEN) {
periph->periph_flags &= ~PERIPH_OPEN;
if (periph->periph_flags & PERIPH_OPEN)
if (periph->periph_flags & PERIPH_OPEN)
periph->periph_flags |= PERIPH_OPEN;
periph->periph_flags &= ~PERIPH_OPEN;
periph->periph_flags &= ~PERIPH_OPEN;
periph->periph_flags |= PERIPH_OPEN;
periph->periph_flags &= ~PERIPH_OPEN;
periph->periph_flags |= PERIPH_OPEN;
periph->periph_flags &= ~PERIPH_OPEN;
periph->periph_flags |= PERIPH_OPEN;
if ((periph->periph_flags & (PERIPH_OPEN | PERIPH_MEDIA_LOADED)) ==
PERIPH_OPEN) {
periph->periph_flags &= ~PERIPH_OPEN;
if (periph->periph_flags & PERIPH_OPEN)
if (periph->periph_flags & PERIPH_OPEN) {
periph->periph_flags |= PERIPH_OPEN; /* unit attn now errors */
periph->periph_flags &= ~PERIPH_OPEN;
periph->periph_flags &= ~PERIPH_OPEN;
if (periph->periph_flags & PERIPH_OPEN)
if ((periph->periph_flags & PERIPH_OPEN) == 0)
if (periph->periph_flags & PERIPH_OPEN) {
periph->periph_flags |= PERIPH_OPEN;
periph->periph_flags |= PERIPH_OPEN;
periph->periph_flags |= PERIPH_OPEN; /* unit attn are now errors */
periph->periph_flags &= ~PERIPH_OPEN;
periph->periph_flags &= ~PERIPH_OPEN;
if (periph->periph_flags & PERIPH_OPEN) {
periph->periph_flags |= PERIPH_OPEN;
periph->periph_flags &= ~PERIPH_OPEN;