cb_idx 211 drivers/message/fusion/mptbase.c static void mpt_sas_log_info(MPT_ADAPTER *ioc, u32 log_info , u8 cb_idx); cb_idx 267 drivers/message/fusion/mptbase.c u8 cb_idx; cb_idx 269 drivers/message/fusion/mptbase.c for (cb_idx = MPT_MAX_PROTOCOL_DRIVERS-1; cb_idx; cb_idx--) cb_idx 270 drivers/message/fusion/mptbase.c if (MptDriverClass[cb_idx] == dclass) cb_idx 271 drivers/message/fusion/mptbase.c return cb_idx; cb_idx 448 drivers/message/fusion/mptbase.c u8 cb_idx; cb_idx 456 drivers/message/fusion/mptbase.c cb_idx = (pa & 0x00FF0000) >> 16; cb_idx 460 drivers/message/fusion/mptbase.c cb_idx = mpt_get_cb_idx(MPTLAN_DRIVER); cb_idx 481 drivers/message/fusion/mptbase.c cb_idx = mpt_get_cb_idx(MPTSTM_DRIVER); cb_idx 485 drivers/message/fusion/mptbase.c cb_idx = 0; cb_idx 490 drivers/message/fusion/mptbase.c if (!cb_idx || cb_idx >= MPT_MAX_PROTOCOL_DRIVERS || cb_idx 491 drivers/message/fusion/mptbase.c MptCallbacks[cb_idx] == NULL) { cb_idx 493 drivers/message/fusion/mptbase.c __func__, ioc->name, cb_idx); cb_idx 497 drivers/message/fusion/mptbase.c if (MptCallbacks[cb_idx](ioc, mf, mr)) cb_idx 509 drivers/message/fusion/mptbase.c u8 cb_idx; cb_idx 530 drivers/message/fusion/mptbase.c cb_idx = mr->u.frame.hwhdr.msgctxu.fld.cb_idx; cb_idx 534 drivers/message/fusion/mptbase.c ioc->name, mr, req_idx, cb_idx, mr->u.hdr.Function)); cb_idx 547 drivers/message/fusion/mptbase.c mpt_sas_log_info(ioc, log_info, cb_idx); cb_idx 554 drivers/message/fusion/mptbase.c if (!cb_idx || cb_idx >= MPT_MAX_PROTOCOL_DRIVERS || cb_idx 555 drivers/message/fusion/mptbase.c MptCallbacks[cb_idx] == NULL) { cb_idx 557 drivers/message/fusion/mptbase.c __func__, ioc->name, cb_idx); cb_idx 562 drivers/message/fusion/mptbase.c freeme = MptCallbacks[cb_idx](ioc, mf, mr); cb_idx 703 drivers/message/fusion/mptbase.c u8 cb_idx; cb_idx 710 drivers/message/fusion/mptbase.c for (cb_idx = MPT_MAX_PROTOCOL_DRIVERS-1; cb_idx; cb_idx--) { cb_idx 711 drivers/message/fusion/mptbase.c if (MptCallbacks[cb_idx] == NULL) { cb_idx 712 drivers/message/fusion/mptbase.c MptCallbacks[cb_idx] = cbfunc; cb_idx 713 drivers/message/fusion/mptbase.c MptDriverClass[cb_idx] = dclass; cb_idx 714 drivers/message/fusion/mptbase.c MptEvHandlers[cb_idx] = NULL; cb_idx 715 drivers/message/fusion/mptbase.c last_drv_idx = cb_idx; cb_idx 716 drivers/message/fusion/mptbase.c strlcpy(MptCallbacksName[cb_idx], func_name, cb_idx 734 drivers/message/fusion/mptbase.c mpt_deregister(u8 cb_idx) cb_idx 736 drivers/message/fusion/mptbase.c if (cb_idx && (cb_idx < MPT_MAX_PROTOCOL_DRIVERS)) { cb_idx 737 drivers/message/fusion/mptbase.c MptCallbacks[cb_idx] = NULL; cb_idx 738 drivers/message/fusion/mptbase.c MptDriverClass[cb_idx] = MPTUNKNOWN_DRIVER; cb_idx 739 drivers/message/fusion/mptbase.c MptEvHandlers[cb_idx] = NULL; cb_idx 757 drivers/message/fusion/mptbase.c mpt_event_register(u8 cb_idx, MPT_EVHANDLER ev_cbfunc) cb_idx 759 drivers/message/fusion/mptbase.c if (!cb_idx || cb_idx >= MPT_MAX_PROTOCOL_DRIVERS) cb_idx 762 drivers/message/fusion/mptbase.c MptEvHandlers[cb_idx] = ev_cbfunc; cb_idx 776 drivers/message/fusion/mptbase.c mpt_event_deregister(u8 cb_idx) cb_idx 778 drivers/message/fusion/mptbase.c if (!cb_idx || cb_idx >= MPT_MAX_PROTOCOL_DRIVERS) cb_idx 781 drivers/message/fusion/mptbase.c MptEvHandlers[cb_idx] = NULL; cb_idx 796 drivers/message/fusion/mptbase.c mpt_reset_register(u8 cb_idx, MPT_RESETHANDLER reset_func) cb_idx 798 drivers/message/fusion/mptbase.c if (!cb_idx || cb_idx >= MPT_MAX_PROTOCOL_DRIVERS) cb_idx 801 drivers/message/fusion/mptbase.c MptResetHandlers[cb_idx] = reset_func; cb_idx 815 drivers/message/fusion/mptbase.c mpt_reset_deregister(u8 cb_idx) cb_idx 817 drivers/message/fusion/mptbase.c if (!cb_idx || cb_idx >= MPT_MAX_PROTOCOL_DRIVERS) cb_idx 820 drivers/message/fusion/mptbase.c MptResetHandlers[cb_idx] = NULL; cb_idx 830 drivers/message/fusion/mptbase.c mpt_device_driver_register(struct mpt_pci_driver * dd_cbfunc, u8 cb_idx) cb_idx 835 drivers/message/fusion/mptbase.c if (!cb_idx || cb_idx >= MPT_MAX_PROTOCOL_DRIVERS) cb_idx 838 drivers/message/fusion/mptbase.c MptDeviceDriverHandlers[cb_idx] = dd_cbfunc; cb_idx 857 drivers/message/fusion/mptbase.c mpt_device_driver_deregister(u8 cb_idx) cb_idx 862 drivers/message/fusion/mptbase.c if (!cb_idx || cb_idx >= MPT_MAX_PROTOCOL_DRIVERS) cb_idx 865 drivers/message/fusion/mptbase.c dd_cbfunc = MptDeviceDriverHandlers[cb_idx]; cb_idx 872 drivers/message/fusion/mptbase.c MptDeviceDriverHandlers[cb_idx] = NULL; cb_idx 889 drivers/message/fusion/mptbase.c mpt_get_msg_frame(u8 cb_idx, MPT_ADAPTER *ioc) cb_idx 915 drivers/message/fusion/mptbase.c mf->u.frame.hwhdr.msgctxu.fld.cb_idx = cb_idx; /* byte */ cb_idx 943 drivers/message/fusion/mptbase.c ioc->name, cb_idx, ioc->id, mf)); cb_idx 958 drivers/message/fusion/mptbase.c mpt_put_msg_frame(u8 cb_idx, MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf) cb_idx 965 drivers/message/fusion/mptbase.c mf->u.frame.hwhdr.msgctxu.fld.cb_idx = cb_idx; /* byte */ cb_idx 994 drivers/message/fusion/mptbase.c mpt_put_msg_frame_hi_pri(u8 cb_idx, MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf) cb_idx 1001 drivers/message/fusion/mptbase.c mf->u.frame.hwhdr.msgctxu.fld.cb_idx = cb_idx; cb_idx 1184 drivers/message/fusion/mptbase.c mpt_send_handshake_request(u8 cb_idx, MPT_ADAPTER *ioc, int reqBytes, u32 *req, int sleepFlag) cb_idx 1204 drivers/message/fusion/mptbase.c mf->u.frame.hwhdr.msgctxu.fld.cb_idx = cb_idx; cb_idx 1775 drivers/message/fusion/mptbase.c u8 cb_idx; cb_idx 2033 drivers/message/fusion/mptbase.c for(cb_idx = 0; cb_idx < MPT_MAX_PROTOCOL_DRIVERS; cb_idx++) { cb_idx 2034 drivers/message/fusion/mptbase.c if(MptDeviceDriverHandlers[cb_idx] && cb_idx 2035 drivers/message/fusion/mptbase.c MptDeviceDriverHandlers[cb_idx]->probe) { cb_idx 2036 drivers/message/fusion/mptbase.c MptDeviceDriverHandlers[cb_idx]->probe(pdev,id); cb_idx 2089 drivers/message/fusion/mptbase.c u8 cb_idx; cb_idx 2117 drivers/message/fusion/mptbase.c for(cb_idx = 0; cb_idx < MPT_MAX_PROTOCOL_DRIVERS; cb_idx++) { cb_idx 2118 drivers/message/fusion/mptbase.c if(MptDeviceDriverHandlers[cb_idx] && cb_idx 2119 drivers/message/fusion/mptbase.c MptDeviceDriverHandlers[cb_idx]->remove) { cb_idx 2120 drivers/message/fusion/mptbase.c MptDeviceDriverHandlers[cb_idx]->remove(pdev); cb_idx 3975 drivers/message/fusion/mptbase.c u8 cb_idx; cb_idx 4000 drivers/message/fusion/mptbase.c for (cb_idx = MPT_MAX_PROTOCOL_DRIVERS-1; cb_idx; cb_idx--) { cb_idx 4001 drivers/message/fusion/mptbase.c if (MptResetHandlers[cb_idx]) cb_idx 4002 drivers/message/fusion/mptbase.c (*(MptResetHandlers[cb_idx]))(ioc, cb_idx 4102 drivers/message/fusion/mptbase.c for (cb_idx = MPT_MAX_PROTOCOL_DRIVERS-1; cb_idx; cb_idx--) { cb_idx 4103 drivers/message/fusion/mptbase.c if (MptResetHandlers[cb_idx]) { cb_idx 4104 drivers/message/fusion/mptbase.c mpt_signal_reset(cb_idx, cb_idx 4107 drivers/message/fusion/mptbase.c mpt_signal_reset(cb_idx, cb_idx 6657 drivers/message/fusion/mptbase.c u8 cb_idx; cb_idx 6665 drivers/message/fusion/mptbase.c for (cb_idx = MPT_MAX_PROTOCOL_DRIVERS-1; cb_idx; cb_idx--) { cb_idx 6667 drivers/message/fusion/mptbase.c if (MptCallbacks[cb_idx]) { cb_idx 6668 drivers/message/fusion/mptbase.c switch (MptDriverClass[cb_idx]) { cb_idx 6973 drivers/message/fusion/mptbase.c u8 cb_idx; cb_idx 7009 drivers/message/fusion/mptbase.c for (cb_idx = MPT_MAX_PROTOCOL_DRIVERS-1; cb_idx; cb_idx--) { cb_idx 7010 drivers/message/fusion/mptbase.c if (MptResetHandlers[cb_idx]) cb_idx 7011 drivers/message/fusion/mptbase.c mpt_signal_reset(cb_idx, ioc, MPT_IOC_SETUP_RESET); cb_idx 7028 drivers/message/fusion/mptbase.c for (cb_idx = MPT_MAX_PROTOCOL_DRIVERS-1; cb_idx; cb_idx--) { cb_idx 7029 drivers/message/fusion/mptbase.c if (MptResetHandlers[cb_idx]) cb_idx 7030 drivers/message/fusion/mptbase.c mpt_signal_reset(cb_idx, ioc, MPT_IOC_PRE_RESET); cb_idx 7084 drivers/message/fusion/mptbase.c for (cb_idx = MPT_MAX_PROTOCOL_DRIVERS-1; cb_idx; cb_idx--) { cb_idx 7085 drivers/message/fusion/mptbase.c if (MptResetHandlers[cb_idx]) cb_idx 7086 drivers/message/fusion/mptbase.c mpt_signal_reset(cb_idx, ioc, cb_idx 7145 drivers/message/fusion/mptbase.c u8 cb_idx; cb_idx 7187 drivers/message/fusion/mptbase.c for (cb_idx = MPT_MAX_PROTOCOL_DRIVERS-1; cb_idx; cb_idx--) { cb_idx 7188 drivers/message/fusion/mptbase.c if (MptResetHandlers[cb_idx]) { cb_idx 7189 drivers/message/fusion/mptbase.c mpt_signal_reset(cb_idx, ioc, MPT_IOC_SETUP_RESET); cb_idx 7191 drivers/message/fusion/mptbase.c mpt_signal_reset(cb_idx, ioc->alt_ioc, cb_idx 7219 drivers/message/fusion/mptbase.c for (cb_idx = MPT_MAX_PROTOCOL_DRIVERS-1; cb_idx; cb_idx--) { cb_idx 7220 drivers/message/fusion/mptbase.c if (MptResetHandlers[cb_idx]) { cb_idx 7221 drivers/message/fusion/mptbase.c mpt_signal_reset(cb_idx, ioc, MPT_IOC_POST_RESET); cb_idx 7223 drivers/message/fusion/mptbase.c mpt_signal_reset(cb_idx, cb_idx 7700 drivers/message/fusion/mptbase.c u8 cb_idx; cb_idx 7769 drivers/message/fusion/mptbase.c for (cb_idx = MPT_MAX_PROTOCOL_DRIVERS-1; cb_idx; cb_idx--) { cb_idx 7770 drivers/message/fusion/mptbase.c if (MptEvHandlers[cb_idx]) { cb_idx 7773 drivers/message/fusion/mptbase.c ioc->name, cb_idx)); cb_idx 7774 drivers/message/fusion/mptbase.c r += (*(MptEvHandlers[cb_idx]))(ioc, pEventReply); cb_idx 8061 drivers/message/fusion/mptbase.c mpt_sas_log_info(MPT_ADAPTER *ioc, u32 log_info, u8 cb_idx) cb_idx 8117 drivers/message/fusion/mptbase.c sub_code_desc, MptCallbacksName[cb_idx]); cb_idx 8123 drivers/message/fusion/mptbase.c sas_loginfo.dw.subcode, MptCallbacksName[cb_idx]); cb_idx 8130 drivers/message/fusion/mptbase.c MptCallbacksName[cb_idx]); cb_idx 8480 drivers/message/fusion/mptbase.c u8 cb_idx; cb_idx 8485 drivers/message/fusion/mptbase.c for (cb_idx = 0; cb_idx < MPT_MAX_PROTOCOL_DRIVERS; cb_idx++) { cb_idx 8486 drivers/message/fusion/mptbase.c MptCallbacks[cb_idx] = NULL; cb_idx 8487 drivers/message/fusion/mptbase.c MptDriverClass[cb_idx] = MPTUNKNOWN_DRIVER; cb_idx 8488 drivers/message/fusion/mptbase.c MptEvHandlers[cb_idx] = NULL; cb_idx 8489 drivers/message/fusion/mptbase.c MptResetHandlers[cb_idx] = NULL; cb_idx 299 drivers/message/fusion/mptbase.h u8 cb_idx; /* callback function index */ cb_idx 918 drivers/message/fusion/mptbase.h extern void mpt_deregister(u8 cb_idx); cb_idx 919 drivers/message/fusion/mptbase.h extern int mpt_event_register(u8 cb_idx, MPT_EVHANDLER ev_cbfunc); cb_idx 920 drivers/message/fusion/mptbase.h extern void mpt_event_deregister(u8 cb_idx); cb_idx 921 drivers/message/fusion/mptbase.h extern int mpt_reset_register(u8 cb_idx, MPT_RESETHANDLER reset_func); cb_idx 922 drivers/message/fusion/mptbase.h extern void mpt_reset_deregister(u8 cb_idx); cb_idx 923 drivers/message/fusion/mptbase.h extern int mpt_device_driver_register(struct mpt_pci_driver * dd_cbfunc, u8 cb_idx); cb_idx 924 drivers/message/fusion/mptbase.h extern void mpt_device_driver_deregister(u8 cb_idx); cb_idx 925 drivers/message/fusion/mptbase.h extern MPT_FRAME_HDR *mpt_get_msg_frame(u8 cb_idx, MPT_ADAPTER *ioc); cb_idx 927 drivers/message/fusion/mptbase.h extern void mpt_put_msg_frame(u8 cb_idx, MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf); cb_idx 928 drivers/message/fusion/mptbase.h extern void mpt_put_msg_frame_hi_pri(u8 cb_idx, MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf); cb_idx 930 drivers/message/fusion/mptbase.h extern int mpt_send_handshake_request(u8 cb_idx, MPT_ADAPTER *ioc, int reqBytes, u32 *req, int sleepFlag); cb_idx 1346 drivers/scsi/mpt3sas/mpt3sas_base.c u8 cb_idx = 0xFF; cb_idx 1354 drivers/scsi/mpt3sas/mpt3sas_base.c cb_idx = st->cb_idx; cb_idx 1356 drivers/scsi/mpt3sas/mpt3sas_base.c cb_idx = ioc->ctl_cb_idx; cb_idx 1359 drivers/scsi/mpt3sas/mpt3sas_base.c cb_idx = ioc->hpr_lookup[i].cb_idx; cb_idx 1362 drivers/scsi/mpt3sas/mpt3sas_base.c cb_idx = ioc->internal_lookup[i].cb_idx; cb_idx 1364 drivers/scsi/mpt3sas/mpt3sas_base.c return cb_idx; cb_idx 1435 drivers/scsi/mpt3sas/mpt3sas_base.c u8 cb_idx; cb_idx 1454 drivers/scsi/mpt3sas/mpt3sas_base.c cb_idx = 0xFF; cb_idx 1467 drivers/scsi/mpt3sas/mpt3sas_base.c cb_idx = _base_get_cb_idx(ioc, smid); cb_idx 1468 drivers/scsi/mpt3sas/mpt3sas_base.c if ((likely(cb_idx < MPT_MAX_CALLBACKS)) && cb_idx 1469 drivers/scsi/mpt3sas/mpt3sas_base.c (likely(mpt_callbacks[cb_idx] != NULL))) { cb_idx 1470 drivers/scsi/mpt3sas/mpt3sas_base.c rc = mpt_callbacks[cb_idx](ioc, smid, cb_idx 1483 drivers/scsi/mpt3sas/mpt3sas_base.c cb_idx = _base_get_cb_idx(ioc, smid); cb_idx 1484 drivers/scsi/mpt3sas/mpt3sas_base.c if ((likely(cb_idx < MPT_MAX_CALLBACKS)) && cb_idx 1485 drivers/scsi/mpt3sas/mpt3sas_base.c (likely(mpt_callbacks[cb_idx] != NULL))) { cb_idx 1486 drivers/scsi/mpt3sas/mpt3sas_base.c rc = mpt_callbacks[cb_idx](ioc, smid, cb_idx 1731 drivers/scsi/mpt3sas/mpt3sas_base.c mpt3sas_base_release_callback_handler(u8 cb_idx) cb_idx 1733 drivers/scsi/mpt3sas/mpt3sas_base.c mpt_callbacks[cb_idx] = NULL; cb_idx 1745 drivers/scsi/mpt3sas/mpt3sas_base.c u8 cb_idx; cb_idx 1747 drivers/scsi/mpt3sas/mpt3sas_base.c for (cb_idx = MPT_MAX_CALLBACKS-1; cb_idx; cb_idx--) cb_idx 1748 drivers/scsi/mpt3sas/mpt3sas_base.c if (mpt_callbacks[cb_idx] == NULL) cb_idx 1751 drivers/scsi/mpt3sas/mpt3sas_base.c mpt_callbacks[cb_idx] = cb_func; cb_idx 1752 drivers/scsi/mpt3sas/mpt3sas_base.c return cb_idx; cb_idx 1761 drivers/scsi/mpt3sas/mpt3sas_base.c u8 cb_idx; cb_idx 1763 drivers/scsi/mpt3sas/mpt3sas_base.c for (cb_idx = 0; cb_idx < MPT_MAX_CALLBACKS; cb_idx++) cb_idx 1764 drivers/scsi/mpt3sas/mpt3sas_base.c mpt3sas_base_release_callback_handler(cb_idx); cb_idx 3506 drivers/scsi/mpt3sas/mpt3sas_base.c mpt3sas_base_get_smid(struct MPT3SAS_ADAPTER *ioc, u8 cb_idx) cb_idx 3521 drivers/scsi/mpt3sas/mpt3sas_base.c request->cb_idx = cb_idx; cb_idx 3537 drivers/scsi/mpt3sas/mpt3sas_base.c mpt3sas_base_get_smid_scsiio(struct MPT3SAS_ADAPTER *ioc, u8 cb_idx, cb_idx 3545 drivers/scsi/mpt3sas/mpt3sas_base.c request->cb_idx = cb_idx; cb_idx 3560 drivers/scsi/mpt3sas/mpt3sas_base.c mpt3sas_base_get_smid_hpr(struct MPT3SAS_ADAPTER *ioc, u8 cb_idx) cb_idx 3574 drivers/scsi/mpt3sas/mpt3sas_base.c request->cb_idx = cb_idx; cb_idx 3599 drivers/scsi/mpt3sas/mpt3sas_base.c st->cb_idx = 0xFF; cb_idx 3640 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->hpr_lookup[i].cb_idx = 0xFF; cb_idx 3645 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->internal_lookup[i].cb_idx = 0xFF; cb_idx 6772 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->hpr_lookup[i].cb_idx = 0xFF; cb_idx 6782 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->internal_lookup[i].cb_idx = 0xFF; cb_idx 836 drivers/scsi/mpt3sas/mpt3sas_base.h u8 cb_idx; cb_idx 851 drivers/scsi/mpt3sas/mpt3sas_base.h u8 cb_idx; cb_idx 1507 drivers/scsi/mpt3sas/mpt3sas_base.h u16 mpt3sas_base_get_smid_hpr(struct MPT3SAS_ADAPTER *ioc, u8 cb_idx); cb_idx 1508 drivers/scsi/mpt3sas/mpt3sas_base.h u16 mpt3sas_base_get_smid_scsiio(struct MPT3SAS_ADAPTER *ioc, u8 cb_idx, cb_idx 1513 drivers/scsi/mpt3sas/mpt3sas_base.h u16 mpt3sas_base_get_smid(struct MPT3SAS_ADAPTER *ioc, u8 cb_idx); cb_idx 1517 drivers/scsi/mpt3sas/mpt3sas_base.h void mpt3sas_base_release_callback_handler(u8 cb_idx); cb_idx 1498 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (st->cb_idx == 0xFF || st->smid == 0) cb_idx 2894 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (st == NULL || st->cb_idx == 0xFF) { cb_idx 2920 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (r == SUCCESS && st->cb_idx != 0xFF) cb_idx 4004 drivers/scsi/mpt3sas/mpt3sas_scsih.c ioc->internal_lookup[i].cb_idx = ioc->base_cb_idx; cb_idx 4062 drivers/scsi/mpt3sas/mpt3sas_scsih.c ioc->internal_lookup[i].cb_idx = ioc->tm_sas_control_cb_idx; cb_idx 7484 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (r == FAILED || st->cb_idx != 0xFF) {