Lines Matching refs:ifr
93 struct ifreq *ifr = (struct ifreq *)dhd; in dhd_ioctl() local
111 ifr->ifr_data = (caddr_t) &ioc; in dhd_ioctl()
113 if ((ret = ioctl(s, SIOCDEVPRIVATE, ifr)) < 0) { in dhd_ioctl()
142 struct ifreq ifr; in dhd_get_dev_type() local
154 ifr.ifr_data = (caddr_t)&info; in dhd_get_dev_type()
155 strncpy(ifr.ifr_name, name, IFNAMSIZ); in dhd_get_dev_type()
156 if ((ret = ioctl(s, SIOCETHTOOL, &ifr)) < 0) { in dhd_get_dev_type()
255 dhd_find(struct ifreq *ifr, char *type) in dhd_find() argument
263 ifr->ifr_name[0] = '\0'; in dhd_find()
276 strncpy(ifr->ifr_name, name, IFNAMSIZ); in dhd_find()
280 if (!wl_check((void*)ifr)) in dhd_find()
283 ifr->ifr_name[0] = '\0'; in dhd_find()
343 struct ifreq ifr; in main() local
351 memset(&ifr, 0, sizeof(ifr)); in main()
356 strncpy(ifr.ifr_name, ifname, IFNAMSIZ); in main()
359 err = process_args(&ifr, argv); in main()
369 process_args(struct ifreq* ifr, char **argv) in process_args() argument
381 strncpy(ifr->ifr_name, ifname, IFNAMSIZ); in process_args()
389 if (!ifr->ifr_name[0]) in process_args()
390 dhd_find(ifr, "dhd"); in process_args()
392 if (!ifr->ifr_name[0] || dhd_check((void *)ifr)) { in process_args()
407 err = (*cmd->func)((void *) ifr, cmd, argv); in process_args()
425 dhd_printlasterror((void *) ifr); in process_args()