Lines Matching refs:prot
90 dhd_prot_t *prot = dhd->prot; in dhdcdc_msg() local
91 int len = ltoh32(prot->msg.len) + sizeof(cdc_ioctl_t); in dhdcdc_msg()
105 err = dhd_bus_txctl(dhd->bus, (uchar*)&prot->msg, len); in dhdcdc_msg()
116 dhd_prot_t *prot = dhd->prot; in dhdcdc_cmplt() local
121 ret = dhd_bus_rxctl(dhd->bus, (uchar*)&prot->msg, cdc_len); in dhdcdc_cmplt()
124 } while (CDC_IOC_ID(ltoh32(prot->msg.flags)) != id); in dhdcdc_cmplt()
138 dhd_prot_t *prot = dhd->prot; in dhdcdc_query_ioctl() local
139 cdc_ioctl_t *msg = &prot->msg; in dhdcdc_query_ioctl()
175 msg->flags = (++prot->reqid << CDCF_IOC_ID_SHIFT); in dhdcdc_query_ioctl()
183 memcpy(prot->buf, buf, len); in dhdcdc_query_ioctl()
193 if ((ret = dhdcdc_cmplt(dhd, prot->reqid, len)) < 0) in dhdcdc_query_ioctl()
199 if ((id < prot->reqid) && (++retries < RETRIES)) in dhdcdc_query_ioctl()
201 if (id != prot->reqid) { in dhdcdc_query_ioctl()
203 dhd_ifname(dhd, ifidx), __FUNCTION__, id, prot->reqid)); in dhdcdc_query_ioctl()
213 memcpy(buf, (void*) prot->buf, len); in dhdcdc_query_ioctl()
236 dhd_prot_t *prot = dhd->prot; in dhdcdc_set_ioctl() local
237 cdc_ioctl_t *msg = &prot->msg; in dhdcdc_set_ioctl()
288 msg->flags = (++prot->reqid << CDCF_IOC_ID_SHIFT); in dhdcdc_set_ioctl()
296 memcpy(prot->buf, buf, len); in dhdcdc_set_ioctl()
303 if ((ret = dhdcdc_cmplt(dhd, prot->reqid, len)) < 0) in dhdcdc_set_ioctl()
309 if (id != prot->reqid) { in dhdcdc_set_ioctl()
311 dhd_ifname(dhd, ifidx), __FUNCTION__, id, prot->reqid)); in dhdcdc_set_ioctl()
319 memcpy(buf, (void*) prot->buf, len); in dhdcdc_set_ioctl()
338 dhd_prot_t *prot = dhd->prot; in dhd_prot_ioctl() local
356 if (prot->pending == TRUE) { in dhd_prot_ioctl()
358 ioc->cmd, (unsigned long)ioc->cmd, prot->lastcmd, in dhd_prot_ioctl()
359 (unsigned long)prot->lastcmd)); in dhd_prot_ioctl()
366 prot->pending = TRUE; in dhd_prot_ioctl()
367 prot->lastcmd = ioc->cmd; in dhd_prot_ioctl()
388 cdc_ioctl_t *msg = &prot->msg; in dhd_prot_ioctl()
402 prot->pending = FALSE; in dhd_prot_ioctl()
419 if (!dhdp || !dhdp->prot) { in dhd_prot_dump()
423 bcm_bprintf(strbuf, "Protocol CDC: reqid %d\n", dhdp->prot->reqid); in dhd_prot_dump()
581 dhd->prot = cdc; in dhd_prot_attach()
601 DHD_OS_PREFREE(dhd, dhd->prot, sizeof(dhd_prot_t)); in dhd_prot_detach()
602 dhd->prot = NULL; in dhd_prot_detach()