Lines Matching refs:smp_buf
450 struct bmic_csmi_smp_passthru_buffer *smp_buf; in pqi_build_csmi_smp_passthru_buffer() local
456 smp_buf = kzalloc(sizeof(*smp_buf), GFP_KERNEL); in pqi_build_csmi_smp_passthru_buffer()
457 if (!smp_buf) in pqi_build_csmi_smp_passthru_buffer()
463 ioctl_header = &smp_buf->ioctl_header; in pqi_build_csmi_smp_passthru_buffer()
464 put_unaligned_le32(sizeof(smp_buf->ioctl_header), in pqi_build_csmi_smp_passthru_buffer()
469 put_unaligned_le32(sizeof(smp_buf->parameters), &ioctl_header->length); in pqi_build_csmi_smp_passthru_buffer()
471 parameters = &smp_buf->parameters; in pqi_build_csmi_smp_passthru_buffer()
488 return smp_buf; in pqi_build_csmi_smp_passthru_buffer()
492 struct bmic_csmi_smp_passthru_buffer *smp_buf, struct bsg_job *job, in pqi_build_sas_smp_handler_reply() argument
496 job->reply_payload.sg_cnt, &smp_buf->parameters.response, in pqi_build_sas_smp_handler_reply()
497 le32_to_cpu(smp_buf->parameters.response_length)); in pqi_build_sas_smp_handler_reply()
512 struct bmic_csmi_smp_passthru_buffer *smp_buf; in pqi_sas_smp_handler() local
538 smp_buf = pqi_build_csmi_smp_passthru_buffer(rphy, job); in pqi_sas_smp_handler()
539 if (!smp_buf) { in pqi_sas_smp_handler()
544 rc = pqi_csmi_smp_passthru(ctrl_info, smp_buf, sizeof(*smp_buf), in pqi_sas_smp_handler()
549 reslen = pqi_build_sas_smp_handler_reply(smp_buf, job, &error_info); in pqi_sas_smp_handler()