Home
last modified time | relevance | path

Searched refs:sa_idx (Results 1 – 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/netdevsim/
Dipsec.c134 u16 sa_idx; in nsim_ipsec_add_sa() local
158 sa_idx = (u16)ret; in nsim_ipsec_add_sa()
184 memcpy(&ipsec->sa[sa_idx], &sa, sizeof(sa)); in nsim_ipsec_add_sa()
189 xs->xso.offload_handle = sa_idx | NSIM_IPSEC_VALID; in nsim_ipsec_add_sa()
199 u16 sa_idx; in nsim_ipsec_del_sa() local
201 sa_idx = xs->xso.offload_handle & ~NSIM_IPSEC_VALID; in nsim_ipsec_del_sa()
202 if (!ipsec->sa[sa_idx].used) { in nsim_ipsec_del_sa()
204 sa_idx); in nsim_ipsec_del_sa()
208 memset(&ipsec->sa[sa_idx], 0, sizeof(struct nsim_sa)); in nsim_ipsec_del_sa()
234 u32 sa_idx; in nsim_ipsec_tx() local
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbevf/
Dipsec.c266 u16 sa_idx; in ixgbevf_ipsec_add_sa() local
297 sa_idx = (u16)ret; in ixgbevf_ipsec_add_sa()
333 memcpy(&ipsec->rx_tbl[sa_idx], &rsa, sizeof(rsa)); in ixgbevf_ipsec_add_sa()
335 xs->xso.offload_handle = sa_idx + IXGBE_IPSEC_BASE_RX_INDEX; in ixgbevf_ipsec_add_sa()
340 hash_add_rcu(ipsec->rx_sa_list, &ipsec->rx_tbl[sa_idx].hlist, in ixgbevf_ipsec_add_sa()
351 sa_idx = (u16)ret; in ixgbevf_ipsec_add_sa()
373 memcpy(&ipsec->tx_tbl[sa_idx], &tsa, sizeof(tsa)); in ixgbevf_ipsec_add_sa()
375 xs->xso.offload_handle = sa_idx + IXGBE_IPSEC_BASE_TX_INDEX; in ixgbevf_ipsec_add_sa()
392 u16 sa_idx; in ixgbevf_ipsec_del_sa() local
398 sa_idx = xs->xso.offload_handle - IXGBE_IPSEC_BASE_RX_INDEX; in ixgbevf_ipsec_del_sa()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ipsec.c568 u16 sa_idx; in ixgbe_ipsec_add_sa() local
602 sa_idx = (u16)ret; in ixgbe_ipsec_add_sa()
688 memcpy(&ipsec->rx_tbl[sa_idx], &rsa, sizeof(rsa)); in ixgbe_ipsec_add_sa()
690 ixgbe_ipsec_set_rx_sa(hw, sa_idx, rsa.xs->id.spi, rsa.key, in ixgbe_ipsec_add_sa()
692 xs->xso.offload_handle = sa_idx + IXGBE_IPSEC_BASE_RX_INDEX; in ixgbe_ipsec_add_sa()
697 hash_add_rcu(ipsec->rx_sa_list, &ipsec->rx_tbl[sa_idx].hlist, in ixgbe_ipsec_add_sa()
712 sa_idx = (u16)ret; in ixgbe_ipsec_add_sa()
729 memcpy(&ipsec->tx_tbl[sa_idx], &tsa, sizeof(tsa)); in ixgbe_ipsec_add_sa()
731 ixgbe_ipsec_set_tx_sa(hw, sa_idx, tsa.key, tsa.salt); in ixgbe_ipsec_add_sa()
733 xs->xso.offload_handle = sa_idx + IXGBE_IPSEC_BASE_TX_INDEX; in ixgbe_ipsec_add_sa()
[all …]
Dixgbe_ipsec.h63 u16 sa_idx; member
Dixgbe_main.c8065 fceof_saidx |= itd->sa_idx; in ixgbe_tso()
8135 fceof_saidx |= itd->sa_idx; in ixgbe_tx_csum()
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/
Daq_macsec.c192 static int aq_get_rxsa_stats(struct aq_hw_s *hw, const int sa_idx, in aq_get_rxsa_stats() argument
198 ret = aq_mss_get_ingress_sa_counters(hw, &i_sa_counters, sa_idx); in aq_get_rxsa_stats()
222 static int aq_get_txsa_stats(struct aq_hw_s *hw, const int sa_idx, in aq_get_txsa_stats() argument
228 ret = aq_mss_get_egress_sa_counters(hw, &e_sa_counters, sa_idx); in aq_get_txsa_stats()
244 static int aq_get_txsa_next_pn(struct aq_hw_s *hw, const int sa_idx, u32 *pn) in aq_get_txsa_next_pn() argument
249 ret = aq_mss_get_egress_sa_record(hw, &sa_rec, sa_idx); in aq_get_txsa_next_pn()
256 static int aq_get_rxsa_next_pn(struct aq_hw_s *hw, const int sa_idx, u32 *pn) in aq_get_rxsa_next_pn() argument
261 ret = aq_mss_get_ingress_sa_record(hw, &sa_rec, sa_idx); in aq_get_rxsa_next_pn()
564 const unsigned int sa_idx = sc_idx | an; in aq_update_txsa() local
574 ret = aq_mss_set_egress_sa_record(hw, &sa_rec, sa_idx); in aq_update_txsa()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/
Drx_desc.h912 __le16 sa_idx; member
/kernel/linux/linux-5.10/drivers/crypto/
Dhifn_795x.c1117 int cmd_len, sa_idx; in hifn_setup_cmd_desc() local
1121 sa_idx = dma->cmdi; in hifn_setup_cmd_desc()
1205 dev->sa[sa_idx] = priv; in hifn_setup_cmd_desc()