/dragonfly/usr.sbin/lpr/lpc/ |
H A D | lpc.c | 72 static struct cmd *getcmd(const char *_name); 80 struct cmd *c; in main() 90 if (c == (struct cmd *)-1) { in main() 137 struct cmd *c; in cmdscanner() 192 if (c == (struct cmd *)-1) { in cmdscanner() 221 static struct cmd * 225 struct cmd *c, *found; in getcmd() 245 return((struct cmd *)-1); in getcmd() 285 struct cmd *c; in help() 326 if (c == (struct cmd *)-1) in help()
|
/dragonfly/contrib/lvm2/dist/lib/cache/ |
H A D | lvmcache.h | 67 void lvmcache_destroy(struct cmd_context *cmd, int retain_orphans); 71 int lvmcache_label_scan(struct cmd_context *cmd, int full_scan); 98 struct device *device_from_pvid(struct cmd_context *cmd, struct id *pvid); 104 struct dm_list *lvmcache_get_vgnames(struct cmd_context *cmd, int full_scan); 108 struct dm_list *lvmcache_get_vgids(struct cmd_context *cmd, int full_scan); 111 struct dm_list *lvmcache_get_pvids(struct cmd_context *cmd, const char *vgname,
|
/dragonfly/contrib/lvm2/dist/include/ |
H A D | lvmcache.h | 67 void lvmcache_destroy(struct cmd_context *cmd, int retain_orphans); 71 int lvmcache_label_scan(struct cmd_context *cmd, int full_scan); 98 struct device *device_from_pvid(struct cmd_context *cmd, struct id *pvid); 104 struct dm_list *lvmcache_get_vgnames(struct cmd_context *cmd, int full_scan); 108 struct dm_list *lvmcache_get_vgids(struct cmd_context *cmd, int full_scan); 111 struct dm_list *lvmcache_get_pvids(struct cmd_context *cmd, const char *vgname,
|
H A D | format-text.h | 41 int archive_list(struct cmd_context *cmd, const char *dir, const char *vgname); 42 int archive_list_file(struct cmd_context *cmd, const char *file); 43 int backup_list(struct cmd_context *cmd, const char *dir, const char *vgname); 48 struct format_type *create_text_format(struct cmd_context *cmd); 49 void *create_text_context(struct cmd_context *cmd, const char *path,
|
H A D | toolcontext.h | 108 void destroy_toolcontext(struct cmd_context *cmd); 109 int refresh_toolcontext(struct cmd_context *cmd); 110 int refresh_filters(struct cmd_context *cmd); 111 int config_files_changed(struct cmd_context *cmd); 112 int init_lvmcache_orphans(struct cmd_context *cmd);
|
/dragonfly/contrib/lvm2/dist/tools/ |
H A D | vgexport.c | 20 static int vgexport_single(struct cmd_context *cmd __attribute((unused)), in vgexport_single() 57 int vgexport(struct cmd_context *cmd, int argc, char **argv) in vgexport() argument 59 if (!argc && !arg_count(cmd, all_ARG)) { in vgexport() 64 if (argc && arg_count(cmd, all_ARG)) { in vgexport() 69 return process_each_vg(cmd, argc, argv, READ_FOR_UPDATE, NULL, in vgexport()
|
H A D | vgimport.c | 20 static int vgimport_single(struct cmd_context *cmd __attribute((unused)), in vgimport_single() 61 int vgimport(struct cmd_context *cmd, int argc, char **argv) in vgimport() argument 63 if (!argc && !arg_count(cmd, all_ARG)) { in vgimport() 68 if (argc && arg_count(cmd, all_ARG)) { in vgimport() 73 return process_each_vg(cmd, argc, argv, in vgimport()
|
/dragonfly/sys/netgraph/eiface/ |
H A D | ng_eiface.c | 93 static int ng_eiface_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data, 96 static void ng_eiface_print_ioctl(struct ifnet *ifp, int cmd, caddr_t data); 143 ng_eiface_print_ioctl(ifp, cmd, data); in ng_eiface_ioctl() 146 switch (cmd) { in ng_eiface_ioctl() 150 error = ether_ioctl(ifp, cmd, data); in ng_eiface_ioctl() 276 ng_eiface_print_ioctl(struct ifnet *ifp, int cmd, caddr_t data) in ng_eiface_print_ioctl() argument 280 switch (cmd & IOC_DIRMASK) { in ng_eiface_print_ioctl() 299 IOCGROUP(cmd), in ng_eiface_print_ioctl() 300 cmd & 0xff, in ng_eiface_print_ioctl() 301 IOCPARM_LEN(cmd)); in ng_eiface_print_ioctl() [all …]
|
/dragonfly/sys/sys/ |
H A D | dmsg.h | 222 uint32_t cmd; /* 20 flags | cmd | hdr_size / ALIGN */ member 319 #define DMSG_LNK(cmd, elm) (DMSG_PROTO_LNK | \ argument 320 ((cmd) << 8) | \ 323 #define DMSG_DBG(cmd, elm) (DMSG_PROTO_DBG | \ argument 324 ((cmd) << 8) | \ 327 #define DMSG_HM2(cmd, elm) (DMSG_PROTO_HM2 | \ argument 328 ((cmd) << 8) | \ 331 #define DMSG_BLK(cmd, elm) (DMSG_PROTO_BLK | \ argument 332 ((cmd) << 8) | \ 335 #define DMSG_VOP(cmd, elm) (DMSG_PROTO_VOP | \ argument [all …]
|
/dragonfly/crypto/libressl/crypto/asn1/ |
H A D | bio_asn1.c | 118 static long asn1_bio_ctrl(BIO *h, int cmd, long arg1, void *arg2); 121 static long asn1_bio_callback_ctrl(BIO *h, int cmd, BIO_info_cb *fp); 349 asn1_bio_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp) in asn1_bio_callback_ctrl() argument 353 return BIO_callback_ctrl(b->next_bio, cmd, fp); in asn1_bio_callback_ctrl() 357 asn1_bio_ctrl(BIO *b, int cmd, long arg1, void *arg2) in asn1_bio_ctrl() argument 366 switch (cmd) { in asn1_bio_ctrl() 419 return BIO_ctrl(b->next_bio, cmd, arg1, arg2); in asn1_bio_ctrl() 430 return BIO_ctrl(b->next_bio, cmd, arg1, arg2); in asn1_bio_ctrl() 445 return BIO_ctrl(b, cmd, 0, &extmp); in asn1_bio_set_ex() 449 asn1_bio_get_ex(BIO *b, int cmd, asn1_ps_func **ex_func, in asn1_bio_get_ex() argument [all …]
|
/dragonfly/sys/dev/powermng/intpm/ |
H A D | intpm.c | 515 tmp |= cmd; in intsmb_start() 712 intsmb_writeb(device_t dev, u_char slave, char cmd, char byte) in intsmb_writeb() argument 724 bus_write_1(sc->io_res, PIIX4_SMBHSTCMD, cmd); in intsmb_writeb() 733 intsmb_writew(device_t dev, u_char slave, char cmd, short word) in intsmb_writew() argument 745 bus_write_1(sc->io_res, PIIX4_SMBHSTCMD, cmd); in intsmb_writew() 755 intsmb_readb(device_t dev, u_char slave, char cmd, char *byte) in intsmb_readb() argument 767 bus_write_1(sc->io_res, PIIX4_SMBHSTCMD, cmd); in intsmb_readb() 777 intsmb_readw(device_t dev, u_char slave, char cmd, short *word) in intsmb_readw() argument 789 bus_write_1(sc->io_res, PIIX4_SMBHSTCMD, cmd); in intsmb_readw() 826 bus_write_1(sc->io_res, PIIX4_SMBHSTCMD, cmd); in intsmb_bwrite() [all …]
|
/dragonfly/contrib/wpa_supplicant/src/drivers/ |
H A D | driver_privsep.c | 34 res = sendto(drv->priv_socket, &cmd, sizeof(cmd), 0, in wpa_priv_reg_cmd() 50 io[0].iov_base = &cmd; in wpa_priv_cmd() 51 io[0].iov_len = sizeof(cmd); in wpa_priv_cmd() 215 struct privsep_cmd_set_key cmd; in wpa_driver_privsep_set_key() local 220 os_memset(&cmd, 0, sizeof(cmd)); in wpa_driver_privsep_set_key() 221 cmd.alg = alg; in wpa_driver_privsep_set_key() 226 cmd.key_idx = key_idx; in wpa_driver_privsep_set_key() 227 cmd.set_tx = set_tx; in wpa_driver_privsep_set_key() 230 cmd.seq_len = seq_len; in wpa_driver_privsep_set_key() 234 cmd.key_len = key_len; in wpa_driver_privsep_set_key() [all …]
|
/dragonfly/bin/cpdup/ |
H A D | hclink.c | 97 assert(desc->cmd >= 0 && desc->cmd < 256); in hcc_slave() 98 dispatch[desc->cmd] = desc->func; in hcc_slave() 125 r = dispatch[head->cmd & 255](&trans, head); in hcc_slave() 179 tmp.cmd = hc_bswap16(tmp.cmd); in hcc_read_command() 220 whead->cmd = cmd; in hcc_start_command() 238 whead->cmd = rhead->cmd | HCF_REPLY; in hcc_start_reply() 272 if (whead->cmd < 0x0010) in hcc_finish_command() 277 wcmd = whead->cmd; in hcc_finish_command() 394 whead->cmd |= HCF_CONTINUE; in hcc_check_space() 505 if (!(head->cmd & HCF_CONTINUE)) in hcc_nextchaineditem() [all …]
|
/dragonfly/usr.sbin/kbdmap/ |
H A D | kbdmap.c | 266 char *cmd; in vidcontrol() local 270 system(cmd); in vidcontrol() 271 free(cmd); in vidcontrol() 327 char *cmd, *dialog; in show_dialog() local 364 strcpy(cmd, dialog); in show_dialog() 367 strcat(cmd, " \""); in show_dialog() 369 strcat(cmd, "\""); in show_dialog() 370 strcat(cmd, " \"\""); in show_dialog() 373 strcat(cmd, " 2>"); in show_dialog() 377 system(cmd); in show_dialog() [all …]
|
/dragonfly/contrib/wpa_supplicant/src/eap_server/ |
H A D | eap_sim_db.c | 88 char cmd[128]; in db_table_exists() local 89 os_snprintf(cmd, sizeof(cmd), "SELECT 1 FROM %s;", name); in db_table_exists() 184 char cmd[128]; in db_add_pseudonym() local 226 char cmd[128]; in db_get_pseudonym() local 231 os_snprintf(cmd, sizeof(cmd), in db_get_pseudonym() 255 pos = cmd; in db_add_reauth() 341 char cmd[256]; in db_get_reauth() local 349 os_snprintf(cmd, sizeof(cmd), in db_get_reauth() 363 char cmd[256]; in db_remove_reauth() local 367 os_snprintf(cmd, sizeof(cmd), in db_remove_reauth() [all …]
|
/dragonfly/contrib/lvm2/dist/lib/format_text/ |
H A D | format-text.h | 41 int archive_list(struct cmd_context *cmd, const char *dir, const char *vgname); 42 int archive_list_file(struct cmd_context *cmd, const char *file); 43 int backup_list(struct cmd_context *cmd, const char *dir, const char *vgname); 48 struct format_type *create_text_format(struct cmd_context *cmd); 49 void *create_text_context(struct cmd_context *cmd, const char *path,
|
/dragonfly/sys/dev/raid/tws/ |
H A D | tws_hdm.c | 169 initc = &(req->cmd_pkt->cmd.pkt_g.init_connect); in tws_init_connect() 239 struct tws_cmd_generic *cmd; in tws_send_generic_cmd() local 249 cmd = &(req->cmd_pkt->cmd.pkt_g.generic); in tws_send_generic_cmd() 250 bzero(cmd, sizeof(struct tws_cmd_generic)); in tws_send_generic_cmd() 254 cmd->sgl_off__opcode = BUILD_RES__OPCODE(0, opcode); in tws_send_generic_cmd() 255 cmd->size = 2; in tws_send_generic_cmd() 256 cmd->request_id = req->request_id; in tws_send_generic_cmd() 257 cmd->host_id__unit = 0; in tws_send_generic_cmd() 258 cmd->status = 0; in tws_send_generic_cmd() 259 cmd->flags = 0; in tws_send_generic_cmd() [all …]
|
/dragonfly/sys/bus/smbus/ichiic/ |
H A D | ig4_iic.c | 359 last |= (u_char)cmd; in smb_transaction() 385 last |= (u_char)cmd; in smb_transaction() 773 uint32_t cmd; in ig4iic_smb_sendb() local 779 cmd = byte; in ig4iic_smb_sendb() 781 reg_write(sc, IG4_REG_DATA_CMD, cmd); in ig4iic_smb_sendb() 830 error = smb_transaction(sc, cmd, SMB_TRANS_NOCNT, in ig4iic_smb_writeb() 852 error = smb_transaction(sc, cmd, SMB_TRANS_NOCNT, in ig4iic_smb_writew() 871 error = smb_transaction(sc, cmd, SMB_TRANS_NOCNT, in ig4iic_smb_readb() 936 error = smb_transaction(sc, cmd, 0, in ig4iic_smb_bwrite() 954 error = smb_transaction(sc, cmd, 0, in ig4iic_smb_bread() [all …]
|
/dragonfly/contrib/lvm2/dist/lib/locking/ |
H A D | file_locking.c | 255 static int _file_lock_resource(struct cmd_context *cmd, const char *resource, in _file_lock_resource() argument 284 if (!lv_resume_if_active(cmd, resource)) in _file_lock_resource() 289 if (!lv_deactivate(cmd, resource)) in _file_lock_resource() 294 if (!lv_activate_with_filter(cmd, resource, 0)) in _file_lock_resource() 302 if (!lv_suspend_if_active(cmd, resource)) in _file_lock_resource() 307 if (!lv_activate_with_filter(cmd, resource, 1)) in _file_lock_resource() 323 int init_file_locking(struct locking_type *locking, struct cmd_context *cmd) in init_file_locking() argument 331 strncpy(_lock_dir, find_config_tree_str(cmd, "global/locking_dir", in init_file_locking() 336 find_config_tree_bool(cmd, "global/prioritise_write_locks", in init_file_locking()
|
/dragonfly/contrib/lvm2/dist/lib/report/ |
H A D | columns.h | 98 FIELD(VGS, vg, STR, "Fmt", cmd, 3, vgfmt, "vg_fmt", "Type of metadata.") 101 FIELD(VGS, vg, STR, "Attr", cmd, 5, vgstatus, "vg_attr", "Various attributes - see man page.") 102 FIELD(VGS, vg, NUM, "VSize", cmd, 5, vgsize, "vg_size", "Total size of VG in current units.") 103 FIELD(VGS, vg, NUM, "VFree", cmd, 5, vgfree, "vg_free", "Total amount of free space in current unit… 111 FIELD(VGS, vg, NUM, "#LV", cmd, 3, lvcount, "lv_count", "Number of LVs.") 112 FIELD(VGS, vg, NUM, "#SN", cmd, 3, snapcount, "snap_count", "Number of snapshots.") 115 FIELD(VGS, vg, NUM, "#VMda", cmd, 5, vgmdas, "vg_mda_count", "Number of metadata areas in use by th… 116 FIELD(VGS, vg, NUM, "VMdaFree", cmd, 9, vgmdafree, "vg_mda_free", "Free metadata area space for thi… 117 FIELD(VGS, vg, NUM, "VMdaSize", cmd, 9, vgmdasize, "vg_mda_size", "Size of smallest metadata area f…
|
/dragonfly/contrib/lvm2/dist/lib/commands/ |
H A D | toolcontext.h | 108 void destroy_toolcontext(struct cmd_context *cmd); 109 int refresh_toolcontext(struct cmd_context *cmd); 110 int refresh_filters(struct cmd_context *cmd); 111 int config_files_changed(struct cmd_context *cmd); 112 int init_lvmcache_orphans(struct cmd_context *cmd);
|
/dragonfly/sys/dev/virtual/vmware/pvscsi/ |
H A D | pvscsi.c | 419 bzero(&cmd, sizeof(cmd)); in pvscsi_setup_req_call() 422 &cmd, sizeof(cmd)); in pvscsi_setup_req_call() 701 bzero(&cmd, sizeof(cmd)); in pvscsi_setup_rings() 715 pvscsi_write_cmd(sc, PVSCSI_CMD_SETUP_RINGS, &cmd, sizeof(cmd)); in pvscsi_setup_rings() 738 bzero(&cmd, sizeof(cmd)); in pvscsi_setup_msg_ring() 745 pvscsi_write_cmd(sc, PVSCSI_CMD_SETUP_MSG_RING, &cmd, sizeof(cmd)); in pvscsi_setup_msg_ring() 778 memset(&cmd, 0, sizeof(cmd)); in pvscsi_device_reset() 780 cmd.target = target; in pvscsi_device_reset() 784 pvscsi_write_cmd(sc, PVSCSI_CMD_RESET_DEVICE, &cmd, sizeof cmd); in pvscsi_device_reset() 804 memset(&cmd, 0, sizeof cmd); in pvscsi_abort() [all …]
|
/dragonfly/sbin/ipfw3/ |
H A D | ipfw3basic.h | 38 void parse_accept(ipfw_insn **cmd, int *ac, char **av[]); 39 void parse_deny(ipfw_insn **cmd, int *ac, char **av[]); 40 void show_accept(ipfw_insn *cmd, int show_or); 41 void show_deny(ipfw_insn *cmd, int show_or);
|
/dragonfly/contrib/gdb-7/gdb/python/ |
H A D | py-auto-load.c | 244 struct cmd_list_element *cmd; in gdbpy_initialize_auto_load() local 268 cmd = lookup_cmd (&cmd_name, setlist, "", -1, 1); in gdbpy_initialize_auto_load() 269 deprecate_cmd (cmd, "set auto-load python-scripts"); in gdbpy_initialize_auto_load() 273 cmd = lookup_cmd (&cmd_name, showlist, "", -1, 1); in gdbpy_initialize_auto_load() 274 deprecate_cmd (cmd, "show auto-load python-scripts"); in gdbpy_initialize_auto_load() 281 cmd = add_info ("auto-load-scripts", info_auto_load_python_scripts, _("\ in gdbpy_initialize_auto_load() 283 deprecate_cmd (cmd, "info auto-load python-scripts"); in gdbpy_initialize_auto_load()
|
/dragonfly/sys/dev/drm/amd/amdgpu/ |
H A D | psp_v10_0.c | 149 struct psp_gfx_cmd_resp *cmd) in psp_v10_0_prep_cmd_buf() argument 154 memset(cmd, 0, sizeof(struct psp_gfx_cmd_resp)); in psp_v10_0_prep_cmd_buf() 156 cmd->cmd_id = GFX_CMD_ID_LOAD_IP_FW; in psp_v10_0_prep_cmd_buf() 157 cmd->cmd.cmd_load_ip_fw.fw_phy_addr_lo = lower_32_bits(fw_mem_mc_addr); in psp_v10_0_prep_cmd_buf() 158 cmd->cmd.cmd_load_ip_fw.fw_phy_addr_hi = upper_32_bits(fw_mem_mc_addr); in psp_v10_0_prep_cmd_buf() 159 cmd->cmd.cmd_load_ip_fw.fw_size = ucode->ucode_size; in psp_v10_0_prep_cmd_buf() 161 ret = psp_v10_0_get_fw_type(ucode, &cmd->cmd.cmd_load_ip_fw.fw_type); in psp_v10_0_prep_cmd_buf()
|