/kernel/linux/linux-5.10/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_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_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() 141 if (lport->rport_priv_size > 0) in fc_rport_create() 142 rport_priv_size = lport->rport_priv_size; in fc_rport_create() 154 rdata->local_port = lport; in fc_rport_create() 158 rdata->e_d_tov = lport->e_d_tov; in fc_rport_create() 159 rdata->r_a_tov = lport->r_a_tov; in fc_rport_create() [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() 319 struct fc_lport *lport; in fc_fcp_ddp_setup() local 321 lport = fsp->lp; in fc_fcp_ddp_setup() 323 (lport->lro_enabled) && (lport->tt.ddp_setup)) { in fc_fcp_ddp_setup() 324 if (lport->tt.ddp_setup(lport, xid, scsi_sglist(fsp->cmd), in fc_fcp_ddp_setup() 337 struct fc_lport *lport; in fc_fcp_ddp_done() local 345 lport = fsp->lp; in fc_fcp_ddp_done() [all …]
|
D | fc_exch.c | 87 struct fc_lport *lport; member 464 static int fc_seq_send_locked(struct fc_lport *lport, struct fc_seq *sp, in fc_seq_send_locked() argument 500 error = lport->tt.frame_send(lport, fp); in fc_seq_send_locked() 526 int fc_seq_send(struct fc_lport *lport, struct fc_seq *sp, struct fc_frame *fp) in fc_seq_send() argument 532 error = fc_seq_send_locked(lport, sp, fp); in fc_seq_send() 813 static struct fc_exch *fc_exch_em_alloc(struct fc_lport *lport, in fc_exch_em_alloc() argument 880 ep->lp = lport; in fc_exch_em_alloc() 907 static struct fc_exch *fc_exch_alloc(struct fc_lport *lport, in fc_exch_alloc() argument 913 list_for_each_entry(ema, &lport->ema_list, ema_list) { in fc_exch_alloc() 915 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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/include/scsi/ |
D | fc_encode.h | 76 static inline void fc_adisc_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_adisc_fill() argument 83 put_unaligned_be64(lport->wwpn, &adisc->adisc_wwpn); in fc_adisc_fill() 84 put_unaligned_be64(lport->wwnn, &adisc->adisc_wwnn); in fc_adisc_fill() 85 hton24(adisc->adisc_port_id, lport->port_id); in fc_adisc_fill() 119 static inline int fc_ct_ns_fill(struct fc_lport *lport, in fc_ct_ns_fill() argument 144 hton24(ct->payload.rft.fid.fp_fid, lport->port_id); in fc_ct_ns_fill() 145 ct->payload.rft.fts = lport->fcts; in fc_ct_ns_fill() 151 hton24(ct->payload.rff.fr_fid.fp_fid, lport->port_id); in fc_ct_ns_fill() 153 if (lport->service_params & FCP_SPPF_INIT_FCN) in fc_ct_ns_fill() 155 if (lport->service_params & FCP_SPPF_TARG_FCN) in fc_ct_ns_fill() [all …]
|
D | libfc.h | 783 static inline int fc_lport_test_ready(struct fc_lport *lport) in fc_lport_test_ready() argument 785 return lport->state == LPORT_ST_READY; in fc_lport_test_ready() 793 static inline void fc_set_wwnn(struct fc_lport *lport, u64 wwnn) in fc_set_wwnn() argument 795 lport->wwnn = wwnn; in fc_set_wwnn() 803 static inline void fc_set_wwpn(struct fc_lport *lport, u64 wwpn) in fc_set_wwpn() argument 805 lport->wwpn = wwpn; in fc_set_wwpn() 813 static inline void fc_lport_state_enter(struct fc_lport *lport, in fc_lport_state_enter() argument 816 if (state != lport->state) in fc_lport_state_enter() 817 lport->retry_count = 0; in fc_lport_state_enter() 818 lport->state = state; in fc_lport_state_enter() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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() 224 BUG_ON(!lport); in ft_recv_write_data() 332 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 …]
|
/kernel/linux/linux-5.10/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() 783 struct tcm_qla2xxx_lport *lport = container_of(se_wwn, in tcm_qla2xxx_clear_nacl_from_fcport_map() local 791 node = btree_remove32(&lport->lport_fcport_map, nacl->nport_id); in tcm_qla2xxx_clear_nacl_from_fcport_map() 799 btree_insert32(&lport->lport_fcport_map, nacl->nport_id, in tcm_qla2xxx_clear_nacl_from_fcport_map() 814 tcm_qla2xxx_clear_sess_lookup(lport, nacl, sess); in tcm_qla2xxx_clear_nacl_from_fcport_map() 919 struct tcm_qla2xxx_lport *lport = container_of(se_wwn, in tcm_qla2xxx_tpg_enable_store() local 921 struct scsi_qla_host *vha = lport->qla_vha; in tcm_qla2xxx_tpg_enable_store() 1006 struct tcm_qla2xxx_lport *lport = container_of(wwn, in tcm_qla2xxx_make_tpg() local 1027 tpg->lport = lport; in tcm_qla2xxx_make_tpg() [all …]
|
/kernel/linux/linux-5.10/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 | 270 struct fc_lport *lport = exch->lp; in qedf_flogi_resp() local 271 struct qedf_ctx *qedf = lport_priv(lport); in qedf_flogi_resp() 302 fc_lport_flogi_resp(seq, fp, lport); in qedf_flogi_resp() 305 static struct fc_seq *qedf_elsct_send(struct fc_lport *lport, u32 did, in qedf_elsct_send() argument 312 struct qedf_ctx *qedf = lport_priv(lport); in qedf_elsct_send() 325 return fc_elsct_send(lport, did, fp, op, qedf_flogi_resp, in qedf_elsct_send() 329 return fc_elsct_send(lport, did, fp, op, resp, arg, timeout); in qedf_elsct_send() 334 struct fc_lport *lport; in qedf_send_flogi() local 337 lport = qedf->lport; in qedf_send_flogi() 339 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() 242 struct fc_lport *lport; in qedf_send_rrq() local 291 lport = qedf->lport; in qedf_send_rrq() 293 r_a_tov = lport->r_a_tov; in qedf_send_rrq() 333 struct fc_lport *lport = fcport->qedf->lport; in qedf_process_l2_frame_compl() local 348 hton24(fh->fh_d_id, lport->port_id); in qedf_process_l2_frame_compl() 355 fr_dev(fp) = lport; in qedf_process_l2_frame_compl() 361 fc_exch_recv(lport, fp); in qedf_process_l2_frame_compl() [all …]
|
/kernel/linux/linux-5.10/drivers/nvme/host/ |
D | fc.c | 139 struct nvme_fc_lport *lport; member 156 struct nvme_fc_lport *lport; member 247 struct nvme_fc_lport *lport = in nvme_fc_free_lport() local 251 WARN_ON(lport->localport.port_state != FC_OBJSTATE_DELETED); in nvme_fc_free_lport() 252 WARN_ON(!list_empty(&lport->endp_list)); in nvme_fc_free_lport() 256 list_del(&lport->port_list); in nvme_fc_free_lport() 261 ida_simple_remove(&nvme_fc_local_port_cnt, lport->localport.port_num); in nvme_fc_free_lport() 262 ida_destroy(&lport->endp_cnt); in nvme_fc_free_lport() 264 put_device(lport->dev); in nvme_fc_free_lport() 266 kfree(lport); in nvme_fc_free_lport() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/arch/um/drivers/ |
D | umcast_kern.c | 21 int lport; member 36 dpri->lport = init->lport; in umcast_init() 44 "%u\n", dpri->addr, dpri->rport, dpri->lport); in umcast_init() 47 "TTL:%u\n", dpri->addr, dpri->lport, dpri->ttl); in umcast_init() 78 .lport = 1102, in mcast_setup() 90 init->lport = simple_strtoul(port_str, &last, 10); in mcast_setup() 108 init->rport = init->lport; in mcast_setup() 111 init->lport, init->ttl); in mcast_setup() 124 .lport = 1102, in ucast_setup() 136 init->lport = simple_strtoul(lport_str, &last, 10); in ucast_setup() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/lpfc/ |
D | lpfc_nvme.c | 257 struct lpfc_nvme_lport *lport; in lpfc_nvme_create_queue() local 265 lport = (struct lpfc_nvme_lport *)pnvme_lport->private; in lpfc_nvme_create_queue() 266 vport = lport->vport; in lpfc_nvme_create_queue() 314 struct lpfc_nvme_lport *lport; in lpfc_nvme_delete_queue() local 320 lport = (struct lpfc_nvme_lport *)pnvme_lport->private; in lpfc_nvme_delete_queue() 321 vport = lport->vport; in lpfc_nvme_delete_queue() 325 lport, qidx, handle); in lpfc_nvme_delete_queue() 332 struct lpfc_nvme_lport *lport = localport->private; in lpfc_nvme_localport_delete() local 334 lpfc_printf_vlog(lport->vport, KERN_INFO, LOG_NVME, in lpfc_nvme_localport_delete() 336 lport); in lpfc_nvme_localport_delete() [all …]
|
/kernel/linux/linux-5.10/net/netfilter/ |
D | xt_TPROXY.c | 36 tproxy_tg4(struct net *net, struct sk_buff *skb, __be32 laddr, __be16 lport, in tproxy_tg4() argument 57 if (!lport) in tproxy_tg4() 58 lport = hp->dest; in tproxy_tg4() 63 sk = nf_tproxy_handle_time_wait4(net, skb, laddr, lport, sk); in tproxy_tg4() 69 hp->source, lport, in tproxy_tg4() 80 &laddr, ntohs(lport), skb->mark); in tproxy_tg4() 97 return tproxy_tg4(xt_net(par), skb, tgi->laddr, tgi->lport, in tproxy_tg4_v0() 106 return tproxy_tg4(xt_net(par), skb, tgi->laddr.ip, tgi->lport, in tproxy_tg4_v1() 120 __be16 lport; in tproxy_tg6_v1() local 146 lport = tgi->lport ? tgi->lport : hp->dest; in tproxy_tg6_v1() [all …]
|
/kernel/linux/linux-5.10/drivers/nvme/target/ |
D | fcloop.c | 214 struct fcloop_lport *lport; member 221 struct fcloop_lport *lport; member 231 struct fcloop_lport *lport; member 240 struct fcloop_lport *lport; member 971 struct fcloop_lport *lport = lport_priv->lport; in fcloop_localport_delete() local 974 complete(&lport->unreg_done); in fcloop_localport_delete() 1048 struct fcloop_lport *lport; in fcloop_create_local_port() local 1053 lport = kzalloc(sizeof(*lport), GFP_KERNEL); in fcloop_create_local_port() 1054 if (!lport) in fcloop_create_local_port() 1081 lport_priv->lport = lport; in fcloop_create_local_port() [all …]
|