/freebsd/sys/dev/bwn/ |
H A D | if_bwn_phy_n.c | 93 bwn_phy_n_attach(struct bwn_mac *mac) in bwn_phy_n_attach() 107 bwn_phy_n_detach(struct bwn_mac *mac) in bwn_phy_n_detach() 116 bwn_phy_n_prepare_hw(struct bwn_mac *mac) in bwn_phy_n_prepare_hw() 127 bwn_phy_n_init_pre(struct bwn_mac *mac) in bwn_phy_n_init_pre() 134 bwn_phy_n_init(struct bwn_mac *mac) in bwn_phy_n_init() 144 bwn_phy_n_exit(struct bwn_mac *mac) in bwn_phy_n_exit() 151 bwn_phy_n_read(struct bwn_mac *mac, uint16_t reg) in bwn_phy_n_read() 159 bwn_phy_n_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) in bwn_phy_n_write() 167 bwn_phy_n_rf_read(struct bwn_mac *mac, uint16_t reg) in bwn_phy_n_rf_read() 185 bwn_phy_n_rf_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) in bwn_phy_n_rf_write() [all …]
|
H A D | if_bwn_phy_lp.c | 380 bwn_phy_lp_init_pre(struct bwn_mac *mac) in bwn_phy_lp_init_pre() 389 bwn_phy_lp_init(struct bwn_mac *mac) in bwn_phy_lp_init() 477 bwn_phy_lp_read(struct bwn_mac *mac, uint16_t reg) in bwn_phy_lp_read() 485 bwn_phy_lp_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) in bwn_phy_lp_write() 493 bwn_phy_lp_maskset(struct bwn_mac *mac, uint16_t reg, uint16_t mask, in bwn_phy_lp_maskset() 503 bwn_phy_lp_rf_read(struct bwn_mac *mac, uint16_t reg) in bwn_phy_lp_rf_read() 516 bwn_phy_lp_rf_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) in bwn_phy_lp_rf_write() 525 bwn_phy_lp_rf_onoff(struct bwn_mac *mac, int on) in bwn_phy_lp_rf_onoff() 551 bwn_phy_lp_switch_channel(struct bwn_mac *mac, uint32_t chan) in bwn_phy_lp_switch_channel() 575 bwn_phy_lp_get_default_chan(struct bwn_mac *mac) in bwn_phy_lp_get_default_chan() [all …]
|
H A D | if_bwn_phy_g.c | 140 bwn_has_hwpctl(struct bwn_mac *mac) in bwn_has_hwpctl() 149 bwn_phy_g_attach(struct bwn_mac *mac) in bwn_phy_g_attach() 225 bwn_phy_g_detach(struct bwn_mac *mac) in bwn_phy_g_detach() 237 bwn_phy_g_init_pre(struct bwn_mac *mac) in bwn_phy_g_init_pre() 270 bwn_phy_g_prepare_hw(struct bwn_mac *mac) in bwn_phy_g_prepare_hw() 441 bwn_phy_g_txctl(struct bwn_mac *mac) in bwn_phy_g_txctl() 457 bwn_phy_g_init(struct bwn_mac *mac) in bwn_phy_g_init() 465 bwn_phy_g_exit(struct bwn_mac *mac) in bwn_phy_g_exit() 479 bwn_phy_g_read(struct bwn_mac *mac, uint16_t reg) in bwn_phy_g_read() 487 bwn_phy_g_write(struct bwn_mac *mac, uint16_t reg, uint16_t value) in bwn_phy_g_write() [all …]
|
H A D | if_bwn.c | 537 struct bwn_mac *mac; in bwn_attach() local 838 bwn_phy_detach(struct bwn_mac *mac) in bwn_phy_detach() 849 struct bwn_mac *mac = sc->sc_curmac; in bwn_detach() local 979 struct bwn_mac *mac = sc->sc_curmac; in bwn_start() local 1029 struct bwn_mac *mac = sc->sc_curmac; in bwn_tx_isfull() local 1057 struct bwn_mac *mac = sc->sc_curmac; in bwn_tx_start() local 1077 bwn_pio_tx_start(struct bwn_mac *mac, struct ieee80211_node *ni, in bwn_pio_tx_start() 1151 bwn_pio_select(struct bwn_mac *mac, uint8_t prio) in bwn_pio_select() 1172 bwn_dma_tx_start(struct bwn_mac *mac, struct ieee80211_node *ni, in bwn_dma_tx_start() 1282 bwn_attach_core(struct bwn_mac *mac) in bwn_attach_core() [all …]
|
H A D | if_bwn_phy_common.c | 88 bwn_mac_switch_freq(struct bwn_mac *mac, bhnd_pmu_spuravoid spurmode) in bwn_mac_switch_freq() 149 bwn_phy_force_clock(struct bwn_mac *mac, int force) in bwn_phy_force_clock() 175 bwn_radio_wait_value(struct bwn_mac *mac, uint16_t offset, uint16_t mask, in bwn_radio_wait_value() 191 bwn_mac_phy_clock_set(struct bwn_mac *mac, int enabled) in bwn_mac_phy_clock_set() 217 bwn_wireless_core_phy_pll_reset(struct bwn_mac *mac) in bwn_wireless_core_phy_pll_reset()
|
/freebsd/sys/dev/bwi/ |
H A D | bwimac.h | 73 #define MOBJ_WRITE_2(mac, objid, ofs, val) \ argument 75 #define MOBJ_WRITE_4(mac, objid, ofs, val) \ argument 77 #define MOBJ_READ_2(mac, objid, ofs) \ argument 79 #define MOBJ_READ_4(mac, objid, ofs) \ argument 82 #define MOBJ_SETBITS_4(mac, objid, ofs, bits) \ argument 85 #define MOBJ_CLRBITS_4(mac, objid, ofs, bits) \ argument 89 #define MOBJ_FILT_SETBITS_2(mac, objid, ofs, filt, bits) \ argument 93 #define TMPLT_WRITE_4(mac, ofs, val) bwi_tmplt_write_4((mac), (ofs), (val)) argument 95 #define HFLAGS_WRITE(mac, flags) bwi_hostflags_write((mac), (flags)) argument 96 #define HFLAGS_READ(mac) bwi_hostflags_read((mac)) argument [all …]
|
H A D | bwimac.c | 118 bwi_tmplt_write_4(struct bwi_mac *mac, uint32_t ofs, uint32_t val) in bwi_tmplt_write_4() 130 bwi_hostflags_write(struct bwi_mac *mac, uint64_t flags) in bwi_hostflags_write() 144 bwi_hostflags_read(struct bwi_mac *mac) in bwi_hostflags_read() 161 bwi_memobj_read_2(struct bwi_mac *mac, uint16_t obj_id, uint16_t ofs0) in bwi_memobj_read_2() 178 bwi_memobj_read_4(struct bwi_mac *mac, uint16_t obj_id, uint16_t ofs0) in bwi_memobj_read_4() 203 bwi_memobj_write_2(struct bwi_mac *mac, uint16_t obj_id, uint16_t ofs0, in bwi_memobj_write_2() 221 bwi_memobj_write_4(struct bwi_mac *mac, uint16_t obj_id, uint16_t ofs0, in bwi_memobj_write_4() 242 bwi_mac_lateattach(struct bwi_mac *mac) in bwi_mac_lateattach() 285 bwi_mac_init(struct bwi_mac *mac) in bwi_mac_init() 451 bwi_mac_reset(struct bwi_mac *mac, int link_phy) in bwi_mac_reset() [all …]
|
H A D | bwiphy.c | 135 bwi_phy_write(struct bwi_mac *mac, uint16_t ctrl, uint16_t data) in bwi_phy_write() 144 bwi_phy_read(struct bwi_mac *mac, uint16_t ctrl) in bwi_phy_read() 153 bwi_phy_attach(struct bwi_mac *mac) in bwi_phy_attach() 223 bwi_phy_set_bbp_atten(struct bwi_mac *mac, uint16_t bbp_atten) in bwi_phy_set_bbp_atten() 242 bwi_phy_calibrate(struct bwi_mac *mac) in bwi_phy_calibrate() 264 bwi_tbl_write_2(struct bwi_mac *mac, uint16_t ofs, uint16_t data) in bwi_tbl_write_2() 276 bwi_tbl_write_4(struct bwi_mac *mac, uint16_t ofs, uint32_t data) in bwi_tbl_write_4() 291 bwi_nrssi_write(struct bwi_mac *mac, uint16_t ofs, int16_t data) in bwi_nrssi_write() 298 bwi_nrssi_read(struct bwi_mac *mac, uint16_t ofs) in bwi_nrssi_read() 305 bwi_phy_init_11a(struct bwi_mac *mac) in bwi_phy_init_11a() [all …]
|
H A D | bwirf.c | 78 #define RF_LO_WRITE(mac, lo) bwi_rf_lo_write((mac), (lo)) argument 106 #define SAVE_RF_REG(mac, regs, n) (regs)->rf_##n = RF_READ((mac), 0x##n) argument 107 #define RESTORE_RF_REG(mac, regs, n) RF_WRITE((mac), 0x##n, (regs)->rf_##n) argument 109 #define SAVE_PHY_REG(mac, regs, n) (regs)->phy_##n = PHY_READ((mac), 0x##n) argument 110 #define RESTORE_PHY_REG(mac, regs, n) PHY_WRITE((mac), 0x##n, (regs)->phy_##n) argument 159 bwi_nrssi_11g(struct bwi_mac *mac) in bwi_nrssi_11g() 174 bwi_get_rf_lo(struct bwi_mac *mac, uint16_t rf_atten, uint16_t bbp_atten) in bwi_get_rf_lo() 185 bwi_rf_lo_isused(struct bwi_mac *mac, const struct bwi_rf_lo *lo) in bwi_rf_lo_isused() 197 bwi_rf_write(struct bwi_mac *mac, uint16_t ctrl, uint16_t data) in bwi_rf_write() 206 bwi_rf_read(struct bwi_mac *mac, uint16_t ctrl) in bwi_rf_read() [all …]
|
H A D | bwirf.h | 112 #define RF_WRITE(mac, ofs, val) bwi_rf_write((mac), (ofs), (val)) argument 113 #define RF_READ(mac, ofs) bwi_rf_read((mac), (ofs)) argument 115 #define RF_SETBITS(mac, ofs, bits) \ argument 117 #define RF_CLRBITS(mac, ofs, bits) \ argument 119 #define RF_FILT_SETBITS(mac, ofs, filt, bits) \ argument
|
H A D | bwiphy.h | 67 #define PHY_WRITE(mac, ctrl, val) bwi_phy_write((mac), (ctrl), (val)) argument 68 #define PHY_READ(mac, ctrl) bwi_phy_read((mac), (ctrl)) argument 70 #define PHY_SETBITS(mac, ctrl, bits) \ argument 72 #define PHY_CLRBITS(mac, ctrl, bits) \ argument 74 #define PHY_FILT_SETBITS(mac, ctrl, filt, bits) \ argument
|
/freebsd/crypto/openssl/crypto/evp/ |
H A D | mac_meth.c | 21 EVP_MAC *mac = vmac; in evp_mac_up_ref() local 30 EVP_MAC *mac = vmac; in evp_mac_free() local 47 EVP_MAC *mac = NULL; in evp_mac_new() local 65 EVP_MAC *mac = NULL; in evp_mac_from_algorithm() local 177 int EVP_MAC_up_ref(EVP_MAC *mac) in EVP_MAC_up_ref() 182 void EVP_MAC_free(EVP_MAC *mac) in EVP_MAC_free() 187 const OSSL_PROVIDER *EVP_MAC_get0_provider(const EVP_MAC *mac) in EVP_MAC_get0_provider() 192 const OSSL_PARAM *EVP_MAC_gettable_params(const EVP_MAC *mac) in EVP_MAC_gettable_params() 199 const OSSL_PARAM *EVP_MAC_gettable_ctx_params(const EVP_MAC *mac) in EVP_MAC_gettable_ctx_params() 209 const OSSL_PARAM *EVP_MAC_settable_ctx_params(const EVP_MAC *mac) in EVP_MAC_settable_ctx_params() [all …]
|
H A D | mac_lib.c | 22 EVP_MAC_CTX *EVP_MAC_CTX_new(EVP_MAC *mac) in EVP_MAC_CTX_new() 191 int EVP_MAC_get_params(EVP_MAC *mac, OSSL_PARAM params[]) in EVP_MAC_get_params() 212 int evp_mac_get_number(const EVP_MAC *mac) in evp_mac_get_number() 217 const char *EVP_MAC_get0_name(const EVP_MAC *mac) in EVP_MAC_get0_name() 222 const char *EVP_MAC_get0_description(const EVP_MAC *mac) in EVP_MAC_get0_description() 227 int EVP_MAC_is_a(const EVP_MAC *mac, const char *name) in EVP_MAC_is_a() 232 int EVP_MAC_names_do_all(const EVP_MAC *mac, in EVP_MAC_names_do_all() 249 EVP_MAC *mac = EVP_MAC_fetch(libctx, name, propq); in EVP_Q_mac() local
|
/freebsd/sys/dev/cxgb/common/ |
H A D | cxgb_xgmac.c | 38 static inline int macidx(const struct cmac *mac) in macidx() 46 static inline int xgm_reset_ctrl(const struct cmac *mac) in xgm_reset_ctrl() 65 static void xaui_serdes_reset(struct cmac *mac) in xaui_serdes_reset() 95 void t3b_pcs_reset(struct cmac *mac) in t3b_pcs_reset() 106 void t3c_pcs_force_los(struct cmac *mac) in t3c_pcs_force_los() 139 int t3_mac_init(struct cmac *mac) in t3_mac_init() 219 static int t3_mac_reset(struct cmac *mac, int portspeed) in t3_mac_reset() 313 static void set_addr_filter(struct cmac *mac, int idx, const u8 *addr) in set_addr_filter() 333 int t3_mac_set_address(struct cmac *mac, unsigned int idx, u8 addr[6]) in t3_mac_set_address() 357 int t3_mac_set_num_ucast(struct cmac *mac, unsigned char n) in t3_mac_set_num_ucast() [all …]
|
/freebsd/sys/gnu/dev/bwn/phy_n/ |
H A D | if_bwn_phy_n_core.c | 162 static inline bool bwn_nphy_ipa(struct bwn_mac *mac) in bwn_nphy_ipa() 170 static uint8_t bwn_nphy_get_rx_core_state(struct bwn_mac *mac) in bwn_nphy_get_rx_core_state() 181 static void bwn_nphy_force_rf_sequence(struct bwn_mac *mac, in bwn_nphy_force_rf_sequence() 212 static void bwn_nphy_rf_ctl_override_rev19(struct bwn_mac *mac, uint16_t field, in bwn_nphy_rf_ctl_override_rev19() 220 static void bwn_nphy_rf_ctl_override_rev7(struct bwn_mac *mac, uint16_t field, in bwn_nphy_rf_ctl_override_rev7() 269 static void bwn_nphy_rf_ctl_override_one_to_many(struct bwn_mac *mac, in bwn_nphy_rf_ctl_override_one_to_many() 317 static void bwn_nphy_rf_ctl_override(struct bwn_mac *mac, uint16_t field, in bwn_nphy_rf_ctl_override() 397 static void bwn_nphy_rf_ctl_intc_override_rev7(struct bwn_mac *mac, in bwn_nphy_rf_ctl_intc_override_rev7() 467 static void bwn_nphy_rf_ctl_intc_override(struct bwn_mac *mac, in bwn_nphy_rf_ctl_intc_override() 579 static void bwn_nphy_write_clip_detection(struct bwn_mac *mac, in bwn_nphy_write_clip_detection() [all …]
|
H A D | if_bwn_phy_n_tables.c | 3375 uint32_t bwn_ntab_read(struct bwn_mac *mac, uint32_t offset) in bwn_ntab_read() 3407 void bwn_ntab_read_bulk(struct bwn_mac *mac, uint32_t offset, in bwn_ntab_read_bulk() 3453 void bwn_ntab_write(struct bwn_mac *mac, uint32_t offset, uint32_t value) in bwn_ntab_write() 3495 void bwn_ntab_write_bulk(struct bwn_mac *mac, uint32_t offset, in bwn_ntab_write_bulk() 3554 #define ntab_upload(mac, offset, data) do { \ argument 3558 static void bwn_nphy_tables_init_shared_lut(struct bwn_mac *mac) in bwn_nphy_tables_init_shared_lut() 3572 static int bwn_nphy_tables_get_antswlut(struct bwn_mac *mac, uint8_t *antswlut) in bwn_nphy_tables_get_antswlut() 3592 static void bwn_nphy_tables_init_rev7_volatile(struct bwn_mac *mac) in bwn_nphy_tables_init_rev7_volatile() 3623 static void bwn_nphy_tables_init_rev16(struct bwn_mac *mac) in bwn_nphy_tables_init_rev16() 3635 static void bwn_nphy_tables_init_rev7(struct bwn_mac *mac) in bwn_nphy_tables_init_rev7() [all …]
|
H A D | if_bwn_phy_n_ppr.c | 88 void bwn_ppr_clear(struct bwn_mac *mac, struct bwn_ppr *ppr) in bwn_ppr_clear() 96 void bwn_ppr_add(struct bwn_mac *mac, struct bwn_ppr *ppr, int diff) in bwn_ppr_add() 106 void bwn_ppr_apply_max(struct bwn_mac *mac, struct bwn_ppr *ppr, uint8_t max) in bwn_ppr_apply_max() 116 void bwn_ppr_apply_min(struct bwn_mac *mac, struct bwn_ppr *ppr, uint8_t min) in bwn_ppr_apply_min() 126 uint8_t bwn_ppr_get_max(struct bwn_mac *mac, struct bwn_ppr *ppr) in bwn_ppr_get_max() 139 bool bwn_ppr_load_max_from_sprom(struct bwn_mac *mac, struct bwn_ppr *ppr, in bwn_ppr_load_max_from_sprom()
|
/freebsd/lib/libc/posix1e/ |
H A D | mac.c | 293 mac_free(struct mac *mac) in mac_free() 304 mac_from_text(struct mac **mac, const char *text) in mac_from_text() 324 mac_to_text(struct mac *mac, char **text) in mac_to_text() 334 mac_prepare(struct mac **mac, const char *elements) in mac_prepare() 358 mac_prepare_type(struct mac **mac, const char *name) in mac_prepare_type() 378 mac_prepare_ifnet_label(struct mac **mac) in mac_prepare_ifnet_label() 385 mac_prepare_file_label(struct mac **mac) in mac_prepare_file_label() 392 mac_prepare_packet_label(struct mac **mac) in mac_prepare_packet_label() 399 mac_prepare_process_label(struct mac **mac) in mac_prepare_process_label()
|
/freebsd/contrib/wpa/src/crypto/ |
H A D | crypto_nettle.c | 52 const u8 *addr[], const size_t *len, u8 *mac) in nettle_digest_vector() 72 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() 78 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() 84 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() 90 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha256_vector() 96 int sha384_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha384_vector() 102 int sha512_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha512_vector() 109 const u8 *addr[], const size_t *len, u8 *mac) in hmac_md5_vector() 127 u8 *mac) in hmac_md5() 134 const u8 *addr[], const size_t *len, u8 *mac) in hmac_sha1_vector() [all …]
|
H A D | crypto_gnutls.c | 21 const u8 *addr[], const size_t *len, u8 *mac) in gnutls_digest_vector() 42 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() 71 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() 77 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() 83 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha256_vector() 89 int sha384_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha384_vector() 95 int sha512_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha512_vector() 103 const size_t *len, u8 *mac) in gnutls_hmac_vector() 129 const u8 *addr[], const size_t *len, u8 *mac) in hmac_md5_vector() 137 u8 *mac) in hmac_md5() [all …]
|
H A D | crypto_linux.c | 60 u8 *mac, size_t mac_len) in linux_af_alg_hash_vector() 125 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() 132 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() 140 u8 *mac) in sha1_vector() 148 u8 *mac) in sha256_vector() 156 u8 *mac) in sha384_vector() 164 u8 *mac) in sha512_vector() 172 const u8 *addr[], const size_t *len, u8 *mac) in hmac_md5_vector() 180 u8 *mac) in hmac_md5() 187 const u8 *addr[], const size_t *len, u8 *mac) in hmac_sha1_vector() [all …]
|
H A D | aes-omac1.c | 44 const u8 *addr[], const size_t *len, u8 *mac) in omac1_aes_vector() 134 const u8 *addr[], const size_t *len, u8 *mac) in omac1_aes_128_vector() 152 int omac1_aes_128(const u8 *key, const u8 *data, size_t data_len, u8 *mac) in omac1_aes_128() 170 int omac1_aes_256(const u8 *key, const u8 *data, size_t data_len, u8 *mac) in omac1_aes_256()
|
/freebsd/sys/security/mac/ |
H A D | mac_syscalls.c | 98 mac_label_copyin_impl(const void *const u_mac, struct mac *const mac, in mac_label_copyin_impl() 142 mac_label_copyin(const struct mac *const u_mac, struct mac *const mac, in mac_label_copyin() 149 free_copied_label(const struct mac *const mac) in free_copied_label() 157 struct mac *const mac, char **const u_string) in mac_label_copyin32() 167 struct mac mac; in sys___mac_get_pid() local 207 struct mac mac; in sys___mac_get_proc() local 234 mac_set_proc_prepare(struct thread *const td, const struct mac *const mac, in mac_set_proc_prepare() 312 struct mac mac; in sys___mac_set_proc() local 354 struct mac mac; in sys___mac_get_fd() local 452 struct mac mac; in kern___mac_get_path() local [all …]
|
/freebsd/crypto/openssh/ |
H A D | mac.c | 106 mac_setup_by_alg(struct sshmac *mac, const struct macalg *macalg) in mac_setup_by_alg() 125 mac_setup(struct sshmac *mac, char *name) in mac_setup() 140 mac_init(struct sshmac *mac) in mac_init() 164 mac_compute(struct sshmac *mac, u_int32_t seqno, in mac_compute() 210 mac_check(struct sshmac *mac, u_int32_t seqno, in mac_check() 228 mac_clear(struct sshmac *mac) in mac_clear()
|
/freebsd/sys/sys/ |
H A D | mac.h | 73 struct mac { struct 78 typedef struct mac *mac_t; argument
|