Lines Matching refs:ifr

101 	struct ifreq *ifr = (struct ifreq *)dhd;  in __dhd_driver_io()  local
104 dhd_nli.ifidx = if_nametoindex(ifr->ifr_name); in __dhd_driver_io()
106 fprintf(stderr, "invalid device %s\n", ifr->ifr_name); in __dhd_driver_io()
120 struct ifreq *ifr = (struct ifreq *)dhd; in __dhd_driver_io() local
125 ifr->ifr_data = (caddr_t)ioc; in __dhd_driver_io()
131 ret = ioctl(s, SIOCDEVPRIVATE, ifr); in __dhd_driver_io()
195 struct ifreq ifr; in dhd_get_dev_type() local
207 ifr.ifr_data = (caddr_t)&info; in dhd_get_dev_type()
208 strncpy(ifr.ifr_name, name, IFNAMSIZ); in dhd_get_dev_type()
209 if ((ret = ioctl(s, SIOCETHTOOL, &ifr)) < 0) { in dhd_get_dev_type()
307 dhd_find(struct ifreq *ifr, char *type) in dhd_find() argument
315 ifr->ifr_name[0] = '\0'; in dhd_find()
328 strncpy(ifr->ifr_name, name, IFNAMSIZ); in dhd_find()
332 if (!wl_check((void*)ifr)) in dhd_find()
335 ifr->ifr_name[0] = '\0'; in dhd_find()
428 struct ifreq *ifr = (struct ifreq *)dev_handle; in wl_validatedev() local
430 if (!ifr->ifr_name || wl_check((void *)ifr)) { in wl_validatedev()
443 struct ifreq ifr; in main() local
455 memset(&ifr, 0, sizeof(ifr)); in main()
460 strncpy(ifr.ifr_name, ifname, IFNAMSIZ); in main()
506 if (!ifr.ifr_name[0]) in main()
508 dhd_find(&ifr, "wl"); in main()
511 if (!ifr.ifr_name[0] || wl_check((void*)&ifr)) { in main()
535 err = process_args(&ifr, argv); in main()
541 err = process_args(&ifr, argv); in main()
544 err = process_args((struct ifreq*)&ifr, argv); in main()
559 process_args(struct ifreq* ifr, char **argv) in process_args() argument
573 err = rwl_shell_cmd_proc((void*)ifr, argv, SHELL_CMD); in process_args()
586 strncpy(ifr->ifr_name, ifname, IFNAMSIZ); in process_args()
597 if (!ifr->ifr_name[0]) in process_args()
598 dhd_find(ifr, "dhd"); in process_args()
600 if (!ifr->ifr_name[0]) { in process_args()
606 if ((ret = dhd_check((void *)ifr)) != 0) { in process_args()
621 err = (*cmd->func)((void *) ifr, cmd, argv); in process_args()
639 dhd_printlasterror((void *) ifr); in process_args()