Lines Matching defs:buf

327 	struct ReportExtendedLUNdata *buf, int bufsize);
439 struct device_attribute *attr, char *buf)
448 return sprintf(buf, "ld=%d\n", ld);
453 const char *buf, size_t count)
463 strncpy(tmpbuf, buf, len);
477 const char *buf, size_t count)
487 strncpy(tmpbuf, buf, len);
502 const char *buf, size_t count)
518 struct device_attribute *attr, char *buf)
528 return snprintf(buf, 20, "%c%c%c%c\n",
533 struct device_attribute *attr, char *buf)
538 return snprintf(buf, 20, "%d\n",
543 struct device_attribute *attr, char *buf)
549 return snprintf(buf, 20, "%s\n",
555 struct device_attribute *attr, char *buf)
561 return snprintf(buf, 30, "HP SSD Smart Path %s\n",
639 struct device_attribute *attr, char *buf)
645 return snprintf(buf, 20, "%d\n", ctlr_is_resettable(h->board_id));
672 struct device_attribute *attr, char *buf)
693 l = snprintf(buf, PAGE_SIZE, "N/A\n");
701 l = snprintf(buf, PAGE_SIZE, "RAID %s\n", raid_label[rlevel]);
706 struct device_attribute *attr, char *buf)
724 return snprintf(buf, 20, "0x%8phN\n", lunid);
728 struct device_attribute *attr, char *buf)
746 return snprintf(buf, 16 * 2 + 2,
756 struct device_attribute *attr, char *buf)
775 return snprintf(buf, PAGE_SIZE, "0x%016llx\n", sas_address);
779 struct device_attribute *attr, char *buf)
799 return snprintf(buf, 20, "%d\n", offload_enabled);
801 return snprintf(buf, 40, "%s\n",
807 struct device_attribute *attr, char *buf)
840 output_len += scnprintf(buf + output_len,
848 output_len += scnprintf(buf + output_len,
861 output_len += scnprintf(buf + output_len,
868 output_len += scnprintf(buf + output_len,
873 output_len += scnprintf(buf + output_len,
879 output_len += scnprintf(buf + output_len,
883 output_len += scnprintf(buf + output_len,
892 struct device_attribute *attr, char *buf)
898 return snprintf(buf, 20, "%d\n", h->ctlr);
902 struct device_attribute *attr, char *buf)
908 return snprintf(buf, 20, "%d\n", h->legacy_board ? 1 : 0);
2818 unsigned char *buf,
2830 addr64 = dma_map_single(&pdev->dev, buf, buflen, data_direction);
3004 u8 page, u8 *buf, size_t bufsize)
3011 if (fill_cmd(c, RECEIVE_DIAGNOSTIC, h, buf, bufsize,
3033 u8 *buf;
3037 buf = kzalloc(1024, GFP_KERNEL);
3038 if (!buf)
3042 buf, 1024);
3047 sa = get_unaligned_be64(buf+12);
3050 kfree(buf);
3055 u16 page, unsigned char *buf,
3064 if (fill_cmd(c, HPSA_INQUIRY, h, buf, bufsize,
3208 unsigned char *buf;
3211 buf = kzalloc(64, GFP_KERNEL);
3212 if (!buf)
3220 HPSA_VPD_LV_DEVICE_GEOMETRY, buf, 64);
3223 *raid_level = buf[8];
3227 kfree(buf);
3352 struct bmic_sense_subsystem_info *buf, size_t bufsize)
3360 rc = fill_cmd(c, BMIC_SENSE_SUBSYSTEM_INFORMATION, h, buf, bufsize,
3383 struct bmic_identify_controller *buf, size_t bufsize)
3391 rc = fill_cmd(c, BMIC_IDENTIFY_CONTROLLER, h, buf, bufsize,
3412 struct bmic_identify_physical_device *buf, size_t bufsize)
3419 rc = fill_cmd(c, BMIC_IDENTIFY_PHYSICAL_DEVICE, h, buf, bufsize,
3624 unsigned char *buf, bufsize;
3626 buf = kzalloc(256, GFP_KERNEL);
3627 if (!buf)
3633 buf, HPSA_VPD_HEADER_SZ);
3636 pages = buf[3];
3645 buf, bufsize);
3649 pages = buf[3];
3651 if (buf[3 + i] == page)
3654 kfree(buf);
3657 kfree(buf);
3672 unsigned char *buf;
3679 buf = kzalloc(64, GFP_KERNEL);
3680 if (!buf)
3685 VPD_PAGE | HPSA_VPD_LV_IOACCEL_STATUS, buf, 64);
3692 ioaccel_status = buf[IOACCEL_STATUS_BYTE];
3710 kfree(buf);
3719 unsigned char *buf;
3725 buf = kzalloc(64, GFP_KERNEL);
3726 if (!buf)
3730 HPSA_VPD_LV_DEVICE_ID, buf, 64);
3734 memcpy(device_id, &buf[8], buflen);
3737 kfree(buf);
3743 void *buf, int bufsize,
3756 buf, bufsize, 0, scsi3addr, TYPE_CMD)) {
3772 struct ReportLUNdata *rld = buf;
3791 struct ReportExtendedLUNdata *buf, int bufsize)
3796 rc = hpsa_scsi_do_report_luns(h, 0, buf, bufsize,
3812 memcpy(buf, lbuf, 8);
3815 memcpy(buf->LUN[i].lunid, lbuf->LUN[i], 8);
3822 struct ReportLUNdata *buf, int bufsize)
3824 return hpsa_scsi_do_report_luns(h, 1, buf, bufsize, 0);
3842 unsigned char *buf;
3844 buf = kzalloc(64, GFP_KERNEL);
3845 if (!buf)
3854 buf, HPSA_VPD_HEADER_SZ);
3857 size = buf[3];
3861 buf, size + HPSA_VPD_HEADER_SZ);
3864 status = buf[4]; /* status byte */
3866 kfree(buf);
3869 kfree(buf);
6282 if (copy_from_user(&arg64, arg32, offsetof(IOCTL_Command_struct, buf)))
6284 if (get_user(cp, &arg32->buf))
6286 arg64.buf = compat_ptr(cp);
6313 offsetof(BIG_IOCTL32_Command_struct, buf)))
6315 if (get_user(cp, &arg32->buf))
6317 arg64.buf = compat_ptr(cp);
6421 if (copy_from_user(buff, iocommand->buf,
6480 if (copy_to_user(iocommand->buf, buff, iocommand->buf_size)) {
6527 data_ptr = ioc->buf;
6592 BYTE __user *ptr = ioc->buf;
8344 unsigned char *buf;
8350 buf = kmalloc(64, GFP_KERNEL);
8351 if (!buf)
8369 memset(buf, 0, 64);
8373 buf, 64);
8377 ioaccel_status = buf[IOACCEL_STATUS_BYTE];
8409 kfree(buf);