/linux-4.19.296/drivers/media/common/b2c2/ |
D | flexcop-eeprom.c | 62 static char eeprom_set_mac_addr(struct adapter *adapter, char type, u8 *mac) 67 tmp[0] = mac[0]; 68 tmp[1] = mac[1]; 69 tmp[2] = mac[2]; 70 tmp[3] = mac[5]; 71 tmp[4] = mac[6]; 72 tmp[5] = mac[7]; 74 tmp[0] = mac[0]; 75 tmp[1] = mac[1]; 76 tmp[2] = mac[2]; [all …]
|
D | flexcop-hw-filter.c | 25 void flexcop_set_mac_filter(struct flexcop_device *fc, u8 mac[6]) in flexcop_set_mac_filter() 30 v418.mac_address_418.MAC1 = mac[0]; in flexcop_set_mac_filter() 31 v418.mac_address_418.MAC2 = mac[1]; in flexcop_set_mac_filter() 32 v418.mac_address_418.MAC3 = mac[2]; in flexcop_set_mac_filter() 33 v418.mac_address_418.MAC6 = mac[3]; in flexcop_set_mac_filter() 34 v41c.mac_address_41c.MAC7 = mac[4]; in flexcop_set_mac_filter() 35 v41c.mac_address_41c.MAC8 = mac[5]; in flexcop_set_mac_filter()
|
/linux-4.19.296/include/scsi/fc/ |
D | fc_fcoe.h | 98 static inline void fc_fcoe_set_mac(u8 *mac, u8 *did) in fc_fcoe_set_mac() argument 100 mac[0] = (u8) (FC_FCOE_OUI >> 16); in fc_fcoe_set_mac() 101 mac[1] = (u8) (FC_FCOE_OUI >> 8); in fc_fcoe_set_mac() 102 mac[2] = (u8) FC_FCOE_OUI; in fc_fcoe_set_mac() 103 mac[3] = did[0]; in fc_fcoe_set_mac() 104 mac[4] = did[1]; in fc_fcoe_set_mac() 105 mac[5] = did[2]; in fc_fcoe_set_mac()
|
/linux-4.19.296/fs/nls/ |
D | Makefile | 46 obj-$(CONFIG_NLS_MAC_CELTIC) += mac-celtic.o 47 obj-$(CONFIG_NLS_MAC_CENTEURO) += mac-centeuro.o 48 obj-$(CONFIG_NLS_MAC_CROATIAN) += mac-croatian.o 49 obj-$(CONFIG_NLS_MAC_CYRILLIC) += mac-cyrillic.o 50 obj-$(CONFIG_NLS_MAC_GAELIC) += mac-gaelic.o 51 obj-$(CONFIG_NLS_MAC_GREEK) += mac-greek.o 52 obj-$(CONFIG_NLS_MAC_ICELAND) += mac-iceland.o 53 obj-$(CONFIG_NLS_MAC_INUIT) += mac-inuit.o 54 obj-$(CONFIG_NLS_MAC_ROMANIAN) += mac-romanian.o 55 obj-$(CONFIG_NLS_MAC_ROMAN) += mac-roman.o [all …]
|
/linux-4.19.296/drivers/of/ |
D | of_net.c | 96 const void *mac; in of_get_nvmem_mac_address() local 104 mac = nvmem_cell_read(cell, &len); in of_get_nvmem_mac_address() 108 if (IS_ERR(mac)) in of_get_nvmem_mac_address() 109 return PTR_ERR(mac); in of_get_nvmem_mac_address() 111 if (len < ETH_ALEN || !is_valid_ether_addr(mac)) { in of_get_nvmem_mac_address() 114 ether_addr_copy(addr, mac); in of_get_nvmem_mac_address() 118 kfree(mac); in of_get_nvmem_mac_address()
|
/linux-4.19.296/include/linux/mlx4/ |
D | driver.h | 97 u64 mac = 0; in mlx4_mac_to_u64() local 101 mac <<= 8; in mlx4_mac_to_u64() 102 mac |= addr[i]; in mlx4_mac_to_u64() 104 return mac; in mlx4_mac_to_u64() 107 static inline void mlx4_u64_to_mac(u8 *addr, u64 mac) in mlx4_u64_to_mac() argument 112 addr[i - 1] = mac & 0xFF; in mlx4_u64_to_mac() 113 mac >>= 8; in mlx4_u64_to_mac()
|
/linux-4.19.296/crypto/ |
D | ccm.c | 27 struct crypto_ahash_spawn mac; member 31 struct crypto_ahash *mac; member 95 struct crypto_ahash *mac = ctx->mac; in crypto_ccm_setkey() local 107 crypto_ahash_clear_flags(mac, CRYPTO_TFM_REQ_MASK); in crypto_ccm_setkey() 108 crypto_ahash_set_flags(mac, crypto_aead_get_flags(aead) & in crypto_ccm_setkey() 110 err = crypto_ahash_setkey(mac, key, keylen); in crypto_ccm_setkey() 111 crypto_aead_set_flags(aead, crypto_ahash_get_flags(mac) & in crypto_ccm_setkey() 184 AHASH_REQUEST_ON_STACK(ahreq, ctx->mac); in crypto_ccm_auth() 209 ahash_request_set_tfm(ahreq, ctx->mac); in crypto_ccm_auth() 408 struct crypto_ahash *mac; in crypto_ccm_init_tfm() local [all …]
|
/linux-4.19.296/include/rdma/ |
D | ib_addr.h | 258 static inline void rdma_get_ll_mac(struct in6_addr *addr, u8 *mac) in rdma_get_ll_mac() argument 260 memcpy(mac, &addr->s6_addr[8], 3); in rdma_get_ll_mac() 261 memcpy(mac + 3, &addr->s6_addr[13], 3); in rdma_get_ll_mac() 262 mac[0] ^= 2; in rdma_get_ll_mac() 276 static inline void rdma_get_mcast_mac(struct in6_addr *addr, u8 *mac) in rdma_get_mcast_mac() argument 280 mac[0] = 0x33; in rdma_get_mcast_mac() 281 mac[1] = 0x33; in rdma_get_mcast_mac() 283 mac[i] = addr->s6_addr[i + 10]; in rdma_get_mcast_mac()
|
/linux-4.19.296/drivers/s390/net/ |
D | qeth_l2_main.c | 98 static int qeth_l2_send_setdelmac(struct qeth_card *card, __u8 *mac, in qeth_l2_send_setdelmac() argument 110 ether_addr_copy(cmd->data.setdelmac.mac, mac); in qeth_l2_send_setdelmac() 115 static int qeth_l2_send_setmac(struct qeth_card *card, __u8 *mac) in qeth_l2_send_setmac() argument 120 rc = qeth_l2_send_setdelmac(card, mac, IPA_CMD_SETVMAC); in qeth_l2_send_setmac() 124 mac, card->dev->name); in qeth_l2_send_setmac() 129 "MAC address %pM already exists\n", mac); in qeth_l2_send_setmac() 133 "MAC address %pM is not authorized\n", mac); in qeth_l2_send_setmac() 140 static int qeth_l2_write_mac(struct qeth_card *card, u8 *mac) in qeth_l2_write_mac() argument 142 enum qeth_ipa_cmds cmd = is_multicast_ether_addr(mac) ? in qeth_l2_write_mac() 147 rc = qeth_l2_send_setdelmac(card, mac, cmd); in qeth_l2_write_mac() [all …]
|
/linux-4.19.296/lib/ |
D | net_utils.c | 7 bool mac_pton(const char *s, u8 *mac) in mac_pton() argument 23 mac[i] = (hex_to_bin(s[i * 3]) << 4) | hex_to_bin(s[i * 3 + 1]); in mac_pton()
|
/linux-4.19.296/include/net/ |
D | llc.h | 31 unsigned char mac[IFHWADDRLEN]; member 83 return hash_32(jhash(laddr->mac, sizeof(laddr->mac), 0), in llc_sk_laddr_hashfn()
|
D | bonding.h | 665 const u8 *mac) in bond_slave_has_mac() argument 671 if (ether_addr_equal_64bits(mac, tmp->dev->dev_addr)) in bond_slave_has_mac() 678 static inline bool bond_slave_has_mac_rcu(struct bonding *bond, const u8 *mac) in bond_slave_has_mac_rcu() argument 684 if (ether_addr_equal_64bits(mac, tmp->dev->dev_addr)) in bond_slave_has_mac_rcu()
|
/linux-4.19.296/include/linux/qed/ |
D | qed_eth_if.h | 165 unsigned char mac[ETH_ALEN]; member 171 unsigned char mac[64][ETH_ALEN]; member 201 void (*force_mac) (void *dev, u8 *mac, bool forced); 312 bool(*check_mac) (struct qed_dev *cdev, u8 *mac); 365 int (*req_bulletin_update_mac)(struct qed_dev *cdev, u8 *mac);
|
D | qed_iscsi_if.h | 75 u8 mac[ETH_ALEN]; member 255 int (*change_mac)(struct qed_dev *cdev, u32 handle, const u8 *mac);
|
D | qed_iov_if.h | 42 int (*set_mac) (struct qed_dev *cdev, u8 *mac, int vfid);
|
/linux-4.19.296/include/uapi/linux/netfilter_bridge/ |
D | ebt_arpreply.h | 8 unsigned char mac[ETH_ALEN]; member
|
D | ebt_nat.h | 9 unsigned char mac[ETH_ALEN]; member
|
/linux-4.19.296/include/linux/ |
D | fec.h | 21 unsigned char mac[ETH_ALEN]; member
|
D | smsc911x.h | 35 unsigned char mac[ETH_ALEN]; member
|
D | if_link.h | 22 __u8 mac[32]; member
|
/linux-4.19.296/drivers/uwb/i1480/dfu/ |
D | Makefile | 6 mac.o \
|
/linux-4.19.296/drivers/media/usb/dvb-usb-v2/ |
D | az6007.c | 620 static int az6007_read_mac_addr(struct dvb_usb_adapter *adap, u8 mac[6]) in az6007_read_mac_addr() 627 memcpy(mac, st->data, 6); in az6007_read_mac_addr() 630 pr_debug("%s: mac is %pM\n", __func__, mac); in az6007_read_mac_addr() 857 u8 *mac; in az6007_identify_state() local 861 mac = kmalloc(6, GFP_ATOMIC); in az6007_identify_state() 862 if (!mac) in az6007_identify_state() 866 ret = __az6007_read(d->udev, AZ6007_READ_DATA, 6, 0, mac, 6); in az6007_identify_state() 872 kfree(mac); in az6007_identify_state()
|
/linux-4.19.296/drivers/media/dvb-core/ |
D | dvb_net.c | 1022 u8 *mac, u8 *mac_mask) argument 1041 (*secfilter)->filter_value[3]=mac[5]; 1042 (*secfilter)->filter_value[4]=mac[4]; 1043 (*secfilter)->filter_value[8]=mac[3]; 1044 (*secfilter)->filter_value[9]=mac[2]; 1045 (*secfilter)->filter_value[10]=mac[1]; 1046 (*secfilter)->filter_value[11]=mac[0]; 1056 netdev_dbg(dev, "filter mac=%pM mask=%pM\n", mac, mac_mask); 1066 unsigned char *mac = (unsigned char *) dev->dev_addr; local 1098 dvb_net_filter_sec_set(dev, &priv->secfilter, mac, mask_normal); [all …]
|
/linux-4.19.296/block/partitions/ |
D | Makefile | 13 obj-$(CONFIG_MAC_PARTITION) += mac.o
|
/linux-4.19.296/drivers/misc/ |
D | pch_phub.c | 622 u8 mac[8]; in show_pch_mac() local 630 pch_phub_read_gbe_mac_addr(chip, mac); in show_pch_mac() 633 return sprintf(buf, "%pM\n", mac); in show_pch_mac() 639 u8 mac[ETH_ALEN]; in store_pch_mac() local 644 if (!mac_pton(buf, mac)) in store_pch_mac() 651 ret = pch_phub_write_gbe_mac_addr(chip, mac); in store_pch_mac()
|