Lines Matching refs:argc
21 static int do_adtimg_addr(struct cmd_tbl *cmdtp, int flag, int argc, in do_adtimg_addr() argument
27 if (argc != 2) in do_adtimg_addr()
60 static int do_adtimg_dump(struct cmd_tbl *cmdtp, int flag, int argc, in do_adtimg_dump() argument
63 if (argc != 1) in do_adtimg_dump()
103 static int adtimg_getopt_index(int argc, char *const argv[], u32 *index, in adtimg_getopt_index() argument
111 if (argc > 3) { in adtimg_getopt_index()
120 if (argc > 1) in adtimg_getopt_index()
122 if (argc > 2) in adtimg_getopt_index()
128 static int adtimg_get_dt_by_index(int argc, char *const argv[]) in adtimg_get_dt_by_index() argument
135 ret = adtimg_getopt_index(argc, argv, &index, &avar, &svar); in adtimg_get_dt_by_index()
167 static int adtimg_get_dt(int argc, char *const argv[]) in adtimg_get_dt() argument
169 if (argc < 2) { in adtimg_get_dt()
175 argc--; in adtimg_get_dt()
179 return adtimg_get_dt_by_index(argc, argv); in adtimg_get_dt()
185 static int do_adtimg_get(struct cmd_tbl *cmdtp, int flag, int argc, in do_adtimg_get() argument
188 if (argc < 2) { in do_adtimg_get()
197 argc--; in do_adtimg_get()
201 return adtimg_get_dt(argc, argv); in do_adtimg_get()
213 static int do_adtimg(struct cmd_tbl *cmdtp, int flag, int argc, in do_adtimg() argument
221 argc--; in do_adtimg()
224 if (!cp || argc > cp->maxargs) in do_adtimg()
229 return cp->cmd(cmdtp, flag, argc, argv); in do_adtimg()