Lines Matching refs:prot

87 	dhd_prot_t *prot = dhd->prot;  in dhdcdc_msg()  local
88 int len = ltoh32(prot->msg.len) + sizeof(cdc_ioctl_t); in dhdcdc_msg()
102 err = dhd_bus_txctl(dhd->bus, (uchar*)&prot->msg, len); in dhdcdc_msg()
113 dhd_prot_t *prot = dhd->prot; in dhdcdc_cmplt() local
118 ret = dhd_bus_rxctl(dhd->bus, (uchar*)&prot->msg, cdc_len); in dhdcdc_cmplt()
121 } while (CDC_IOC_ID(ltoh32(prot->msg.flags)) != id); in dhdcdc_cmplt()
129 dhd_prot_t *prot = dhd->prot; in dhdcdc_query_ioctl() local
130 cdc_ioctl_t *msg = &prot->msg; in dhdcdc_query_ioctl()
174 msg->flags = (++prot->reqid << CDCF_IOC_ID_SHIFT); in dhdcdc_query_ioctl()
182 memcpy(prot->buf, buf, len); in dhdcdc_query_ioctl()
192 if ((ret = dhdcdc_cmplt(dhd, prot->reqid, len)) < 0) in dhdcdc_query_ioctl()
198 if ((id < prot->reqid) && (++retries < RETRIES)) in dhdcdc_query_ioctl()
200 if (id != prot->reqid) { in dhdcdc_query_ioctl()
202 dhd_ifname(dhd, ifidx), __FUNCTION__, id, prot->reqid)); in dhdcdc_query_ioctl()
212 memcpy(buf, (void*) prot->buf, len); in dhdcdc_query_ioctl()
234 dhd_prot_t *prot = dhd->prot; in dhdcdc_set_ioctl() local
235 cdc_ioctl_t *msg = &prot->msg; in dhdcdc_set_ioctl()
276 msg->flags = (++prot->reqid << CDCF_IOC_ID_SHIFT); in dhdcdc_set_ioctl()
284 memcpy(prot->buf, buf, len); in dhdcdc_set_ioctl()
298 if ((ret = dhdcdc_cmplt(dhd, prot->reqid, len)) < 0) in dhdcdc_set_ioctl()
304 if (id != prot->reqid) { in dhdcdc_set_ioctl()
306 dhd_ifname(dhd, ifidx), __FUNCTION__, id, prot->reqid)); in dhdcdc_set_ioctl()
332 dhd_prot_t *prot = dhd->prot; in dhd_prot_ioctl() local
349 if (prot->pending == TRUE) { in dhd_prot_ioctl()
351 ioc->cmd, (unsigned long)ioc->cmd, prot->lastcmd, in dhd_prot_ioctl()
352 (unsigned long)prot->lastcmd)); in dhd_prot_ioctl()
359 prot->pending = TRUE; in dhd_prot_ioctl()
360 prot->lastcmd = ioc->cmd; in dhd_prot_ioctl()
374 cdc_ioctl_t *msg = &prot->msg; in dhd_prot_ioctl()
388 prot->pending = FALSE; in dhd_prot_ioctl()
405 if (!dhdp || !dhdp->prot) { in dhd_prot_dump()
409 bcm_bprintf(strbuf, "Protocol CDC: reqid %d\n", dhdp->prot->reqid); in dhd_prot_dump()
544 dhd->prot = cdc; in dhd_prot_attach()
564 DHD_OS_PREFREE(dhd, dhd->prot, sizeof(dhd_prot_t)); in dhd_prot_detach()
565 dhd->prot = NULL; in dhd_prot_detach()