Home
last modified time | relevance | path

Searched refs:cmd_flags (Results 1 – 25 of 63) sorted by relevance

123

/linux-3.4.99/drivers/mmc/host/
Dtifm_sd.c96 unsigned short cmd_flags; member
122 if (host->cmd_flags & DATA_CARRY) { in tifm_sd_read_fifo()
124 host->cmd_flags &= ~DATA_CARRY; in tifm_sd_read_fifo()
132 host->cmd_flags |= DATA_CARRY; in tifm_sd_read_fifo()
148 if (host->cmd_flags & DATA_CARRY) { in tifm_sd_write_fifo()
151 host->cmd_flags &= ~DATA_CARRY; in tifm_sd_write_fifo()
158 host->cmd_flags |= DATA_CARRY; in tifm_sd_write_fifo()
184 && (host->cmd_flags & DATA_CARRY)) in tifm_sd_transfer_data()
274 if (host->cmd_flags & DATA_CARRY) { in tifm_sd_set_dma_data()
275 host->cmd_flags &= ~DATA_CARRY; in tifm_sd_set_dma_data()
[all …]
/linux-3.4.99/block/
Dblk-merge.c172 if (unlikely(rq->cmd_flags & REQ_COPY_USER) && in blk_rq_map_sg()
182 if (rq->cmd_flags & REQ_WRITE) in blk_rq_map_sg()
222 req->cmd_flags |= REQ_NOMERGE; in ll_new_hw_segment()
239 req->cmd_flags |= REQ_NOMERGE; in ll_back_merge_fn()
264 req->cmd_flags |= REQ_NOMERGE; in ll_front_merge_fn()
328 unsigned int ff = rq->cmd_flags & REQ_FAILFAST_MASK; in blk_rq_set_mixed_merge()
331 if (rq->cmd_flags & REQ_MIXED_MERGE) in blk_rq_set_mixed_merge()
344 rq->cmd_flags |= REQ_MIXED_MERGE; in blk_rq_set_mixed_merge()
376 if ((req->cmd_flags & REQ_DISCARD) != (next->cmd_flags & REQ_DISCARD)) in attempt_merge()
382 if ((req->cmd_flags & REQ_SECURE) != (next->cmd_flags & REQ_SECURE)) in attempt_merge()
[all …]
Dblk-flush.c102 if (rq->cmd_flags & REQ_FLUSH) in blk_flush_policy()
104 if (!(fflags & REQ_FUA) && (rq->cmd_flags & REQ_FUA)) in blk_flush_policy()
125 rq->cmd_flags &= ~REQ_FLUSH_SEQ; in blk_flush_restore_request()
266 q->flush_rq.cmd_flags = WRITE_FLUSH | REQ_FLUSH_SEQ; in blk_kick_flush()
308 rq->cmd_flags &= ~REQ_FLUSH; in blk_insert_flush()
310 rq->cmd_flags &= ~REQ_FUA; in blk_insert_flush()
342 rq->cmd_flags |= REQ_FLUSH_SEQ; in blk_insert_flush()
Dblk-core.c165 if (unlikely(rq->cmd_flags & REQ_QUIET)) in req_bio_endio()
175 if (bio->bi_size == 0 && !(rq->cmd_flags & REQ_FLUSH_SEQ)) in req_bio_endio()
185 rq->cmd_flags); in blk_dump_rq_flags()
644 if (rq->cmd_flags & REQ_ELVPRIV) { in blk_free_request()
664 rq->cmd_flags = flags | REQ_ALLOCED; in blk_alloc_request()
1143 if (req->cmd_flags & REQ_ALLOCED) { in __blk_put_request()
1144 unsigned int flags = req->cmd_flags; in __blk_put_request()
1208 if ((req->cmd_flags & REQ_FAILFAST_MASK) != ff) in bio_attempt_back_merge()
1230 if ((req->cmd_flags & REQ_FAILFAST_MASK) != ff) in bio_attempt_front_merge()
1307 req->cmd_flags |= bio->bi_rw & REQ_COMMON_MASK; in init_request_from_bio()
[all …]
Delevator.c374 if ((rq->cmd_flags & REQ_DISCARD) != in elv_dispatch_sort()
375 (pos->cmd_flags & REQ_DISCARD)) in elv_dispatch_sort()
379 if (pos->cmd_flags & stop_flags) in elv_dispatch_sort()
511 const int next_sorted = next->cmd_flags & REQ_SORTED; in elv_merge_requests()
543 if (rq->cmd_flags & REQ_SORTED) in elv_requeue_request()
547 rq->cmd_flags &= ~REQ_STARTED; in elv_requeue_request()
592 if (rq->cmd_flags & REQ_SOFTBARRIER) { in __elv_add_request()
595 (rq->cmd_flags & REQ_DISCARD)) { in __elv_add_request()
599 } else if (!(rq->cmd_flags & REQ_ELVPRIV) && in __elv_add_request()
607 rq->cmd_flags |= REQ_SOFTBARRIER; in __elv_add_request()
[all …]
Dblk-map.c156 rq->cmd_flags |= REQ_COPY_USER; in blk_rq_map_user()
236 rq->cmd_flags |= REQ_COPY_USER; in blk_rq_map_user_iov()
318 rq->cmd_flags |= REQ_COPY_USER; in blk_rq_map_kern()
Dblk-tag.c290 rq->cmd_flags &= ~REQ_QUEUED; in blk_queue_end_tag()
336 if (unlikely((rq->cmd_flags & REQ_QUEUED))) { in blk_queue_start_tag()
371 rq->cmd_flags |= REQ_QUEUED; in blk_queue_start_tag()
Dblk.h179 (rq->cmd_flags & REQ_IO_STAT) && in blk_do_io_stat()
181 (rq->cmd_flags & REQ_DISCARD)); in blk_do_io_stat()
/linux-3.4.99/drivers/memstick/host/
Djmb38x_ms.c63 unsigned char cmd_flags; member
335 t_size = !(host->cmd_flags & REG_DATA) in jmb38x_ms_transfer_data()
339 t_size = !(host->cmd_flags & REG_DATA) in jmb38x_ms_transfer_data()
356 if (host->cmd_flags & REG_DATA) { in jmb38x_ms_transfer_data()
383 host->cmd_flags = 0; in jmb38x_ms_issue_cmd()
405 host->cmd_flags |= DMA_DATA; in jmb38x_ms_issue_cmd()
411 host->cmd_flags &= ~DMA_DATA; in jmb38x_ms_issue_cmd()
416 host->cmd_flags |= REG_DATA; in jmb38x_ms_issue_cmd()
418 host->cmd_flags &= ~DMA_DATA; in jmb38x_ms_issue_cmd()
421 if (host->cmd_flags & DMA_DATA) { in jmb38x_ms_issue_cmd()
[all …]
Dtifm_ms.c81 unsigned char cmd_flags; member
260 host->cmd_flags = 0; in tifm_ms_issue_cmd()
264 host->cmd_flags = 0; in tifm_ms_issue_cmd()
374 if (!(host->cmd_flags & CMD_READY)) in tifm_ms_check_status()
376 if (!(host->cmd_flags & FIFO_READY)) in tifm_ms_check_status()
379 && !(host->cmd_flags & CARD_INT)) in tifm_ms_check_status()
398 fifo_status, host_status, host->cmd_flags); in tifm_ms_data_event()
402 host->cmd_flags |= FIFO_READY; in tifm_ms_data_event()
407 host->cmd_flags |= FIFO_READY; in tifm_ms_data_event()
432 host_status, host->cmd_flags); in tifm_ms_card_event()
[all …]
/linux-3.4.99/drivers/ide/
Dide-cd.c101 if (!sense || !rq || (rq->cmd_flags & REQ_QUIET)) in cdrom_log_sense()
294 rq->cmd_flags |= REQ_FAILED; in cdrom_decode_status()
314 !(rq->cmd_flags & REQ_QUIET)) in cdrom_decode_status()
349 if (!(rq->cmd_flags & REQ_QUIET)) in cdrom_decode_status()
358 if (!(rq->cmd_flags & REQ_QUIET)) in cdrom_decode_status()
365 if (!(rq->cmd_flags & REQ_QUIET)) in cdrom_decode_status()
383 rq->cmd_flags |= REQ_FAILED; in cdrom_decode_status()
425 unsigned int cmd_flags) in ide_cd_queue_pc() argument
437 cmd[0], write, timeout, cmd_flags); in ide_cd_queue_pc()
449 rq->cmd_flags |= cmd_flags; in ide_cd_queue_pc()
[all …]
Dide-atapi.c214 sense_rq->cmd_flags |= REQ_PREEMPT; in ide_prep_sense()
298 if (!(rq->cmd_flags & REQ_QUIET)) in ide_cd_expiry()
378 rq->cmd_flags |= REQ_FAILED; in ide_check_ireason()
Dide-io.c310 BUG_ON(!(rq->cmd_flags & REQ_STARTED)); in start_request()
319 rq->cmd_flags |= REQ_FAILED; in start_request()
542 (rq->cmd_flags & REQ_PREEMPT) == 0) { in do_ide_request()
/linux-3.4.99/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_ethtool.c1031 u32 cmd_flags) in bnx2x_nvram_read_dword() argument
1037 cmd_flags |= MCPR_NVM_COMMAND_DOIT; in bnx2x_nvram_read_dword()
1047 REG_WR(bp, MCP_REG_MCPR_NVM_COMMAND, cmd_flags); in bnx2x_nvram_read_dword()
1081 u32 cmd_flags; in bnx2x_nvram_read() local
1107 cmd_flags = MCPR_NVM_COMMAND_FIRST; in bnx2x_nvram_read()
1109 rc = bnx2x_nvram_read_dword(bp, offset, &val, cmd_flags); in bnx2x_nvram_read()
1116 cmd_flags = 0; in bnx2x_nvram_read()
1120 cmd_flags |= MCPR_NVM_COMMAND_LAST; in bnx2x_nvram_read()
1121 rc = bnx2x_nvram_read_dword(bp, offset, &val, cmd_flags); in bnx2x_nvram_read()
1157 u32 cmd_flags) in bnx2x_nvram_write_dword() argument
[all …]
/linux-3.4.99/drivers/target/iscsi/
Discsi_target_tmr.c240 cmd->cmd_flags &= ~ICF_GOT_DATACK_SNACK; in iscsit_task_reassign_complete_write()
243 cmd->cmd_flags |= ICF_GOT_DATACK_SNACK; in iscsit_task_reassign_complete_write()
252 if (cmd->cmd_flags & ICF_GOT_LAST_DATAOUT) { in iscsit_task_reassign_complete_write()
310 cmd->cmd_flags &= ~ICF_GOT_DATACK_SNACK; in iscsit_task_reassign_complete_read()
313 cmd->cmd_flags |= ICF_GOT_DATACK_SNACK; in iscsit_task_reassign_complete_read()
723 cmd->cmd_flags &= ~ICF_SENT_LAST_R2T; in iscsit_task_reassign_prepare_write()
816 if ((ref_cmd->cmd_flags & ICF_GOT_DATACK_SNACK) && in iscsit_check_task_reassign_expdatasn()
Discsi_target_erl1.c153 if ((cmd->cmd_flags & ICF_GOT_DATACK_SNACK) && in iscsit_handle_r2t_snack()
429 if ((cmd->cmd_flags & ICF_GOT_DATACK_SNACK) && in iscsit_handle_recovery_datain()
592 cmd->cmd_flags |= ICF_GOT_DATACK_SNACK; in iscsit_handle_data_ack()
777 cmd->cmd_flags |= ICF_WITHIN_COMMAND_RECOVERY; in iscsit_recover_dataout_sequence()
932 cmd->cmd_flags &= ~ICF_OOO_CMDSN; in iscsit_execute_cmd()
972 if (cmd->cmd_flags & ICF_GOT_LAST_DATAOUT) { in iscsit_execute_cmd()
979 if (!(cmd->cmd_flags & in iscsit_execute_cmd()
1001 !(cmd->cmd_flags & ICF_NON_IMMEDIATE_UNSOLICITED_DATA)) { in iscsit_execute_cmd()
1084 cmd->cmd_flags |= ICF_OOO_CMDSN; in iscsit_handle_ooo_cmdsn()
1191 cmd->cmd_flags |= ICF_WITHIN_COMMAND_RECOVERY; in iscsit_handle_dataout_timeout()
Discsi_target_erl2.c301 if (!(cmd->cmd_flags & ICF_OOO_CMDSN)) in iscsit_discard_unacknowledged_ooo_cmdsns_for_conn()
376 if (!(cmd->cmd_flags & ICF_OOO_CMDSN) && !cmd->immediate_cmd && in iscsit_prepare_cmds_for_realligance()
/linux-3.4.99/include/linux/
Dblkdev.h87 unsigned int cmd_flags; member
507 ((rq)->cmd_flags & (REQ_FAILFAST_DEV|REQ_FAILFAST_TRANSPORT| \
511 (((rq)->cmd_flags & REQ_STARTED) && \
513 ((rq)->cmd_flags & REQ_DISCARD)))
526 #define rq_data_dir(rq) ((rq)->cmd_flags & 1)
543 return rw_is_sync(rq->cmd_flags); in rq_is_sync()
577 (!((rq)->cmd_flags & RQ_NOMERGE_FLAGS) && \
578 (((rq)->cmd_flags & REQ_DISCARD) || \
932 #define blk_rq_tagged(rq) ((rq)->cmd_flags & REQ_QUEUED)
/linux-3.4.99/drivers/net/wireless/mwifiex/
Dcmdevt.c616 unsigned long cmd_flags; in mwifiex_exec_next_cmd() local
625 spin_lock_irqsave(&adapter->mwifiex_cmd_lock, cmd_flags); in mwifiex_exec_next_cmd()
631 spin_unlock_irqrestore(&adapter->mwifiex_cmd_lock, cmd_flags); in mwifiex_exec_next_cmd()
645 spin_unlock_irqrestore(&adapter->mwifiex_cmd_lock, cmd_flags); in mwifiex_exec_next_cmd()
654 spin_unlock_irqrestore(&adapter->mwifiex_cmd_lock, cmd_flags); in mwifiex_exec_next_cmd()
947 unsigned long cmd_flags; in mwifiex_cancel_pending_ioctl() local
953 spin_lock_irqsave(&adapter->mwifiex_cmd_lock, cmd_flags); in mwifiex_cancel_pending_ioctl()
960 spin_unlock_irqrestore(&adapter->mwifiex_cmd_lock, cmd_flags); in mwifiex_cancel_pending_ioctl()
981 spin_lock_irqsave(&adapter->mwifiex_cmd_lock, cmd_flags); in mwifiex_cancel_pending_ioctl()
983 spin_unlock_irqrestore(&adapter->mwifiex_cmd_lock, cmd_flags); in mwifiex_cancel_pending_ioctl()
/linux-3.4.99/drivers/scsi/device_handler/
Dscsi_dh_hp_sw.c124 req->cmd_flags |= REQ_FAILFAST_DEV | REQ_FAILFAST_TRANSPORT | in hp_sw_tur()
254 req->cmd_flags |= REQ_FAILFAST_DEV | REQ_FAILFAST_TRANSPORT | in hp_sw_start_stop()
276 req->cmd_flags |= REQ_QUIET; in hp_sw_prep_fn()
/linux-3.4.99/include/trace/events/
Dblock.h36 blk_fill_rwbs(__entry->rwbs, rq->cmd_flags, blk_rq_bytes(rq));
114 blk_fill_rwbs(__entry->rwbs, rq->cmd_flags, nr_bytes);
150 blk_fill_rwbs(__entry->rwbs, rq->cmd_flags, blk_rq_bytes(rq));
583 blk_fill_rwbs(__entry->rwbs, rq->cmd_flags, blk_rq_bytes(rq));
/linux-3.4.99/drivers/mmc/card/
Dqueue.c37 if (req->cmd_type != REQ_TYPE_FS && !(req->cmd_flags & REQ_DISCARD)) { in mmc_prep_request()
45 req->cmd_flags |= REQ_DONTPREP; in mmc_prep_request()
106 req->cmd_flags |= REQ_QUIET; in mmc_request()
Dblock.c1154 bool do_rel_wr = ((req->cmd_flags & REQ_FUA) || in mmc_blk_rw_rq_prep()
1155 (req->cmd_flags & REQ_META)) && in mmc_blk_rw_rq_prep()
1226 (req->cmd_flags & REQ_META) && in mmc_blk_rw_rq_prep()
1435 req->cmd_flags |= REQ_QUIET; in mmc_blk_issue_rw_rq()
1470 if (req && req->cmd_flags & REQ_DISCARD) { in mmc_blk_issue_rq()
1474 if (req->cmd_flags & REQ_SECURE && in mmc_blk_issue_rq()
1479 } else if (req && req->cmd_flags & REQ_FLUSH) { in mmc_blk_issue_rq()
/linux-3.4.99/drivers/net/ethernet/broadcom/
Dbnx2.c4190 bnx2_nvram_read_dword(struct bnx2 *bp, u32 offset, u8 *ret_val, u32 cmd_flags) in bnx2_nvram_read_dword() argument
4196 cmd = BNX2_NVM_COMMAND_DOIT | cmd_flags; in bnx2_nvram_read_dword()
4235 bnx2_nvram_write_dword(struct bnx2 *bp, u32 offset, u8 *val, u32 cmd_flags) in bnx2_nvram_write_dword() argument
4242 cmd = BNX2_NVM_COMMAND_DOIT | BNX2_NVM_COMMAND_WR | cmd_flags; in bnx2_nvram_write_dword()
4366 u32 cmd_flags, offset32, len32, extra; in bnx2_nvram_read() local
4382 cmd_flags = 0; in bnx2_nvram_read()
4393 cmd_flags = BNX2_NVM_COMMAND_FIRST | in bnx2_nvram_read()
4397 cmd_flags = BNX2_NVM_COMMAND_FIRST; in bnx2_nvram_read()
4400 rc = bnx2_nvram_read_dword(bp, offset32, buf, cmd_flags); in bnx2_nvram_read()
4419 if (cmd_flags) in bnx2_nvram_read()
[all …]
/linux-3.4.99/drivers/scsi/
Dsd.c677 if (rq->cmd_flags & REQ_DISCARD) { in sd_unprep_fn()
712 if (rq->cmd_flags & REQ_DISCARD) { in sd_prep_fn()
715 } else if (rq->cmd_flags & REQ_FLUSH) { in sd_prep_fn()
836 scmd_printk(KERN_ERR, SCpnt, "Unknown command %x\n", rq->cmd_flags); in sd_prep_fn()
866 SCpnt->cmnd[10] = protect | ((rq->cmd_flags & REQ_FUA) ? 0x8 : 0); in sd_prep_fn()
891 SCpnt->cmnd[1] = protect | ((rq->cmd_flags & REQ_FUA) ? 0x8 : 0); in sd_prep_fn()
912 SCpnt->cmnd[1] = protect | ((rq->cmd_flags & REQ_FUA) ? 0x8 : 0); in sd_prep_fn()
921 if (unlikely(rq->cmd_flags & REQ_FUA)) { in sd_prep_fn()
1488 if ((SCpnt->request->cmd_flags & REQ_DISCARD) && !result) in sd_done()

123