Lines Matching refs:new_pe
346 struct smc_pnetentry *tmp_pe, *new_pe; in smc_pnet_add_eth() local
366 new_pe = kzalloc(sizeof(*new_pe), GFP_KERNEL); in smc_pnet_add_eth()
367 if (!new_pe) in smc_pnet_add_eth()
369 new_pe->type = SMC_PNET_ETH; in smc_pnet_add_eth()
370 memcpy(new_pe->pnet_name, pnet_name, SMC_MAX_PNETID_LEN); in smc_pnet_add_eth()
371 strncpy(new_pe->eth_name, eth_name, IFNAMSIZ); in smc_pnet_add_eth()
384 new_pe->ndev = ndev; in smc_pnet_add_eth()
385 netdev_tracker_alloc(ndev, &new_pe->dev_tracker, in smc_pnet_add_eth()
388 list_add_tail(&new_pe->list, &pnettable->pnetlist); in smc_pnet_add_eth()
392 kfree(new_pe); in smc_pnet_add_eth()
398 new_pe->eth_name, new_pe->pnet_name); in smc_pnet_add_eth()
409 struct smc_pnetentry *tmp_pe, *new_pe; in smc_pnet_add_ib() local
443 new_pe = kzalloc(sizeof(*new_pe), GFP_KERNEL); in smc_pnet_add_ib()
444 if (!new_pe) in smc_pnet_add_ib()
446 new_pe->type = SMC_PNET_IB; in smc_pnet_add_ib()
447 memcpy(new_pe->pnet_name, pnet_name, SMC_MAX_PNETID_LEN); in smc_pnet_add_ib()
448 strncpy(new_pe->ib_name, ib_name, IB_DEVICE_NAME_MAX); in smc_pnet_add_ib()
449 new_pe->ib_port = ib_port; in smc_pnet_add_ib()
461 list_add_tail(&new_pe->list, &pnettable->pnetlist); in smc_pnet_add_ib()
465 kfree(new_pe); in smc_pnet_add_ib()