/drivers/scsi/libfc/ |
D | fc_lport.c | 107 static void fc_lport_enter_fdmi(struct fc_lport *lport); 141 struct fc_lport *lport; member 153 static int fc_frame_drop(struct fc_lport *lport, struct fc_frame *fp) in fc_frame_drop() argument 168 static void fc_lport_rport_callback(struct fc_lport *lport, in fc_lport_rport_callback() argument 172 FC_LPORT_DBG(lport, "Received a %d event for port (%6.6x)\n", event, in fc_lport_rport_callback() 175 mutex_lock(&lport->lp_mutex); in fc_lport_rport_callback() 178 if (lport->state == LPORT_ST_DNS) { in fc_lport_rport_callback() 179 lport->dns_rdata = rdata; in fc_lport_rport_callback() 180 fc_lport_enter_ns(lport, LPORT_ST_RNN_ID); in fc_lport_rport_callback() 181 } else if (lport->state == LPORT_ST_FDMI) { in fc_lport_rport_callback() [all …]
|
D | fc_rport.c | 104 struct fc_rport_priv *fc_rport_lookup(const struct fc_lport *lport, in fc_rport_lookup() argument 110 list_for_each_entry_rcu(tmp_rdata, &lport->disc.rports, peers) in fc_rport_lookup() 128 struct fc_rport_priv *fc_rport_create(struct fc_lport *lport, u32 port_id) in fc_rport_create() argument 133 lockdep_assert_held(&lport->disc.disc_mutex); in fc_rport_create() 135 rdata = fc_rport_lookup(lport, port_id); in fc_rport_create() 139 if (lport->rport_priv_size > 0) in fc_rport_create() 140 rport_priv_size = lport->rport_priv_size; in fc_rport_create() 152 rdata->local_port = lport; in fc_rport_create() 156 rdata->e_d_tov = lport->e_d_tov; in fc_rport_create() 157 rdata->r_a_tov = lport->r_a_tov; in fc_rport_create() [all …]
|
D | fc_disc.c | 72 struct fc_lport *lport; in fc_disc_recv_rscn_req() local 85 lport = fc_disc_lport(disc); in fc_disc_recv_rscn_req() 127 dp->lp = lport; in fc_disc_recv_rscn_req() 151 redisc = fc_disc_single(lport, dp); in fc_disc_recv_rscn_req() 160 redisc, lport->state, disc->pending); in fc_disc_recv_rscn_req() 181 static void fc_disc_recv_req(struct fc_lport *lport, struct fc_frame *fp) in fc_disc_recv_req() argument 184 struct fc_disc *disc = &lport->disc; in fc_disc_recv_req() 235 struct fc_lport *lport) in fc_disc_start() argument 237 struct fc_disc *disc = &lport->disc; in fc_disc_start() 257 struct fc_lport *lport = fc_disc_lport(disc); in fc_disc_done() local [all …]
|
D | fc_fcp.c | 135 static struct fc_fcp_pkt *fc_fcp_pkt_alloc(struct fc_lport *lport, gfp_t gfp) in fc_fcp_pkt_alloc() argument 137 struct fc_fcp_internal *si = fc_get_scsi_internal(lport); in fc_fcp_pkt_alloc() 143 fsp->lp = lport; in fc_fcp_pkt_alloc() 150 per_cpu_ptr(lport->stats, get_cpu())->FcpPktAllocFails++; in fc_fcp_pkt_alloc() 318 struct fc_lport *lport; in fc_fcp_ddp_setup() local 320 lport = fsp->lp; in fc_fcp_ddp_setup() 322 (lport->lro_enabled) && (lport->tt.ddp_setup)) { in fc_fcp_ddp_setup() 323 if (lport->tt.ddp_setup(lport, xid, scsi_sglist(fsp->cmd), in fc_fcp_ddp_setup() 336 struct fc_lport *lport; in fc_fcp_ddp_done() local 344 lport = fsp->lp; in fc_fcp_ddp_done() [all …]
|
D | fc_exch.c | 85 struct fc_lport *lport; member 462 static int fc_seq_send_locked(struct fc_lport *lport, struct fc_seq *sp, in fc_seq_send_locked() argument 498 error = lport->tt.frame_send(lport, fp); in fc_seq_send_locked() 524 int fc_seq_send(struct fc_lport *lport, struct fc_seq *sp, struct fc_frame *fp) in fc_seq_send() argument 530 error = fc_seq_send_locked(lport, sp, fp); in fc_seq_send() 808 static struct fc_exch *fc_exch_em_alloc(struct fc_lport *lport, in fc_exch_em_alloc() argument 875 ep->lp = lport; in fc_exch_em_alloc() 902 static struct fc_exch *fc_exch_alloc(struct fc_lport *lport, in fc_exch_alloc() argument 908 list_for_each_entry(ema, &lport->ema_list, ema_list) { in fc_exch_alloc() 910 ep = fc_exch_em_alloc(lport, ema->mp); in fc_exch_alloc() [all …]
|
D | fc_elsct.c | 31 struct fc_seq *fc_elsct_send(struct fc_lport *lport, u32 did, in fc_elsct_send() argument 44 rc = fc_els_fill(lport, did, fp, op, &r_ctl, &fh_type); in fc_elsct_send() 47 rc = fc_ct_fill(lport, did, fp, op, &r_ctl, &fh_type, &did); in fc_elsct_send() 55 fc_fill_fc_hdr(fp, r_ctl, did, lport->port_id, fh_type, in fc_elsct_send() 58 return fc_exch_seq_send(lport, fp, resp, NULL, arg, timer_msec); in fc_elsct_send() 66 int fc_elsct_init(struct fc_lport *lport) in fc_elsct_init() argument 68 if (!lport->tt.elsct_send) in fc_elsct_init() 69 lport->tt.elsct_send = fc_elsct_send; in fc_elsct_init()
|
D | fc_libfc.c | 229 void fc_fc4_conf_lport_params(struct fc_lport *lport, enum fc_fh_type type) in fc_fc4_conf_lport_params() argument 233 BUG_ON(!lport); in fc_fc4_conf_lport_params() 237 lport->service_params |= FCP_SPPF_TARG_FCN; in fc_fc4_conf_lport_params() 243 struct fc_lport *lport; in fc_lport_iterate() local 246 list_for_each_entry(lport, &fc_local_ports, lport_list) in fc_lport_iterate() 247 notify(lport, arg); in fc_lport_iterate() 299 void fc_fc4_add_lport(struct fc_lport *lport) in fc_fc4_add_lport() argument 302 list_add_tail(&lport->lport_list, &fc_local_ports); in fc_fc4_add_lport() 304 FC_LPORT_EV_ADD, lport); in fc_fc4_add_lport() 312 void fc_fc4_del_lport(struct fc_lport *lport) in fc_fc4_del_lport() argument [all …]
|
D | fc_libfc.h | 34 #define FC_LPORT_DBG(lport, fmt, args...) \ argument 37 (lport)->host->host_no, \ 38 (lport)->port_id, ##args)) 46 #define FC_RPORT_ID_DBG(lport, port_id, fmt, args...) \ argument 49 (lport)->host->host_no, \ 79 #define FC_SCSI_DBG(lport, fmt, args...) \ argument 82 (lport)->host->host_no, ##args))
|
/drivers/scsi/fcoe/ |
D | fcoe.c | 553 fcoe_check_wait_queue(port->lport, skb); in fcoe_port_send() 555 fcoe_check_wait_queue(port->lport, skb); in fcoe_port_send() 592 static void fcoe_update_src_mac(struct fc_lport *lport, u8 *addr) in fcoe_update_src_mac() argument 594 struct fcoe_port *port = lport_priv(lport); in fcoe_update_src_mac() 608 static u8 *fcoe_get_src_mac(struct fc_lport *lport) in fcoe_get_src_mac() argument 610 struct fcoe_port *port = lport_priv(lport); in fcoe_get_src_mac() 621 static int fcoe_lport_config(struct fc_lport *lport) in fcoe_lport_config() argument 623 lport->link_up = 0; in fcoe_lport_config() 624 lport->qfull = 0; in fcoe_lport_config() 625 lport->max_retry_count = 3; in fcoe_lport_config() [all …]
|
D | fcoe_ctlr.c | 529 struct fc_lport *lport, in fcoe_ctlr_send_keep_alive() argument 575 memcpy(vn->fd_mac, fip->get_src_addr(lport), ETH_ALEN); in fcoe_ctlr_send_keep_alive() 576 hton24(vn->fd_fc_id, lport->port_id); in fcoe_ctlr_send_keep_alive() 577 put_unaligned_be64(lport->wwpn, &vn->fd_wwpn); in fcoe_ctlr_send_keep_alive() 602 static int fcoe_ctlr_encaps(struct fcoe_ctlr *fip, struct fc_lport *lport, in fcoe_ctlr_encaps() argument 623 if (lport->point_to_multipoint) { in fcoe_ctlr_encaps() 658 memcpy(mac->fd_mac, fip->get_src_addr(lport), ETH_ALEN); in fcoe_ctlr_encaps() 695 int fcoe_ctlr_els_send(struct fcoe_ctlr *fip, struct fc_lport *lport, in fcoe_ctlr_els_send() argument 772 fip->update_mac(lport, mac); in fcoe_ctlr_els_send() 788 if (fcoe_ctlr_encaps(fip, lport, op, skb, ntoh24(fh->fh_d_id))) in fcoe_ctlr_els_send() [all …]
|
/drivers/scsi/bnx2fc/ |
D | bnx2fc_fcoe.c | 74 static int bnx2fc_shost_config(struct fc_lport *lport, struct device *dev); 75 static int bnx2fc_lport_config(struct fc_lport *lport); 76 static int bnx2fc_em_config(struct fc_lport *lport, struct bnx2fc_hba *hba); 94 static void bnx2fc_port_shutdown(struct fc_lport *lport); 131 static inline struct net_device *bnx2fc_netdev(const struct fc_lport *lport) in bnx2fc_netdev() argument 134 ((struct fcoe_port *)lport_priv(lport))->priv)->netdev; in bnx2fc_netdev() 177 static void bnx2fc_abort_io(struct fc_lport *lport) in bnx2fc_abort_io() argument 187 static void bnx2fc_cleanup(struct fc_lport *lport) in bnx2fc_cleanup() argument 189 struct fcoe_port *port = lport_priv(lport); in bnx2fc_cleanup() 262 static int bnx2fc_xmit(struct fc_lport *lport, struct fc_frame *fp) in bnx2fc_xmit() argument [all …]
|
D | bnx2fc_debug.c | 30 if (io_req && io_req->port && io_req->port->lport && in BNX2FC_IO_DBG() 31 io_req->port->lport->host) in BNX2FC_IO_DBG() 32 shost_printk(KERN_INFO, io_req->port->lport->host, in BNX2FC_IO_DBG() 54 if (tgt && tgt->port && tgt->port->lport && tgt->port->lport->host && in BNX2FC_TGT_DBG() 56 shost_printk(KERN_INFO, tgt->port->lport->host, in BNX2FC_TGT_DBG() 65 void BNX2FC_HBA_DBG(const struct fc_lport *lport, const char *fmt, ...) in BNX2FC_HBA_DBG() argument 78 if (lport && lport->host) in BNX2FC_HBA_DBG() 79 shost_printk(KERN_INFO, lport->host, PFX "%pV", &vaf); in BNX2FC_HBA_DBG()
|
/drivers/target/tcm_fc/ |
D | tfc_sess.c | 30 #define TFC_SESS_DBG(lport, fmt, args...) \ argument 32 (lport)->host->host_no, \ 33 (lport)->port_id, ##args ) 41 static struct ft_tport *ft_tport_get(struct fc_lport *lport) in ft_tport_get() argument 47 tport = rcu_dereference_protected(lport->prov[FC_TYPE_FCP], in ft_tport_get() 52 tpg = ft_lport_find_tpg(lport); in ft_tport_get() 66 tport->lport = lport; in ft_tport_get() 72 rcu_assign_pointer(lport->prov[FC_TYPE_FCP], tport); in ft_tport_get() 82 struct fc_lport *lport; in ft_tport_delete() local 86 lport = tport->lport; in ft_tport_delete() [all …]
|
D | tfc_io.c | 47 struct fc_lport *lport; in ft_queue_data_in() local 72 lport = ep->lp; in ft_queue_data_in() 111 frame_len = (lport->seq_offload) ? lport->lso_max : in ft_queue_data_in() 114 fp = fc_frame_alloc(lport, use_sg ? 0 : frame_len); in ft_queue_data_in() 164 error = fc_seq_send(lport, seq, fp); in ft_queue_data_in() 170 remaining, lport->lso_max); in ft_queue_data_in() 201 struct fc_lport *lport; in ft_recv_write_data() local 222 lport = ep->lp; in ft_recv_write_data() 225 BUG_ON(!lport); in ft_recv_write_data() 333 struct fc_lport *lport = NULL; in ft_invl_hw_context() local [all …]
|
D | tfc_cmd.c | 106 struct fc_lport *lport; in ft_queue_status() local 115 lport = ep->lp; in ft_queue_status() 117 fp = fc_frame_alloc(lport, len); in ft_queue_status() 153 rc = fc_seq_send(lport, cmd->seq, fp); in ft_queue_status() 183 struct fc_lport *lport; in ft_write_pending() local 193 lport = ep->lp; in ft_write_pending() 194 fp = fc_frame_alloc(lport, sizeof(*txrdy)); in ft_write_pending() 214 if ((ep->xid <= lport->lro_xid) && in ft_write_pending() 217 lport->tt.ddp_target(lport, ep->xid, in ft_write_pending() 223 fc_seq_send(lport, cmd->seq, fp); in ft_write_pending() [all …]
|
/drivers/scsi/qla2xxx/ |
D | tcm_qla2xxx.c | 166 struct tcm_qla2xxx_lport *lport = tpg->lport; in tcm_qla2xxx_get_fabric_wwn() local 168 return lport->lport_naa_name; in tcm_qla2xxx_get_fabric_wwn() 764 struct tcm_qla2xxx_lport *lport = container_of(se_wwn, in tcm_qla2xxx_clear_nacl_from_fcport_map() local 772 node = btree_remove32(&lport->lport_fcport_map, nacl->nport_id); in tcm_qla2xxx_clear_nacl_from_fcport_map() 780 btree_insert32(&lport->lport_fcport_map, nacl->nport_id, in tcm_qla2xxx_clear_nacl_from_fcport_map() 795 tcm_qla2xxx_clear_sess_lookup(lport, nacl, sess); in tcm_qla2xxx_clear_nacl_from_fcport_map() 900 struct tcm_qla2xxx_lport *lport = container_of(se_wwn, in tcm_qla2xxx_tpg_enable_store() local 902 struct scsi_qla_host *vha = lport->qla_vha; in tcm_qla2xxx_tpg_enable_store() 986 struct tcm_qla2xxx_lport *lport = container_of(wwn, in tcm_qla2xxx_make_tpg() local 1007 tpg->lport = lport; in tcm_qla2xxx_make_tpg() [all …]
|
/drivers/scsi/qedf/ |
D | qedf_attr.c | 10 return qedf->lport->vport != NULL; in qedf_is_vport() 16 struct fc_lport *lport; in qedf_get_base_qedf() local 22 lport = qedf->lport; in qedf_get_base_qedf() 23 base_lport = shost_priv(vport_to_shost(lport->vport)); in qedf_get_base_qedf() 31 struct fc_lport *lport = shost_priv(class_to_shost(dev)); in qedf_fcoe_mac_show() local 36 port_id = fc_host_port_id(lport->host); in qedf_fcoe_mac_show() 49 struct fc_lport *lport = shost_priv(class_to_shost(dev)); in qedf_fka_period_show() local 50 struct qedf_ctx *qedf = lport_priv(lport); in qedf_fka_period_show() 94 qedf_uevent_emit(base_qedf->lport->host, QEDF_UEVENT_CODE_GRCDUMP, in qedf_capture_grc_dump() 104 struct fc_lport *lport = shost_priv(dev_to_shost(container_of(kobj, in qedf_sysfs_read_grcdump() local [all …]
|
D | qedf_main.c | 261 struct fc_lport *lport = exch->lp; in qedf_flogi_resp() local 262 struct qedf_ctx *qedf = lport_priv(lport); in qedf_flogi_resp() 292 fc_lport_flogi_resp(seq, fp, lport); in qedf_flogi_resp() 295 static struct fc_seq *qedf_elsct_send(struct fc_lport *lport, u32 did, in qedf_elsct_send() argument 302 struct qedf_ctx *qedf = lport_priv(lport); in qedf_elsct_send() 310 return fc_elsct_send(lport, did, fp, op, qedf_flogi_resp, in qedf_elsct_send() 314 return fc_elsct_send(lport, did, fp, op, resp, arg, timeout); in qedf_elsct_send() 319 struct fc_lport *lport; in qedf_send_flogi() local 322 lport = qedf->lport; in qedf_send_flogi() 324 if (!lport->tt.elsct_send) { in qedf_send_flogi() [all …]
|
D | qedf_els.c | 15 struct fc_lport *lport; in qedf_initiate_els() local 34 lport = qedf->lport; in qedf_initiate_els() 44 if (lport->state != LPORT_ST_READY || !(lport->link_up)) { in qedf_initiate_els() 223 struct fc_lport *lport; in qedf_send_rrq() local 272 lport = qedf->lport; in qedf_send_rrq() 274 r_a_tov = lport->r_a_tov; in qedf_send_rrq() 314 struct fc_lport *lport = fcport->qedf->lport; in qedf_process_l2_frame_compl() local 329 hton24(fh->fh_d_id, lport->port_id); in qedf_process_l2_frame_compl() 336 fr_dev(fp) = lport; in qedf_process_l2_frame_compl() 342 fc_exch_recv(lport, fp); in qedf_process_l2_frame_compl() [all …]
|
/drivers/nvme/host/ |
D | fc.c | 122 struct nvme_fc_lport *lport; member 137 struct nvme_fc_lport *lport; member 225 struct nvme_fc_lport *lport = in nvme_fc_free_lport() local 229 WARN_ON(lport->localport.port_state != FC_OBJSTATE_DELETED); in nvme_fc_free_lport() 230 WARN_ON(!list_empty(&lport->endp_list)); in nvme_fc_free_lport() 234 list_del(&lport->port_list); in nvme_fc_free_lport() 239 ida_simple_remove(&nvme_fc_local_port_cnt, lport->localport.port_num); in nvme_fc_free_lport() 240 ida_destroy(&lport->endp_cnt); in nvme_fc_free_lport() 242 put_device(lport->dev); in nvme_fc_free_lport() 244 kfree(lport); in nvme_fc_free_lport() [all …]
|
/drivers/scsi/fnic/ |
D | fnic_fcs.c | 76 shost_printk(KERN_INFO, fnic->lport->host, in fnic_handle_link() 82 fc_host_speed(fnic->lport->host) = FC_PORTSPEED_10GBIT; in fnic_handle_link() 83 fnic->lport->link_supported_speeds = FC_PORTSPEED_10GBIT; in fnic_handle_link() 86 fc_host_speed(fnic->lport->host) = FC_PORTSPEED_20GBIT; in fnic_handle_link() 87 fnic->lport->link_supported_speeds = FC_PORTSPEED_20GBIT; in fnic_handle_link() 90 fc_host_speed(fnic->lport->host) = FC_PORTSPEED_25GBIT; in fnic_handle_link() 91 fnic->lport->link_supported_speeds = FC_PORTSPEED_25GBIT; in fnic_handle_link() 95 fc_host_speed(fnic->lport->host) = FC_PORTSPEED_40GBIT; in fnic_handle_link() 96 fnic->lport->link_supported_speeds = FC_PORTSPEED_40GBIT; in fnic_handle_link() 99 fc_host_speed(fnic->lport->host) = FC_PORTSPEED_100GBIT; in fnic_handle_link() [all …]
|
D | fnic_scsi.c | 187 spin_lock_irqsave(fnic->lport->host->host_lock, host_lock_flags); in __fnic_set_state_flags() 194 spin_unlock_irqrestore(fnic->lport->host->host_lock, host_lock_flags); in __fnic_set_state_flags() 242 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, in fnic_fw_reset_handler() 246 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, in fnic_fw_reset_handler() 262 struct fc_lport *lp = fnic->lport; in fnic_flogi_reg_handler() 290 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, in fnic_flogi_reg_handler() 296 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, in fnic_flogi_reg_handler() 375 FNIC_SCSI_DBG(KERN_INFO, fnic->lport->host, in fnic_queue_wq_copy_desc() 444 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, in fnic_queuecommand_lck() 453 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, in fnic_queuecommand_lck() [all …]
|
D | fnic_main.c | 223 FNIC_MAIN_DBG(KERN_DEBUG, fnic->lport->host, in fnic_get_stats() 335 FNIC_MAIN_DBG(KERN_DEBUG, fnic->lport->host, in fnic_reset_host_stats() 354 shost_printk(KERN_ERR, fnic->lport->host, in fnic_log_q_error() 362 shost_printk(KERN_ERR, fnic->lport->host, in fnic_log_q_error() 370 shost_printk(KERN_ERR, fnic->lport->host, in fnic_log_q_error() 406 shost_printk(KERN_ERR, fnic->lport->host, in fnic_notify_set() 546 static u8 *fnic_get_mac(struct fc_lport *lport) in fnic_get_mac() argument 548 struct fnic *fnic = lport_priv(lport); in fnic_get_mac() 581 fnic->lport = lp; in fnic_probe() 598 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe() [all …]
|
/drivers/scsi/lpfc/ |
D | lpfc_nvme.c | 218 struct lpfc_nvme_lport *lport; in lpfc_nvme_create_queue() local 226 lport = (struct lpfc_nvme_lport *)pnvme_lport->private; in lpfc_nvme_create_queue() 227 vport = lport->vport; in lpfc_nvme_create_queue() 275 struct lpfc_nvme_lport *lport; in lpfc_nvme_delete_queue() local 281 lport = (struct lpfc_nvme_lport *)pnvme_lport->private; in lpfc_nvme_delete_queue() 282 vport = lport->vport; in lpfc_nvme_delete_queue() 286 lport, qidx, handle); in lpfc_nvme_delete_queue() 293 struct lpfc_nvme_lport *lport = localport->private; in lpfc_nvme_localport_delete() local 295 lpfc_printf_vlog(lport->vport, KERN_INFO, LOG_NVME, in lpfc_nvme_localport_delete() 297 lport); in lpfc_nvme_localport_delete() [all …]
|
/drivers/nvme/target/ |
D | fcloop.c | 197 struct fcloop_lport *lport; member 204 struct fcloop_lport *lport; member 211 struct fcloop_lport *lport; member 217 struct fcloop_lport *lport; member 826 struct fcloop_lport *lport = lport_priv->lport; in fcloop_localport_delete() local 829 complete(&lport->unreg_done); in fcloop_localport_delete() 897 struct fcloop_lport *lport; in fcloop_create_local_port() local 902 lport = kzalloc(sizeof(*lport), GFP_KERNEL); in fcloop_create_local_port() 903 if (!lport) in fcloop_create_local_port() 930 lport_priv->lport = lport; in fcloop_create_local_port() [all …]
|