Lines Matching refs:fibptr
320 struct fib *fibptr) { in aac_valid_context() argument
325 aac_fib_complete(fibptr); in aac_valid_context()
326 aac_fib_free(fibptr); in aac_valid_context()
333 aac_fib_complete(fibptr); in aac_valid_context()
334 aac_fib_free(fibptr); in aac_valid_context()
349 struct fib * fibptr; in aac_get_config_status() local
351 if (!(fibptr = aac_fib_alloc(dev))) in aac_get_config_status()
354 aac_fib_init(fibptr); in aac_get_config_status()
357 dinfo = (struct aac_get_config_status *) fib_data(fibptr); in aac_get_config_status()
365 fibptr, in aac_get_config_status()
374 = (struct aac_get_config_status_resp *) fib_data(fibptr); in aac_get_config_status()
389 aac_fib_complete(fibptr); in aac_get_config_status()
395 aac_fib_init(fibptr); in aac_get_config_status()
396 dinfo = (struct aac_commit_config *) fib_data(fibptr); in aac_get_config_status()
402 fibptr, in aac_get_config_status()
410 aac_fib_complete(fibptr); in aac_get_config_status()
418 aac_fib_free(fibptr); in aac_get_config_status()
443 struct fib * fibptr; in aac_get_containers() local
448 if (!(fibptr = aac_fib_alloc(dev))) in aac_get_containers()
451 aac_fib_init(fibptr); in aac_get_containers()
452 dinfo = (struct aac_get_container_count *) fib_data(fibptr); in aac_get_containers()
457 fibptr, in aac_get_containers()
463 dresp = (struct aac_get_container_count_resp *)fib_data(fibptr); in aac_get_containers()
465 if (fibptr->dev->supplement_adapter_info.SupportedOptions2 & in aac_get_containers()
470 aac_fib_complete(fibptr); in aac_get_containers()
474 aac_fib_free(fibptr); in aac_get_containers()
505 static void get_container_name_callback(void *context, struct fib * fibptr) in get_container_name_callback() argument
512 if (!aac_valid_context(scsicmd, fibptr)) in get_container_name_callback()
516 BUG_ON(fibptr == NULL); in get_container_name_callback()
518 get_name_reply = (struct aac_get_name_resp *) fib_data(fibptr); in get_container_name_callback()
543 aac_fib_complete(fibptr); in get_container_name_callback()
544 aac_fib_free(fibptr); in get_container_name_callback()
605 static void _aac_probe_container2(void * context, struct fib * fibptr) in _aac_probe_container2() argument
612 if (!aac_valid_context(scsicmd, fibptr)) in _aac_probe_container2()
616 fsa_dev_ptr = fibptr->dev->fsa_dev; in _aac_probe_container2()
618 struct aac_mount * dresp = (struct aac_mount *) fib_data(fibptr); in _aac_probe_container2()
624 if (!(fibptr->dev->supplement_adapter_info.SupportedOptions2 & in _aac_probe_container2()
648 aac_fib_complete(fibptr); in _aac_probe_container2()
649 aac_fib_free(fibptr); in _aac_probe_container2()
656 static void _aac_probe_container1(void * context, struct fib * fibptr) in _aac_probe_container1() argument
663 dresp = (struct aac_mount *) fib_data(fibptr); in _aac_probe_container1()
664 if (!(fibptr->dev->supplement_adapter_info.SupportedOptions2 & in _aac_probe_container1()
669 _aac_probe_container2(context, fibptr); in _aac_probe_container1()
674 if (!aac_valid_context(scsicmd, fibptr)) in _aac_probe_container1()
677 aac_fib_init(fibptr); in _aac_probe_container1()
679 dinfo = (struct aac_query_mount *)fib_data(fibptr); in _aac_probe_container1()
681 if (fibptr->dev->supplement_adapter_info.SupportedOptions2 & in _aac_probe_container1()
691 fibptr, in _aac_probe_container1()
705 _aac_probe_container2(context, fibptr); in _aac_probe_container1()
711 struct fib * fibptr; in _aac_probe_container() local
714 if ((fibptr = aac_fib_alloc((struct aac_dev *)scsicmd->device->host->hostdata))) { in _aac_probe_container()
717 aac_fib_init(fibptr); in _aac_probe_container()
719 dinfo = (struct aac_query_mount *)fib_data(fibptr); in _aac_probe_container()
721 if (fibptr->dev->supplement_adapter_info.SupportedOptions2 & in _aac_probe_container()
732 fibptr, in _aac_probe_container()
747 aac_fib_complete(fibptr); in _aac_probe_container()
748 aac_fib_free(fibptr); in _aac_probe_container()
926 static void get_container_serial_callback(void *context, struct fib * fibptr) in get_container_serial_callback() argument
931 BUG_ON(fibptr == NULL); in get_container_serial_callback()
934 if (!aac_valid_context(scsicmd, fibptr)) in get_container_serial_callback()
937 get_serial_reply = (struct aac_get_serial_resp *) fib_data(fibptr); in get_container_serial_callback()
1026 aac_fib_complete(fibptr); in get_container_serial_callback()
1027 aac_fib_free(fibptr); in get_container_serial_callback()
1146 static void io_callback(void *context, struct fib * fibptr);
1446 static void aac_srb_callback(void *context, struct fib * fibptr);
1518 struct fib* fibptr; in aac_get_adapter_info() local
1525 if (!(fibptr = aac_fib_alloc(dev))) in aac_get_adapter_info()
1528 aac_fib_init(fibptr); in aac_get_adapter_info()
1529 info = (struct aac_adapter_info *) fib_data(fibptr); in aac_get_adapter_info()
1533 fibptr, in aac_get_adapter_info()
1544 aac_fib_complete(fibptr); in aac_get_adapter_info()
1545 aac_fib_free(fibptr); in aac_get_adapter_info()
1554 aac_fib_init(fibptr); in aac_get_adapter_info()
1556 sinfo = (struct aac_supplement_adapter_info *) fib_data(fibptr); in aac_get_adapter_info()
1561 fibptr, in aac_get_adapter_info()
1571 fibptr = aac_fib_alloc(dev); in aac_get_adapter_info()
1572 if (!fibptr) in aac_get_adapter_info()
1583 aac_fib_init(fibptr); in aac_get_adapter_info()
1585 bus_info = (struct aac_bus_info_response *) fib_data(fibptr); in aac_get_adapter_info()
1597 fibptr, in aac_get_adapter_info()
1778 aac_fib_complete(fibptr); in aac_get_adapter_info()
1779 aac_fib_free(fibptr); in aac_get_adapter_info()
1786 static void io_callback(void *context, struct fib * fibptr) in io_callback() argument
1795 if (!aac_valid_context(scsicmd, fibptr)) in io_callback()
1798 dev = fibptr->dev; in io_callback()
1836 BUG_ON(fibptr == NULL); in io_callback()
1840 readreply = (struct aac_read_reply *)fib_data(fibptr); in io_callback()
1871 aac_fib_complete(fibptr); in io_callback()
1872 aac_fib_free(fibptr); in io_callback()
2087 static void synchronize_callback(void *context, struct fib *fibptr) in synchronize_callback() argument
2094 if (!aac_valid_context(cmd, fibptr)) in synchronize_callback()
2099 BUG_ON(fibptr == NULL); in synchronize_callback()
2102 synchronizereply = fib_data(fibptr); in synchronize_callback()
2108 struct aac_dev *dev = fibptr->dev; in synchronize_callback()
2123 aac_fib_complete(fibptr); in synchronize_callback()
2124 aac_fib_free(fibptr); in synchronize_callback()
2250 static void aac_start_stop_callback(void *context, struct fib *fibptr) in aac_start_stop_callback() argument
2254 if (!aac_valid_context(scsicmd, fibptr)) in aac_start_stop_callback()
2257 BUG_ON(fibptr == NULL); in aac_start_stop_callback()
2261 aac_fib_complete(fibptr); in aac_start_stop_callback()
2262 aac_fib_free(fibptr); in aac_start_stop_callback()
2968 static void aac_srb_callback(void *context, struct fib * fibptr) in aac_srb_callback() argument
2976 if (!aac_valid_context(scsicmd, fibptr)) in aac_srb_callback()
2979 BUG_ON(fibptr == NULL); in aac_srb_callback()
2981 dev = fibptr->dev; in aac_srb_callback()
2983 srbreply = (struct aac_srb_reply *) fib_data(fibptr); in aac_srb_callback()
2987 if (fibptr->flags & FIB_CONTEXT_FLAG_FASTRESP) { in aac_srb_callback()
3172 aac_fib_complete(fibptr); in aac_srb_callback()
3173 aac_fib_free(fibptr); in aac_srb_callback()