Lines Matching defs:drvr

101 struct brcmf_fws_info *drvr_to_fws(struct brcmf_pub *drvr)
103 struct brcmf_bcdc *bcdc = drvr->proto->pd;
109 brcmf_proto_bcdc_msg(struct brcmf_pub *drvr, int ifidx, uint cmd, void *buf,
112 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd;
137 return brcmf_bus_txctl(drvr->bus_if, (unsigned char *)&bcdc->msg, len);
140 static int brcmf_proto_bcdc_cmplt(struct brcmf_pub *drvr, u32 id, u32 len)
143 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd;
148 ret = brcmf_bus_rxctl(drvr->bus_if, (unsigned char *)&bcdc->msg,
158 brcmf_proto_bcdc_query_dcmd(struct brcmf_pub *drvr, int ifidx, uint cmd,
161 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd;
170 ret = brcmf_proto_bcdc_msg(drvr, ifidx, cmd, buf, len, false);
172 bphy_err(drvr, "brcmf_proto_bcdc_msg failed w/status %d\n",
179 ret = brcmf_proto_bcdc_cmplt(drvr, bcdc->reqid, len);
189 bphy_err(drvr, "%s: unexpected request id %d (expected %d)\n",
190 brcmf_ifname(brcmf_get_ifp(drvr, ifidx)), id,
216 brcmf_proto_bcdc_set_dcmd(struct brcmf_pub *drvr, int ifidx, uint cmd,
219 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd;
227 ret = brcmf_proto_bcdc_msg(drvr, ifidx, cmd, buf, len, true);
231 ret = brcmf_proto_bcdc_cmplt(drvr, bcdc->reqid, len);
239 bphy_err(drvr, "%s: unexpected request id %d (expected %d)\n",
240 brcmf_ifname(brcmf_get_ifp(drvr, ifidx)), id,
257 brcmf_proto_bcdc_hdrpush(struct brcmf_pub *drvr, int ifidx, u8 offset,
281 brcmf_proto_bcdc_hdrpull(struct brcmf_pub *drvr, bool do_fws,
299 tmp_if = brcmf_get_ifp(drvr, BCDC_GET_IF_IDX(h));
306 bphy_err(drvr, "%s: non-BCDC packet received, flags 0x%x\n",
333 static int brcmf_proto_bcdc_tx_queue_data(struct brcmf_pub *drvr, int ifidx,
336 struct brcmf_if *ifp = brcmf_get_ifp(drvr, ifidx);
337 struct brcmf_bcdc *bcdc = drvr->proto->pd;
340 return brcmf_proto_txdata(drvr, ifidx, 0, skb);
346 brcmf_proto_bcdc_txdata(struct brcmf_pub *drvr, int ifidx, u8 offset,
349 brcmf_proto_bcdc_hdrpush(drvr, ifidx, offset, pktbuf);
350 return brcmf_bus_txdata(drvr->bus_if, pktbuf);
356 struct brcmf_pub *drvr = bus_if->drvr;
360 brcmf_fws_bus_blocked(drvr, state);
368 struct brcmf_bcdc *bcdc = bus_if->drvr->proto->pd;
375 if (brcmf_proto_bcdc_hdrpull(bus_if->drvr, false, txp, &ifp))
383 brcmf_proto_bcdc_configure_addr_mode(struct brcmf_pub *drvr, int ifidx,
389 brcmf_proto_bcdc_delete_peer(struct brcmf_pub *drvr, int ifidx,
395 brcmf_proto_bcdc_add_tdls_peer(struct brcmf_pub *drvr, int ifidx,
425 brcmf_proto_bcdc_init_done(struct brcmf_pub *drvr)
427 struct brcmf_bcdc *bcdc = drvr->proto->pd;
430 fws = brcmf_fws_attach(drvr);
438 static void brcmf_proto_bcdc_debugfs_create(struct brcmf_pub *drvr)
440 brcmf_fws_debugfs_create(drvr);
443 int brcmf_proto_bcdc_attach(struct brcmf_pub *drvr)
453 bphy_err(drvr, "struct brcmf_proto_bcdc is not correctly defined\n");
457 drvr->proto->hdrpull = brcmf_proto_bcdc_hdrpull;
458 drvr->proto->query_dcmd = brcmf_proto_bcdc_query_dcmd;
459 drvr->proto->set_dcmd = brcmf_proto_bcdc_set_dcmd;
460 drvr->proto->tx_queue_data = brcmf_proto_bcdc_tx_queue_data;
461 drvr->proto->txdata = brcmf_proto_bcdc_txdata;
462 drvr->proto->configure_addr_mode = brcmf_proto_bcdc_configure_addr_mode;
463 drvr->proto->delete_peer = brcmf_proto_bcdc_delete_peer;
464 drvr->proto->add_tdls_peer = brcmf_proto_bcdc_add_tdls_peer;
465 drvr->proto->rxreorder = brcmf_proto_bcdc_rxreorder;
466 drvr->proto->add_if = brcmf_proto_bcdc_add_if;
467 drvr->proto->del_if = brcmf_proto_bcdc_del_if;
468 drvr->proto->reset_if = brcmf_proto_bcdc_reset_if;
469 drvr->proto->init_done = brcmf_proto_bcdc_init_done;
470 drvr->proto->debugfs_create = brcmf_proto_bcdc_debugfs_create;
471 drvr->proto->pd = bcdc;
473 drvr->hdrlen += BCDC_HEADER_LEN + BRCMF_PROT_FW_SIGNAL_MAX_TXBYTES;
474 drvr->bus_if->maxctl = BRCMF_DCMD_MAXLEN +
483 void brcmf_proto_bcdc_detach(struct brcmf_pub *drvr)
485 struct brcmf_bcdc *bcdc = drvr->proto->pd;
487 drvr->proto->pd = NULL;