| /linux/drivers/scsi/libfc/ |
| H A D | fc_lport.c | 110 static void fc_lport_enter_fdmi(struct fc_lport *lport); 144 struct fc_lport *lport; member 156 static int fc_frame_drop(struct fc_lport *lport, struct fc_frame *fp) in fc_frame_drop() argument 171 static void fc_lport_rport_callback(struct fc_lport *lport, in fc_lport_rport_callback() argument 175 FC_LPORT_DBG(lport, "Received a %d event for port (%6.6x)\n", event, in fc_lport_rport_callback() 178 mutex_lock(&lport->lp_mutex); in fc_lport_rport_callback() 181 if (lport->state == LPORT_ST_DNS) { in fc_lport_rport_callback() 182 lport->dns_rdata = rdata; in fc_lport_rport_callback() 183 fc_lport_enter_ns(lport, LPORT_ST_RNN_ID); in fc_lport_rport_callback() 184 } else if (lport->state == LPORT_ST_FDMI) { in fc_lport_rport_callback() [all …]
|
| H A D | fc_rport.c | 23 * either the lport or disc mutexes. The rport's mutex is considered lesser 24 * than both the lport's mutex and the disc mutex. Refer to fc_lport.c for 27 * The locking strategy is similar to the lport's strategy. The lock protects 98 * @lport: The local port to lookup the remote port on 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() 123 * @lport: The local port this remote port will be associated with 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_i in fc_rport_create() 265 struct fc_lport *lport = rdata->local_port; fc_rport_work() local 505 struct fc_lport *lport = rdata->local_port; fc_rport_logoff() local 615 struct fc_lport *lport = rdata->local_port; fc_rport_error() local 701 struct fc_lport *lport = rdata->local_port; fc_rport_login_complete() local 742 struct fc_lport *lport = rdata->local_port; fc_rport_flogi_resp() local 822 struct fc_lport *lport = rdata->local_port; fc_rport_enter_flogi() local 855 fc_rport_recv_flogi_req(struct fc_lport * lport,struct fc_frame * rx_fp) fc_rport_recv_flogi_req() argument 986 struct fc_lport *lport = rdata->local_port; fc_rport_plogi_resp() local 1050 fc_rport_compatible_roles(struct fc_lport * lport,struct fc_rport_priv * rdata) fc_rport_compatible_roles() argument 1071 struct fc_lport *lport = rdata->local_port; fc_rport_enter_plogi() local 1247 struct fc_lport *lport = rdata->local_port; fc_rport_enter_prli() local 1387 struct fc_lport *lport = rdata->local_port; fc_rport_enter_rtv() local 1419 struct fc_lport *lport = rdata->local_port; fc_rport_recv_rtv_req() local 1457 struct fc_lport *lport = rdata->local_port; fc_rport_logo_resp() local 1474 struct fc_lport *lport = rdata->local_port; fc_rport_enter_logo() local 1561 struct fc_lport *lport = rdata->local_port; fc_rport_enter_adisc() local 1593 struct fc_lport *lport = rdata->local_port; fc_rport_recv_adisc_req() local 1632 struct fc_lport *lport = rdata->local_port; fc_rport_recv_rls_req() local 1697 fc_rport_recv_els_req(struct fc_lport * lport,struct fc_frame * fp) fc_rport_recv_els_req() argument 1794 fc_rport_recv_req(struct fc_lport * lport,struct fc_frame * fp) fc_rport_recv_req() argument 1842 fc_rport_recv_plogi_req(struct fc_lport * lport,struct fc_frame * rx_fp) fc_rport_recv_plogi_req() argument 1968 struct fc_lport *lport = rdata->local_port; fc_rport_recv_prli_req() local 2084 struct fc_lport *lport = rdata->local_port; fc_rport_recv_prlo_req() local 2153 fc_rport_recv_logo_req(struct fc_lport * lport,struct fc_frame * fp) fc_rport_recv_logo_req() argument 2202 struct fc_lport *lport = rdata->local_port; fc_rport_fcp_prli() local 2288 struct fc_lport *lport = rpriv->local_port; fc_rport_terminate_io() local [all...] |
| H A D | fc_disc.c | 19 * be held when acquiring the lport lock. Refer to fc_lport.c for more 48 * fc_disc_stop_rports() - Delete all the remote ports associated with the lport 73 struct fc_lport *lport; in fc_disc_recv_rscn_req() 85 lport = fc_disc_lport(disc); in fc_disc_recv_rscn_req() 125 dp->lp = lport; in fc_disc_recv_rscn_req() 149 redisc = fc_disc_single(lport, dp); in fc_disc_recv_rscn_req() 158 redisc, lport->state, disc->pending); in fc_disc_recv_rscn_req() 172 * @lport: The local port receiving the request 179 static void fc_disc_recv_req(struct fc_lport *lport, struct fc_frame *fp) in fc_disc_recv_req() 182 struct fc_disc *disc = &lport in fc_disc_recv_req() 72 struct fc_lport *lport; fc_disc_recv_rscn_req() local 178 fc_disc_recv_req(struct fc_lport * lport,struct fc_frame * fp) fc_disc_recv_req() argument 232 fc_disc_start(void (* disc_callback)(struct fc_lport *,enum fc_disc_event),struct fc_lport * lport) fc_disc_start() argument 254 struct fc_lport *lport = fc_disc_lport(disc); fc_disc_done() local 298 struct fc_lport *lport = fc_disc_lport(disc); fc_disc_error() local 342 struct fc_lport *lport = fc_disc_lport(disc); fc_disc_gpn_ft_req() local 378 struct fc_lport *lport; fc_disc_gpn_ft_parse() local 570 struct fc_lport *lport; fc_disc_gpn_id_resp() local 643 fc_disc_gpn_id_req(struct fc_lport * lport,struct fc_rport_priv * rdata) fc_disc_gpn_id_req() argument 666 fc_disc_single(struct fc_lport * lport,struct fc_disc_port * dp) fc_disc_single() argument 683 fc_disc_stop(struct fc_lport * lport) fc_disc_stop() argument 701 fc_disc_stop_final(struct fc_lport * lport) fc_disc_stop_final() argument 712 fc_disc_config(struct fc_lport * lport,void * priv) fc_disc_config() argument 738 fc_disc_init(struct fc_lport * lport) fc_disc_init() argument [all...] |
| H A D | fc_fcp.c | 126 * @lport: The local port that the FCP packet is for 132 static struct fc_fcp_pkt *fc_fcp_pkt_alloc(struct fc_lport *lport, gfp_t gfp) in fc_fcp_pkt_alloc() 134 struct fc_fcp_internal *si = fc_get_scsi_internal(lport); in fc_fcp_pkt_alloc() 140 fsp->lp = lport; in fc_fcp_pkt_alloc() 147 this_cpu_inc(lport->stats->FcpPktAllocFails); in fc_fcp_pkt_alloc() 324 struct fc_lport *lport; in fc_fcp_ddp_setup() 326 lport = fsp->lp; in fc_fcp_ddp_setup() 328 (lport->lro_enabled) && (lport->tt.ddp_setup)) { 329 if (lport 131 fc_fcp_pkt_alloc(struct fc_lport * lport,gfp_t gfp) fc_fcp_pkt_alloc() argument 318 struct fc_lport *lport; fc_fcp_ddp_setup() local 336 struct fc_lport *lport; fc_fcp_ddp_done() local 355 fc_fcp_can_queue_ramp_up(struct fc_lport * lport) fc_fcp_can_queue_ramp_up() argument 397 fc_fcp_can_queue_ramp_down(struct fc_lport * lport) fc_fcp_can_queue_ramp_down() argument 433 fc_fcp_frame_alloc(struct fc_lport * lport,size_t len) fc_fcp_frame_alloc() argument 475 struct fc_lport *lport = fsp->lp; fc_fcp_recv_data() local 596 struct fc_lport *lport = fsp->lp; fc_fcp_send_data() local 776 struct fc_lport *lport = fsp->lp; fc_fcp_recv() local 980 struct fc_lport *lport = fsp->lp; fc_fcp_complete_locked() local 1059 fc_fcp_cleanup_each_cmd(struct fc_lport * lport,unsigned int id,unsigned int lun,int error) fc_fcp_cleanup_each_cmd() argument 1116 fc_fcp_abort_io(struct fc_lport * lport) fc_fcp_abort_io() argument 1129 fc_fcp_pkt_send(struct fc_lport * lport,struct fc_fcp_pkt * fsp) fc_fcp_pkt_send() argument 1162 fc_fcp_cmd_send(struct fc_lport * lport,struct fc_fcp_pkt * fsp,void (* resp)(struct fc_seq *,struct fc_frame * fp,void * arg)) fc_fcp_cmd_send() argument 1287 struct fc_lport *lport = fsp->lp; fc_lun_reset_send() local 1308 fc_lun_reset(struct fc_lport * lport,struct fc_fcp_pkt * fsp,unsigned int id,unsigned int lun) fc_lun_reset() argument 1401 fc_fcp_cleanup(struct fc_lport * lport) fc_fcp_cleanup() argument 1457 struct fc_lport *lport; fc_fcp_rec() local 1716 struct fc_lport *lport = fsp->lp; fc_fcp_srr() local 1843 fc_fcp_lport_queue_ready(struct fc_lport * lport) fc_fcp_lport_queue_ready() argument 1860 struct fc_lport *lport = shost_priv(shost); fc_queuecommand() local 1956 struct fc_lport *lport; fc_io_compl() local 2100 struct fc_lport *lport; fc_eh_abort() local 2152 struct fc_lport *lport; fc_eh_device_reset() local 2201 struct fc_lport *lport = shost_priv(shost); fc_eh_host_reset() local 2248 fc_fcp_destroy(struct fc_lport * lport) fc_fcp_destroy() argument 2287 fc_fcp_init(struct fc_lport * lport) fc_fcp_init() argument [all...] |
| H A D | fc_exch.c | 77 * @lport: Local exchange port 86 struct fc_lport *lport; member 463 static int fc_seq_send_locked(struct fc_lport *lport, struct fc_seq *sp, in fc_seq_send_locked() argument 499 error = lport->tt.frame_send(lport, fp); in fc_seq_send_locked() 518 * @lport: The local port that the exchange will be sent on 525 int fc_seq_send(struct fc_lport *lport, struct fc_seq *sp, struct fc_frame *fp) in fc_seq_send() argument 531 error = fc_seq_send_locked(lport, sp, fp); in fc_seq_send() 807 * @lport: The local port that the exchange is for 812 static struct fc_exch *fc_exch_em_alloc(struct fc_lport *lport, in fc_exch_em_alloc() argument 905 fc_exch_alloc(struct fc_lport * lport,struct fc_frame * fp) fc_exch_alloc() argument 928 struct fc_lport *lport = mp->lport; fc_exch_find() local 990 fc_exch_resp(struct fc_lport * lport,struct fc_exch_mgr * mp,struct fc_frame * fp) fc_exch_resp() argument 1038 fc_seq_lookup_recip(struct fc_lport * lport,struct fc_exch_mgr * mp,struct fc_frame * fp) fc_seq_lookup_recip() argument 1281 struct fc_lport *lport = ep->lp; fc_seq_send_ack() local 1346 struct fc_lport *lport; fc_exch_send_ba_rjt() local 1474 fc_seq_assign(struct fc_lport * lport,struct fc_frame * fp) fc_seq_assign() argument 1509 fc_exch_recv_req(struct fc_lport * lport,struct fc_exch_mgr * mp,struct fc_frame * fp) fc_exch_recv_req() argument 1831 struct fc_lport *lport; fc_seq_ls_acc() local 1863 struct fc_lport *lport; fc_seq_ls_rjt() local 1934 fc_exch_pool_reset(struct fc_lport * lport,struct fc_exch_pool * pool,u32 sid,u32 did) fc_exch_pool_reset() argument 1979 fc_exch_mgr_reset(struct fc_lport * lport,u32 sid,u32 did) fc_exch_mgr_reset() argument 2000 fc_exch_lookup(struct fc_lport * lport,u32 xid) fc_exch_lookup() argument 2018 struct fc_lport *lport; fc_exch_els_rec() local 2175 fc_exch_seq_send(struct fc_lport * lport,struct fc_frame * fp,void (* resp)(struct fc_seq *,struct fc_frame * fp,void * arg),void (* destructor)(struct fc_seq *,void *),void * arg,u32 timer_msec) fc_exch_seq_send() argument 2245 struct fc_lport *lport; fc_exch_rrq() local 2295 struct fc_lport *lport; fc_exch_els_rrq() local 2361 fc_exch_update_stats(struct fc_lport * lport) fc_exch_update_stats() argument 2388 fc_exch_mgr_add(struct fc_lport * lport,struct fc_exch_mgr * mp,bool (* match)(struct fc_frame *)) fc_exch_mgr_add() argument 2462 fc_exch_mgr_alloc(struct fc_lport * lport,enum fc_class class,u16 min_xid,u16 max_xid,bool (* match)(struct fc_frame *)) fc_exch_mgr_alloc() argument 2557 fc_exch_mgr_free(struct fc_lport * lport) fc_exch_mgr_free() argument 2575 fc_find_ema(u32 f_ctl,struct fc_lport * lport,struct fc_frame_header * fh) fc_find_ema() argument 2602 fc_exch_recv(struct fc_lport * lport,struct fc_frame * fp) fc_exch_recv() argument 2660 fc_exch_init(struct fc_lport * lport) fc_exch_init() argument [all...] |
| H A 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()
|
| H A 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 …]
|
| H A 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))
|
| /linux/drivers/target/tcm_fc/ |
| H A 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 …]
|
| H A D | tfc_io.c | 46 struct fc_lport *lport; in ft_queue_data_in() local 71 lport = ep->lp; in ft_queue_data_in() 110 frame_len = (lport->seq_offload) ? lport->lso_max : in ft_queue_data_in() 113 fp = fc_frame_alloc(lport, use_sg ? 0 : frame_len); in ft_queue_data_in() 163 error = fc_seq_send(lport, seq, fp); in ft_queue_data_in() 169 remaining, lport->lso_max); in ft_queue_data_in() 200 struct fc_lport *lport; in ft_recv_write_data() local 221 lport = ep->lp; in ft_recv_write_data() 223 BUG_ON(!lport); in ft_recv_write_data() 331 struct fc_lport *lport = NULL; in ft_invl_hw_context() local [all …]
|
| H A D | tfc_cmd.c | 105 struct fc_lport *lport; in ft_queue_status() local 114 lport = ep->lp; in ft_queue_status() 116 fp = fc_frame_alloc(lport, len); in ft_queue_status() 152 rc = fc_seq_send(lport, cmd->seq, fp); in ft_queue_status() 182 struct fc_lport *lport; in ft_write_pending() local 192 lport = ep->lp; in ft_write_pending() 193 fp = fc_frame_alloc(lport, sizeof(*txrdy)); in ft_write_pending() 213 if ((ep->xid <= lport->lro_xid) && in ft_write_pending() 216 lport->tt.ddp_target(lport, ep->xid, in ft_write_pending() 222 fc_seq_send(lport, cmd->seq, fp); in ft_write_pending() [all …]
|
| /linux/drivers/scsi/qedf/ |
| H A 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() 30 struct fc_lport *lport = shost_priv(class_to_shost(dev)); in fcoe_mac_show() local 35 port_id = fc_host_port_id(lport->host); in fcoe_mac_show() 47 struct fc_lport *lport = shost_priv(class_to_shost(dev)); in fka_period_show() local 48 struct qedf_ctx *qedf = lport_priv(lport); in fka_period_show() 101 qedf_uevent_emit(base_qedf->lport->host, QEDF_UEVENT_CODE_GRCDUMP, in qedf_capture_grc_dump() 111 struct fc_lport *lport = shost_priv(dev_to_shost(container_of(kobj, in qedf_sysfs_read_grcdump() local [all …]
|
| H A D | qedf_main.c | 271 struct fc_lport *lport = exch->lp; in qedf_flogi_resp() local 272 struct qedf_ctx *qedf = lport_priv(lport); in qedf_flogi_resp() 303 fc_lport_flogi_resp(seq, fp, lport); in qedf_flogi_resp() 306 static struct fc_seq *qedf_elsct_send(struct fc_lport *lport, u32 did, in qedf_elsct_send() argument 313 struct qedf_ctx *qedf = lport_priv(lport); in qedf_elsct_send() 333 return fc_elsct_send(lport, did, fp, op, qedf_flogi_resp, in qedf_elsct_send() 337 return fc_elsct_send(lport, did, fp, op, resp, arg, timeout); in qedf_elsct_send() 342 struct fc_lport *lport; in qedf_send_flogi() local 345 lport = qedf->lport; in qedf_send_flogi() 347 if (!lport->tt.elsct_send) { in qedf_send_flogi() [all …]
|
| H A 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 …]
|
| /linux/drivers/nvme/host/ |
| H A D | fc.c | 132 struct list_head endp_list; /* for lport->endp_list */ 138 struct nvme_fc_lport *lport; 155 struct nvme_fc_lport *lport; 241 struct nvme_fc_lport *lport = in nvme_fc_free_lport() 245 WARN_ON(lport->localport.port_state != FC_OBJSTATE_DELETED); in nvme_fc_free_lport() 246 WARN_ON(!list_empty(&lport->endp_list)); in nvme_fc_free_lport() 250 list_del(&lport->port_list); in nvme_fc_free_lport() 253 ida_free(&nvme_fc_local_port_cnt, lport->localport.port_num); in nvme_fc_free_lport() 254 ida_destroy(&lport->endp_cnt); in nvme_fc_free_lport() 256 put_device(lport in nvme_fc_free_lport() 139 struct nvme_fc_lport *lport; global() member 156 struct nvme_fc_lport *lport; global() member 242 struct nvme_fc_lport *lport = nvme_fc_free_lport() local 263 nvme_fc_lport_put(struct nvme_fc_lport * lport) nvme_fc_lport_put() argument 269 nvme_fc_lport_get(struct nvme_fc_lport * lport) nvme_fc_lport_get() argument 280 struct nvme_fc_lport *lport; nvme_fc_attach_to_unreg_lport() local 457 struct nvme_fc_lport *lport = localport_to_lport(portptr); nvme_fc_unregister_localport() local 493 nvme_fc_signal_discovery_scan(struct nvme_fc_lport * lport,struct nvme_fc_rport * rport) nvme_fc_signal_discovery_scan() argument 517 struct nvme_fc_lport *lport = nvme_fc_free_rport() local 583 nvme_fc_attach_to_suspended_rport(struct nvme_fc_lport * lport,struct nvme_fc_port_info * pinfo) nvme_fc_attach_to_suspended_rport() argument 670 struct nvme_fc_lport *lport = localport_to_lport(localport); nvme_fc_register_remoteport() local 1418 struct nvme_fc_lport *lport = rport->lport; nvme_fc_xmt_ls_rsp_free() local 1449 struct nvme_fc_lport *lport = rport->lport; nvme_fc_xmt_ls_rsp() local 1667 nvme_fc_rcv_ls_req_err_msg(struct nvme_fc_lport * lport,struct fcnvme_ls_rqst_w0 * w0) nvme_fc_rcv_ls_req_err_msg() argument 1700 struct nvme_fc_lport *lport = rport->lport; nvme_fc_rcv_ls_req() local 2985 struct nvme_fc_lport *lport = rport->lport; nvme_fc_rport_active_on_lport() local 2993 struct nvme_fc_lport *lport = rport->lport; nvme_fc_rport_inactive_on_lport() local 3021 struct nvme_fc_lport *lport = rport->lport; nvme_fc_ctlr_inactive_on_rport() local 3448 nvme_fc_alloc_ctrl(struct device * dev,struct nvmf_ctrl_options * opts,struct nvme_fc_lport * lport,struct nvme_fc_rport * rport) nvme_fc_alloc_ctrl() argument 3556 nvme_fc_init_ctrl(struct device * dev,struct nvmf_ctrl_options * opts,struct nvme_fc_lport * lport,struct nvme_fc_rport * rport) nvme_fc_init_ctrl() argument 3707 struct nvme_fc_lport *lport; nvme_fc_create_ctrl() local 3773 struct nvme_fc_lport *lport; nvme_fc_nvme_discovery_store() local 3977 struct nvme_fc_lport *lport; nvme_fc_exit_module() local [all...] |
| /linux/drivers/scsi/bnx2fc/ |
| H A 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()
|
| H A D | bnx2fc_els.c | 67 struct fc_lport *lport = NULL; in bnx2fc_send_rrq() 77 lport = tgt->rdata->local_port; in bnx2fc_send_rrq() 79 r_a_tov = lport->r_a_tov; in bnx2fc_send_rrq() 188 struct fc_lport *lport = tgt->rdata->local_port; in bnx2fc_send_adisc() 189 u32 r_a_tov = lport->r_a_tov; in bnx2fc_send_adisc() 216 struct fc_lport *lport = tgt->rdata->local_port; in bnx2fc_send_logo() 217 u32 r_a_tov = lport->r_a_tov; in bnx2fc_send_logo() 244 struct fc_lport *lport = tgt->rdata->local_port; in bnx2fc_send_rls() 245 u32 r_a_tov = lport->r_a_tov; in bnx2fc_send_rls() 588 struct fc_lport *lport in bnx2fc_send_rec() 65 struct fc_lport *lport = NULL; bnx2fc_send_rrq() local 187 struct fc_lport *lport = tgt->rdata->local_port; bnx2fc_send_adisc() local 215 struct fc_lport *lport = tgt->rdata->local_port; bnx2fc_send_logo() local 243 struct fc_lport *lport = tgt->rdata->local_port; bnx2fc_send_rls() local 586 struct fc_lport *lport = tgt->rdata->local_port; bnx2fc_send_rec() local 628 struct fc_lport *lport = tgt->rdata->local_port; bnx2fc_send_srr() local 678 struct fc_lport *lport = port->lport; bnx2fc_initiate_els() local 865 struct fc_lport *lport = exch->lp; bnx2fc_flogi_resp() local 917 struct fc_lport *lport = exch->lp; bnx2fc_logo_resp() local 925 bnx2fc_elsct_send(struct fc_lport * lport,u32 did,struct fc_frame * fp,unsigned int op,void (* resp)(struct fc_seq *,struct fc_frame *,void *),void * arg,u32 timeout) bnx2fc_elsct_send() argument [all...] |
| H A D | bnx2fc_io.c | 657 static int bnx2fc_initiate_tmf(struct fc_lport *lport, struct fc_rport *rport, in bnx2fc_initiate_tmf() argument 676 port = lport_priv(lport); in bnx2fc_initiate_tmf() 690 if (lport->state != LPORT_ST_READY || !(lport->link_up)) { in bnx2fc_initiate_tmf() 815 struct fc_lport *lport; in bnx2fc_initiate_abts() local 837 lport = port->lport; in bnx2fc_initiate_abts() 851 if (lport->state != LPORT_ST_READY || !(lport->link_up)) { in bnx2fc_initiate_abts() 1060 struct fc_lport *lport in bnx2fc_eh_target_reset() local 1076 struct fc_lport *lport = shost_priv(rport_to_shost(rport)); bnx2fc_eh_device_reset() local 1129 struct fc_lport *lport; bnx2fc_eh_abort() local 1840 struct fc_lport *lport = shost_priv(host); bnx2fc_queuecommand() local 2030 struct fc_lport *lport = port->lport; bnx2fc_post_io_req() local [all...] |
| /linux/drivers/nvme/target/ |
| H A D | fcloop.c | 214 struct fcloop_lport *lport; member 224 struct fcloop_lport *lport; member 235 struct fcloop_lport *lport; member 245 struct fcloop_lport *lport; member 545 *wwnn = rport->lport->localport->node_name; in fcloop_t2h_host_traddr() 546 *wwpn = rport->lport->localport->port_name; in fcloop_t2h_host_traddr() 1054 fcloop_lport_put(struct fcloop_lport *lport) in fcloop_lport_put() 1058 if (!refcount_dec_and_test(&lport->ref)) in fcloop_lport_put() 1062 list_del(&lport->lport_list); in fcloop_lport_put() 1065 kfree(lport); 1052 fcloop_lport_put(struct fcloop_lport * lport) fcloop_lport_put() argument 1067 fcloop_lport_get(struct fcloop_lport * lport) fcloop_lport_get() argument 1100 struct fcloop_lport *lport = lport_priv->lport; fcloop_localport_delete() local 1199 struct fcloop_lport *lport; fcloop_create_local_port() local 1254 __localport_unreg(struct fcloop_lport * lport) __localport_unreg() argument 1294 struct fcloop_lport *lport; __fcloop_lport_lookup() local 1313 struct fcloop_lport *lport; fcloop_lport_lookup() local 1327 struct fcloop_lport *lport; fcloop_delete_local_port() local 1349 struct fcloop_lport *lport; fcloop_alloc_nport() local 1738 struct fcloop_lport *lport; fcloop_exit() local [all...] |
| /linux/net/netfilter/ |
| H A 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() 92 return tproxy_tg4(xt_net(par), skb, tgi->laddr, tgi->lport, in tproxy_tg4_v0() 104 return tproxy_tg4(xt_net(par), skb, tgi->laddr.ip, tgi->lport, in tproxy_tg4_v1() 119 __be16 lport; in tproxy_tg6_v1() local 141 lport = tgi->lport ? tgi->lport : hp->dest; in tproxy_tg6_v1() 150 tgi->lport, in tproxy_tg6_v1() [all …]
|
| /linux/drivers/infiniband/hw/irdma/ |
| H A D | trace_cm.h | 25 __field(u16, lport) 29 __entry->lport = cm_info->loc_port; 37 __entry->lport, __entry->ipv4) 47 __field(u16, lport) 52 __entry->lport = listener->loc_port; 61 __entry->lport, __entry->ipv4) 69 __field(u16, lport) 77 __entry->lport = listener->loc_port; 88 __entry->lport, __entry->ipv4) 150 __field(u16, lport) [all …]
|
| /linux/drivers/scsi/fcoe/ |
| H A D | fcoe_ctlr.c | 525 * @lport: libfc fc_lport to send from 537 struct fc_lport *lport, in fcoe_ctlr_send_keep_alive() 583 memcpy(vn->fd_mac, fip->get_src_addr(lport), ETH_ALEN); in fcoe_ctlr_send_keep_alive() 584 hton24(vn->fd_fc_id, lport->port_id); in fcoe_ctlr_send_keep_alive() 585 put_unaligned_be64(lport->wwpn, &vn->fd_wwpn); in fcoe_ctlr_send_keep_alive() 598 * @lport: The local port 611 static int fcoe_ctlr_encaps(struct fcoe_ctlr *fip, struct fc_lport *lport, in fcoe_ctlr_encaps() 632 if (lport->point_to_multipoint) { in fcoe_ctlr_encaps() 667 memcpy(mac->fd_mac, fip->get_src_addr(lport), ETH_ALEN); in fcoe_ctlr_encaps() 691 * @lport 530 fcoe_ctlr_send_keep_alive(struct fcoe_ctlr * fip,struct fc_lport * lport,int ports,u8 * sa) fcoe_ctlr_send_keep_alive() argument 604 fcoe_ctlr_encaps(struct fcoe_ctlr * fip,struct fc_lport * lport,u8 dtype,struct sk_buff * skb,u32 d_id) fcoe_ctlr_encaps() argument 697 fcoe_ctlr_els_send(struct fcoe_ctlr * fip,struct fc_lport * lport,struct sk_buff * skb) fcoe_ctlr_els_send() argument 1136 struct fc_lport *lport = fip->lp; fcoe_ctlr_recv_els() local 1317 struct fc_lport *lport = fip->lp; fcoe_ctlr_recv_clr_vlink() local 1896 fcoe_ctlr_recv_flogi(struct fcoe_ctlr * fip,struct fc_lport * lport,struct fc_frame * fp) fcoe_ctlr_recv_flogi() argument 2117 fcoe_ctlr_vn_rport_callback(struct fc_lport * lport,struct fc_rport_priv * rdata,enum fc_rport_event event) fcoe_ctlr_vn_rport_callback() argument 2159 fcoe_ctlr_disc_stop_locked(struct fc_lport * lport) fcoe_ctlr_disc_stop_locked() argument 2181 fcoe_ctlr_disc_stop(struct fc_lport * lport) fcoe_ctlr_disc_stop() argument 2197 fcoe_ctlr_disc_stop_final(struct fc_lport * lport) fcoe_ctlr_disc_stop_final() argument 2485 struct fc_lport *lport = fip->lp; fcoe_ctlr_vn_add() local 2543 struct fc_lport *lport = fip->lp; fcoe_ctlr_vn_lookup() local 2639 struct fc_lport *lport = fip->lp; fcoe_ctlr_vn_beacon() local 2692 struct fc_lport *lport = fip->lp; fcoe_ctlr_vn_age() local 3000 fcoe_ctlr_disc_recv(struct fc_lport * lport,struct fc_frame * fp) fcoe_ctlr_disc_recv() argument 3023 fcoe_ctlr_disc_start(void (* callback)(struct fc_lport *,enum fc_disc_event),struct fc_lport * lport) fcoe_ctlr_disc_start() argument 3046 struct fc_lport *lport = fip->lp; fcoe_ctlr_vn_disc() local 3159 fcoe_ctlr_mode_set(struct fc_lport * lport,struct fcoe_ctlr * fip,enum fip_mode fip_mode) fcoe_ctlr_mode_set() argument 3197 fcoe_libfc_config(struct fc_lport * lport,struct fcoe_ctlr * fip,const struct libfc_function_template * tt,int init_fcp) fcoe_libfc_config() argument 3236 struct fc_lport *lport = ctlr->lp; fcoe_ctlr_set_fip_mode() local [all...] |
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | tcp_hdr_options.c | 185 int lport; in check_error_linum() local 187 lport = sk_fds->passive_lport; in check_error_linum() 188 if (!bpf_map_lookup_elem(lport_linum_map_fd, &lport, &linum_err)) { in check_error_linum() 191 lport, linum_err.linum, linum_err.err); in check_error_linum() 195 lport = sk_fds->active_lport; in check_error_linum() 196 if (!bpf_map_lookup_elem(lport_linum_map_fd, &lport, &linum_err)) { in check_error_linum() 199 lport, linum_err.linum, linum_err.err); in check_error_linum() 260 int lport, err; in reset_test() local 288 err = bpf_map_get_next_key(lport_linum_map_fd, NULL, &lport); in reset_test() 290 bpf_map_delete_elem(lport_linum_map_fd, &lport); in reset_test() [all …]
|
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | l2t.c | 155 req->params = htons(L2T_W_PORT_V(e->lport) | L2T_W_NOREPLY_V(!sync)); in write_l2e() 311 (e->vlan == vlan) && (e->lport == port)) in find_or_alloc_l2e() 419 u8 lport; in cxgb4_l2t_get() local 428 lport = netdev2pinfo(physdev)->tx_chan + 4; in cxgb4_l2t_get() 430 lport = netdev2pinfo(physdev)->lport; in cxgb4_l2t_get() 442 e->vlan == vlan && e->lport == lport) { in cxgb4_l2t_get() 459 e->lport = lport; in cxgb4_l2t_get() 488 ntuple |= (u64)l2t->lport << tp->port_shift; in cxgb4_select_ntuple() 591 e->lport = port; in t4_l2t_alloc_switching() 709 e->vlan & VLAN_VID_MASK, vlan_prio(e), e->lport, in l2t_seq_show()
|
| /linux/tools/testing/selftests/net/mptcp/ |
| H A D | diag.sh | 151 lport=$1 154 __chk_listen "dport $lport" 0 "listen match for dport $lport" 157 __chk_listen "sport $lport" 1 "listen match for sport $lport" 159 __chk_listen "src inet:0.0.0.0:$lport" 1 "listen match for saddr and sport"
|