Lines Matching refs:ln
1194 struct csio_lnode *ln = ioreq->lnode; in csio_abrt_cls() local
1195 struct csio_hw *hw = ln->hwp; in csio_abrt_cls()
1205 ready = csio_is_lnode_ready(ln); in csio_abrt_cls()
1318 csio_scsim_cleanup_io_lnode(struct csio_scsim *scm, struct csio_lnode *ln) in csio_scsim_cleanup_io_lnode() argument
1325 csio_dbg(hw, "Gathering all SCSI I/Os on lnode %p\n", ln); in csio_scsim_cleanup_io_lnode()
1328 sld.lnode = ln; in csio_scsim_cleanup_io_lnode()
1329 INIT_LIST_HEAD(&ln->cmpl_q); in csio_scsim_cleanup_io_lnode()
1330 csio_scsi_gather_active_ios(scm, &sld, &ln->cmpl_q); in csio_scsim_cleanup_io_lnode()
1333 if (list_empty(&ln->cmpl_q)) in csio_scsim_cleanup_io_lnode()
1337 while (!list_empty(&ln->cmpl_q) && count--) { in csio_scsim_cleanup_io_lnode()
1344 if (list_empty(&ln->cmpl_q)) in csio_scsim_cleanup_io_lnode()
1347 csio_dbg(hw, "Some I/Os pending on ln:%p, aborting them..\n", ln); in csio_scsim_cleanup_io_lnode()
1350 rv = csio_scsi_abort_io_q(scm, &ln->cmpl_q, 30000); in csio_scsim_cleanup_io_lnode()
1353 csio_scsi_cleanup_io_q(scm, &ln->cmpl_q); in csio_scsim_cleanup_io_lnode()
1356 CSIO_DB_ASSERT(list_empty(&ln->cmpl_q)); in csio_scsim_cleanup_io_lnode()
1365 struct csio_lnode *ln = shost_priv(class_to_shost(dev)); in csio_show_hw_state() local
1366 struct csio_hw *hw = csio_lnode_to_hw(ln); in csio_show_hw_state()
1379 struct csio_lnode *ln = shost_priv(class_to_shost(dev)); in csio_device_reset() local
1380 struct csio_hw *hw = csio_lnode_to_hw(ln); in csio_device_reset()
1405 struct csio_lnode *ln = shost_priv(class_to_shost(dev)); in csio_disable_port() local
1406 struct csio_hw *hw = csio_lnode_to_hw(ln); in csio_disable_port()
1415 csio_lnodes_block_by_port(hw, ln->portid); in csio_disable_port()
1418 csio_disable_lnodes(hw, ln->portid, disable); in csio_disable_port()
1422 csio_lnodes_unblock_by_port(hw, ln->portid); in csio_disable_port()
1431 struct csio_lnode *ln = shost_priv(class_to_shost(dev)); in csio_show_dbg_level() local
1433 return sysfs_emit(buf, "%x\n", ln->params.log_level); in csio_show_dbg_level()
1441 struct csio_lnode *ln = shost_priv(class_to_shost(dev)); in csio_store_dbg_level() local
1442 struct csio_hw *hw = csio_lnode_to_hw(ln); in csio_store_dbg_level()
1451 ln->params.log_level = dbg_level; in csio_store_dbg_level()
1477 struct csio_lnode *ln = shost_priv(class_to_shost(dev)); in csio_show_num_reg_rnodes() local
1479 return sysfs_emit(buf, "%d\n", ln->num_reg_rnodes); in csio_show_num_reg_rnodes()
1781 struct csio_lnode *ln = shost_priv(host); in csio_queuecommand() local
1782 struct csio_hw *hw = csio_lnode_to_hw(ln); in csio_queuecommand()
1793 sqset = &hw->sqset[ln->portid][blk_mq_rq_cpu(scsi_cmd_to_rq(cmnd))]; in csio_queuecommand()
1834 ioreq->lnode = ln; in csio_queuecommand()
1845 CSIO_INC_STATS(ln, n_output_requests); in csio_queuecommand()
1846 ln->stats.n_output_bytes += scsi_bufflen(cmnd); in csio_queuecommand()
1848 CSIO_INC_STATS(ln, n_input_requests); in csio_queuecommand()
1849 ln->stats.n_input_bytes += scsi_bufflen(cmnd); in csio_queuecommand()
1851 CSIO_INC_STATS(ln, n_control_requests); in csio_queuecommand()
1892 struct csio_lnode *ln = ioreq->lnode; in csio_do_abrt_cls() local
1893 struct csio_scsi_qset *sqset = &hw->sqset[ln->portid][cpu]; in csio_do_abrt_cls()
1916 struct csio_lnode *ln = shost_priv(cmnd->device->host); in csio_eh_abort_handler() local
1917 struct csio_hw *hw = csio_lnode_to_hw(ln); in csio_eh_abort_handler()
1946 ready = csio_is_lnode_ready(ln); in csio_eh_abort_handler()
2064 struct csio_lnode *ln = shost_priv(cmnd->device->host); in csio_eh_lun_reset_handler() local
2065 struct csio_hw *hw = csio_lnode_to_hw(ln); in csio_eh_lun_reset_handler()
2082 if (!csio_is_lnode_ready(ln)) { in csio_eh_lun_reset_handler()
2086 ln->vnp_flowid, cmnd->device->lun); in csio_eh_lun_reset_handler()
2119 sqset = &hw->sqset[ln->portid][smp_processor_id()]; in csio_eh_lun_reset_handler()
2121 ioreq->lnode = ln; in csio_eh_lun_reset_handler()
2255 struct csio_lnode *ln = shost_priv(shost); in csio_scan_finished() local
2259 if (!ln->hwp || csio_list_deleted(&ln->sm.sm_list)) in csio_scan_finished()
2262 rv = csio_scan_done(ln, jiffies, time, csio_max_scan_tmo * HZ, in csio_scan_finished()