/linux-2.6.39/tools/perf/util/ |
D | run-command.c | 18 int start_command(struct child_process *cmd) in start_command() argument 28 need_in = !cmd->no_stdin && cmd->in < 0; in start_command() 31 if (cmd->out > 0) in start_command() 32 close(cmd->out); in start_command() 35 cmd->in = fdin[1]; in start_command() 38 need_out = !cmd->no_stdout in start_command() 39 && !cmd->stdout_to_stderr in start_command() 40 && cmd->out < 0; in start_command() 45 else if (cmd->in) in start_command() 46 close(cmd->in); in start_command() [all …]
|
/linux-2.6.39/drivers/target/ |
D | target_core_transport.c | 206 static void transport_complete_task_attr(struct se_cmd *cmd); 207 static void transport_direct_request_timeout(struct se_cmd *cmd); 208 static void transport_free_dev_tasks(struct se_cmd *cmd); 209 static u32 transport_generic_get_cdb_count(struct se_cmd *cmd, 213 static int transport_generic_get_mem(struct se_cmd *cmd, u32 length, 215 static int transport_generic_remove(struct se_cmd *cmd, 217 static int transport_get_sectors(struct se_cmd *cmd); 219 static int transport_map_sg_to_mem(struct se_cmd *cmd, 222 static void transport_memcpy_se_mem_read_contig(struct se_cmd *cmd, 224 static void transport_release_fe_cmd(struct se_cmd *cmd); [all …]
|
D | target_core_tmr.c | 85 struct se_cmd *cmd, in core_tmr_handle_tas_abort() argument 90 transport_cmd_finish_abort(cmd, 1); in core_tmr_handle_tas_abort() 97 (tmr_nacl == cmd->se_sess->se_node_acl)) || tas) in core_tmr_handle_tas_abort() 98 transport_send_task_abort(cmd); in core_tmr_handle_tas_abort() 100 transport_cmd_finish_abort(cmd, 0); in core_tmr_handle_tas_abort() 109 struct se_cmd *cmd; in core_tmr_lun_reset() local 159 cmd = tmr_p->task_cmd; in core_tmr_lun_reset() 160 if (!(cmd)) { in core_tmr_lun_reset() 171 preempt_and_abort_list, cmd) != 0)) in core_tmr_lun_reset() 175 spin_lock_irqsave(&T_TASK(cmd)->t_state_lock, flags); in core_tmr_lun_reset() [all …]
|
/linux-2.6.39/drivers/staging/comedi/drivers/ |
D | pcm_common.c | 9 struct comedi_subdevice *s, struct comedi_cmd *cmd) in comedi_pcm_cmdtest() argument 16 tmp = cmd->start_src; in comedi_pcm_cmdtest() 17 cmd->start_src &= (TRIG_NOW | TRIG_INT); in comedi_pcm_cmdtest() 18 if (!cmd->start_src || tmp != cmd->start_src) in comedi_pcm_cmdtest() 21 tmp = cmd->scan_begin_src; in comedi_pcm_cmdtest() 22 cmd->scan_begin_src &= TRIG_EXT; in comedi_pcm_cmdtest() 23 if (!cmd->scan_begin_src || tmp != cmd->scan_begin_src) in comedi_pcm_cmdtest() 26 tmp = cmd->convert_src; in comedi_pcm_cmdtest() 27 cmd->convert_src &= TRIG_NOW; in comedi_pcm_cmdtest() 28 if (!cmd->convert_src || tmp != cmd->convert_src) in comedi_pcm_cmdtest() [all …]
|
D | skel.c | 201 struct comedi_subdevice *s, struct comedi_cmd *cmd); 358 struct comedi_subdevice *s, struct comedi_cmd *cmd) in skel_ai_cmdtest() argument 372 tmp = cmd->start_src; in skel_ai_cmdtest() 373 cmd->start_src &= TRIG_NOW; in skel_ai_cmdtest() 374 if (!cmd->start_src || tmp != cmd->start_src) in skel_ai_cmdtest() 377 tmp = cmd->scan_begin_src; in skel_ai_cmdtest() 378 cmd->scan_begin_src &= TRIG_TIMER | TRIG_EXT; in skel_ai_cmdtest() 379 if (!cmd->scan_begin_src || tmp != cmd->scan_begin_src) in skel_ai_cmdtest() 382 tmp = cmd->convert_src; in skel_ai_cmdtest() 383 cmd->convert_src &= TRIG_TIMER | TRIG_EXT; in skel_ai_cmdtest() [all …]
|
/linux-2.6.39/drivers/media/video/cpia2/ |
D | cpia2_core.c | 141 struct cpia2_command cmd; in cpia2_do_command() local 144 cmd.command = command; in cpia2_do_command() 145 cmd.reg_count = 2; /* default */ in cpia2_do_command() 146 cmd.direction = direction; in cpia2_do_command() 153 cmd.req_mode = in cpia2_do_command() 155 cmd.start = CPIA2_SYSTEM_DEVICE_HI; in cpia2_do_command() 158 cmd.req_mode = in cpia2_do_command() 160 cmd.reg_count = 8; in cpia2_do_command() 161 cmd.start = CPIA2_SYSTEM_DESCRIP_VID_HI; in cpia2_do_command() 164 cmd.req_mode = CAMERAACCESS_TYPE_BLOCK | CAMERAACCESS_VC; in cpia2_do_command() [all …]
|
/linux-2.6.39/drivers/net/wireless/iwmc3200wifi/ |
D | hal.c | 111 struct iwm_nonwifi_cmd *cmd, in iwm_nonwifi_cmd_init() argument 114 INIT_LIST_HEAD(&cmd->pending); in iwm_nonwifi_cmd_init() 118 cmd->resp_received = 0; in iwm_nonwifi_cmd_init() 120 cmd->seq_num = iwm->nonwifi_seq_num; in iwm_nonwifi_cmd_init() 121 udma_cmd->seq_num = cpu_to_le16(cmd->seq_num); in iwm_nonwifi_cmd_init() 127 list_add_tail(&cmd->pending, &iwm->nonwifi_pending_cmd); in iwm_nonwifi_cmd_init() 131 cmd->buf.start = cmd->buf.payload; in iwm_nonwifi_cmd_init() 132 cmd->buf.len = 0; in iwm_nonwifi_cmd_init() 134 memcpy(&cmd->udma_cmd, udma_cmd, sizeof(*udma_cmd)); in iwm_nonwifi_cmd_init() 136 return cmd->seq_num; in iwm_nonwifi_cmd_init() [all …]
|
/linux-2.6.39/drivers/ide/ |
D | ide-taskfile.c | 26 void ide_tf_readback(ide_drive_t *drive, struct ide_cmd *cmd) in ide_tf_readback() argument 34 tp_ops->tf_read(drive, &cmd->tf, cmd->valid.in.tf); in ide_tf_readback() 36 if (cmd->tf_flags & IDE_TFLAG_LBA48) { in ide_tf_readback() 39 tp_ops->tf_read(drive, &cmd->hob, cmd->valid.in.hob); in ide_tf_readback() 43 void ide_tf_dump(const char *s, struct ide_cmd *cmd) in ide_tf_dump() argument 48 s, cmd->tf.feature, cmd->tf.nsect, in ide_tf_dump() 49 cmd->tf.lbal, cmd->tf.lbam, cmd->tf.lbah, in ide_tf_dump() 50 cmd->tf.device, cmd->tf.command); in ide_tf_dump() 52 s, cmd->hob.nsect, cmd->hob.lbal, cmd->hob.lbam, cmd->hob.lbah); in ide_tf_dump() 58 struct ide_cmd cmd; in taskfile_lib_get_identify() local [all …]
|
/linux-2.6.39/drivers/mmc/core/ |
D | sd_ops.c | 27 struct mmc_command cmd; in mmc_app_cmd() local 32 cmd.opcode = MMC_APP_CMD; in mmc_app_cmd() 35 cmd.arg = card->rca << 16; in mmc_app_cmd() 36 cmd.flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | MMC_CMD_AC; in mmc_app_cmd() 38 cmd.arg = 0; in mmc_app_cmd() 39 cmd.flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | MMC_CMD_BCR; in mmc_app_cmd() 42 err = mmc_wait_for_cmd(host, &cmd, 0); in mmc_app_cmd() 47 if (!mmc_host_is_spi(host) && !(cmd.resp[0] & R1_APP_CMD)) in mmc_app_cmd() 67 struct mmc_command *cmd, int retries) in mmc_wait_for_app_cmd() argument 73 BUG_ON(!cmd); in mmc_wait_for_app_cmd() [all …]
|
D | mmc_ops.c | 26 struct mmc_command cmd; in _mmc_select_card() local 30 memset(&cmd, 0, sizeof(struct mmc_command)); in _mmc_select_card() 32 cmd.opcode = MMC_SELECT_CARD; in _mmc_select_card() 35 cmd.arg = card->rca << 16; in _mmc_select_card() 36 cmd.flags = MMC_RSP_R1 | MMC_CMD_AC; in _mmc_select_card() 38 cmd.arg = 0; in _mmc_select_card() 39 cmd.flags = MMC_RSP_NONE | MMC_CMD_AC; in _mmc_select_card() 42 err = mmc_wait_for_cmd(host, &cmd, MMC_CMD_RETRIES); in _mmc_select_card() 63 struct mmc_command cmd; in mmc_card_sleepawake() local 70 memset(&cmd, 0, sizeof(struct mmc_command)); in mmc_card_sleepawake() [all …]
|
D | sdio_ops.c | 24 struct mmc_command cmd; in mmc_send_io_op_cond() local 29 memset(&cmd, 0, sizeof(struct mmc_command)); in mmc_send_io_op_cond() 31 cmd.opcode = SD_IO_SEND_OP_COND; in mmc_send_io_op_cond() 32 cmd.arg = ocr; in mmc_send_io_op_cond() 33 cmd.flags = MMC_RSP_SPI_R4 | MMC_RSP_R4 | MMC_CMD_BCR; in mmc_send_io_op_cond() 36 err = mmc_wait_for_cmd(host, &cmd, MMC_CMD_RETRIES); in mmc_send_io_op_cond() 52 if (cmd.resp[1] & MMC_CARD_BUSY) in mmc_send_io_op_cond() 55 if (cmd.resp[0] & MMC_CARD_BUSY) in mmc_send_io_op_cond() 65 *rocr = cmd.resp[mmc_host_is_spi(host) ? 1 : 0]; in mmc_send_io_op_cond() 73 struct mmc_command cmd; in mmc_io_rw_direct_host() local [all …]
|
/linux-2.6.39/include/linux/ |
D | fcntl.h | 58 #define IS_GETLK32(cmd) ((cmd) == F_GETLK) argument 59 #define IS_SETLK32(cmd) ((cmd) == F_SETLK) argument 60 #define IS_SETLKW32(cmd) ((cmd) == F_SETLKW) argument 61 #define IS_GETLK64(cmd) ((cmd) == F_GETLK64) argument 62 #define IS_SETLK64(cmd) ((cmd) == F_SETLK64) argument 63 #define IS_SETLKW64(cmd) ((cmd) == F_SETLKW64) argument 65 #define IS_GETLK32(cmd) (0) argument 66 #define IS_SETLK32(cmd) (0) argument 67 #define IS_SETLKW32(cmd) (0) argument 68 #define IS_GETLK64(cmd) ((cmd) == F_GETLK) argument [all …]
|
/linux-2.6.39/drivers/net/wireless/libertas/ |
D | cmd.c | 64 static u8 is_command_allowed_in_ps(u16 cmd) in is_command_allowed_in_ps() argument 66 switch (cmd) { in is_command_allowed_in_ps() 86 struct cmd_ds_get_hw_spec cmd; in lbs_update_hw_spec() local 92 memset(&cmd, 0, sizeof(cmd)); in lbs_update_hw_spec() 93 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); in lbs_update_hw_spec() 94 memcpy(cmd.permanentaddr, priv->current_addr, ETH_ALEN); in lbs_update_hw_spec() 95 ret = lbs_cmd_with_response(priv, CMD_GET_HW_SPEC, &cmd); in lbs_update_hw_spec() 99 priv->fwcapinfo = le32_to_cpu(cmd.fwcapinfo); in lbs_update_hw_spec() 103 priv->fwrelease = le32_to_cpu(cmd.fwrelease); in lbs_update_hw_spec() 112 cmd.permanentaddr, in lbs_update_hw_spec() [all …]
|
/linux-2.6.39/drivers/macintosh/ |
D | smu.c | 69 u8 cmd; member 113 struct smu_cmd *cmd; in smu_start_cmd() local 119 cmd = list_entry(smu->cmd_list.next, struct smu_cmd, link); in smu_start_cmd() 120 smu->cmd_cur = cmd; in smu_start_cmd() 121 list_del(&cmd->link); in smu_start_cmd() 123 DPRINTK("SMU: starting cmd %x, %d bytes data\n", cmd->cmd, in smu_start_cmd() 124 cmd->data_len); in smu_start_cmd() 126 ((u8 *)cmd->data_buf)[0], ((u8 *)cmd->data_buf)[1], in smu_start_cmd() 127 ((u8 *)cmd->data_buf)[2], ((u8 *)cmd->data_buf)[3], in smu_start_cmd() 128 ((u8 *)cmd->data_buf)[4], ((u8 *)cmd->data_buf)[5], in smu_start_cmd() [all …]
|
/linux-2.6.39/include/scsi/ |
D | scsi_cmnd.h | 139 extern void scsi_finish_command(struct scsi_cmnd *cmd); 145 extern int scsi_init_io(struct scsi_cmnd *cmd, gfp_t gfp_mask); 146 extern void scsi_release_buffers(struct scsi_cmnd *cmd); 148 extern int scsi_dma_map(struct scsi_cmnd *cmd); 149 extern void scsi_dma_unmap(struct scsi_cmnd *cmd); 152 void scsi_free_command(gfp_t gfp_mask, struct scsi_cmnd *cmd); 154 static inline unsigned scsi_sg_count(struct scsi_cmnd *cmd) in scsi_sg_count() argument 156 return cmd->sdb.table.nents; in scsi_sg_count() 159 static inline struct scatterlist *scsi_sglist(struct scsi_cmnd *cmd) in scsi_sglist() argument 161 return cmd->sdb.table.sgl; in scsi_sglist() [all …]
|
/linux-2.6.39/drivers/net/wireless/wl12xx/ |
D | cmd.c | 54 struct wl1271_cmd_header *cmd; in wl1271_cmd_send() local 61 cmd = buf; in wl1271_cmd_send() 62 cmd->id = cpu_to_le16(id); in wl1271_cmd_send() 63 cmd->status = 0; in wl1271_cmd_send() 94 wl1271_read(wl, wl->cmd_box_addr, cmd, res_len, false); in wl1271_cmd_send() 96 status = le16_to_cpu(cmd->status); in wl1271_cmd_send() 414 struct cmd_enabledisable_path *cmd; in wl1271_cmd_data_path() local 420 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl1271_cmd_data_path() 421 if (!cmd) { in wl1271_cmd_data_path() 427 cmd->channel = 1; in wl1271_cmd_data_path() [all …]
|
/linux-2.6.39/drivers/scsi/ |
D | scsi.c | 73 static void scsi_done(struct scsi_cmnd *cmd); 173 struct scsi_cmnd *cmd; in scsi_pool_alloc_command() local 175 cmd = kmem_cache_zalloc(pool->cmd_slab, gfp_mask | pool->gfp_mask); in scsi_pool_alloc_command() 176 if (!cmd) in scsi_pool_alloc_command() 179 cmd->sense_buffer = kmem_cache_alloc(pool->sense_slab, in scsi_pool_alloc_command() 181 if (!cmd->sense_buffer) { in scsi_pool_alloc_command() 182 kmem_cache_free(pool->cmd_slab, cmd); in scsi_pool_alloc_command() 186 return cmd; in scsi_pool_alloc_command() 199 struct scsi_cmnd *cmd) in scsi_pool_free_command() argument 201 if (cmd->prot_sdb) in scsi_pool_free_command() [all …]
|
D | in2000.c | 208 static inline void write_3393_cmd(struct IN2000_hostdata *hostdata, uchar cmd) in write_3393_cmd() argument 213 write1_io(cmd, IO_WD_DATA); in write_3393_cmd() 258 static int is_dir_out(Scsi_Cmnd * cmd) in is_dir_out() argument 260 switch (cmd->cmnd[0]) { in is_dir_out() 337 static int in2000_queuecommand_lck(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *)) in in2000_queuecommand_lck() argument 343 instance = cmd->device->host; in in2000_queuecommand_lck() 346 DB(DB_QUEUE_COMMAND, scmd_printk(KERN_DEBUG, cmd, "Q-%02x-%ld(", cmd->cmnd[0], cmd->serial_number)) in in2000_queuecommand_lck() 353 cmd->host_scribble = NULL; in in2000_queuecommand_lck() 354 cmd->scsi_done = done; in in2000_queuecommand_lck() 355 cmd->result = 0; in in2000_queuecommand_lck() [all …]
|
D | sun3_NCR5380.c | 269 #define NEXT(cmd) (*(struct scsi_cmnd **)&((cmd)->host_scribble)) argument 270 #define NEXTADDR(cmd) ((struct scsi_cmnd **)&((cmd)->host_scribble)) argument 273 #define H_NO(cmd) (cmd)->device->host->host_no argument 362 static int is_lun_busy(struct scsi_cmnd *cmd, int should_be_tagged) in is_lun_busy() argument 364 SETUP_HOSTDATA(cmd->device->host); in is_lun_busy() 366 if (hostdata->busy[cmd->device->id] & (1 << cmd->device->lun)) in is_lun_busy() 369 !setup_use_tagged_queuing || !cmd->device->tagged_supported) in is_lun_busy() 371 if (TagAlloc[cmd->device->id][cmd->device->lun].nr_allocated >= in is_lun_busy() 372 TagAlloc[cmd->device->id][cmd->device->lun].queue_size ) { in is_lun_busy() 374 H_NO(cmd), cmd->device->id, cmd->device->lun ); in is_lun_busy() [all …]
|
D | atari_NCR5380.c | 275 #define NEXT(cmd) ((Scsi_Cmnd *)(cmd)->host_scribble) argument 276 #define SET_NEXT(cmd,next) ((cmd)->host_scribble = (void *)(next)) argument 277 #define NEXTADDR(cmd) ((Scsi_Cmnd **)&(cmd)->host_scribble) argument 280 #define H_NO(cmd) (cmd)->device->host->host_no argument 362 static int is_lun_busy(Scsi_Cmnd *cmd, int should_be_tagged) in is_lun_busy() argument 364 SETUP_HOSTDATA(cmd->device->host); in is_lun_busy() 366 if (hostdata->busy[cmd->device->id] & (1 << cmd->device->lun)) in is_lun_busy() 369 !setup_use_tagged_queuing || !cmd->device->tagged_supported) in is_lun_busy() 371 if (TagAlloc[cmd->device->id][cmd->device->lun].nr_allocated >= in is_lun_busy() 372 TagAlloc[cmd->device->id][cmd->device->lun].queue_size) { in is_lun_busy() [all …]
|
/linux-2.6.39/arch/powerpc/platforms/powermac/ |
D | pfunc_core.c | 96 static u32 pmf_next32(struct pmf_cmd *cmd) in pmf_next32() argument 99 if ((cmd->cmdend - cmd->cmdptr) < 4) { in pmf_next32() 100 cmd->error = 1; in pmf_next32() 103 value = *((u32 *)cmd->cmdptr); in pmf_next32() 104 cmd->cmdptr += 4; in pmf_next32() 108 static const void* pmf_next_blob(struct pmf_cmd *cmd, int count) in pmf_next_blob() argument 111 if ((cmd->cmdend - cmd->cmdptr) < count) { in pmf_next_blob() 112 cmd->error = 1; in pmf_next_blob() 115 value = cmd->cmdptr; in pmf_next_blob() 116 cmd->cmdptr += count; in pmf_next_blob() [all …]
|
/linux-2.6.39/drivers/net/wireless/iwlegacy/ |
D | iwl-hcmd.c | 40 const char *iwl_legacy_get_cmd_string(u8 cmd) in iwl_legacy_get_cmd_string() argument 42 switch (cmd) { in iwl_legacy_get_cmd_string() 94 struct iwl_device_cmd *cmd, in iwl_legacy_generic_cmd_callback() argument 99 iwl_legacy_get_cmd_string(cmd->hdr.cmd), pkt->hdr.flags); in iwl_legacy_generic_cmd_callback() 104 switch (cmd->hdr.cmd) { in iwl_legacy_generic_cmd_callback() 108 iwl_legacy_get_cmd_string(cmd->hdr.cmd), pkt->hdr.flags); in iwl_legacy_generic_cmd_callback() 112 iwl_legacy_get_cmd_string(cmd->hdr.cmd), pkt->hdr.flags); in iwl_legacy_generic_cmd_callback() 118 iwl_legacy_send_cmd_async(struct iwl_priv *priv, struct iwl_host_cmd *cmd) in iwl_legacy_send_cmd_async() argument 122 BUG_ON(!(cmd->flags & CMD_ASYNC)); in iwl_legacy_send_cmd_async() 125 BUG_ON(cmd->flags & CMD_WANT_SKB); in iwl_legacy_send_cmd_async() [all …]
|
/linux-2.6.39/drivers/net/mlx4/ |
D | cmd.c | 146 u32 status = readl(mlx4_priv(dev)->cmd.hcr + HCR_STATUS_OFFSET); in cmd_pending() 149 (mlx4_priv(dev)->cmd.toggle == in cmd_pending() 157 struct mlx4_cmd *cmd = &mlx4_priv(dev)->cmd; in mlx4_cmd_post() local 158 u32 __iomem *hcr = cmd->hcr; in mlx4_cmd_post() 162 mutex_lock(&cmd->hcr_mutex); in mlx4_cmd_post() 191 (cmd->toggle << HCR_T_BIT) | in mlx4_cmd_post() 202 cmd->toggle = cmd->toggle ^ 1; in mlx4_cmd_post() 207 mutex_unlock(&cmd->hcr_mutex); in mlx4_cmd_post() 216 void __iomem *hcr = priv->cmd.hcr; in mlx4_cmd_poll() 220 down(&priv->cmd.poll_sem); in mlx4_cmd_poll() [all …]
|
/linux-2.6.39/drivers/net/cxgb4vf/ |
D | t4vf_hw.c | 116 int t4vf_wr_mbox_core(struct adapter *adapter, const void *cmd, int size, in t4vf_wr_mbox_core() argument 160 for (i = 0, p = cmd; i < size; i += 8) in t4vf_wr_mbox_core() 213 WARN_ON((be32_to_cpu(*(const u32 *)cmd) in t4vf_wr_mbox_core() 349 struct fw_reset_cmd cmd; in t4vf_fw_reset() local 351 memset(&cmd, 0, sizeof(cmd)); in t4vf_fw_reset() 352 cmd.op_to_write = cpu_to_be32(FW_CMD_OP(FW_RESET_CMD) | in t4vf_fw_reset() 354 cmd.retval_len16 = cpu_to_be32(FW_LEN16(cmd)); in t4vf_fw_reset() 355 return t4vf_wr_mbox(adapter, &cmd, sizeof(cmd), NULL); in t4vf_fw_reset() 372 struct fw_params_cmd cmd, rpl; in t4vf_query_params() local 379 memset(&cmd, 0, sizeof(cmd)); in t4vf_query_params() [all …]
|
/linux-2.6.39/drivers/net/wireless/wl1251/ |
D | cmd.c | 23 struct wl1251_cmd_header *cmd; in wl1251_cmd_send() local 28 cmd = buf; in wl1251_cmd_send() 29 cmd->id = id; in wl1251_cmd_send() 30 cmd->status = 0; in wl1251_cmd_send() 131 if (acx->cmd.status != CMD_STATUS_SUCCESS) in wl1251_cmd_interrogate() 133 acx->cmd.status); in wl1251_cmd_interrogate() 208 struct cmd_enabledisable_path *cmd; in wl1251_cmd_data_path() local 214 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl1251_cmd_data_path() 215 if (!cmd) { in wl1251_cmd_data_path() 220 cmd->channel = channel; in wl1251_cmd_data_path() [all …]
|