Home
last modified time | relevance | path

Searched refs:cmd (Results 76 – 100 of 1354) sorted by relevance

12345678910>>...55

/dragonfly/usr.sbin/ngctl/
H A Dmain.c293 const struct ngcmd *cmd; in DoCommand() local
301 warnx("usage: %s", cmd->cmd); in DoCommand()
338 if (strlen(s) <= strcspn(cmd->cmd, WHITESPACE)) { in MatchCommand()
339 if (strncasecmp(s, cmd->cmd, strlen(s)) == 0) in MatchCommand()
388 const struct ngcmd *cmd; in HelpCmd() local
399 cmd = cmds[k]; in HelpCmd()
400 snprintf(buf, sizeof(buf), "%s", cmd->cmd); in HelpCmd()
409 printf("Usage: %s\n", cmd->cmd); in HelpCmd()
410 if (cmd->aliases[0] != NULL) { in HelpCmd()
415 printf("%s", cmd->aliases[a++]); in HelpCmd()
[all …]
/dragonfly/sys/dev/raid/twe/
H A Dtwe.c121 TWE_Command *cmd; in twe_setup() local
401 TWE_Command *cmd; in twe_startio() local
447 cmd->io.size = 3; in twe_startio()
486 TWE_Command *cmd; in twe_dump_blocks() local
501 cmd->io.size = 3; in twe_dump_blocks()
1207 cmd->generic.request_id, cmd->generic.status); in twe_done()
1949cmd->generic.request_id, twe_describe_code(twe_table_opcode, cmd->generic.opcode), cmd->generic.si…
1950 cmd->generic.unit, cmd->generic.host_id);
1952 cmd->generic.status, cmd->generic.flags, cmd->generic.count, cmd->generic.sgl_offset);
1960 i, cmd->io.sgl[i].address, cmd->io.sgl[i].length);
[all …]
/dragonfly/contrib/lvm2/dist/lib/metadata/
H A Dmetadata.c412 dev_dir = cmd->dev_dir; in validate_vg_rename_params()
816 vg->cmd = cmd; in vg_create()
848 if (!(vg->fid = cmd->fmt->ops->create_instance(cmd->fmt, vg_name, in vg_create()
1242 lvmcache_destroy(cmd, 1); in pvcreate_check()
1712 if (!(pv = _pv_read(cmd, cmd->mem, pv_name, NULL, NULL, 1, 0))) { in _find_pv_by_name()
1721 if (!(pv = _pv_read(cmd, cmd->mem, pv_name, NULL, NULL, 1, 0))) { in _find_pv_by_name()
2392 vg->cmd = cmd; in _vg_read_orphans()
2817 if (vg->cmd && vg->vgmem == vg->cmd->mem) in vg_release()
3277 unlock_vg(cmd, lock_name); in _recover_vg()
3511 unlock_vg(cmd, vgname); in vg_lock_newname()
[all …]
H A Dmirror.c260 if (!deactivate_lv(cmd, log_lv)) in _init_mirror_log()
281 if (!activate_lv(cmd, log_lv)) { in _init_mirror_log()
303 if (!deactivate_lv(cmd, log_lv)) { in _init_mirror_log()
317 if (!deactivate_lv(cmd, log_lv)) { in _init_mirror_log()
355 struct cmd_context *cmd = mirror_lv->vg->cmd; in _delete_lv() local
373 if (!activate_lv(cmd, lv)) in _delete_lv()
376 if (!deactivate_lv(cmd, lv)) in _delete_lv()
614 if (!resume_lv(lv1->vg->cmd, lv1)) { in _remove_mirror_images()
803 return get_mirror_fault_policy(cmd, 1); in get_mirror_log_fault_policy()
808 return get_mirror_fault_policy(cmd, 0); in get_mirror_device_fault_policy()
[all …]
/dragonfly/sys/dev/netif/iwm/
H A Dif_iwm_util.c162 struct iwm_device_cmd *cmd; in iwm_send_cmd() local
210 hdrlen = sizeof(cmd->hdr); in iwm_send_cmd()
251 cmd = &ring->cmd[ring->cur]; in iwm_send_cmd()
262 data = cmd->data_wide; in iwm_send_cmd()
265 cmd->hdr.flags = 0; in iwm_send_cmd()
266 cmd->hdr.qid = ring->qid; in iwm_send_cmd()
267 cmd->hdr.idx = ring->cur; in iwm_send_cmd()
268 data = cmd->data; in iwm_send_cmd()
344 struct iwm_host_cmd cmd = { in iwm_send_cmd_pdu() local
369 pkt = cmd->resp_pkt; in iwm_send_cmd_status()
[all …]
/dragonfly/sys/bus/smbus/
H A Dsmbconf.h115 #define smbus_writeb(bus,slave,cmd,byte) \ argument
116 (SMBUS_WRITEB(device_get_parent(bus), slave, cmd, byte))
117 #define smbus_writew(bus,slave,cmd,word) \ argument
118 (SMBUS_WRITEW(device_get_parent(bus), slave, cmd, word))
119 #define smbus_readb(bus,slave,cmd,byte) \ argument
120 (SMBUS_READB(device_get_parent(bus), slave, cmd, byte))
121 #define smbus_readw(bus,slave,cmd,word) \ argument
122 (SMBUS_READW(device_get_parent(bus), slave, cmd, word))
123 #define smbus_pcall(bus,slave,cmd,sdata,rdata) \ argument
125 #define smbus_bwrite(bus,slave,cmd,count,buf) \ argument
[all …]
/dragonfly/contrib/lvm2/dist/tools/
H A Dvgreduce.c150 cmd->handles_missing_pvs = 1; in _consolidate_vg()
199 if (arg_count(cmd, mirrorsonly_ARG) && in _make_vg_consistent()
246 if (!suspend_lvs(cmd, &lvs_changed)) { in _make_vg_consistent()
261 if (!resume_lvs(cmd, &lvs_changed)) { in _make_vg_consistent()
332 if (!_remove_lv(cmd, lvl->lv, in _make_vg_consistent()
352 if (!deactivate_lv(cmd, lvl->lv)) { in _make_vg_consistent()
511 cmd->handles_missing_pvs = 1; in vgreduce()
546 if (arg_count(cmd, force_ARG)) { in vgreduce()
547 if (!_make_vg_consistent(cmd, vg)) in vgreduce()
550 fixed = _consolidate_vg(cmd, vg); in vgreduce()
[all …]
H A Dvgcreate.c40 if (arg_count(cmd, metadatacopies_ARG)) { in vgcreate()
46 if (!pvcreate_params_validate(cmd, argc, argv, &pp)) { in vgcreate()
55 if (vgcreate_params_validate(cmd, &vp_new)) in vgcreate()
59 vg = vg_create(cmd, vp_new.vg_name); in vgcreate()
70 if (!lock_vol(cmd, VG_ORPHANS, LCK_VG_WRITE)) { in vgcreate()
87 if (arg_count(cmd, addtag_ARG)) { in vgcreate()
98 if (!str_list_add(cmd->mem, &vg->tags, tag)) { in vgcreate()
119 unlock_vg(cmd, VG_ORPHANS); in vgcreate()
120 unlock_vg(cmd, vp_new.vg_name); in vgcreate()
131 unlock_vg(cmd, VG_ORPHANS); in vgcreate()
[all …]
/dragonfly/usr.sbin/mpsutil/
H A Dmpsutil.c56 struct mpsutil_usage **cmd; in usage() local
61 SET_FOREACH(cmd, MPS_DATASET(usage)) { in usage()
62 if (*cmd == NULL) { in usage()
65 (*cmd)->handler(&args, &desc); in usage()
68 (*cmd)->name, args, desc); in usage()
71 (*cmd)->set, (*cmd)->name, args, desc); in usage()
94 struct mpsutil_command **cmd; in main() local
120 SET_FOREACH(cmd, MPS_DATASET(top)) { in main()
122 if ((*cmd)->handler(ac, av)) in main()
136 struct mpsutil_command **cmd; in mps_table_handler() local
[all …]
/dragonfly/contrib/gdb-7/gdb/cli/
H A Dcli-dump.c43 if ((*cmd) == NULL || (**cmd) == '\0') in scan_expression_with_cleanup()
55 end = (*cmd) + strcspn (*cmd, " \t"); in scan_expression_with_cleanup()
56 exp = savestring ((*cmd), end - (*cmd)); in scan_expression_with_cleanup()
73 if ((*cmd) == NULL) in scan_filename_with_cleanup()
85 (*cmd) = skip_spaces (*cmd); in scan_filename_with_cleanup()
86 end = *cmd + strcspn (*cmd, " \t"); in scan_filename_with_cleanup()
87 filename = savestring ((*cmd), end - (*cmd)); in scan_filename_with_cleanup()
226 if (cmd == NULL || *cmd == '\0') in dump_memory_to_file()
231 if (cmd == NULL || *cmd == '\0') in dump_memory_to_file()
233 hi_exp = cmd; in dump_memory_to_file()
[all …]
/dragonfly/sys/dev/disk/iscsi/initiator/
H A Discsi_subr.c78 data_out_t *cmd; in iscsi_r2t() local
110 cmd->ttt = r2t->ttt; in iscsi_r2t()
111 cmd->itt = r2t->itt; in iscsi_r2t()
113 cmd->dsn = htonl(dsn); in iscsi_r2t()
114 cmd->bo = htonl(bo); in iscsi_r2t()
336 _scsi_done(sp->isc, cmd->response, cmd->status, opq->ccb, pq); in iscsi_done()
358 sdebug(3, "asyncevent=0x%x asyncVCode=0x%0x", cmd->asyncEvent, cmd->asyncVCode); in iscsi_async()
449 scsi_req_t *cmd; in scsi_encap() local
481 cmd->F = 1; in scsi_encap()
510 memcpy(cmd->cdb, in scsi_encap()
[all …]
/dragonfly/bin/chio/
H A Dchio.c175 struct changer_move cmd; in do_move() local
195 memset(&cmd, 0, sizeof(cmd)); in do_move()
203 find_element(*argv, &cmd.cm_fromtype, &cmd.cm_fromunit); in do_move()
273 memset(&cmd, 0, sizeof(cmd)); in do_exchange()
281 find_element(*argv, &cmd.ce_srctype, &cmd.ce_srcunit); in do_exchange()
294 find_element(*argv, &cmd.ce_fdsttype, &cmd.ce_fdstunit); in do_exchange()
307 cmd.ce_sdsttype = cmd.ce_srctype; in do_exchange()
308 cmd.ce_sdstunit = cmd.ce_srcunit; in do_exchange()
382 memset(&cmd, 0, sizeof(cmd)); in do_position()
975 memset(&cmd, 0, sizeof(cmd)); in do_return()
[all …]
/dragonfly/contrib/lvm2/dist/lib/display/
H A Ddisplay.c209 suffix = cmd->current_settings.suffix; in _display_size()
211 if (!cmd->si_unit_consistency) { in _display_size()
268 if (!cmd->si_unit_consistency) in _display_size()
397 size = display_size(cmd, pvsize); in pvdisplay_full()
419 if (cmd->si_unit_consistency) in pvdisplay_full()
465 lv->vg->cmd->dev_dir, in lvdisplay_colons()
550 display_size(cmd, in lvdisplay_full()
710 display_size(vg->cmd, in vgdisplay_full()
720 display_size(vg->cmd, in vgdisplay_full()
791 display_size(vg->cmd, in vgdisplay_short()
[all …]
/dragonfly/sys/dev/smbus/atmel_mxt/
H A Dtest_atmel.c56 struct smbcmd cmd; in mxt_read_reg() local
60 bzero(&cmd, sizeof(cmd)); in mxt_read_reg()
63 cmd.slave = 0; in mxt_read_reg()
64 cmd.rbuf = rbuf; in mxt_read_reg()
65 cmd.wbuf = wbuf; in mxt_read_reg()
66 cmd.wcount = 2; in mxt_read_reg()
82 struct smbcmd cmd; in mxt_write_reg_buf() local
91 cmd.slave = 0; in mxt_write_reg_buf()
92 cmd.rbuf = NULL; in mxt_write_reg_buf()
93 cmd.wbuf = wbuf; in mxt_write_reg_buf()
[all …]
/dragonfly/sbin/svc/
H A Dsubs.c102 setup_pid_and_socket(command_t *cmd, int *lfdp, int *pfdp) in setup_pid_and_socket() argument
111 asprintf(&pidfile, "%s/service.%s.pid", cmd->piddir, cmd->label); in setup_pid_and_socket()
117 fprintf(cmd->fp, "Cannot init, %s is already active\n", in setup_pid_and_socket()
118 cmd->label); in setup_pid_and_socket()
120 fprintf(cmd->fp, in setup_pid_and_socket()
122 cmd->label, in setup_pid_and_socket()
136 "%s/service.%s.sk", cmd->piddir, cmd->label); in setup_pid_and_socket()
144 fprintf(cmd->fp, "Unable to bind \"%s\"\n", in setup_pid_and_socket()
149 fprintf(cmd->fp, "Unable to listen on \"%s\"\n", in setup_pid_and_socket()
168 remove_pid_and_socket(command_t *cmd, const char *label) in remove_pid_and_socket() argument
[all …]
/dragonfly/sbin/restore/
H A Dinteractive.c121 if (strncmp(cmd, "add", strlen(cmd)) != 0) in runcmdshell()
134 if (strncmp(cmd, "cd", strlen(cmd)) != 0) in runcmdshell()
149 if (strncmp(cmd, "delete", strlen(cmd)) != 0) in runcmdshell()
175 if (strncmp(cmd, "help", strlen(cmd)) != 0) in runcmdshell()
202 if (strncmp(cmd, "ls", strlen(cmd)) != 0) in runcmdshell()
210 if (strncmp(cmd, "pwd", strlen(cmd)) != 0) in runcmdshell()
221 if (strncmp(cmd, "quit", strlen(cmd)) != 0) in runcmdshell()
225 if (strncmp(cmd, "xit", strlen(cmd)) != 0) in runcmdshell()
254 if (strncmp(cmd, "what", strlen(cmd)) != 0) in runcmdshell()
262 if (strncmp(cmd, "Debug", strlen(cmd)) != 0) in runcmdshell()
[all …]
/dragonfly/sys/netgraph7/bluetooth/l2cap/
H A Dng_l2cap_misc.h62 #define ng_l2cap_link_cmd(con, cmd) \ argument
64 TAILQ_INSERT_TAIL(&(con)->cmd_list, (cmd), next); \
68 #define ng_l2cap_unlink_cmd(cmd) \ argument
70 TAILQ_REMOVE(&((cmd)->con->cmd_list), (cmd), next); \
71 ng_l2cap_con_unref((cmd)->con); \
74 #define ng_l2cap_free_cmd(cmd) \ argument
76 KASSERT(!callout_pending(&(cmd)->timo), ("Pending callout!")); \
77 NG_FREE_M((cmd)->aux); \
78 bzero((cmd), sizeof(*(cmd))); \
79 kfree((cmd), M_NETGRAPH_L2CAP); \
/dragonfly/usr.bin/systat/
H A Dcmds.c43 command(const char *cmd) in command() argument
55 if (*cmd == '\0') in command()
59 if (strcmp(cmd, "quit") == 0 || strcmp(cmd, "q") == 0) in command()
61 if (strcmp(cmd, "load") == 0) { in command()
65 if (strcmp(cmd, "stop") == 0) { in command()
71 if (strcmp(cmd, "help") == 0) { in command()
86 interval = strtod(cmd, NULL); in command()
88 (strcmp(cmd, "start") == 0 || strcmp(cmd, "interval") == 0)) { in command()
102 p = lookup(cmd); in command()
104 error("%s: Ambiguous command.", cmd); in command()
[all …]
/dragonfly/usr.sbin/installer/libinstaller/
H A Dsurvey.c151 struct command *cmd; in survey_storage() local
205 command_set_log_mode(cmd, COMMAND_LOG_SILENT); in survey_storage()
226 command_set_log_mode(cmd, COMMAND_LOG_SILENT); in survey_storage()
229 command_set_log_mode(cmd, COMMAND_LOG_SILENT); in survey_storage()
236 command_set_log_mode(cmd, COMMAND_LOG_SILENT); in survey_storage()
245 command_set_log_mode(cmd, COMMAND_LOG_SILENT); in survey_storage()
252 command_set_log_mode(cmd, COMMAND_LOG_SILENT); in survey_storage()
264 command_set_log_mode(cmd, COMMAND_LOG_SILENT); in survey_storage()
271 command_set_log_mode(cmd, COMMAND_LOG_SILENT); in survey_storage()
280 command_set_log_mode(cmd, COMMAND_LOG_SILENT); in survey_storage()
[all …]
/dragonfly/sys/kern/
H A Dkern_dmsg.c1111 uint32_t cmd; in kdmsg_autorxmsg() local
1126 cmd = 0; in kdmsg_autorxmsg()
1129 switch(cmd) { in kdmsg_autorxmsg()
1832 msg->any.head.cmd = cmd; in kdmsg_msg_alloc()
2040 uint32_t cmd; local
2085 uint32_t cmd; local
2128 uint32_t cmd; local
2150 cmd |= DMSGF_REPLY;
2151 cmd |= DMSGF_DELETE;
2168 uint32_t cmd; local
[all …]
/dragonfly/sys/dev/disk/dm/
H A Ddevice-mapper.c115 const char *cmd; member
118 {.cmd = "version", .fn = NULL},
123 {.cmd = "names", .fn = dm_dev_list_ioctl},
134 {.cmd = "message", .fn = dm_message_ioctl},
141 dm_modcmd(module_t mod, int cmd, void *unused) in dm_modcmd() argument
147 switch (cmd) { in dm_modcmd()
244 u_long cmd = ap->a_cmd; in dmioctl() local
257 switch(cmd) { in dmioctl()
262 dmdebug("Unknown ioctl %lu called\n", cmd); in dmioctl()
309 dmdebug("ioctl %s called %p\n", p->cmd, p->fn); in dm_cmd_to_fun()
[all …]
/dragonfly/sys/libprop/
H A Dprop_kern.c135 if (ioctl(fd, cmd, &pref) == -1) in _prop_object_send_ioctl()
154 rv = _prop_object_send_ioctl(array, fd, cmd); in prop_array_send_ioctl()
171 rv = _prop_object_send_ioctl(dict, fd, cmd); in prop_dictionary_send_ioctl()
291 rv = ioctl(fd, cmd, &pref); in prop_array_recv_ioctl()
314 rv = ioctl(fd, cmd, &pref); in prop_dictionary_recv_ioctl()
346 if (ioctl(fd, cmd, &pref) == -1) in prop_dictionary_sendrecv_ioctl()
430 const u_long cmd, prop_object_t *objp) in _prop_object_copyin_ioctl() argument
432 if ((cmd & IOC_IN) == 0) in _prop_object_copyin_ioctl()
470 cmd, (prop_object_t *)arrayp)); in prop_array_copyin_ioctl()
482 cmd, (prop_object_t *)dictp)); in prop_dictionary_copyin_ioctl()
[all …]
/dragonfly/sys/dev/raid/mfi/
H A Dmfi_tbolt.c60 struct mfi_cmd_tbolt *cmd);
62 struct mfi_cmd_tbolt *cmd);
445 struct mfi_cmd_tbolt *cmd; in mfi_tbolt_alloc_cmd() local
500 cmd->index = i + 1; in mfi_tbolt_alloc_cmd()
789 return cmd; in mfi_tbolt_get_cmd()
815 struct mfi_cmd_tbolt *cmd; in mfi_build_mpt_pass_thru() local
818 if (!cmd) in mfi_build_mpt_pass_thru()
822 io_req = cmd->io_request; in mfi_build_mpt_pass_thru()
1098 if (!cmd) in mfi_build_and_issue_cmd()
1103 index = cmd->index; in mfi_build_and_issue_cmd()
[all …]
/dragonfly/usr.bin/sdpquery/
H A Dsdpquery.c65 struct command *cmd; in main() local
119 for (cmd = commands ; cmd->command != NULL; cmd++) { in main()
120 if (strcasecmp(*argv, cmd->command) == 0) in main()
121 return (*cmd->handler)(&laddr, &raddr, --argc, (char const **)++argv); in main()
131 struct command *cmd; in usage() local
148 for (cmd = commands ; cmd->command != NULL ; cmd++) in usage()
149 fprintf(stderr, "\t%-13s%s\n", cmd->command, cmd->usage); in usage()
/dragonfly/contrib/lvm2/dist/liblvm/
H A Dlvm_base.c30 struct cmd_context *cmd; in lvm_init() local
37 cmd = create_toolcontext(1, system_dir); in lvm_init()
38 if (!cmd) in lvm_init()
42 return (lvm_t) cmd; in lvm_init()
54 if (!init_locking(-1, cmd)) { in lvm_init()
57 lvm_quit((lvm_t) cmd); in lvm_init()
65 cmd->cmd_line = (char *)"liblvm"; in lvm_init()
67 return (lvm_t) cmd; in lvm_init()
88 struct cmd_context *cmd = (struct cmd_context *)libh; in lvm_config_override() local
89 if (override_config_tree_from_string(cmd, config_settings)) in lvm_config_override()

12345678910>>...55