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()
42 if (strncmp(argv[1], "dev", 3) == 0) { in blk_common_cmd()
43 int dev = (int)simple_strtoul(argv[2], NULL, 10); in blk_common_cmd()
52 } else if (strncmp(argv[1], "part", 4) == 0) { in blk_common_cmd()
53 int dev = (int)simple_strtoul(argv[2], NULL, 10); in blk_common_cmd()
65 if (strcmp(argv[1], "read") == 0) { in blk_common_cmd()
66 ulong addr = simple_strtoul(argv[2], NULL, 16); in blk_common_cmd()
67 lbaint_t blk = simple_strtoul(argv[3], NULL, 16); in blk_common_cmd()
68 ulong cnt = simple_strtoul(argv[4], NULL, 16); in blk_common_cmd()
80 } else if (strcmp(argv[1], "write") == 0) { in blk_common_cmd()
81 ulong addr = simple_strtoul(argv[2], NULL, 16); in blk_common_cmd()
82 lbaint_t blk = simple_strtoul(argv[3], NULL, 16); in blk_common_cmd()
83 ulong cnt = simple_strtoul(argv[4], NULL, 16); in blk_common_cmd()