Lines Matching refs:cmd

81 	cmd_t *cmd = NULL;  in dhd_find_cmd()  local
83 for (cmd = dhd_cmds; cmd->name && strcmp(cmd->name, name); cmd++); in dhd_find_cmd()
84 if (cmd->name == NULL) in dhd_find_cmd()
85 cmd = NULL; in dhd_find_cmd()
86 return cmd; in dhd_find_cmd()
145 dhd_ioctl(void *dhd, int cmd, void *buf, int len, bool set) in dhd_ioctl() argument
165 ioc.cmd = cmd; in dhd_ioctl()
172 if (ret < 0 && cmd != get_magic) in dhd_ioctl()
180 int wl_ioctl(void *wl, int cmd, void *buf, int len, bool set) in wl_ioctl() argument
182 return dhd_ioctl(wl, cmd, buf, len, set); /* Call actual wl_ioctl here: Shubhro */ in wl_ioctl()
204 info.cmd = ETHTOOL_GDRVINFO; in dhd_get_dev_type()
231 dhd_get(void *dhd, int cmd, void *buf, int len) in dhd_get() argument
233 return wl_get(dhd, cmd, buf, len); in dhd_get()
244 dhd_set(void *dhd, int cmd, void *buf, int len) in dhd_set() argument
248 switch (cmd) { in dhd_set()
266 return wl_set(dhd, cmd, buf, len); in dhd_set()
344 ioctl_queryinformation_fe(void *wl, int cmd, void* input_buf, int *input_len) in ioctl_queryinformation_fe() argument
347 return dhd_ioctl(wl, cmd, input_buf, *input_len, FALSE); in ioctl_queryinformation_fe()
351 return rwl_queryinformation_fe(wl, cmd, input_buf, in ioctl_queryinformation_fe()
363 ioctl_setinformation_fe(void *wl, int cmd, void* buf, int *len) in ioctl_setinformation_fe() argument
366 return dhd_ioctl(wl, cmd, buf, *len, TRUE); in ioctl_setinformation_fe()
370 return rwl_setinformation_fe(wl, cmd, buf, (unsigned long*)len, 0, RDHD_SET_IOCTL); in ioctl_setinformation_fe()
382 wl_get(void *wl, int cmd, void *buf, int len) in wl_get() argument
387 error = (int)ioctl_queryinformation_fe(wl, WL_OID_BASE + cmd, buf, &len); in wl_get()
389 error = (int)ioctl_queryinformation_fe(wl, cmd, buf, &len); in wl_get()
404 wl_set(void *wl, int cmd, void *buf, int len) in wl_set() argument
410 error = (int)ioctl_setinformation_fe(wl, WL_OID_BASE + cmd, buf, &len); in wl_set()
412 error = (int)ioctl_setinformation_fe(wl, cmd, buf, &len); in wl_set()
565 cmd_t *cmd = NULL; in process_args() local
614 cmd = dhd_find_cmd(*argv); in process_args()
616 if (!cmd) { in process_args()
617 cmd = &dhd_varcmd; in process_args()
621 err = (*cmd->func)((void *) ifr, cmd, argv); in process_args()
627 cmd = dhd_find_cmd(*argv); in process_args()
628 if (cmd) { in process_args()
629 dhd_cmd_usage(cmd); in process_args()
634 } else if (!cmd) in process_args()
637 dhd_cmd_usage(cmd); in process_args()