Lines Matching refs:drvr
20 int brcmf_proto_attach(struct brcmf_pub *drvr)
30 drvr->proto = proto;
32 if (drvr->bus_if->proto_type == BRCMF_PROTO_BCDC) {
33 if (brcmf_proto_bcdc_attach(drvr))
35 } else if (drvr->bus_if->proto_type == BRCMF_PROTO_MSGBUF) {
36 if (brcmf_proto_msgbuf_attach(drvr))
39 bphy_err(drvr, "Unsupported proto type %d\n",
40 drvr->bus_if->proto_type);
48 bphy_err(drvr, "Not all proto handlers have been installed\n");
55 drvr->proto = NULL;
59 void brcmf_proto_detach(struct brcmf_pub *drvr)
63 if (drvr->proto) {
64 if (drvr->bus_if->proto_type == BRCMF_PROTO_BCDC)
65 brcmf_proto_bcdc_detach(drvr);
66 else if (drvr->bus_if->proto_type == BRCMF_PROTO_MSGBUF)
67 brcmf_proto_msgbuf_detach(drvr);
68 kfree(drvr->proto);
69 drvr->proto = NULL;