Searched refs:ln (Results 1 - 80 of 80) sorted by relevance

/linux-4.4.14/drivers/scsi/csiostor/
H A Dcsio_attr.c48 csio_vport_set_state(struct csio_lnode *ln);
61 struct csio_lnode *ln = csio_rnode_to_lnode(rn); csio_reg_rnode() local
62 struct Scsi_Host *shost = csio_ln_to_shost(ln); csio_reg_rnode()
80 csio_ln_err(ln, "Failed to register rport = 0x%x.\n", csio_reg_rnode()
85 ln->num_reg_rnodes++; csio_reg_rnode()
108 csio_ln_dbg(ln, "Remote port x%x role 0x%x registered\n", csio_reg_rnode()
123 struct csio_lnode *ln = csio_rnode_to_lnode(rn); csio_unreg_rnode() local
128 ln->num_reg_rnodes--; csio_unreg_rnode()
130 csio_ln_dbg(ln, "Remote port x%x un-registered\n", rn->nport_id); csio_unreg_rnode()
135 * @ln: lnode representing local port.
141 csio_lnode_async_event(struct csio_lnode *ln, enum csio_ln_fc_evt fc_evt) csio_lnode_async_event() argument
145 /* Get payload of rscn from ln */ csio_lnode_async_event()
157 if (csio_is_npiv_ln(ln)) csio_lnode_async_event()
158 csio_vport_set_state(ln); csio_lnode_async_event()
164 if (csio_is_npiv_ln(ln)) csio_lnode_async_event()
165 csio_vport_set_state(ln); csio_lnode_async_event()
169 csio_fchost_attr_init(ln); csio_lnode_async_event()
178 * @ln: Lnode.
182 csio_fchost_attr_init(struct csio_lnode *ln) csio_fchost_attr_init() argument
184 struct Scsi_Host *shost = csio_ln_to_shost(ln); csio_fchost_attr_init()
186 fc_host_node_name(shost) = wwn_to_u64(csio_ln_wwnn(ln)); csio_fchost_attr_init()
187 fc_host_port_name(shost) = wwn_to_u64(csio_ln_wwpn(ln)); csio_fchost_attr_init()
191 (csio_lnode_to_hw(ln))->fres_info.max_vnps; csio_fchost_attr_init()
195 fc_host_maxframe_size(shost) = ntohs(ln->ln_sparm.csp.sp_bb_data); csio_fchost_attr_init()
212 struct csio_lnode *ln = shost_priv(shost); csio_get_host_port_id() local
213 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_get_host_port_id()
216 fc_host_port_id(shost) = ln->nport_id; csio_get_host_port_id()
228 struct csio_lnode *ln = shost_priv(shost); csio_get_host_port_type() local
229 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_get_host_port_type()
232 if (csio_is_npiv_ln(ln)) csio_get_host_port_type()
247 struct csio_lnode *ln = shost_priv(shost); csio_get_host_port_state() local
248 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_get_host_port_state()
253 csio_lnode_state_to_str(ln, state); csio_get_host_port_state()
272 struct csio_lnode *ln = shost_priv(shost); csio_get_host_speed() local
273 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_get_host_speed()
276 switch (hw->pport[ln->portid].link_speed) { csio_get_host_speed()
298 struct csio_lnode *ln = shost_priv(shost); csio_get_host_fabric_name() local
300 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_get_host_fabric_name()
303 rn = csio_rnode_lookup_portid(ln, FC_FID_FLOGI); csio_get_host_fabric_name()
313 * @ln: Lnode.
319 struct csio_lnode *ln = shost_priv(shost); csio_get_stats() local
320 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_get_stats()
321 struct fc_host_statistics *fhs = &ln->fch_stats; csio_get_stats()
326 csio_get_phy_port_stats(hw, ln->portid, &fcoe_port_stats); csio_get_stats()
345 fhs->fcp_input_requests += ln->stats.n_input_requests; csio_get_stats()
346 fhs->fcp_output_requests += ln->stats.n_output_requests; csio_get_stats()
347 fhs->fcp_control_requests += ln->stats.n_control_requests; csio_get_stats()
348 fhs->fcp_input_megabytes += ln->stats.n_input_bytes >> 20; csio_get_stats()
349 fhs->fcp_output_megabytes += ln->stats.n_output_bytes >> 20; csio_get_stats()
350 fhs->link_failure_count = ln->stats.n_link_down; csio_get_stats()
377 csio_vport_set_state(struct csio_lnode *ln) csio_vport_set_state() argument
379 struct fc_vport *fc_vport = ln->fc_vport; csio_vport_set_state()
380 struct csio_lnode *pln = ln->pln; csio_vport_set_state()
396 csio_lnode_state_to_str(ln, state); csio_vport_set_state()
405 csio_fcoe_alloc_vnp(struct csio_hw *hw, struct csio_lnode *ln) csio_fcoe_alloc_vnp() argument
423 pln = ln->pln; csio_fcoe_alloc_vnp()
424 ln->fcf_flowid = pln->fcf_flowid; csio_fcoe_alloc_vnp()
425 ln->portid = pln->portid; csio_fcoe_alloc_vnp()
427 csio_fcoe_vnp_alloc_init_mb(ln, mbp, CSIO_MB_DEFAULT_TMO, csio_fcoe_alloc_vnp()
429 csio_ln_wwnn(ln), csio_ln_wwpn(ln), NULL); csio_fcoe_alloc_vnp()
448 csio_ln_err(ln, "Failed to issue mbox FCoE VNP command\n"); csio_fcoe_alloc_vnp()
455 csio_ln_err(ln, "FCOE VNP ALLOC cmd returned 0x%x!\n", csio_fcoe_alloc_vnp()
461 ln->vnp_flowid = FW_FCOE_VNP_CMD_VNPI_GET( csio_fcoe_alloc_vnp()
463 memcpy(csio_ln_wwnn(ln), rsp->vnport_wwnn, 8); csio_fcoe_alloc_vnp()
464 memcpy(csio_ln_wwpn(ln), rsp->vnport_wwpn, 8); csio_fcoe_alloc_vnp()
466 csio_ln_dbg(ln, "FCOE VNPI: 0x%x\n", ln->vnp_flowid); csio_fcoe_alloc_vnp()
467 csio_ln_dbg(ln, "\tWWNN: %x%x%x%x%x%x%x%x\n", csio_fcoe_alloc_vnp()
468 ln->ln_sparm.wwnn[0], ln->ln_sparm.wwnn[1], csio_fcoe_alloc_vnp()
469 ln->ln_sparm.wwnn[2], ln->ln_sparm.wwnn[3], csio_fcoe_alloc_vnp()
470 ln->ln_sparm.wwnn[4], ln->ln_sparm.wwnn[5], csio_fcoe_alloc_vnp()
471 ln->ln_sparm.wwnn[6], ln->ln_sparm.wwnn[7]); csio_fcoe_alloc_vnp()
472 csio_ln_dbg(ln, "\tWWPN: %x%x%x%x%x%x%x%x\n", csio_fcoe_alloc_vnp()
473 ln->ln_sparm.wwpn[0], ln->ln_sparm.wwpn[1], csio_fcoe_alloc_vnp()
474 ln->ln_sparm.wwpn[2], ln->ln_sparm.wwpn[3], csio_fcoe_alloc_vnp()
475 ln->ln_sparm.wwpn[4], ln->ln_sparm.wwpn[5], csio_fcoe_alloc_vnp()
476 ln->ln_sparm.wwpn[6], ln->ln_sparm.wwpn[7]); csio_fcoe_alloc_vnp()
486 csio_fcoe_free_vnp(struct csio_hw *hw, struct csio_lnode *ln) csio_fcoe_free_vnp() argument
505 pln = ln->pln; csio_fcoe_free_vnp()
507 csio_fcoe_vnp_free_init_mb(ln, mbp, CSIO_MB_DEFAULT_TMO, csio_fcoe_free_vnp()
508 ln->fcf_flowid, ln->vnp_flowid, csio_fcoe_free_vnp()
523 csio_ln_err(ln, "Failed to issue mbox FCoE VNP command\n"); csio_fcoe_free_vnp()
530 csio_ln_err(ln, "FCOE VNP FREE cmd returned 0x%x!\n", csio_fcoe_free_vnp()
547 struct csio_lnode *ln = NULL; csio_vport_create() local
552 ln = csio_shost_init(hw, &fc_vport->dev, false, pln); csio_vport_create()
553 if (!ln) csio_vport_create()
560 csio_ln_err(ln, csio_vport_create()
564 memcpy(csio_ln_wwnn(ln), wwn, 8); csio_vport_create()
571 csio_ln_err(ln, csio_vport_create()
577 csio_ln_err(ln, csio_vport_create()
581 memcpy(csio_ln_wwpn(ln), wwn, 8); csio_vport_create()
586 if (csio_fcoe_alloc_vnp(hw, ln)) csio_vport_create()
589 *(struct csio_lnode **)fc_vport->dd_data = ln; csio_vport_create()
590 ln->fc_vport = fc_vport; csio_vport_create()
592 fc_vport->node_name = wwn_to_u64(csio_ln_wwnn(ln)); csio_vport_create()
594 fc_vport->port_name = wwn_to_u64(csio_ln_wwpn(ln)); csio_vport_create()
595 csio_fchost_attr_init(ln); csio_vport_create()
598 if (ln) csio_vport_create()
599 csio_shost_exit(ln); csio_vport_create()
607 struct csio_lnode *ln = *(struct csio_lnode **)fc_vport->dd_data; csio_vport_delete() local
608 struct Scsi_Host *shost = csio_ln_to_shost(ln); csio_vport_delete()
609 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_vport_delete()
617 csio_shost_exit(ln); csio_vport_delete()
624 csio_scsim_cleanup_io_lnode(csio_hw_to_scsim(hw), ln); csio_vport_delete() local
625 csio_lnode_close(ln); csio_vport_delete()
631 csio_fcoe_free_vnp(hw, ln); csio_vport_delete()
633 csio_shost_exit(ln); csio_vport_delete()
640 struct csio_lnode *ln = *(struct csio_lnode **)fc_vport->dd_data; csio_vport_disable() local
641 struct Scsi_Host *shost = csio_ln_to_shost(ln); csio_vport_disable()
642 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_vport_disable()
649 csio_scsim_cleanup_io_lnode(csio_hw_to_scsim(hw), ln); csio_vport_disable() local
650 csio_lnode_stop(ln); csio_vport_disable()
655 csio_fcoe_free_vnp(hw, ln); csio_vport_disable()
657 csio_ln_err(ln, "vport disabled\n"); csio_vport_disable()
662 if (csio_fcoe_alloc_vnp(hw, ln)) { csio_vport_disable()
663 csio_ln_err(ln, "vport enabled failed.\n"); csio_vport_disable()
666 csio_ln_err(ln, "vport enabled\n"); csio_vport_disable()
676 struct csio_lnode *ln; csio_dev_loss_tmo_callbk() local
679 ln = csio_rnode_to_lnode(rn); csio_dev_loss_tmo_callbk()
680 hw = csio_lnode_to_hw(ln); csio_dev_loss_tmo_callbk()
688 csio_ln_dbg(ln, "devloss timeout on rnode:%p portid:x%x flowid:x%x\n", csio_dev_loss_tmo_callbk()
691 CSIO_INC_STATS(ln, n_dev_loss_tmo); csio_dev_loss_tmo_callbk()
H A Dcsio_lnode.c117 struct csio_lnode *ln = hw->rln; csio_ln_lookup_by_portid() local
122 ln = (struct csio_lnode *) tmp; csio_ln_lookup_by_portid()
123 if (ln->portid == portid) csio_ln_lookup_by_portid()
124 return ln; csio_ln_lookup_by_portid()
261 struct csio_lnode *ln = fdmi_req->lnode; csio_ln_fdmi_done() local
264 csio_ln_dbg(ln, "WR error:%x in processing fdmi rpa cmd\n", csio_ln_fdmi_done()
266 CSIO_INC_STATS(ln, n_fdmi_err); csio_ln_fdmi_done()
271 csio_ln_dbg(ln, "fdmi rpa cmd rejected reason %x expl %x\n", csio_ln_fdmi_done()
290 struct csio_lnode *ln = fdmi_req->lnode; csio_ln_fdmi_rhba_cbfn() local
297 csio_ln_dbg(ln, "WR error:%x in processing fdmi rhba cmd\n", csio_ln_fdmi_rhba_cbfn()
299 CSIO_INC_STATS(ln, n_fdmi_err); csio_ln_fdmi_rhba_cbfn()
304 csio_ln_dbg(ln, "fdmi rhba cmd rejected reason %x expl %x\n", csio_ln_fdmi_rhba_cbfn()
309 CSIO_INC_STATS(ln, n_fdmi_err); csio_ln_fdmi_rhba_cbfn()
320 memcpy(&port_name->portname, csio_ln_wwpn(ln), 8); csio_ln_fdmi_rhba_cbfn()
342 if (hw->pport[ln->portid].link_speed == FW_PORT_CAP_SPEED_1G) csio_ln_fdmi_rhba_cbfn()
344 else if (hw->pport[ln->portid].link_speed == FW_PORT_CAP_SPEED_10G) csio_ln_fdmi_rhba_cbfn()
353 mfs = ln->ln_sparm.csp.sp_bb_data; csio_ln_fdmi_rhba_cbfn()
375 CSIO_INC_STATS(ln, n_fdmi_err); csio_ln_fdmi_rhba_cbfn()
376 csio_ln_dbg(ln, "Failed to issue fdmi rpa req\n"); csio_ln_fdmi_rhba_cbfn()
395 struct csio_lnode *ln = fdmi_req->lnode; csio_ln_fdmi_dprt_cbfn() local
401 csio_ln_dbg(ln, "WR error:%x in processing fdmi dprt cmd\n", csio_ln_fdmi_dprt_cbfn()
403 CSIO_INC_STATS(ln, n_fdmi_err); csio_ln_fdmi_dprt_cbfn()
407 CSIO_INC_STATS(ln, n_fdmi_err); csio_ln_fdmi_dprt_cbfn()
412 csio_ln_dbg(ln, "fdmi dprt cmd rejected reason %x expl %x\n", csio_ln_fdmi_dprt_cbfn()
424 memcpy(&hbaid->id, csio_ln_wwpn(ln), 8); /* HBA identifer */ csio_ln_fdmi_dprt_cbfn()
430 memcpy(&reg_pl->port[0].portname, csio_ln_wwpn(ln), 8); csio_ln_fdmi_dprt_cbfn()
439 csio_append_attrib(&pld, FC_FDMI_HBA_ATTR_NODENAME, csio_ln_wwnn(ln), csio_ln_fdmi_dprt_cbfn()
482 CSIO_INC_STATS(ln, n_fdmi_err); csio_ln_fdmi_dprt_cbfn()
483 csio_ln_dbg(ln, "Failed to issue fdmi rhba req\n"); csio_ln_fdmi_dprt_cbfn()
496 struct csio_lnode *ln = fdmi_req->lnode; csio_ln_fdmi_dhba_cbfn() local
502 csio_ln_dbg(ln, "WR error:%x in processing fdmi dhba cmd\n", csio_ln_fdmi_dhba_cbfn()
504 CSIO_INC_STATS(ln, n_fdmi_err); csio_ln_fdmi_dhba_cbfn()
508 CSIO_INC_STATS(ln, n_fdmi_err); csio_ln_fdmi_dhba_cbfn()
513 csio_ln_dbg(ln, "fdmi dhba cmd rejected reason %x expl %x\n", csio_ln_fdmi_dhba_cbfn()
526 memcpy(&port_name->portname, csio_ln_wwpn(ln), 8); csio_ln_fdmi_dhba_cbfn()
533 CSIO_INC_STATS(ln, n_fdmi_err); csio_ln_fdmi_dhba_cbfn()
534 csio_ln_dbg(ln, "Failed to issue fdmi dprt req\n"); csio_ln_fdmi_dhba_cbfn()
541 * @ln: lnode
547 csio_ln_fdmi_start(struct csio_lnode *ln, void *context) csio_ln_fdmi_start() argument
555 if (!(ln->flags & CSIO_LNF_FDMI_ENABLE)) csio_ln_fdmi_start()
559 CSIO_INC_STATS(ln, n_fdmi_err); csio_ln_fdmi_start()
565 fdmi_req = ln->mgmt_req; csio_ln_fdmi_start()
566 fdmi_req->lnode = ln; csio_ln_fdmi_start()
576 memcpy(&hbaid->id, csio_ln_wwpn(ln), 8); csio_ln_fdmi_start()
582 CSIO_INC_STATS(ln, n_fdmi_err); csio_ln_fdmi_start()
583 csio_ln_dbg(ln, "Failed to issue fdmi dhba req\n"); csio_ln_fdmi_start()
594 * Reads vnp response and updates ln parameters.
599 struct csio_lnode *ln = ((struct csio_lnode *)mbp->priv); csio_ln_vnp_read_cbfn() local
615 memcpy(ln->mac, rsp->vnport_mac, sizeof(ln->mac)); csio_ln_vnp_read_cbfn()
617 ln->nport_id = ntohl(nport_id); csio_ln_vnp_read_cbfn()
618 ln->nport_id = ln->nport_id >> 8; csio_ln_vnp_read_cbfn()
626 memcpy(csio_ln_wwnn(ln), rsp->vnport_wwnn, 8); csio_ln_vnp_read_cbfn()
627 memcpy(csio_ln_wwpn(ln), rsp->vnport_wwpn, 8); csio_ln_vnp_read_cbfn()
631 ln->ln_sparm.csp.sp_hi_ver = csp->sp_hi_ver; csio_ln_vnp_read_cbfn()
632 ln->ln_sparm.csp.sp_lo_ver = csp->sp_lo_ver; csio_ln_vnp_read_cbfn()
633 ln->ln_sparm.csp.sp_bb_cred = csp->sp_bb_cred; csio_ln_vnp_read_cbfn()
634 ln->ln_sparm.csp.sp_features = csp->sp_features; csio_ln_vnp_read_cbfn()
635 ln->ln_sparm.csp.sp_bb_data = csp->sp_bb_data; csio_ln_vnp_read_cbfn()
636 ln->ln_sparm.csp.sp_r_a_tov = csp->sp_r_a_tov; csio_ln_vnp_read_cbfn()
637 ln->ln_sparm.csp.sp_e_d_tov = csp->sp_e_d_tov; csio_ln_vnp_read_cbfn()
641 ln->ln_sparm.clsp[2].cp_class = clsp->cp_class; csio_ln_vnp_read_cbfn()
642 ln->ln_sparm.clsp[2].cp_init = clsp->cp_init; csio_ln_vnp_read_cbfn()
643 ln->ln_sparm.clsp[2].cp_recip = clsp->cp_recip; csio_ln_vnp_read_cbfn()
644 ln->ln_sparm.clsp[2].cp_rdfs = clsp->cp_rdfs; csio_ln_vnp_read_cbfn()
651 csio_lnode_async_event(ln, CSIO_LN_FC_ATTRIB_UPDATE); csio_ln_vnp_read_cbfn()
656 * @ln: lnode
662 csio_ln_vnp_read(struct csio_lnode *ln, csio_ln_vnp_read() argument
665 struct csio_hw *hw = ln->hwp; csio_ln_vnp_read()
676 csio_fcoe_vnp_read_init_mb(ln, mbp, csio_ln_vnp_read()
678 ln->fcf_flowid, csio_ln_vnp_read()
679 ln->vnp_flowid, csio_ln_vnp_read()
694 * @ln: lnode
697 * Issues mbox cmd to bring up FCOE link on port associated with given ln.
700 csio_fcoe_enable_link(struct csio_lnode *ln, bool enable) csio_fcoe_enable_link() argument
702 struct csio_hw *hw = ln->hwp; csio_fcoe_enable_link()
716 portid = ln->portid; csio_fcoe_enable_link()
722 csio_write_fcoe_link_cond_init_mb(ln, mbp, CSIO_MB_DEFAULT_TMO, csio_fcoe_enable_link()
746 memcpy(csio_ln_wwnn(ln), lcmd->vnport_wwnn, 8); csio_fcoe_enable_link()
747 memcpy(csio_ln_wwpn(ln), lcmd->vnport_wwpn, 8); csio_fcoe_enable_link()
760 * @ln: lnode
762 * read fcf response and Update ln fcf information.
767 struct csio_lnode *ln = (struct csio_lnode *)mbp->priv; csio_ln_read_fcf_cbfn() local
775 csio_ln_err(ln, "FCOE FCF cmd failed with ret x%x\n", csio_ln_read_fcf_cbfn()
782 fcf_info = ln->fcfinfo; csio_ln_read_fcf_cbfn()
807 * @ln: lnode
813 csio_ln_read_fcf_entry(struct csio_lnode *ln, csio_ln_read_fcf_entry() argument
816 struct csio_hw *hw = ln->hwp; csio_ln_read_fcf_entry()
826 csio_fcoe_read_fcf_init_mb(ln, mbp, CSIO_MB_DEFAULT_TMO, csio_ln_read_fcf_entry()
827 ln->portid, ln->fcf_flowid, cbfn); csio_ln_read_fcf_entry()
858 struct csio_lnode *ln = NULL; csio_handle_link_up() local
861 ln = csio_ln_lookup_by_vnpi(hw, vnpi); csio_handle_link_up()
862 if (!ln) { csio_handle_link_up()
864 ln = csio_ln_lookup_by_portid(hw, portid); csio_handle_link_up()
865 if (!ln) { csio_handle_link_up()
873 if (ln->vnp_flowid != CSIO_INVALID_IDX) { csio_handle_link_up()
878 if (!ln) { csio_handle_link_up()
886 ln->portid = portid; csio_handle_link_up()
888 ln->vnp_flowid = vnpi; csio_handle_link_up()
889 ln->dev_num &= ~0xFFFF; csio_handle_link_up()
890 ln->dev_num |= vnpi; csio_handle_link_up()
894 ln->fcf_flowid = fcfi; csio_handle_link_up()
898 CSIO_INC_STATS(ln, n_link_up); csio_handle_link_up()
901 csio_post_event(&ln->sm, CSIO_LNE_LINKUP); csio_handle_link_up()
906 * @ln - FCOE lnode
917 csio_post_event_rns(struct csio_lnode *ln, enum csio_rn_ev evt) csio_post_event_rns() argument
919 struct csio_rnode *rnhead = (struct csio_rnode *) &ln->rnhead; csio_post_event_rns()
931 * @ln - FCOE lnode
939 csio_cleanup_rns(struct csio_lnode *ln) csio_cleanup_rns() argument
941 struct csio_rnode *rnhead = (struct csio_rnode *) &ln->rnhead; csio_cleanup_rns()
947 csio_put_rnode(ln, rn); csio_cleanup_rns()
954 * @ln - FCOE lnode
965 csio_post_event_lns(struct csio_lnode *ln, enum csio_ln_ev evt) csio_post_event_lns() argument
971 if (csio_is_npiv_ln(ln)) { csio_post_event_lns()
972 csio_post_event(&ln->sm, evt); csio_post_event_lns()
976 sln = ln; csio_post_event_lns()
984 csio_post_event(&ln->sm, evt); csio_post_event_lns()
989 * @ln - FCOE Lnode
997 csio_ln_down(struct csio_lnode *ln) csio_ln_down() argument
999 csio_post_event_lns(ln, CSIO_LNE_LINK_DOWN); csio_ln_down()
1021 struct csio_lnode *ln; csio_handle_link_down() local
1024 ln = csio_ln_lookup_by_vnpi(hw, vnpi); csio_handle_link_down()
1025 if (ln) { csio_handle_link_down()
1026 fp = ln->fcfinfo; csio_handle_link_down()
1027 CSIO_INC_STATS(ln, n_link_down); csio_handle_link_down()
1030 if (!csio_is_lnode_ready(ln)) { csio_handle_link_down()
1031 csio_ln_warn(ln, csio_handle_link_down()
1035 CSIO_INC_STATS(ln, n_evt_drop); csio_handle_link_down()
1041 csio_ln_warn(ln, csio_handle_link_down()
1044 CSIO_INC_STATS(ln, n_evt_drop); csio_handle_link_down()
1049 if (ln->fcf_flowid != fcfi) { csio_handle_link_down()
1050 csio_ln_warn(ln, csio_handle_link_down()
1053 CSIO_INC_STATS(ln, n_evt_drop); csio_handle_link_down()
1060 csio_ln_down(ln); csio_handle_link_down()
1073 * @ln: Lnode module
1078 csio_is_lnode_ready(struct csio_lnode *ln) csio_is_lnode_ready() argument
1080 return (csio_get_state(ln) == ((csio_sm_state_t)csio_lns_ready)); csio_is_lnode_ready()
1088 * @ln - FCOE lnode.
1096 csio_lns_uninit(struct csio_lnode *ln, enum csio_ln_ev evt) csio_lns_uninit() argument
1098 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_lns_uninit()
1102 CSIO_INC_STATS(ln, n_evt_sm[evt]); csio_lns_uninit()
1105 csio_set_state(&ln->sm, csio_lns_online); csio_lns_uninit()
1107 if (csio_is_phys_ln(ln)) { csio_lns_uninit()
1108 rv = csio_ln_read_fcf_entry(ln, csio_lns_uninit()
1112 CSIO_INC_STATS(ln, n_err); csio_lns_uninit()
1117 list_add_tail(&ln->fcfinfo->list, &rln->fcf_lsthead); csio_lns_uninit()
1120 rv = csio_ln_vnp_read(ln, csio_ln_vnp_read_cbfn); csio_lns_uninit()
1123 CSIO_INC_STATS(ln, n_err); csio_lns_uninit()
1131 csio_ln_dbg(ln, csio_lns_uninit()
1132 "unexp ln event %d recv from did:x%x in " csio_lns_uninit()
1133 "ln state[uninit].\n", evt, ln->nport_id); csio_lns_uninit()
1134 CSIO_INC_STATS(ln, n_evt_unexp); csio_lns_uninit()
1141 * @ln - FCOE lnode.
1149 csio_lns_online(struct csio_lnode *ln, enum csio_ln_ev evt) csio_lns_online() argument
1151 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_lns_online()
1153 CSIO_INC_STATS(ln, n_evt_sm[evt]); csio_lns_online()
1156 csio_ln_warn(ln, csio_lns_online()
1158 "Ignoring linkup on port:%d\n", ln->portid); csio_lns_online()
1159 CSIO_INC_STATS(ln, n_evt_drop); csio_lns_online()
1163 csio_set_state(&ln->sm, csio_lns_ready); csio_lns_online()
1166 csio_lnode_async_event(ln, CSIO_LN_FC_LINKUP); csio_lns_online()
1174 csio_set_state(&ln->sm, csio_lns_uninit); csio_lns_online()
1175 if (csio_is_phys_ln(ln)) { csio_lns_online()
1177 list_del_init(&ln->fcfinfo->list); csio_lns_online()
1182 csio_ln_dbg(ln, csio_lns_online()
1183 "unexp ln event %d recv from did:x%x in " csio_lns_online()
1184 "ln state[uninit].\n", evt, ln->nport_id); csio_lns_online()
1185 CSIO_INC_STATS(ln, n_evt_unexp); csio_lns_online()
1193 * @ln - FCOE lnode.
1201 csio_lns_ready(struct csio_lnode *ln, enum csio_ln_ev evt) csio_lns_ready() argument
1203 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_lns_ready()
1205 CSIO_INC_STATS(ln, n_evt_sm[evt]); csio_lns_ready()
1208 csio_ln_dbg(ln, csio_lns_ready()
1210 "in ln state[ready].\n", evt, ln->nport_id); csio_lns_ready()
1211 CSIO_INC_STATS(ln, n_evt_drop); csio_lns_ready()
1215 csio_set_state(&ln->sm, csio_lns_offline); csio_lns_ready()
1216 csio_post_event_rns(ln, CSIO_RNFE_DOWN); csio_lns_ready()
1219 csio_lnode_async_event(ln, CSIO_LN_FC_LINKDOWN); csio_lns_ready()
1222 if (csio_is_phys_ln(ln)) { csio_lns_ready()
1224 list_del_init(&ln->fcfinfo->list); csio_lns_ready()
1229 csio_set_state(&ln->sm, csio_lns_offline); csio_lns_ready()
1230 csio_post_event_rns(ln, CSIO_RNFE_DOWN); csio_lns_ready()
1236 csio_lnode_async_event(ln, CSIO_LN_FC_LINKDOWN); csio_lns_ready()
1239 if (csio_is_phys_ln(ln)) { csio_lns_ready()
1241 list_del_init(&ln->fcfinfo->list); csio_lns_ready()
1246 csio_set_state(&ln->sm, csio_lns_uninit); csio_lns_ready()
1247 csio_post_event_rns(ln, CSIO_RNFE_CLOSE); csio_lns_ready()
1251 csio_set_state(&ln->sm, csio_lns_offline); csio_lns_ready()
1252 csio_post_event_rns(ln, CSIO_RNFE_DOWN); csio_lns_ready()
1256 csio_ln_dbg(ln, csio_lns_ready()
1257 "unexp ln event %d recv from did:x%x in " csio_lns_ready()
1258 "ln state[uninit].\n", evt, ln->nport_id); csio_lns_ready()
1259 CSIO_INC_STATS(ln, n_evt_unexp); csio_lns_ready()
1267 * @ln - FCOE lnode.
1275 csio_lns_offline(struct csio_lnode *ln, enum csio_ln_ev evt) csio_lns_offline() argument
1277 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_lns_offline()
1281 CSIO_INC_STATS(ln, n_evt_sm[evt]); csio_lns_offline()
1284 csio_set_state(&ln->sm, csio_lns_online); csio_lns_offline()
1286 if (csio_is_phys_ln(ln)) { csio_lns_offline()
1287 rv = csio_ln_read_fcf_entry(ln, csio_lns_offline()
1291 CSIO_INC_STATS(ln, n_err); csio_lns_offline()
1296 list_add_tail(&ln->fcfinfo->list, &rln->fcf_lsthead); csio_lns_offline()
1299 rv = csio_ln_vnp_read(ln, csio_ln_vnp_read_cbfn); csio_lns_offline()
1302 CSIO_INC_STATS(ln, n_err); csio_lns_offline()
1309 csio_ln_dbg(ln, csio_lns_offline()
1311 "in ln state[offline].\n", evt, ln->nport_id); csio_lns_offline()
1312 CSIO_INC_STATS(ln, n_evt_drop); csio_lns_offline()
1316 csio_set_state(&ln->sm, csio_lns_uninit); csio_lns_offline()
1317 csio_post_event_rns(ln, CSIO_RNFE_CLOSE); csio_lns_offline()
1321 csio_ln_dbg(ln, csio_lns_offline()
1322 "unexp ln event %d recv from did:x%x in " csio_lns_offline()
1323 "ln state[offline]\n", evt, ln->nport_id); csio_lns_offline()
1324 CSIO_INC_STATS(ln, n_evt_unexp); csio_lns_offline()
1345 * @ln - lnode
1350 csio_lnode_state_to_str(struct csio_lnode *ln, int8_t *str) csio_lnode_state_to_str() argument
1352 if (csio_get_state(ln) == ((csio_sm_state_t)csio_lns_uninit)) { csio_lnode_state_to_str()
1356 if (csio_get_state(ln) == ((csio_sm_state_t)csio_lns_ready)) { csio_lnode_state_to_str()
1360 if (csio_get_state(ln) == ((csio_sm_state_t)csio_lns_offline)) { csio_lnode_state_to_str()
1468 struct csio_lnode *ln; csio_fcoe_fwevt_handler() local
1536 ln = csio_ln_lookup_by_vnpi(hw, vnpi); csio_fcoe_fwevt_handler()
1537 if (!ln) { csio_fcoe_fwevt_handler()
1545 rn = csio_confirm_rnode(ln, rdev_flowid, csio_fcoe_fwevt_handler()
1548 csio_ln_dbg(ln, csio_fcoe_fwevt_handler()
1556 ln->prev_evt = ln->cur_evt; csio_fcoe_fwevt_handler()
1557 ln->cur_evt = rdev_wr->event_cause; csio_fcoe_fwevt_handler()
1558 CSIO_INC_STATS(ln, n_evt_fw[rdev_wr->event_cause]); csio_fcoe_fwevt_handler()
1563 csio_ln_dbg(ln, csio_fcoe_fwevt_handler()
1567 csio_post_event(&ln->sm, evt); csio_fcoe_fwevt_handler()
1598 * @ln: lnode
1603 csio_lnode_start(struct csio_lnode *ln) csio_lnode_start() argument
1606 if (csio_is_phys_ln(ln) && !(ln->flags & CSIO_LNF_LINK_ENABLE)) { csio_lnode_start()
1607 rv = csio_fcoe_enable_link(ln, 1); csio_lnode_start()
1608 ln->flags |= CSIO_LNF_LINK_ENABLE; csio_lnode_start()
1616 * @ln: lnode
1622 csio_lnode_stop(struct csio_lnode *ln) csio_lnode_stop() argument
1624 csio_post_event_lns(ln, CSIO_LNE_DOWN_LINK); csio_lnode_stop()
1625 if (csio_is_phys_ln(ln) && (ln->flags & CSIO_LNF_LINK_ENABLE)) { csio_lnode_stop()
1626 csio_fcoe_enable_link(ln, 0); csio_lnode_stop()
1627 ln->flags &= ~CSIO_LNF_LINK_ENABLE; csio_lnode_stop()
1629 csio_ln_dbg(ln, "stopping ln :%p\n", ln); csio_lnode_stop()
1634 * @ln: lnode
1641 csio_lnode_close(struct csio_lnode *ln) csio_lnode_close() argument
1643 csio_post_event_lns(ln, CSIO_LNE_CLOSE); csio_lnode_close()
1644 if (csio_is_phys_ln(ln)) csio_lnode_close()
1645 ln->vnp_flowid = CSIO_INVALID_IDX; csio_lnode_close()
1647 csio_ln_dbg(ln, "closed ln :%p\n", ln); csio_lnode_close()
1712 struct csio_lnode *ln = io_req->lnode; csio_ln_mgmt_submit_wr() local
1746 ln->nport_id, rn->nport_id, csio_ln_mgmt_submit_wr()
1812 * @ln: lnode
1815 csio_ln_fdmi_init(struct csio_lnode *ln) csio_ln_fdmi_init() argument
1817 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_ln_fdmi_init()
1821 ln->mgmt_req = kzalloc(sizeof(struct csio_ioreq), GFP_KERNEL); csio_ln_fdmi_init()
1822 if (!ln->mgmt_req) { csio_ln_fdmi_init()
1823 csio_ln_err(ln, "Failed to alloc ioreq for FDMI\n"); csio_ln_fdmi_init()
1829 dma_buf = &ln->mgmt_req->dma_buf; csio_ln_fdmi_init()
1835 kfree(ln->mgmt_req); csio_ln_fdmi_init()
1836 ln->mgmt_req = NULL; csio_ln_fdmi_init()
1840 ln->flags |= CSIO_LNF_FDMI_ENABLE; csio_ln_fdmi_init()
1846 * @ln: lnode
1849 csio_ln_fdmi_exit(struct csio_lnode *ln) csio_ln_fdmi_exit() argument
1852 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_ln_fdmi_exit()
1854 if (!ln->mgmt_req) csio_ln_fdmi_exit()
1857 dma_buf = &ln->mgmt_req->dma_buf; csio_ln_fdmi_exit()
1862 kfree(ln->mgmt_req); csio_ln_fdmi_exit()
1867 csio_scan_done(struct csio_lnode *ln, unsigned long ticks, csio_scan_done() argument
1876 if (!ln->tgt_scan_tick) csio_scan_done()
1877 ln->tgt_scan_tick = ticks; csio_scan_done()
1879 if (((ticks - ln->tgt_scan_tick) >= delta_scan_ticks)) { csio_scan_done()
1880 if (!ln->last_scan_ntgts) csio_scan_done()
1881 ln->last_scan_ntgts = ln->n_scsi_tgts; csio_scan_done()
1883 if (ln->last_scan_ntgts == ln->n_scsi_tgts) csio_scan_done()
1886 ln->last_scan_ntgts = ln->n_scsi_tgts; csio_scan_done()
1888 ln->tgt_scan_tick = ticks; csio_scan_done()
1907 struct csio_lnode *ln; csio_notify_lnodes() local
1913 ln = (struct csio_lnode *) tmp; csio_notify_lnodes()
1917 csio_lnode_start(ln); csio_notify_lnodes()
1922 csio_lnode_close(ln); csio_notify_lnodes()
1926 csio_lnode_stop(ln); csio_notify_lnodes()
1949 struct csio_lnode *ln; csio_disable_lnodes() local
1955 ln = (struct csio_lnode *) tmp; csio_disable_lnodes()
1956 if (ln->portid != portid) csio_disable_lnodes()
1960 csio_lnode_stop(ln); csio_disable_lnodes()
1962 csio_lnode_start(ln); csio_disable_lnodes()
1968 * @ln: lnode
1972 csio_ln_init(struct csio_lnode *ln) csio_ln_init() argument
1976 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_ln_init()
1978 csio_init_state(&ln->sm, csio_lns_uninit); csio_ln_init()
1979 ln->vnp_flowid = CSIO_INVALID_IDX; csio_ln_init()
1980 ln->fcf_flowid = CSIO_INVALID_IDX; csio_ln_init()
1982 if (csio_is_root_ln(ln)) { csio_ln_init()
1986 ln->fcfinfo = kzalloc(sizeof(struct csio_fcf_info), GFP_KERNEL); csio_ln_init()
1987 if (!ln->fcfinfo) { csio_ln_init()
1988 csio_ln_err(ln, "Failed to alloc FCF record\n"); csio_ln_init()
1993 INIT_LIST_HEAD(&ln->fcf_lsthead); csio_ln_init()
1994 kref_init(&ln->fcfinfo->kref); csio_ln_init()
1996 if (csio_fdmi_enable && csio_ln_fdmi_init(ln)) csio_ln_init()
2005 rln = csio_root_lnode(ln); csio_ln_init()
2007 if (csio_is_npiv_ln(ln)) { csio_ln_init()
2009 pln = csio_parent_lnode(ln); csio_ln_init()
2011 ln->fcfinfo = pln->fcfinfo; csio_ln_init()
2014 ln->fcfinfo = kzalloc(sizeof(struct csio_fcf_info), csio_ln_init()
2016 if (!ln->fcfinfo) { csio_ln_init()
2017 csio_ln_err(ln, "Failed to alloc FCF info\n"); csio_ln_init()
2022 kref_init(&ln->fcfinfo->kref); csio_ln_init()
2024 if (csio_fdmi_enable && csio_ln_fdmi_init(ln)) csio_ln_init()
2028 } /* if (!csio_is_root_ln(ln)) */ csio_ln_init()
2036 csio_ln_exit(struct csio_lnode *ln) csio_ln_exit() argument
2040 csio_cleanup_rns(ln); csio_ln_exit()
2041 if (csio_is_npiv_ln(ln)) { csio_ln_exit()
2042 pln = csio_parent_lnode(ln); csio_ln_exit()
2045 kref_put(&ln->fcfinfo->kref, csio_free_fcfinfo); csio_ln_exit()
2047 csio_ln_fdmi_exit(ln); csio_ln_exit()
2049 ln->fcfinfo = NULL; csio_ln_exit()
2054 * @ln: lnode
2058 csio_lnode_init(struct csio_lnode *ln, struct csio_hw *hw, csio_lnode_init() argument
2064 csio_lnode_to_hw(ln) = hw; csio_lnode_init()
2068 ln->pln = pln; csio_lnode_init()
2070 ln->pln = NULL; csio_lnode_init()
2073 ln->n_scsi_tgts = 0; csio_lnode_init()
2074 ln->last_scan_ntgts = 0; csio_lnode_init()
2075 ln->tgt_scan_tick = 0; csio_lnode_init()
2078 INIT_LIST_HEAD(&ln->rnhead); csio_lnode_init()
2079 INIT_LIST_HEAD(&ln->cln_head); csio_lnode_init()
2082 ln->params.log_level = hw->params.log_level; csio_lnode_init()
2084 if (csio_ln_init(ln)) csio_lnode_init()
2089 list_add_tail(&ln->sm.sm_list, pln ? &pln->cln_head : &hw->sln_head); csio_lnode_init()
2098 csio_lnode_to_hw(ln) = NULL; csio_lnode_init()
2104 * @ln: lnode
2108 csio_lnode_exit(struct csio_lnode *ln) csio_lnode_exit() argument
2110 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_lnode_exit()
2112 csio_ln_exit(ln); csio_lnode_exit()
2117 list_del_init(&ln->sm.sm_list); csio_lnode_exit()
2122 if (ln->pln) csio_lnode_exit()
2123 ln->pln->num_vports--; csio_lnode_exit()
2133 csio_lnode_to_hw(ln) = NULL; csio_lnode_exit()
H A Dcsio_rnode.c114 * @ln - lnode
121 csio_rn_lookup(struct csio_lnode *ln, uint32_t flowid) csio_rn_lookup() argument
123 struct csio_rnode *rnhead = (struct csio_rnode *) &ln->rnhead; csio_rn_lookup()
138 * @ln: lnode
145 csio_rn_lookup_wwpn(struct csio_lnode *ln, uint8_t *wwpn) csio_rn_lookup_wwpn() argument
147 struct csio_rnode *rnhead = (struct csio_rnode *) &ln->rnhead; csio_rn_lookup_wwpn()
162 * @ln: lnode
169 csio_rnode_lookup_portid(struct csio_lnode *ln, uint32_t portid) csio_rnode_lookup_portid() argument
171 struct csio_rnode *rnhead = (struct csio_rnode *) &ln->rnhead; csio_rnode_lookup_portid()
185 csio_rn_dup_flowid(struct csio_lnode *ln, uint32_t rdev_flowid, csio_rn_dup_flowid() argument
192 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_rn_dup_flowid()
196 if (ln_tmp == ln) csio_rn_dup_flowid()
216 csio_alloc_rnode(struct csio_lnode *ln) csio_alloc_rnode() argument
218 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_alloc_rnode()
225 if (csio_rnode_init(rn, ln)) csio_alloc_rnode()
228 CSIO_INC_STATS(ln, n_rnode_alloc); csio_alloc_rnode()
235 CSIO_INC_STATS(ln, n_rnode_nomem); csio_alloc_rnode()
251 * @ln - lnode
258 csio_get_rnode(struct csio_lnode *ln, uint32_t flowid) csio_get_rnode() argument
262 rn = csio_rn_lookup(ln, flowid); csio_get_rnode()
264 rn = csio_alloc_rnode(ln); csio_get_rnode()
276 * @ln - lnode
283 csio_put_rnode(struct csio_lnode *ln, struct csio_rnode *rn) csio_put_rnode() argument
291 * @ln: lnode
300 csio_confirm_rnode(struct csio_lnode *ln, uint32_t rdev_flowid, csio_confirm_rnode() argument
314 csio_ln_dbg(ln, csio_confirm_rnode()
321 rn = csio_rn_lookup(ln, rdev_flowid); csio_confirm_rnode()
325 if (csio_rn_dup_flowid(ln, rdev_flowid, &vnp_flowid)) { csio_confirm_rnode()
326 csio_ln_warn(ln, csio_confirm_rnode()
333 rn = csio_rn_lookup_wwpn(ln, rdevp->wwpn); csio_confirm_rnode()
340 match_rn = csio_rnode_lookup_portid(ln, csio_confirm_rnode()
355 csio_ln_dbg(ln, csio_confirm_rnode()
362 csio_ln_warn(ln, csio_confirm_rnode()
383 match_rn = csio_rn_lookup_wwpn(ln, rdevp->wwpn); csio_confirm_rnode()
385 csio_ln_dbg(ln, csio_confirm_rnode()
393 csio_ln_dbg(ln, csio_confirm_rnode()
399 csio_ln_warn(ln, csio_confirm_rnode()
412 csio_ln_dbg(ln, "found rnode:%p ssni:x%x name(wwpn):%llx\n", csio_confirm_rnode()
420 CSIO_INC_STATS(ln, n_rnode_match); csio_confirm_rnode()
424 rn = csio_get_rnode(ln, rdev_flowid); csio_confirm_rnode()
428 csio_ln_dbg(ln, "alloc rnode:%p ssni:x%x name(wwpn):%llx\n", csio_confirm_rnode()
438 * @ln: lnode
444 csio_rn_verify_rparams(struct csio_lnode *ln, struct csio_rnode *rn, csio_rn_verify_rparams() argument
459 csio_ln_err(ln, "ssni:x%x invalid fabric portid\n", csio_rn_verify_rparams()
465 ln->flags |= CSIO_LNF_NPIVSUPP; csio_rn_verify_rparams()
472 csio_ln_err(ln, "ssni:x%x invalid fabric portid\n", csio_rn_verify_rparams()
508 csio_ln_err(ln, "ssni:x%x invalid rport type recv x%x\n", csio_rn_verify_rparams()
517 csio_ln_err(ln, csio_rn_verify_rparams()
526 csio_ln_err(ln, csio_rn_verify_rparams()
550 struct csio_lnode *ln = csio_rnode_to_lnode(rn); __csio_reg_rnode() local
551 struct csio_hw *hw = csio_lnode_to_hw(ln); __csio_reg_rnode()
558 ln->n_scsi_tgts++; __csio_reg_rnode()
561 csio_ln_fdmi_start(ln, (void *) rn); __csio_reg_rnode()
567 struct csio_lnode *ln = csio_rnode_to_lnode(rn); __csio_unreg_rnode() local
568 struct csio_hw *hw = csio_lnode_to_hw(ln); __csio_unreg_rnode()
579 ln->n_scsi_tgts--; __csio_unreg_rnode()
580 ln->last_scan_ntgts--; __csio_unreg_rnode()
606 struct csio_lnode *ln = csio_rnode_to_lnode(rn); csio_rns_uninit() local
614 ret = csio_rn_verify_rparams(ln, rn, rn->rdev_entry); csio_rns_uninit()
623 csio_ln_dbg(ln, csio_rns_uninit()
629 csio_ln_dbg(ln, csio_rns_uninit()
646 struct csio_lnode *ln = csio_rnode_to_lnode(rn); csio_rns_ready() local
654 csio_ln_dbg(ln, csio_rns_ready()
663 ret = csio_rn_verify_rparams(ln, rn, rn->rdev_entry); csio_rns_ready()
713 csio_ln_dbg(ln, csio_rns_ready()
731 struct csio_lnode *ln = csio_rnode_to_lnode(rn); csio_rns_offline() local
739 ret = csio_rn_verify_rparams(ln, rn, rn->rdev_entry); csio_rns_offline()
750 csio_ln_dbg(ln, csio_rns_offline()
772 csio_ln_dbg(ln, csio_rns_offline()
790 struct csio_lnode *ln = csio_rnode_to_lnode(rn); csio_rns_disappeared() local
798 ret = csio_rn_verify_rparams(ln, rn, rn->rdev_entry); csio_rns_disappeared()
820 csio_ln_dbg(ln, csio_rns_disappeared()
827 csio_ln_dbg(ln, csio_rns_disappeared()
849 struct csio_lnode *ln = csio_rnode_to_lnode(rn); csio_rnode_devloss_handler() local
859 csio_put_rnode(ln, rn); csio_rnode_devloss_handler()
870 struct csio_lnode *ln = csio_rnode_to_lnode(rn); csio_rnode_fwevt_handler() local
875 csio_ln_err(ln, "ssni:x%x Unhandled FW Rdev event: %d\n", csio_rnode_fwevt_handler()
891 csio_put_rnode(ln, rn); csio_rnode_fwevt_handler()
897 * @ln: Associated lnode
900 * to be held for inserting the rnode in ln->rnhead list.
903 csio_rnode_init(struct csio_rnode *rn, struct csio_lnode *ln) csio_rnode_init() argument
905 csio_rnode_to_lnode(rn) = ln; csio_rnode_init()
911 list_add_tail(&rn->sm.sm_list, &ln->rnhead); csio_rnode_init()
H A Dcsio_lnode.h204 #define csio_lnode_to_hw(ln) ((ln)->hwp)
205 #define csio_root_lnode(ln) (csio_lnode_to_hw((ln))->rln)
206 #define csio_parent_lnode(ln) ((ln)->pln)
207 #define csio_ln_flowid(ln) ((ln)->vnp_flowid)
208 #define csio_ln_wwpn(ln) ((ln)->ln_sparm.wwpn)
209 #define csio_ln_wwnn(ln) ((ln)->ln_sparm.wwnn)
211 #define csio_is_root_ln(ln) (((ln) == csio_root_lnode((ln))) ? 1 : 0)
212 #define csio_is_phys_ln(ln) (((ln)->pln == NULL) ? 1 : 0)
213 #define csio_is_npiv_ln(ln) (((ln)->pln != NULL) ? 1 : 0)
238 void csio_lnode_state_to_str(struct csio_lnode *ln, int8_t *str);
H A Dcsio_init.c604 struct csio_lnode *ln; csio_shost_init() local
625 ln = shost_priv(shost); csio_shost_init()
626 memset(ln, 0, sizeof(struct csio_lnode)); csio_shost_init()
629 ln->dev_num = (shost->host_no << 16); csio_shost_init()
645 hw->rln = ln; csio_shost_init()
648 if (csio_lnode_init(ln, hw, pln)) csio_shost_init()
654 return ln; csio_shost_init()
657 csio_lnode_exit(ln); csio_shost_init()
666 * @ln: The lnode module corresponding to the shost.
670 csio_shost_exit(struct csio_lnode *ln) csio_shost_exit() argument
672 struct Scsi_Host *shost = csio_ln_to_shost(ln); csio_shost_exit()
673 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_shost_exit()
688 csio_lnode_exit(ln); csio_shost_exit()
703 struct csio_lnode *ln; csio_lnodes_block_request() local
729 ln = lnode_list[ii]; csio_lnodes_block_request()
730 shost = csio_ln_to_shost(ln); csio_lnodes_block_request()
740 struct csio_lnode *ln; csio_lnodes_unblock_request() local
768 ln = lnode_list[ii]; csio_lnodes_unblock_request()
769 shost = csio_ln_to_shost(ln); csio_lnodes_unblock_request()
778 struct csio_lnode *ln; csio_lnodes_block_by_port() local
809 ln = lnode_list[ii]; csio_lnodes_block_by_port()
810 shost = csio_ln_to_shost(ln); csio_lnodes_block_by_port()
819 struct csio_lnode *ln; csio_lnodes_unblock_by_port() local
849 ln = lnode_list[ii]; csio_lnodes_unblock_by_port()
850 shost = csio_ln_to_shost(ln); csio_lnodes_unblock_by_port()
860 struct csio_lnode *ln; csio_lnodes_exit() local
886 ln = lnode_list[ii]; csio_lnodes_exit()
887 fc_vport_terminate(ln->fc_vport); csio_lnodes_exit()
916 * @ln: lnode.
920 csio_lnode_init_post(struct csio_lnode *ln) csio_lnode_init_post() argument
922 struct Scsi_Host *shost = csio_ln_to_shost(ln); csio_lnode_init_post()
924 csio_fchost_attr_init(ln); csio_lnode_init_post()
953 struct csio_lnode *ln; csio_probe_one() local
984 ln = csio_shost_init(hw, &pdev->dev, true, NULL); csio_probe_one()
985 if (!ln) { csio_probe_one()
990 ln->portid = hw->pport[i].portid; csio_probe_one()
993 if (csio_lnode_start(ln) != 0) csio_probe_one()
1000 csio_lnode_init_post(ln); csio_probe_one()
1123 struct csio_lnode *ln; csio_pci_resume() local
1130 ln = csio_shost_init(hw, &pdev->dev, true, NULL); csio_pci_resume()
1131 if (!ln) { csio_pci_resume()
1136 ln->portid = hw->pport[i].portid; csio_pci_resume()
1139 if (csio_lnode_start(ln) != 0) csio_pci_resume()
1146 csio_lnode_init_post(ln); csio_pci_resume()
H A Dcsio_scsi.c1194 struct csio_lnode *ln = ioreq->lnode; csio_abrt_cls() local
1195 struct csio_hw *hw = ln->hwp; csio_abrt_cls()
1205 ready = csio_is_lnode_ready(ln); csio_abrt_cls()
1318 csio_scsim_cleanup_io_lnode(struct csio_scsim *scm, struct csio_lnode *ln) csio_scsim_cleanup_io_lnode() argument
1325 csio_dbg(hw, "Gathering all SCSI I/Os on lnode %p\n", ln); csio_scsim_cleanup_io_lnode()
1328 sld.lnode = ln; csio_scsim_cleanup_io_lnode()
1329 INIT_LIST_HEAD(&ln->cmpl_q); csio_scsim_cleanup_io_lnode()
1330 csio_scsi_gather_active_ios(scm, &sld, &ln->cmpl_q); csio_scsim_cleanup_io_lnode()
1333 if (list_empty(&ln->cmpl_q)) csio_scsim_cleanup_io_lnode()
1337 while (!list_empty(&ln->cmpl_q) && count--) { csio_scsim_cleanup_io_lnode()
1344 if (list_empty(&ln->cmpl_q)) csio_scsim_cleanup_io_lnode()
1347 csio_dbg(hw, "Some I/Os pending on ln:%p, aborting them..\n", ln); csio_scsim_cleanup_io_lnode()
1350 rv = csio_scsi_abort_io_q(scm, &ln->cmpl_q, 30000); csio_scsim_cleanup_io_lnode()
1353 csio_scsi_cleanup_io_q(scm, &ln->cmpl_q); csio_scsim_cleanup_io_lnode()
1356 CSIO_DB_ASSERT(list_empty(&ln->cmpl_q)); csio_scsim_cleanup_io_lnode()
1365 struct csio_lnode *ln = shost_priv(class_to_shost(dev)); csio_show_hw_state() local
1366 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_show_hw_state()
1379 struct csio_lnode *ln = shost_priv(class_to_shost(dev)); csio_device_reset() local
1380 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_device_reset()
1405 struct csio_lnode *ln = shost_priv(class_to_shost(dev)); csio_disable_port() local
1406 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_disable_port()
1415 csio_lnodes_block_by_port(hw, ln->portid); csio_disable_port()
1418 csio_disable_lnodes(hw, ln->portid, disable); csio_disable_port()
1422 csio_lnodes_unblock_by_port(hw, ln->portid); csio_disable_port()
1431 struct csio_lnode *ln = shost_priv(class_to_shost(dev)); csio_show_dbg_level() local
1433 return snprintf(buf, PAGE_SIZE, "%x\n", ln->params.log_level); csio_show_dbg_level()
1441 struct csio_lnode *ln = shost_priv(class_to_shost(dev)); csio_store_dbg_level() local
1442 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_store_dbg_level()
1451 ln->params.log_level = dbg_level; csio_store_dbg_level()
1475 struct csio_lnode *ln = shost_priv(class_to_shost(dev)); csio_show_num_reg_rnodes() local
1477 return snprintf(buf, PAGE_SIZE, "%d\n", ln->num_reg_rnodes); csio_show_num_reg_rnodes()
1774 struct csio_lnode *ln = shost_priv(host); csio_queuecommand() local
1775 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_queuecommand()
1792 sqset = &hw->sqset[ln->portid][cpu]; csio_queuecommand()
1833 ioreq->lnode = ln; csio_queuecommand()
1844 CSIO_INC_STATS(ln, n_output_requests); csio_queuecommand()
1845 ln->stats.n_output_bytes += scsi_bufflen(cmnd); csio_queuecommand()
1847 CSIO_INC_STATS(ln, n_input_requests); csio_queuecommand()
1848 ln->stats.n_input_bytes += scsi_bufflen(cmnd); csio_queuecommand()
1850 CSIO_INC_STATS(ln, n_control_requests); csio_queuecommand()
1891 struct csio_lnode *ln = ioreq->lnode; csio_do_abrt_cls() local
1892 struct csio_scsi_qset *sqset = &hw->sqset[ln->portid][cpu]; csio_do_abrt_cls()
1915 struct csio_lnode *ln = shost_priv(cmnd->device->host); csio_eh_abort_handler() local
1916 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_eh_abort_handler()
1945 ready = csio_is_lnode_ready(ln); csio_eh_abort_handler()
2064 struct csio_lnode *ln = shost_priv(cmnd->device->host); csio_eh_lun_reset_handler() local
2065 struct csio_hw *hw = csio_lnode_to_hw(ln); csio_eh_lun_reset_handler()
2082 if (!csio_is_lnode_ready(ln)) { csio_eh_lun_reset_handler()
2086 ln->vnp_flowid, cmnd->device->lun); csio_eh_lun_reset_handler()
2119 sqset = &hw->sqset[ln->portid][smp_processor_id()]; csio_eh_lun_reset_handler()
2121 ioreq->lnode = ln; csio_eh_lun_reset_handler()
2254 struct csio_lnode *ln = shost_priv(shost); csio_scan_finished() local
2258 if (!ln->hwp || csio_list_deleted(&ln->sm.sm_list)) csio_scan_finished()
2261 rv = csio_scan_done(ln, jiffies, time, csio_max_scan_tmo * HZ, csio_scan_finished()
H A Dcsio_init.h83 csio_ln_to_shost(struct csio_lnode *ln) csio_ln_to_shost() argument
85 return container_of((void *)ln, struct Scsi_Host, hostdata[0]); csio_ln_to_shost()
H A Dcsio_mb.c826 * @ln: The Lnode structure
834 csio_write_fcoe_link_cond_init_mb(struct csio_lnode *ln, struct csio_mb *mbp, csio_write_fcoe_link_cond_init_mb() argument
842 CSIO_INIT_MBP(mbp, cmdp, mb_tmo, ln, cbfn, 1); csio_write_fcoe_link_cond_init_mb()
890 * @ln: The Lnode structure.
903 csio_fcoe_vnp_alloc_init_mb(struct csio_lnode *ln, struct csio_mb *mbp, csio_fcoe_vnp_alloc_init_mb() argument
911 CSIO_INIT_MBP(mbp, cmdp, mb_tmo, ln, cbfn, 1); csio_fcoe_vnp_alloc_init_mb()
937 * @ln: The Lnode structure.
945 csio_fcoe_vnp_read_init_mb(struct csio_lnode *ln, struct csio_mb *mbp, csio_fcoe_vnp_read_init_mb() argument
952 CSIO_INIT_MBP(mbp, cmdp, mb_tmo, ln, cbfn, 1); csio_fcoe_vnp_read_init_mb()
965 * @ln: The Lnode structure.
974 csio_fcoe_vnp_free_init_mb(struct csio_lnode *ln, struct csio_mb *mbp, csio_fcoe_vnp_free_init_mb() argument
981 CSIO_INIT_MBP(mbp, cmdp, mb_tmo, ln, cbfn, 1); csio_fcoe_vnp_free_init_mb()
996 * @ln: The Lnode structure
1005 csio_fcoe_read_fcf_init_mb(struct csio_lnode *ln, struct csio_mb *mbp, csio_fcoe_read_fcf_init_mb() argument
1012 CSIO_INIT_MBP(mbp, cmdp, mb_tmo, ln, cbfn, 1); csio_fcoe_read_fcf_init_mb()
H A Dcsio_rnode.h134 void csio_put_rnode(struct csio_lnode *ln, struct csio_rnode *rn);
/linux-4.4.14/arch/m68k/68360/
H A DMakefile12 ln -sf head-$(model-y).o $(obj)/head.o
/linux-4.4.14/scripts/gdb/linux/
H A DMakefile7 $(Q)ln -fsn $(SRCTREE)/$(obj)/*.py $(objtree)/$(obj)
/linux-4.4.14/fs/lockd/
H A Dprocfs.c24 struct lockd_net *ln = net_generic(current->nsproxy->net_ns, nlm_end_grace_write() local
38 locks_end_grace(&ln->lockd_manager); nlm_end_grace_write()
51 struct lockd_net *ln = net_generic(current->nsproxy->net_ns, nlm_end_grace_read() local
55 resp[0] = list_empty(&ln->lockd_manager.list) ? 'Y' : 'N'; nlm_end_grace_read()
H A Dsvc.c95 struct lockd_net *ln = container_of(dwork, struct lockd_net, grace_ender() local
98 locks_end_grace(&ln->lockd_manager); grace_ender()
104 struct lockd_net *ln = net_generic(net, lockd_net_id); set_grace_period() local
106 locks_start_grace(net, &ln->lockd_manager); set_grace_period()
107 cancel_delayed_work_sync(&ln->grace_period_end); set_grace_period()
108 schedule_delayed_work(&ln->grace_period_end, grace_period); set_grace_period()
115 struct lockd_net *ln = net_generic(net, lockd_net_id); restart_grace() local
117 cancel_delayed_work_sync(&ln->grace_period_end); restart_grace()
118 locks_end_grace(&ln->lockd_manager); restart_grace()
241 struct lockd_net *ln = net_generic(net, lockd_net_id); lockd_up_net() local
244 if (ln->nlmsvc_users++) lockd_up_net()
259 ln->nlmsvc_users--; lockd_up_net()
265 struct lockd_net *ln = net_generic(net, lockd_net_id); lockd_down_net() local
267 if (ln->nlmsvc_users) { lockd_down_net()
268 if (--ln->nlmsvc_users == 0) { lockd_down_net()
270 cancel_delayed_work_sync(&ln->grace_period_end); lockd_down_net()
271 locks_end_grace(&ln->lockd_manager); lockd_down_net()
590 struct lockd_net *ln = net_generic(net, lockd_net_id); lockd_init_net() local
592 INIT_DELAYED_WORK(&ln->grace_period_end, grace_ender); lockd_init_net()
593 INIT_LIST_HEAD(&ln->lockd_manager.list); lockd_init_net()
594 ln->lockd_manager.block_opens = false; lockd_init_net()
595 INIT_LIST_HEAD(&ln->nsm_handles); lockd_init_net()
H A Dhost.c178 struct lockd_net *ln = net_generic(host->net, lockd_net_id); nlm_destroy_host_locked() local
192 ln->nrhosts--; nlm_destroy_host_locked()
232 struct lockd_net *ln = net_generic(net, lockd_net_id); nlmclnt_lookup_host() local
267 ln->nrhosts++;
341 struct lockd_net *ln = net_generic(net, lockd_net_id); nlmsvc_lookup_host() local
349 if (time_after_eq(jiffies, ln->next_gc)) nlmsvc_lookup_host()
387 ln->nrhosts++;
576 struct lockd_net *ln = net_generic(net, lockd_net_id); nlm_complain_hosts() local
578 if (ln->nrhosts == 0) nlm_complain_hosts()
581 dprintk("lockd: %lu hosts left in net %p:\n", ln->nrhosts, net); nlm_complain_hosts()
673 struct lockd_net *ln = net_generic(net, lockd_net_id); local
675 ln->next_gc = jiffies + NLM_HOST_COLLECT;
H A Dmon.c317 struct lockd_net *ln = net_generic(net, lockd_net_id); nsm_get_handle() local
332 cached = nsm_lookup_hostname(&ln->nsm_handles, nsm_get_handle()
335 cached = nsm_lookup_addr(&ln->nsm_handles, sap); nsm_get_handle()
349 list_add(&new->sm_link, &ln->nsm_handles); nsm_get_handle()
377 struct lockd_net *ln = net_generic(net, lockd_net_id); nsm_reboot_lookup() local
381 cached = nsm_lookup_priv(&ln->nsm_handles, &info->priv); nsm_reboot_lookup()
/linux-4.4.14/tools/lguest/
H A DMakefile8 ln -sf ../../../../include/uapi/linux/virtio_types.h $@
/linux-4.4.14/tools/testing/selftests/exec/
H A DMakefile13 ln -s -f $< $@
/linux-4.4.14/drivers/md/persistent-data/
H A Ddm-btree.c527 struct btree_node *ln, *rn, *pn; btree_split_sibling() local
536 ln = dm_block_data(left); btree_split_sibling()
539 nr_left = le32_to_cpu(ln->header.nr_entries) / 2; btree_split_sibling()
540 nr_right = le32_to_cpu(ln->header.nr_entries) - nr_left; btree_split_sibling()
542 ln->header.nr_entries = cpu_to_le32(nr_left); btree_split_sibling()
544 rn->header.flags = ln->header.flags; btree_split_sibling()
546 rn->header.max_entries = ln->header.max_entries; btree_split_sibling()
547 rn->header.value_size = ln->header.value_size; btree_split_sibling()
548 memcpy(rn->keys, ln->keys + nr_left, nr_right * sizeof(rn->keys[0])); btree_split_sibling()
550 size = le32_to_cpu(ln->header.flags) & INTERNAL_NODE ? btree_split_sibling()
552 memcpy(value_ptr(rn, 0), value_ptr(ln, nr_left), btree_split_sibling()
614 struct btree_node *pn, *ln, *rn; btree_split_beneath() local
630 ln = dm_block_data(left); btree_split_beneath()
636 ln->header.flags = pn->header.flags; btree_split_beneath()
637 ln->header.nr_entries = cpu_to_le32(nr_left); btree_split_beneath()
638 ln->header.max_entries = pn->header.max_entries; btree_split_beneath()
639 ln->header.value_size = pn->header.value_size; btree_split_beneath()
646 memcpy(ln->keys, pn->keys, nr_left * sizeof(pn->keys[0])); btree_split_beneath()
651 memcpy(value_ptr(ln, 0), value_ptr(pn, 0), nr_left * size); btree_split_beneath()
666 pn->keys[0] = ln->keys[0]; btree_split_beneath()
H A Ddm-btree.h107 * Tries to find a key that matches exactly. O(ln(n))
120 * Insertion (or overwrite an existing value). O(ln(n))
139 * correct behaviour. O(ln(n)).
H A Ddm-array.h17 * O(ln(n)), but with a much smaller constant.
/linux-4.4.14/arch/arc/boot/
H A DMakefile34 @ln -sf $(notdir $<) $@
/linux-4.4.14/arch/ia64/hp/sim/boot/
H A DMakefile15 cmd_cptotop = ln -f $< $@
/linux-4.4.14/arch/frv/mb93090-mb00/
H A Dpci-frv.c83 struct list_head *ln; pcibios_allocate_bus_resources() local
90 for (ln=bus_list->next; ln != bus_list; ln=ln->next) { pcibios_allocate_bus_resources()
91 bus = list_entry(ln, struct pci_bus, node); pcibios_allocate_bus_resources()
/linux-4.4.14/net/ipv6/
H A Dip6_fib.c466 struct fib6_node *fn, *in, *ln; fib6_add_1() local
544 ln = node_alloc(); fib6_add_1()
546 if (!ln) fib6_add_1()
548 ln->fn_bit = plen; fib6_add_1()
550 ln->parent = pn; fib6_add_1()
551 ln->fn_sernum = sernum; fib6_add_1()
554 pn->right = ln; fib6_add_1()
556 pn->left = ln; fib6_add_1()
558 return ln; fib6_add_1()
583 * (new leaf node)[ln] (old node)[fn] fib6_add_1()
587 ln = node_alloc(); fib6_add_1()
589 if (!in || !ln) { fib6_add_1()
592 if (ln) fib6_add_1()
593 node_free(ln); fib6_add_1()
619 ln->fn_bit = plen; fib6_add_1()
621 ln->parent = in; fib6_add_1()
624 ln->fn_sernum = sernum; fib6_add_1()
627 in->right = ln; fib6_add_1()
630 in->left = ln; fib6_add_1()
636 * (new leaf node)[ln] fib6_add_1()
641 ln = node_alloc(); fib6_add_1()
643 if (!ln) fib6_add_1()
646 ln->fn_bit = plen; fib6_add_1()
648 ln->parent = pn; fib6_add_1()
650 ln->fn_sernum = sernum; fib6_add_1()
653 pn->right = ln; fib6_add_1()
655 pn->left = ln; fib6_add_1()
658 ln->right = fn; fib6_add_1()
660 ln->left = fn; fib6_add_1()
662 fn->parent = ln; fib6_add_1()
664 return ln; fib6_add_1()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Dsorg94.c122 g94_sor_dp_drv_ctl(struct nvkm_output_dp *outp, int ln, int vs, int pe, int pc) g94_sor_dp_drv_ctl() argument
126 const u32 shift = g94_sor_dp_lane_map(device, ln); g94_sor_dp_drv_ctl()
147 if ((data[2] & 0x0000ff00) < (ocfg.tx_pu << 8) || ln == 0) g94_sor_dp_drv_ctl()
H A Dsorgf119.c69 int ln, int vs, int pe, int pc) gf119_sor_dp_drv_ctl()
73 const u32 shift = g94_sor_dp_lane_map(device, ln); gf119_sor_dp_drv_ctl()
94 if ((data[2] & 0x0000ff00) < (ocfg.tx_pu << 8) || ln == 0) gf119_sor_dp_drv_ctl()
68 gf119_sor_dp_drv_ctl(struct nvkm_output_dp *outp, int ln, int vs, int pe, int pc) gf119_sor_dp_drv_ctl() argument
H A Dsorgm204.c94 int ln, int vs, int pe, int pc) gm204_sor_dp_drv_ctl()
98 const u32 shift = gm204_sor_dp_lane_map(device, ln); gm204_sor_dp_drv_ctl()
120 if ((data[2] & 0x00000f00) < (ocfg.tx_pu << 8) || ln == 0) gm204_sor_dp_drv_ctl()
93 gm204_sor_dp_drv_ctl(struct nvkm_output_dp *outp, int ln, int vs, int pe, int pc) gm204_sor_dp_drv_ctl() argument
H A Doutpdp.h43 int (*drv_ctl)(struct nvkm_output_dp *, int ln, int vs, int pe, int pc);
/linux-4.4.14/arch/metag/boot/
H A DMakefile67 @ln -sf $(notdir $<) $@
/linux-4.4.14/arch/mips/boot/
H A DMakefile101 @ln -sf $(notdir $<) $@
/linux-4.4.14/arch/arm/vdso/
H A DMakefile69 ln -sf "../../vdso.so" "$(MODLIB)/vdso/.build-id/$$first/$$last.debug"; \
/linux-4.4.14/arch/blackfin/boot/
H A DMakefile68 @ln -sf $(notdir $<) $@
/linux-4.4.14/drivers/scsi/bfa/
H A Dbfa_svc.c171 static void bfa_fcport_queue_cb(struct bfa_fcport_ln_s *ln,
212 static void bfa_fcport_ln_sm_dn(struct bfa_fcport_ln_s *ln,
214 static void bfa_fcport_ln_sm_dn_nf(struct bfa_fcport_ln_s *ln,
216 static void bfa_fcport_ln_sm_dn_up_nf(struct bfa_fcport_ln_s *ln,
218 static void bfa_fcport_ln_sm_up(struct bfa_fcport_ln_s *ln,
220 static void bfa_fcport_ln_sm_up_nf(struct bfa_fcport_ln_s *ln,
222 static void bfa_fcport_ln_sm_up_dn_nf(struct bfa_fcport_ln_s *ln,
224 static void bfa_fcport_ln_sm_up_dn_up_nf(struct bfa_fcport_ln_s *ln,
2851 bfa_fcport_ln_sm_dn(struct bfa_fcport_ln_s *ln, bfa_fcport_ln_sm_dn() argument
2854 bfa_trc(ln->fcport->bfa, event); bfa_fcport_ln_sm_dn()
2858 bfa_sm_set_state(ln, bfa_fcport_ln_sm_up_nf); bfa_fcport_ln_sm_dn()
2859 bfa_fcport_queue_cb(ln, BFA_PORT_LINKUP); bfa_fcport_ln_sm_dn()
2863 bfa_sm_fault(ln->fcport->bfa, event); bfa_fcport_ln_sm_dn()
2871 bfa_fcport_ln_sm_dn_nf(struct bfa_fcport_ln_s *ln, bfa_fcport_ln_sm_dn_nf() argument
2874 bfa_trc(ln->fcport->bfa, event); bfa_fcport_ln_sm_dn_nf()
2878 bfa_sm_set_state(ln, bfa_fcport_ln_sm_dn_up_nf); bfa_fcport_ln_sm_dn_nf()
2882 bfa_sm_set_state(ln, bfa_fcport_ln_sm_dn); bfa_fcport_ln_sm_dn_nf()
2886 bfa_sm_fault(ln->fcport->bfa, event); bfa_fcport_ln_sm_dn_nf()
2894 bfa_fcport_ln_sm_dn_up_nf(struct bfa_fcport_ln_s *ln, bfa_fcport_ln_sm_dn_up_nf() argument
2897 bfa_trc(ln->fcport->bfa, event); bfa_fcport_ln_sm_dn_up_nf()
2901 bfa_sm_set_state(ln, bfa_fcport_ln_sm_dn_nf); bfa_fcport_ln_sm_dn_up_nf()
2905 bfa_sm_set_state(ln, bfa_fcport_ln_sm_up_nf); bfa_fcport_ln_sm_dn_up_nf()
2906 bfa_fcport_queue_cb(ln, BFA_PORT_LINKUP); bfa_fcport_ln_sm_dn_up_nf()
2910 bfa_sm_fault(ln->fcport->bfa, event); bfa_fcport_ln_sm_dn_up_nf()
2918 bfa_fcport_ln_sm_up(struct bfa_fcport_ln_s *ln, bfa_fcport_ln_sm_up() argument
2921 bfa_trc(ln->fcport->bfa, event); bfa_fcport_ln_sm_up()
2925 bfa_sm_set_state(ln, bfa_fcport_ln_sm_dn_nf); bfa_fcport_ln_sm_up()
2926 bfa_fcport_queue_cb(ln, BFA_PORT_LINKDOWN); bfa_fcport_ln_sm_up()
2930 bfa_sm_fault(ln->fcport->bfa, event); bfa_fcport_ln_sm_up()
2938 bfa_fcport_ln_sm_up_nf(struct bfa_fcport_ln_s *ln, bfa_fcport_ln_sm_up_nf() argument
2941 bfa_trc(ln->fcport->bfa, event); bfa_fcport_ln_sm_up_nf()
2945 bfa_sm_set_state(ln, bfa_fcport_ln_sm_up_dn_nf); bfa_fcport_ln_sm_up_nf()
2949 bfa_sm_set_state(ln, bfa_fcport_ln_sm_up); bfa_fcport_ln_sm_up_nf()
2953 bfa_sm_fault(ln->fcport->bfa, event); bfa_fcport_ln_sm_up_nf()
2961 bfa_fcport_ln_sm_up_dn_nf(struct bfa_fcport_ln_s *ln, bfa_fcport_ln_sm_up_dn_nf() argument
2964 bfa_trc(ln->fcport->bfa, event); bfa_fcport_ln_sm_up_dn_nf()
2968 bfa_sm_set_state(ln, bfa_fcport_ln_sm_up_dn_up_nf); bfa_fcport_ln_sm_up_dn_nf()
2972 bfa_sm_set_state(ln, bfa_fcport_ln_sm_dn_nf); bfa_fcport_ln_sm_up_dn_nf()
2973 bfa_fcport_queue_cb(ln, BFA_PORT_LINKDOWN); bfa_fcport_ln_sm_up_dn_nf()
2977 bfa_sm_fault(ln->fcport->bfa, event); bfa_fcport_ln_sm_up_dn_nf()
2985 bfa_fcport_ln_sm_up_dn_up_nf(struct bfa_fcport_ln_s *ln, bfa_fcport_ln_sm_up_dn_up_nf() argument
2988 bfa_trc(ln->fcport->bfa, event); bfa_fcport_ln_sm_up_dn_up_nf()
2992 bfa_sm_set_state(ln, bfa_fcport_ln_sm_up_dn_nf); bfa_fcport_ln_sm_up_dn_up_nf()
2996 bfa_sm_set_state(ln, bfa_fcport_ln_sm_dn_up_nf); bfa_fcport_ln_sm_up_dn_up_nf()
2997 bfa_fcport_queue_cb(ln, BFA_PORT_LINKDOWN); bfa_fcport_ln_sm_up_dn_up_nf()
3001 bfa_sm_fault(ln->fcport->bfa, event); bfa_fcport_ln_sm_up_dn_up_nf()
3008 struct bfa_fcport_ln_s *ln = cbarg; __bfa_cb_fcport_event() local
3011 ln->fcport->event_cbfn(ln->fcport->event_cbarg, ln->ln_event); __bfa_cb_fcport_event()
3013 bfa_sm_send_event(ln, BFA_FCPORT_LN_SM_NOTIFICATION); __bfa_cb_fcport_event()
3029 bfa_sm_send_event(&fcport->ln, BFA_FCPORT_LN_SM_LINKUP); bfa_fcport_scn()
3032 bfa_sm_send_event(&fcport->ln, BFA_FCPORT_LN_SM_LINKDOWN); bfa_fcport_scn()
3040 bfa_fcport_queue_cb(struct bfa_fcport_ln_s *ln, enum bfa_port_linkstate event) bfa_fcport_queue_cb() argument
3042 struct bfa_fcport_s *fcport = ln->fcport; bfa_fcport_queue_cb()
3046 bfa_sm_send_event(ln, BFA_FCPORT_LN_SM_NOTIFICATION); bfa_fcport_queue_cb()
3048 ln->ln_event = event; bfa_fcport_queue_cb()
3049 bfa_cb_queue(fcport->bfa, &ln->ln_qe, bfa_fcport_queue_cb()
3050 __bfa_cb_fcport_event, ln); bfa_fcport_queue_cb()
3094 struct bfa_fcport_ln_s *ln = &fcport->ln; bfa_fcport_attach() local
3098 ln->fcport = fcport; bfa_fcport_attach()
3103 bfa_sm_set_state(ln, bfa_fcport_ln_sm_dn); bfa_fcport_attach()
H A Dbfa_svc.h455 struct bfa_cb_qe_s ln_qe; /* BFA callback queue elem for ln */
456 enum bfa_port_linkstate ln_event; /* ln event for callback */
496 struct bfa_fcport_ln_s ln; /* Link Notification */ member in struct:bfa_fcport_s
/linux-4.4.14/drivers/video/fbdev/matrox/
H A Dmatroxfb_maven.c258 unsigned int ln; matroxfb_PLL_mavenclock() local
266 ln = fxtal * n; matroxfb_PLL_mavenclock()
269 if (ln % dvd) matroxfb_PLL_mavenclock()
271 ln = ln / dvd; matroxfb_PLL_mavenclock()
273 if (ln < scrlen + 2) matroxfb_PLL_mavenclock()
275 ln = ln - scrlen; matroxfb_PLL_mavenclock()
276 if (ln > htotal) matroxfb_PLL_mavenclock()
278 dprintk(KERN_DEBUG "Match: %u / %u / %u / %u\n", n, m, p, ln); matroxfb_PLL_mavenclock()
279 if (ln > besth2) { matroxfb_PLL_mavenclock()
281 *h2 = besth2 = ln; matroxfb_PLL_mavenclock()
/linux-4.4.14/sound/firewire/digi00x/
H A Damdtp-dot.c95 const u8 ln = idx & 0xf; dot_scrt() local
99 if (len[ln] < off) dot_scrt()
102 return ((nib[14 + off - len[ln]]) | (hr << 4)); dot_scrt()
/linux-4.4.14/arch/sh/boot/
H A DMakefile110 @ln -sf $(notdir $<) $@
/linux-4.4.14/tools/lib/lockdep/
H A DMakefile103 $(CC) --shared $^ -o $@ -lpthread -ldl -Wl,-soname='"$@"';$(shell ln -s $@ liblockdep.so))
/linux-4.4.14/scripts/
H A Dcheckpatch.pl2034 for (my $ln = $linenr + 1; $cnt > 0; $ln++) {
2035 next if (defined $rawlines[$ln - 1] &&
2036 $rawlines[$ln - 1] =~ /^-/);
2038 #print "RAW<$rawlines[$ln - 1]>\n";
2039 last if (!defined $rawlines[$ln - 1]);
2040 if ($rawlines[$ln - 1] =~ m@(/\*|\*/)@ &&
2041 $rawlines[$ln - 1] !~ m@"[^"]*(?:/\*|\*/)[^"]*"@) {
2531 my $ln = $linenr + 1;
2535 for (; $cnt > 0 && defined $lines[$ln - 1]; $ln++) {
2536 $f = $lines[$ln - 1];
2537 $cnt-- if ($lines[$ln - 1] !~ /^-/);
2538 $is_end = $lines[$ln - 1] =~ /^\+/;
2543 if ($lines[$ln - 1] =~ /^\+\s*(?:bool|tristate)\s*\"/) {
2545 } elsif ($lines[$ln - 1] =~ /^\+\s*(?:---)?help(?:---)?$/) {
3521 for (my $ln = $linenr - 1; $ln >= $first_line; $ln--) {
3522 #print "CHECK<$lines[$ln - 1]\n";
3525 if ($lines[$ln - 1] =~ m{\bprintk\(}) {
3526 if ($rawlines[$ln - 1] !~ m{\\n"}) {
4079 ## my $ln = $line;
4080 ## while ($ln =~ s/\([^\(\)]*\)//g) {
4082 ## if ($ln =~ /,/) {
4507 my $ln = $linenr;
4513 ($dstat, $dcond, $ln, $cnt, $off) =
4517 #print "LINE<$lines[$ln-1]> len<" . length($lines[$ln-1]) . "\n";
4617 my $ln = $linenr;
4621 ($dstat, $dcond, $ln, $cnt, $off) =
4684 my $ln = $linenr - 1;
4696 $suppress_ifbraces{$ln + $offset} = 1;
4698 $herectx .= "$rawlines[$ln + $offset]\n[...]\n";
4699 $ln += statement_rawlines($block) - 1;
/linux-4.4.14/scripts/package/
H A Dbuilddeb334 ln -sf "/usr/src/linux-headers-$version" "$kernel_headers_dir/lib/modules/$version/build"
390 ln -s ../lib/modules/$version/vmlinux $dbg_dir/usr/lib/debug/boot/vmlinux-$version
392 ln -s lib/modules/$version/vmlinux $dbg_dir/usr/lib/debug/vmlinux-$version
H A DMakefile42 ln -sf $(srctree) $(2); \
/linux-4.4.14/arch/um/
H A DMakefile103 $(Q)ln -f $< $@
/linux-4.4.14/net/ceph/crush/
H A Dmapper.c303 __s64 ln, draw, high_draw = 0; bucket_straw2_choose() local
322 ln = crush_ln(u) - 0x1000000000000ll; bucket_straw2_choose()
326 * that the ln value is negative, so a larger bucket_straw2_choose()
330 draw = div64_s64(ln, w); bucket_straw2_choose()
/linux-4.4.14/tools/power/cpupower/
H A DMakefile197 @ln -sf $(@F) $(OUTPUT)libcpupower.so
198 @ln -sf $(@F) $(OUTPUT)libcpupower.so.$(LIB_MIN)
/linux-4.4.14/arch/m68k/fpsp040/
H A Dget_op.S101 .long 0x3ffe0000,0xb17217f7,0xd1cf79ac |ln(2)
102 .long 0x40000000,0x935d8ddd,0xaaa8ac17 |ln(10)
122 .long 0x3ffe0000,0xb17217f7,0xd1cf79ab |ln(2)
123 .long 0x40000000,0x935d8ddd,0xaaa8ac16 |ln(10)
143 .long 0x3ffe0000,0xb17217f7,0xd1cf79ac |ln(2)
144 .long 0x40000000,0x935d8ddd,0xaaa8ac17 |ln(10)
/linux-4.4.14/drivers/isdn/i4l/
H A Disdn_ttyfax.c702 /* DCC=vr,br,wd,ln,df,ec,bf,st - DCE capabilities parms */ isdn_tty_cmd_FCLASS2()
748 /* DIS=vr,br,wd,ln,df,ec,bf,st - current session parms */ isdn_tty_cmd_FCLASS2()
830 /* DT=df,vr,wd,ln - TX phase C data command (release DCE to proceed with negotiation) */ isdn_tty_cmd_FCLASS2()
/linux-4.4.14/drivers/scsi/sym53c8xx_2/
H A Dsym_hipd.c58 static void sym_alloc_lcb_tags (struct sym_hcb *np, u_char tn, u_char ln);
1899 int ln; sym_start_up() local
1901 for (ln = 1; ln < SYM_CONF_MAX_LUN; ln++) sym_start_up()
1902 if (tp->lunmp[ln]) sym_start_up()
1903 tp->lunmp[ln]->to_clear = 0; sym_start_up()
4653 u_char ln = cmd->device->lun; sym_get_ccb() local
4655 struct sym_lcb *lp = sym_lp(tp, ln); sym_get_ccb()
4686 sym_alloc_lcb_tags(np, tn, ln); sym_get_ccb()
4761 cp->lun = ln; sym_get_ccb()
4973 struct sym_lcb *sym_alloc_lcb (struct sym_hcb *np, u_char tn, u_char ln) sym_alloc_lcb() argument
4987 if (ln && !tp->luntbl) { sym_alloc_lcb()
5001 if (ln && !tp->lunmp) { sym_alloc_lcb()
5015 if (ln) { sym_alloc_lcb()
5016 tp->lunmp[ln] = lp; sym_alloc_lcb()
5017 tp->luntbl[ln] = cpu_to_scr(vtobus(lp)); sym_alloc_lcb()
5057 static void sym_alloc_lcb_tags (struct sym_hcb *np, u_char tn, u_char ln) sym_alloc_lcb_tags() argument
5060 struct sym_lcb *lp = sym_lp(tp, ln); sym_alloc_lcb_tags()
5104 int sym_free_lcb(struct sym_hcb *np, u_char tn, u_char ln) sym_free_lcb() argument
5107 struct sym_lcb *lp = sym_lp(tp, ln); sym_free_lcb()
5111 if (ln) { sym_free_lcb()
5119 tp->luntbl[ln] = cpu_to_scr(vtobus(&np->badlun_sa)); sym_free_lcb()
5120 tp->lunmp[ln] = NULL; sym_free_lcb()
H A Dsym_hipd.h1068 struct sym_lcb *sym_alloc_lcb(struct sym_hcb *np, u_char tn, u_char ln);
1069 int sym_free_lcb(struct sym_hcb *np, u_char tn, u_char ln);
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
H A Dfirmware.c106 brcmf_dbg(INFO, "warning: ln=%d:col=%d: ignoring invalid character\n", brcmf_nvram_handle_idle()
131 brcmf_dbg(INFO, "warning: ln=%d:col=%d: '=' expected, skip invalid key entry\n", brcmf_nvram_handle_key()
/linux-4.4.14/Documentation/DocBook/media/
H A DMakefile210 @(ln -sf `cd $(MEDIA_SRC_DIR) && /bin/pwd`/v4l/*xml $(MEDIA_OBJ_DIR)/)
211 @(ln -sf `cd $(MEDIA_SRC_DIR) && /bin/pwd`/dvb/*xml $(MEDIA_OBJ_DIR)/)
/linux-4.4.14/drivers/tty/serial/
H A Dicom.h88 u8 call_length; /* 1DE Phone #/CFI buff ln */
/linux-4.4.14/drivers/power/
H A Drx51_battery.c70 * Where t1 = (1/B) * ln((RAW_ADC_U * 2.5)/(R * I * 255))
/linux-4.4.14/arch/x86/entry/vdso/
H A DMakefile181 ln -sf "../../$(@:install_%=%)" "$(MODLIB)/vdso/.build-id/$$first/$$last.debug"; \
/linux-4.4.14/net/core/
H A Dgen_estimator.c64 T = A/(-ln(1-W))
/linux-4.4.14/tools/perf/
H A Dperf-with-kcore.sh97 ln -s "$KCORE_DIR_BASENAME" "$PERF_DATA_DIR/kcore_dir"
/linux-4.4.14/arch/powerpc/boot/
H A DMakefile392 @rm -f $@; ln $< $@
394 @rm -f $@; ln $< $@
/linux-4.4.14/drivers/mfd/
H A Dda9052-core.c323 * where t1 = (1/B)* ln(( ADCval * 2.5)/(R25*ITBAT*255))
/linux-4.4.14/arch/x86/
H A DMakefile253 $(Q)ln -fsn ../../x86/boot/bzImage $(objtree)/arch/$(UTS_MACHINE)/boot/$@
/linux-4.4.14/
H A DMakefile61 # $(Q)ln $@ :<
451 $(Q)ln -fsn $(srctree) source
928 $(Q)ln -fsn `cd $(srctree) && /bin/pwd`/scripts/gdb/vmlinux-gdb.py
1126 @ln -s `cd $(srctree) && /bin/pwd` $(MODLIB)/source
1129 ln -s $(CURDIR) $(MODLIB)/build ; \
/linux-4.4.14/drivers/scsi/
H A Dncr53c8xx.c1919 static void ncr_alloc_ccb (struct ncb *np, u_char tn, u_char ln);
1925 static struct lcb * ncr_alloc_lcb (struct ncb *np, u_char tn, u_char ln);
5634 unsigned char tn = sdev->id, ln = sdev->lun; ncr_setup_tags() local
5636 struct lcb *lp = tp->lp[ln]; ncr_setup_tags()
7146 u_char ln = cmd->device->lun; ncr_get_ccb() local
7148 struct lcb *lp = tp->lp[ln]; ncr_get_ccb()
7167 ncr_alloc_ccb(np, tn, ln); ncr_get_ccb()
7236 cp->lun = ln; ncr_get_ccb()
7355 static void ncr_alloc_ccb(struct ncb *np, u_char tn, u_char ln) ncr_alloc_ccb() argument
7358 struct lcb *lp = tp->lp[ln]; ncr_alloc_ccb()
7491 static struct lcb *ncr_alloc_lcb (struct ncb *np, u_char tn, u_char ln) ncr_alloc_lcb() argument
7494 struct lcb *lp = tp->lp[ln]; ncr_alloc_lcb()
7496 int lh = ln & 3; ncr_alloc_lcb()
7511 tp->lp[ln] = lp; ncr_alloc_lcb()
7547 cpu_to_scr((SCR_JUMP ^ IFFALSE (MASK (0x80+ln, 0xff)))); ncr_alloc_lcb()
7583 unsigned char tn = sdev->id, ln = sdev->lun; ncr_setup_lcb() local
7585 struct lcb *lp = tp->lp[ln]; ncr_setup_lcb()
7588 if (!lp && !(lp = ncr_alloc_lcb(np, tn, ln))) ncr_setup_lcb()
H A Ddc395x.c2485 int ln = srb->total_xfer_length; data_io_transfer() local
2519 if (ln % 2) { data_io_transfer()
2526 /*DC395x_write32(acb, TRM_S1040_SCSI_COUNTER, ln); */ data_io_transfer()
/linux-4.4.14/fs/gfs2/
H A Ddir.c783 u64 ln; gfs2_dirent_search() local
799 ln = be64_to_cpu(leaf->lf_next); gfs2_dirent_search()
801 if (!ln) gfs2_dirent_search()
804 error = get_leaf(ip, ln, &bh); gfs2_dirent_search()
/linux-4.4.14/arch/arm/nwfpe/
H A Dfpopcode.h139 | 0 | 1 | 1 | 0 | LGN | Log base e | Fd := ln(Fm) |
/linux-4.4.14/drivers/media/dvb-frontends/
H A Dm88ds3103.c160 /* SNR(X) dB = 10 * ln(X) / ln(10) dB */ m88ds3103_read_status()
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
H A Dhif_usb.c237 int ln = skb->len; ath9k_skb_queue_complete() local
243 TX_STAT_ADD(skb_success_bytes, ln); ath9k_skb_queue_complete()
/linux-4.4.14/drivers/dma/
H A Dedma.c2122 int i, off, ln; edma_probe() local
2217 ln = rsv_slots[i][1]; edma_probe()
2218 set_bits(off, ln, ecc->slot_inuse); edma_probe()
/linux-4.4.14/drivers/usb/atm/
H A Dueagle-atm.c1952 int ret, size, u, ln; load_XILINX_firmware() local
1974 for (u = 0; u < size; u += ln) { load_XILINX_firmware()
1975 ln = min(size - u, 64); load_XILINX_firmware()
1976 ret = uea_request(sc, 0xe, 0, ln, pfw + u); load_XILINX_firmware()
/linux-4.4.14/fs/hpfs/
H A Dsuper.c444 eas=rw r/w eas => enables chmod, chown, mknod, ln -s (default)\n\ hpfs_help()
/linux-4.4.14/fs/reiserfs/
H A Dprints.c673 "* h * size * ln * lb * rn * rb * blkn * s0 * s1 * s1b * s2 * s2b * curb * lk * rk *\n" store_print_tb()
/linux-4.4.14/tools/perf/util/
H A Dprobe-event.c786 struct int_node *ln; __show_line_range() local
847 intlist__for_each(ln, lr->line_list) { __show_line_range()
848 for (; ln->i > l; l++) { __show_line_range()
/linux-4.4.14/fs/btrfs/
H A Dtree-log.c1832 * ln testdir/bar testdir/bar_link replay_one_dir_item()
1833 * ln testdir/foo testdir/foo_link replay_one_dir_item()
3349 * ln foo mydir/bar log_dir_items()
5331 * ln testdir/foo testdir/bar btrfs_log_inode_parent()
5347 * ln foo testdir/foo2 btrfs_log_inode_parent()
5348 * ln foo testdir/foo3 btrfs_log_inode_parent()
H A Dinode.c3694 * ln mydir/foo mydir/bar btrfs_read_locked_inode()
/linux-4.4.14/drivers/media/pci/ivtv/
H A Divtv-streams.c437 "Setup VBI API header 0x%08x pkts %d buffs %d ln %d sz %d\n", ivtv_vbi_setup()
/linux-4.4.14/drivers/staging/lustre/lustre/lmv/
H A Dlmv_obd.c708 CDEBUG(D_INFO, "%s: get path %s "DFID" rec: %llu ln: %u\n", lmv_fid2path()
/linux-4.4.14/arch/m68k/ifpsp060/src/
H A Dfpsp.S9407 # $30 ln(2) (inexact)
9408 # $31 ln(10) (inexact)
9507 BIGRN: long 0x3ffe0000,0xb17217f7,0xd1cf79ac # ln(2)
9508 long 0x40000000,0x935d8ddd,0xaaa8ac17 # ln(10)
9526 long 0x3ffe0000,0xb17217f7,0xd1cf79ab # ln(2)
9527 long 0x40000000,0x935d8ddd,0xaaa8ac16 # ln(10)
9545 long 0x3ffe0000,0xb17217f7,0xd1cf79ac # ln(2)
9546 long 0x40000000,0x935d8ddd,0xaaa8ac17 # ln(10)
/linux-4.4.14/drivers/net/ethernet/intel/e1000/
H A De1000_main.c3435 pr_info("R[desc] [address 63:0 ] [vl er S cks ln] [bi->dma ] [bi->skb]\n"); e1000_dump()
/linux-4.4.14/fs/
H A Dnamei.c83 * Note that "ln old new" where "new" is a symlink pointing to a non-existing
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
H A Dnetdev.c441 pr_info("RWB[desc] [cs ipid mrq] [vt ln xe xs] [bi->skb] <-- Ext (Write-Back) format\n"); e1000e_dump()
/linux-4.4.14/drivers/net/ethernet/intel/igb/
H A Digb_main.c515 pr_info("RWB[desc] [PcsmIpSHl PtRs] [vl er S cks ln] ---------------- [bi->skb] <-- Adv Rx Write-Back format\n"); igb_dump()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_main.c778 "[vl er S cks ln] ---------------- [bi->skb ] ", ixgbe_dump()

Completed in 2722 milliseconds