Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 19 files:
- drivers/bluetooth/hci_h5.c
- drivers/char/tpm/tpm_tis_i2c.c, line 269
- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c, line 256
- drivers/greybus/gb-beagleplay.c
- drivers/input/touchscreen/ili210x.c, line 713
- drivers/net/ethernet/via/via-velocity.c, line 2995
- drivers/net/ieee802154/cc2520.c, line 485
- drivers/net/mctp/mctp-serial.c
- drivers/net/wireless/intersil/p54/eeprom.c
- drivers/net/wireless/ralink/rt2x00/rt2800lib.c, line 647
- drivers/nfc/microread/microread.c, line 429
- drivers/nfc/pn544/i2c.c
- drivers/nfc/st21nfca/i2c.c
- lib/crc/crc-ccitt.c, line 63
- net/ipv6/calipso.c
- net/mac802154/rx.c
- net/mac802154/tx.c, line 74
- net/nfc/digital.h
- net/nfc/nci/spi.c
Smatch caller information:
drivers/nfc/st21nfca/i2c.c check_crc() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | u16max |
| PARAM_VALUE | 1 | buffer | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 1 | buffer | 1-s32max |
| BUF_SIZE | 1 | buffer | 1-s32max |
| DATA_SOURCE | 1 | buffer | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | buffer | unit_byte |
| UNITS | 2 | len | unit_byte |
| HALF_LOCKED2 | _T->lock |
drivers/nfc/st21nfca/i2c.c st21nfca_hci_add_len_crc() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | u16max |
| BUF_SIZE | 1 | buffer | 1-s32max |
| UNITS | 1 | buffer | unit_byte |
| UNITS | 2 | len | unit_byte |
| HALF_LOCKED2 | &pool->lock |
net/mac802154/rx.c ieee802154_rx() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | 0 |
| BUF_SIZE | 1 | buffer | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | buffer | unit_byte |
| UNITS | 2 | len | unit_byte |
| HALF_LOCKED2 | bh |
net/mac802154/rx.c ieee802154_rx() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | 0 |
| PARAM_VALUE | 1 | buffer | 4096-ptr_max |
| BUF_SIZE | 1 | buffer | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | buffer | unit_byte |
| UNITS | 2 | len | unit_byte |
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | bh |
drivers/greybus/gb-beagleplay.c hdlc_append_tx_u8() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | len | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &bg->tx_producer_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct gb_beagleplay)->tx_producer_lock |
drivers/greybus/gb-beagleplay.c hdlc_rx_frame() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | u16max |
| PARAM_VALUE | 1 | buffer | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 1-u16max |
| BUF_SIZE | 1 | buffer | 259 |
| RX_PATH | |||
| UNITS | 2 | len | unit_byte |
| LOCK2 | &buf->lock | ||
| LOCK2 | &pool->lock | ||
| TYPE_LOCK | (struct tty_bufhead)->lock |
drivers/net/wireless/intersil/p54/eeprom.c p54_parse_eeprom() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | buffer | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 4 |
| CAPPED_DATA | 1 | buffer | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | buffer | unit_byte |
| UNITS | 2 | len | unit_byte |
drivers/net/wireless/intersil/p54/eeprom.c p54_parse_eeprom() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | buffer | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 2-131072 |
| CAPPED_DATA | 1 | buffer | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | buffer | unit_byte |
drivers/net/ieee802154/cc2520.c cc2520_tx() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | 0 |
| BUF_SIZE | 1 | buffer | 1-s32max |
| UNITS | 1 | buffer | unit_byte |
| UNITS | 2 | len | unit_byte |
| HALF_LOCKED2 | &pool->lock |
drivers/net/mctp/mctp-serial.c mctp_serial_tx_work() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | u16max |
| PARAM_VALUE | 1 | buffer | 1 |
| PARAM_VALUE | 2 | len | 2 |
| BUF_SIZE | 1 | buffer | 2 |
| PREEMPT_ADD | <- disables preempt | ||
| LOCK2 | &dev->lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct mctp_serial)->lock |
drivers/net/mctp/mctp-serial.c mctp_serial_tx_work() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | len | 1-9223372036854775807 |
| DATA_SOURCE | 2 | len | r write_chunk |
| PREEMPT_ADD | <- disables preempt | ||
| UNITS | 1 | buffer | unit_byte |
| LOCK2 | &dev->lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct mctp_serial)->lock |
net/nfc/nci/spi.c nci_spi_check_crc() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | u16max |
| PARAM_VALUE | 1 | buffer | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 0-u32max |
| BUF_SIZE | 1 | buffer | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | buffer | unit_byte |
| UNITS | 2 | len | unit_byte |
| HALF_LOCKED2 | _T->lock |
net/nfc/nci/spi.c nci_spi_send() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | u16max |
| BUF_SIZE | 1 | buffer | 1-s32max |
| UNITS | 1 | buffer | unit_byte |
| UNITS | 2 | len | unit_byte |
| LOCK2 | &pool->lock |
net/nfc/nci/spi.c send_acknowledge() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | u16max |
| BUF_SIZE | 1 | buffer | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | buffer | unit_byte |
| UNITS | 2 | len | unit_byte |
| HALF_LOCKED2 | _T->lock |
drivers/nfc/microread/microread.c microread_im_transceive() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | u16max |
| BUF_SIZE | 1 | buffer | 1-s32max |
| UNITS | 1 | buffer | unit_byte |
| UNITS | 2 | len | unit_byte |
| LOCK2 | &nfc_dev->dev.mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct device)->mutex |
drivers/char/tpm/tpm_tis_i2c.c tpm_tis_i2c_verify_crc() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | 0 |
| PARAM_VALUE | 1 | buffer | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 1-s32max,18446744071562067968-u64max |
| BUF_SIZE | 1 | buffer | (-1),10,4096 |
| BUF_SIZE | 1 | buffer | (-1),10,4096 |
| DATA_SOURCE | 1 | buffer | $2 |
| DATA_SOURCE | 2 | len | $1 |
| FUZZY_MAX | 2 | len | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *buffer | 0-255 |
| USER_DATA | 2 | len | 1-4096[u] |
| USER_PTR | 1 | buffer |
drivers/input/touchscreen/ili210x.c ili251x_firmware_write_to_ic() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | 0 |
| PARAM_VALUE | 2 | len | 0-57341,18446744073709490174-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/net/wireless/ralink/rt2x00/rt2800lib.c rt2800_check_firmware_crc() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | u16max |
| PARAM_VALUE | 1 | buffer | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 4094,8190 |
| CAPPED_DATA | 2 | len | 1 |
| DATA_SOURCE | 1 | buffer | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/ethernet/via/via-velocity.c wol_calc_crc() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | buffer | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &vptr->lock | ||
| LOCK2 | flags | ||
| TYPE_LOCK | (struct velocity_info)->lock |
net/mac802154/tx.c ieee802154_tx() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | 0 |
| BUF_SIZE | 1 | buffer | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | *buffer | 0-255 |
| HOST_DATA | 2 | len | 0-u32max[c] |
| NO_OVERFLOW_SIMPLE | 2 | len | |
| UNITS | 1 | buffer | unit_byte |
| UNITS | 2 | len | unit_byte |
net/ipv6/calipso.c calipso_genopt() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | u16max |
| PARAM_VALUE | 1 | buffer | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 10,14-268435466 |
| FUZZY_MAX | 2 | len | 10 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | buffer | unit_byte |
| UNITS | 2 | len | unit_byte |
| HALF_LOCKED2 | rcu_read |
net/ipv6/calipso.c calipso_validate() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | u16max |
| PARAM_VALUE | 1 | buffer | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 8 |
| DATA_SOURCE | 1 | buffer | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read |
net/ipv6/calipso.c calipso_validate() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | buffer | 2043323584233353216 |
| PARAM_VALUE | 2 | len | 2 |
| BUF_SIZE | 1 | buffer | 2 |
| DATA_SOURCE | 0 | crc | r crc_ccitt |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | len | unit_byte |
| LOCK2 | rcu_read |
net/ipv6/calipso.c calipso_validate() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | len | 1-247 |
| DATA_SOURCE | 0 | crc | r crc_ccitt |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read |
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c sun6i_dsi_crc_compute() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | u16max |
| PARAM_VALUE | 1 | buffer | 16,4096-ptr_max |
| BUF_SIZE | 1 | buffer | (-1)-u16max |
| BUF_SIZE | 1 | buffer | (-1)-u16max |
| DATA_SOURCE | 1 | buffer | $0 |
| DATA_SOURCE | 2 | len | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | len | unit_byte |
drivers/bluetooth/hci_h5.c h5_prepare_pkt() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | u16max |
| PARAM_VALUE | 1 | buffer | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 4 |
| BUF_SIZE | 1 | buffer | 4 |
| PREEMPT_ADD | |||
| HALF_LOCKED2 | &h5->unack.lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | flags |
drivers/bluetooth/hci_h5.c h5_prepare_pkt() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | len | 0-s32max |
| BUF_SIZE | 1 | buffer | (-1),1-s32max |
| BUF_SIZE | 1 | buffer | (-1),1-s32max |
| CAPPED_DATA | 2 | len | 1 |
| CAPPED_DATA | 2 | len | 1 |
| DATA_SOURCE | 0 | crc | r crc_ccitt |
| DATA_SOURCE | 1 | buffer | $2 |
| DATA_SOURCE | 2 | len | $3 |
| PREEMPT_ADD | |||
| UNITS | 1 | buffer | unit_byte |
| UNITS | 2 | len | unit_byte |
| HALF_LOCKED2 | &h5->unack.lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | flags |
drivers/bluetooth/hci_h5.c h5_rx_crc() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | u16max |
| PARAM_VALUE | 1 | buffer | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 4-4099 |
| BUF_SIZE | 1 | buffer | 1-s32max |
| BUF_SIZE | 1 | buffer | 1-s32max |
| RX_PATH | |||
| USER_DATA | 1 | *buffer | 0-255 |
| USER_DATA | 2 | len | 4-4099[c] |
| UNITS | 1 | buffer | unit_byte |
| USER_PTR | 1 | buffer | |
| HALF_LOCKED2 | &buf->lock | ||
| HALF_LOCKED2 | &pool->lock |
drivers/nfc/pn544/i2c.c check_crc() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | u16max |
| PARAM_VALUE | 1 | buffer | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 0-254,u64max |
| BUF_SIZE | 1 | buffer | 1-s32max |
| BUF_SIZE | 1 | buffer | 1-s32max |
| DATA_SOURCE | 1 | buffer | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | buffer | unit_byte |
| HALF_LOCKED2 | _T->lock |
drivers/nfc/pn544/i2c.c pn544_hci_i2c_add_len_crc() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | u16max |
| BUF_SIZE | 1 | buffer | 1-s32max |
| UNITS | 1 | buffer | unit_byte |
| UNITS | 2 | len | unit_byte |
| HALF_LOCKED2 | &pool->lock |
drivers/nfc/pn544/i2c.c pn544_hci_i2c_fw_check_cmd() -> crc_ccitt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | u16max |
| CAPPED_DATA | 2 | len | 1 |
| DATA_SOURCE | 1 | buffer | $2 |
| DATA_SOURCE | 2 | len | $3 |
| HALF_LOCKED2 | &pool->lock |
net/nfc/digital_core.c digital_skb_check_crc() -> digital_skb_check_crc param 1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | 0,25443 |
| PARAM_VALUE | 2 | len | 0-u32max |
| BUF_SIZE | 1 | buffer | 1-s32max |
| DATA_SOURCE | 0 | crc | $2 |
| HARD_MAX | 0 | crc | 25443 |
| RX_PATH | |||
| UNITS | 1 | buffer | unit_byte |
| UNITS | 2 | len | unit_byte |
| HALF_LOCKED2 | &pool->lock |
net/nfc/digital_core.c digital_skb_add_crc() -> digital_skb_add_crc param 1()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | crc | 0,25443 |
| BUF_SIZE | 1 | buffer | 1-s32max |
| DATA_SOURCE | 0 | crc | $2 |
| HARD_MAX | 0 | crc | 25443 |
| RX_PATH | |||
| UNITS | 1 | buffer | unit_byte |
| UNITS | 2 | len | unit_byte |
| HALF_LOCKED2 | &pool->lock |