Lines Matching refs:hdr_buf
529 unsigned char *hdr_buf = kzalloc(INIT_ALLOC_SIZE, GFP_KERNEL); in ses_enclosure_data_process() local
531 if (!hdr_buf) in ses_enclosure_data_process()
538 result = ses_recv_diag(sdev, 7, hdr_buf, INIT_ALLOC_SIZE); in ses_enclosure_data_process()
542 page7_len = len = (hdr_buf[2] << 8) + hdr_buf[3] + 4; in ses_enclosure_data_process()
634 kfree(hdr_buf); in ses_enclosure_data_process()
664 unsigned char *buf = NULL, *hdr_buf, *type_ptr, page; in ses_intf_add() local
689 hdr_buf = kzalloc(INIT_ALLOC_SIZE, GFP_KERNEL); in ses_intf_add()
690 if (!hdr_buf || !ses_dev) in ses_intf_add()
694 result = ses_recv_diag(sdev, page, hdr_buf, INIT_ALLOC_SIZE); in ses_intf_add()
698 len = (hdr_buf[2] << 8) + hdr_buf[3] + 4; in ses_intf_add()
735 result = ses_recv_diag(sdev, page, hdr_buf, INIT_ALLOC_SIZE); in ses_intf_add()
739 len = (hdr_buf[2] << 8) + hdr_buf[3] + 4; in ses_intf_add()
755 result = ses_recv_diag(sdev, page, hdr_buf, INIT_ALLOC_SIZE); in ses_intf_add()
758 len = (hdr_buf[2] << 8) + hdr_buf[3] + 4; in ses_intf_add()
784 kfree(hdr_buf); in ses_intf_add()
814 kfree(hdr_buf); in ses_intf_add()