Lines Matching defs:buf
4464 unsigned char *buf;
4471 buf = kmalloc(vpd_size, GFP_KERNEL);
4472 if (!buf) {
4477 if (pci_read_vpd(hw->pdev, 0, vpd_size, buf) < 0) {
4482 if (buf[0] != VPD_MAGIC) {
4483 seq_printf(seq, "VPD tag mismatch: %#x\n", buf[0]);
4486 len = buf[1];
4492 seq_printf(seq, "%.*s\n", len, buf + 3);
4498 if (!memcmp("RW", buf + offs, 2)) /* end marker */
4500 len = buf[offs + 2];
4505 if (!memcmp(vpd_tags[i].tag, buf + offs, 2)) {
4507 vpd_tags[i].label, len, buf + offs + 3);
4514 kfree(buf);
4885 static const char *sky2_name(u8 chipid, char *buf, int sz)
4903 strncpy(buf, name[chipid - CHIP_ID_YUKON_XL], sz);
4905 snprintf(buf, sz, "(chip %#x)", chipid);
4906 return buf;