Lines Matching refs:sci
6 static inline u64 sci_to_cpu(sci_t sci) in sci_to_cpu() argument
8 return be64_to_cpu((__force __be64)sci); in sci_to_cpu()
11 static int nsim_macsec_find_secy(struct netdevsim *ns, sci_t sci) in nsim_macsec_find_secy() argument
16 if (ns->macsec.nsim_secy[i].sci == sci) in nsim_macsec_find_secy()
23 static int nsim_macsec_find_rxsc(struct nsim_secy *ns_secy, sci_t sci) in nsim_macsec_find_rxsc() argument
28 if (ns_secy->nsim_rxsc[i].sci == sci) in nsim_macsec_find_rxsc()
55 __func__, sci_to_cpu(ctx->secy->sci), idx); in nsim_macsec_add_secy()
58 ns->macsec.nsim_secy[idx].sci = ctx->secy->sci; in nsim_macsec_add_secy()
69 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_upd_secy()
72 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_upd_secy()
77 __func__, sci_to_cpu(ctx->secy->sci), idx); in nsim_macsec_upd_secy()
87 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_del_secy()
90 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_del_secy()
95 __func__, sci_to_cpu(ctx->secy->sci), idx); in nsim_macsec_del_secy()
110 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_add_rxsc()
113 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_add_rxsc()
131 __func__, sci_to_cpu(ctx->rx_sc->sci), idx); in nsim_macsec_add_rxsc()
133 secy->nsim_rxsc[idx].sci = ctx->rx_sc->sci; in nsim_macsec_add_rxsc()
145 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_upd_rxsc()
148 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_upd_rxsc()
153 idx = nsim_macsec_find_rxsc(secy, ctx->rx_sc->sci); in nsim_macsec_upd_rxsc()
156 __func__, sci_to_cpu(ctx->rx_sc->sci)); in nsim_macsec_upd_rxsc()
161 __func__, sci_to_cpu(ctx->rx_sc->sci), idx); in nsim_macsec_upd_rxsc()
172 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_del_rxsc()
175 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_del_rxsc()
180 idx = nsim_macsec_find_rxsc(secy, ctx->rx_sc->sci); in nsim_macsec_del_rxsc()
183 __func__, sci_to_cpu(ctx->rx_sc->sci)); in nsim_macsec_del_rxsc()
188 __func__, sci_to_cpu(ctx->rx_sc->sci), idx); in nsim_macsec_del_rxsc()
203 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_add_rxsa()
206 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_add_rxsa()
211 idx = nsim_macsec_find_rxsc(secy, ctx->sa.rx_sa->sc->sci); in nsim_macsec_add_rxsa()
214 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci)); in nsim_macsec_add_rxsa()
219 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num); in nsim_macsec_add_rxsa()
230 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_upd_rxsa()
233 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_upd_rxsa()
238 idx = nsim_macsec_find_rxsc(secy, ctx->sa.rx_sa->sc->sci); in nsim_macsec_upd_rxsa()
241 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci)); in nsim_macsec_upd_rxsa()
246 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num); in nsim_macsec_upd_rxsa()
257 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_del_rxsa()
260 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_del_rxsa()
265 idx = nsim_macsec_find_rxsc(secy, ctx->sa.rx_sa->sc->sci); in nsim_macsec_del_rxsa()
268 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci)); in nsim_macsec_del_rxsa()
273 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num); in nsim_macsec_del_rxsa()
283 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_add_txsa()
286 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_add_txsa()
291 __func__, sci_to_cpu(ctx->secy->sci), ctx->sa.assoc_num); in nsim_macsec_add_txsa()
301 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_upd_txsa()
304 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_upd_txsa()
309 __func__, sci_to_cpu(ctx->secy->sci), ctx->sa.assoc_num); in nsim_macsec_upd_txsa()
319 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_del_txsa()
322 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_del_txsa()
327 __func__, sci_to_cpu(ctx->secy->sci), ctx->sa.assoc_num); in nsim_macsec_del_txsa()