Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/mmc/host/rtsx_usb_sdmmc.c sd_rw_multi() -> sd_clear_error()

Type Parameter Key Value
PARAM_VALUE 0 host 4096-ptr_max
PARAM_VALUE 0 host->card_exist 1
PARAM_VALUE 0 host->host_mutex.dep_map->name 0-255
PARAM_VALUE 0 host->host_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 host->host_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 host->host_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 host->host_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 host->host_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 host->host_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 host->host_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 host->host_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 host->host_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 host->host_removal 0
PARAM_VALUE 0 host->mrq 4096-ptr_max
PARAM_VALUE 0 host->mrq->cmd 4096-ptr_max
PARAM_VALUE 0 host->mrq->data 4096-ptr_max
PARAM_VALUE 0 host->ucr 4096-ptr_max
PARAM_VALUE 0 host->ucr->cmd_buf 4096-ptr_max
PARAM_VALUE 0 host->ucr->cmd_idx 0-254
PARAM_VALUE 0 host->ucr->dev_mutex.dep_map->name 0-255
PARAM_VALUE 0 host->ucr->dev_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 host->ucr->dev_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 host->ucr->dev_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 host->ucr->dev_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 host->ucr->dev_mutex.wait_lock.owner (-1)
PARAM_VALUE 0 host->ucr->dev_mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 0 host->ucr->pusb_dev 4096-ptr_max
PARAM_VALUE 0 host->ucr->pusb_dev->state 4-u32max
BUF_SIZE 0 host->mrq (-1)-0,304
DATA_SOURCE 0 host $0
BIT_INFO 0 host->ocp_stat 0x0,0xfffc
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &ucr->dev_mutex
TYPE_LOCK (struct rtsx_ucr)->dev_mutex

drivers/mmc/host/rtsx_usb_sdmmc.c sd_send_cmd_get_rsp() -> sd_clear_error()

Type Parameter Key Value
PARAM_VALUE 0 host 4096-ptr_max
PARAM_VALUE 0 host->card_exist 1
PARAM_VALUE 0 host->host_mutex.dep_map->name 0-255
PARAM_VALUE 0 host->host_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 host->host_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 host->host_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 host->host_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 host->host_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 host->host_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 host->host_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 host->host_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 host->host_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 host->host_removal 0
PARAM_VALUE 0 host->mrq 4096-ptr_max
PARAM_VALUE 0 host->mrq->data 0,4096-ptr_max
PARAM_VALUE 0 host->ucr 4096-ptr_max
PARAM_VALUE 0 host->ucr->cmd_buf 4096-ptr_max
PARAM_VALUE 0 host->ucr->cmd_idx 0-254
PARAM_VALUE 0 host->ucr->dev_mutex.dep_map->name 0-255
PARAM_VALUE 0 host->ucr->dev_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 host->ucr->dev_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 host->ucr->dev_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 host->ucr->dev_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 host->ucr->dev_mutex.wait_lock.owner (-1)
PARAM_VALUE 0 host->ucr->dev_mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 0 host->ucr->pusb_dev 4096-ptr_max
PARAM_VALUE 0 host->ucr->pusb_dev->state 4-u32max
PARAM_VALUE 0 host->ucr->rsp_buf 4096-ptr_max
BUF_SIZE 0 host->mrq (-1)-0,304
DATA_SOURCE 0 host $0
BIT_INFO 0 host->ocp_stat 0x0,0xfffc
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &ucr->dev_mutex
TYPE_LOCK (struct rtsx_ucr)->dev_mutex

drivers/mmc/host/rtsx_usb_sdmmc.c sd_tuning_rx_cmd() -> sd_clear_error()

Type Parameter Key Value
PARAM_VALUE 0 host 4096-ptr_max
PARAM_VALUE 0 host->ddr_mode 0
PARAM_VALUE 0 host->host_removal 0
PARAM_VALUE 0 host->ucr 4096-ptr_max
PARAM_VALUE 0 host->ucr->cmd_buf 4096-ptr_max
PARAM_VALUE 0 host->ucr->cmd_idx 0-254
PARAM_VALUE 0 host->ucr->dev_mutex.dep_map->name 0-255
PARAM_VALUE 0 host->ucr->dev_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 host->ucr->dev_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 host->ucr->dev_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 host->ucr->dev_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 host->ucr->dev_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 host->ucr->dev_mutex.wait_lock.owner (-1)
PARAM_VALUE 0 host->ucr->dev_mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 0 host->ucr->dev_mutex.wait_lock.raw_lock.val.counter 0-s32max
PARAM_VALUE 0 host->ucr->pusb_dev 4096-ptr_max
PARAM_VALUE 0 host->ucr->pusb_dev->state 4-u32max
DATA_SOURCE 0 host $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &ucr->dev_mutex
TYPE_LOCK (struct rtsx_ucr)->dev_mutex

drivers/mmc/host/rtsx_pci_sdmmc.c sd_read_long_data() -> sd_clear_error()

Type Parameter Key Value
PARAM_VALUE 0 host 4096-ptr_max
PARAM_VALUE 0 host->eject 0
PARAM_VALUE 0 host->host_mutex.dep_map->name 0-255
PARAM_VALUE 0 host->host_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 host->host_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 host->host_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 host->host_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 host->host_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 host->host_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 host->host_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 host->host_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 host->host_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 host->host_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 host->mmc 4096-ptr_max
PARAM_VALUE 0 host->mrq 4096-ptr_max
PARAM_VALUE 0 host->mrq->cmd 4096-ptr_max
PARAM_VALUE 0 host->mrq->data 4096-ptr_max
PARAM_VALUE 0 host->pcr 4096-ptr_max
PARAM_VALUE 0 host->pcr->ci s32min-256
PARAM_VALUE 0 host->pcr->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 host->pcr->pci 4096-ptr_max
PARAM_VALUE 0 host->pcr->pcr_mutex.dep_map->name 0-255
PARAM_VALUE 0 host->pcr->pcr_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 host->pcr->pcr_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 host->pcr->pcr_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 host->pcr->pcr_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 host->pcr->pcr_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 host->pcr->pcr_mutex.wait_lock.owner (-1)
PARAM_VALUE 0 host->pcr->pcr_mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 0 host->pcr->remap_addr 4096-ptr_max
PARAM_VALUE 0 host->sg_count 0-s32max
CAPPED_DATA 0 host->sg_count 1
DATA_SOURCE 0 host $0
FUZZY_MAX 0 host->sg_count 0
NOCHECK_CALL
LOCK2 &pcr->pcr_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct rtsx_pcr)->pcr_mutex

drivers/mmc/host/rtsx_pci_sdmmc.c sd_send_cmd_get_rsp() -> sd_clear_error()

Type Parameter Key Value
PARAM_VALUE 0 host 4096-ptr_max
PARAM_VALUE 0 host->eject 0
PARAM_VALUE 0 host->host_mutex.dep_map->name 0-255
PARAM_VALUE 0 host->host_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 host->host_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 host->host_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 host->host_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 host->host_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 host->host_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 host->host_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 host->host_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 host->host_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 host->mrq 4096-ptr_max
PARAM_VALUE 0 host->mrq->data 0,4096-ptr_max
PARAM_VALUE 0 host->pcr 4096-ptr_max
PARAM_VALUE 0 host->pcr->ci s32min-256
PARAM_VALUE 0 host->pcr->done 0
PARAM_VALUE 0 host->pcr->finish_me 0,4096-ptr_max
PARAM_VALUE 0 host->pcr->finish_me->wait.lock.dep_map->name 0-255
PARAM_VALUE 0 host->pcr->finish_me->wait.lock.owner (-1)
PARAM_VALUE 0 host->pcr->finish_me->wait.lock.owner_cpu u32max
PARAM_VALUE 0 host->pcr->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 host->pcr->pci 4096-ptr_max
PARAM_VALUE 0 host->pcr->pcr_mutex.dep_map->name 0-255
PARAM_VALUE 0 host->pcr->pcr_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 host->pcr->pcr_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 host->pcr->pcr_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 host->pcr->pcr_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 host->pcr->pcr_mutex.wait_lock.owner (-1)
PARAM_VALUE 0 host->pcr->pcr_mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 0 host->pcr->remap_addr 4096-ptr_max
PARAM_VALUE 0 host->pcr->trans_result 0
DATA_SOURCE 0 host $0
NOCHECK_CALL
LOCK2 &pcr->pcr_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct rtsx_pcr)->pcr_mutex

drivers/mmc/host/rtsx_pci_sdmmc.c sd_tuning_rx_cmd() -> sd_clear_error()

Type Parameter Key Value
PARAM_VALUE 0 host 4096-ptr_max
PARAM_VALUE 0 host->eject 0
PARAM_VALUE 0 host->pcr 4096-ptr_max
PARAM_VALUE 0 host->pcr->ci s32min-256
PARAM_VALUE 0 host->pcr->done 0
PARAM_VALUE 0 host->pcr->finish_me 0,4096-ptr_max
PARAM_VALUE 0 host->pcr->finish_me->wait.lock.dep_map->name 0-255
PARAM_VALUE 0 host->pcr->finish_me->wait.lock.owner (-1)
PARAM_VALUE 0 host->pcr->finish_me->wait.lock.owner_cpu u32max
PARAM_VALUE 0 host->pcr->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 host->pcr->pcr_mutex.dep_map->name 0-255
PARAM_VALUE 0 host->pcr->pcr_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 host->pcr->pcr_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 host->pcr->pcr_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 host->pcr->pcr_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 host->pcr->pcr_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 host->pcr->pcr_mutex.wait_lock.owner (-1)
PARAM_VALUE 0 host->pcr->pcr_mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 0 host->pcr->pcr_mutex.wait_lock.raw_lock.val.counter 0-s32max
PARAM_VALUE 0 host->pcr->remap_addr 4096-ptr_max
PARAM_VALUE 0 host->pcr->trans_result 0
DATA_SOURCE 0 host $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &pcr->pcr_mutex
TYPE_LOCK (struct rtsx_pcr)->pcr_mutex

drivers/mmc/host/rtsx_pci_sdmmc.c sd_write_long_data() -> sd_clear_error()

Type Parameter Key Value
PARAM_VALUE 0 host 4096-ptr_max
PARAM_VALUE 0 host->eject 0
PARAM_VALUE 0 host->host_mutex.dep_map->name 0-255
PARAM_VALUE 0 host->host_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 host->host_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 host->host_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 host->host_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 host->host_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 host->host_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 host->host_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 host->host_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 host->host_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 host->host_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 host->mmc 4096-ptr_max
PARAM_VALUE 0 host->mrq 4096-ptr_max
PARAM_VALUE 0 host->mrq->cmd 4096-ptr_max
PARAM_VALUE 0 host->mrq->data 4096-ptr_max
PARAM_VALUE 0 host->pcr 4096-ptr_max
PARAM_VALUE 0 host->pcr->ci s32min-256
PARAM_VALUE 0 host->pcr->done 0
PARAM_VALUE 0 host->pcr->done->done 0-4294967293,u32max
PARAM_VALUE 0 host->pcr->finish_me->wait.lock.dep_map->name 0-255
PARAM_VALUE 0 host->pcr->finish_me->wait.lock.owner (-1)
PARAM_VALUE 0 host->pcr->finish_me->wait.lock.owner_cpu u32max
PARAM_VALUE 0 host->pcr->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 host->pcr->pci 4096-ptr_max
PARAM_VALUE 0 host->pcr->pcr_mutex.dep_map->name 0-255
PARAM_VALUE 0 host->pcr->pcr_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 host->pcr->pcr_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 host->pcr->pcr_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 host->pcr->pcr_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 host->pcr->pcr_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 host->pcr->pcr_mutex.wait_lock.owner (-1)
PARAM_VALUE 0 host->pcr->pcr_mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 0 host->pcr->remap_addr 4096-ptr_max
PARAM_VALUE 0 host->pcr->trans_result 0
PARAM_VALUE 0 host->sg_count 0-s32max
CAPPED_DATA 0 host->sg_count 1
DATA_SOURCE 0 host $0
FUZZY_MAX 0 host->sg_count 0
NOCHECK_CALL
LOCK2 &pcr->pcr_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct rtsx_pcr)->pcr_mutex