Home
last modified time | relevance | path

Searched refs:value (Results 1 – 19 of 19) sorted by relevance

/pciutils/lib/
H A Di386-io-access.h16 unsigned char value; in intel_inb() local
17 asm volatile ("inb %w1, %0" : "=a" (value) : "Nd" (port)); in intel_inb()
18 return value; in intel_inb()
24 unsigned short value; in intel_inw() local
25 asm volatile ("inw %w1, %0" : "=a" (value) : "Nd" (port)); in intel_inw()
26 return value; in intel_inw()
32 u32 value; in intel_inl() local
33 asm volatile ("inl %w1, %0" : "=a" (value) : "Nd" (port)); in intel_inl()
34 return value; in intel_inl()
38 intel_outb(unsigned char value, unsigned short int port) in intel_outb() argument
[all …]
H A Dparams.c24 return p->value; in pci_get_param()
29 pci_define_param(struct pci_access *acc, char *param, char *value, char *help) in pci_define_param() argument
38 if (strcmp(p->value, value) || strcmp(p->help, help)) in pci_define_param()
50 p->value = value; in pci_define_param()
57 pci_set_param_internal(struct pci_access *acc, char *param, char *value, int copy) in pci_set_param_internal() argument
65 pci_mfree(p->value); in pci_set_param_internal()
68 p->value = pci_strdup(acc, value); in pci_set_param_internal()
70 p->value = value; in pci_set_param_internal()
77 pci_set_param(struct pci_access *acc, char *param, char *value) in pci_set_param() argument
79 return pci_set_param_internal(acc, param, value, 1); in pci_set_param()
[all …]
H A Di386-io-haiku.h47 uint32 value; member
58 uint32 value; member
94 return (u8)args.value; in intel_inb()
103 return (u16)args.value; in intel_inw()
112 return (u32)args.value; in intel_inl()
116 intel_outb (u8 value, u16 port) in intel_outb() argument
118 port_io_args args = { POKE_SIGNATURE, port, sizeof(u8), value }; in intel_outb()
123 intel_outw (u16 value, u16 port) in intel_outw() argument
125 port_io_args args = { POKE_SIGNATURE, port, sizeof(u16), value }; in intel_outw()
130 intel_outl (u32 value, u16 port) in intel_outl() argument
[all …]
H A Di386-io-beos.h13 extern int write_isa_io(int pci_bus, void *addr, int size, u32 value);
45 intel_outb (u8 value, u16 port) in intel_outb() argument
47 write_isa_io(0, (void *)(u32)port, sizeof(value), value); in intel_outb()
51 intel_outw (u16 value, u16 port) in intel_outw() argument
53 write_isa_io(0, (void *)(u32)port, sizeof(value), value); in intel_outw()
57 intel_outl (u32 value, u16 port) in intel_outl() argument
59 write_isa_io(0, (void *)(u32)port, sizeof(value), value); in intel_outl()
H A Dsysfs.c339 int value, want_class, want_class_ext; in sysfs_fill_info() local
357 value = sysfs_get_value(d, "class", 1); in sysfs_fill_info()
359 d->device_class = value >> 8; in sysfs_fill_info()
362 d->prog_if = value & 0xff; in sysfs_fill_info()
364 if (value < 0) in sysfs_fill_info()
366 if (value >= 0) in sysfs_fill_info()
367 d->rev_id = value; in sysfs_fill_info()
373 if (value >= 0) in sysfs_fill_info()
375 d->subsys_vendor_id = value; in sysfs_fill_info()
377 if (value >= 0) in sysfs_fill_info()
[all …]
H A Dphysmem-access.h19 physmem_writeb(unsigned char value, volatile void *ptr) in physmem_writeb() argument
21 *(volatile unsigned char *)ptr = value; in physmem_writeb()
25 physmem_writew(unsigned short value, volatile void *ptr) in physmem_writew() argument
27 *(volatile unsigned short *)ptr = value; in physmem_writew()
31 physmem_writel(u32 value, volatile void *ptr) in physmem_writel() argument
33 *(volatile u32 *)ptr = value; in physmem_writel()
H A Ddarwin.c63 UInt64 value; member
131 param.value = -1ULL; in darwin_read()
143 buf[0] = (u8) param.value; in darwin_read()
146 ((u16 *) buf)[0] = cpu_to_le16((u16) param.value); in darwin_read()
149 ((u32 *) buf)[0] = cpu_to_le32((u32) param.value); in darwin_read()
179 param.value = buf[0]; in darwin_write()
182 param.value = le16_to_cpu(((u16 *) buf)[0]); in darwin_write()
185 param.value = le32_to_cpu(((u32 *) buf)[0]); in darwin_write()
H A Daccess.c234 pci_set_property(struct pci_dev *d, u32 key, char *value) in pci_set_property() argument
250 if (!value) in pci_set_property()
253 p = pci_malloc(d->access, sizeof(*p) + strlen(value)); in pci_set_property()
257 strcpy(p->value, value); in pci_set_property()
259 return p->value; in pci_set_property()
269 return p->value; in pci_get_string_property()
H A Dwin32-cfgmgr32.c548 char *value; in read_reg_key_string_value() local
567 value = pci_malloc(a, reg_size + 1); in read_reg_key_string_value()
569 error = RegQueryValueExA(key, name, NULL, &reg_type, (PBYTE)value, &reg_len); in read_reg_key_string_value()
572 pci_mfree(value); in read_reg_key_string_value()
583 pci_mfree(value); in read_reg_key_string_value()
588 value[reg_len] = '\0'; in read_reg_key_string_value()
590 return value; in read_reg_key_string_value()
H A Dinternal.h129 char value[1]; member
132 char *pci_set_property(struct pci_dev *d, u32 key, char *value);
H A Dpci.h123 char *value; /* Value of the parameter */ member
129 int pci_set_param(struct pci_access *acc, char *param, char *value) PCI_ABI; /* 0 on success, -1 if…
H A Dconfigure26 cpu=`/usr/sbin/lsattr -F value -l $proc -a type | sed 's/_.*//'`
/pciutils/
H A Dsetpci.c29 struct value { struct
30 unsigned int value; argument
44 struct value values[0]; argument
164 x = op->values[i].value; in exec_op()
672 *value++ = 0; in parse_op()
682 if (value) in parse_op()
684 if (!*value) in parse_op()
687 for (e=value; *e; e++) in parse_op()
755 e = strchr(value, ','); in parse_op()
771 op->values[j].value &= ll; in parse_op()
[all …]
H A Dls-caps.c662 static void show_power_limit(int value, int scale) in show_power_limit() argument
666 if (scale == 0 && value == 0xFF) in show_power_limit()
672 if (scale == 0 && value >= 0xF0 && value <= 0xFE) in show_power_limit()
673 value = 250 + 25 * (value - 0xF0); in show_power_limit()
675 printf("%gW", value * scales[scale]); in show_power_limit()
678 static const char *latency_l0s(int value) in latency_l0s() argument
681 return latencies[value]; in latency_l0s()
684 static const char *latency_l1(int value) in latency_l1() argument
687 return latencies[value]; in latency_l1()
H A Dls-ecaps.c1354 static int l1pm_calc_pwron(int scale, int value) in l1pm_calc_pwron() argument
1359 return 2 * value; in l1pm_calc_pwron()
1361 return 10 * value; in l1pm_calc_pwron()
1363 return 100 * value; in l1pm_calc_pwron()
1816 static const char *l0p_exit_latency(int value) in l0p_exit_latency() argument
1829 if (value >= 0 && value <= 7) in l0p_exit_latency()
1830 return latencies[value]; in l0p_exit_latency()
H A Dcommon.c88 printf("%-20s %s (%s)\n", p->param, p->help, p->value); in set_pci_option()
H A DREADME88 that, like GNU libc does). The value `local' includes the
H A DChangeLog1568 * lib/proc.c (proc_setup): The return value of snprintf() varies
1709 * setpci.c: Cleaned up mask/value code.
1713 * setpci.c: Individual bits to be set can be specified as <value>:<mask>.
1880 (insert_dev): Avoid returning a void value.
1978 single value, so that `30.b=12,34,56,78' works as expected. Reported
/pciutils/lmr/
H A Dmargin_results.c29 rate_lane(double value, double min, double recommended, enum lane_rating cur_rate) in rate_lane() argument
32 if (value < recommended) in rate_lane()
34 if (value < min) in rate_lane()