Lines Matching refs:channel

520 				     u32 *channel)  in macsec_qca_lookup_channel()  argument
527 *channel = i; in macsec_qca_lookup_channel()
538 u32 channel) in macsec_qca_register_channel() argument
540 os_memcpy(&map[channel].sci, sci, sizeof(struct ieee802_1x_mka_sci)); in macsec_qca_register_channel()
546 u32 *channel) in macsec_qca_lookup_receive_channel() argument
549 channel); in macsec_qca_lookup_receive_channel()
555 u32 channel) in macsec_qca_register_receive_channel() argument
558 channel); in macsec_qca_register_receive_channel()
564 u32 *channel) in macsec_qca_lookup_transmit_channel() argument
567 channel); in macsec_qca_lookup_transmit_channel()
573 u32 channel) in macsec_qca_register_transmit_channel() argument
576 channel); in macsec_qca_register_transmit_channel()
587 u32 channel; in macsec_qca_get_receive_lowest_pn() local
589 ret = macsec_qca_lookup_receive_channel(priv, sa->sc, &channel); in macsec_qca_get_receive_lowest_pn()
593 ret += nss_macsec_secy_rx_sa_next_pn_get(drv->secy_id, channel, sa->an, in macsec_qca_get_receive_lowest_pn()
595 ret += nss_macsec_secy_rx_sc_replay_protect_get(drv->secy_id, channel, in macsec_qca_get_receive_lowest_pn()
598 channel, &win); in macsec_qca_get_receive_lowest_pn()
615 u32 channel; in macsec_qca_get_transmit_next_pn() local
617 ret = macsec_qca_lookup_transmit_channel(priv, sa->sc, &channel); in macsec_qca_get_transmit_next_pn()
621 ret += nss_macsec_secy_tx_sa_next_pn_get(drv->secy_id, channel, sa->an, in macsec_qca_get_transmit_next_pn()
634 u32 channel; in macsec_qca_set_transmit_next_pn() local
636 ret = macsec_qca_lookup_transmit_channel(priv, sa->sc, &channel); in macsec_qca_set_transmit_next_pn()
640 ret += nss_macsec_secy_tx_sa_next_pn_set(drv->secy_id, channel, sa->an, in macsec_qca_set_transmit_next_pn()
649 static int macsec_qca_get_available_receive_sc(void *priv, u32 *channel) in macsec_qca_get_available_receive_sc() argument
663 *channel = sc_ch; in macsec_qca_get_available_receive_sc()
665 __func__, *channel); in macsec_qca_get_available_receive_sc()
685 u32 channel; in macsec_qca_create_receive_sc() local
689 ret = macsec_qca_get_available_receive_sc(priv, &channel); in macsec_qca_create_receive_sc()
693 wpa_printf(MSG_DEBUG, "%s: channel=%d", __func__, channel); in macsec_qca_create_receive_sc()
704 entry.channel = channel; in macsec_qca_create_receive_sc()
716 ret += nss_macsec_secy_rx_prc_lut_set(drv->secy_id, channel, &entry); in macsec_qca_create_receive_sc()
717 ret += nss_macsec_secy_rx_sc_create(drv->secy_id, channel); in macsec_qca_create_receive_sc()
718 ret += nss_macsec_secy_rx_sc_validate_frame_set(drv->secy_id, channel, in macsec_qca_create_receive_sc()
720 ret += nss_macsec_secy_rx_sc_replay_protect_set(drv->secy_id, channel, in macsec_qca_create_receive_sc()
723 channel, in macsec_qca_create_receive_sc()
726 macsec_qca_register_receive_channel(drv, sc, channel); in macsec_qca_create_receive_sc()
737 u32 channel; in macsec_qca_delete_receive_sc() local
739 ret = macsec_qca_lookup_receive_channel(priv, sc, &channel); in macsec_qca_delete_receive_sc()
743 wpa_printf(MSG_DEBUG, "%s: channel=%d", __func__, channel); in macsec_qca_delete_receive_sc()
748 ret += nss_macsec_secy_rx_sc_del(drv->secy_id, channel); in macsec_qca_delete_receive_sc()
749 ret += nss_macsec_secy_rx_prc_lut_set(drv->secy_id, channel, &entry); in macsec_qca_delete_receive_sc()
761 u32 channel; in macsec_qca_create_receive_sa() local
765 ret = macsec_qca_lookup_receive_channel(priv, sa->sc, &channel); in macsec_qca_create_receive_sa()
770 __func__, channel, sa->an, sa->lowest_pn); in macsec_qca_create_receive_sa()
794 ret += nss_macsec_secy_rx_prc_lut_get(drv->secy_id, channel, &entry); in macsec_qca_create_receive_sa()
796 ret += nss_macsec_secy_rx_prc_lut_set(drv->secy_id, channel, &entry); in macsec_qca_create_receive_sa()
797 ret += nss_macsec_secy_rx_sa_create(drv->secy_id, channel, sa->an); in macsec_qca_create_receive_sa()
798 ret += nss_macsec_secy_rx_sak_set(drv->secy_id, channel, sa->an, in macsec_qca_create_receive_sa()
809 u32 channel; in macsec_qca_enable_receive_sa() local
811 ret = macsec_qca_lookup_receive_channel(priv, sa->sc, &channel); in macsec_qca_enable_receive_sa()
815 wpa_printf(MSG_DEBUG, "%s: channel=%d, an=%d", __func__, channel, in macsec_qca_enable_receive_sa()
818 ret += nss_macsec_secy_rx_sa_en_set(drv->secy_id, channel, sa->an, in macsec_qca_enable_receive_sa()
829 u32 channel; in macsec_qca_disable_receive_sa() local
831 ret = macsec_qca_lookup_receive_channel(priv, sa->sc, &channel); in macsec_qca_disable_receive_sa()
835 wpa_printf(MSG_DEBUG, "%s: channel=%d, an=%d", __func__, channel, in macsec_qca_disable_receive_sa()
838 ret += nss_macsec_secy_rx_sa_en_set(drv->secy_id, channel, sa->an, in macsec_qca_disable_receive_sa()
845 static int macsec_qca_get_available_transmit_sc(void *priv, u32 *channel) in macsec_qca_get_available_transmit_sc() argument
857 *channel = sc_ch; in macsec_qca_get_available_transmit_sc()
859 __func__, *channel); in macsec_qca_get_available_transmit_sc()
877 u32 channel; in macsec_qca_create_transmit_sc() local
880 ret = macsec_qca_get_available_transmit_sc(priv, &channel); in macsec_qca_create_transmit_sc()
884 wpa_printf(MSG_DEBUG, "%s: channel=%d", __func__, channel); in macsec_qca_create_transmit_sc()
891 entry.channel = channel; in macsec_qca_create_transmit_sc()
897 ret += nss_macsec_secy_tx_class_lut_set(drv->secy_id, channel, &entry); in macsec_qca_create_transmit_sc()
898 ret += nss_macsec_secy_tx_sc_create(drv->secy_id, channel, psci, 8); in macsec_qca_create_transmit_sc()
899 ret += nss_macsec_secy_tx_sc_protect_set(drv->secy_id, channel, in macsec_qca_create_transmit_sc()
902 channel, in macsec_qca_create_transmit_sc()
905 macsec_qca_register_transmit_channel(drv, sc, channel); in macsec_qca_create_transmit_sc()
916 u32 channel; in macsec_qca_delete_transmit_sc() local
918 ret = macsec_qca_lookup_transmit_channel(priv, sc, &channel); in macsec_qca_delete_transmit_sc()
922 wpa_printf(MSG_DEBUG, "%s: channel=%d", __func__, channel); in macsec_qca_delete_transmit_sc()
927 ret += nss_macsec_secy_tx_class_lut_set(drv->secy_id, channel, &entry); in macsec_qca_delete_transmit_sc()
928 ret += nss_macsec_secy_tx_sc_del(drv->secy_id, channel); in macsec_qca_delete_transmit_sc()
941 u32 channel; in macsec_qca_create_transmit_sa() local
944 ret = macsec_qca_lookup_transmit_channel(priv, sa->sc, &channel); in macsec_qca_create_transmit_sa()
950 __func__, channel, sa->an, sa->next_pn, sa->confidentiality); in macsec_qca_create_transmit_sa()
985 channel, in macsec_qca_create_transmit_sa()
987 ret += nss_macsec_secy_tx_sa_next_pn_set(drv->secy_id, channel, sa->an, in macsec_qca_create_transmit_sa()
989 ret += nss_macsec_secy_tx_sak_set(drv->secy_id, channel, sa->an, in macsec_qca_create_transmit_sa()
991 ret += nss_macsec_secy_tx_sc_tci_7_2_set(drv->secy_id, channel, in macsec_qca_create_transmit_sa()
993 ret += nss_macsec_secy_tx_sc_an_set(drv->secy_id, channel, sa->an); in macsec_qca_create_transmit_sa()
1003 u32 channel; in macsec_qca_enable_transmit_sa() local
1005 ret = macsec_qca_lookup_transmit_channel(priv, sa->sc, &channel); in macsec_qca_enable_transmit_sa()
1009 wpa_printf(MSG_DEBUG, "%s: channel=%d, an=%d", __func__, channel, in macsec_qca_enable_transmit_sa()
1012 ret += nss_macsec_secy_tx_sa_en_set(drv->secy_id, channel, sa->an, in macsec_qca_enable_transmit_sa()
1023 u32 channel; in macsec_qca_disable_transmit_sa() local
1025 ret = macsec_qca_lookup_transmit_channel(priv, sa->sc, &channel); in macsec_qca_disable_transmit_sa()
1029 wpa_printf(MSG_DEBUG, "%s: channel=%d, an=%d", __func__, channel, in macsec_qca_disable_transmit_sa()
1032 ret += nss_macsec_secy_tx_sa_en_set(drv->secy_id, channel, sa->an, in macsec_qca_disable_transmit_sa()