Lines Matching refs:sci
6 static inline u64 sci_to_cpu(sci_t sci)
8 return be64_to_cpu((__force __be64)sci);
11 static int nsim_macsec_find_secy(struct netdevsim *ns, sci_t sci)
16 if (ns->macsec.nsim_secy[i].sci == sci)
23 static int nsim_macsec_find_rxsc(struct nsim_secy *ns_secy, sci_t sci)
28 if (ns_secy->nsim_rxsc[i].sci == sci)
54 netdev_dbg(ctx->netdev, "%s: adding new secy with sci %08llx at index %d\n",
55 __func__, sci_to_cpu(ctx->secy->sci), idx);
58 ns->macsec.nsim_secy[idx].sci = ctx->secy->sci;
69 idx = nsim_macsec_find_secy(ns, ctx->secy->sci);
71 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy table\n",
72 __func__, sci_to_cpu(ctx->secy->sci));
76 netdev_dbg(ctx->netdev, "%s: updating secy with sci %08llx at index %d\n",
77 __func__, sci_to_cpu(ctx->secy->sci), idx);
87 idx = nsim_macsec_find_secy(ns, ctx->secy->sci);
89 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy table\n",
90 __func__, sci_to_cpu(ctx->secy->sci));
95 __func__, sci_to_cpu(ctx->secy->sci), idx);
110 idx = nsim_macsec_find_secy(ns, ctx->secy->sci);
112 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy table\n",
113 __func__, sci_to_cpu(ctx->secy->sci));
130 netdev_dbg(ctx->netdev, "%s: adding new rxsc with sci %08llx at index %d\n",
131 __func__, sci_to_cpu(ctx->rx_sc->sci), idx);
133 secy->nsim_rxsc[idx].sci = ctx->rx_sc->sci;
145 idx = nsim_macsec_find_secy(ns, ctx->secy->sci);
147 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy table\n",
148 __func__, sci_to_cpu(ctx->secy->sci));
153 idx = nsim_macsec_find_rxsc(secy, ctx->rx_sc->sci);
155 netdev_err(ctx->netdev, "%s: sci %08llx not found in RXSC table\n",
156 __func__, sci_to_cpu(ctx->rx_sc->sci));
160 netdev_dbg(ctx->netdev, "%s: updating RXSC with sci %08llx at index %d\n",
161 __func__, sci_to_cpu(ctx->rx_sc->sci), idx);
172 idx = nsim_macsec_find_secy(ns, ctx->secy->sci);
174 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy table\n",
175 __func__, sci_to_cpu(ctx->secy->sci));
180 idx = nsim_macsec_find_rxsc(secy, ctx->rx_sc->sci);
182 netdev_err(ctx->netdev, "%s: sci %08llx not found in RXSC table\n",
183 __func__, sci_to_cpu(ctx->rx_sc->sci));
187 netdev_dbg(ctx->netdev, "%s: removing RXSC with sci %08llx at index %d\n",
188 __func__, sci_to_cpu(ctx->rx_sc->sci), idx);
203 idx = nsim_macsec_find_secy(ns, ctx->secy->sci);
205 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy table\n",
206 __func__, sci_to_cpu(ctx->secy->sci));
211 idx = nsim_macsec_find_rxsc(secy, ctx->sa.rx_sa->sc->sci);
213 netdev_err(ctx->netdev, "%s: sci %08llx not found in RXSC table\n",
214 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci));
218 netdev_dbg(ctx->netdev, "%s: RXSC with sci %08llx, AN %u\n",
219 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num);
230 idx = nsim_macsec_find_secy(ns, ctx->secy->sci);
232 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy table\n",
233 __func__, sci_to_cpu(ctx->secy->sci));
238 idx = nsim_macsec_find_rxsc(secy, ctx->sa.rx_sa->sc->sci);
240 netdev_err(ctx->netdev, "%s: sci %08llx not found in RXSC table\n",
241 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci));
245 netdev_dbg(ctx->netdev, "%s: RXSC with sci %08llx, AN %u\n",
246 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num);
257 idx = nsim_macsec_find_secy(ns, ctx->secy->sci);
259 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy table\n",
260 __func__, sci_to_cpu(ctx->secy->sci));
265 idx = nsim_macsec_find_rxsc(secy, ctx->sa.rx_sa->sc->sci);
267 netdev_err(ctx->netdev, "%s: sci %08llx not found in RXSC table\n",
268 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci));
272 netdev_dbg(ctx->netdev, "%s: RXSC with sci %08llx, AN %u\n",
273 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num);
283 idx = nsim_macsec_find_secy(ns, ctx->secy->sci);
285 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy table\n",
286 __func__, sci_to_cpu(ctx->secy->sci));
290 netdev_dbg(ctx->netdev, "%s: SECY with sci %08llx, AN %u\n",
291 __func__, sci_to_cpu(ctx->secy->sci), ctx->sa.assoc_num);
301 idx = nsim_macsec_find_secy(ns, ctx->secy->sci);
303 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy table\n",
304 __func__, sci_to_cpu(ctx->secy->sci));
308 netdev_dbg(ctx->netdev, "%s: SECY with sci %08llx, AN %u\n",
309 __func__, sci_to_cpu(ctx->secy->sci), ctx->sa.assoc_num);
319 idx = nsim_macsec_find_secy(ns, ctx->secy->sci);
321 netdev_err(ctx->netdev, "%s: sci %08llx not found in secy table\n",
322 __func__, sci_to_cpu(ctx->secy->sci));
326 netdev_dbg(ctx->netdev, "%s: SECY with sci %08llx, AN %u\n",
327 __func__, sci_to_cpu(ctx->secy->sci), ctx->sa.assoc_num);