Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 13 files:
- arch/powerpc/kernel/pci_of_scan.c
- arch/sparc/kernel/pci.c
- drivers/pci/bus.c, line 187
- drivers/pci/host-bridge.c, line 102
- drivers/pci/probe.c
- drivers/pci/quirks.c
- drivers/pcmcia/yenta_socket.c, line 715
- drivers/pnp/quirks.c, line 386
- drivers/vdpa/octeon_ep/octep_vdpa_main.c
- drivers/video/fbdev/arkfb.c, line 1019
- drivers/video/fbdev/s3fb.c, line 1252
- drivers/video/fbdev/vt8623fb.c, line 739
- drivers/video/screen_info_pci.c, line 97
Smatch caller information:
drivers/pci/bus.c pci_clip_resource_to_region() -> pcibios_bus_to_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bus | 4096-ptr_max |
| PARAM_VALUE | 1 | res | 8934099568827633664 |
| PARAM_VALUE | 2 | region | 7845010589270413312 |
| DATA_SOURCE | 0 | bus | $0 |
| DATA_SOURCE | 1 | res | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &image->lock | ||
| HALF_LOCKED2 | &s->ops_mutex |
drivers/video/fbdev/s3fb.c s3_pci_probe() -> pcibios_bus_to_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | res | 7647316783906316288 |
| PARAM_VALUE | 1 | res->flags | 256 |
| PARAM_VALUE | 2 | region | 8354409536527687680 |
| PARAM_VALUE | 2 | region->end | 65536 |
| PARAM_VALUE | 2 | region->start | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/video/fbdev/vt8623fb.c vt8623_pci_probe() -> pcibios_bus_to_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | res | 7357398814952476672 |
| PARAM_VALUE | 1 | res->flags | 256 |
| PARAM_VALUE | 2 | region | 5809696417641922560 |
| PARAM_VALUE | 2 | region->end | 65536 |
| PARAM_VALUE | 2 | region->start | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/pci/probe.c __pci_read_base() -> pcibios_bus_to_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bus | 4096-ptr_max |
| PARAM_VALUE | 1 | res | 4096-ptr_max |
| PARAM_VALUE | 1 | res->flags | 262656,287232-287233,1311232,1319424 |
| PARAM_VALUE | 2 | region | 2001703749364297728 |
| PARAM_VALUE | 2 | region->start | 0 |
| BUF_SIZE | 1 | res | (-1),704 |
| BUF_SIZE | 1 | res | (-1),704 |
| BUF_SIZE | 1 | res->name | 1-s32max |
| DATA_SOURCE | 1 | res | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 0 | bus->bridge_ctl | 0-u16max |
| HOST_DATA | 0 | bus->parent->bridge_ctl | 0-u16max |
| HOST_DATA | 1 | res->flags | 262656,1311232,1319424[c] |
| HOST_DATA | 2 | region->start | 0[c] |
| HALF_LOCKED2 | global &pci_rescan_remove_lock |
drivers/pci/probe.c pci_read_bridge_io() -> pcibios_bus_to_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bus | 4096-ptr_max |
| PARAM_VALUE | 1 | res | 4096-ptr_max |
| PARAM_VALUE | 1 | res->flags | 256 |
| PARAM_VALUE | 2 | region | 5977868108893360128 |
| PARAM_VALUE | 2 | region->end | 1023,4095 |
| PARAM_VALUE | 2 | region->start | 0 |
| DATA_SOURCE | 1 | res | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 0 | bus->bridge_ctl | 0-u16max |
| HOST_DATA | 0 | bus->parent->bridge_ctl | 0-u16max |
| HOST_DATA | 1 | res->end | 0-s32max,18446744071562067968-u64max[c] |
| HOST_DATA | 1 | res->flags | 256[c] |
| HOST_DATA | 1 | res->start | 0-s32max,18446744071562067968-u64max[c] |
| HOST_DATA | 2 | region->end | 1023,4095[c] |
| HOST_DATA | 2 | region->start | 0[c] |
drivers/pci/probe.c pci_read_bridge_mmio() -> pcibios_bus_to_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | res | 4096-ptr_max |
| PARAM_VALUE | 1 | res->flags | 512 |
| PARAM_VALUE | 2 | region | 6233291344893870080 |
| PARAM_VALUE | 2 | region->end | 1048575 |
| PARAM_VALUE | 2 | region->start | 0 |
| DATA_SOURCE | 1 | res | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 0 | bus->bridge_ctl | 0-u16max |
| HOST_DATA | 0 | bus->parent->bridge_ctl | 0-u16max |
| HOST_DATA | 1 | res->end | 0-s32max,18446744071562067968-u64max[c] |
| HOST_DATA | 1 | res->flags | 512[c] |
| HOST_DATA | 1 | res->start | 0-s32max,18446744071562067968-u64max[c] |
| HOST_DATA | 2 | region->end | 1048575[c] |
| HOST_DATA | 2 | region->start | 0[c] |
drivers/pci/probe.c pci_read_bridge_mmio_pref() -> pcibios_bus_to_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | res | 4096-ptr_max |
| PARAM_VALUE | 1 | res->flags | 8704,1057280 |
| PARAM_VALUE | 2 | region | 1523189818677424128 |
| PARAM_VALUE | 2 | region->end | 1048575 |
| PARAM_VALUE | 2 | region->start | 0 |
| DATA_SOURCE | 1 | res | $1 |
| FUZZY_MAX | 1 | res->flags | 8704 |
| BIT_INFO | 1 | res->flags | 0x2200,0x102200 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 0 | bus->bridge_ctl | 0-u16max |
| HOST_DATA | 0 | bus->parent->bridge_ctl | 0-u16max |
| HOST_DATA | 1 | res->flags | 8704,1057280[c] |
| HOST_DATA | 2 | region->end | 1048575[c] |
| HOST_DATA | 2 | region->start | 0[c] |
drivers/pci/probe.c pci_setup_device() -> pcibios_bus_to_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bus | 4096-ptr_max |
| PARAM_VALUE | 1 | res | 4096-ptr_max |
| PARAM_VALUE | 1 | res->flags | 272 |
| PARAM_VALUE | 2 | region | 6805616290784272384 |
| PARAM_VALUE | 2 | region->end | 503 |
| PARAM_VALUE | 2 | region->start | 496 |
| BUF_SIZE | 1 | res | 1088 |
| BUF_SIZE | 1 | res | 1088 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 0 | bus->bridge_ctl | 0-u16max |
| HOST_DATA | 0 | bus->parent->bridge_ctl | 0-u16max |
| HALF_LOCKED2 | global &pci_rescan_remove_lock |
drivers/pci/probe.c pci_setup_device() -> pcibios_bus_to_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bus | 4096-ptr_max |
| PARAM_VALUE | 1 | res | 4096-ptr_max |
| PARAM_VALUE | 1 | res->flags | 272 |
| PARAM_VALUE | 2 | region | 6805616290784272384 |
| PARAM_VALUE | 2 | region->end | 1014 |
| PARAM_VALUE | 2 | region->start | 1014 |
| BUF_SIZE | 1 | res | 1024 |
| BUF_SIZE | 1 | res | 1024 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 0 | bus->bridge_ctl | 0-u16max |
| HOST_DATA | 0 | bus->parent->bridge_ctl | 0-u16max |
| HALF_LOCKED2 | global &pci_rescan_remove_lock |
drivers/pci/probe.c pci_setup_device() -> pcibios_bus_to_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bus | 4096-ptr_max |
| PARAM_VALUE | 1 | res | 4096-ptr_max |
| PARAM_VALUE | 1 | res->flags | 272 |
| PARAM_VALUE | 2 | region | 6805616290784272384 |
| PARAM_VALUE | 2 | region->end | 375 |
| PARAM_VALUE | 2 | region->start | 368 |
| BUF_SIZE | 1 | res | 960 |
| BUF_SIZE | 1 | res | 960 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 0 | bus->bridge_ctl | 0-u16max |
| HOST_DATA | 0 | bus->parent->bridge_ctl | 0-u16max |
| HALF_LOCKED2 | global &pci_rescan_remove_lock |
drivers/pci/probe.c pci_setup_device() -> pcibios_bus_to_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bus | 4096-ptr_max |
| PARAM_VALUE | 1 | res | 4096-ptr_max |
| PARAM_VALUE | 1 | res->flags | 272 |
| PARAM_VALUE | 2 | region | 6805616290784272384 |
| PARAM_VALUE | 2 | region->end | 886 |
| PARAM_VALUE | 2 | region->start | 886 |
| BUF_SIZE | 1 | res | 896 |
| BUF_SIZE | 1 | res | 896 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 0 | bus->bridge_ctl | 0-u16max |
| HOST_DATA | 0 | bus->parent->bridge_ctl | 0-u16max |
| HALF_LOCKED2 | global &pci_rescan_remove_lock |
drivers/pnp/quirks.c quirk_intel_mch() -> pcibios_bus_to_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | res | 6793260381724098560 |
| PARAM_VALUE | 1 | res->flags | 512 |
| PARAM_VALUE | 2 | region | 2400416053750181888 |
| PARAM_VALUE | 2 | region->end | s16max |
| PARAM_VALUE | 2 | region->start | 0 |
| MEM_ZERO | 1 | res | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 2 | region->end | s16max[c] |
| HOST_DATA | 2 | region->start | 0[c] |
drivers/video/screen_info_pci.c screen_info_fixup_lfb() -> pcibios_bus_to_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | res | 6599333524751998976 |
| PARAM_VALUE | 1 | res->end | 0 |
| PARAM_VALUE | 1 | res->flags | 512 |
| PARAM_VALUE | 1 | res->start | 0 |
| PARAM_VALUE | 2 | region | 2078207343138852864 |
| PARAM_VALUE | 2 | region->start | 1-u64max |
| NOCHECK_CALL |
drivers/pci/quirks.c quirk_io() -> pcibios_bus_to_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | res | 4096-ptr_max |
| PARAM_VALUE | 1 | res->flags | 262416-262419 |
| PARAM_VALUE | 2 | region | 2017699933791760384 |
| PARAM_VALUE | 2 | region->end | 0-u32max |
| PARAM_VALUE | 2 | region->start | 0-u32max |
| BUF_SIZE | 1 | res->name | 1-s32max |
| BIT_INFO | 1 | res->flags | 0x40110,0x40113 |
| NOCHECK_CALL |
drivers/pci/quirks.c quirk_io_region() -> pcibios_bus_to_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | res | 4096-ptr_max |
| PARAM_VALUE | 1 | res->flags | 256 |
| PARAM_VALUE | 2 | region | 4932811412727930880 |
| PARAM_VALUE | 2 | region->end | 15-65790 |
| BUF_SIZE | 1 | res->name | 1-s32max |
| NOCHECK_CALL |
drivers/video/fbdev/arkfb.c ark_pci_probe() -> pcibios_bus_to_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | res | 2794788364396453888 |
| PARAM_VALUE | 1 | res->flags | 256 |
| PARAM_VALUE | 2 | region | 5912827311151624192 |
| PARAM_VALUE | 2 | region->end | 65536 |
| PARAM_VALUE | 2 | region->start | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/vdpa/octeon_ep/octep_vdpa_main.c octep_vdpa_assign_barspace() -> pcibios_bus_to_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | res | 4096-ptr_max |
| PARAM_VALUE | 2 | region | 3659593626134642688 |
| BUF_SIZE | 1 | res | 832 |
| BUF_SIZE | 1 | res | 832 |
| BUF_SIZE | 1 | res->name | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | &pf_dev->dev.mutex | ||
| LOCK2 | global &pci_rescan_remove_lock | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct device)->mutex | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/vdpa/octeon_ep/octep_vdpa_main.c octep_vdpa_pf_bar_expand() -> pcibios_bus_to_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | res | 4096-ptr_max |
| PARAM_VALUE | 2 | region | 2810538252468891648 |
| BUF_SIZE | 1 | res | 832 |
| BUF_SIZE | 1 | res | 832 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pdev->dev.mutex |
drivers/vdpa/octeon_ep/octep_vdpa_main.c octep_vdpa_pf_bar_shrink() -> pcibios_bus_to_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | res | 4096-ptr_max |
| PARAM_VALUE | 2 | region | 4154398569139990528 |
| BUF_SIZE | 1 | res | 832 |
| BUF_SIZE | 1 | res | 832 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pdev->dev.mutex | ||
| HALF_LOCKED2 | &pool->lock |
drivers/pcmcia/yenta_socket.c yenta_allocate_res() -> pcibios_bus_to_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bus | 4096-ptr_max |
| PARAM_VALUE | 1 | res | 4096-ptr_max |
| PARAM_VALUE | 1 | res->flags | 256,512,8704 |
| PARAM_VALUE | 2 | region | 368314890652131328 |
| PARAM_VALUE | 2 | region->end | 0-u32max |
| BUF_SIZE | 1 | res->name | 48 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 2 | region->end | 0-u32max[c] |
| HALF_LOCKED2 | &pool->lock |