/drivers/scsi/libfc/ |
D | fc_lport.c | 119 static void fc_lport_enter_fdmi(struct fc_lport *lport); 153 struct fc_lport *lport; member 165 static int fc_frame_drop(struct fc_lport *lport, struct fc_frame *fp) in fc_frame_drop() argument 180 static void fc_lport_rport_callback(struct fc_lport *lport, in fc_lport_rport_callback() argument 184 FC_LPORT_DBG(lport, "Received a %d event for port (%6.6x)\n", event, in fc_lport_rport_callback() 187 mutex_lock(&lport->lp_mutex); in fc_lport_rport_callback() 190 if (lport->state == LPORT_ST_DNS) { in fc_lport_rport_callback() 191 lport->dns_rdata = rdata; in fc_lport_rport_callback() 192 fc_lport_enter_ns(lport, LPORT_ST_RNN_ID); in fc_lport_rport_callback() 193 } else if (lport->state == LPORT_ST_FDMI) { in fc_lport_rport_callback() [all …]
|
D | fc_disc.c | 68 struct fc_lport *lport; in fc_disc_stop_rports() local 71 lport = fc_disc_lport(disc); in fc_disc_stop_rports() 93 struct fc_lport *lport; in fc_disc_recv_rscn_req() local 104 lport = fc_disc_lport(disc); in fc_disc_recv_rscn_req() 146 dp->lp = lport; in fc_disc_recv_rscn_req() 170 redisc = fc_disc_single(lport, dp); in fc_disc_recv_rscn_req() 179 redisc, lport->state, disc->pending); in fc_disc_recv_rscn_req() 200 static void fc_disc_recv_req(struct fc_lport *lport, struct fc_frame *fp) in fc_disc_recv_req() argument 203 struct fc_disc *disc = &lport->disc; in fc_disc_recv_req() 255 struct fc_lport *lport) in fc_disc_start() argument [all …]
|
D | fc_rport.c | 116 struct fc_rport_priv *fc_rport_lookup(const struct fc_lport *lport, in fc_rport_lookup() argument 122 list_for_each_entry_rcu(tmp_rdata, &lport->disc.rports, peers) in fc_rport_lookup() 142 struct fc_rport_priv *fc_rport_create(struct fc_lport *lport, u32 port_id) in fc_rport_create() argument 147 rdata = fc_rport_lookup(lport, port_id); in fc_rport_create() 151 if (lport->rport_priv_size > 0) in fc_rport_create() 152 rport_priv_size = lport->rport_priv_size; in fc_rport_create() 164 rdata->local_port = lport; in fc_rport_create() 168 rdata->e_d_tov = lport->e_d_tov; in fc_rport_create() 169 rdata->r_a_tov = lport->r_a_tov; in fc_rport_create() 174 rdata->lld_event_callback = lport->tt.rport_event_callback; in fc_rport_create() [all …]
|
D | fc_fcp.c | 147 static struct fc_fcp_pkt *fc_fcp_pkt_alloc(struct fc_lport *lport, gfp_t gfp) in fc_fcp_pkt_alloc() argument 149 struct fc_fcp_internal *si = fc_get_scsi_internal(lport); in fc_fcp_pkt_alloc() 155 fsp->lp = lport; in fc_fcp_pkt_alloc() 163 per_cpu_ptr(lport->stats, get_cpu())->FcpPktAllocFails++; in fc_fcp_pkt_alloc() 331 struct fc_lport *lport; in fc_fcp_ddp_setup() local 333 lport = fsp->lp; in fc_fcp_ddp_setup() 335 (lport->lro_enabled) && (lport->tt.ddp_setup)) { in fc_fcp_ddp_setup() 336 if (lport->tt.ddp_setup(lport, xid, scsi_sglist(fsp->cmd), in fc_fcp_ddp_setup() 349 struct fc_lport *lport; in fc_fcp_ddp_done() local 357 lport = fsp->lp; in fc_fcp_ddp_done() [all …]
|
D | fc_exch.c | 97 struct fc_lport *lport; member 474 static int fc_seq_send_locked(struct fc_lport *lport, struct fc_seq *sp, in fc_seq_send_locked() argument 510 error = lport->tt.frame_send(lport, fp); in fc_seq_send_locked() 536 int fc_seq_send(struct fc_lport *lport, struct fc_seq *sp, struct fc_frame *fp) in fc_seq_send() argument 542 error = fc_seq_send_locked(lport, sp, fp); in fc_seq_send() 820 static struct fc_exch *fc_exch_em_alloc(struct fc_lport *lport, in fc_exch_em_alloc() argument 887 ep->lp = lport; in fc_exch_em_alloc() 914 static struct fc_exch *fc_exch_alloc(struct fc_lport *lport, in fc_exch_alloc() argument 920 list_for_each_entry(ema, &lport->ema_list, ema_list) { in fc_exch_alloc() 922 ep = fc_exch_em_alloc(lport, ema->mp); in fc_exch_alloc() [all …]
|
D | fc_elsct.c | 43 struct fc_seq *fc_elsct_send(struct fc_lport *lport, u32 did, in fc_elsct_send() argument 56 rc = fc_els_fill(lport, did, fp, op, &r_ctl, &fh_type); in fc_elsct_send() 59 rc = fc_ct_fill(lport, did, fp, op, &r_ctl, &fh_type, &did); in fc_elsct_send() 67 fc_fill_fc_hdr(fp, r_ctl, did, lport->port_id, fh_type, in fc_elsct_send() 70 return fc_exch_seq_send(lport, fp, resp, NULL, arg, timer_msec); in fc_elsct_send() 78 int fc_elsct_init(struct fc_lport *lport) in fc_elsct_init() argument 80 if (!lport->tt.elsct_send) in fc_elsct_init() 81 lport->tt.elsct_send = fc_elsct_send; in fc_elsct_init()
|
D | fc_libfc.c | 241 void fc_fc4_conf_lport_params(struct fc_lport *lport, enum fc_fh_type type) in fc_fc4_conf_lport_params() argument 245 BUG_ON(!lport); in fc_fc4_conf_lport_params() 249 lport->service_params |= FCP_SPPF_TARG_FCN; in fc_fc4_conf_lport_params() 255 struct fc_lport *lport; in fc_lport_iterate() local 258 list_for_each_entry(lport, &fc_local_ports, lport_list) in fc_lport_iterate() 259 notify(lport, arg); in fc_lport_iterate() 311 void fc_fc4_add_lport(struct fc_lport *lport) in fc_fc4_add_lport() argument 314 list_add_tail(&lport->lport_list, &fc_local_ports); in fc_fc4_add_lport() 316 FC_LPORT_EV_ADD, lport); in fc_fc4_add_lport() 324 void fc_fc4_del_lport(struct fc_lport *lport) in fc_fc4_del_lport() argument [all …]
|
D | fc_libfc.h | 46 #define FC_LPORT_DBG(lport, fmt, args...) \ argument 49 (lport)->host->host_no, \ 50 (lport)->port_id, ##args)) 58 #define FC_RPORT_ID_DBG(lport, port_id, fmt, args...) \ argument 61 (lport)->host->host_no, \ 91 #define FC_SCSI_DBG(lport, fmt, args...) \ argument 94 (lport)->host->host_no, ##args))
|
/drivers/scsi/fcoe/ |
D | fcoe.c | 571 fcoe_check_wait_queue(port->lport, skb); in fcoe_port_send() 573 fcoe_check_wait_queue(port->lport, skb); in fcoe_port_send() 610 static void fcoe_update_src_mac(struct fc_lport *lport, u8 *addr) in fcoe_update_src_mac() argument 612 struct fcoe_port *port = lport_priv(lport); in fcoe_update_src_mac() 626 static u8 *fcoe_get_src_mac(struct fc_lport *lport) in fcoe_get_src_mac() argument 628 struct fcoe_port *port = lport_priv(lport); in fcoe_get_src_mac() 639 static int fcoe_lport_config(struct fc_lport *lport) in fcoe_lport_config() argument 641 lport->link_up = 0; in fcoe_lport_config() 642 lport->qfull = 0; in fcoe_lport_config() 643 lport->max_retry_count = 3; in fcoe_lport_config() [all …]
|
D | fcoe_ctlr.c | 541 struct fc_lport *lport, in fcoe_ctlr_send_keep_alive() argument 587 memcpy(vn->fd_mac, fip->get_src_addr(lport), ETH_ALEN); in fcoe_ctlr_send_keep_alive() 588 hton24(vn->fd_fc_id, lport->port_id); in fcoe_ctlr_send_keep_alive() 589 put_unaligned_be64(lport->wwpn, &vn->fd_wwpn); in fcoe_ctlr_send_keep_alive() 614 static int fcoe_ctlr_encaps(struct fcoe_ctlr *fip, struct fc_lport *lport, in fcoe_ctlr_encaps() argument 635 if (lport->point_to_multipoint) { in fcoe_ctlr_encaps() 670 memcpy(mac->fd_mac, fip->get_src_addr(lport), ETH_ALEN); in fcoe_ctlr_encaps() 707 int fcoe_ctlr_els_send(struct fcoe_ctlr *fip, struct fc_lport *lport, in fcoe_ctlr_els_send() argument 784 fip->update_mac(lport, mac); in fcoe_ctlr_els_send() 800 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() 181 static void bnx2fc_abort_io(struct fc_lport *lport) in bnx2fc_abort_io() argument 191 static void bnx2fc_cleanup(struct fc_lport *lport) in bnx2fc_cleanup() argument 193 struct fcoe_port *port = lport_priv(lport); in bnx2fc_cleanup() 266 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()
|
D | bnx2fc_els.c | 65 struct fc_lport *lport = NULL; in bnx2fc_send_rrq() local 75 lport = tgt->rdata->local_port; in bnx2fc_send_rrq() 77 r_a_tov = lport->r_a_tov; in bnx2fc_send_rrq() 187 struct fc_lport *lport = tgt->rdata->local_port; in bnx2fc_send_adisc() local 188 u32 r_a_tov = lport->r_a_tov; in bnx2fc_send_adisc() 215 struct fc_lport *lport = tgt->rdata->local_port; in bnx2fc_send_logo() local 216 u32 r_a_tov = lport->r_a_tov; in bnx2fc_send_logo() 243 struct fc_lport *lport = tgt->rdata->local_port; in bnx2fc_send_rls() local 244 u32 r_a_tov = lport->r_a_tov; in bnx2fc_send_rls() 586 struct fc_lport *lport = tgt->rdata->local_port; in bnx2fc_send_rec() local [all …]
|
/drivers/target/tcm_fc/ |
D | tfc_sess.c | 42 #define TFC_SESS_DBG(lport, fmt, args...) \ argument 44 (lport)->host->host_no, \ 45 (lport)->port_id, ##args ) 53 static struct ft_tport *ft_tport_get(struct fc_lport *lport) in ft_tport_get() argument 59 tport = rcu_dereference_protected(lport->prov[FC_TYPE_FCP], in ft_tport_get() 64 tpg = ft_lport_find_tpg(lport); in ft_tport_get() 78 tport->lport = lport; in ft_tport_get() 84 rcu_assign_pointer(lport->prov[FC_TYPE_FCP], tport); in ft_tport_get() 94 struct fc_lport *lport; in ft_tport_delete() local 98 lport = tport->lport; in ft_tport_delete() [all …]
|
D | tfc_io.c | 59 struct fc_lport *lport; in ft_queue_data_in() local 84 lport = ep->lp; in ft_queue_data_in() 123 frame_len = (lport->seq_offload) ? lport->lso_max : in ft_queue_data_in() 126 fp = fc_frame_alloc(lport, use_sg ? 0 : frame_len); in ft_queue_data_in() 177 error = fc_seq_send(lport, seq, fp); in ft_queue_data_in() 183 remaining, lport->lso_max); in ft_queue_data_in() 214 struct fc_lport *lport; in ft_recv_write_data() local 235 lport = ep->lp; in ft_recv_write_data() 238 BUG_ON(!lport); in ft_recv_write_data() 346 struct fc_lport *lport = NULL; in ft_invl_hw_context() local [all …]
|
D | tfc_cmd.c | 119 struct fc_lport *lport; in ft_queue_status() local 128 lport = ep->lp; in ft_queue_status() 130 fp = fc_frame_alloc(lport, len); in ft_queue_status() 166 rc = fc_seq_send(lport, cmd->seq, fp); in ft_queue_status() 203 struct fc_lport *lport; in ft_write_pending() local 213 lport = ep->lp; in ft_write_pending() 214 fp = fc_frame_alloc(lport, sizeof(*txrdy)); in ft_write_pending() 234 if ((ep->xid <= lport->lro_xid) && in ft_write_pending() 237 lport->tt.ddp_target(lport, ep->xid, in ft_write_pending() 243 fc_seq_send(lport, cmd->seq, fp); in ft_write_pending() [all …]
|
/drivers/scsi/qla2xxx/ |
D | tcm_qla2xxx.c | 191 struct tcm_qla2xxx_lport *lport = tpg->lport; in tcm_qla2xxx_get_fabric_wwn() local 193 return lport->lport_naa_name; in tcm_qla2xxx_get_fabric_wwn() 774 struct tcm_qla2xxx_lport *lport = container_of(se_wwn, in tcm_qla2xxx_clear_nacl_from_fcport_map() local 782 node = btree_remove32(&lport->lport_fcport_map, nacl->nport_id); in tcm_qla2xxx_clear_nacl_from_fcport_map() 790 btree_insert32(&lport->lport_fcport_map, nacl->nport_id, in tcm_qla2xxx_clear_nacl_from_fcport_map() 805 tcm_qla2xxx_clear_sess_lookup(lport, nacl, sess); in tcm_qla2xxx_clear_nacl_from_fcport_map() 911 struct tcm_qla2xxx_lport *lport = container_of(se_wwn, in tcm_qla2xxx_tpg_enable_store() local 913 struct scsi_qla_host *vha = lport->qla_vha; in tcm_qla2xxx_tpg_enable_store() 999 struct tcm_qla2xxx_lport *lport = container_of(wwn, in tcm_qla2xxx_make_tpg() local 1020 tpg->lport = lport; in tcm_qla2xxx_make_tpg() [all …]
|
/drivers/scsi/qedf/ |
D | qedf_attr.c | 13 return qedf->lport->vport != NULL; in qedf_is_vport() 19 struct fc_lport *lport; in qedf_get_base_qedf() local 25 lport = qedf->lport; in qedf_get_base_qedf() 26 base_lport = shost_priv(vport_to_shost(lport->vport)); in qedf_get_base_qedf() 34 struct fc_lport *lport = shost_priv(class_to_shost(dev)); in qedf_fcoe_mac_show() local 39 port_id = fc_host_port_id(lport->host); in qedf_fcoe_mac_show() 52 struct fc_lport *lport = shost_priv(class_to_shost(dev)); in qedf_fka_period_show() local 53 struct qedf_ctx *qedf = lport_priv(lport); in qedf_fka_period_show() 97 qedf_uevent_emit(base_qedf->lport->host, QEDF_UEVENT_CODE_GRCDUMP, in qedf_capture_grc_dump() 107 struct fc_lport *lport = shost_priv(dev_to_shost(container_of(kobj, in qedf_sysfs_read_grcdump() local [all …]
|
D | qedf_main.c | 239 struct fc_lport *lport = exch->lp; in qedf_flogi_resp() local 240 struct qedf_ctx *qedf = lport_priv(lport); in qedf_flogi_resp() 270 fc_lport_flogi_resp(seq, fp, lport); in qedf_flogi_resp() 273 static struct fc_seq *qedf_elsct_send(struct fc_lport *lport, u32 did, in qedf_elsct_send() argument 280 struct qedf_ctx *qedf = lport_priv(lport); in qedf_elsct_send() 288 return fc_elsct_send(lport, did, fp, op, qedf_flogi_resp, in qedf_elsct_send() 292 return fc_elsct_send(lport, did, fp, op, resp, arg, timeout); in qedf_elsct_send() 297 struct fc_lport *lport; in qedf_send_flogi() local 300 lport = qedf->lport; in qedf_send_flogi() 302 if (!lport->tt.elsct_send) in qedf_send_flogi() [all …]
|
D | qedf_els.c | 18 struct fc_lport *lport = qedf->lport; in qedf_initiate_els() local 38 if (lport->state != LPORT_ST_READY || !(lport->link_up)) { in qedf_initiate_els() 205 struct fc_lport *lport; in qedf_send_rrq() local 231 lport = qedf->lport; in qedf_send_rrq() 233 r_a_tov = lport->r_a_tov; in qedf_send_rrq() 273 struct fc_lport *lport = fcport->qedf->lport; in qedf_process_l2_frame_compl() local 288 hton24(fh->fh_d_id, lport->port_id); in qedf_process_l2_frame_compl() 295 fr_dev(fp) = lport; in qedf_process_l2_frame_compl() 301 fc_exch_recv(lport, fp); in qedf_process_l2_frame_compl() 310 struct fc_lport *lport; in qedf_restart_rport() local [all …]
|
/drivers/scsi/fnic/ |
D | fnic_fcs.c | 70 fc_host_speed(fnic->lport->host) = FC_PORTSPEED_10GBIT; in fnic_handle_link() 71 fnic->lport->link_supported_speeds = FC_PORTSPEED_10GBIT; in fnic_handle_link() 74 fc_host_speed(fnic->lport->host) = FC_PORTSPEED_25GBIT; in fnic_handle_link() 75 fnic->lport->link_supported_speeds = FC_PORTSPEED_25GBIT; in fnic_handle_link() 79 fc_host_speed(fnic->lport->host) = FC_PORTSPEED_40GBIT; in fnic_handle_link() 80 fnic->lport->link_supported_speeds = FC_PORTSPEED_40GBIT; in fnic_handle_link() 83 fc_host_speed(fnic->lport->host) = FC_PORTSPEED_100GBIT; in fnic_handle_link() 84 fnic->lport->link_supported_speeds = FC_PORTSPEED_100GBIT; in fnic_handle_link() 87 fc_host_speed(fnic->lport->host) = FC_PORTSPEED_UNKNOWN; in fnic_handle_link() 88 fnic->lport->link_supported_speeds = FC_PORTSPEED_UNKNOWN; in fnic_handle_link() [all …]
|
D | fnic_scsi.c | 183 struct Scsi_Host *host = fnic->lport->host; in __fnic_set_state_flags() 243 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, in fnic_fw_reset_handler() 247 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, in fnic_fw_reset_handler() 263 struct fc_lport *lp = fnic->lport; in fnic_flogi_reg_handler() 291 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, in fnic_flogi_reg_handler() 297 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, in fnic_flogi_reg_handler() 382 FNIC_SCSI_DBG(KERN_INFO, fnic->lport->host, in fnic_queue_wq_copy_desc() 454 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, in fnic_queuecommand_lck() 463 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, in fnic_queuecommand_lck() 473 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, in fnic_queuecommand_lck() [all …]
|
D | fnic_main.c | 216 FNIC_MAIN_DBG(KERN_DEBUG, fnic->lport->host, in fnic_get_stats() 328 FNIC_MAIN_DBG(KERN_DEBUG, fnic->lport->host, in fnic_reset_host_stats() 347 shost_printk(KERN_ERR, fnic->lport->host, in fnic_log_q_error() 355 shost_printk(KERN_ERR, fnic->lport->host, in fnic_log_q_error() 363 shost_printk(KERN_ERR, fnic->lport->host, in fnic_log_q_error() 399 shost_printk(KERN_ERR, fnic->lport->host, in fnic_notify_set() 539 static u8 *fnic_get_mac(struct fc_lport *lport) in fnic_get_mac() argument 541 struct fnic *fnic = lport_priv(lport); in fnic_get_mac() 574 fnic->lport = lp; in fnic_probe() 584 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe() [all …]
|
/drivers/nvme/target/ |
D | fcloop.c | 208 struct fcloop_lport *lport; member 215 struct fcloop_lport *lport; member 222 struct fcloop_lport *lport; member 228 struct fcloop_lport *lport; member 669 struct fcloop_lport *lport = lport_priv->lport; in fcloop_localport_delete() local 672 complete(&lport->unreg_done); in fcloop_localport_delete() 740 struct fcloop_lport *lport; in fcloop_create_local_port() local 745 lport = kzalloc(sizeof(*lport), GFP_KERNEL); in fcloop_create_local_port() 746 if (!lport) in fcloop_create_local_port() 773 lport_priv->lport = lport; in fcloop_create_local_port() [all …]
|
/drivers/nvme/host/ |
D | fc.c | 137 struct nvme_fc_lport *lport; member 150 struct nvme_fc_lport *lport; member 227 struct nvme_fc_lport *lport = in nvme_fc_free_lport() local 231 WARN_ON(lport->localport.port_state != FC_OBJSTATE_DELETED); in nvme_fc_free_lport() 232 WARN_ON(!list_empty(&lport->endp_list)); in nvme_fc_free_lport() 236 list_del(&lport->port_list); in nvme_fc_free_lport() 240 lport->ops->localport_delete(&lport->localport); in nvme_fc_free_lport() 242 ida_simple_remove(&nvme_fc_local_port_cnt, lport->localport.port_num); in nvme_fc_free_lport() 243 ida_destroy(&lport->endp_cnt); in nvme_fc_free_lport() 245 put_device(lport->dev); in nvme_fc_free_lport() [all …]
|