Lines Matching defs:zdreq
96 struct zdap_ioctl *zdreq = NULL;
102 * zdreq = (struct zdap_ioctl *)req->ifr_data;
103 * printf( "reg = %4x, value = %4x\n", zdreq->addr, zdreq->value);
112 struct zdap_ioctl *zdreq = NULL;
119 * zdreq = (struct zdap_ioctl *)req->ifr_data;
120 * printf("dump mem from %x, length = %x\n", zdreq->addr, zdreq->value);
122 * for (i=0; i<zdreq->value; i++) {
123 * printf("%02x", zdreq->data[i]);
141 struct zdap_ioctl zdreq;
178 zdreq.addr = 0;
179 zdreq.value = 0;
194 zdreq.addr = addr;
195 zdreq.value = value;
198 zdreq.cmd = ZM_IOCTL_REG_READ;
200 zdreq.cmd = ZM_IOCTL_MEM_DUMP;
202 zdreq.cmd = ZM_IOCTL_REG_WRITE;
204 zdreq.cmd = ZM_IOCTL_REG_DUMP;
206 zdreq.cmd = ZM_IOCTL_TXD_DUMP;
208 zdreq.cmd = ZM_IOCTL_RXD_DUMP;
210 zdreq.cmd = ZM_IOCTL_MEM_READ;
212 zdreq.cmd = ZM_IOCTL_MEM_WRITE;
214 zdreq.cmd = ZM_IOCTL_DMA_TEST;
216 zdreq.cmd = ZM_IOCTL_REG_TEST;
218 zdreq.cmd = ZM_IOCTL_TEST;
221 zdreq.addr = addr;
222 zdreq.cmd = ZM_IOCTL_TALLY;
225 zdreq.addr = addr;
226 zdreq.cmd = ZM_IOCTL_RTS;
228 zdreq.cmd = ZM_IOCTL_MIX_MODE;
231 zdreq.addr = addr;
232 zdreq.cmd = ZM_IOCTL_FRAG;
234 zdreq.cmd = ZM_IOCTL_SCAN;
236 zdreq.cmd = ZM_IOCTL_KEY;
275 zdreq.addr = keyLen/2;
277 for (i = 0; i < zdreq.addr; i++)
278 zdreq.data[i] = temp[i];
289 zdreq.addr = addr;
290 zdreq.cmd = ZM_IOCTL_RATE;
304 zdreq.addr = addr;
305 zdreq.cmd = ZM_IOCTL_ENCRYPTION_MODE;
307 zdreq.cmd = ZM_IOCTL_GET_TXCNT;
316 zdreq.addr = addr;
317 zdreq.cmd = ZM_IOCTL_GET_DEAGG_CNT;
326 zdreq.addr = addr;
327 zdreq.cmd = ZM_IOCTL_DURATION_MODE;
341 zdreq.data[i] = temp[i];
343 zdreq.addr = addr;
344 zdreq.cmd = ZM_IOCTL_SET_AES_KEY;
348 zdreq.addr = addr;
349 zdreq.cmd = ZM_IOCTL_SET_AES_MODE;
353 zdreq.addr = addr;
354 zdreq.cmd = ZM_IOCTL_SET_PIBSS_MODE;
360 req.ifr_data = (char *)&zdreq;