Lines Matching refs:perm_bits
109 struct perm_bits { struct
113 struct perm_bits *perm, int offset, __le32 *val); argument
115 struct perm_bits *perm, int offset, __le32 val); argument
176 int count, struct perm_bits *perm, in vfio_default_config_read()
202 int count, struct perm_bits *perm, in vfio_default_config_write()
249 int count, struct perm_bits *perm, in vfio_direct_config_read()
274 int count, struct perm_bits *perm, in vfio_raw_config_write()
287 int count, struct perm_bits *perm, in vfio_raw_config_read()
301 int count, struct perm_bits *perm, in vfio_virt_config_write()
309 int count, struct perm_bits *perm, in vfio_virt_config_read()
317 static struct perm_bits cap_perms[PCI_CAP_ID_MAX + 1] = {
320 static struct perm_bits ecap_perms[PCI_EXT_CAP_ID_MAX + 1] = {
329 static struct perm_bits unassigned_perms = {
334 static struct perm_bits virt_perms = {
339 static void free_perm_bits(struct perm_bits *perm) in free_perm_bits()
347 static int alloc_perm_bits(struct perm_bits *perm, int size) in alloc_perm_bits()
379 static inline void p_setb(struct perm_bits *p, int off, u8 virt, u8 write) in p_setb()
386 static inline void p_setw(struct perm_bits *p, int off, u16 virt, u16 write) in p_setw()
393 static inline void p_setd(struct perm_bits *p, int off, u32 virt, u32 write) in p_setd()
522 int count, struct perm_bits *perm, in vfio_basic_config_read()
560 int count, struct perm_bits *perm, in vfio_basic_config_write()
652 static int __init init_pci_cap_basic_perm(struct perm_bits *perm) in init_pci_cap_basic_perm()
716 int count, struct perm_bits *perm, in vfio_pm_config_write()
748 static int __init init_pci_cap_pm_perm(struct perm_bits *perm) in init_pci_cap_pm_perm()
788 int count, struct perm_bits *perm, in vfio_vpd_config_write()
832 static int __init init_pci_cap_vpd_perm(struct perm_bits *perm) in init_pci_cap_vpd_perm()
856 static int __init init_pci_cap_pcix_perm(struct perm_bits *perm) in init_pci_cap_pcix_perm()
870 int count, struct perm_bits *perm, in vfio_exp_config_write()
929 static int __init init_pci_cap_exp_perm(struct perm_bits *perm) in init_pci_cap_exp_perm()
954 int count, struct perm_bits *perm, in vfio_af_config_write()
990 static int __init init_pci_cap_af_perm(struct perm_bits *perm) in init_pci_cap_af_perm()
1003 static int __init init_pci_ext_cap_err_perm(struct perm_bits *perm) in init_pci_ext_cap_err_perm()
1057 static int __init init_pci_ext_cap_pwr_perm(struct perm_bits *perm) in init_pci_ext_cap_pwr_perm()
1131 int count, struct perm_bits *perm, in vfio_msi_config_read()
1151 int count, struct perm_bits *perm, in vfio_msi_config_write()
1196 static int init_pci_cap_msi_perm(struct perm_bits *perm, int len, u16 flags) in init_pci_cap_msi_perm()
1249 vdev->msi_perm = kmalloc(sizeof(struct perm_bits), GFP_KERNEL_ACCOUNT); in vfio_msi_cap_len()
1866 struct perm_bits *perm; in vfio_config_do_rw()