Home
last modified time | relevance | path

Searched refs:val (Results 1 – 8 of 8) sorted by relevance

/pciutils/lib/
H A Demulated.c54 return val; in baseres_to_pcires()
67 u32 val; in odd_baseres_to_pcires() local
71 return val; in odd_baseres_to_pcires()
78 u32 val = 0; in pci_emulated_read() local
112 val = ht << 16; in pci_emulated_read()
145 if (val) in pci_emulated_read()
159 val = d->bus; in pci_emulated_read()
211 if (val) in pci_emulated_read()
225 val = d->bus; in pci_emulated_read()
293 val = (val >> (8 * (pos & 3))) & ((1 << (len * 8)) - 1); in pci_emulated_read()
[all …]
H A Dnbsd-libpci.c70 pcireg_t val; in nbsd_read() local
82 if (pcibus_conf_read(d->access->fd, d->bus, d->dev, d->func, pos, &val) < 0) in nbsd_read()
88 *buf = val >> shift; in nbsd_read()
91 *(u16*)buf = cpu_to_le16(val >> shift); in nbsd_read()
94 *(u32*)buf = cpu_to_le32(val); in nbsd_read()
103 pcireg_t val = 0; in nbsd_write() local
122 if (pcibus_conf_read(d->access->fd, d->bus, d->dev, d->func, pos, &val) < 0) in nbsd_write()
129 val = (val & ~(0xff << shift)) | (buf[0] << shift); in nbsd_write()
132 val = (val & ~(0xffff << shift)) | (le16_to_cpu(*(u16*)buf) << shift); in nbsd_write()
135 val = le32_to_cpu(*(u32*)buf); in nbsd_write()
[all …]
H A Dinternal.h135 struct pci_param *pci_define_param(struct pci_access *acc, char *param, char *val, char *help);
136 int pci_set_param_internal(struct pci_access *acc, char *param, char *val, int copy);
/pciutils/
H A Dpcilmr.c83 = { { .name = "margin", .has_arg = no_argument, .flag = NULL, .val = 0 }, in main()
84 { .name = "scan", .has_arg = no_argument, .flag = NULL, .val = 1 }, in main()
85 { .name = "full", .has_arg = no_argument, .flag = NULL, .val = 2 }, in main()
H A Dls-ecaps.c1371 u32 l1_cap, val, scale; in cap_l1pm() local
1404 val = get_conf_long(d, where + PCI_L1PM_SUBSTAT_CTL1); in cap_l1pm()
1406 FLAG(val, PCI_L1PM_SUBSTAT_CTL1_PM_L12), in cap_l1pm()
1407 FLAG(val, PCI_L1PM_SUBSTAT_CTL1_PM_L11), in cap_l1pm()
1408 FLAG(val, PCI_L1PM_SUBSTAT_CTL1_ASPM_L12), in cap_l1pm()
1409 FLAG(val, PCI_L1PM_SUBSTAT_CTL1_ASPM_L11)); in cap_l1pm()
1413 printf("\t\t\t T_CommonMode=%dus", BITS(val, 8, 8)); in cap_l1pm()
1417 scale = BITS(val, 29, 3); in cap_l1pm()
1421 … printf(" LTR1.2_Threshold=%" PCI_U64_FMT_U "ns", BITS(val, 16, 10) * (u64) cap_ltr_scale(scale)); in cap_l1pm()
1426 val = get_conf_long(d, where + PCI_L1PM_SUBSTAT_CTL2); in cap_l1pm()
[all …]
H A Dbitops.h33 #define SET_REG_MASK(reg, mask, val) \ argument
34 (((reg) & ~(mask)) | (((val) * ((mask) & ~((mask) << 1))) & (mask)))
/pciutils/compat/
H A Dgetopt.c532 *(pfound->flag) = pfound->val; in _getopt_internal()
535 return pfound->val; in _getopt_internal()
H A Dgetopt.h88 int val; member