Documented in 1 files:
Defined in 1 files as a function:
Referenced in 4 files:
- drivers/ntb/msi.c
- drivers/ntb/ntb_transport.c, line 849
- drivers/ntb/test/ntb_perf.c, line 575
- drivers/ntb/test/ntb_tool.c
Smatch caller information:
drivers/ntb/msi.c ntb_msi_setup_mws() -> ntb_mw_get_align()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ntb | 4096-ptr_max |
| PARAM_VALUE | 0 | ntb->msi | 1-u64max |
| PARAM_VALUE | 0 | ntb->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | ntb->ops->link_is_up | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ntb->ops->peer_port_count | 0,3302194409103257600 |
| PARAM_VALUE | 0 | ntb->ops->port_number | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ntb->ops->spad_read | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ntb->pdev | 4096-ptr_max |
| PARAM_VALUE | 0 | ntb->pdev->dev.msi.data | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ntb->pdev->dev.msi.data->__iter_idx | 0-s64max |
| PARAM_VALUE | 1 | pidx | 0-254 |
| PARAM_VALUE | 2 | widx | 0-s32max |
| PARAM_VALUE | 3 | addr_align | 7970423835284819968 |
| PARAM_VALUE | 4 | size_align | 0 |
| PARAM_VALUE | 5 | size_max | 0 |
| CAPPED_DATA | 1 | pidx | 1 |
| DATA_SOURCE | 0 | ntb | $0 |
| DATA_SOURCE | 2 | widx | r ntb_peer_highest_mw_idx |
| CONSTRAINT | 1 | pidx | <1889 |
| LOCK2 | &_T->lock->msi.data->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | _T->lock |
drivers/ntb/msi.c ntb_msi_setup_mws() -> ntb_mw_get_align()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ntb | 4096-ptr_max |
| PARAM_VALUE | 0 | ntb->msi | 1-u64max |
| PARAM_VALUE | 0 | ntb->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | ntb->ops->link_is_up | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ntb->ops->mw_set_trans | 0,842518136555724800,3085076618938568704,3660088755932938240,5572014855872364544,6157707328061571072,6317455383581306880,9128674569704988672 |
| PARAM_VALUE | 0 | ntb->ops->peer_port_count | 0,3302194409103257600 |
| PARAM_VALUE | 0 | ntb->ops->port_number | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ntb->ops->spad_read | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ntb->pdev | 4096-ptr_max |
| PARAM_VALUE | 0 | ntb->pdev->dev.msi.data | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ntb->pdev->dev.msi.data->__iter_idx | 0-s64max |
| PARAM_VALUE | 1 | pidx | 0-254 |
| PARAM_VALUE | 2 | widx | 0-s32max |
| PARAM_VALUE | 3 | addr_align | 0 |
| PARAM_VALUE | 4 | size_align | 6562178088401031168 |
| PARAM_VALUE | 5 | size_max | 2667734788739903488 |
| CAPPED_DATA | 1 | pidx | 1 |
| DATA_SOURCE | 0 | ntb | $0 |
| DATA_SOURCE | 2 | widx | r ntb_peer_highest_mw_idx |
| CONSTRAINT | 1 | pidx | <1889 |
| LOCK2 | &_T->lock->msi.data->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | _T->lock |
drivers/ntb/ntb_transport.c ntb_set_mw() -> ntb_mw_get_align()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ntb | 4096-ptr_max |
| PARAM_VALUE | 0 | ntb->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | ntb->ops->peer_spad_write | 0,4079965994737197056,4209643071653740544,4854236880108380160,6883140719573549056,8335059707764551680 |
| PARAM_VALUE | 0 | ntb->ops->spad_read | 4096-ptr_max |
| PARAM_VALUE | 0 | ntb->pdev->dev.msi.data->__iter_idx | 0-s64max |
| PARAM_VALUE | 1 | pidx | 0 |
| PARAM_VALUE | 2 | widx | 0-2147483646 |
| PARAM_VALUE | 3 | addr_align | 6559869802289176576 |
| PARAM_VALUE | 4 | size_align | 1093635451138502656 |
| PARAM_VALUE | 5 | size_max | 0 |
| CAPPED_DATA | 2 | widx | 1 |
| DATA_SOURCE | 2 | widx | $1 |
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &pool->lock |
drivers/ntb/test/ntb_perf.c perf_setup_inbuf() -> ntb_mw_get_align()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | pidx | 0-254 |
| PARAM_VALUE | 3 | addr_align | 3424692386079473664 |
| PARAM_VALUE | 4 | size_align | 5462733654387322880 |
| PARAM_VALUE | 5 | size_max | 8947652135228280832 |
| UNITS | 1 | pidx | unit_array_size |
| UNITS | 2 | widx | unit_array_size |
| HALF_LOCKED2 | &pool->lock |
drivers/ntb/test/ntb_tool.c tool_mw_trans_read() -> ntb_mw_get_align()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 3 | addr_align | 8230650044651081728 |
| PARAM_VALUE | 4 | size_align | 4251911835086172160 |
| PARAM_VALUE | 5 | size_max | 5481460714641661952 |
| UNITS | 1 | pidx | unit_array_size |
| UNITS | 2 | widx | unit_array_size |
drivers/ntb/test/ntb_tool.c tool_setup_mw() -> ntb_mw_get_align()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ntb->pdev->dev.cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | ntb->pdev->dev.dma_mem->spinlock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 3 | addr_align | 8518222729764270080 |
| PARAM_VALUE | 4 | size_align | 7475751928478277632 |
| PARAM_VALUE | 5 | size_max | 5531399578493526016 |
| DATA_SOURCE | 1 | pidx | $1 |
| DATA_SOURCE | 2 | widx | $2 |
| UNITS | 1 | pidx | unit_array_size |
| UNITS | 2 | widx | unit_array_size |