/freebsd/usr.sbin/spi/ |
H A D | spi.c | 66 int ncmd; /* bytes to skip for incoming data */ member 180 opt.ncmd = 0; in main() 301 if ((opt.count != 0 || opt.ncmd != 0) && fdir == DIR_NONE) { in main() 448 popt->ncmd = ctr; /* record num bytes in '-C' argument */ in interpret_command_bytes() 524 int ch, ch2, ch3, ncmd, lsb, err; in prep_write_buffer() local 529 ncmd = popt->ncmd; /* num command bytes (can be zero) */ in prep_write_buffer() 531 if (ncmd == 0 && popt->count == 0) in prep_write_buffer() 544 pdata = malloc(cbdata + ncmd + 1); in prep_write_buffer() 552 if (popt->pcmd && ncmd > 0) { in prep_write_buffer() 553 memcpy(pdata, popt->pcmd, ncmd); /* copy command bytes */ in prep_write_buffer() [all …]
|
/freebsd/sys/dev/liquidio/ |
H A D | lio_core.c | 55 nctrl.ncmd.cmd64 = 0; in lio_set_feature() 56 nctrl.ncmd.s.cmd = cmd; in lio_set_feature() 57 nctrl.ncmd.s.param1 = param1; in lio_set_feature() 87 switch (nctrl->ncmd.s.cmd) { in lio_ctrl_cmd_completion() 94 if (nctrl->ncmd.s.param1) { in lio_ctrl_cmd_completion() 96 int vfidx = nctrl->ncmd.s.param1 - 1; in lio_ctrl_cmd_completion() 97 bool mac_is_admin_assigned = nctrl->ncmd.s.param2; in lio_ctrl_cmd_completion() 134 if (nctrl->ncmd.s.param1) in lio_ctrl_cmd_completion() 142 nctrl->ncmd.s.param1); in lio_ctrl_cmd_completion() 147 nctrl->ncmd.s.param1); in lio_ctrl_cmd_completion() [all …]
|
H A D | lio_ioctl.c | 75 nctrl.ncmd.cmd64 = 0; in lio_change_dev_flags() 76 nctrl.ncmd.s.cmd = LIO_CMD_CHANGE_DEVFLAGS; in lio_change_dev_flags() 77 nctrl.ncmd.s.param1 = lio_get_new_flags(ifp); in lio_change_dev_flags() 345 union octeon_cmd *ncmd; in lio_change_mtu() local 368 ncmd = (union octeon_cmd *)sc->virtdptr; in lio_change_mtu() 373 ncmd->cmd64 = 0; in lio_change_mtu() 374 ncmd->s.cmd = LIO_CMD_CHANGE_MTU; in lio_change_mtu() 375 ncmd->s.param1 = new_mtu; in lio_change_mtu() 377 lio_swap_8B_data((uint64_t *)ncmd, (OCTEON_CMD_SIZE >> 3)); in lio_change_mtu() 435 nctrl.ncmd.cmd64 = 0; in lio_set_mac() [all …]
|
H A D | lio_main.c | 1623 nctrl.ncmd.cmd64 = 0; in lio_set_rxcsum_command() 1624 nctrl.ncmd.s.cmd = command; in lio_set_rxcsum_command() 1625 nctrl.ncmd.s.param1 = rx_cmd; in lio_set_rxcsum_command() 2009 union octeon_cmd *ncmd; in lio_send_rx_ctrl_cmd() local 2021 ncmd = (union octeon_cmd *)sc->virtdptr; in lio_send_rx_ctrl_cmd() 2026 ncmd->cmd64 = 0; in lio_send_rx_ctrl_cmd() 2027 ncmd->s.cmd = LIO_CMD_RX_CTL; in lio_send_rx_ctrl_cmd() 2028 ncmd->s.param1 = start_stop; in lio_send_rx_ctrl_cmd() 2030 lio_swap_8B_data((uint64_t *)ncmd, (OCTEON_CMD_SIZE >> 3)); in lio_send_rx_ctrl_cmd() 2072 nctrl.ncmd.cmd64 = 0; in lio_vlan_rx_add_vid() [all …]
|
H A D | lio_sysctl.c | 116 nctrl.ncmd.cmd64 = 0; in lio_send_queue_count_update() 117 nctrl.ncmd.s.cmd = LIO_CMD_QUEUE_COUNT_CTL; in lio_send_queue_count_update() 118 nctrl.ncmd.s.param1 = num_queues; in lio_send_queue_count_update() 119 nctrl.ncmd.s.param2 = num_queues; in lio_send_queue_count_update() 693 nctrl.ncmd.cmd64 = 0; in lio_get_set_pauseparam() 694 nctrl.ncmd.s.cmd = LIO_CMD_SET_FLOW_CTL; in lio_get_set_pauseparam() 702 nctrl.ncmd.s.param1 = 1; in lio_get_set_pauseparam() 705 nctrl.ncmd.s.param1 = 0; in lio_get_set_pauseparam() 710 nctrl.ncmd.s.param2 = 1; in lio_get_set_pauseparam() 713 nctrl.ncmd.s.param2 = 0; in lio_get_set_pauseparam()
|
/freebsd/contrib/tcsh/ |
H A D | ma.setp.c | 158 int ncmd; in setpath() local 166 for (ncmd = 0; cmd = cmds[ncmd]; ncmd++) { in setpath() 169 cmd1 = cmds[ncmd+1]; in setpath() 170 cmd2 = cmds[ncmd+2]; in setpath() 179 ncmd++; in setpath() 183 ncmd++; in setpath() 189 ncmd += 2; in setpath() 199 ncmd++; in setpath() 210 ncmd += 2; in setpath() 214 ncmd++; in setpath()
|
/freebsd/sys/dev/liquidio/base/ |
H A D | lio_ctrl.c | 80 uddsize = (uint32_t)(nctrl->ncmd.s.more * 8); in lio_alloc_ctrl_pkt_sc() 95 memcpy(data, &nctrl->ncmd, OCTEON_CMD_SIZE); in lio_alloc_ctrl_pkt_sc() 127 (nctrl->ncmd.s.cmd != LIO_CMD_RX_CTL)) { in lio_send_ctrl_pkt() 130 __func__, nctrl->ncmd.s.cmd); in lio_send_ctrl_pkt() 145 __func__, oct->pf_num, nctrl->ncmd.s.cmd, retval); in lio_send_ctrl_pkt()
|
H A D | lio_ctrl.h | 53 union octeon_cmd ncmd; member
|
/freebsd/sys/contrib/openzfs/lib/libzfs_core/os/freebsd/ |
H A D | libzfs_core_ioctl.c | 54 unsigned long ncmd; in zcmd_ioctl_compat() local 59 ncmd = _IOWR('Z', request, zfs_iocparm_t); in zcmd_ioctl_compat() 67 ncmd = _IOWR('Z', newrequest, zfs_iocparm_t); in zcmd_ioctl_compat() 80 ret = ioctl(fd, ncmd, &zp); in zcmd_ioctl_compat()
|
/freebsd/bin/sh/ |
H A D | eval.c | 847 for (argp = cmd->ncmd.args ; argp ; argp = argp->narg.next) { in evalcommand() 857 expredir(cmd->ncmd.redirect); in evalcommand() 987 cmd->ncmd.redirect == NULL && in evalcommand() 1040 redirect(cmd->ncmd.redirect, REDIR_PUSH); in evalcommand() 1084 redirect(cmd->ncmd.redirect, mode); in evalcommand() 1139 redirect(cmd->ncmd.redirect, 0); in evalcommand() 1184 if (n && n->type == NCMD && n->ncmd.args) in prehash() 1185 if (goodname(n->ncmd.args->narg.text)) in prehash() 1186 find_command(n->ncmd.args->narg.text, &entry, 0, in prehash()
|
H A D | show.c | 124 for (np = cmd->ncmd.args ; np ; np = np->narg.next) { in shcmd() 130 for (np = cmd->ncmd.redirect ; np ; np = np->nfile.next) { in shcmd()
|
H A D | nodetypes | 54 NCMD ncmd # a simple command
|
H A D | parser.c | 688 n = (union node *)stalloc(sizeof (struct ncmd)); in simplecmd() 690 n->ncmd.args = args; in simplecmd() 691 n->ncmd.redirect = redir; in simplecmd()
|
H A D | jobs.c | 1455 for (np = n->ncmd.args ; np ; np = np->narg.next) { in cmdtxt() 1460 for (np = n->ncmd.redirect ; np ; np = np->nfile.next) { in cmdtxt()
|
/freebsd/sys/dev/nvmf/host/ |
H A D | nvmf_qpair.c | 288 struct nvmf_host_command *cmd, *ncmd; in nvmf_init_qp() local 325 TAILQ_FOREACH_SAFE(cmd, &qp->free_commands, link, ncmd) { in nvmf_init_qp() 405 struct nvmf_host_command *cmd, *ncmd; in nvmf_destroy_qp() local 410 TAILQ_FOREACH_SAFE(cmd, &qp->free_commands, link, ncmd) { in nvmf_destroy_qp()
|
/freebsd/sys/dev/mlx/ |
H A D | mlx.c | 237 int error, ncmd; in mlx_sglist_map() local 259 ncmd = 2; in mlx_sglist_map() 261 ncmd = sc->mlx_enq2->me_max_commands; in mlx_sglist_map() 263 segsize = sizeof(struct mlx_sgentry) * MLX_NSEG * ncmd; in mlx_sglist_map()
|
/freebsd/sys/net/ |
H A D | rtsock.c | 1998 int ncmd; in rtsock_addrmsg() local 2007 ncmd = cmd == RTM_ADD ? RTM_NEWADDR : RTM_DELADDR; in rtsock_addrmsg() 2015 if ((m = rtsock_msg_mbuf(ncmd, &info)) == NULL) in rtsock_addrmsg()
|