| /pciutils/lib/ |
| H A D | names-parse.c | 68 if (*p >= '0' && *p <= '9') in id_hex() 70 else if (*p >= 'a' && *p <= 'f') in id_hex() 72 else if (*p >= 'A' && *p <= 'F') in id_hex() 101 while (*p && *p != '\n' && *p != '\r') in id_parse_list() 102 p++; in id_parse_list() 106 if (p > line && (p[-1] == ' ' || p[-1] == '\t')) in id_parse_list() 111 p++; in id_parse_list() 112 if (!*p || *p == '#') in id_parse_list() 129 else if (p[0] == 'S' && p[1] == ' ') in id_parse_list() 138 else if (p[0] >= 'A' && p[0] <= 'Z' && p[1] == ' ') in id_parse_list() [all …]
|
| H A D | params.c | 22 for (p=acc->params; p; p=p->next) in pci_get_param() 33 for (pp=&acc->params; p = *pp; pp=&p->next) in pci_define_param() 38 if (strcmp(p->value, value) || strcmp(p->help, help)) in pci_define_param() 40 return p; in pci_define_param() 46 p = pci_malloc(acc, sizeof(*p)); in pci_define_param() 47 p->next = *pp; in pci_define_param() 48 *pp = p; in pci_define_param() 49 p->param = param; in pci_define_param() 52 p->help = help; in pci_define_param() 53 return p; in pci_define_param() [all …]
|
| H A D | names-net.c | 38 #define GET16(x) do { if (p+2 > end) goto err; x = (p[0] << 8) | p[1]; p += 2; } while (0) 39 #define GET32(x) do { if (p+4 > end) goto err; x = (p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3]… 69 return p; in dns_skip_name() 73 p += x; in dns_skip_name() 76 p++; in dns_skip_name() 77 return (p < end) ? p : NULL; in dns_skip_name() 110 p = dns_skip_name(p, end); /* Name */ in dns_parse_packet() 111 if (!p) in dns_parse_packet() 144 if (p == end) in dns_parse_rr() 146 p = dns_skip_name(p, end); in dns_parse_rr() [all …]
|
| H A D | names-cache.c | 57 while (p > name && *p != '/') in create_parent_dirs() 58 p--; in create_parent_dirs() 73 p--; in create_parent_dirs() 74 while (p > name && *p != '/') in create_parent_dirs() 75 p--; in create_parent_dirs() 82 p++; in create_parent_dirs() 83 while (*p && *p != '/') in create_parent_dirs() 84 p++; in create_parent_dirs() 139 *p = 0; in pci_id_cache_load() 155 while (*p && *p == ' ') in pci_id_cache_load() [all …]
|
| H A D | access.c | 80 pci_mfree(p); in pci_free_properties() 239 while (p = *pp) in pci_set_property() 243 *pp = p->next; in pci_set_property() 244 pci_mfree(p); in pci_set_property() 247 pp = &p->next; in pci_set_property() 253 p = pci_malloc(d->access, sizeof(*p) + strlen(value)); in pci_set_property() 254 *pp = p; in pci_set_property() 255 p->next = NULL; in pci_set_property() 256 p->key = key; in pci_set_property() 259 return p->value; in pci_set_property() [all …]
|
| H A D | physmem-windows.c | 122 #define InitializeObjectAttributes(p, n, a, r, s) \ argument 124 (p)->Length = sizeof(OBJECT_ATTRIBUTES); \ 125 (p)->RootDirectory = (r); \ 126 (p)->Attributes = (a); \ 127 (p)->ObjectName = (n); \ 128 (p)->SecurityDescriptor = (s); \ 129 (p)->SecurityQualityOfService = NULL; \
|
| /pciutils/ |
| H A D | lspci.c | 129 d->dev = p; in scan_device() 160 for (p=pacc->devices; p; p=p->next) in scan_devices() 272 printf("/%02x:%02x.%d", p->bus, p->dev, p->func); in show_slot_path() 274 printf("/%02x.%d", p->dev, p->func); in show_slot_path() 278 printf("%02x:%02x.%d", p->bus, p->dev, p->func); in show_slot_path() 305 p->vendor_id, p->device_id)); in show_terse() 306 if ((p->known_fields & PCI_FILL_CLASS_EXT) && p->rev_id) in show_terse() 334 p->subsys_vendor_id && p->subsys_vendor_id != 0xffff) in show_terse() 338 p->vendor_id, p->device_id, p->subsys_vendor_id, p->subsys_id)); in show_terse() 1031 p->subsys_vendor_id && p->subsys_vendor_id != 0xffff) in show_machine() [all …]
|
| H A D | ls-tree.c | 75 bus = new_bus(parent->bridge, p->domain, p->bus); in insert_dev() 87 if (!bus && ! (bus = find_bus(b, p->domain, p->bus))) in insert_dev() 91 if (c->domain == (unsigned)p->domain && c->secondary <= p->bus && p->bus <= c->subordinate) in insert_dev() 96 bus = new_bus(b, p->domain, p->bus); in insert_dev() 245 *p = 0; in print_it() 250 for (p=line; *p; p++) in print_it() 251 if (*p == '+' || *p == '|') in print_it() 286 return p; in tree_printf() 301 p = tree_printf(line, p, "-"); in show_tree_dev() 310 p = tree_printf(line, p, " %s", in show_tree_dev() [all …]
|
| H A D | common.c | 33 void *p = malloc(howmuch); in xmalloc() local 34 if (!p) in xmalloc() 36 return p; in xmalloc() 42 void *p = realloc(ptr, howmuch); in xrealloc() local 43 if (!p) in xrealloc() 45 return p; in xrealloc() 85 struct pci_param *p; in set_pci_option() local 87 for (p=NULL; p=pci_walk_params(pacc, p);) in set_pci_option() 88 printf("%-20s %s (%s)\n", p->param, p->help, p->value); in set_pci_option()
|
| H A D | ls-map.c | 34 struct pci_dev *p = d->dev; in map_bridge() local 39 b->dev = p->dev; in map_bridge() 40 b->func = p->func; in map_bridge() 44 p->bus, p->dev, p->func, b->this, b->first, b->last); in map_bridge() 45 if (b->this != p->bus) in map_bridge() 72 struct pci_dev *p = pci_get_dev(pacc, domain, bus, dev, func); in do_map_bus() local 73 u16 vendor = pci_read_word(p, PCI_VENDOR_ID); in do_map_bus() 76 if (!func && (pci_read_byte(p, PCI_HEADER_TYPE) & 0x80)) in do_map_bus() 81 if (d = scan_device(p)) in do_map_bus() 98 pci_free_dev(p); in do_map_bus()
|
| H A D | pcilmr.c | 27 for (struct pci_dev *p = pacc->devices; p; p = p->next) in scan_links() local 29 if (pci_find_cap(p, PCI_EXT_CAP_ID_LMR, PCI_CAP_EXTENDED) && margin_port_is_down(p)) in scan_links() 33 margin_find_pair(pacc, p, &down, &up); in scan_links()
|
| H A D | ls-caps.c | 1089 struct pci_dev *p = d->dev; in device_has_memory_space_bar() local 1093 if (p->base_addr[i] || p->size[i]) in device_has_memory_space_bar() 1095 if (!(p->base_addr[i] & PCI_BASE_ADDRESS_SPACE_IO)) in device_has_memory_space_bar() 1653 static const char *cap_ea_property(int p, int is_secondary) in cap_ea_property() argument 1655 switch (p) { in cap_ea_property()
|
| H A D | lspci.h | 53 struct device *scan_device(struct pci_dev *p);
|
| H A D | pci.ids | 263 3032 QVision 1280/p 264 3033 QVision 1280/p 265 3034 QVision 1280/p 3914 103c 30c1 6910p 15820 0042 AccelePort 2p 15821 0043 AccelePort 4p 15822 0044 AccelePort 8p 15823 0045 AccelePort 16p 28781 202c CAEN S.p.A. 38874 f1a6 SSD DC P4101/Pro 7600p/760p/E 6100p Series [all …]
|
| H A D | ChangeLog | 2112 - Changed Compaq QVision 1280/p definitions, as it's not possible
|
| /pciutils/lmr/ |
| H A D | margin_args.c | 53 for (struct pci_dev *p = pacc->devices; p; p = p->next) in dev_for_filter() local 55 if (pci_filter_match(&pci_filter, p)) in dev_for_filter() 56 return p; in dev_for_filter() 80 for (struct pci_dev *p = pacc->devices; p; p = p->next) in find_ready_links() local 82 if (pci_find_cap(p, PCI_EXT_CAP_ID_LMR, PCI_CAP_EXTENDED) && margin_port_is_down(p)) in find_ready_links() 86 margin_find_pair(pacc, p, &down, &up); in find_ready_links()
|
| H A D | margin_hw.c | 62 for (struct pci_dev *p = pacc->devices; p; p = p->next) in margin_find_pair() local 64 if (given_down && pci_read_byte(dev, PCI_SECONDARY_BUS) == p->bus && dev->domain == p->domain in margin_find_pair() 65 && p->func == 0) in margin_find_pair() 68 *up_port = p; in margin_find_pair() 71 else if (!given_down && pci_read_byte(p, PCI_SECONDARY_BUS) == dev->bus in margin_find_pair() 72 && dev->domain == p->domain) in margin_find_pair() 74 *down_port = p; in margin_find_pair()
|
| /pciutils/compat/ |
| H A D | getopt.c | 454 const struct option *p; in _getopt_internal() local 465 for (p = longopts, option_index = 0; p->name; p++, option_index++) in _getopt_internal() 466 if (!my_strncmp(p->name, nextchar, s - nextchar)) { in _getopt_internal() 467 if (s - nextchar == my_strlen(p->name)) { in _getopt_internal() 469 pfound = p; in _getopt_internal() 475 pfound = p; in _getopt_internal()
|