Lines Matching refs:device
8 # Check if PCI device is in PCI_ALLOWED and not in PCI_BLOCKED
10 # if PCI_ALLOWED is empty assume device is allowed
11 # if PCI_BLOCKED is empty assume device is NOT blocked
72 local pci=$1 class=$2 vendor=$3 device=$4 driver=$5 mod=$6
78 if [[ -n $vendor && -n $device ]]; then
79 vendor=0x${vendor/0x/} device=0x${device/0x/}
80 pci_bus_cache["$vendor:$device"]="${pci_bus_cache["$vendor:$device"]:+${pci_bus_cache["$vendor:$device"]} }$pci"
83 pci_ids_device["$pci"]=$device
137 local class vendor device driver mod
140 class=$(< "$pci/class") vendor=$(< "$pci/vendor") device=$(< "$pci/device") driver="" mod=""
145 cache_pci "${pci##*/}" "$class" "$vendor" "$device" "$driver" "$mod"
165 # pci class vendor device driver
179 local class vendor device
187 # pciconf under FreeBSD 13.1 provides vendor and device IDs in its
192 device=$(printf '0x%04x' $(((chip >> 16) & 0xffff)))
194 cache_pci "$pci" "$class" "$vendor" "$device" "$driver"
274 local addr=($(pciconf -l | grep -iE "chip=0x${dev_id}${ven_id}|vendor=0x$ven_id device=0x$dev_id" \
516 if [[ $(readlink -f "$block/device") == *"/$bdf/"* ]]; then
538 if [[ -e $block/device/subsysnqn && $(< "$block/device/subsysnqn") == "$sub" ]]; then