Lines Matching refs:fibptr

333 		struct fib *fibptr) {  in aac_valid_context()  argument
338 aac_fib_complete(fibptr); in aac_valid_context()
345 aac_fib_complete(fibptr); in aac_valid_context()
361 struct fib * fibptr; in aac_get_config_status() local
363 if (!(fibptr = aac_fib_alloc(dev))) in aac_get_config_status()
366 aac_fib_init(fibptr); in aac_get_config_status()
369 dinfo = (struct aac_get_config_status *) fib_data(fibptr); in aac_get_config_status()
377 fibptr, in aac_get_config_status()
386 = (struct aac_get_config_status_resp *) fib_data(fibptr); in aac_get_config_status()
401 aac_fib_complete(fibptr); in aac_get_config_status()
407 aac_fib_init(fibptr); in aac_get_config_status()
408 dinfo = (struct aac_commit_config *) fib_data(fibptr); in aac_get_config_status()
414 fibptr, in aac_get_config_status()
422 aac_fib_complete(fibptr); in aac_get_config_status()
430 aac_fib_free(fibptr); in aac_get_config_status()
455 struct fib * fibptr; in aac_get_containers() local
460 if (!(fibptr = aac_fib_alloc(dev))) in aac_get_containers()
463 aac_fib_init(fibptr); in aac_get_containers()
464 dinfo = (struct aac_get_container_count *) fib_data(fibptr); in aac_get_containers()
469 fibptr, in aac_get_containers()
475 dresp = (struct aac_get_container_count_resp *)fib_data(fibptr); in aac_get_containers()
477 if (fibptr->dev->supplement_adapter_info.supported_options2 & in aac_get_containers()
482 aac_fib_complete(fibptr); in aac_get_containers()
486 aac_fib_free(fibptr); in aac_get_containers()
532 static void get_container_name_callback(void *context, struct fib * fibptr) in get_container_name_callback() argument
539 if (!aac_valid_context(scsicmd, fibptr)) in get_container_name_callback()
543 BUG_ON(fibptr == NULL); in get_container_name_callback()
545 get_name_reply = (struct aac_get_name_resp *) fib_data(fibptr); in get_container_name_callback()
572 aac_fib_complete(fibptr); in get_container_name_callback()
633 static void _aac_probe_container2(void * context, struct fib * fibptr) in _aac_probe_container2() argument
642 if (!aac_valid_context(scsicmd, fibptr)) in _aac_probe_container2()
646 fsa_dev_ptr = fibptr->dev->fsa_dev; in _aac_probe_container2()
648 struct aac_mount * dresp = (struct aac_mount *) fib_data(fibptr); in _aac_probe_container2()
653 fibptr->dev->supplement_adapter_info.supported_options2; in _aac_probe_container2()
685 aac_fib_complete(fibptr); in _aac_probe_container2()
686 aac_fib_free(fibptr); in _aac_probe_container2()
693 static void _aac_probe_container1(void * context, struct fib * fibptr) in _aac_probe_container1() argument
700 dresp = (struct aac_mount *) fib_data(fibptr); in _aac_probe_container1()
701 if (!aac_supports_2T(fibptr->dev)) { in _aac_probe_container1()
705 _aac_probe_container2(context, fibptr); in _aac_probe_container1()
711 if (!aac_valid_context(scsicmd, fibptr)) in _aac_probe_container1()
714 aac_fib_init(fibptr); in _aac_probe_container1()
716 dinfo = (struct aac_query_mount *)fib_data(fibptr); in _aac_probe_container1()
718 if (fibptr->dev->supplement_adapter_info.supported_options2 & in _aac_probe_container1()
729 fibptr, in _aac_probe_container1()
741 _aac_probe_container2(context, fibptr); in _aac_probe_container1()
748 struct fib * fibptr; in _aac_probe_container() local
751 if ((fibptr = aac_fib_alloc((struct aac_dev *)scsicmd->device->host->hostdata))) { in _aac_probe_container()
754 aac_fib_init(fibptr); in _aac_probe_container()
756 dinfo = (struct aac_query_mount *)fib_data(fibptr); in _aac_probe_container()
758 if (fibptr->dev->supplement_adapter_info.supported_options2 & in _aac_probe_container()
770 fibptr, in _aac_probe_container()
784 aac_fib_complete(fibptr); in _aac_probe_container()
785 aac_fib_free(fibptr); in _aac_probe_container()
993 static void get_container_serial_callback(void *context, struct fib * fibptr) in get_container_serial_callback() argument
998 BUG_ON(fibptr == NULL); in get_container_serial_callback()
1001 if (!aac_valid_context(scsicmd, fibptr)) in get_container_serial_callback()
1004 get_serial_reply = (struct aac_get_serial_resp *) fib_data(fibptr); in get_container_serial_callback()
1110 aac_fib_complete(fibptr); in get_container_serial_callback()
1225 static void io_callback(void *context, struct fib * fibptr);
1576 static void aac_srb_callback(void *context, struct fib * fibptr);
1673 struct fib *fibptr; in aac_send_safw_bmic_cmd() local
1687 fibptr = aac_fib_alloc(dev); in aac_send_safw_bmic_cmd()
1688 if (!fibptr) in aac_send_safw_bmic_cmd()
1691 aac_fib_init(fibptr); in aac_send_safw_bmic_cmd()
1692 fibptr->hw_fib_va->header.XferState &= in aac_send_safw_bmic_cmd()
1706 srb = fib_data(fibptr); in aac_send_safw_bmic_cmd()
1736 rcode = aac_fib_send(ScsiPortCommand64, fibptr, fibsize, FsaNormal, in aac_send_safw_bmic_cmd()
1745 srb_reply = (struct aac_srb_reply *)fib_data(fibptr); in aac_send_safw_bmic_cmd()
1751 aac_fib_complete(fibptr); in aac_send_safw_bmic_cmd()
1752 aac_fib_free(fibptr); in aac_send_safw_bmic_cmd()
2040 struct fib* fibptr; in aac_get_adapter_info() local
2047 if (!(fibptr = aac_fib_alloc(dev))) in aac_get_adapter_info()
2050 aac_fib_init(fibptr); in aac_get_adapter_info()
2051 info = (struct aac_adapter_info *) fib_data(fibptr); in aac_get_adapter_info()
2055 fibptr, in aac_get_adapter_info()
2066 aac_fib_complete(fibptr); in aac_get_adapter_info()
2067 aac_fib_free(fibptr); in aac_get_adapter_info()
2077 aac_fib_init(fibptr); in aac_get_adapter_info()
2079 sinfo = (struct aac_supplement_adapter_info *) fib_data(fibptr); in aac_get_adapter_info()
2084 fibptr, in aac_get_adapter_info()
2094 fibptr = aac_fib_alloc(dev); in aac_get_adapter_info()
2095 if (!fibptr) in aac_get_adapter_info()
2113 aac_fib_init(fibptr); in aac_get_adapter_info()
2115 bus_info = (struct aac_bus_info_response *) fib_data(fibptr); in aac_get_adapter_info()
2127 fibptr, in aac_get_adapter_info()
2309 aac_fib_complete(fibptr); in aac_get_adapter_info()
2310 aac_fib_free(fibptr); in aac_get_adapter_info()
2317 static void io_callback(void *context, struct fib * fibptr) in io_callback() argument
2326 if (!aac_valid_context(scsicmd, fibptr)) in io_callback()
2329 dev = fibptr->dev; in io_callback()
2367 BUG_ON(fibptr == NULL); in io_callback()
2371 readreply = (struct aac_read_reply *)fib_data(fibptr); in io_callback()
2407 aac_fib_complete(fibptr); in io_callback()
2604 static void synchronize_callback(void *context, struct fib *fibptr) in synchronize_callback() argument
2609 if (!aac_valid_context(cmd, fibptr)) in synchronize_callback()
2614 BUG_ON(fibptr == NULL); in synchronize_callback()
2617 synchronizereply = fib_data(fibptr); in synchronize_callback()
2622 struct aac_dev *dev = fibptr->dev; in synchronize_callback()
2636 aac_fib_complete(fibptr); in synchronize_callback()
2637 aac_fib_free(fibptr); in synchronize_callback()
2692 static void aac_start_stop_callback(void *context, struct fib *fibptr) in aac_start_stop_callback() argument
2696 if (!aac_valid_context(scsicmd, fibptr)) in aac_start_stop_callback()
2699 BUG_ON(fibptr == NULL); in aac_start_stop_callback()
2703 aac_fib_complete(fibptr); in aac_start_stop_callback()
2704 aac_fib_free(fibptr); in aac_start_stop_callback()
3376 static void aac_srb_callback(void *context, struct fib * fibptr) in aac_srb_callback() argument
3383 if (!aac_valid_context(scsicmd, fibptr)) in aac_srb_callback()
3386 BUG_ON(fibptr == NULL); in aac_srb_callback()
3388 srbreply = (struct aac_srb_reply *) fib_data(fibptr); in aac_srb_callback()
3392 if (fibptr->flags & FIB_CONTEXT_FLAG_FASTRESP) { in aac_srb_callback()
3562 aac_fib_complete(fibptr); in aac_srb_callback()
3650 void aac_hba_callback(void *context, struct fib *fibptr) in aac_hba_callback() argument
3656 &((struct aac_native_hba *)fibptr->hw_fib_va)->resp.err; in aac_hba_callback()
3660 if (!aac_valid_context(scsicmd, fibptr)) in aac_hba_callback()
3663 WARN_ON(fibptr == NULL); in aac_hba_callback()
3664 dev = fibptr->dev; in aac_hba_callback()
3666 if (!(fibptr->flags & FIB_CONTEXT_FLAG_NATIVE_HBA_TMF)) in aac_hba_callback()
3669 if (fibptr->flags & FIB_CONTEXT_FLAG_FASTRESP) { in aac_hba_callback()
3698 aac_fib_complete(fibptr); in aac_hba_callback()
3700 if (fibptr->flags & FIB_CONTEXT_FLAG_NATIVE_HBA_TMF) in aac_hba_callback()