Searched refs:mac (Results 26 - 50 of 110) sorted by relevance

12345

/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar5212/
H A Dar5212_keycache.c102 * Sets the mac part of the specified key cache entry (and any
105 * Since mac[0] is shifted off and not presented to the hardware,
112 ar5212SetKeyCacheEntryMac(struct ath_hal *ah, uint16_t entry, const uint8_t *mac) argument
126 if (mac != AH_NULL) {
134 if (mac[0] & 0x01)
137 macHi = (mac[5] << 8) | mac[4];
138 macLo = (mac[3] << 24)| (mac[2] << 16)
139 | (mac[
156 ar5212SetKeyCacheEntry(struct ath_hal *ah, uint16_t entry, const HAL_KEYVAL *k, const uint8_t *mac, int xorKey) argument
[all...]
/haiku/src/add-ons/kernel/drivers/network/ether/intel22x/dev/igc/
H A Digc_mac.c22 struct igc_mac_info *mac = &hw->mac; local
26 mac->ops.init_params = igc_null_ops_generic;
27 mac->ops.config_collision_dist = igc_config_collision_dist_generic;
28 mac->ops.rar_set = igc_rar_set_generic;
181 hw->mac.ops.rar_set(hw, hw->mac.addr, 0);
186 hw->mac.ops.rar_set(hw, mac_addr, i);
251 hw->mac.ops.rar_set(hw, alt_mac_addr, 0);
311 hash_mask = (hw->mac
463 struct igc_mac_info *mac = &hw->mac; local
709 struct igc_mac_info *mac = &hw->mac; local
[all...]
H A Digc_i225.c86 struct igc_mac_info *mac = &hw->mac; local
97 mac->mta_reg_count = 128;
99 mac->rar_entry_count = IGC_RAR_ENTRIES_BASE;
102 mac->ops.reset_hw = igc_reset_hw_i225;
104 mac->ops.init_hw = igc_init_hw_i225;
106 mac->ops.setup_link = igc_setup_link_generic;
108 mac->ops.check_for_link = igc_check_for_link_i225;
110 mac->ops.get_link_up_info = igc_get_speed_and_duplex_copper_generic;
112 mac
992 struct igc_mac_info *mac = &hw->mac; local
[all...]
H A Digc_phy.c522 hw->mac.get_link_status = true;
543 if (hw->mac.autoneg) {
572 hw->mac.ops.config_collision_dist(hw);
595 struct igc_mac_info *mac = &hw->mac; local
603 /* Force speed/duplex on the mac */
615 if (mac->forced_speed_duplex & IGC_ALL_HALF_DUPLEX) {
626 if (mac->forced_speed_duplex & IGC_ALL_100_SPEED) {
637 hw->mac.ops.config_collision_dist(hw);
H A Digc_nvm.c626 hw->mac.perm_addr[i] = (u8)(rar_low >> (i*8));
629 hw->mac.perm_addr[i+4] = (u8)(rar_high >> (i*8));
632 hw->mac.addr[i] = hw->mac.perm_addr[i];
/haiku/src/tests/kits/net/
H A Dlink_echo.cpp32 parse_mac_address(const char* string, uint8* mac) argument
34 if (sscanf(string, "%02hhx:%02hhx:%02hhx:%02hhx:%02hhx:%02hhx", &mac[0],
35 &mac[1], &mac[2], &mac[3], &mac[4], &mac[5]) < 6) {
118 fprintf(stderr, "usage: %s <device> client <server-mac-address>\n"
135 fprintf(stderr, "usage: %s client <server-mac-address>\n",
/haiku/src/add-ons/kernel/drivers/network/ether/ipro1000/dev/e1000/
H A De1000_80003es2lan.c197 struct e1000_mac_info *mac = &hw->mac; local
205 mac->ops.check_for_link = e1000_check_for_serdes_link_generic;
206 mac->ops.setup_physical_interface =
211 mac->ops.check_for_link = e1000_check_for_copper_link_generic;
212 mac->ops.setup_physical_interface =
218 mac->mta_reg_count = 128;
220 mac->rar_entry_count = E1000_RAR_ENTRIES;
222 mac->asf_firmware_present = true;
224 mac
814 struct e1000_mac_info *mac = &hw->mac; local
[all...]
H A De1000_82575.c135 switch (hw->mac.type) {
204 switch (hw->mac.type) {
298 hw->mac.ops.check_for_link =
326 struct e1000_mac_info *mac = &hw->mac; local
337 mac->mta_reg_count = 128;
339 mac->uta_reg_count = (hw->mac.type == e1000_82575) ? 0 : 128;
341 mac->rar_entry_count = E1000_RAR_ENTRIES_82575;
342 if (mac
1203 struct e1000_mac_info *mac = &hw->mac; local
1365 struct e1000_mac_info *mac = &hw->mac; local
[all...]
H A De1000_ich8lan.c236 if (hw->mac.type < e1000_pch_lpt) {
247 if (hw->mac.type >= e1000_pch_lpt) {
296 if (hw->mac.type < e1000_pch_lpt) {
345 switch (hw->mac.type) {
375 if ((hw->mac.type == e1000_pchlan) &&
387 if (hw->mac.type >= e1000_pch_lpt) {
439 if ((hw->mac.type == e1000_pch2lan) &&
489 switch (hw->mac.type) {
652 if (hw->mac.type >= e1000_pch_spt) {
709 if (hw->mac
732 struct e1000_mac_info *mac = &hw->mac; local
1560 struct e1000_mac_info *mac = &hw->mac; local
2758 e1000_calc_rx_da_crc(u8 mac[]) argument
4876 struct e1000_mac_info *mac = &hw->mac; local
5108 struct e1000_mac_info *mac = &hw->mac; local
[all...]
H A Dif_em.c747 switch (sc->hw.mac.type) {
817 /* Determine hardware and mac info */
855 if (hw->mac.type >= igb_mac_min) {
867 if (hw->mac.type != e1000_82575)
875 } else if (hw->mac.type >= em_mac_min) {
907 if (hw->mac.type == e1000_82574) {
921 if (hw->mac.type < e1000_82543)
944 if ((hw->mac.type == e1000_ich8lan) ||
945 (hw->mac.type == e1000_ich9lan) ||
946 (hw->mac
[all...]
H A Dif_em.h279 #define IGB_RX_PTHRESH ((hw->mac.type == e1000_i354) ? 12 : \
280 ((hw->mac.type <= e1000_82576) ? 16 : 8))
282 #define IGB_RX_WTHRESH ((hw->mac.type == e1000_82576 && \
285 #define IGB_TX_PTHRESH ((hw->mac.type == e1000_i354) ? 20 : 8)
287 #define IGB_TX_WTHRESH ((hw->mac.type != e1000_82575 && \
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/
H A Dif_ath_keycache.c88 const HAL_KEYVAL *hk, const u_int8_t mac[IEEE80211_ADDR_LEN])
103 printf(" mac %s", ether_sprintf(mac));
125 HAL_KEYVAL *hk, const u_int8_t mac[IEEE80211_ADDR_LEN])
145 KEYPRINTF(sc, k->wk_keyix+32, hk, mac);
147 return ath_hal_keyset(ah, k->wk_keyix+32, hk, mac);
156 KEYPRINTF(sc, k->wk_keyix, hk, mac);
157 return ath_hal_keyset(ah, k->wk_keyix, hk, mac);
168 KEYPRINTF(sc, k->wk_keyix, hk, mac);
169 return ath_hal_keyset(ah, k->wk_keyix, hk, mac);
87 ath_keyprint(struct ath_softc *sc, const char *tag, u_int ix, const HAL_KEYVAL *hk, const u_int8_t mac[IEEE80211_ADDR_LEN]) argument
124 ath_keyset_tkip(struct ath_softc *sc, const struct ieee80211_key *k, HAL_KEYVAL *hk, const u_int8_t mac[IEEE80211_ADDR_LEN]) argument
201 const u_int8_t *mac; local
[all...]
H A Dif_ath_debug.h103 #define KEYPRINTF(sc, ix, hk, mac) do { \
105 ath_keyprint(sc, __func__, ix, hk, mac); \
121 #define KEYPRINTF(sc, k, ix, mac) do { \
H A Dah_osdep.c84 extern const char* ath_hal_ether_sprintf(const u_int8_t *mac);
137 ath_hal_ether_sprintf(const u_int8_t *mac) argument
139 return ether_sprintf(mac);
/haiku/src/add-ons/kernel/drivers/network/wlan/broadcom43xx/dev/bwi/
H A Dbwiphy.h68 #define PHY_WRITE(mac, ctrl, val) bwi_phy_write((mac), (ctrl), (val))
69 #define PHY_READ(mac, ctrl) bwi_phy_read((mac), (ctrl))
71 #define PHY_SETBITS(mac, ctrl, bits) \
72 PHY_WRITE((mac), (ctrl), PHY_READ((mac), (ctrl)) | (bits))
73 #define PHY_CLRBITS(mac, ctrl, bits) \
74 PHY_WRITE((mac), (ctrl), PHY_READ((mac), (ctr
[all...]
H A Dif_bwi.c360 struct bwi_mac *mac; local
423 mac = &sc->sc_mac[i];
424 error = bwi_regwin_switch(sc, &mac->mac_regwin, &old);
428 error = bwi_mac_lateattach(mac);
441 mac = &sc->sc_mac[0];
442 phy = &mac->mac_phy;
450 error = bwi_mac_fw_alloc(mac);
587 const uint8_t mac[IEEE80211_ADDR_LEN])
610 ieee80211_media_status, mac);
889 KASSERT(sc->sc_nmac > 0, ("no mac'
584 bwi_vap_create(struct ieee80211com *ic, const char name[IFNAMSIZ], int unit, enum ieee80211_opmode opmode, int flags, const uint8_t bssid[IEEE80211_ADDR_LEN], const uint8_t mac[IEEE80211_ADDR_LEN]) argument
906 bwi_bus_init(struct bwi_softc *sc, struct bwi_mac *mac) argument
1212 struct bwi_mac *mac; local
1294 struct bwi_mac *mac; local
1460 struct bwi_mac *mac; local
1509 struct bwi_mac *mac; local
1692 struct bwi_mac *mac; local
1728 struct bwi_mac *mac; local
1757 struct bwi_mac *mac; local
2919 struct bwi_mac *mac; local
3110 struct bwi_mac *mac; local
3668 struct bwi_mac *mac; local
3700 struct bwi_mac *mac; local
3719 struct bwi_mac *mac; local
3740 struct bwi_mac *mac; local
3752 struct bwi_mac *mac; local
[all...]
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/contrib/ath_hal/ar9300/
H A Dar9300_keycache.c135 * Sets the mac part of the specified key cache entry (and any
142 const u_int8_t *mac)
156 if (mac != AH_NULL) {
165 if (mac[0] & 0x01) {
169 mac_hi = (mac[5] << 8) | mac[4];
170 mac_lo = (mac[3] << 24) | (mac[2] << 16)
171 | (mac[1] << 8) | mac[
139 ar9300_set_key_cache_entry_mac( struct ath_hal *ah, u_int16_t entry, const u_int8_t *mac) argument
189 ar9300_set_key_cache_entry(struct ath_hal *ah, u_int16_t entry, const HAL_KEYVAL *k, const u_int8_t *mac, int xor_key) argument
[all...]
H A Dar9300_stub_funcs.h34 uint16_t entry, const uint8_t *mac);
36 const HAL_KEYVAL *k, const uint8_t *mac, int xorKey);
38 extern void ar9300_Stub_GetMacAddress(struct ath_hal *ah, uint8_t *mac);
40 extern void ar9300_Stub_GetBssIdMask(struct ath_hal *ah, uint8_t *mac);
/haiku/src/libs/compat/freebsd_wlan/net80211/
H A Dieee80211_node.h440 #define ieee80211_find_node_locked(nt, mac) \
441 ieee80211_find_node_locked_debug(nt, mac, __func__, __LINE__)
442 #define ieee80211_find_node(nt, mac) \
443 ieee80211_find_node_debug(nt, mac, __func__, __LINE__)
444 #define ieee80211_find_vap_node_locked(nt, vap, mac) \
445 ieee80211_find_vap_node_locked_debug(nt, vap, mac, __func__, __LINE__)
446 #define ieee80211_find_vap_node(nt, vap, mac) \
447 ieee80211_find_vap_node_debug(nt, vap, mac, __func__, __LINE__)
452 #define ieee80211_find_txnode(vap, mac) \
453 ieee80211_find_txnode_debug(vap, mac, __func_
[all...]
H A Dieee80211_scan.c566 const uint8_t mac[IEEE80211_ADDR_LEN],
571 ether_sprintf(mac), isnew ? "new " : "",
578 ether_sprintf(mac), sp->capinfo, sp->bintval, sp->erp);
619 ieee80211_scan_assoc_success(struct ieee80211vap *vap, const uint8_t mac[]) argument
625 mac, "%s", __func__);
626 ss->ss_ops->scan_assoc_success(ss, mac);
635 const uint8_t mac[], int reason)
640 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_SCAN, mac,
642 ss->ss_ops->scan_assoc_fail(ss, mac, reason);
565 ieee80211_scan_dump_probe_beacon(uint8_t subtype, int isnew, const uint8_t mac[IEEE80211_ADDR_LEN], const struct ieee80211_scanparams *sp, int rssi) argument
634 ieee80211_scan_assoc_fail(struct ieee80211vap *vap, const uint8_t mac[], int reason) argument
H A Dieee80211_scan.h193 const uint8_t mac[IEEE80211_ADDR_LEN]);
199 const uint8_t mac[IEEE80211_ADDR_LEN], int reason);
347 const uint8_t mac[IEEE80211_ADDR_LEN],
H A Dieee80211_input.c431 const uint8_t mac[IEEE80211_ADDR_LEN], int subtype, int arg)
448 ni = ieee80211_tmp_node(vap, mac);
879 uint8_t mac[IEEE80211_ADDR_LEN], uint8_t *ssid)
882 ether_sprintf(mac), tag);
935 const uint8_t mac[IEEE80211_ADDR_LEN],
944 if_printf(vap->iv_ifp, "[%s] %s\n", ether_sprintf(mac), buf);
985 const uint8_t mac[IEEE80211_ADDR_LEN],
990 if_printf(vap->iv_ifp, "[%s] discard ", ether_sprintf(mac));
430 ieee80211_send_error(struct ieee80211_node *ni, const uint8_t mac[IEEE80211_ADDR_LEN], int subtype, int arg) argument
878 ieee80211_ssid_mismatch(struct ieee80211vap *vap, const char *tag, uint8_t mac[IEEE80211_ADDR_LEN], uint8_t *ssid) argument
934 ieee80211_note_mac(const struct ieee80211vap *vap, const uint8_t mac[IEEE80211_ADDR_LEN], const char *fmt, ...) argument
984 ieee80211_discard_mac(const struct ieee80211vap *vap, const uint8_t mac[IEEE80211_ADDR_LEN], const char *type, const char *fmt, ...) argument
/haiku/src/servers/net/
H A DNetServer.cpp551 const char* addressString = message.GetString("mac", NULL);
844 const uint8* mac = link.LinkLevelAddress(); local
849 if (memcmp(mac, zeroMac, 6) == 0
850 || memcmp(mac, fullMac, 6) == 0) {
863 addressRaw.s6_addr[8] = mac[0] ^ 0x02;
864 addressRaw.s6_addr[9] = mac[1];
865 addressRaw.s6_addr[10] = mac[2];
868 addressRaw.s6_addr[13] = mac[3];
869 addressRaw.s6_addr[14] = mac[4];
870 addressRaw.s6_addr[15] = mac[
964 const char* mac = NULL; local
1020 const char* mac; local
[all...]
/haiku/src/add-ons/kernel/drivers/network/ether/virtio/
H A Dvirtio_net.h63 /* The config defining mac address (if VIRTIO_NET_F_MAC) */
64 uint8_t mac[ETHER_ADDR_LEN]; member in struct:virtio_net_config
/haiku/src/kits/network/libnetapi/
H A DNetworkDevice.cpp1001 uint8 mac[IEEE80211_ADDR_LEN];
1003 status_t status = get_80211(Name(), IEEE80211_IOC_BSSID, mac, length);
1007 if (mac[0] == 0 && mac[1] == 0 && mac[2] == 0 && mac[3] == 0 && mac[4] == 0
1008 && mac[5] == 0) {
1012 address.SetToLinkLevel(mac, IEEE80211_ADDR_LEN);

Completed in 268 milliseconds

12345