Lines Matching refs:fib
333 struct fib *fibptr) { in aac_valid_context()
361 struct fib * fibptr; in aac_get_config_status()
455 struct fib * fibptr; in aac_get_containers()
532 static void get_container_name_callback(void *context, struct fib * fibptr) in get_container_name_callback()
584 struct fib * cmd_fibcontext; in aac_get_container_name()
633 static void _aac_probe_container2(void * context, struct fib * fibptr) in _aac_probe_container2()
693 static void _aac_probe_container1(void * context, struct fib * fibptr) in _aac_probe_container1()
748 struct fib * fibptr; in _aac_probe_container()
993 static void get_container_serial_callback(void *context, struct fib * fibptr) in get_container_serial_callback()
1121 struct fib * cmd_fibcontext; in aac_get_container_serial()
1225 static void io_callback(void *context, struct fib * fibptr);
1227 static int aac_read_raw_io(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count) in aac_read_raw_io() argument
1229 struct aac_dev *dev = fib->dev; in aac_read_raw_io()
1233 aac_fib_init(fib); in aac_read_raw_io()
1238 readcmd2 = (struct aac_raw_io2 *) fib_data(fib); in aac_read_raw_io()
1255 readcmd = (struct aac_raw_io *) fib_data(fib); in aac_read_raw_io()
1272 BUG_ON(fibsize > (fib->dev->max_fib_size - sizeof(struct aac_fibhdr))); in aac_read_raw_io()
1277 fib, in aac_read_raw_io()
1285 static int aac_read_block64(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count) in aac_read_block64() argument
1291 aac_fib_init(fib); in aac_read_block64()
1292 readcmd = (struct aac_read64 *) fib_data(fib); in aac_read_block64()
1306 BUG_ON (fibsize > (fib->dev->max_fib_size - in aac_read_block64()
1312 fib, in aac_read_block64()
1320 static int aac_read_block(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count) in aac_read_block() argument
1324 struct aac_dev *dev = fib->dev; in aac_read_block()
1327 aac_fib_init(fib); in aac_read_block()
1328 readcmd = (struct aac_read *) fib_data(fib); in aac_read_block()
1341 BUG_ON (fibsize > (fib->dev->max_fib_size - in aac_read_block()
1347 fib, in aac_read_block()
1355 static int aac_write_raw_io(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count, int fua) in aac_write_raw_io() argument
1357 struct aac_dev *dev = fib->dev; in aac_write_raw_io()
1361 aac_fib_init(fib); in aac_write_raw_io()
1366 writecmd2 = (struct aac_raw_io2 *) fib_data(fib); in aac_write_raw_io()
1374 (((aac_cache & 5) != 5) || !fib->dev->cache_protected)) ? in aac_write_raw_io()
1386 writecmd = (struct aac_raw_io *) fib_data(fib); in aac_write_raw_io()
1393 (((aac_cache & 5) != 5) || !fib->dev->cache_protected)) ? in aac_write_raw_io()
1406 BUG_ON(fibsize > (fib->dev->max_fib_size - sizeof(struct aac_fibhdr))); in aac_write_raw_io()
1411 fib, in aac_write_raw_io()
1419 static int aac_write_block64(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count, int fua) in aac_write_block64() argument
1425 aac_fib_init(fib); in aac_write_block64()
1426 writecmd = (struct aac_write64 *) fib_data(fib); in aac_write_block64()
1440 BUG_ON (fibsize > (fib->dev->max_fib_size - in aac_write_block64()
1446 fib, in aac_write_block64()
1454 static int aac_write_block(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count, int fua) in aac_write_block() argument
1458 struct aac_dev *dev = fib->dev; in aac_write_block()
1461 aac_fib_init(fib); in aac_write_block()
1462 writecmd = (struct aac_write *) fib_data(fib); in aac_write_block()
1477 BUG_ON (fibsize > (fib->dev->max_fib_size - in aac_write_block()
1483 fib, in aac_write_block()
1491 static struct aac_srb * aac_scsi_common(struct fib * fib, struct scsi_cmnd * cmd) in aac_scsi_common() argument
1496 struct aac_dev *dev = fib->dev; in aac_scsi_common()
1498 aac_fib_init(fib); in aac_scsi_common()
1515 srbcmd = (struct aac_srb*) fib_data(fib); in aac_scsi_common()
1530 static struct aac_hba_cmd_req *aac_construct_hbacmd(struct fib *fib, in aac_construct_hbacmd() argument
1540 hbacmd = (struct aac_hba_cmd_req *)fib->hw_fib_va; in aac_construct_hbacmd()
1568 address = (u64)fib->hw_error_pa; in aac_construct_hbacmd()
1576 static void aac_srb_callback(void *context, struct fib * fibptr);
1578 static int aac_scsi_64(struct fib * fib, struct scsi_cmnd * cmd) in aac_scsi_64() argument
1581 struct aac_srb * srbcmd = aac_scsi_common(fib, cmd); in aac_scsi_64()
1597 BUG_ON (fibsize > (fib->dev->max_fib_size - in aac_scsi_64()
1603 return aac_fib_send(ScsiPortCommand64, fib, in aac_scsi_64()
1609 static int aac_scsi_32(struct fib * fib, struct scsi_cmnd * cmd) in aac_scsi_32() argument
1612 struct aac_srb * srbcmd = aac_scsi_common(fib, cmd); in aac_scsi_32()
1628 BUG_ON (fibsize > (fib->dev->max_fib_size - in aac_scsi_32()
1634 return aac_fib_send(ScsiPortCommand, fib, fibsize, FsaNormal, 0, 1, in aac_scsi_32()
1638 static int aac_scsi_32_64(struct fib * fib, struct scsi_cmnd * cmd) in aac_scsi_32_64() argument
1640 if ((sizeof(dma_addr_t) > 4) && fib->dev->needs_dac && in aac_scsi_32_64()
1641 (fib->dev->adapter_info.options & AAC_OPT_SGMAP_HOST64)) in aac_scsi_32_64()
1643 return aac_scsi_32(fib, cmd); in aac_scsi_32_64()
1646 static int aac_adapter_hba(struct fib *fib, struct scsi_cmnd *cmd) in aac_adapter_hba() argument
1648 struct aac_hba_cmd_req *hbacmd = aac_construct_hbacmd(fib, cmd); in aac_adapter_hba()
1655 dev->scsi_host_ptr->sg_tablesize, (u64)fib->hw_sgl_pa); in aac_adapter_hba()
1662 fib->hbacmd_size = 64 + le32_to_cpu(hbacmd->emb_data_desc_count) * in aac_adapter_hba()
1665 return aac_hba_send(HBA_IU_TYPE_SCSI_CMD_REQ, fib, in aac_adapter_hba()
1673 struct fib *fibptr; in aac_send_safw_bmic_cmd()
2040 struct fib* fibptr; in aac_get_adapter_info()
2317 static void io_callback(void *context, struct fib * fibptr) in io_callback()
2418 struct fib * cmd_fibcontext; in aac_read()
2519 struct fib * cmd_fibcontext; in aac_write()
2604 static void synchronize_callback(void *context, struct fib *fibptr) in synchronize_callback()
2644 struct fib *cmd_fibcontext; in aac_synchronize()
2692 static void aac_start_stop_callback(void *context, struct fib *fibptr) in aac_start_stop_callback()
2711 struct fib *cmd_fibcontext; in aac_start_stop()
3376 static void aac_srb_callback(void *context, struct fib * fibptr) in aac_srb_callback()
3650 void aac_hba_callback(void *context, struct fib *fibptr) in aac_hba_callback()
3715 struct fib* cmd_fibcontext; in aac_send_srb_fib()
3756 struct fib *cmd_fibcontext; in aac_send_hba_fib()