Lines Matching refs:argv
15 int blk_common_cmd(int argc, char * const argv[], enum if_type if_type, in blk_common_cmd() argument
25 if (strncmp(argv[1], "inf", 3) == 0) { in blk_common_cmd()
28 } else if (strncmp(argv[1], "dev", 3) == 0) { in blk_common_cmd()
34 } else if (strncmp(argv[1], "part", 4) == 0) { in blk_common_cmd()
41 if (strncmp(argv[1], "dev", 3) == 0) { in blk_common_cmd()
42 int dev = (int)simple_strtoul(argv[2], NULL, 10); in blk_common_cmd()
51 } else if (strncmp(argv[1], "part", 4) == 0) { in blk_common_cmd()
52 int dev = (int)simple_strtoul(argv[2], NULL, 10); in blk_common_cmd()
64 if (strcmp(argv[1], "read") == 0) { in blk_common_cmd()
65 ulong addr = simple_strtoul(argv[2], NULL, 16); in blk_common_cmd()
66 lbaint_t blk = simple_strtoul(argv[3], NULL, 16); in blk_common_cmd()
67 ulong cnt = simple_strtoul(argv[4], NULL, 16); in blk_common_cmd()
79 } else if (strcmp(argv[1], "write") == 0) { in blk_common_cmd()
80 ulong addr = simple_strtoul(argv[2], NULL, 16); in blk_common_cmd()
81 lbaint_t blk = simple_strtoul(argv[3], NULL, 16); in blk_common_cmd()
82 ulong cnt = simple_strtoul(argv[4], NULL, 16); in blk_common_cmd()