Lines Matching full:fib

290 	" blocks (FIB) allocated. Valid values are 512 and down. Default is"
295 MODULE_PARM_DESC(acbsize, "Request a specific adapter control block (FIB)"
333 struct fib *fibptr) { in aac_valid_context()
361 struct fib * fibptr; in aac_get_config_status()
428 /* FIB should be freed only after getting the response from the F/W */ in aac_get_config_status()
455 struct fib * fibptr; in aac_get_containers()
484 /* FIB should be freed only after getting the response from the F/W */ 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()
994 static void get_container_serial_callback(void *context, struct fib * fibptr) in get_container_serial_callback()
1122 struct fib * cmd_fibcontext; in aac_get_container_serial()
1226 static void io_callback(void *context, struct fib * fibptr);
1228 static int aac_read_raw_io(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count) in aac_read_raw_io() argument
1230 struct aac_dev *dev = fib->dev; in aac_read_raw_io()
1234 aac_fib_init(fib); in aac_read_raw_io()
1239 readcmd2 = (struct aac_raw_io2 *) fib_data(fib); in aac_read_raw_io()
1256 readcmd = (struct aac_raw_io *) fib_data(fib); in aac_read_raw_io()
1273 BUG_ON(fibsize > (fib->dev->max_fib_size - sizeof(struct aac_fibhdr))); in aac_read_raw_io()
1275 * Now send the Fib to the adapter in aac_read_raw_io()
1278 fib, in aac_read_raw_io()
1286 static int aac_read_block64(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count) in aac_read_block64() argument
1292 aac_fib_init(fib); in aac_read_block64()
1293 readcmd = (struct aac_read64 *) fib_data(fib); in aac_read_block64()
1307 BUG_ON (fibsize > (fib->dev->max_fib_size - in aac_read_block64()
1310 * Now send the Fib to the adapter in aac_read_block64()
1313 fib, in aac_read_block64()
1321 static int aac_read_block(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count) in aac_read_block() argument
1325 struct aac_dev *dev = fib->dev; in aac_read_block()
1328 aac_fib_init(fib); in aac_read_block()
1329 readcmd = (struct aac_read *) fib_data(fib); in aac_read_block()
1342 BUG_ON (fibsize > (fib->dev->max_fib_size - in aac_read_block()
1345 * Now send the Fib to the adapter in aac_read_block()
1348 fib, in aac_read_block()
1356 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
1358 struct aac_dev *dev = fib->dev; in aac_write_raw_io()
1362 aac_fib_init(fib); in aac_write_raw_io()
1367 writecmd2 = (struct aac_raw_io2 *) fib_data(fib); in aac_write_raw_io()
1375 (((aac_cache & 5) != 5) || !fib->dev->cache_protected)) ? in aac_write_raw_io()
1387 writecmd = (struct aac_raw_io *) fib_data(fib); in aac_write_raw_io()
1394 (((aac_cache & 5) != 5) || !fib->dev->cache_protected)) ? in aac_write_raw_io()
1407 BUG_ON(fibsize > (fib->dev->max_fib_size - sizeof(struct aac_fibhdr))); in aac_write_raw_io()
1409 * Now send the Fib to the adapter in aac_write_raw_io()
1412 fib, in aac_write_raw_io()
1420 static int aac_write_block64(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count, int fua) in aac_write_block64() argument
1426 aac_fib_init(fib); in aac_write_block64()
1427 writecmd = (struct aac_write64 *) fib_data(fib); in aac_write_block64()
1441 BUG_ON (fibsize > (fib->dev->max_fib_size - in aac_write_block64()
1444 * Now send the Fib to the adapter in aac_write_block64()
1447 fib, in aac_write_block64()
1455 static int aac_write_block(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count, int fua) in aac_write_block() argument
1459 struct aac_dev *dev = fib->dev; in aac_write_block()
1462 aac_fib_init(fib); in aac_write_block()
1463 writecmd = (struct aac_write *) fib_data(fib); in aac_write_block()
1478 BUG_ON (fibsize > (fib->dev->max_fib_size - in aac_write_block()
1481 * Now send the Fib to the adapter in aac_write_block()
1484 fib, in aac_write_block()
1492 static struct aac_srb * aac_scsi_common(struct fib * fib, struct scsi_cmnd * cmd) in aac_scsi_common() argument
1497 struct aac_dev *dev = fib->dev; in aac_scsi_common()
1499 aac_fib_init(fib); in aac_scsi_common()
1516 srbcmd = (struct aac_srb*) fib_data(fib); in aac_scsi_common()
1531 static struct aac_hba_cmd_req *aac_construct_hbacmd(struct fib *fib, in aac_construct_hbacmd() argument
1541 hbacmd = (struct aac_hba_cmd_req *)fib->hw_fib_va; in aac_construct_hbacmd()
1569 address = (u64)fib->hw_error_pa; in aac_construct_hbacmd()
1577 static void aac_srb_callback(void *context, struct fib * fibptr);
1579 static int aac_scsi_64(struct fib * fib, struct scsi_cmnd * cmd) in aac_scsi_64() argument
1582 struct aac_srb * srbcmd = aac_scsi_common(fib, cmd); in aac_scsi_64()
1598 BUG_ON (fibsize > (fib->dev->max_fib_size - in aac_scsi_64()
1602 * Now send the Fib to the adapter in aac_scsi_64()
1604 return aac_fib_send(ScsiPortCommand64, fib, in aac_scsi_64()
1610 static int aac_scsi_32(struct fib * fib, struct scsi_cmnd * cmd) in aac_scsi_32() argument
1613 struct aac_srb * srbcmd = aac_scsi_common(fib, cmd); in aac_scsi_32()
1629 BUG_ON (fibsize > (fib->dev->max_fib_size - in aac_scsi_32()
1633 * Now send the Fib to the adapter in aac_scsi_32()
1635 return aac_fib_send(ScsiPortCommand, fib, fibsize, FsaNormal, 0, 1, in aac_scsi_32()
1639 static int aac_scsi_32_64(struct fib * fib, struct scsi_cmnd * cmd) in aac_scsi_32_64() argument
1641 if ((sizeof(dma_addr_t) > 4) && fib->dev->needs_dac && in aac_scsi_32_64()
1642 (fib->dev->adapter_info.options & AAC_OPT_SGMAP_HOST64)) in aac_scsi_32_64()
1644 return aac_scsi_32(fib, cmd); in aac_scsi_32_64()
1647 static int aac_adapter_hba(struct fib *fib, struct scsi_cmnd *cmd) in aac_adapter_hba() argument
1649 struct aac_hba_cmd_req *hbacmd = aac_construct_hbacmd(fib, cmd); in aac_adapter_hba()
1656 dev->scsi_host_ptr->sg_tablesize, (u64)fib->hw_sgl_pa); in aac_adapter_hba()
1663 fib->hbacmd_size = 64 + le32_to_cpu(hbacmd->emb_data_desc_count) * in aac_adapter_hba()
1666 return aac_hba_send(HBA_IU_TYPE_SCSI_CMD_REQ, fib, in aac_adapter_hba()
1674 struct fib *fibptr; in aac_send_safw_bmic_cmd()
1687 /* allocate FIB */ in aac_send_safw_bmic_cmd()
2040 struct fib* fibptr; in aac_get_adapter_info()
2063 /* FIB should be freed only after in aac_get_adapter_info()
2306 /* FIB should be freed only after getting the response from the F/W */ in aac_get_adapter_info()
2316 static void io_callback(void *context, struct fib * fibptr) in io_callback()
2417 struct fib * cmd_fibcontext; in aac_read()
2488 * Alocate and initialize a Fib in aac_read()
2502 * For some reason, the Fib didn't queue, return QUEUE_FULL in aac_read()
2518 struct fib * cmd_fibcontext; in aac_write()
2579 * Allocate and initialize a Fib then setup a BlockWrite command in aac_write()
2593 * For some reason, the Fib didn't queue, return QUEUE_FULL in aac_write()
2603 static void synchronize_callback(void *context, struct fib *fibptr) in synchronize_callback()
2643 struct fib *cmd_fibcontext; in aac_synchronize()
2653 * Allocate and initialize a Fib in aac_synchronize()
2668 * Now send the Fib to the adapter in aac_synchronize()
2691 static void aac_start_stop_callback(void *context, struct fib *fibptr) in aac_start_stop_callback()
2710 struct fib *cmd_fibcontext; in aac_start_stop()
2726 * Allocate and initialize a Fib in aac_start_stop()
2744 * Now send the Fib to the adapter in aac_start_stop()
2880 /* Issue FIB to tell Firmware to flush it's cache */ in aac_scsi_cmd()
3370 * @context: the context set in the fib - here it is scsi cmd
3371 * @fibptr: pointer to the fib
3375 static void aac_srb_callback(void *context, struct fib * fibptr) in aac_srb_callback()
3412 * First check the fib status in aac_srb_callback()
3644 * @context: the context set in the fib - here it is scsi cmd
3645 * @fibptr: pointer to the fib
3649 void aac_hba_callback(void *context, struct fib *fibptr) in aac_hba_callback()
3709 * This routine will form a FIB and fill in the aac_srb from the
3714 struct fib* cmd_fibcontext; in aac_send_srb_fib()
3727 * Allocate and initialize a Fib then setup a BlockWrite command in aac_send_srb_fib()
3750 * This routine will form a FIB and fill in the aac_hba_cmd_req from the
3755 struct fib *cmd_fibcontext; in aac_send_hba_fib()
3768 * Allocate and initialize a Fib then setup a BlockWrite command in aac_send_hba_fib()