Lines Matching refs:fcchain
536 int fcp_initialize(fc_channel *fcchain, int count) in fcp_initialize() argument
545 FCND((" SID %d DID %d\n", fcchain->sid, fcchain->did)) in fcp_initialize()
570 for (fc = fcchain, i = 0; fc && i < count; fc = fc->next, i++) { in fcp_initialize()
576 for (fc = fcchain, i = 0; fc && i < count; fc = fc->next, i++) { in fcp_initialize()
590 for (fc = fcchain, i = 0; fc && i < count; fc = fc->next, i++) { in fcp_initialize()
650 for (fc = fcchain, i = 0; fc && i < count; fc = fc->next, i++) { in fcp_initialize()
666 int fcp_forceoffline(fc_channel *fcchain, int count) in fcp_forceoffline() argument
689 for (fc = fcchain, i = 0; fc && i < count; fc = fc->next, i++) { in fcp_forceoffline()
710 for (fc = fcchain, i = 0; fc && i < count; fc = fc->next, i++) in fcp_forceoffline()
716 int fcp_init(fc_channel *fcchain) in fcp_init() argument
722 for (fc = fcchain; fc; fc = fc->next) { in fcp_init()
727 ret = fcp_initialize (fcchain, count); in fcp_init()
732 fc_channels = fcchain; in fcp_init()
735 fc->next = fcchain; in fcp_init()
740 void fcp_release(fc_channel *fcchain, int count) /* count must > 0 */ in fcp_release() argument
745 for (fc = fcchain; --count && fc->next; fc = fc->next); in fcp_release()
751 if (fc_channels == fcchain) in fcp_release()
754 for (fcx = fc_channels; fcx->next != fcchain; fcx = fcx->next); in fcp_release()