detaching         165 drivers/scsi/sg.c 	atomic_t detaching;     /* 0->device usable, 1->device detaching */
detaching         254 drivers/scsi/sg.c 					(atomic_read(&sdp->detaching) ||
detaching         260 drivers/scsi/sg.c 			if (atomic_read(&sdp->detaching))
detaching         267 drivers/scsi/sg.c 					(atomic_read(&sdp->detaching) ||
detaching         273 drivers/scsi/sg.c 			if (atomic_read(&sdp->detaching))
detaching         464 drivers/scsi/sg.c 		if (atomic_read(&sdp->detaching)) {
detaching         473 drivers/scsi/sg.c 			(atomic_read(&sdp->detaching) ||
detaching         475 drivers/scsi/sg.c 		if (atomic_read(&sdp->detaching)) {
detaching         624 drivers/scsi/sg.c 	if (atomic_read(&sdp->detaching))
detaching         821 drivers/scsi/sg.c 	if (atomic_read(&sdp->detaching)) {
detaching         920 drivers/scsi/sg.c 		if (atomic_read(&sdp->detaching))
detaching         931 drivers/scsi/sg.c 			(srp_done(sfp, srp) || atomic_read(&sdp->detaching)));
detaching         932 drivers/scsi/sg.c 		if (atomic_read(&sdp->detaching))
detaching         975 drivers/scsi/sg.c 			if (atomic_read(&sdp->detaching))
detaching        1099 drivers/scsi/sg.c 		if (atomic_read(&sdp->detaching))
detaching        1103 drivers/scsi/sg.c 		if (atomic_read(&sdp->detaching))
detaching        1131 drivers/scsi/sg.c 		if (atomic_read(&sdp->detaching))
detaching        1196 drivers/scsi/sg.c 	if (atomic_read(&sdp->detaching))
detaching        1339 drivers/scsi/sg.c 	if (unlikely(atomic_read(&sdp->detaching)))
detaching        1481 drivers/scsi/sg.c 	atomic_set(&sdp->detaching, 0);
detaching        1611 drivers/scsi/sg.c 	val = atomic_inc_return(&sdp->detaching);
detaching        2169 drivers/scsi/sg.c 	if (atomic_read(&sdp->detaching)) {
detaching        2285 drivers/scsi/sg.c 	else if (atomic_read(&sdp->detaching)) {
detaching        2481 drivers/scsi/sg.c 	    (atomic_read(&sdp->detaching)))
detaching        2507 drivers/scsi/sg.c 	if (sdp && scsidp && (!atomic_read(&sdp->detaching)))
detaching        2597 drivers/scsi/sg.c 		if (atomic_read(&sdp->detaching))