Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/uts/common/io/1394/targets/dcam1394/
H A Ddcam_reg.c42 cmd1394_cmd_t *cmdp; in dcam_reg_read() local
44 if (t1394_alloc_cmd(soft_state->sl_handle, 1, &cmdp) != DDI_SUCCESS) { in dcam_reg_read()
48 cmdp->cmd_type = CMD1394_ASYNCH_RD_QUAD; in dcam_reg_read()
49 cmdp->cmd_addr = 0x0000FFFFF0F00000 | in dcam_reg_read()
51 cmdp->cmd_options = CMD1394_BLOCKING; in dcam_reg_read()
62 if (t1394_read(soft_state->sl_handle, cmdp) != DDI_SUCCESS) { in dcam_reg_read()
63 (void) t1394_free_cmd(soft_state->sl_handle, 0, &cmdp); in dcam_reg_read()
67 if (cmdp->cmd_result != DDI_SUCCESS) { in dcam_reg_read()
68 (void) t1394_free_cmd(soft_state->sl_handle, 0, &cmdp); in dcam_reg_read()
73 cmdp->cmd_u.q.quadlet_data = T1394_DATA32(cmdp->cmd_u.q.quadlet_data); in dcam_reg_read()
[all …]
/illumos-gate/usr/src/uts/common/io/sdcard/impl/
H A Dsda_cmd.c94 #define CIP(cmdp) ((sda_cmd_impl_t *)(void *)cmdp) argument
149 sda_cmd_data(sda_cmd_t *cmdp) in sda_cmd_data() argument
151 return (CIP(cmdp)->c_private); in sda_cmd_data()
155 sda_cmd_errno(sda_cmd_t *cmdp) in sda_cmd_errno() argument
157 return (CIP(cmdp)->c_errno); in sda_cmd_errno()
161 sda_cmd_notify(sda_cmd_t *cmdp, uint16_t flags, sda_err_t errno) in sda_cmd_notify() argument
163 sda_cmd_impl_t *c = CIP(cmdp); in sda_cmd_notify()
181 c->c_done(cmdp); in sda_cmd_notify()
192 sda_cmd_wait(sda_cmd_t *cmdp) in sda_cmd_wait() argument
194 sda_cmd_impl_t *c = CIP(cmdp); in sda_cmd_wait()
[all …]
H A Dsda_slot.c122 sda_slot_check_response(sda_cmd_t *cmdp) in sda_slot_check_response() argument
125 switch (cmdp->sc_rtype & 0xf) { in sda_slot_check_response()
127 if ((errs = (cmdp->sc_response[0] & R1_ERRS)) != 0) { in sda_slot_check_response()
139 if ((errs = (cmdp->sc_response[0] & R5_ERRS)) != 0) { in sda_slot_check_response()
284 sda_cmd_t *cmdp; in sda_slot_abort() local
288 if ((cmdp = slot->s_xfrp) != NULL) { in sda_slot_abort()
290 sda_cmd_notify(cmdp, 0, errno); in sda_slot_abort()
291 list_insert_tail(&slot->s_abortlist, cmdp); in sda_slot_abort()
293 while ((cmdp = list_head(&slot->s_cmdlist)) != NULL) { in sda_slot_abort()
294 list_remove(&slot->s_cmdlist, cmdp); in sda_slot_abort()
[all …]
H A Dsda_mem.c86 sda_mem_done(sda_cmd_t *cmdp) in sda_mem_done() argument
88 bd_xfer_t *xfer = sda_cmd_data(cmdp); in sda_mem_done()
89 int errno = sda_cmd_errno(cmdp); in sda_mem_done()
92 sda_cmd_free(cmdp); in sda_mem_done()
98 sda_cmd_t *cmdp; in sda_mem_rw() local
112 cmdp = sda_cmd_alloc(slot, cmd, blkno << slot->s_bshift, in sda_mem_rw()
114 if (cmdp == NULL) { in sda_mem_rw()
119 cmdp->sc_dmah = xfer->x_dmah; in sda_mem_rw()
120 cmdp->sc_ndmac = xfer->x_ndmac; in sda_mem_rw()
121 cmdp->sc_dmac = xfer->x_dmac; in sda_mem_rw()
[all …]
H A Dsda_init.c64 sda_cmd_t *cmdp; in sda_init_cmd() local
67 cmdp = sda_cmd_alloc(slot, cmd, arg, rtype, NULL, KM_SLEEP); in sda_init_cmd()
69 cmdp->sc_flags |= SDA_CMDF_INIT; in sda_init_cmd()
71 errno = sda_cmd_exec(slot, cmdp, resp); in sda_init_cmd()
73 sda_cmd_free(cmdp); in sda_init_cmd()
82 sda_cmd_t *cmdp; in sda_init_acmd() local
85 cmdp = sda_cmd_alloc_acmd(slot, cmd, arg, rtype, NULL, KM_SLEEP); in sda_init_acmd()
87 cmdp->sc_flags |= SDA_CMDF_INIT; in sda_init_acmd()
89 errno = sda_cmd_exec(slot, cmdp, resp); in sda_init_acmd()
91 sda_cmd_free(cmdp); in sda_init_acmd()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/smartpqi/
H A Dsmartpqi.c223 display_cmd(pqi_cmd_t *cmdp) in display_cmd() argument
230 display_cdb(cmdp->pc_cdb); in display_cmd()
232 cmd_action_str(cmdp->pc_cur_action, tmpstr, tmplen)); in display_cmd()
234 cmd_action_str(cmdp->pc_last_action, tmpstr, tmplen)); in display_cmd()
235 display_scsi_status(cmdp->pc_cmd_scb); in display_cmd()
236 mdb_printf(" pc_dma_count\t\t\t%d\n", cmdp->pc_dma_count); in display_cmd()
237 mdb_printf(" pc_flags\t\t\t\t0x%x\n", cmdp->pc_flags); in display_cmd()
238 mdb_printf(" pc_statuslen\t\t\t%d\n", cmdp->pc_statuslen); in display_cmd()
239 mdb_printf(" pc_cmdlen\t\t\t\t%d\n", cmdp->pc_cmdlen); in display_cmd()
241 if (cmdp->pc_io_rqst == (pqi_io_request_t *)0) in display_cmd()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/
H A Dilbd_support.c173 i_get_kcmd_sz(void *cmdp) in i_get_kcmd_sz() argument
177 switch (((ilb_rule_cmd_t *)cmdp)->cmd) { in i_get_kcmd_sz()
194 ilb_servers_info_cmd_t *kcmd = (ilb_servers_info_cmd_t *)cmdp; in i_get_kcmd_sz()
201 ilb_rule_names_cmd_t *kcmd = (ilb_rule_names_cmd_t *)cmdp; in i_get_kcmd_sz()
210 ilb_servers_cmd_t *kcmd = (ilb_servers_cmd_t *)cmdp; in i_get_kcmd_sz()
227 do_ioctl(void *cmdp, ssize_t sz) in do_ioctl() argument
244 ioc.ic_dp = cmdp; in do_ioctl()
247 sz = i_get_kcmd_sz(cmdp); in do_ioctl()
260 *(ilb_cmd_t *)cmdp, strerror(errno)); in do_ioctl()
/illumos-gate/usr/src/boot/common/
H A Dinterp_forth.c76 struct bootblk_command **cmdp; in bf_command() local
87 SET_FOREACH(cmdp, Xcommand_set) { in bf_command()
88 if (((*cmdp)->c_name != NULL) && in bf_command()
89 strcmp(name, (*cmdp)->c_name) == 0) in bf_command()
90 cmd = (*cmdp)->c_fn; in bf_command()
264 struct bootblk_command **cmdp; in bf_init() local
292 SET_FOREACH(cmdp, Xcommand_set) { in bf_init()
293 ficlDictionaryAppendPrimitive(dict, (char *)(*cmdp)->c_name, in bf_init()
299 sprintf(create_buf, "builtin: %s", (*cmdp)->c_name); in bf_init()
H A Dinterp.c65 struct bootblk_command **cmdp; in perform() local
78 SET_FOREACH(cmdp, Xcommand_set) { in perform()
79 if (((*cmdp)->c_name != NULL) && !strcmp(argv[0], (*cmdp)->c_name)) in perform()
80 cmd = (*cmdp)->c_fn; in perform()
H A Dcommands.c227 struct bootblk_command **cmdp; in command_commandlist() local
234 SET_FOREACH(cmdp, Xcommand_set) { in command_commandlist()
237 if ((*cmdp)->c_name != NULL && (*cmdp)->c_desc != NULL) { in command_commandlist()
239 (*cmdp)->c_name); in command_commandlist()
241 pager_output((*cmdp)->c_desc); in command_commandlist()
/illumos-gate/usr/src/uts/sun/sys/dada/adapters/ghd/
H A Dghd.h121 #define GHD_GCMD_INIT(gcmdp, cmdp, gtgtp) \ argument
124 (gcmdp)->cmd_private = (cmdp), \
180 int (*ccc_timeout_func)(void *handle, gcmd_t *cmdp, gtgt_t *gtgtp,
213 void ghd_complete(ccc_t *cccp, gcmd_t *cmdp);
214 void ghd_async_complete(ccc_t *cccp, gcmd_t *cmdp);
215 void ghd_doneq_put(ccc_t *cccp, gcmd_t *cmdp);
236 int ghd_transport(ccc_t *cccp, gcmd_t *cmdp, gtgt_t *gtgtp,
239 int ghd_tran_abort(ccc_t *cccp, gcmd_t *cmdp, gtgt_t *gtgtp,
267 void ghd_timer_newstate(ccc_t *cccp, gcmd_t *cmdp, gtgt_t *gtgtp,
270 void ghd_timer_start(ccc_t *cccp, gcmd_t *cmdp, uint32_t cmd_timeout);
[all …]
/illumos-gate/usr/src/uts/intel/io/dktp/hba/ghd/
H A Dghd.h136 #define GHD_GCMD_INIT(gcmdp, cmdp, gtgtp) \ argument
139 (gcmdp)->cmd_private = (cmdp), \
193 int (*ccc_timeout_func)(void *handle, gcmd_t *cmdp, gtgt_t *gtgtp,
244 void ghd_complete(ccc_t *cccp, gcmd_t *cmdp);
245 void ghd_doneq_put_head(ccc_t *cccp, gcmd_t *cmdp);
246 void ghd_doneq_put_tail(ccc_t *cccp, gcmd_t *cmdp);
267 int ghd_transport(ccc_t *cccp, gcmd_t *cmdp, gtgt_t *gtgtp,
270 int ghd_tran_abort(ccc_t *cccp, gcmd_t *cmdp, gtgt_t *gtgtp,
304 void ghd_timer_newstate(ccc_t *cccp, gcmd_t *cmdp, gtgt_t *gtgtp,
307 void ghd_timer_start(ccc_t *cccp, gcmd_t *cmdp, long cmd_timeout);
[all …]
/illumos-gate/usr/src/uts/common/sys/1394/targets/scsa1394/
H A Dcmd.h122 #define CMD2PKT(cmdp) ((struct scsi_pkt *)((cmdp)->sc_pkt)) argument
124 #define CMD2TASK(cmdp) ((sbp2_task_t *)&(cmdp)->sc_task) argument
/illumos-gate/usr/src/uts/common/io/sdcard/adapters/sdhost/
H A Dsdhost.c1248 sdhost_get_response(sdslot_t *ss, sda_cmd_t *cmdp) in sdhost_get_response() argument
1250 uint32_t *resp = cmdp->sc_response; in sdhost_get_response()
1267 if (cmdp->sc_rtype == R2) { in sdhost_get_response()
1277 sdhost_wait_cmd(sdslot_t *ss, sda_cmd_t *cmdp) in sdhost_wait_cmd() argument
1306 sdhost_get_response(ss, cmdp); in sdhost_wait_cmd()
1350 sdhost_cmd(void *arg, sda_cmd_t *cmdp) in sdhost_cmd() argument
1368 command = ((uint16_t)cmdp->sc_index << 8); in sdhost_cmd()
1372 switch (cmdp->sc_rtype) { in sdhost_cmd()
1406 if (cmdp->sc_nblks != 0) { in sdhost_cmd()
1410 blksz = cmdp->sc_blksz; in sdhost_cmd()
[all …]
/illumos-gate/usr/src/common/ficl/emu/
H A Dloader_emu.c493 struct bootblk_command **cmdp; in bf_command() local
504 SET_FOREACH(cmdp, Xcommand_set) { in bf_command()
505 if (((*cmdp)->c_name != NULL) && in bf_command()
506 strcmp(name, (*cmdp)->c_name) == 0) in bf_command()
507 cmd = (*cmdp)->c_fn; in bf_command()
694 struct bootblk_command **cmdp; in bf_init() local
742 cmdp = NULL; in bf_init()
744 SET_FOREACH(cmdp, Xcommand_set) { in bf_init()
746 (char *)(*cmdp)->c_name, bf_command, FICL_WORD_DEFAULT); in bf_init()
753 (*cmdp)->c_name); in bf_init()
[all …]
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/
H A Ddm_platform.c114 parse_action_string(const char *actionString, char **cmdp, nvlist_t **propsp) in parse_action_string() argument
127 *cmdp = NULL; in parse_action_string()
131 *cmdp = dstrdup(tok); in parse_action_string()
173 if (*cmdp) { in parse_action_string()
174 dstrfree(*cmdp); in parse_action_string()
175 *cmdp = NULL; in parse_action_string()
/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/
H A Data_disk.h83 #define GCMD2CPKT(cmdp) ((struct cmpkt *)((cmdp)->cmd_pktp)) argument
/illumos-gate/usr/src/uts/common/sys/scsi/adapters/mpt_sas/
H A Dmptsas_var.h188 #define CMD2PKT(cmdp) ((struct scsi_pkt *)((cmdp)->cmd_pkt)) argument
1197 #define MPTSAS_WAITQ_RM(mpt, cmdp) \ argument
1198 if ((cmdp = mpt->m_waitq) != NULL) { \
1200 if ((mpt->m_waitq = cmdp->cmd_linkp) == NULL) \
1202 cmdp->cmd_linkp = NULL; \
1203 cmdp->cmd_queued = FALSE; \
1206 #define MPTSAS_TX_WAITQ_RM(mpt, cmdp) \ argument
1207 if ((cmdp = mpt->m_tx_waitq) != NULL) { \
1209 if ((mpt->m_tx_waitq = cmdp->cmd_linkp) == NULL) \
1211 cmdp->cmd_linkp = NULL; \
[all …]
/illumos-gate/usr/src/cmd/listen/
H A Dnstoa.c555 char *cmdp; /* pointer along cmd */ local
561 if ((cmd = cmdp = (char *)malloc(SBUFSIZE)) == NULL) {
577 esc = (*cmdp++ = *s++) == '\\';
579 *cmdp = '\0';
/illumos-gate/usr/src/uts/sun4u/io/
H A Dsbd.c367 sbd_cmd_t *cmdp, sbd_ioctl_arg_t *iap);
1583 sbd_copyin_ioarg(sbd_handle_t *hp, int mode, int cmd, sbd_cmd_t *cmdp, in sbd_copyin_ioarg() argument
1591 bzero((caddr_t)cmdp, sizeof (sbd_cmd_t)); in sbd_copyin_ioarg()
1606 cmdp->cmd_cm.c_id.c_type = scmd32.cmd_cm.c_id.c_type; in sbd_copyin_ioarg()
1607 cmdp->cmd_cm.c_id.c_unit = scmd32.cmd_cm.c_id.c_unit; in sbd_copyin_ioarg()
1609 &cmdp->cmd_cm.c_id.c_name[0], OBP_MAXPROPNAME); in sbd_copyin_ioarg()
1610 cmdp->cmd_cm.c_flags = scmd32.cmd_cm.c_flags; in sbd_copyin_ioarg()
1611 cmdp->cmd_cm.c_len = scmd32.cmd_cm.c_len; in sbd_copyin_ioarg()
1612 cmdp->cmd_cm.c_opts = (caddr_t)(uintptr_t)scmd32.cmd_cm.c_opts; in sbd_copyin_ioarg()
1623 cmdp->cmd_stat.s_nbytes = scmd32.cmd_stat.s_nbytes; in sbd_copyin_ioarg()
[all …]
/illumos-gate/usr/src/uts/common/sys/sbp2/
H A Dimpl.h86 #define SBP2_ALLOC_CMD(t, cmdp, f) \ argument
87 (t)->t_bus->sb_alloc_cmd((t)->t_bus_hdl, cmdp, f)
/illumos-gate/usr/src/uts/common/io/1394/
H A Ds1394_asynch.c64 s1394_alloc_cmd(s1394_hal_t *hal, uint_t flags, cmd1394_cmd_t **cmdp) in s1394_alloc_cmd() argument
86 *cmdp = kmem_cache_alloc(hal->hal_kmem_cachep, alloc_sleep); in s1394_alloc_cmd()
87 if (*cmdp == NULL) { in s1394_alloc_cmd()
92 bzero((void *)*cmdp, cmd_size); in s1394_alloc_cmd()
94 (*cmdp)->cmd_version = T1394_VERSION_V1; in s1394_alloc_cmd()
95 (*cmdp)->cmd_result = CMD1394_NOSTATUS; in s1394_alloc_cmd()
98 s_priv = S1394_GET_CMD_PRIV(*cmdp); in s1394_alloc_cmd()
123 s1394_free_cmd(s1394_hal_t *hal, cmd1394_cmd_t **cmdp) in s1394_free_cmd() argument
128 s_priv = S1394_GET_CMD_PRIV(*cmdp); in s1394_free_cmd()
137 kmem_cache_free(hal->hal_kmem_cachep, *cmdp); in s1394_free_cmd()
[all …]
H A Dh1394.c362 h1394_alloc_cmd(void *sl_private, uint_t flags, cmd1394_cmd_t **cmdp, in h1394_alloc_cmd() argument
370 if (s1394_alloc_cmd(hal, flags, cmdp) != DDI_SUCCESS) { in h1394_alloc_cmd()
375 s_priv = S1394_GET_CMD_PRIV(*cmdp); in h1394_alloc_cmd()
397 h1394_free_cmd(void *sl_private, cmd1394_cmd_t **cmdp) in h1394_free_cmd() argument
405 s_priv = S1394_GET_CMD_PRIV(*cmdp); in h1394_free_cmd()
413 kmem_cache_free(hal->hal_kmem_cachep, *cmdp); in h1394_free_cmd()
416 *cmdp = NULL; in h1394_free_cmd()
/illumos-gate/usr/src/cmd/csh/
H A Dsh.proc.c410 tchar *cmdp; variable
429 cmdp = command; in palloc()
432 *cmdp++ = 0; in palloc()
551 (void) strcpy_(cmdp, S_SPPPP /* " ..." */); in pads()
553 cmdp += 4; in pads()
556 (void) strcpy_(cmdp, cp); in pads()
557 cmdp += i; in pads()
/illumos-gate/usr/src/uts/common/sys/1394/
H A Dh1394.h279 int h1394_alloc_cmd(void *sl_private, uint_t flags, cmd1394_cmd_t **cmdp,
285 int h1394_free_cmd(void *sl_private, cmd1394_cmd_t **cmdp);

12