Lines Matching refs:hdr_buf
520 unsigned char *hdr_buf = kzalloc(INIT_ALLOC_SIZE, GFP_KERNEL); in ses_enclosure_data_process() local
522 if (!hdr_buf) in ses_enclosure_data_process()
529 result = ses_recv_diag(sdev, 7, hdr_buf, INIT_ALLOC_SIZE); in ses_enclosure_data_process()
533 page7_len = len = (hdr_buf[2] << 8) + hdr_buf[3] + 4; in ses_enclosure_data_process()
612 kfree(hdr_buf); in ses_enclosure_data_process()
642 unsigned char *buf = NULL, *hdr_buf, *type_ptr, page; in ses_intf_add() local
667 hdr_buf = kzalloc(INIT_ALLOC_SIZE, GFP_KERNEL); in ses_intf_add()
668 if (!hdr_buf || !ses_dev) in ses_intf_add()
672 result = ses_recv_diag(sdev, page, hdr_buf, INIT_ALLOC_SIZE); in ses_intf_add()
676 len = (hdr_buf[2] << 8) + hdr_buf[3] + 4; in ses_intf_add()
712 result = ses_recv_diag(sdev, page, hdr_buf, INIT_ALLOC_SIZE); in ses_intf_add()
716 len = (hdr_buf[2] << 8) + hdr_buf[3] + 4; in ses_intf_add()
732 result = ses_recv_diag(sdev, page, hdr_buf, INIT_ALLOC_SIZE); in ses_intf_add()
735 len = (hdr_buf[2] << 8) + hdr_buf[3] + 4; in ses_intf_add()
759 kfree(hdr_buf); in ses_intf_add()
789 kfree(hdr_buf); in ses_intf_add()