Searched refs:sa_idx (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.10/drivers/net/netdevsim/ |
D | ipsec.c | 134 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 …]
|
/Linux-v5.10/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ipsec.c | 568 u16 sa_idx; in ixgbe_ipsec_add_sa() local 597 sa_idx = (u16)ret; in ixgbe_ipsec_add_sa() 683 memcpy(&ipsec->rx_tbl[sa_idx], &rsa, sizeof(rsa)); in ixgbe_ipsec_add_sa() 685 ixgbe_ipsec_set_rx_sa(hw, sa_idx, rsa.xs->id.spi, rsa.key, in ixgbe_ipsec_add_sa() 687 xs->xso.offload_handle = sa_idx + IXGBE_IPSEC_BASE_RX_INDEX; in ixgbe_ipsec_add_sa() 692 hash_add_rcu(ipsec->rx_sa_list, &ipsec->rx_tbl[sa_idx].hlist, in ixgbe_ipsec_add_sa() 707 sa_idx = (u16)ret; in ixgbe_ipsec_add_sa() 724 memcpy(&ipsec->tx_tbl[sa_idx], &tsa, sizeof(tsa)); in ixgbe_ipsec_add_sa() 726 ixgbe_ipsec_set_tx_sa(hw, sa_idx, tsa.key, tsa.salt); in ixgbe_ipsec_add_sa() 728 xs->xso.offload_handle = sa_idx + IXGBE_IPSEC_BASE_TX_INDEX; in ixgbe_ipsec_add_sa() [all …]
|
D | ixgbe_ipsec.h | 63 u16 sa_idx; member
|
D | ixgbe_main.c | 8029 fceof_saidx |= itd->sa_idx; in ixgbe_tso() 8099 fceof_saidx |= itd->sa_idx; in ixgbe_tx_csum()
|
/Linux-v5.10/drivers/net/ethernet/intel/ixgbevf/ |
D | ipsec.c | 266 u16 sa_idx; in ixgbevf_ipsec_add_sa() local 289 sa_idx = (u16)ret; in ixgbevf_ipsec_add_sa() 325 memcpy(&ipsec->rx_tbl[sa_idx], &rsa, sizeof(rsa)); in ixgbevf_ipsec_add_sa() 327 xs->xso.offload_handle = sa_idx + IXGBE_IPSEC_BASE_RX_INDEX; in ixgbevf_ipsec_add_sa() 332 hash_add_rcu(ipsec->rx_sa_list, &ipsec->rx_tbl[sa_idx].hlist, in ixgbevf_ipsec_add_sa() 343 sa_idx = (u16)ret; in ixgbevf_ipsec_add_sa() 365 memcpy(&ipsec->tx_tbl[sa_idx], &tsa, sizeof(tsa)); in ixgbevf_ipsec_add_sa() 367 xs->xso.offload_handle = sa_idx + IXGBE_IPSEC_BASE_TX_INDEX; in ixgbevf_ipsec_add_sa() 384 u16 sa_idx; in ixgbevf_ipsec_del_sa() local 387 sa_idx = xs->xso.offload_handle - IXGBE_IPSEC_BASE_RX_INDEX; in ixgbevf_ipsec_del_sa() [all …]
|
/Linux-v5.10/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_macsec.c | 192 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 …]
|
/Linux-v5.10/drivers/net/wireless/ath/ath11k/ |
D | rx_desc.h | 912 __le16 sa_idx; member
|
/Linux-v5.10/drivers/crypto/ |
D | hifn_795x.c | 1117 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()
|