/linux-3.4.99/drivers/target/ |
D | target_core_transport.c | 72 static void transport_complete_task_attr(struct se_cmd *cmd); 73 static void transport_handle_queue_full(struct se_cmd *cmd, 75 static void transport_free_dev_tasks(struct se_cmd *cmd); 76 static int transport_generic_get_mem(struct se_cmd *cmd); 77 static void transport_put_cmd(struct se_cmd *cmd); 78 static void transport_remove_cmd_from_queue(struct se_cmd *cmd); 79 static int transport_set_sense_codes(struct se_cmd *cmd, u8 asc, u8 ascq); 447 static void transport_all_task_dev_remove_state(struct se_cmd *cmd) in transport_all_task_dev_remove_state() argument 449 struct se_device *dev = cmd->se_dev; in transport_all_task_dev_remove_state() 456 list_for_each_entry(task, &cmd->t_task_list, t_list) { in transport_all_task_dev_remove_state() [all …]
|
D | target_core_tmr.c | 88 struct se_cmd *cmd, in core_tmr_handle_tas_abort() argument 93 transport_cmd_finish_abort(cmd, 1); in core_tmr_handle_tas_abort() 100 (tmr_nacl == cmd->se_sess->se_node_acl)) || tas) in core_tmr_handle_tas_abort() 101 transport_send_task_abort(cmd); in core_tmr_handle_tas_abort() 103 transport_cmd_finish_abort(cmd, 0); in core_tmr_handle_tas_abort() 107 struct se_cmd *cmd) in target_check_cdb_and_preempt() argument 114 if (reg->pr_res_key == cmd->pr_res_key) in target_check_cdb_and_preempt() 192 struct se_cmd *cmd; in core_tmr_drain_tmr_list() local 206 cmd = tmr_p->task_cmd; in core_tmr_drain_tmr_list() 207 if (!cmd) { in core_tmr_drain_tmr_list() [all …]
|
/linux-3.4.99/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-3.4.99/drivers/target/iscsi/ |
D | iscsi_target_erl1.c | 119 struct iscsi_cmd *cmd, in iscsit_send_recovery_r2t_for_snack() argument 127 spin_lock_bh(&cmd->r2t_lock); in iscsit_send_recovery_r2t_for_snack() 129 spin_unlock_bh(&cmd->r2t_lock); in iscsit_send_recovery_r2t_for_snack() 133 spin_unlock_bh(&cmd->r2t_lock); in iscsit_send_recovery_r2t_for_snack() 135 iscsit_add_cmd_to_immediate_queue(cmd, cmd->conn, ISTATE_SEND_R2T); in iscsit_send_recovery_r2t_for_snack() 141 struct iscsi_cmd *cmd, in iscsit_handle_r2t_snack() argument 153 if ((cmd->cmd_flags & ICF_GOT_DATACK_SNACK) && in iscsit_handle_r2t_snack() 154 (begrun <= cmd->acked_data_sn)) { in iscsit_handle_r2t_snack() 158 " protocol error.\n", cmd->init_task_tag, begrun, in iscsit_handle_r2t_snack() 159 (begrun + runlength), cmd->acked_data_sn); in iscsit_handle_r2t_snack() [all …]
|
D | iscsi_target_tmr.c | 39 struct iscsi_cmd *cmd, in iscsit_tmr_abort_task() argument 43 struct iscsi_conn *conn = cmd->conn; in iscsit_tmr_abort_task() 44 struct iscsi_tmr_req *tmr_req = cmd->tmr_req; in iscsit_tmr_abort_task() 45 struct se_tmr_req *se_tmr = cmd->se_cmd.se_tmr_req; in iscsit_tmr_abort_task() 118 struct iscsi_cmd *cmd, in iscsit_tmr_task_reassign() argument 122 struct iscsi_conn *conn = cmd->conn; in iscsit_tmr_task_reassign() 124 struct iscsi_tmr_req *tmr_req = cmd->tmr_req; in iscsit_tmr_task_reassign() 125 struct se_tmr_req *se_tmr = cmd->se_cmd.se_tmr_req; in iscsit_tmr_task_reassign() 177 struct iscsi_cmd *cmd, in iscsit_task_reassign_remove_cmd() argument 184 ret = iscsit_remove_cmd_from_connection_recovery(cmd, sess); in iscsit_task_reassign_remove_cmd() [all …]
|
D | iscsi_target_erl2.c | 38 struct iscsi_cmd *cmd, in iscsit_create_conn_recovery_datain_values() argument 42 struct iscsi_conn *conn = cmd->conn; in iscsit_create_conn_recovery_datain_values() 44 cmd->next_burst_len = 0; in iscsit_create_conn_recovery_datain_values() 45 cmd->read_data_done = 0; in iscsit_create_conn_recovery_datain_values() 48 if ((cmd->next_burst_len + in iscsit_create_conn_recovery_datain_values() 51 cmd->read_data_done += in iscsit_create_conn_recovery_datain_values() 53 cmd->next_burst_len += in iscsit_create_conn_recovery_datain_values() 56 cmd->read_data_done += in iscsit_create_conn_recovery_datain_values() 58 cmd->next_burst_len); in iscsit_create_conn_recovery_datain_values() 59 cmd->next_burst_len = 0; in iscsit_create_conn_recovery_datain_values() [all …]
|
D | iscsi_target_erl0.c | 41 struct iscsi_cmd *cmd) in iscsit_set_dataout_sequence_values() argument 43 struct iscsi_conn *conn = cmd->conn; in iscsit_set_dataout_sequence_values() 48 if (cmd->unsolicited_data) { in iscsit_set_dataout_sequence_values() 49 cmd->seq_start_offset = cmd->write_data_done; in iscsit_set_dataout_sequence_values() 50 cmd->seq_end_offset = (cmd->write_data_done + in iscsit_set_dataout_sequence_values() 51 (cmd->data_length > in iscsit_set_dataout_sequence_values() 53 conn->sess->sess_ops->FirstBurstLength : cmd->data_length); in iscsit_set_dataout_sequence_values() 60 if (!cmd->seq_start_offset && !cmd->seq_end_offset) { in iscsit_set_dataout_sequence_values() 61 cmd->seq_start_offset = cmd->write_data_done; in iscsit_set_dataout_sequence_values() 62 cmd->seq_end_offset = (cmd->data_length > in iscsit_set_dataout_sequence_values() [all …]
|
D | iscsi_target.c | 599 struct iscsi_cmd *cmd; in iscsit_add_reject() local 603 cmd = iscsit_allocate_cmd(conn, GFP_KERNEL); in iscsit_add_reject() 604 if (!cmd) in iscsit_add_reject() 607 cmd->iscsi_opcode = ISCSI_OP_REJECT; in iscsit_add_reject() 609 cmd->cmd_flags |= ICF_REJECT_FAIL_CONN; in iscsit_add_reject() 611 hdr = (struct iscsi_reject *) cmd->pdu; in iscsit_add_reject() 614 cmd->buf_ptr = kmemdup(buf, ISCSI_HDR_LEN, GFP_KERNEL); in iscsit_add_reject() 615 if (!cmd->buf_ptr) { in iscsit_add_reject() 617 iscsit_release_cmd(cmd); in iscsit_add_reject() 622 list_add_tail(&cmd->i_list, &conn->conn_cmd_list); in iscsit_add_reject() [all …]
|
/linux-3.4.99/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-3.4.99/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-3.4.99/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-3.4.99/drivers/ide/ |
D | ide-taskfile.c | 27 void ide_tf_readback(ide_drive_t *drive, struct ide_cmd *cmd) in ide_tf_readback() argument 35 tp_ops->tf_read(drive, &cmd->tf, cmd->valid.in.tf); in ide_tf_readback() 37 if (cmd->tf_flags & IDE_TFLAG_LBA48) { in ide_tf_readback() 40 tp_ops->tf_read(drive, &cmd->hob, cmd->valid.in.hob); in ide_tf_readback() 44 void ide_tf_dump(const char *s, struct ide_cmd *cmd) in ide_tf_dump() argument 49 s, cmd->tf.feature, cmd->tf.nsect, in ide_tf_dump() 50 cmd->tf.lbal, cmd->tf.lbam, cmd->tf.lbah, in ide_tf_dump() 51 cmd->tf.device, cmd->tf.command); in ide_tf_dump() 53 s, cmd->hob.nsect, cmd->hob.lbal, cmd->hob.lbam, cmd->hob.lbah); in ide_tf_dump() 59 struct ide_cmd cmd; in taskfile_lib_get_identify() local [all …]
|
/linux-3.4.99/drivers/mmc/core/ |
D | sd_ops.c | 28 struct mmc_command cmd = {0}; in mmc_app_cmd() local 33 cmd.opcode = MMC_APP_CMD; in mmc_app_cmd() 36 cmd.arg = card->rca << 16; in mmc_app_cmd() 37 cmd.flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | MMC_CMD_AC; in mmc_app_cmd() 39 cmd.arg = 0; in mmc_app_cmd() 40 cmd.flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | MMC_CMD_BCR; in mmc_app_cmd() 43 err = mmc_wait_for_cmd(host, &cmd, 0); in mmc_app_cmd() 48 if (!mmc_host_is_spi(host) && !(cmd.resp[0] & R1_APP_CMD)) in mmc_app_cmd() 69 struct mmc_command *cmd, int retries) in mmc_wait_for_app_cmd() argument 75 BUG_ON(!cmd); in mmc_wait_for_app_cmd() [all …]
|
D | mmc_ops.c | 27 struct mmc_command cmd = {0}; in _mmc_select_card() local 31 cmd.opcode = MMC_SELECT_CARD; in _mmc_select_card() 34 cmd.arg = card->rca << 16; in _mmc_select_card() 35 cmd.flags = MMC_RSP_R1 | MMC_CMD_AC; in _mmc_select_card() 37 cmd.arg = 0; in _mmc_select_card() 38 cmd.flags = MMC_RSP_NONE | MMC_CMD_AC; in _mmc_select_card() 41 err = mmc_wait_for_cmd(host, &cmd, MMC_CMD_RETRIES); in _mmc_select_card() 62 struct mmc_command cmd = {0}; in mmc_card_sleepawake() local 69 cmd.opcode = MMC_SLEEP_AWAKE; in mmc_card_sleepawake() 70 cmd.arg = card->rca << 16; in mmc_card_sleepawake() [all …]
|
/linux-3.4.99/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-3.4.99/include/scsi/ |
D | scsi_cmnd.h | 135 static inline struct scsi_driver *scsi_cmd_to_driver(struct scsi_cmnd *cmd) in scsi_cmd_to_driver() argument 139 if (!cmd->request->rq_disk) in scsi_cmd_to_driver() 142 sdp = (struct scsi_driver **)cmd->request->rq_disk->private_data; in scsi_cmd_to_driver() 154 extern void scsi_finish_command(struct scsi_cmnd *cmd); 160 extern int scsi_init_io(struct scsi_cmnd *cmd, gfp_t gfp_mask); 161 extern void scsi_release_buffers(struct scsi_cmnd *cmd); 163 extern int scsi_dma_map(struct scsi_cmnd *cmd); 164 extern void scsi_dma_unmap(struct scsi_cmnd *cmd); 167 void scsi_free_command(gfp_t gfp_mask, struct scsi_cmnd *cmd); 169 static inline unsigned scsi_sg_count(struct scsi_cmnd *cmd) in scsi_sg_count() argument [all …]
|
/linux-3.4.99/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() 387 struct wl12xx_cmd_role_enable *cmd; in wl12xx_cmd_role_enable() local 395 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl12xx_cmd_role_enable() 396 if (!cmd) { in wl12xx_cmd_role_enable() 402 cmd->role_id = find_first_zero_bit(wl->roles_map, WL12XX_MAX_ROLES); in wl12xx_cmd_role_enable() [all …]
|
/linux-3.4.99/drivers/macintosh/ |
D | smu.c | 68 u8 cmd; member 112 struct smu_cmd *cmd; in smu_start_cmd() local 118 cmd = list_entry(smu->cmd_list.next, struct smu_cmd, link); in smu_start_cmd() 119 smu->cmd_cur = cmd; in smu_start_cmd() 120 list_del(&cmd->link); in smu_start_cmd() 122 DPRINTK("SMU: starting cmd %x, %d bytes data\n", cmd->cmd, in smu_start_cmd() 123 cmd->data_len); in smu_start_cmd() 125 ((u8 *)cmd->data_buf)[0], ((u8 *)cmd->data_buf)[1], in smu_start_cmd() 126 ((u8 *)cmd->data_buf)[2], ((u8 *)cmd->data_buf)[3], in smu_start_cmd() 127 ((u8 *)cmd->data_buf)[4], ((u8 *)cmd->data_buf)[5], in smu_start_cmd() [all …]
|
/linux-3.4.99/drivers/net/wireless/libertas/ |
D | cmd.c | 67 static u8 is_command_allowed_in_ps(u16 cmd) in is_command_allowed_in_ps() argument 69 switch (cmd) { in is_command_allowed_in_ps() 90 struct cmd_ds_get_hw_spec cmd; in lbs_update_hw_spec() local 96 memset(&cmd, 0, sizeof(cmd)); in lbs_update_hw_spec() 97 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); in lbs_update_hw_spec() 98 memcpy(cmd.permanentaddr, priv->current_addr, ETH_ALEN); in lbs_update_hw_spec() 99 ret = lbs_cmd_with_response(priv, CMD_GET_HW_SPEC, &cmd); in lbs_update_hw_spec() 103 priv->fwcapinfo = le32_to_cpu(cmd.fwcapinfo); in lbs_update_hw_spec() 107 priv->fwrelease = le32_to_cpu(cmd.fwrelease); in lbs_update_hw_spec() 116 cmd.permanentaddr, in lbs_update_hw_spec() [all …]
|
/linux-3.4.99/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 …]
|
/linux-3.4.99/drivers/target/tcm_fc/ |
D | tfc_cmd.c | 51 void ft_dump_cmd(struct ft_cmd *cmd, const char *caller) in ft_dump_cmd() argument 59 se_cmd = &cmd->se_cmd; in ft_dump_cmd() 61 caller, cmd, cmd->sess, cmd->seq, se_cmd); in ft_dump_cmd() 64 caller, cmd, se_cmd->t_data_nents, in ft_dump_cmd() 70 caller, cmd, sg, in ft_dump_cmd() 73 sp = cmd->seq; in ft_dump_cmd() 78 caller, cmd, ep->sid, ep->did, ep->oxid, ep->rxid, in ft_dump_cmd() 83 static void ft_free_cmd(struct ft_cmd *cmd) in ft_free_cmd() argument 88 if (!cmd) in ft_free_cmd() 90 fp = cmd->req_frame; in ft_free_cmd() [all …]
|
/linux-3.4.99/drivers/net/wireless/iwlwifi/ |
D | iwl-power.c | 62 struct iwl_powertable_cmd cmd; member 161 struct iwl_powertable_cmd *cmd, in iwl_static_sleep_cmd() argument 185 memset(cmd, 0, sizeof(*cmd)); in iwl_static_sleep_cmd() 187 *cmd = table[lvl].cmd; in iwl_static_sleep_cmd() 198 max_sleep[i] = le32_to_cpu(cmd->sleep_interval[i]); in iwl_static_sleep_cmd() 202 slp_itrvl = le32_to_cpu(cmd->sleep_interval[IWL_POWER_VEC_SIZE - 1]); in iwl_static_sleep_cmd() 205 cmd->sleep_interval[IWL_POWER_VEC_SIZE - 1] = in iwl_static_sleep_cmd() 208 slp_itrvl = le32_to_cpu(cmd->sleep_interval[IWL_POWER_VEC_SIZE - 1]); in iwl_static_sleep_cmd() 210 cmd->sleep_interval[IWL_POWER_VEC_SIZE - 1] = in iwl_static_sleep_cmd() 214 cmd->flags |= IWL_POWER_SLEEP_OVER_DTIM_MSK; in iwl_static_sleep_cmd() [all …]
|
/linux-3.4.99/arch/arm/boot/compressed/ |
D | sdhi-shmobile.c | 189 static int sdhi_boot_request(void __iomem *base, struct mmc_command *cmd) in sdhi_boot_request() argument 191 int err, c = cmd->opcode; in sdhi_boot_request() 193 switch (mmc_resp_type(cmd)) { in sdhi_boot_request() 208 sd_ctrl_write32(base, CTL_ARG_REG, cmd->arg); in sdhi_boot_request() 220 cmd->resp[0] = sd_ctrl_read32(base, CTL_RESPONSE); in sdhi_boot_request() 232 struct mmc_command cmd; in sdhi_boot_do_read_single() local 234 cmd.opcode = MMC_READ_SINGLE_BLOCK | \ in sdhi_boot_do_read_single() 237 cmd.arg = block; in sdhi_boot_do_read_single() 239 cmd.arg = block * TMIO_BBS; in sdhi_boot_do_read_single() 240 cmd.flags = MMC_RSP_R1; in sdhi_boot_do_read_single() [all …]
|
/linux-3.4.99/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 …]
|