Lines Matching refs:new

169 static int fcoe_sysfs_fcf_add(struct fcoe_fcf *new)  in fcoe_sysfs_fcf_add()  argument
171 struct fcoe_ctlr *fip = new->fip; in fcoe_sysfs_fcf_add()
177 new->fabric_name, new->fcf_mac); in fcoe_sysfs_fcf_add()
183 temp->fabric_name = new->fabric_name; in fcoe_sysfs_fcf_add()
184 temp->switch_name = new->switch_name; in fcoe_sysfs_fcf_add()
185 temp->fc_map = new->fc_map; in fcoe_sysfs_fcf_add()
186 temp->vfid = new->vfid; in fcoe_sysfs_fcf_add()
187 memcpy(temp->mac, new->fcf_mac, ETH_ALEN); in fcoe_sysfs_fcf_add()
188 temp->priority = new->pri; in fcoe_sysfs_fcf_add()
189 temp->fka_period = new->fka_period; in fcoe_sysfs_fcf_add()
222 fcf_dev->priv = new; in fcoe_sysfs_fcf_add()
223 new->fcf_dev = fcf_dev; in fcoe_sysfs_fcf_add()
227 list_add(&new->list, &fip->fcfs); in fcoe_sysfs_fcf_add()
242 static void fcoe_sysfs_fcf_del(struct fcoe_fcf *new) in fcoe_sysfs_fcf_del() argument
244 struct fcoe_ctlr *fip = new->fip; in fcoe_sysfs_fcf_del()
248 list_del(&new->list); in fcoe_sysfs_fcf_del()
263 fcf_dev = fcoe_fcf_to_fcf_dev(new); in fcoe_sysfs_fcf_del()
265 new->fcf_dev = NULL; in fcoe_sysfs_fcf_del()
267 kfree(new); in fcoe_sysfs_fcf_del()
1026 struct fcoe_fcf new; in fcoe_ctlr_recv_adv() local
1033 if (fcoe_ctlr_parse_adv(fip, skb, &new)) in fcoe_ctlr_recv_adv()
1039 if (fcf->switch_name == new.switch_name && in fcoe_ctlr_recv_adv()
1040 fcf->fabric_name == new.fabric_name && in fcoe_ctlr_recv_adv()
1041 fcf->fc_map == new.fc_map && in fcoe_ctlr_recv_adv()
1042 ether_addr_equal(fcf->fcf_mac, new.fcf_mac)) { in fcoe_ctlr_recv_adv()
1055 memcpy(fcf, &new, sizeof(new)); in fcoe_ctlr_recv_adv()
1061 new.fabric_name, new.fcf_mac); in fcoe_ctlr_recv_adv()
1072 fcf->fd_flags = new.fd_flags; in fcoe_ctlr_recv_adv()
1074 fcf->flags = new.flags; in fcoe_ctlr_recv_adv()
1078 fip->ctlr_ka_time += new.fka_period; in fcoe_ctlr_recv_adv()
1082 fcf->fka_period = new.fka_period; in fcoe_ctlr_recv_adv()
1083 memcpy(fcf->fcf_mac, new.fcf_mac, ETH_ALEN); in fcoe_ctlr_recv_adv()
2446 static void fcoe_ctlr_vn_add(struct fcoe_ctlr *fip, struct fc_rport_priv *new) in fcoe_ctlr_vn_add() argument
2454 port_id = new->ids.port_id; in fcoe_ctlr_vn_add()
2469 if ((ids->port_name != -1 && ids->port_name != new->ids.port_name) || in fcoe_ctlr_vn_add()
2470 (ids->node_name != -1 && ids->node_name != new->ids.node_name)) in fcoe_ctlr_vn_add()
2472 ids->port_name = new->ids.port_name; in fcoe_ctlr_vn_add()
2473 ids->node_name = new->ids.node_name; in fcoe_ctlr_vn_add()
2479 *frport = *fcoe_ctlr_rport(new); in fcoe_ctlr_vn_add()
2517 struct fc_rport_priv *new) in fcoe_ctlr_vn_claim_notify() argument
2519 struct fcoe_rport *frport = fcoe_ctlr_rport(new); in fcoe_ctlr_vn_claim_notify()
2529 if (new->ids.port_id == fip->port_id) in fcoe_ctlr_vn_claim_notify()
2534 if (new->ids.port_id == fip->port_id) { in fcoe_ctlr_vn_claim_notify()
2535 if (new->ids.port_name > fip->lp->wwpn) { in fcoe_ctlr_vn_claim_notify()
2545 fcoe_ctlr_vn_add(fip, new); in fcoe_ctlr_vn_claim_notify()
2560 struct fc_rport_priv *new) in fcoe_ctlr_vn_claim_resp() argument
2563 new->ids.port_id, fcoe_ctlr_state(fip->state)); in fcoe_ctlr_vn_claim_resp()
2565 fcoe_ctlr_vn_add(fip, new); in fcoe_ctlr_vn_claim_resp()
2576 struct fc_rport_priv *new) in fcoe_ctlr_vn_beacon() argument
2582 frport = fcoe_ctlr_rport(new); in fcoe_ctlr_vn_beacon()
2588 rdata = lport->tt.rport_lookup(lport, new->ids.port_id); in fcoe_ctlr_vn_beacon()
2593 if (rdata->ids.node_name == new->ids.node_name && in fcoe_ctlr_vn_beacon()
2594 rdata->ids.port_name == new->ids.port_name) { in fcoe_ctlr_vn_beacon()
2612 new->ids.port_id); in fcoe_ctlr_vn_beacon()