Home
last modified time | relevance | path

Searched refs:ethaddr (Results 1 – 9 of 9) sorted by relevance

/drivers/usb/gadget/
Du_ether.h74 int gether_setup(struct usb_gadget *g, u8 ethaddr[ETH_ALEN]);
77 int gether_setup_name(struct usb_gadget *g, u8 ethaddr[ETH_ALEN],
98 int geth_bind_config(struct usb_configuration *c, u8 ethaddr[ETH_ALEN]);
99 int ecm_bind_config(struct usb_configuration *c, u8 ethaddr[ETH_ALEN]);
100 int ncm_bind_config(struct usb_configuration *c, u8 ethaddr[ETH_ALEN]);
105 int rndis_bind_config(struct usb_configuration *c, u8 ethaddr[ETH_ALEN]);
106 int rndis_bind_config_vendor(struct usb_configuration *c, u8 ethaddr[ETH_ALEN],
112 rndis_bind_config(struct usb_configuration *c, u8 ethaddr[ETH_ALEN]) in rndis_bind_config()
118 rndis_bind_config_vendor(struct usb_configuration *c, u8 ethaddr[ETH_ALEN], in rndis_bind_config_vendor()
Df_subset.c54 char ethaddr[14]; member
407 int geth_bind_config(struct usb_configuration *c, u8 ethaddr[ETH_ALEN]) in geth_bind_config()
412 if (!ethaddr) in geth_bind_config()
439 snprintf(geth->ethaddr, sizeof geth->ethaddr, in geth_bind_config()
441 ethaddr[0], ethaddr[1], ethaddr[2], in geth_bind_config()
442 ethaddr[3], ethaddr[4], ethaddr[5]); in geth_bind_config()
443 geth_string_defs[1].s = geth->ethaddr; in geth_bind_config()
Dandroid.c613 u8 ethaddr[ETH_ALEN]; member
649 rndis->ethaddr[0], rndis->ethaddr[1], rndis->ethaddr[2], in rndis_function_bind_config()
650 rndis->ethaddr[3], rndis->ethaddr[4], rndis->ethaddr[5]); in rndis_function_bind_config()
652 ret = gether_setup_name(c->cdev->gadget, rndis->ethaddr, "rndis"); in rndis_function_bind_config()
670 return rndis_bind_config_vendor(c, rndis->ethaddr, rndis->vendorID, in rndis_function_bind_config()
735 rndis->ethaddr[0], rndis->ethaddr[1], rndis->ethaddr[2], in rndis_ethaddr_show()
736 rndis->ethaddr[3], rndis->ethaddr[4], rndis->ethaddr[5]); in rndis_ethaddr_show()
746 (int *)&rndis->ethaddr[0], (int *)&rndis->ethaddr[1], in rndis_ethaddr_store()
747 (int *)&rndis->ethaddr[2], (int *)&rndis->ethaddr[3], in rndis_ethaddr_store()
748 (int *)&rndis->ethaddr[4], (int *)&rndis->ethaddr[5]) == 6) in rndis_ethaddr_store()
[all …]
Df_ecm.c51 char ethaddr[14]; member
854 ecm_bind_config(struct usb_configuration *c, u8 ethaddr[ETH_ALEN]) in ecm_bind_config()
859 if (!can_support_ecm(c->cdev->gadget) || !ethaddr) in ecm_bind_config()
900 snprintf(ecm->ethaddr, sizeof ecm->ethaddr, in ecm_bind_config()
902 ethaddr[0], ethaddr[1], ethaddr[2], in ecm_bind_config()
903 ethaddr[3], ethaddr[4], ethaddr[5]); in ecm_bind_config()
904 ecm_string_defs[1].s = ecm->ethaddr; in ecm_bind_config()
Dg_ffs.c49 static int eth_bind_config(struct usb_configuration *c, u8 ethaddr[ETH_ALEN]);
128 int (*eth)(struct usb_configuration *c, u8 *ethaddr);
320 static int eth_bind_config(struct usb_configuration *c, u8 ethaddr[ETH_ALEN]) in eth_bind_config()
323 ? ecm_bind_config(c, ethaddr) in eth_bind_config()
324 : geth_bind_config(c, ethaddr); in eth_bind_config()
Df_rndis.c73 u8 ethaddr[ETH_ALEN]; member
771 rndis_set_host_mac(rndis->config, rndis->ethaddr); in rndis_bind()
856 rndis_bind_config(struct usb_configuration *c, u8 ethaddr[ETH_ALEN]) in rndis_bind_config()
858 return rndis_bind_config_vendor(c, ethaddr, 0, NULL); in rndis_bind_config()
862 rndis_bind_config_vendor(struct usb_configuration *c, u8 ethaddr[ETH_ALEN], in rndis_bind_config_vendor()
868 if (!can_support_rndis(c) || !ethaddr) in rndis_bind_config_vendor()
907 memcpy(rndis->ethaddr, ethaddr, ETH_ALEN); in rndis_bind_config_vendor()
Df_ncm.c52 char ethaddr[14]; member
1302 int __init ncm_bind_config(struct usb_configuration *c, u8 ethaddr[ETH_ALEN]) in ncm_bind_config()
1307 if (!can_support_ecm(c->cdev->gadget) || !ethaddr) in ncm_bind_config()
1349 snprintf(ncm->ethaddr, sizeof ncm->ethaddr, in ncm_bind_config()
1351 ethaddr[0], ethaddr[1], ethaddr[2], in ncm_bind_config()
1352 ethaddr[3], ethaddr[4], ethaddr[5]); in ncm_bind_config()
1353 ncm_string_defs[1].s = ncm->ethaddr; in ncm_bind_config()
Du_ether.c765 int gether_setup(struct usb_gadget *g, u8 ethaddr[ETH_ALEN]) in gether_setup()
767 return gether_setup_name(g, ethaddr, "usb"); in gether_setup()
784 int gether_setup_name(struct usb_gadget *g, u8 ethaddr[ETH_ALEN], in gether_setup_name()
818 if (ethaddr) in gether_setup_name()
819 memcpy(ethaddr, dev->host_mac, ETH_ALEN); in gether_setup_name()
/drivers/net/hamradio/
Dbpqether.c325 struct bpq_ethaddr __user *ethaddr = ifr->ifr_data; in bpq_ioctl() local
346 if (copy_from_user(bpq->dest_addr, ethaddr->destination, ETH_ALEN)) in bpq_ioctl()
348 if (copy_from_user(bpq->acpt_addr, ethaddr->accept, ETH_ALEN)) in bpq_ioctl()