Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c, line 1083
- drivers/gpu/drm/i915/gt/intel_region_lmem.c
- drivers/gpu/drm/xe/xe_pci_rebar.c
- drivers/pci/iov.c, line 954
- drivers/pci/rebar.c
Smatch caller information:
drivers/gpu/drm/i915/gt/intel_region_lmem.c _resize_bar() -> pci_rebar_bytes_to_size()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | bytes | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | bytes | 0-u64max |
| HALF_LOCKED2 | __flags |
drivers/gpu/drm/i915/gt/intel_region_lmem.c i915_resize_lmem_bar() -> pci_rebar_bytes_to_size()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bytes | 1048576-4503599626321920 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | __flags |
drivers/pci/iov.c sriov_restore_vf_rebar_state() -> pci_rebar_bytes_to_size()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &accel_dev->state_lock | ||
| HALF_LOCKED2 | &dev->dev.mutex | ||
| HALF_LOCKED2 | &device->dev_set->lock | ||
| HALF_LOCKED2 | &netdev->lock | ||
| HALF_LOCKED2 | &nic_data->spi_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &qm_list->lock | ||
| HALF_LOCKED2 | global &pci_rescan_remove_lock | ||
| HALF_LOCKED2 | global &pcistub_sem | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &vgasr_mutex |
drivers/pci/rebar.c pci_restore_rebar_state() -> pci_rebar_bytes_to_size()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &accel_dev->state_lock | ||
| HALF_LOCKED2 | &device->dev_set->lock | ||
| HALF_LOCKED2 | &netdev->lock | ||
| HALF_LOCKED2 | &nic_data->spi_lock | ||
| HALF_LOCKED2 | &pdev->dev.mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &qm_list->lock | ||
| HALF_LOCKED2 | global &pci_rescan_remove_lock | ||
| HALF_LOCKED2 | global &pcistub_sem | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &vgasr_mutex |
drivers/gpu/drm/xe/xe_pci_rebar.c resize_bar() -> pci_rebar_bytes_to_size()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | bytes | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock |
drivers/gpu/drm/xe/xe_pci_rebar.c xe_pci_rebar_resize() -> pci_rebar_bytes_to_size()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c amdgpu_device_resize_fb_bar() -> pci_rebar_bytes_to_size()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | bytes | 0-4503599626321920[c] |
| UNITS | 0 | bytes | unit_byte |