Defined in 1 files as a prototype:
Defined in 2 files as a function:
- drivers/ntb/hw/amd/ntb_hw_amd.c, line 76 (as a function)
- drivers/ntb/hw/intel/ntb_hw_gen1.c, line 177 (as a function)
Referenced in 4 files:
- drivers/ntb/hw/amd/ntb_hw_amd.c
- drivers/ntb/hw/intel/ntb_hw_gen1.c
- drivers/ntb/hw/intel/ntb_hw_gen3.c, line 462
- drivers/ntb/hw/intel/ntb_hw_gen4.c
Smatch caller information:
drivers/ntb/hw/amd/ntb_hw_amd.c amd_ntb_mw_get_align() -> ndev_mw_to_bar()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ndev | 4096-ptr_max |
| DATA_SOURCE | 1 | idx | $2 |
| HALF_LOCKED2 | &_T->lock->msi.data->mutex | ||
| HALF_LOCKED2 | _T->lock |
drivers/ntb/hw/amd/ntb_hw_amd.c amd_ntb_mw_set_trans() -> ndev_mw_to_bar()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ndev | 4096-ptr_max |
| DATA_SOURCE | 1 | idx | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | idx |
drivers/ntb/hw/amd/ntb_hw_amd.c amd_ntb_peer_mw_get_addr() -> ndev_mw_to_bar()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ndev | 4096-ptr_max |
| DATA_SOURCE | 1 | idx | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | idx |
drivers/ntb/hw/intel/ntb_hw_gen3.c intel_ntb3_mw_set_trans() -> ndev_mw_to_bar()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ndev | 4096-ptr_max |
| CAPPED_DATA | 0 | ndev->b2b_idx | 1 |
| DATA_SOURCE | 1 | idx | $2 [m] |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | idx |
drivers/ntb/hw/intel/ntb_hw_gen4.c intel_ntb4_mw_get_align() -> ndev_mw_to_bar()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ndev | 4096-ptr_max |
| CAPPED_DATA | 0 | ndev->b2b_idx | 1 |
| DATA_SOURCE | 1 | idx | $2 [m] |
| HALF_LOCKED2 | &_T->lock->msi.data->mutex | ||
| HALF_LOCKED2 | _T->lock |
drivers/ntb/hw/intel/ntb_hw_gen4.c intel_ntb4_mw_set_trans() -> ndev_mw_to_bar()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ndev | 4096-ptr_max |
| CAPPED_DATA | 0 | ndev->b2b_idx | 1 |
| DATA_SOURCE | 1 | idx | $2 [m] |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | idx |
drivers/ntb/hw/intel/ntb_hw_gen1.c intel_ntb_mw_get_align() -> ndev_mw_to_bar()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ndev | 4096-ptr_max |
| CAPPED_DATA | 0 | ndev->b2b_idx | 1 |
| DATA_SOURCE | 1 | idx | $2 [m] |
| HALF_LOCKED2 | &_T->lock->msi.data->mutex | ||
| HALF_LOCKED2 | _T->lock |
drivers/ntb/hw/intel/ntb_hw_gen1.c intel_ntb_mw_set_trans() -> ndev_mw_to_bar()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ndev | 4096-ptr_max |
| CAPPED_DATA | 0 | ndev->b2b_idx | 1 |
| DATA_SOURCE | 1 | idx | $2 [m] |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | idx |
drivers/ntb/hw/intel/ntb_hw_gen1.c intel_ntb_peer_mw_get_addr() -> ndev_mw_to_bar()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ndev | 4096-ptr_max |
| CAPPED_DATA | 0 | ndev->b2b_idx | 1 |
| DATA_SOURCE | 1 | idx | $1 [m] |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | idx |
drivers/ntb/hw/intel/ntb_hw_gen1.c xeon_setup_b2b_mw() -> ndev_mw_to_bar()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ndev | 4096-ptr_max |
| PARAM_VALUE | 0 | ndev->mw_count | 2-3 |
| PARAM_VALUE | 0 | ndev->reg | 5482905391902703616 |
| PARAM_VALUE | 1 | idx | 0-2 |
| BUF_SIZE | 0 | ndev->peer_reg | 32 |
| BUF_SIZE | 0 | ndev->reg | 48 |
| BUF_SIZE | 0 | ndev->self_reg | 32 |
| BUF_SIZE | 0 | ndev->xlat_reg | 32 |
| CAPPED_DATA | 0 | ndev->b2b_idx | 1 |
| CAPPED_DATA | 1 | idx | 1 |
| DATA_SOURCE | 0 | ndev | $0 |
| FUZZY_MAX | 0 | ndev->mw_count | 3 |
| BIT_INFO | 0 | ndev->mw_count | 0x2,0x3 |
| BIT_INFO | 0 | ndev->peer_reg | 0x4809100408045000,0x5fef1f76ec7e7000 |
| HARD_MAX | 0 | ndev->mw_count | 3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | ndev->ntb.pdev->current_state | 0-3[c] |
| HALF_LOCKED2 | &pool->lock |