Home
last modified time | relevance | path

Searched refs:cmdp (Results 1 – 15 of 15) sorted by relevance

/third_party/ltp/testcases/kernel/hotplug/memory_hotplug/
Dcommands.c1161 struct command *cmdp = cmd_table; in help_me() local
1175 for (cmdp = cmd_table; cmdp->cmd_name != NULL; ++cmdp) { in help_me()
1176 if (cmd == NULL || !strncmp(cmd, cmdp->cmd_name, cmdlen)) { in help_me()
1177 printf("%s\n", cmdp->cmd_help); in help_me()
1195 static bool unique_abbrev(char *cmd, size_t clen, struct command *cmdp) in unique_abbrev() argument
1197 for (; cmdp->cmd_name != NULL; ++cmdp) { in unique_abbrev()
1198 if (!strncmp(cmd, cmdp->cmd_name, clen)) in unique_abbrev()
1208 struct command *cmdp; in parse_command() local
1214 for (cmdp = cmd_table; cmdp->cmd_name != NULL; ++cmdp) { in parse_command()
1218 if (strncmp(cmd, cmdp->cmd_name, clen)) in parse_command()
[all …]
/third_party/libfuse/util/
Dmount.fuse.c75 static void add_arg(char **cmdp, const char *opt) in add_arg() argument
78 size_t cmdlen = *cmdp ? strlen(*cmdp) : 0; in add_arg()
83 char *cmd = xrealloc(*cmdp, cmdlen + optlen * 4 + 4); in add_arg()
86 if (*cmdp) in add_arg()
101 *cmdp = cmd; in add_arg()
/third_party/f2fs-tools/tools/sg_write_buffer/
Dsg_pt_linux_nvme.c300 struct sg_nvme_passthru_cmd *cmdp, void * dp, bool is_read, in do_nvme_admin_cmd() argument
307 const uint8_t * up = ((const uint8_t *)cmdp) + SG_NVME_PT_OPCODE; in do_nvme_admin_cmd()
309 cmdp->timeout_ms = (time_secs < 0) ? (-time_secs) : (1000 * time_secs); in do_nvme_admin_cmd()
313 hex2stderr((const uint8_t *)cmdp, cmd_len, 1); in do_nvme_admin_cmd()
329 res = ioctl(ptp->dev_fd, NVME_IOCTL_ADMIN_CMD, cmdp); in do_nvme_admin_cmd()
340 ptp->nvme_result = cmdp->result; in do_nvme_admin_cmd()
351 sg_put_unaligned_le32(cmdp->result, in do_nvme_admin_cmd()
Dsg_pt_linux.c839 v3_hdr.cmdp = (unsigned char *)(long)ptp->io_hdr.request; in do_scsi_pt_v3()
865 if (NULL == v3_hdr.cmdp) { in do_scsi_pt_v3()
Dsg_lib.c2053 sg_get_command_name(const unsigned char * cmdp, int peri_type, int buff_len, in sg_get_command_name() argument
2064 if (NULL == cmdp) { in sg_get_command_name()
2068 service_action = (SG_VARIABLE_LENGTH_CMD == cmdp[0]) ? in sg_get_command_name()
2069 sg_get_unaligned_be16(cmdp + 8) : (cmdp[1] & 0x1f); in sg_get_command_name()
2070 sg_get_opcode_sa_name(cmdp[0], service_action, peri_type, buff_len, buff); in sg_get_command_name()
/third_party/toybox/toys/other/
Deject.c49 header->cmdp = (void *)sg_driver_cmd[i]; in remove_scsi()
/third_party/musl/include/scsi/
Dsg.h72 unsigned char *cmdp; member
/third_party/ltp/testcases/kernel/syscalls/ioctl/
Dioctl_sg01.c92 query.cmdp = command; in setup()
/third_party/musl/porting/liteos_m/kernel/include/scsi/
Dsg.h72 unsigned char *cmdp; member
/third_party/musl/porting/liteos_m_iccarm/kernel/include/scsi/
Dsg.h72 unsigned char *cmdp; member
/third_party/musl/porting/uniproton/kernel/include/scsi/
Dsg.h72 unsigned char *cmdp; member
/third_party/musl/ndk_musl_include/scsi/
Dsg.h72 unsigned char *cmdp; member
/third_party/ltp/testcases/kernel/fs/scsi/ltpscsi/
Dscsimain.c843 io_hdr.cmdp = inqCmdBlk; in sg3_inq()
907 io_hdr.cmdp = logsCmdBlk; in do_logs()
1580 io_hdr.cmdp = inqCmdBlk; in do_inquiry()
1875 io_hdr.cmdp = rcCmdBlk; in read_capacity()
1914 io_hdr.cmdp = scCmdBlk; in sync_cache()
2045 io_hdr.cmdp = rdCmd; in sg_read()
2111 io_hdr.cmdp = wrCmd; in sg_write()
2698 io_hdr.cmdp = inqCmdBlk; in do_scsi_inq()
3385 io_hdr.cmdp = inqCmdBlk; in do_simple_inq()
3440 io_hdr.cmdp = modesCmdBlk; in do_modes()
[all …]
/third_party/python/PC/
Dlauncher.c1011 wchar_t * cmdp; in read_config_file() local
1026 cmdp = skip_whitespace(value); in read_config_file()
1027 if (*cmdp) { in read_config_file()
/third_party/f2fs-tools/lib/
Dlibf2fs.c1011 io_hdr.cmdp = model_inq; in get_device_info()