Lines Matching full:pb

74 mlx5e_ipsec_other_sa_entry(struct mlx5e_ipsec_priv_bothdir *pb,  in mlx5e_ipsec_other_sa_entry()  argument
77 return (pb->priv_in == sa_entry ? pb->priv_out : pb->priv_in); in mlx5e_ipsec_other_sa_entry()
91 other_sa_entry = mlx5e_ipsec_other_sa_entry(dwork->pb, sa_entry); in mlx5e_ipsec_handle_counters()
111 struct mlx5e_ipsec_priv_bothdir *pb) in mlx5e_ipsec_create_dwork() argument
120 dwork->pb = pb; in mlx5e_ipsec_create_dwork()
328 struct mlx5e_ipsec_sa_entry **privp, struct mlx5e_ipsec_priv_bothdir *pb, in mlx5e_if_sa_newkey_onedir() argument
383 err = mlx5e_ipsec_create_dwork(sa_entry, pb); in mlx5e_if_sa_newkey_onedir()
433 struct mlx5e_ipsec_priv_bothdir *pb; in mlx5e_if_sa_newkey() local
440 pb = malloc(sizeof(struct mlx5e_ipsec_priv_bothdir), M_DEVBUF, in mlx5e_if_sa_newkey()
443 ifp, sav, IPSEC_DIR_INBOUND, dev_spi, &pb->priv_in, pb, ifpo); in mlx5e_if_sa_newkey()
445 free(pb, M_DEVBUF); in mlx5e_if_sa_newkey()
449 ifp, sav, IPSEC_DIR_OUTBOUND, dev_spi, &pb->priv_out, pb, ifpo); in mlx5e_if_sa_newkey()
451 *privp = pb; in mlx5e_if_sa_newkey()
453 if (pb->priv_in->dwork != NULL) in mlx5e_if_sa_newkey()
454 cancel_delayed_work_sync(&pb->priv_in->dwork->dwork); in mlx5e_if_sa_newkey()
455 mlx5e_if_sa_deinstall_onekey(ifp, dev_spi, pb->priv_in); in mlx5e_if_sa_newkey()
456 free(pb, M_DEVBUF); in mlx5e_if_sa_newkey()
480 struct mlx5e_ipsec_priv_bothdir pb, *pbp; in mlx5e_if_sa_deinstall() local
487 pb = *(struct mlx5e_ipsec_priv_bothdir *)priv; in mlx5e_if_sa_deinstall()
490 if (pb.priv_in->dwork != NULL) in mlx5e_if_sa_deinstall()
491 cancel_delayed_work_sync(&pb.priv_in->dwork->dwork); in mlx5e_if_sa_deinstall()
492 if (pb.priv_out->dwork != NULL) in mlx5e_if_sa_deinstall()
493 cancel_delayed_work_sync(&pb.priv_out->dwork->dwork); in mlx5e_if_sa_deinstall()
495 mlx5e_if_sa_deinstall_onekey(ifp, dev_spi, pb.priv_in); in mlx5e_if_sa_deinstall()
496 mlx5e_if_sa_deinstall_onekey(ifp, dev_spi, pb.priv_out); in mlx5e_if_sa_deinstall()
516 struct mlx5e_ipsec_priv_bothdir *pb; in mlx5e_if_sa_cnt() local
524 pb = priv; in mlx5e_if_sa_cnt()
525 mlx5e_if_sa_cnt_one(ifp, sa, drv_spi, pb->priv_in, in mlx5e_if_sa_cnt()
527 mlx5e_if_sa_cnt_one(ifp, sa, drv_spi, pb->priv_out, in mlx5e_if_sa_cnt()