Lines Matching refs:smp_buf
460 struct bmic_csmi_smp_passthru_buffer *smp_buf; in pqi_build_csmi_smp_passthru_buffer() local
466 smp_buf = kzalloc(sizeof(*smp_buf), GFP_KERNEL); in pqi_build_csmi_smp_passthru_buffer()
467 if (!smp_buf) in pqi_build_csmi_smp_passthru_buffer()
473 ioctl_header = &smp_buf->ioctl_header; in pqi_build_csmi_smp_passthru_buffer()
474 put_unaligned_le32(sizeof(smp_buf->ioctl_header), in pqi_build_csmi_smp_passthru_buffer()
479 put_unaligned_le32(sizeof(smp_buf->parameters), &ioctl_header->length); in pqi_build_csmi_smp_passthru_buffer()
481 parameters = &smp_buf->parameters; in pqi_build_csmi_smp_passthru_buffer()
498 return smp_buf; in pqi_build_csmi_smp_passthru_buffer()
502 struct bmic_csmi_smp_passthru_buffer *smp_buf, struct bsg_job *job, in pqi_build_sas_smp_handler_reply() argument
506 job->reply_payload.sg_cnt, &smp_buf->parameters.response, in pqi_build_sas_smp_handler_reply()
507 le32_to_cpu(smp_buf->parameters.response_length)); in pqi_build_sas_smp_handler_reply()
522 struct bmic_csmi_smp_passthru_buffer *smp_buf; in pqi_sas_smp_handler() local
548 smp_buf = pqi_build_csmi_smp_passthru_buffer(rphy, job); in pqi_sas_smp_handler()
549 if (!smp_buf) { in pqi_sas_smp_handler()
554 rc = pqi_csmi_smp_passthru(ctrl_info, smp_buf, sizeof(*smp_buf), in pqi_sas_smp_handler()
559 reslen = pqi_build_sas_smp_handler_reply(smp_buf, job, &error_info); in pqi_sas_smp_handler()