Searched refs:ses_dev (Results 1 - 1 of 1) sorted by relevance
/linux-4.4.14/drivers/scsi/ |
H A D | ses.c | 146 struct ses_device *ses_dev = edev->scratch; ses_set_page2_descriptor() local 147 unsigned char *type_ptr = ses_dev->page1_types; ses_set_page2_descriptor() 148 unsigned char *desc_ptr = ses_dev->page2 + 8; ses_set_page2_descriptor() 151 memset(desc_ptr, 0, ses_dev->page2_len - 8); ses_set_page2_descriptor() 152 for (i = 0; i < ses_dev->page1_num_types; i++, type_ptr += 4) { ses_set_page2_descriptor() 168 return ses_send_diag(sdev, 2, ses_dev->page2, ses_dev->page2_len); ses_set_page2_descriptor() 176 struct ses_device *ses_dev = edev->scratch; ses_get_page2_descriptor() local 177 unsigned char *type_ptr = ses_dev->page1_types; ses_get_page2_descriptor() 178 unsigned char *desc_ptr = ses_dev->page2 + 8; ses_get_page2_descriptor() 180 ses_recv_diag(sdev, 2, ses_dev->page2, ses_dev->page2_len); ses_get_page2_descriptor() 182 for (i = 0; i < ses_dev->page1_num_types; i++, type_ptr += 4) { ses_get_page2_descriptor() 318 struct ses_device *ses_dev = edev->scratch; ses_show_id() local 319 unsigned long long id = get_unaligned_be64(ses_dev->page1+8+4); ses_show_id() 481 struct ses_device *ses_dev = edev->scratch; ses_enclosure_data_process() local 482 int types = ses_dev->page1_num_types; ses_enclosure_data_process() 489 if (ses_dev->page10) ses_enclosure_data_process() 490 ses_recv_diag(sdev, 10, ses_dev->page10, ses_dev->page10_len); ses_enclosure_data_process() 515 if (ses_dev->page10) ses_enclosure_data_process() 516 addl_desc_ptr = ses_dev->page10 + 8; ses_enclosure_data_process() 517 type_ptr = ses_dev->page1_types; ses_enclosure_data_process() 620 struct ses_device *ses_dev; ses_intf_add() local 643 ses_dev = kzalloc(sizeof(*ses_dev), GFP_KERNEL); ses_intf_add() 645 if (!hdr_buf || !ses_dev) ses_intf_add() 675 ses_dev->page1_types = type_ptr; ses_intf_add() 676 ses_dev->page1_num_types = types; ses_intf_add() 683 ses_dev->page1 = buf; ses_intf_add() 684 ses_dev->page1_len = len; ses_intf_add() 700 ses_dev->page2 = buf; ses_intf_add() 701 ses_dev->page2_len = len; ses_intf_add() 717 ses_dev->page10 = buf; ses_intf_add() 718 ses_dev->page10_len = len; ses_intf_add() 734 edev->scratch = ses_dev; ses_intf_add() 757 kfree(ses_dev->page10); ses_intf_add() 758 kfree(ses_dev->page2); ses_intf_add() 759 kfree(ses_dev->page1); ses_intf_add() 761 kfree(ses_dev); ses_intf_add() 788 struct ses_device *ses_dev; ses_intf_remove_enclosure() local 795 ses_dev = edev->scratch; ses_intf_remove_enclosure() 798 kfree(ses_dev->page10); ses_intf_remove_enclosure() 799 kfree(ses_dev->page1); ses_intf_remove_enclosure() 800 kfree(ses_dev->page2); ses_intf_remove_enclosure() 801 kfree(ses_dev); ses_intf_remove_enclosure()
|
Completed in 35 milliseconds