/linux-3.4.99/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 | 66 struct fc_lport *lport; in fc_disc_stop_rports() local 69 lport = fc_disc_lport(disc); in fc_disc_stop_rports() 73 lport->tt.rport_logoff(rdata); in fc_disc_stop_rports() 87 struct fc_lport *lport; in fc_disc_recv_rscn_req() local 98 lport = fc_disc_lport(disc); in fc_disc_recv_rscn_req() 140 dp->lp = lport; in fc_disc_recv_rscn_req() 153 lport->tt.seq_els_rsp_send(fp, ELS_LS_ACC, NULL); in fc_disc_recv_rscn_req() 164 redisc = fc_disc_single(lport, dp); in fc_disc_recv_rscn_req() 173 redisc, lport->state, disc->pending); in fc_disc_recv_rscn_req() 181 lport->tt.seq_els_rsp_send(fp, ELS_LS_RJT, &rjt_data); in fc_disc_recv_rscn_req() [all …]
|
D | fc_rport.c | 100 static struct fc_rport_priv *fc_rport_lookup(const struct fc_lport *lport, in fc_rport_lookup() argument 105 list_for_each_entry_rcu(rdata, &lport->disc.rports, peers) in fc_rport_lookup() 120 static struct fc_rport_priv *fc_rport_create(struct fc_lport *lport, in fc_rport_create() argument 125 rdata = lport->tt.rport_lookup(lport, port_id); in fc_rport_create() 129 rdata = kzalloc(sizeof(*rdata) + lport->rport_priv_size, GFP_KERNEL); in fc_rport_create() 140 rdata->local_port = lport; in fc_rport_create() 144 rdata->e_d_tov = lport->e_d_tov; in fc_rport_create() 145 rdata->r_a_tov = lport->r_a_tov; in fc_rport_create() 150 rdata->lld_event_callback = lport->tt.rport_event_callback; in fc_rport_create() 151 list_add_rcu(&rdata->peers, &lport->disc.rports); in fc_rport_create() [all …]
|
D | fc_fcp.c | 146 static struct fc_fcp_pkt *fc_fcp_pkt_alloc(struct fc_lport *lport, gfp_t gfp) in fc_fcp_pkt_alloc() argument 148 struct fc_fcp_internal *si = fc_get_scsi_internal(lport); in fc_fcp_pkt_alloc() 154 fsp->lp = lport; in fc_fcp_pkt_alloc() 300 struct fc_lport *lport; in fc_fcp_ddp_setup() local 302 lport = fsp->lp; in fc_fcp_ddp_setup() 304 (lport->lro_enabled) && (lport->tt.ddp_setup)) { in fc_fcp_ddp_setup() 305 if (lport->tt.ddp_setup(lport, xid, scsi_sglist(fsp->cmd), in fc_fcp_ddp_setup() 318 struct fc_lport *lport; in fc_fcp_ddp_done() local 326 lport = fsp->lp; in fc_fcp_ddp_done() 327 if (lport->tt.ddp_done) { in fc_fcp_ddp_done() [all …]
|
D | fc_exch.c | 466 static int fc_seq_send(struct fc_lport *lport, struct fc_seq *sp, in fc_seq_send() argument 496 error = lport->tt.frame_send(lport, fp); in fc_seq_send() 711 static struct fc_exch *fc_exch_em_alloc(struct fc_lport *lport, in fc_exch_em_alloc() argument 774 ep->lp = lport; in fc_exch_em_alloc() 799 static inline struct fc_exch *fc_exch_alloc(struct fc_lport *lport, in fc_exch_alloc() argument 804 list_for_each_entry(ema, &lport->ema_list, ema_list) in fc_exch_alloc() 806 return fc_exch_em_alloc(lport, ema->mp); in fc_exch_alloc() 857 static struct fc_exch *fc_exch_resp(struct fc_lport *lport, in fc_exch_resp() argument 864 ep = fc_exch_alloc(lport, fp); in fc_exch_resp() 905 static enum fc_pf_rjt_reason fc_seq_lookup_recip(struct fc_lport *lport, in fc_seq_lookup_recip() argument [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 lport->tt.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))
|
/linux-3.4.99/drivers/scsi/fcoe/ |
D | fcoe.c | 496 fcoe_check_wait_queue(port->lport, skb); in fcoe_port_send() 498 fcoe_check_wait_queue(port->lport, skb); in fcoe_port_send() 520 static void fcoe_update_src_mac(struct fc_lport *lport, u8 *addr) in fcoe_update_src_mac() argument 522 struct fcoe_port *port = lport_priv(lport); in fcoe_update_src_mac() 538 static u8 *fcoe_get_src_mac(struct fc_lport *lport) in fcoe_get_src_mac() argument 540 struct fcoe_port *port = lport_priv(lport); in fcoe_get_src_mac() 551 static int fcoe_lport_config(struct fc_lport *lport) in fcoe_lport_config() argument 553 lport->link_up = 0; in fcoe_lport_config() 554 lport->qfull = 0; in fcoe_lport_config() 555 lport->max_retry_count = 3; in fcoe_lport_config() [all …]
|
D | fcoe_ctlr.c | 426 struct fc_lport *lport, in fcoe_ctlr_send_keep_alive() argument 472 memcpy(vn->fd_mac, fip->get_src_addr(lport), ETH_ALEN); in fcoe_ctlr_send_keep_alive() 473 hton24(vn->fd_fc_id, lport->port_id); in fcoe_ctlr_send_keep_alive() 474 put_unaligned_be64(lport->wwpn, &vn->fd_wwpn); in fcoe_ctlr_send_keep_alive() 499 static int fcoe_ctlr_encaps(struct fcoe_ctlr *fip, struct fc_lport *lport, in fcoe_ctlr_encaps() argument 520 if (lport->point_to_multipoint) { in fcoe_ctlr_encaps() 556 memcpy(mac->fd_mac, fip->get_src_addr(lport), ETH_ALEN); in fcoe_ctlr_encaps() 593 int fcoe_ctlr_els_send(struct fcoe_ctlr *fip, struct fc_lport *lport, in fcoe_ctlr_els_send() argument 670 fip->update_mac(lport, mac); in fcoe_ctlr_els_send() 686 if (fcoe_ctlr_encaps(fip, lport, op, skb, ntoh24(fh->fh_d_id))) in fcoe_ctlr_els_send() [all …]
|
/linux-3.4.99/include/scsi/ |
D | fc_encode.h | 88 static inline void fc_adisc_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_adisc_fill() argument 95 put_unaligned_be64(lport->wwpn, &adisc->adisc_wwpn); in fc_adisc_fill() 96 put_unaligned_be64(lport->wwnn, &adisc->adisc_wwnn); in fc_adisc_fill() 97 hton24(adisc->adisc_port_id, lport->port_id); in fc_adisc_fill() 131 static inline int fc_ct_ns_fill(struct fc_lport *lport, in fc_ct_ns_fill() argument 156 hton24(ct->payload.rft.fid.fp_fid, lport->port_id); in fc_ct_ns_fill() 157 ct->payload.rft.fts = lport->fcts; in fc_ct_ns_fill() 163 hton24(ct->payload.rff.fr_fid.fp_fid, lport->port_id); in fc_ct_ns_fill() 165 if (lport->service_params & FCP_SPPF_INIT_FCN) in fc_ct_ns_fill() 167 if (lport->service_params & FCP_SPPF_TARG_FCN) in fc_ct_ns_fill() [all …]
|
D | libfc.h | 939 static inline int fc_lport_test_ready(struct fc_lport *lport) in fc_lport_test_ready() argument 941 return lport->state == LPORT_ST_READY; in fc_lport_test_ready() 949 static inline void fc_set_wwnn(struct fc_lport *lport, u64 wwnn) in fc_set_wwnn() argument 951 lport->wwnn = wwnn; in fc_set_wwnn() 959 static inline void fc_set_wwpn(struct fc_lport *lport, u64 wwnn) in fc_set_wwpn() argument 961 lport->wwpn = wwnn; in fc_set_wwpn() 969 static inline void fc_lport_state_enter(struct fc_lport *lport, in fc_lport_state_enter() argument 972 if (state != lport->state) in fc_lport_state_enter() 973 lport->retry_count = 0; in fc_lport_state_enter() 974 lport->state = state; in fc_lport_state_enter() [all …]
|
/linux-3.4.99/drivers/scsi/bnx2fc/ |
D | bnx2fc_fcoe.c | 67 static int bnx2fc_shost_config(struct fc_lport *lport, struct device *dev); 68 static int bnx2fc_lport_config(struct fc_lport *lport); 69 static int bnx2fc_em_config(struct fc_lport *lport); 87 static void bnx2fc_port_shutdown(struct fc_lport *lport); 102 static inline struct net_device *bnx2fc_netdev(const struct fc_lport *lport) in bnx2fc_netdev() argument 105 ((struct fcoe_port *)lport_priv(lport))->priv)->netdev; in bnx2fc_netdev() 113 static void bnx2fc_get_lesb(struct fc_lport *lport, in bnx2fc_get_lesb() argument 116 struct net_device *netdev = bnx2fc_netdev(lport); in bnx2fc_get_lesb() 118 __fcoe_get_lesb(lport, fc_lesb, netdev); in bnx2fc_get_lesb() 155 static void bnx2fc_abort_io(struct fc_lport *lport) in bnx2fc_abort_io() argument [all …]
|
D | bnx2fc_debug.h | 32 if (!io_req || !io_req->port || !io_req->port->lport || \ 33 !io_req->port->lport->host) \ 39 (io_req)->port->lport->host, \ 46 if (!tgt || !tgt->port || !tgt->port->lport || \ 47 !tgt->port->lport->host || !tgt->rport) \ 53 (tgt)->port->lport->host, \ 59 #define BNX2FC_HBA_DBG(lport, fmt, arg...) \ argument 61 if (!lport || !lport->host) \ 66 shost_printk(KERN_INFO, lport->host, \
|
D | bnx2fc_els.c | 63 struct fc_lport *lport = tgt->rdata->local_port; in bnx2fc_send_rrq() local 66 u32 r_a_tov = lport->r_a_tov; in bnx2fc_send_rrq() 178 struct fc_lport *lport = tgt->rdata->local_port; in bnx2fc_send_adisc() local 179 u32 r_a_tov = lport->r_a_tov; in bnx2fc_send_adisc() 206 struct fc_lport *lport = tgt->rdata->local_port; in bnx2fc_send_logo() local 207 u32 r_a_tov = lport->r_a_tov; in bnx2fc_send_logo() 234 struct fc_lport *lport = tgt->rdata->local_port; in bnx2fc_send_rls() local 235 u32 r_a_tov = lport->r_a_tov; in bnx2fc_send_rls() 579 struct fc_lport *lport = tgt->rdata->local_port; in bnx2fc_send_rec() local 582 u32 r_a_tov = lport->r_a_tov; in bnx2fc_send_rec() [all …]
|
/linux-3.4.99/drivers/target/tcm_fc/ |
D | tfc_cmd.c | 86 struct fc_lport *lport; in ft_free_cmd() local 91 lport = fr_dev(fp); in ft_free_cmd() 93 lport->tt.seq_release(fr_seq(fp)); in ft_free_cmd() 120 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() 161 cmd->seq = lport->tt.seq_start_next(cmd->seq); in ft_queue_status() 165 lport->tt.seq_send(lport, cmd->seq, fp); in ft_queue_status() 166 lport->tt.exch_done(cmd->seq); in ft_queue_status() 185 struct fc_lport *lport; in ft_write_pending() local [all …]
|
D | tfc_sess.c | 55 static struct ft_tport *ft_tport_create(struct fc_lport *lport) in ft_tport_create() argument 61 tport = rcu_dereference_protected(lport->prov[FC_TYPE_FCP], in ft_tport_create() 66 tpg = ft_lport_find_tpg(lport); in ft_tport_create() 80 tport->lport = lport; in ft_tport_create() 86 rcu_assign_pointer(lport->prov[FC_TYPE_FCP], tport); in ft_tport_create() 96 struct fc_lport *lport; in ft_tport_delete() local 100 lport = tport->lport; in ft_tport_delete() 101 BUG_ON(tport != lport->prov[FC_TYPE_FCP]); in ft_tport_delete() 102 rcu_assign_pointer(lport->prov[FC_TYPE_FCP], NULL); in ft_tport_delete() 116 void ft_lport_add(struct fc_lport *lport, void *arg) in ft_lport_add() argument [all …]
|
D | tfc_io.c | 66 struct fc_lport *lport; in ft_queue_data_in() local 87 lport = ep->lp; in ft_queue_data_in() 88 cmd->seq = lport->tt.seq_start_next(cmd->seq); in ft_queue_data_in() 119 frame_len = (lport->seq_offload) ? lport->lso_max : in ft_queue_data_in() 122 fp = fc_frame_alloc(lport, use_sg ? 0 : frame_len); in ft_queue_data_in() 173 error = lport->tt.seq_send(lport, cmd->seq, fp); in ft_queue_data_in() 180 remaining, lport->lso_max); in ft_queue_data_in() 194 struct fc_lport *lport; in ft_recv_write_data() local 215 lport = ep->lp; in ft_recv_write_data() 218 BUG_ON(!lport); in ft_recv_write_data() [all …]
|
/linux-3.4.99/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 …]
|
/linux-3.4.99/net/netfilter/ |
D | xt_TPROXY.c | 89 tproxy_handle_time_wait4(struct sk_buff *skb, __be32 laddr, __be16 lport, in tproxy_handle_time_wait4() argument 108 hp->source, lport ? lport : hp->dest, in tproxy_handle_time_wait4() 121 tproxy_tg4(struct sk_buff *skb, __be32 laddr, __be16 lport, in tproxy_tg4() argument 142 if (!lport) in tproxy_tg4() 143 lport = hp->dest; in tproxy_tg4() 148 sk = tproxy_handle_time_wait4(skb, laddr, lport, sk); in tproxy_tg4() 154 hp->source, lport, in tproxy_tg4() 165 &laddr, ntohs(lport), skb->mark); in tproxy_tg4() 182 return tproxy_tg4(skb, tgi->laddr, tgi->lport, tgi->mark_mask, tgi->mark_value); in tproxy_tg4_v0() 190 return tproxy_tg4(skb, tgi->laddr.ip, tgi->lport, tgi->mark_mask, tgi->mark_value); in tproxy_tg4_v1() [all …]
|
/linux-3.4.99/drivers/scsi/fnic/ |
D | fnic_main.c | 191 FNIC_MAIN_DBG(KERN_DEBUG, fnic->lport->host, in fnic_get_stats() 219 shost_printk(KERN_ERR, fnic->lport->host, in fnic_log_q_error() 227 shost_printk(KERN_ERR, fnic->lport->host, in fnic_log_q_error() 235 shost_printk(KERN_ERR, fnic->lport->host, in fnic_log_q_error() 271 shost_printk(KERN_ERR, fnic->lport->host, in fnic_notify_set() 395 static u8 *fnic_get_mac(struct fc_lport *lport) in fnic_get_mac() argument 397 struct fnic *fnic = lport_priv(lport); in fnic_get_mac() 425 fnic->lport = lp; in fnic_probe() 435 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe() 447 shost_printk(KERN_ERR, fnic->lport->host, in fnic_probe() [all …]
|
D | fnic_fcs.c | 67 fnic->lport->host_stats.link_failure_count++; in fnic_handle_link() 69 FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host, in fnic_handle_link() 72 FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host, in fnic_handle_link() 82 FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host, "link up\n"); in fnic_handle_link() 86 fnic->lport->host_stats.link_failure_count++; in fnic_handle_link() 88 FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host, "link down\n"); in fnic_handle_link() 100 struct fc_lport *lp = fnic->lport; in fnic_handle_frame() 197 FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host, "update_mac %pM\n", new); in fnic_update_mac_locked() 210 void fnic_update_mac(struct fc_lport *lport, u8 *new) in fnic_update_mac() argument 212 struct fnic *fnic = lport_priv(lport); in fnic_update_mac() [all …]
|
D | fnic_scsi.c | 194 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, in fnic_fw_reset_handler() 197 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, in fnic_fw_reset_handler() 211 struct fc_lport *lp = fnic->lport; in fnic_flogi_reg_handler() 239 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, in fnic_flogi_reg_handler() 245 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, in fnic_flogi_reg_handler() 486 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, in DEF_SCSI_QCMD() 492 fnic->lport->host, in DEF_SCSI_QCMD() 507 fnic->lport->host, in DEF_SCSI_QCMD() 557 FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, in fnic_fcpio_flogi_reg_cmpl_handler() 562 fnic->lport->host, in fnic_fcpio_flogi_reg_cmpl_handler() [all …]
|
D | fnic_res.c | 45 shost_printk(KERN_ERR, fnic->lport->host, \ in fnic_get_vnic_config() 146 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config() 152 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config() 155 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config() 158 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config() 161 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config() 164 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config() 167 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config() 170 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config() 173 shost_printk(KERN_INFO, fnic->lport->host, in fnic_get_vnic_config() [all …]
|
/linux-3.4.99/include/trace/events/ |
D | udp.h | 18 __field(__u16, lport) 23 __entry->lport = inet_sk(sk)->inet_num; 26 TP_printk("rc=%d port=%hu", __entry->rc, __entry->lport)
|