Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/pci/vgaarb.c vga_arbiter_add_pci_device() -> vga_set_default_device()

Type Parameter Key Value
PARAM_VALUE 0 pdev 4096-ptr_max
PARAM_VALUE 0 pdev->dev.bus 0,4096-ptr_max
PARAM_VALUE 0 pdev->dev.class 0,4096-ptr_max
PARAM_VALUE 0 pdev->dev.cma_area->available_count 0-s64max
PARAM_VALUE 0 pdev->dev.cma_area->nranges s32min-s32max
PARAM_VALUE 0 pdev->dev.dma_io_tlb_mem->for_alloc 0-1
PARAM_VALUE 0 pdev->dev.driver 0,4096-ptr_max
PARAM_VALUE 0 pdev->dev.kobj.parent->sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 pdev->dev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 pdev->dev.msi.data->__iter_idx 0-s64max
PARAM_VALUE 0 pdev->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 pdev->driver->groups 0
PARAM_VALUE 0 pdev->driver->resume 0,4096-ptr_max
PARAM_VALUE 0 pdev->driver->suspend 0,4096-ptr_max
PARAM_VALUE 0 pdev->error_state 0-2,4-u32max
PARAM_VALUE 0 pdev->link_bwctrl->cdev (-22),(-19),(-12),0-s64max
PARAM_VALUE 0 pdev->p2pdma->p2pmem_published 0-1
PARAM_VALUE 0 *pdev->saved_config_space 0-4294967295
DATA_SOURCE 0 pdev $0
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 flags
LOCK2 global &vga_lock

drivers/pci/vgaarb.c vga_arbiter_del_pci_device() -> vga_set_default_device()

Type Parameter Key Value
PARAM_VALUE 0 pdev 0
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 flags
LOCK2 global &vga_lock

drivers/gpu/vga/vga_switcheroo.c vga_switchto_stage1() -> vga_set_default_device()

Type Parameter Key Value
NOCHECK_CALL
UNITS 0 pdev unit_byte
LOCK2 global &vgasr_mutex