Home
last modified time | relevance | path

Searched refs:cm_flags (Results 1 – 25 of 32) sorted by relevance

12

/freebsd/sys/dev/xen/blkfront/
H A Dblock.h113 xbdc_flag_t cm_flags; member
245 if ((cm->cm_flags & XBDCF_Q_MASK) != XBD_Q_NONE) in xbd_enqueue_cm()
247 __func__, cm, cm->cm_flags & XBDCF_Q_MASK); in xbd_enqueue_cm()
249 cm->cm_flags &= ~XBDCF_Q_MASK; in xbd_enqueue_cm()
250 cm->cm_flags |= index; in xbd_enqueue_cm()
259 if ((cm->cm_flags & XBDCF_Q_MASK) != XBD_Q_NONE) in xbd_requeue_cm()
261 __func__, cm, cm->cm_flags & XBDCF_Q_MASK); in xbd_requeue_cm()
263 cm->cm_flags &= ~XBDCF_Q_MASK; in xbd_requeue_cm()
264 cm->cm_flags |= index; in xbd_requeue_cm()
277 if ((cm->cm_flags & XBDCF_Q_MASK) != index) { in xbd_dequeue_cm()
[all …]
H A Dblkfront.c115 if ((cm->cm_flags & XBDCF_FROZEN) != 0) in xbd_cm_freeze()
118 cm->cm_flags |= XBDCF_FROZEN|cm_flag; in xbd_cm_freeze()
125 if ((cm->cm_flags & XBDCF_FROZEN) == 0) in xbd_cm_thaw()
128 cm->cm_flags &= ~XBDCF_FROZEN; in xbd_cm_thaw()
147 KASSERT((cm->cm_flags & XBDCF_Q_MASK) == XBD_Q_NONE, in xbd_free_command()
149 cm->cm_flags & XBDCF_Q_MASK)); in xbd_free_command()
151 cm->cm_flags = XBDCF_INITIALIZER; in xbd_free_command()
289 if ((cm->cm_flags & XBDCF_ASYNC_MAPPING) != 0) in xbd_queue_cb()
382 cm->cm_flags |= XBDCF_Q_FREEZE; in xbd_bio_command()
442 if ((cm->cm_flags & XBDCF_Q_FREEZE) != 0) { in xbd_startio()
[all …]
/freebsd/sys/dev/mfi/
H A Dmfivar.h99 int cm_flags; member
486 if ((cm->cm_flags & MFI_ON_MFIQ_MASK) != 0) { \
488 "flags = %#x\n", cm, cm->cm_flags); \
491 cm->cm_flags |= MFI_ON_ ## index; \
497 if ((cm->cm_flags & MFI_ON_MFIQ_MASK) != 0) { \
499 "flags = %#x\n", cm, cm->cm_flags); \
502 cm->cm_flags |= MFI_ON_ ## index; \
511 if ((cm->cm_flags & MFI_ON_ ## index) == 0) { \
514 cm->cm_flags, MFI_ON_ ## index); \
517 cm->cm_flags &= ~MFI_ON_ ## index; \
[all …]
H A Dmfi.c867 if ((cm->cm_flags & MFI_ON_MFIQ_BUSY) != 0) in mfi_release_command()
869 if ((cm->cm_flags & MFI_ON_MFIQ_READY) != 0) in mfi_release_command()
873 if ((cm->cm_flags & MFI_ON_MFIQ_MASK) != 0) { in mfi_release_command()
875 cm, cm->cm_flags); in mfi_release_command()
879 if ((cm->cm_flags & MFI_CMD_TBOLT) != 0) { in mfi_release_command()
892 cm->cm_flags = 0; in mfi_release_command()
946 cm->cm_flags = 0; in mfi_dcmd_command()
997 cm->cm_flags = MFI_CMD_POLLED; in mfi_comms_init()
1020 cm->cm_flags = MFI_CMD_DATAIN | MFI_CMD_POLLED; in mfi_get_controller_info()
1060 cm->cm_flags = MFI_CMD_DATAIN | MFI_CMD_POLLED; in mfi_get_log_state()
[all …]
H A Dmfi_tbolt.c420 cm->cm_flags |= MFI_CMD_POLLED; in mfi_tbolt_init_MFI_queue()
646 mfi_cmd->cm_flags &= ~MFI_CMD_TBOLT; in mfi_tbolt_return_cmd()
706 if ((cmd_mfi->cm_flags & MFI_CMD_SCSI) != 0 && in mfi_tbolt_complete_cmd()
707 (cmd_mfi->cm_flags & MFI_CMD_POLLED) != 0) { in mfi_tbolt_complete_cmd()
714 if ((cmd_mfi->cm_flags & MFI_ON_MFIQ_BUSY) != 0) in mfi_tbolt_complete_cmd()
779 mfi_cmd->cm_flags |= MFI_CMD_TBOLT; in mfi_tbolt_get_cmd()
1091 if ((cm->cm_flags & MFI_CMD_POLLED) == 0) { in mfi_tbolt_send_frame()
1109 cm->cm_flags |= MFI_CMD_SCSI; in mfi_tbolt_send_frame()
1119 if (cm->cm_flags & MFI_CMD_SCSI) { in mfi_tbolt_send_frame()
1131 if ((cm->cm_flags & MFI_CMD_POLLED) == 0) in mfi_tbolt_send_frame()
[all …]
H A Dmfi_cam.c385 cm->cm_flags = MFI_CMD_DATAIN | MFI_CMD_CCB; in mfip_start()
388 cm->cm_flags = MFI_CMD_DATAOUT | MFI_CMD_CCB; in mfip_start()
394 cm->cm_flags = 0; in mfip_start()
/freebsd/sys/dev/aac/
H A Daacvar.h167 u_int cm_flags; member
541 if ((cm->cm_flags & AAC_ON_AACQ_MASK) != 0) { \
543 cm, cm->cm_flags); \
546 cm->cm_flags |= AAC_ON_ ## index; \
552 if ((cm->cm_flags & AAC_ON_AACQ_MASK) != 0) { \
554 cm, cm->cm_flags); \
557 cm->cm_flags |= AAC_ON_ ## index; \
566 if ((cm->cm_flags & AAC_ON_ ## index) == 0) { \
568 cm, cm->cm_flags, AAC_ON_ ## index); \
571 cm->cm_flags &= ~AAC_ON_ ## index; \
[all …]
H A Daac.c876 cm->cm_flags |= AAC_CMD_COMPLETED; in aac_new_intr()
985 if (cm->cm_flags & AAC_CMD_MAPPED) in aac_startio()
994 if (cm->cm_flags & AAC_REQ_BIO) in aac_startio()
1143 if ((cm->cm_flags & AAC_CMD_TIMEDOUT) != 0) in aac_complete()
1151 cm->cm_flags |= AAC_CMD_COMPLETED; in aac_complete()
1211 cm->cm_flags = AAC_REQ_BIO; in aac_bio_command()
1244 cm->cm_flags |= AAC_CMD_DATAIN; in aac_bio_command()
1247 cm->cm_flags |= AAC_CMD_DATAOUT; in aac_bio_command()
1260 cm->cm_flags |= AAC_CMD_DATAIN; in aac_bio_command()
1270 cm->cm_flags | in aac_bio_command()
[all...]
H A Daac_cam.c406 cm->cm_flags |= AAC_CMD_DATAIN; in aac_cam_action()
410 cm->cm_flags |= AAC_CMD_DATAOUT; in aac_cam_action()
417 cm->cm_flags |= AAC_CMD_DATAIN | AAC_CMD_DATAOUT; in aac_cam_action()
/freebsd/sys/dev/aacraid/
H A Daacraid_var.h180 int cm_flags; member
575 if ((cm->cm_flags & AAC_ON_AACQ_MASK) != 0) { \
577 cm, cm->cm_flags); \
581 cm->cm_flags |= AAC_ON_ ## index; \
587 if ((cm->cm_flags & AAC_ON_AACQ_MASK) != 0) { \
589 cm, cm->cm_flags); \
593 cm->cm_flags |= AAC_ON_ ## index; \
602 if ((cm->cm_flags & AAC_ON_ ## index) == 0) { \
604 "bit = %#x\n", cm, cm->cm_flags, \
609 cm->cm_flags &= ~AAC_ON_ ## index; \
[all …]
H A Daacraid_cam.c384 cm->cm_flags |= AAC_CMD_DATAIN; in aac_container_rw_command()
387 cm->cm_flags |= AAC_CMD_DATAOUT; in aac_container_rw_command()
392 cm->cm_flags |= AAC_CMD_DATAIN | AAC_CMD_DATAOUT; in aac_container_rw_command()
427 if (cm->cm_flags & AAC_CMD_DATAIN) in aac_container_rw_command()
443 if (cm->cm_flags & AAC_CMD_DATAIN) in aac_container_rw_command()
447 if (cm->cm_flags & AAC_CMD_DATAIN) { in aac_container_rw_command()
471 if (cm->cm_flags & AAC_CMD_DATAIN) { in aac_container_rw_command()
875 cm->cm_flags |= AAC_CMD_DATAIN; in aac_passthrough_command()
878 cm->cm_flags |= AAC_CMD_DATAOUT; in aac_passthrough_command()
883 cm->cm_flags |= AAC_CMD_DATAIN | AAC_CMD_DATAOUT; in aac_passthrough_command()
[all …]
H A Daacraid.c374 cm->cm_flags |= AAC_CMD_WAIT; in aac_daemon()
911 cm->cm_flags |= AAC_CMD_COMPLETED; in aacraid_new_intr_type1()
972 cm->cm_flags |= AAC_CMD_FASTRESP; in aacraid_new_intr_type1()
976 cm->cm_flags |= AAC_CMD_COMPLETED; in aacraid_new_intr_type1()
1125 cm->cm_flags = 0; in aacraid_release_command()
1417 if (cm->cm_flags & AAC_CMD_DATAIN) in aacraid_map_command_sg()
1420 if (cm->cm_flags & AAC_CMD_DATAOUT) in aacraid_map_command_sg()
1425 cm->cm_flags |= AAC_CMD_MAPPED; in aacraid_map_command_sg()
1427 if (cm->cm_flags & AAC_CMD_WAIT) { in aacraid_map_command_sg()
1497 if (!(cm->cm_flags in aac_unmap_command()
[all...]
/freebsd/sys/dev/mps/
H A Dmps_sas.c539 if ((tm->cm_flags & MPS_CM_FLAGS_ERROR_MASK) != 0) { in mpssas_remove_device()
542 "This should not happen!\n", __func__, tm->cm_flags, in mpssas_remove_device()
623 if ((tm->cm_flags & MPS_CM_FLAGS_ERROR_MASK) != 0) { in mpssas_remove_complete()
626 "This should not happen!\n", __func__, tm->cm_flags, in mpssas_remove_complete()
1064 if (cm->cm_flags & MPS_CM_FLAGS_SATA_ID_TIMEOUT) { in mpssas_complete_all_commands()
1070 if (cm->cm_flags & MPS_CM_FLAGS_POLLED) in mpssas_complete_all_commands()
1071 cm->cm_flags |= MPS_CM_FLAGS_COMPLETE; in mpssas_complete_all_commands()
1080 } else if (cm->cm_flags & MPS_CM_FLAGS_WAKEUP) { in mpssas_complete_all_commands()
1092 "reset\n", cm, cm->cm_state, cm->cm_flags, in mpssas_complete_all_commands()
1181 if ((tm->cm_flags & MPS_CM_FLAGS_ERROR_MASK) != 0) { in mpssas_logical_unit_reset_complete()
[all …]
H A Dmps_config.c146 cm->cm_flags = MPS_CM_FLAGS_SGE_SIMPLE | MPS_CM_FLAGS_DATAIN; in mps_config_get_ioc_pg8()
278 cm->cm_flags = MPS_CM_FLAGS_SGE_SIMPLE | MPS_CM_FLAGS_DATAIN; in mps_config_get_man_pg10()
645 cm->cm_flags = MPS_CM_FLAGS_SGE_SIMPLE | MPS_CM_FLAGS_DATAIN; in mps_config_get_dpm_pg0()
783 cm->cm_flags = MPS_CM_FLAGS_SGE_SIMPLE | MPS_CM_FLAGS_DATAOUT; in mps_config_set_dpm_pg0()
919 cm->cm_flags = MPS_CM_FLAGS_SGE_SIMPLE | MPS_CM_FLAGS_DATAIN; in mps_config_get_sas_device_pg0()
1051 cm->cm_flags = MPS_CM_FLAGS_SGE_SIMPLE | MPS_CM_FLAGS_DATAIN; in mps_config_get_bios_pg3()
1183 cm->cm_flags = MPS_CM_FLAGS_SGE_SIMPLE | MPS_CM_FLAGS_DATAIN; in mps_config_get_raid_volume_pg0()
1315 cm->cm_flags = MPS_CM_FLAGS_SGE_SIMPLE | MPS_CM_FLAGS_DATAIN; in mps_config_get_raid_volume_pg1()
1473 cm->cm_flags = MPS_CM_FLAGS_SGE_SIMPLE | MPS_CM_FLAGS_DATAIN; in mps_config_get_raid_pd_pg0()
H A Dmps.c2242 if (cm->cm_flags & MPS_CM_FLAGS_POLLED) in mps_complete_command()
2243 cm->cm_flags |= MPS_CM_FLAGS_COMPLETE; in mps_complete_command()
2253 if (cm->cm_flags & MPS_CM_FLAGS_WAKEUP) { in mps_complete_command()
2899 if (cm->cm_flags & MPS_CM_FLAGS_DATAIN) { in mps_push_sge()
2966 if (cm->cm_flags & MPS_CM_FLAGS_SMP_PASS) { in mps_data_cb()
2988 } else if (cm->cm_flags & MPS_CM_FLAGS_DATAOUT) { in mps_data_cb()
2995 if ((cm->cm_flags & MPS_CM_FLAGS_SMP_PASS) && (i != 0)) { in mps_data_cb()
3005 cm->cm_flags |= MPS_CM_FLAGS_CHAIN_FAILED; in mps_data_cb()
3043 if (cm->cm_flags & MPS_CM_FLAGS_USE_UIO) { in mps_map_command()
3046 } else if (cm->cm_flags & MPS_CM_FLAGS_USE_CCB) { in mps_map_command()
[all …]
H A Dmps_user.c499 cm->cm_flags |= MPS_CM_FLAGS_DATAOUT; in mpi_pre_fw_download()
535 cm->cm_flags |= MPS_CM_FLAGS_DATAIN; in mpi_pre_fw_upload()
684 cm->cm_flags = MPS_CM_FLAGS_SGE_SIMPLE; in mps_user_command()
901 cm->cm_flags = 0; in mps_user_pass_thru()
905 cm->cm_flags = MPS_CM_FLAGS_DATAIN; in mps_user_pass_thru()
907 cm->cm_flags |= MPS_CM_FLAGS_DATAOUT; in mps_user_pass_thru()
912 cm->cm_flags = MPS_CM_FLAGS_DATAOUT; in mps_user_pass_thru()
920 cm->cm_flags |= MPS_CM_FLAGS_SGE_SIMPLE; in mps_user_pass_thru()
986 if (cm->cm_flags & MPS_CM_FLAGS_DATAIN) in mps_user_pass_thru()
988 else if (cm->cm_flags & MPS_CM_FLAGS_DATAOUT) in mps_user_pass_thru()
[all …]
H A Dmps_sas_lsi.c784 if (cm->cm_flags & MPS_CM_FLAGS_SATA_ID_TIMEOUT) { in mpssas_add_device()
786 cm->cm_flags |= MPS_CM_FLAGS_TIMEDOUT; in mpssas_add_device()
939 cm->cm_flags = MPS_CM_FLAGS_SGE_SIMPLE | MPS_CM_FLAGS_DATAIN; in mpssas_get_sata_identify()
986 if ((cm->cm_flags & MPS_CM_FLAGS_SATA_ID_TIMEOUT) == 0) { in mpssas_get_sata_identify()
1021 cm->cm_flags |= MPS_CM_FLAGS_SATA_ID_TIMEOUT; in mpssas_ata_id_timeout()
H A Dmpsvar.h229 u_int cm_flags; member
555 cm->cm_flags = 0; in mps_free_command()
605 cm->cm_flags = 0; in mps_free_high_priority_command()
/freebsd/sys/dev/mpr/
H A Dmpr_sas.c574 if ((tm->cm_flags & MPR_CM_FLAGS_ERROR_MASK) != 0) { in mprsas_remove_device()
577 tm->cm_flags, handle); in mprsas_remove_device()
661 if ((tm->cm_flags & MPR_CM_FLAGS_ERROR_MASK) != 0) { in mprsas_remove_complete()
664 tm->cm_flags, handle); in mprsas_remove_complete()
1125 if (cm->cm_flags & MPR_CM_FLAGS_SATA_ID_TIMEOUT) { in mprsas_complete_all_commands()
1131 if (cm->cm_flags & MPR_CM_FLAGS_POLLED) in mprsas_complete_all_commands()
1132 cm->cm_flags |= MPR_CM_FLAGS_COMPLETE; in mprsas_complete_all_commands()
1140 } else if (cm->cm_flags & MPR_CM_FLAGS_WAKEUP) { in mprsas_complete_all_commands()
1152 "reset\n", cm, cm->cm_state, cm->cm_flags, in mprsas_complete_all_commands()
1238 if ((tm->cm_flags & MPR_CM_FLAGS_ERROR_MASK) != 0) { in mprsas_logical_unit_reset_complete()
[all …]
H A Dmpr_config.c146 cm->cm_flags = MPR_CM_FLAGS_SGE_SIMPLE | MPR_CM_FLAGS_DATAIN; in mpr_config_get_ioc_pg8()
278 cm->cm_flags = MPR_CM_FLAGS_SGE_SIMPLE | MPR_CM_FLAGS_DATAIN; in mpr_config_get_iounit_pg8()
410 cm->cm_flags = MPR_CM_FLAGS_SGE_SIMPLE | MPR_CM_FLAGS_DATAIN; in mpr_config_get_man_pg11()
606 cm->cm_flags = MPR_CM_FLAGS_SGE_SIMPLE | MPR_CM_FLAGS_DATAIN; in mpr_config_get_dpm_pg0()
743 cm->cm_flags = MPR_CM_FLAGS_SGE_SIMPLE | MPR_CM_FLAGS_DATAOUT; in mpr_config_set_dpm_pg0()
879 cm->cm_flags = MPR_CM_FLAGS_SGE_SIMPLE | MPR_CM_FLAGS_DATAIN; in mpr_config_get_sas_device_pg0()
1016 cm->cm_flags = MPR_CM_FLAGS_SGE_SIMPLE | MPR_CM_FLAGS_DATAIN; in mpr_config_get_pcie_device_pg0()
1153 cm->cm_flags = MPR_CM_FLAGS_SGE_SIMPLE | MPR_CM_FLAGS_DATAIN; in mpr_config_get_pcie_device_pg2()
1285 cm->cm_flags = MPR_CM_FLAGS_SGE_SIMPLE | MPR_CM_FLAGS_DATAIN; in mpr_config_get_bios_pg3()
1417 cm->cm_flags = MPR_CM_FLAGS_SGE_SIMPLE | MPR_CM_FLAGS_DATAIN; in mpr_config_get_raid_volume_pg0()
[all …]
H A Dmpr_user.c505 cm->cm_flags |= MPR_CM_FLAGS_DATAOUT; in mpi_pre_fw_download()
533 cm->cm_flags |= MPR_CM_FLAGS_DATAIN; in mpi_pre_fw_upload()
682 cm->cm_flags = MPR_CM_FLAGS_SGE_SIMPLE; in mpr_user_command()
899 cm->cm_flags = 0; in mpr_user_pass_thru()
903 cm->cm_flags = MPR_CM_FLAGS_DATAIN; in mpr_user_pass_thru()
905 cm->cm_flags |= MPR_CM_FLAGS_DATAOUT; in mpr_user_pass_thru()
910 cm->cm_flags = MPR_CM_FLAGS_DATAOUT; in mpr_user_pass_thru()
923 cm->cm_flags |= MPR_CM_FLAGS_SGE_SIMPLE; in mpr_user_pass_thru()
932 cm->cm_flags &= ~MPR_CM_FLAGS_SGE_SIMPLE; in mpr_user_pass_thru()
1055 if (cm->cm_flags & MPR_CM_FLAGS_DATAIN) in mpr_user_pass_thru()
[all …]
H A Dmpr.c2391 if (cm->cm_flags & MPR_CM_FLAGS_POLLED) in mpr_complete_command()
2392 cm->cm_flags |= MPR_CM_FLAGS_COMPLETE; in mpr_complete_command()
2402 if (cm->cm_flags & MPR_CM_FLAGS_WAKEUP) { in mpr_complete_command()
3393 if (cm->cm_flags & MPR_CM_FLAGS_SGE_SIMPLE) { in mpr_add_chain()
3521 if (cm->cm_flags & MPR_CM_FLAGS_DATAIN) { in mpr_push_sge()
3628 if (!(cm->cm_flags & MPR_CM_FLAGS_SGE_SIMPLE)) { in mpr_add_dmaseg()
3675 if (cm->cm_flags & MPR_CM_FLAGS_SMP_PASS) { in mpr_data_cb()
3697 } else if (cm->cm_flags & MPR_CM_FLAGS_DATAOUT) { in mpr_data_cb()
3711 if ((cm->cm_flags & MPR_CM_FLAGS_SMP_PASS) && (i != 0)) { in mpr_data_cb()
3721 cm->cm_flags |= MPR_CM_FLAGS_CHAIN_FAILED; in mpr_data_cb()
[all …]
H A Dmpr_sas_lsi.c1009 if (cm->cm_flags & MPR_CM_FLAGS_SATA_ID_TIMEOUT) { in mprsas_add_device()
1011 cm->cm_flags |= MPR_CM_FLAGS_TIMEDOUT; in mprsas_add_device()
1164 cm->cm_flags = MPR_CM_FLAGS_DATAIN; in mprsas_get_sata_identify()
1211 if ((cm->cm_flags & MPR_CM_FLAGS_SATA_ID_TIMEOUT) == 0) { in mprsas_get_sata_identify()
1247 cm->cm_flags |= MPR_CM_FLAGS_SATA_ID_TIMEOUT; in mprsas_ata_id_timeout()
/freebsd/sys/sys/
H A Dchio.h72 u_int16_t cm_flags; /* misc. flags */ member
/freebsd/sys/dev/smartpqi/
H A Dsmartpqi_cam.c200 if (!(rcb->cm_flags & PQI_CMD_MAPPED)) in pqi_synch_request()
213 rcb->cm_flags &= ~PQI_CMD_MAPPED; in pqi_synch_request()
620 if (rcb->cm_flags & PQI_CMD_MAPPED) in pqi_map_request()
623 rcb->cm_flags |= PQI_CMD_MAPPED; in pqi_map_request()
665 rcb->cm_flags = 0; in os_reset_rcb()

12