Lines Matching refs:cb_idx

323 	int		 cb_idx;  in mpt_interrupt()  local
359 cb_idx = 0; in mpt_interrupt()
383 cb_idx = mr->u.frame.hwhdr.msgctxu.fld.cb_idx; in mpt_interrupt()
408 cb_idx = mpt_stm_index; in mpt_interrupt()
412 cb_idx = mpt_lan_index; in mpt_interrupt()
430 cb_idx = 0; in mpt_interrupt()
437 cb_idx = (pa & 0x00FF0000) >> 16; in mpt_interrupt()
452 cb_idx = 0; in mpt_interrupt()
460 cb_idx = 0; in mpt_interrupt()
464 if (cb_idx > (MPT_MAX_PROTOCOL_DRIVERS-1)) { in mpt_interrupt()
466 "mpt_interrupt: Invalid cb_idx (%d)!\n", ioc->name, cb_idx); in mpt_interrupt()
467 cb_idx = 0; in mpt_interrupt()
475 if (cb_idx) { in mpt_interrupt()
477 freeme = (*(MptCallbacks[cb_idx]))(ioc, mf, mr); in mpt_interrupt()
699 mpt_deregister(int cb_idx) in mpt_deregister() argument
701 if ((cb_idx >= 0) && (cb_idx < MPT_MAX_PROTOCOL_DRIVERS)) { in mpt_deregister()
702 MptCallbacks[cb_idx] = NULL; in mpt_deregister()
703 MptDriverClass[cb_idx] = MPTUNKNOWN_DRIVER; in mpt_deregister()
704 MptEvHandlers[cb_idx] = NULL; in mpt_deregister()
707 if (isense_idx != -1 && isense_idx <= cb_idx) in mpt_deregister()
710 if (cb_idx != mpt_base_index) { in mpt_deregister()
729 mpt_event_register(int cb_idx, MPT_EVHANDLER ev_cbfunc) in mpt_event_register() argument
731 if (cb_idx < 1 || cb_idx >= MPT_MAX_PROTOCOL_DRIVERS) in mpt_event_register()
734 MptEvHandlers[cb_idx] = ev_cbfunc; in mpt_event_register()
749 mpt_event_deregister(int cb_idx) in mpt_event_deregister() argument
751 if (cb_idx < 1 || cb_idx >= MPT_MAX_PROTOCOL_DRIVERS) in mpt_event_deregister()
754 MptEvHandlers[cb_idx] = NULL; in mpt_event_deregister()
769 mpt_reset_register(int cb_idx, MPT_RESETHANDLER reset_func) in mpt_reset_register() argument
771 if (cb_idx < 1 || cb_idx >= MPT_MAX_PROTOCOL_DRIVERS) in mpt_reset_register()
774 MptResetHandlers[cb_idx] = reset_func; in mpt_reset_register()
788 mpt_reset_deregister(int cb_idx) in mpt_reset_deregister() argument
790 if (cb_idx < 1 || cb_idx >= MPT_MAX_PROTOCOL_DRIVERS) in mpt_reset_deregister()
793 MptResetHandlers[cb_idx] = NULL; in mpt_reset_deregister()
831 mf->u.frame.hwhdr.msgctxu.fld.cb_idx = handle; /* byte */ in mpt_get_msg_frame()
880 mf->u.frame.hwhdr.msgctxu.fld.cb_idx = handle; /* byte */ in mpt_put_msg_frame()
1047 mf->u.frame.hwhdr.msgctxu.fld.cb_idx = handle; in mpt_send_handshake_request()