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