Lines Matching refs:hdr_buf
369 unsigned char *hdr_buf = kzalloc(INIT_ALLOC_SIZE, GFP_KERNEL); in ses_enclosure_data_process() local
371 if (!hdr_buf) in ses_enclosure_data_process()
378 result = ses_recv_diag(sdev, 7, hdr_buf, INIT_ALLOC_SIZE); in ses_enclosure_data_process()
382 page7_len = len = (hdr_buf[2] << 8) + hdr_buf[3] + 4; in ses_enclosure_data_process()
446 kfree(hdr_buf); in ses_enclosure_data_process()
489 unsigned char *buf = NULL, *hdr_buf, *type_ptr; in ses_intf_add() local
514 hdr_buf = kzalloc(INIT_ALLOC_SIZE, GFP_KERNEL); in ses_intf_add()
515 if (!hdr_buf || !ses_dev) in ses_intf_add()
518 result = ses_recv_diag(sdev, 1, hdr_buf, INIT_ALLOC_SIZE); in ses_intf_add()
522 len = (hdr_buf[2] << 8) + hdr_buf[3] + 4; in ses_intf_add()
557 result = ses_recv_diag(sdev, 2, hdr_buf, INIT_ALLOC_SIZE); in ses_intf_add()
561 len = (hdr_buf[2] << 8) + hdr_buf[3] + 4; in ses_intf_add()
576 result = ses_recv_diag(sdev, 10, hdr_buf, INIT_ALLOC_SIZE); in ses_intf_add()
579 len = (hdr_buf[2] << 8) + hdr_buf[3] + 4; in ses_intf_add()
602 kfree(hdr_buf); in ses_intf_add()
632 kfree(hdr_buf); in ses_intf_add()