Lines Matching refs:fib

333 		struct fib *fibptr) {
361 struct fib * fibptr;
455 struct fib * fibptr;
532 static void get_container_name_callback(void *context, struct fib * fibptr)
584 struct fib * cmd_fibcontext;
633 static void _aac_probe_container2(void * context, struct fib * fibptr)
693 static void _aac_probe_container1(void * context, struct fib * fibptr)
748 struct fib * fibptr;
994 static void get_container_serial_callback(void *context, struct fib * fibptr)
1122 struct fib * cmd_fibcontext;
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)
1230 struct aac_dev *dev = fib->dev;
1234 aac_fib_init(fib);
1239 readcmd2 = (struct aac_raw_io2 *) fib_data(fib);
1256 readcmd = (struct aac_raw_io *) fib_data(fib);
1273 BUG_ON(fibsize > (fib->dev->max_fib_size - sizeof(struct aac_fibhdr)));
1278 fib,
1286 static int aac_read_block64(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count)
1292 aac_fib_init(fib);
1293 readcmd = (struct aac_read64 *) fib_data(fib);
1307 BUG_ON (fibsize > (fib->dev->max_fib_size -
1313 fib,
1321 static int aac_read_block(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count)
1325 struct aac_dev *dev = fib->dev;
1328 aac_fib_init(fib);
1329 readcmd = (struct aac_read *) fib_data(fib);
1342 BUG_ON (fibsize > (fib->dev->max_fib_size -
1348 fib,
1356 static int aac_write_raw_io(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count, int fua)
1358 struct aac_dev *dev = fib->dev;
1362 aac_fib_init(fib);
1367 writecmd2 = (struct aac_raw_io2 *) fib_data(fib);
1375 (((aac_cache & 5) != 5) || !fib->dev->cache_protected)) ?
1387 writecmd = (struct aac_raw_io *) fib_data(fib);
1394 (((aac_cache & 5) != 5) || !fib->dev->cache_protected)) ?
1407 BUG_ON(fibsize > (fib->dev->max_fib_size - sizeof(struct aac_fibhdr)));
1412 fib,
1420 static int aac_write_block64(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count, int fua)
1426 aac_fib_init(fib);
1427 writecmd = (struct aac_write64 *) fib_data(fib);
1441 BUG_ON (fibsize > (fib->dev->max_fib_size -
1447 fib,
1455 static int aac_write_block(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count, int fua)
1459 struct aac_dev *dev = fib->dev;
1462 aac_fib_init(fib);
1463 writecmd = (struct aac_write *) fib_data(fib);
1478 BUG_ON (fibsize > (fib->dev->max_fib_size -
1484 fib,
1492 static struct aac_srb * aac_scsi_common(struct fib * fib, struct scsi_cmnd * cmd)
1497 struct aac_dev *dev = fib->dev;
1499 aac_fib_init(fib);
1516 srbcmd = (struct aac_srb*) fib_data(fib);
1531 static struct aac_hba_cmd_req *aac_construct_hbacmd(struct fib *fib,
1541 hbacmd = (struct aac_hba_cmd_req *)fib->hw_fib_va;
1569 address = (u64)fib->hw_error_pa;
1577 static void aac_srb_callback(void *context, struct fib * fibptr);
1579 static int aac_scsi_64(struct fib * fib, struct scsi_cmnd * cmd)
1582 struct aac_srb * srbcmd = aac_scsi_common(fib, cmd);
1598 BUG_ON (fibsize > (fib->dev->max_fib_size -
1604 return aac_fib_send(ScsiPortCommand64, fib,
1610 static int aac_scsi_32(struct fib * fib, struct scsi_cmnd * cmd)
1613 struct aac_srb * srbcmd = aac_scsi_common(fib, cmd);
1629 BUG_ON (fibsize > (fib->dev->max_fib_size -
1635 return aac_fib_send(ScsiPortCommand, fib, fibsize, FsaNormal, 0, 1,
1639 static int aac_scsi_32_64(struct fib * fib, struct scsi_cmnd * cmd)
1641 if ((sizeof(dma_addr_t) > 4) && fib->dev->needs_dac &&
1642 (fib->dev->adapter_info.options & AAC_OPT_SGMAP_HOST64))
1644 return aac_scsi_32(fib, cmd);
1647 static int aac_adapter_hba(struct fib *fib, struct scsi_cmnd *cmd)
1649 struct aac_hba_cmd_req *hbacmd = aac_construct_hbacmd(fib, cmd);
1656 dev->scsi_host_ptr->sg_tablesize, (u64)fib->hw_sgl_pa);
1663 fib->hbacmd_size = 64 + le32_to_cpu(hbacmd->emb_data_desc_count) *
1666 return aac_hba_send(HBA_IU_TYPE_SCSI_CMD_REQ, fib,
1674 struct fib *fibptr;
2041 struct fib* fibptr;
2318 static void io_callback(void *context, struct fib * fibptr)
2419 struct fib * cmd_fibcontext;
2520 struct fib * cmd_fibcontext;
2605 static void synchronize_callback(void *context, struct fib *fibptr)
2645 struct fib *cmd_fibcontext;
2693 static void aac_start_stop_callback(void *context, struct fib *fibptr)
2712 struct fib *cmd_fibcontext;
3372 * @context: the context set in the fib - here it is scsi cmd
3373 * @fibptr: pointer to the fib
3377 static void aac_srb_callback(void *context, struct fib * fibptr)
3414 * First check the fib status
3646 * @context: the context set in the fib - here it is scsi cmd
3647 * @fibptr: pointer to the fib
3651 void aac_hba_callback(void *context, struct fib *fibptr)
3716 struct fib* cmd_fibcontext;
3757 struct fib *cmd_fibcontext;