Lines Matching refs:proto
22 struct brcmf_proto *proto; in brcmf_proto_attach() local
26 proto = kzalloc(sizeof(*proto), GFP_ATOMIC); in brcmf_proto_attach()
27 if (!proto) in brcmf_proto_attach()
30 drvr->proto = proto; in brcmf_proto_attach()
43 if (!proto->tx_queue_data || (proto->hdrpull == NULL) || in brcmf_proto_attach()
44 (proto->query_dcmd == NULL) || (proto->set_dcmd == NULL) || in brcmf_proto_attach()
45 (proto->configure_addr_mode == NULL) || in brcmf_proto_attach()
46 (proto->delete_peer == NULL) || (proto->add_tdls_peer == NULL) || in brcmf_proto_attach()
47 (proto->debugfs_create == NULL)) { in brcmf_proto_attach()
54 kfree(proto); in brcmf_proto_attach()
55 drvr->proto = NULL; in brcmf_proto_attach()
63 if (drvr->proto) { in brcmf_proto_detach()
68 kfree(drvr->proto); in brcmf_proto_detach()
69 drvr->proto = NULL; in brcmf_proto_detach()