Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/hid/intel-ish-hid/ishtp/loader.c loader_write_message() -> ishtp_write_message()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->devc 4096-ptr_max
PARAM_VALUE 0 dev->devc->cma_area->nranges s32min-s32max
PARAM_VALUE 0 dev->devc->driver_data 4096-ptr_max
PARAM_VALUE 0 dev->fw_loader_received 0
PARAM_VALUE 0 dev->fw_loader_rx_size 4,32
PARAM_VALUE 0 dev->ops->ipc_get_header 4096-ptr_max
PARAM_VALUE 0 dev->ops->write 4096-ptr_max
PARAM_VALUE 1 hdr 2142761996376944640
PARAM_VALUE 1 hdr->fw_addr 16
PARAM_VALUE 1 hdr->msg_complete 1
PARAM_VALUE 1 hdr->reserved 0
PARAM_VALUE 2 buf 690997856117784576,5000984403546464256,5203849251618643968
BUF_SIZE 0 dev->fw_loader_rx_buf 124
BUF_SIZE 2 buf 4,8,120
BUF_SIZE 2 buf 4,8,120
DATA_SOURCE 0 dev $0
DATA_SOURCE 2 buf $1
HALF_LOCKED2 &pool->lock

drivers/hid/intel-ish-hid/ishtp/client.c ipc_tx_send() -> ishtp_write_message()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->dev_state 2
PARAM_VALUE 0 dev->mtu 1-u64max
PARAM_VALUE 0 dev->ops->ipc_get_header 4096-ptr_max
PARAM_VALUE 0 dev->ops->write 4096-ptr_max
PARAM_VALUE 1 hdr 3912977410209615872
PARAM_VALUE 1 hdr->msg_complete 1
PARAM_VALUE 1 hdr->reserved 0
PARAM_VALUE 2 buf 4096-ptr_max
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 buf unit_byte
LOCK2 &cl->tx_list_spinlock
LOCK2 tx_flags
HALF_LOCKED2 &dev->cl_list_lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct ishtp_cl)->tx_list_spinlock

drivers/hid/intel-ish-hid/ishtp/client.c ipc_tx_send() -> ishtp_write_message()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->dev_state 2
PARAM_VALUE 0 dev->mtu 0-18446744073709551614
PARAM_VALUE 0 dev->ops->ipc_get_header 4096-ptr_max
PARAM_VALUE 0 dev->ops->write 4096-ptr_max
PARAM_VALUE 1 hdr 3912977410209615872
PARAM_VALUE 1 hdr->reserved 0
PARAM_VALUE 2 buf 4096-ptr_max
CAPPED_DATA 0 dev->mtu 1
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 buf unit_byte
LOCK2 &cl->tx_list_spinlock
LOCK2 tx_flags
HALF_LOCKED2 &dev->cl_list_lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct ishtp_cl)->tx_list_spinlock

drivers/hid/intel-ish-hid/ishtp/client.c ishtp_cl_send_msg_dma() -> ishtp_write_message()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->ishtp_dma_tx_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dev->ishtp_dma_tx_map 1-u64max
PARAM_VALUE 0 dev->ops 4096-ptr_max
PARAM_VALUE 0 dev->ops->dma_no_cache_snooping 1204373158861713408
PARAM_VALUE 0 dev->transfer_path 2
PARAM_VALUE 0 *dev->ishtp_dma_tx_map 1
PARAM_VALUE 1 hdr 3827019886910558208
PARAM_VALUE 1 hdr->fw_addr 0
PARAM_VALUE 1 hdr->length 20
PARAM_VALUE 1 hdr->msg_complete 1
PARAM_VALUE 1 hdr->reserved 0
PARAM_VALUE 2 buf 9141403105870884864
BUF_SIZE 2 buf 20
DATA_SOURCE 0 dev $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 dev->ishtp_msg_hdr 1-u32max
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 0 &dev->cl_list_lock

drivers/hid/intel-ish-hid/ishtp/hbm.c ishtp_hbm_cl_connect_req() -> ishtp_write_message()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-9223372036854775807
PARAM_VALUE 0 dev->dev_state 2
PARAM_VALUE 0 dev->open_handle_count s64min-255
PARAM_VALUE 1 hdr 2430687845541580800
PARAM_VALUE 1 hdr->fw_addr 0
PARAM_VALUE 1 hdr->length 4
PARAM_VALUE 1 hdr->msg_complete 1
PARAM_VALUE 1 hdr->reserved 0
PARAM_VALUE 2 buf 1661586318962556928
BUF_SIZE 2 buf 4
DATA_SOURCE 0 dev $0
MEM_ZERO 2 buf
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock

drivers/hid/intel-ish-hid/ishtp/hbm.c ishtp_hbm_cl_disconnect_req() -> ishtp_write_message()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 1 hdr 6356695583697502208
PARAM_VALUE 1 hdr->fw_addr 0
PARAM_VALUE 1 hdr->length 4
PARAM_VALUE 1 hdr->msg_complete 1
PARAM_VALUE 1 hdr->reserved 0
PARAM_VALUE 2 buf 5282808370507960320
BUF_SIZE 2 buf 4
DATA_SOURCE 0 dev $0
MEM_ZERO 2 buf
RX_PATH
TASK_NOT_RUNNING

drivers/hid/intel-ish-hid/ishtp/hbm.c ishtp_hbm_cl_flow_control_req() -> ishtp_write_message()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->ops->dma_no_cache_snooping 1204373158861713408
PARAM_VALUE 0 dev->read_list.list.prev 4096-ptr_max
PARAM_VALUE 0 dev->read_list.list.prev->next 4096-ptr_max
PARAM_VALUE 0 dev->read_list.list.prev->next->next 4096-ptr_max
PARAM_VALUE 1 hdr 4380911807673151488
PARAM_VALUE 1 hdr->fw_addr 0
PARAM_VALUE 1 hdr->length 8
PARAM_VALUE 1 hdr->msg_complete 1
PARAM_VALUE 1 hdr->reserved 0
PARAM_VALUE 2 buf 8503883406979743744
BUF_SIZE 2 buf 8
DATA_SOURCE 0 dev $0
MEM_ZERO 2 buf
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 dev->ishtp_msg_hdr 1-u32max
LOCK2 &cl->fc_spinlock
LOCK2 flags
HALF_LOCKED2 flags
HALF_LOCKED2 0 &dev->read_list_spinlock
TYPE_LOCK (struct ishtp_cl)->fc_spinlock

drivers/hid/intel-ish-hid/ishtp/hbm.c ishtp_hbm_dispatch() -> ishtp_write_message()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->dev_state 2
PARAM_VALUE 0 dev->devc 0,4096-ptr_max
PARAM_VALUE 0 dev->devc->bus 0,4096-ptr_max
PARAM_VALUE 0 dev->devc->class 0,4096-ptr_max
PARAM_VALUE 0 dev->devc->cma_area->nranges s32min-s32max
PARAM_VALUE 0 dev->devc->driver 0,4096-ptr_max
PARAM_VALUE 0 dev->devc->iommu->attach_deferred 0-1
PARAM_VALUE 0 dev->fw_clients 4096-ptr_max
PARAM_VALUE 0 dev->hbm_state 4
PARAM_VALUE 0 dev->ishtp_host_dma_rx_buf 1-u64max
PARAM_VALUE 0 dev->pdev->block_cfg_access 0
PARAM_VALUE 0 dev->pdev->current_state s32min-s32max
PARAM_VALUE 0 dev->pdev->is_virtfn 0
PARAM_VALUE 0 dev->pdev->pm_cap 0-255
PARAM_VALUE 0 dev->pdev->sriov->offset 0-u16max
PARAM_VALUE 0 dev->pdev->sriov->stride 0-u16max
PARAM_VALUE 0 dev->pdev->state_saved 0
PARAM_VALUE 0 dev->rd_msg_spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dev->recvd_hw_ready 0
PARAM_VALUE 0 dev->wr_free_list.next 4096-ptr_max
PARAM_VALUE 0 dev->wr_free_list.next->next 4096-ptr_max
PARAM_VALUE 0 dev->wr_free_list.next->prev 4096-ptr_max
PARAM_VALUE 0 dev->wr_processing_list.prev 4096-ptr_max
PARAM_VALUE 0 dev->wr_processing_list.prev->next 4096-ptr_max
PARAM_VALUE 0 dev->wr_processing_list.prev->next->next 4096-ptr_max
PARAM_VALUE 0 dev->wr_processing_list.prev->prev 0,4096-ptr_max
PARAM_VALUE 0 dev->wr_processing_spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 *dev->pdev->saved_config_space 0-4294967295
PARAM_VALUE 1 hdr 323930254037901312
PARAM_VALUE 1 hdr->fw_addr 0
PARAM_VALUE 1 hdr->length 16
PARAM_VALUE 1 hdr->msg_complete 1
PARAM_VALUE 1 hdr->reserved 0
PARAM_VALUE 2 buf 8072556992758198272
BUF_SIZE 2 buf 16
CAPPED_DATA 0 dev->devc 1
DATA_SOURCE 0 dev $0
MEM_ZERO 2 buf
RX_PATH
NOCHECK_CALL
HOST_DATA 0 dev->pdev->current_state 0-3[c]
HOST_DATA 0 dev->pdev->sriov->offset 0
HOST_DATA 0 dev->pdev->sriov->stride 0
NO_OVERFLOW_SIMPLE 0 dev->ishtp_dma_num_slots
HALF_LOCKED2 &pool->lock

drivers/hid/intel-ish-hid/ishtp/hbm.c ishtp_hbm_dma_xfer() -> ishtp_write_message()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->ishtp_host_dma_enabled s32min-(-1),1-s32max
PARAM_VALUE 1 hdr 3568437335237107712
PARAM_VALUE 1 hdr->fw_addr 0
PARAM_VALUE 1 hdr->msg_complete 1
PARAM_VALUE 1 hdr->reserved 0
PARAM_VALUE 2 buf 7213807930646736896,8013481348560420864
BUF_SIZE 2 buf 128
BUF_SIZE 2 buf 128
DATA_SOURCE 0 dev $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 dev->ishtp_msg_hdr 1-u32max

drivers/hid/intel-ish-hid/ishtp/hbm.c ishtp_hbm_enum_clients_req() -> ishtp_write_message()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->dev_state 1
PARAM_VALUE 0 dev->hbm_state 2
PARAM_VALUE 0 dev->rd_msg_spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dev->version.major_version 1
PARAM_VALUE 0 dev->version.minor_version 0
PARAM_VALUE 1 hdr 4668342462300237824
PARAM_VALUE 1 hdr->fw_addr 0
PARAM_VALUE 1 hdr->length 4
PARAM_VALUE 1 hdr->msg_complete 1
PARAM_VALUE 1 hdr->reserved 0
PARAM_VALUE 2 buf 3665797229101510656
BUF_SIZE 2 buf 4
DATA_SOURCE 0 dev $0
RX_PATH
HALF_LOCKED2 &pool->lock

drivers/hid/intel-ish-hid/ishtp/hbm.c ishtp_hbm_fw_disconnect_req() -> ishtp_write_message()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 1 hdr 8453495042338988032
PARAM_VALUE 1 hdr->fw_addr 0
PARAM_VALUE 1 hdr->length 4
PARAM_VALUE 1 hdr->msg_complete 1
PARAM_VALUE 1 hdr->reserved 0
PARAM_VALUE 2 buf 7923368267033329664
BUF_SIZE 2 buf 4
CAPPED_DATA 0 &dev->cl_list 1
DATA_SOURCE 0 dev $0
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 dev->ishtp_msg_hdr 1-u32max
LOCK2 flags
LOCK2 0 &dev->cl_list_lock
TYPE_LOCK (struct ishtp_device)->cl_list_lock

drivers/hid/intel-ish-hid/ishtp/hbm.c ishtp_hbm_prop_req() -> ishtp_write_message()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->fw_clients 4096-ptr_max
PARAM_VALUE 0 dev->hbm_state 4
PARAM_VALUE 0 dev->rd_msg_spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 1 hdr 3571525952166748160
PARAM_VALUE 1 hdr->fw_addr 0
PARAM_VALUE 1 hdr->length 4
PARAM_VALUE 1 hdr->msg_complete 1
PARAM_VALUE 1 hdr->reserved 0
PARAM_VALUE 2 buf 3381293034191167488
BUF_SIZE 2 buf 4
DATA_SOURCE 0 dev $0
RX_PATH
NO_OVERFLOW_SIMPLE 0 dev->fw_clients_num
HALF_LOCKED2 &pool->lock

drivers/hid/intel-ish-hid/ishtp/hbm.c ishtp_hbm_start_req() -> ishtp_write_message()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->cl_list_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dev->dev_state 1
PARAM_VALUE 0 dev->devc->cma_area->nranges s32min-s32max
PARAM_VALUE 0 dev->device_list_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dev->fw_client_index 0
PARAM_VALUE 0 dev->fw_client_presentation_num 0
PARAM_VALUE 0 dev->fw_clients 0
PARAM_VALUE 0 dev->fw_clients_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dev->fw_clients_num 0
PARAM_VALUE 0 dev->hbm_state 1
PARAM_VALUE 0 dev->ishtp_dma_tx_map 0
PARAM_VALUE 0 dev->ishtp_host_dma_rx_buf 0
PARAM_VALUE 0 dev->ishtp_host_dma_tx_buf 0
PARAM_VALUE 0 dev->rd_msg_fifo_head 0
PARAM_VALUE 0 dev->rd_msg_fifo_tail 0
PARAM_VALUE 0 dev->rd_msg_spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dev->wr_free_list.next->prev 4096-ptr_max
PARAM_VALUE 0 dev->wr_processing_spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 1 hdr 7620243245234384896
PARAM_VALUE 1 hdr->fw_addr 0
PARAM_VALUE 1 hdr->length 4
PARAM_VALUE 1 hdr->msg_complete 1
PARAM_VALUE 1 hdr->reserved 0
PARAM_VALUE 2 buf 337405049865719808
BUF_SIZE 2 buf 4
CAPPED_DATA 0 dev->devc->cma_area->nranges 1
DATA_SOURCE 0 dev $0
MEM_ZERO 0 dev->fw_clients_map
HALF_LOCKED2 &pool->lock

drivers/hid/intel-ish-hid/ishtp/hbm.c ishtp_hbm_stop_req() -> ishtp_write_message()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->hbm_state 6
PARAM_VALUE 0 dev->rd_msg_spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 1 hdr 1925441102474067968
PARAM_VALUE 1 hdr->fw_addr 0
PARAM_VALUE 1 hdr->length 4
PARAM_VALUE 1 hdr->msg_complete 1
PARAM_VALUE 1 hdr->reserved 0
PARAM_VALUE 2 buf 3908312098339127296
BUF_SIZE 2 buf 4
DATA_SOURCE 0 dev $0
RX_PATH
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

drivers/hid/intel-ish-hid/ishtp/hbm.c ishtp_query_subscribers() -> ishtp_write_message()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->hw 4096-ptr_max
PARAM_VALUE 0 dev->ops 4096-ptr_max
PARAM_VALUE 0 dev->ops->get_fw_status 4096-ptr_max
PARAM_VALUE 0 dev->ops->ipc_get_header 4096-ptr_max
PARAM_VALUE 0 dev->ops->ipc_reset 4096-ptr_max
PARAM_VALUE 0 dev->ops->write 4096-ptr_max
PARAM_VALUE 0 dev->pdev 4096-ptr_max
PARAM_VALUE 0 dev->wr_free_list.next 4096-ptr_max
PARAM_VALUE 0 dev->wr_free_list.next->next 4096-ptr_max
PARAM_VALUE 0 dev->wr_free_list.next->prev 4096-ptr_max
PARAM_VALUE 0 dev->wr_processing_list.prev 4096-ptr_max
PARAM_VALUE 0 dev->wr_processing_list.prev->next 4096-ptr_max
PARAM_VALUE 0 dev->wr_processing_list.prev->next->next 4096-ptr_max
PARAM_VALUE 0 dev->wr_processing_list.prev->prev 0,4096-ptr_max
PARAM_VALUE 0 dev->wr_processing_spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 1 hdr 4631748895321882624
PARAM_VALUE 1 hdr->fw_addr 13
PARAM_VALUE 1 hdr->length 8
PARAM_VALUE 1 hdr->msg_complete 1
PARAM_VALUE 1 hdr->reserved 0
PARAM_VALUE 2 buf 2554882513323433984
BUF_SIZE 0 dev s32min-(-2),1-s32max
BUF_SIZE 0 dev s32min-(-2),1-s32max
BUF_SIZE 0 dev->pdev (-1),1-s32max
BUF_SIZE 2 buf 8
DATA_SOURCE 0 dev $0
MEM_ZERO 2 buf
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 dev unit_byte
HALF_LOCKED2 &pool->lock

drivers/hid/intel-ish-hid/ishtp/hbm.c ishtp_send_resume() -> ishtp_write_message()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->hw 4096-ptr_max
PARAM_VALUE 0 dev->ops 4096-ptr_max
PARAM_VALUE 0 dev->ops->get_fw_status 4096-ptr_max
PARAM_VALUE 1 hdr 1740433573446959104
PARAM_VALUE 1 hdr->fw_addr 13
PARAM_VALUE 1 hdr->length 16
PARAM_VALUE 1 hdr->msg_complete 1
PARAM_VALUE 1 hdr->reserved 0
PARAM_VALUE 2 buf 2269998694755221504
BUF_SIZE 0 dev s32min-(-1),1-s32max
BUF_SIZE 0 dev s32min-(-1),1-s32max
BUF_SIZE 2 buf 16
DATA_SOURCE 0 dev $0
MEM_ZERO 2 buf
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 dev->ishtp_msg_hdr 1-u32max
UNITS 0 dev unit_byte

drivers/hid/intel-ish-hid/ishtp/hbm.c ishtp_send_suspend() -> ishtp_write_message()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->resume_flag 0
PARAM_VALUE 0 dev->suspend_flag 1
PARAM_VALUE 1 hdr 7736033890499710976
PARAM_VALUE 1 hdr->fw_addr 13
PARAM_VALUE 1 hdr->length 16
PARAM_VALUE 1 hdr->msg_complete 1
PARAM_VALUE 1 hdr->reserved 0
PARAM_VALUE 2 buf 874868270923956224
BUF_SIZE 0 dev s32min-(-2),1-s32max
BUF_SIZE 0 dev s32min-(-2),1-s32max
BUF_SIZE 2 buf 16
DATA_SOURCE 0 dev $0
MEM_ZERO 2 buf
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 dev unit_byte
HALF_LOCKED2 &fsm->lock