Lines Matching refs:p
289 char *wpath, *p; in pci_dev_str_match_path() local
299 p = strrchr(wpath, '/'); in pci_dev_str_match_path()
300 if (!p) in pci_dev_str_match_path()
302 ret = sscanf(p, "/%x.%x%c", &slot, &func, &end); in pci_dev_str_match_path()
325 *p = 0; in pci_dev_str_match_path()
378 static int pci_dev_str_match(struct pci_dev *dev, const char *p, in pci_dev_str_match() argument
385 if (strncmp(p, "pci:", 4) == 0) { in pci_dev_str_match()
387 p += 4; in pci_dev_str_match()
388 ret = sscanf(p, "%hx:%hx:%hx:%hx%n", &vendor, &device, in pci_dev_str_match()
391 ret = sscanf(p, "%hx:%hx%n", &vendor, &device, &count); in pci_dev_str_match()
399 p += count; in pci_dev_str_match()
413 ret = pci_dev_str_match_path(dev, p, &p); in pci_dev_str_match()
420 *endptr = p; in pci_dev_str_match()
424 *endptr = p; in pci_dev_str_match()
900 const char *p; in pci_disable_acs_redir() local
907 p = disable_acs_redir_param; in pci_disable_acs_redir()
908 while (*p) { in pci_disable_acs_redir()
909 ret = pci_dev_str_match(dev, p, &p); in pci_disable_acs_redir()
920 if (*p != ';' && *p != ',') { in pci_disable_acs_redir()
924 p++; in pci_disable_acs_redir()
6715 const char *p; in pci_specified_resource_alignment() local
6719 p = resource_alignment_param; in pci_specified_resource_alignment()
6720 if (!p || !*p) in pci_specified_resource_alignment()
6728 while (*p) { in pci_specified_resource_alignment()
6730 if (sscanf(p, "%d%n", &align_order, &count) == 1 && in pci_specified_resource_alignment()
6731 p[count] == '@') { in pci_specified_resource_alignment()
6732 p += count + 1; in pci_specified_resource_alignment()
6742 ret = pci_dev_str_match(dev, p, &p); in pci_specified_resource_alignment()
6749 p); in pci_specified_resource_alignment()
6753 if (*p != ';' && *p != ',') { in pci_specified_resource_alignment()
6757 p++; in pci_specified_resource_alignment()