Lines Matching defs:secy

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);
107 struct nsim_secy *secy;
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));
116 secy = &ns->macsec.nsim_secy[idx];
118 if (secy->nsim_rxsc_count == NSIM_MACSEC_MAX_RXSC_COUNT)
122 if (!secy->nsim_rxsc[idx].used)
132 secy->nsim_rxsc[idx].used = true;
133 secy->nsim_rxsc[idx].sci = ctx->rx_sc->sci;
134 secy->nsim_rxsc_count++;
142 struct nsim_secy *secy;
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));
151 secy = &ns->macsec.nsim_secy[idx];
153 idx = nsim_macsec_find_rxsc(secy, ctx->rx_sc->sci);
169 struct nsim_secy *secy;
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));
178 secy = &ns->macsec.nsim_secy[idx];
180 idx = nsim_macsec_find_rxsc(secy, ctx->rx_sc->sci);
190 secy->nsim_rxsc[idx].used = false;
191 memset(&secy->nsim_rxsc[idx], 0, sizeof(secy->nsim_rxsc[idx]));
192 secy->nsim_rxsc_count--;
200 struct nsim_secy *secy;
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));
209 secy = &ns->macsec.nsim_secy[idx];
211 idx = nsim_macsec_find_rxsc(secy, ctx->sa.rx_sa->sc->sci);
227 struct nsim_secy *secy;
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));
236 secy = &ns->macsec.nsim_secy[idx];
238 idx = nsim_macsec_find_rxsc(secy, ctx->sa.rx_sa->sc->sci);
254 struct nsim_secy *secy;
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));
263 secy = &ns->macsec.nsim_secy[idx];
265 idx = nsim_macsec_find_rxsc(secy, ctx->sa.rx_sa->sc->sci);
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));
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));
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));
327 __func__, sci_to_cpu(ctx->secy->sci), ctx->sa.assoc_num);