Lines Matching defs:cmd

696 static void target_remove_from_state_list(struct se_cmd *cmd)  in target_remove_from_state_list()
712 static void target_remove_from_tmr_list(struct se_cmd *cmd) in target_remove_from_tmr_list()
734 static int transport_cmd_check_stop_to_fabric(struct se_cmd *cmd) in transport_cmd_check_stop_to_fabric()
765 static void transport_lun_remove_cmd(struct se_cmd *cmd) in transport_lun_remove_cmd()
786 struct se_cmd *cmd = container_of(work, struct se_cmd, work); in target_complete_failure_work() local
795 static unsigned char *transport_get_sense_buffer(struct se_cmd *cmd) in transport_get_sense_buffer()
814 void transport_copy_sense_to_cmd(struct se_cmd *cmd, unsigned char *sense) in transport_copy_sense_to_cmd()
832 static void target_handle_abort(struct se_cmd *cmd) in target_handle_abort()
880 struct se_cmd *cmd = container_of(work, struct se_cmd, work); in target_abort_work() local
885 static bool target_cmd_interrupted(struct se_cmd *cmd) in target_cmd_interrupted()
906 void target_complete_cmd_with_sense(struct se_cmd *cmd, u8 scsi_status, in target_complete_cmd_with_sense()
948 void target_complete_cmd(struct se_cmd *cmd, u8 scsi_status) in target_complete_cmd()
956 void target_set_cmd_data_length(struct se_cmd *cmd, int length) in target_set_cmd_data_length()
971 void target_complete_cmd_with_length(struct se_cmd *cmd, u8 scsi_status, int length) in target_complete_cmd_with_length()
982 static void target_add_to_state_list(struct se_cmd *cmd) in target_add_to_state_list()
1007 struct se_cmd *cmd, *cmd_tmp; in target_qf_do_work() local
1031 unsigned char *transport_dump_cmd_direction(struct se_cmd *cmd) in transport_dump_cmd_direction()
1324 target_check_max_data_sg_nents(struct se_cmd *cmd, struct se_device *dev, in target_check_max_data_sg_nents()
1386 target_cmd_size_check(struct se_cmd *cmd, unsigned int size) in target_cmd_size_check()
1448 void __target_init_cmd(struct se_cmd *cmd, in __target_init_cmd()
1483 transport_check_alloc_task_attr(struct se_cmd *cmd) in transport_check_alloc_task_attr()
1504 target_cmd_init_cdb(struct se_cmd *cmd, unsigned char *cdb, gfp_t gfp) in target_cmd_init_cdb()
1555 target_cmd_parse_cdb(struct se_cmd *cmd) in target_cmd_parse_cdb()
1579 static int __target_submit(struct se_cmd *cmd) in __target_submit()
1641 transport_generic_map_mem_to_cmd(struct se_cmd *cmd, struct scatterlist *sgl, in transport_generic_map_mem_to_cmd()
2032 void transport_generic_request_failure(struct se_cmd *cmd, in transport_generic_request_failure()
2137 void __target_execute_cmd(struct se_cmd *cmd, bool do_checks) in __target_execute_cmd()
2178 static int target_write_prot_action(struct se_cmd *cmd) in target_write_prot_action()
2213 static bool target_handle_task_attr(struct se_cmd *cmd) in target_handle_task_attr()
2277 void target_execute_cmd(struct se_cmd *cmd) in target_execute_cmd()
2314 struct se_cmd *cmd; in target_do_delayed_work() local
2355 static void transport_complete_task_attr(struct se_cmd *cmd) in transport_complete_task_attr()
2389 static void transport_complete_qf(struct se_cmd *cmd) in transport_complete_qf()
2457 static void transport_handle_queue_full(struct se_cmd *cmd, struct se_device *dev, in transport_handle_queue_full()
2484 static bool target_read_prot_action(struct se_cmd *cmd) in target_read_prot_action()
2514 struct se_cmd *cmd = container_of(work, struct se_cmd, work); in target_complete_ok_work() local
2663 static inline void transport_reset_sgl_orig(struct se_cmd *cmd) in transport_reset_sgl_orig()
2679 static inline void transport_free_pages(struct se_cmd *cmd) in transport_free_pages()
2712 void *transport_kmap_data_sg(struct se_cmd *cmd) in transport_kmap_data_sg()
2749 void transport_kunmap_data_sg(struct se_cmd *cmd) in transport_kunmap_data_sg()
2780 transport_generic_new_cmd(struct se_cmd *cmd) in transport_generic_new_cmd()
2881 static void transport_write_pending_qf(struct se_cmd *cmd) in transport_write_pending_qf()
2910 static void target_wait_free_cmd(struct se_cmd *cmd, bool *aborted, bool *tas) in target_wait_free_cmd()
2923 void target_put_cmd_and_wait(struct se_cmd *cmd) in target_put_cmd_and_wait()
2956 int transport_generic_free_cmd(struct se_cmd *cmd, int wait_for_tasks) in transport_generic_free_cmd()
3023 static void target_free_cmd_mem(struct se_cmd *cmd) in target_free_cmd_mem()
3143 void target_show_cmd(const char *pfx, struct se_cmd *cmd) in target_show_cmd()
3241 __transport_wait_for_tasks(struct se_cmd *cmd, bool fabric_stop, in __transport_wait_for_tasks()
3294 bool transport_wait_for_tasks(struct se_cmd *cmd) in transport_wait_for_tasks()
3495 static void translate_sense_reason(struct se_cmd *cmd, sense_reason_t reason) in translate_sense_reason()
3533 transport_send_check_condition_and_sense(struct se_cmd *cmd, in transport_send_check_condition_and_sense()
3562 int target_send_busy(struct se_cmd *cmd) in target_send_busy()
3574 struct se_cmd *cmd = container_of(work, struct se_cmd, work); in target_tmr_work() local
3627 struct se_cmd *cmd) in transport_generic_handle_tmr()