• Home
  • Raw
  • Download

Lines Matching refs:node

22 				node->display_name, __func__); \
26 efc_log_err((struct efc *)els->node->efc,\
28 els->node->display_name,\
35 efc_els_io_alloc(struct efc_node *node, u32 reqlen) in efc_els_io_alloc() argument
37 return efc_els_io_alloc_size(node, reqlen, EFC_ELS_RSP_LEN); in efc_els_io_alloc()
41 efc_els_io_alloc_size(struct efc_node *node, u32 reqlen, u32 rsplen) in efc_els_io_alloc_size() argument
47 efc = node->efc; in efc_els_io_alloc_size()
49 if (!node->els_io_enabled) { in efc_els_io_alloc_size()
65 els->node = node; in efc_els_io_alloc_size()
92 spin_lock_irqsave(&node->els_ios_lock, flags); in efc_els_io_alloc_size()
93 list_add_tail(&els->list_entry, &node->els_ios_list); in efc_els_io_alloc_size()
94 spin_unlock_irqrestore(&node->els_ios_lock, flags); in efc_els_io_alloc_size()
112 struct efc_node *node; in _efc_els_io_free() local
116 node = els->node; in _efc_els_io_free()
117 efc = node->efc; in _efc_els_io_free()
119 spin_lock_irqsave(&node->els_ios_lock, flags); in _efc_els_io_free()
127 send_empty_event = (!node->els_io_enabled && in _efc_els_io_free()
128 list_empty(&node->els_ios_list)); in _efc_els_io_free()
130 spin_unlock_irqrestore(&node->els_ios_lock, flags); in _efc_els_io_free()
141 efc_scsi_io_list_empty(node->efc, node); in _efc_els_io_free()
160 struct efc_node *node; in efc_els_req_cb() local
166 node = els->node; in efc_els_req_cb()
167 efc = node->efc; in efc_els_req_cb()
207 els->node->els_req_cnt--; in efc_els_req_cb()
256 static int efc_els_send_req(struct efc_node *node, struct efc_els_io_req *els, in efc_els_send_req() argument
260 struct efc *efc = node->efc; in efc_els_send_req()
264 els->node->els_req_cnt++; in efc_els_send_req()
270 els->io.rpi = node->rnode.indicator; in efc_els_send_req()
271 els->io.vpi = node->nport->indicator; in efc_els_send_req()
272 els->io.s_id = node->nport->fc_id; in efc_els_send_req()
273 els->io.d_id = node->rnode.fc_id; in efc_els_send_req()
275 if (node->rnode.attached) in efc_els_send_req()
300 efc = els->node->efc; in efc_els_retry()
322 struct efc_node *node; in efc_els_acc_cb() local
327 node = els->node; in efc_els_acc_cb()
328 efc = node->efc; in efc_els_acc_cb()
343 node->display_name, els->display_name, in efc_els_acc_cb()
357 struct efc_node *node = els->node; in efc_els_send_rsp() local
358 struct efc *efc = node->efc; in efc_els_send_rsp()
361 node->els_cmpl_cnt++; in efc_els_send_rsp()
369 els->io.rpi = node->rnode.indicator; in efc_els_send_rsp()
370 els->io.vpi = node->nport->indicator; in efc_els_send_rsp()
371 if (node->nport->fc_id != U32_MAX) in efc_els_send_rsp()
372 els->io.s_id = node->nport->fc_id; in efc_els_send_rsp()
375 els->io.d_id = node->rnode.fc_id; in efc_els_send_rsp()
377 if (node->attached) in efc_els_send_rsp()
393 efc_send_plogi(struct efc_node *node) in efc_send_plogi() argument
396 struct efc *efc = node->efc; in efc_send_plogi()
401 els = efc_els_io_alloc(node, sizeof(*plogi)); in efc_send_plogi()
411 memcpy(plogi, node->nport->service_params, sizeof(*plogi)); in efc_send_plogi()
416 return efc_els_send_req(node, els, EFC_DISC_IO_ELS_REQ); in efc_send_plogi()
420 efc_send_flogi(struct efc_node *node) in efc_send_flogi() argument
426 efc = node->efc; in efc_send_flogi()
430 els = efc_els_io_alloc(node, sizeof(*flogi)); in efc_send_flogi()
441 memcpy(flogi, node->nport->service_params, sizeof(*flogi)); in efc_send_flogi()
445 return efc_els_send_req(node, els, EFC_DISC_IO_ELS_REQ); in efc_send_flogi()
449 efc_send_fdisc(struct efc_node *node) in efc_send_fdisc() argument
455 efc = node->efc; in efc_send_fdisc()
459 els = efc_els_io_alloc(node, sizeof(*fdisc)); in efc_send_fdisc()
470 memcpy(fdisc, node->nport->service_params, sizeof(*fdisc)); in efc_send_fdisc()
474 return efc_els_send_req(node, els, EFC_DISC_IO_ELS_REQ); in efc_send_fdisc()
478 efc_send_prli(struct efc_node *node) in efc_send_prli() argument
480 struct efc *efc = node->efc; in efc_send_prli()
489 els = efc_els_io_alloc(node, sizeof(*pp)); in efc_send_prli()
509 (node->nport->enable_ini ? in efc_send_prli()
511 (node->nport->enable_tgt ? in efc_send_prli()
514 return efc_els_send_req(node, els, EFC_DISC_IO_ELS_REQ); in efc_send_prli()
518 efc_send_logo(struct efc_node *node) in efc_send_logo() argument
520 struct efc *efc = node->efc; in efc_send_logo()
527 sparams = (struct fc_els_flogi *)node->nport->service_params; in efc_send_logo()
529 els = efc_els_io_alloc(node, sizeof(*logo)); in efc_send_logo()
543 hton24(logo->fl_n_port_id, node->rnode.nport->fc_id); in efc_send_logo()
546 return efc_els_send_req(node, els, EFC_DISC_IO_ELS_REQ); in efc_send_logo()
550 efc_send_adisc(struct efc_node *node) in efc_send_adisc() argument
552 struct efc *efc = node->efc; in efc_send_adisc()
556 struct efc_nport *nport = node->nport; in efc_send_adisc()
560 sparams = (struct fc_els_flogi *)node->nport->service_params; in efc_send_adisc()
562 els = efc_els_io_alloc(node, sizeof(*adisc)); in efc_send_adisc()
579 hton24(adisc->adisc_port_id, node->rnode.nport->fc_id); in efc_send_adisc()
581 return efc_els_send_req(node, els, EFC_DISC_IO_ELS_REQ); in efc_send_adisc()
585 efc_send_scr(struct efc_node *node) in efc_send_scr() argument
588 struct efc *efc = node->efc; in efc_send_scr()
593 els = efc_els_io_alloc(node, sizeof(*req)); in efc_send_scr()
607 return efc_els_send_req(node, els, EFC_DISC_IO_ELS_REQ); in efc_send_scr()
611 efc_send_ls_rjt(struct efc_node *node, u32 ox_id, u32 reason_code, in efc_send_ls_rjt() argument
614 struct efc *efc = node->efc; in efc_send_ls_rjt()
618 els = efc_els_io_alloc(node, sizeof(*rjt)); in efc_send_ls_rjt()
642 efc_send_plogi_acc(struct efc_node *node, u32 ox_id) in efc_send_plogi_acc() argument
644 struct efc *efc = node->efc; in efc_send_plogi_acc()
647 struct fc_els_flogi *req = (struct fc_els_flogi *)node->service_params; in efc_send_plogi_acc()
651 els = efc_els_io_alloc(node, sizeof(*plogi)); in efc_send_plogi_acc()
665 memcpy(plogi, node->nport->service_params, sizeof(*plogi)); in efc_send_plogi_acc()
677 efc_send_flogi_p2p_acc(struct efc_node *node, u32 ox_id, u32 s_id) in efc_send_flogi_p2p_acc() argument
679 struct efc *efc = node->efc; in efc_send_flogi_p2p_acc()
685 els = efc_els_io_alloc(node, sizeof(*flogi)); in efc_send_flogi_p2p_acc()
700 memcpy(flogi, node->nport->service_params, sizeof(*flogi)); in efc_send_flogi_p2p_acc()
710 efc_send_prli_acc(struct efc_node *node, u32 ox_id) in efc_send_prli_acc() argument
712 struct efc *efc = node->efc; in efc_send_prli_acc()
721 els = efc_els_io_alloc(node, sizeof(*pp)); in efc_send_prli_acc()
743 (node->nport->enable_ini ? in efc_send_prli_acc()
745 (node->nport->enable_tgt ? in efc_send_prli_acc()
752 efc_send_prlo_acc(struct efc_node *node, u32 ox_id) in efc_send_prlo_acc() argument
754 struct efc *efc = node->efc; in efc_send_prlo_acc()
763 els = efc_els_io_alloc(node, sizeof(*pp)); in efc_send_prlo_acc()
788 efc_send_ls_acc(struct efc_node *node, u32 ox_id) in efc_send_ls_acc() argument
790 struct efc *efc = node->efc; in efc_send_ls_acc()
796 els = efc_els_io_alloc(node, sizeof(*acc)); in efc_send_ls_acc()
816 efc_send_logo_acc(struct efc_node *node, u32 ox_id) in efc_send_logo_acc() argument
819 struct efc *efc = node->efc; in efc_send_logo_acc()
824 els = efc_els_io_alloc(node, sizeof(*logo)); in efc_send_logo_acc()
844 efc_send_adisc_acc(struct efc_node *node, u32 ox_id) in efc_send_adisc_acc() argument
846 struct efc *efc = node->efc; in efc_send_adisc_acc()
853 els = efc_els_io_alloc(node, sizeof(*adisc)); in efc_send_adisc_acc()
865 sparams = (struct fc_els_flogi *)node->nport->service_params; in efc_send_adisc_acc()
871 hton24(adisc->adisc_port_id, node->rnode.nport->fc_id); in efc_send_adisc_acc()
892 efc_ns_send_rftid(struct efc_node *node) in efc_ns_send_rftid() argument
894 struct efc *efc = node->efc; in efc_ns_send_rftid()
903 els = efc_els_io_alloc(node, sizeof(*ct)); in efc_ns_send_rftid()
921 hton24(ct->rftid.fr_fid.fp_fid, node->rnode.nport->fc_id); in efc_ns_send_rftid()
925 return efc_els_send_req(node, els, EFC_DISC_IO_CT_REQ); in efc_ns_send_rftid()
929 efc_ns_send_rffid(struct efc_node *node) in efc_ns_send_rffid() argument
931 struct efc *efc = node->efc; in efc_ns_send_rffid()
940 els = efc_els_io_alloc(node, sizeof(*ct)); in efc_ns_send_rffid()
958 hton24(ct->rffid.fr_fid.fp_fid, node->rnode.nport->fc_id); in efc_ns_send_rffid()
959 if (node->nport->enable_ini) in efc_ns_send_rffid()
961 if (node->nport->enable_tgt) in efc_ns_send_rffid()
965 return efc_els_send_req(node, els, EFC_DISC_IO_CT_REQ); in efc_ns_send_rffid()
969 efc_ns_send_gidpt(struct efc_node *node) in efc_ns_send_gidpt() argument
972 struct efc *efc = node->efc; in efc_ns_send_gidpt()
980 els = efc_els_io_alloc_size(node, sizeof(*ct), EFC_ELS_GID_PT_RSP_LEN); in efc_ns_send_gidpt()
1001 return efc_els_send_req(node, els, EFC_DISC_IO_CT_REQ); in efc_ns_send_gidpt()
1011 efc_node_post_els_resp(els->node, evt, arg); in efc_els_io_cleanup()
1027 efc_send_ct_rsp(struct efc *efc, struct efc_node *node, u16 ox_id, in efc_send_ct_rsp() argument
1034 els = efc_els_io_alloc(node, 256); in efc_send_ct_rsp()
1055 els->io.rpi = node->rnode.indicator; in efc_send_ct_rsp()
1056 els->io.d_id = node->rnode.fc_id; in efc_send_ct_rsp()
1074 efc_send_bls_acc(struct efc_node *node, struct fc_frame_header *hdr) in efc_send_bls_acc() argument
1078 struct efc *efc = node->efc; in efc_send_bls_acc()
1084 bls.d_id = node->rnode.fc_id; in efc_send_bls_acc()
1085 bls.rpi = node->rnode.indicator; in efc_send_bls_acc()
1086 bls.vpi = node->nport->indicator; in efc_send_bls_acc()