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()
521 static void get_container_name_callback(void *context, struct fib * fibptr) in get_container_name_callback()
573 struct fib * cmd_fibcontext; in aac_get_container_name()
622 static void _aac_probe_container2(void * context, struct fib * fibptr) in _aac_probe_container2()
681 static void _aac_probe_container1(void * context, struct fib * fibptr) in _aac_probe_container1()
735 struct fib * fibptr; in _aac_probe_container()
980 static void get_container_serial_callback(void *context, struct fib * fibptr) in get_container_serial_callback()
1108 struct fib * cmd_fibcontext; in aac_get_container_serial()
1213 static void io_callback(void *context, struct fib * fibptr);
1215 static int aac_read_raw_io(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count) in aac_read_raw_io() argument
1217 struct aac_dev *dev = fib->dev; in aac_read_raw_io()
1221 aac_fib_init(fib); in aac_read_raw_io()
1226 readcmd2 = (struct aac_raw_io2 *) fib_data(fib); in aac_read_raw_io()
1243 readcmd = (struct aac_raw_io *) fib_data(fib); in aac_read_raw_io()
1260 BUG_ON(fibsize > (fib->dev->max_fib_size - sizeof(struct aac_fibhdr))); in aac_read_raw_io()
1265 fib, in aac_read_raw_io()
1273 static int aac_read_block64(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count) in aac_read_block64() argument
1279 aac_fib_init(fib); in aac_read_block64()
1280 readcmd = (struct aac_read64 *) fib_data(fib); in aac_read_block64()
1294 BUG_ON (fibsize > (fib->dev->max_fib_size - in aac_read_block64()
1300 fib, in aac_read_block64()
1308 static int aac_read_block(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count) in aac_read_block() argument
1312 struct aac_dev *dev = fib->dev; in aac_read_block()
1315 aac_fib_init(fib); in aac_read_block()
1316 readcmd = (struct aac_read *) fib_data(fib); in aac_read_block()
1329 BUG_ON (fibsize > (fib->dev->max_fib_size - in aac_read_block()
1335 fib, in aac_read_block()
1343 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
1345 struct aac_dev *dev = fib->dev; in aac_write_raw_io()
1349 aac_fib_init(fib); in aac_write_raw_io()
1354 writecmd2 = (struct aac_raw_io2 *) fib_data(fib); in aac_write_raw_io()
1362 (((aac_cache & 5) != 5) || !fib->dev->cache_protected)) ? in aac_write_raw_io()
1374 writecmd = (struct aac_raw_io *) fib_data(fib); in aac_write_raw_io()
1381 (((aac_cache & 5) != 5) || !fib->dev->cache_protected)) ? in aac_write_raw_io()
1394 BUG_ON(fibsize > (fib->dev->max_fib_size - sizeof(struct aac_fibhdr))); in aac_write_raw_io()
1399 fib, in aac_write_raw_io()
1407 static int aac_write_block64(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count, int fua) in aac_write_block64() argument
1413 aac_fib_init(fib); in aac_write_block64()
1414 writecmd = (struct aac_write64 *) fib_data(fib); in aac_write_block64()
1428 BUG_ON (fibsize > (fib->dev->max_fib_size - in aac_write_block64()
1434 fib, in aac_write_block64()
1442 static int aac_write_block(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count, int fua) in aac_write_block() argument
1446 struct aac_dev *dev = fib->dev; in aac_write_block()
1449 aac_fib_init(fib); in aac_write_block()
1450 writecmd = (struct aac_write *) fib_data(fib); in aac_write_block()
1465 BUG_ON (fibsize > (fib->dev->max_fib_size - in aac_write_block()
1471 fib, in aac_write_block()
1479 static struct aac_srb * aac_scsi_common(struct fib * fib, struct scsi_cmnd * cmd) in aac_scsi_common() argument
1484 struct aac_dev *dev = fib->dev; in aac_scsi_common()
1486 aac_fib_init(fib); in aac_scsi_common()
1503 srbcmd = (struct aac_srb*) fib_data(fib); in aac_scsi_common()
1518 static struct aac_hba_cmd_req *aac_construct_hbacmd(struct fib *fib, in aac_construct_hbacmd() argument
1528 hbacmd = (struct aac_hba_cmd_req *)fib->hw_fib_va; in aac_construct_hbacmd()
1556 address = (u64)fib->hw_error_pa; in aac_construct_hbacmd()
1564 static void aac_srb_callback(void *context, struct fib * fibptr);
1566 static int aac_scsi_64(struct fib * fib, struct scsi_cmnd * cmd) in aac_scsi_64() argument
1569 struct aac_srb * srbcmd = aac_scsi_common(fib, cmd); in aac_scsi_64()
1585 BUG_ON (fibsize > (fib->dev->max_fib_size - in aac_scsi_64()
1591 return aac_fib_send(ScsiPortCommand64, fib, in aac_scsi_64()
1597 static int aac_scsi_32(struct fib * fib, struct scsi_cmnd * cmd) in aac_scsi_32() argument
1600 struct aac_srb * srbcmd = aac_scsi_common(fib, cmd); in aac_scsi_32()
1616 BUG_ON (fibsize > (fib->dev->max_fib_size - in aac_scsi_32()
1622 return aac_fib_send(ScsiPortCommand, fib, fibsize, FsaNormal, 0, 1, in aac_scsi_32()
1626 static int aac_scsi_32_64(struct fib * fib, struct scsi_cmnd * cmd) in aac_scsi_32_64() argument
1628 if ((sizeof(dma_addr_t) > 4) && fib->dev->needs_dac && in aac_scsi_32_64()
1629 (fib->dev->adapter_info.options & AAC_OPT_SGMAP_HOST64)) in aac_scsi_32_64()
1631 return aac_scsi_32(fib, cmd); in aac_scsi_32_64()
1634 static int aac_adapter_hba(struct fib *fib, struct scsi_cmnd *cmd) in aac_adapter_hba() argument
1636 struct aac_hba_cmd_req *hbacmd = aac_construct_hbacmd(fib, cmd); in aac_adapter_hba()
1643 dev->scsi_host_ptr->sg_tablesize, (u64)fib->hw_sgl_pa); in aac_adapter_hba()
1650 fib->hbacmd_size = 64 + le32_to_cpu(hbacmd->emb_data_desc_count) * in aac_adapter_hba()
1653 return aac_hba_send(HBA_IU_TYPE_SCSI_CMD_REQ, fib, in aac_adapter_hba()
1661 struct fib *fibptr; in aac_send_safw_bmic_cmd()
2033 struct fib* fibptr; in aac_get_adapter_info()
2310 static void io_callback(void *context, struct fib * fibptr) in io_callback()
2415 struct fib * cmd_fibcontext; in aac_read()
2517 struct fib * cmd_fibcontext; in aac_write()
2603 static void synchronize_callback(void *context, struct fib *fibptr) in synchronize_callback()
2645 struct fib *cmd_fibcontext; in aac_synchronize()
2693 static void aac_start_stop_callback(void *context, struct fib *fibptr) in aac_start_stop_callback()
2712 struct fib *cmd_fibcontext; in aac_start_stop()
3397 static void aac_srb_callback(void *context, struct fib * fibptr) in aac_srb_callback()
3687 void aac_hba_callback(void *context, struct fib *fibptr) in aac_hba_callback()
3752 struct fib* cmd_fibcontext; in aac_send_srb_fib()
3793 struct fib *cmd_fibcontext; in aac_send_hba_fib()