Lines Matching refs:size_buff
1553 ReadCapdata_struct *size_buff; in register_new_disk() local
1585 size_buff = kmalloc(sizeof( ReadCapdata_struct), GFP_KERNEL); in register_new_disk()
1586 if (size_buff == NULL) { in register_new_disk()
1596 kfree(size_buff); in register_new_disk()
1698 memset(size_buff, 0, sizeof(ReadCapdata_struct)); in register_new_disk()
1700 size_buff, sizeof(ReadCapdata_struct), 1, in register_new_disk()
1704 (unsigned int) size_buff->total_size[0]) << 24; in register_new_disk()
1706 (unsigned int) size_buff->total_size[1]) << 16; in register_new_disk()
1708 (unsigned int) size_buff->total_size[2]) << 8; in register_new_disk()
1710 (unsigned int) size_buff->total_size[3]); in register_new_disk()
1714 (unsigned int) size_buff->block_size[0]) << 24; in register_new_disk()
1716 (unsigned int) size_buff->block_size[1]) << 16; in register_new_disk()
1718 (unsigned int) size_buff->block_size[2]) << 8; in register_new_disk()
1720 (unsigned int) size_buff->block_size[3]); in register_new_disk()
1805 kfree(size_buff); in register_new_disk()
1815 ReadCapdata_struct *size_buff; in cciss_rescan_disk() local
1827 size_buff = kmalloc(sizeof( ReadCapdata_struct), GFP_KERNEL); in cciss_rescan_disk()
1828 if (size_buff == NULL) { in cciss_rescan_disk()
1835 kfree(size_buff); in cciss_rescan_disk()
1838 memset(size_buff, 0, sizeof(ReadCapdata_struct)); in cciss_rescan_disk()
1839 return_code = sendcmd_withirq(CCISS_READ_CAPACITY, ctlr, size_buff, in cciss_rescan_disk()
1844 (unsigned int)(size_buff->total_size[0])) << 24; in cciss_rescan_disk()
1846 (unsigned int)(size_buff->total_size[1])) << 16; in cciss_rescan_disk()
1848 (unsigned int)(size_buff->total_size[2])) << 8; in cciss_rescan_disk()
1850 (size_buff->total_size[3])); in cciss_rescan_disk()
1854 (unsigned int)(size_buff->block_size[0])) << 24; in cciss_rescan_disk()
1856 (unsigned int)(size_buff->block_size[1])) << 16; in cciss_rescan_disk()
1858 (unsigned int)(size_buff->block_size[2])) << 8; in cciss_rescan_disk()
1860 (unsigned int)(size_buff->block_size[3])); in cciss_rescan_disk()
1922 kfree(size_buff); in cciss_rescan_disk()
2912 ReadCapdata_struct *size_buff; in cciss_getgeometry() local
2927 size_buff = kmalloc(sizeof( ReadCapdata_struct), GFP_KERNEL); in cciss_getgeometry()
2928 if (size_buff == NULL) { in cciss_getgeometry()
2937 kfree(size_buff); in cciss_getgeometry()
2993 memset(size_buff, 0, sizeof(ReadCapdata_struct)); in cciss_getgeometry()
2994 return_code = sendcmd(CCISS_READ_CAPACITY, cntl_num, size_buff, in cciss_getgeometry()
2998 (unsigned int)(size_buff->total_size[0])) << 24; in cciss_getgeometry()
3000 (unsigned int)(size_buff->total_size[1])) << 16; in cciss_getgeometry()
3002 (unsigned int)(size_buff->total_size[2])) << 8; in cciss_getgeometry()
3004 (size_buff->total_size[3])); in cciss_getgeometry()
3009 (unsigned int)(size_buff->block_size[0])) << 24; in cciss_getgeometry()
3011 (unsigned int)(size_buff->block_size[1])) << 16; in cciss_getgeometry()
3013 (unsigned int)(size_buff->block_size[2])) << 8; in cciss_getgeometry()
3015 (unsigned int)(size_buff->block_size[3])); in cciss_getgeometry()
3073 kfree(size_buff); in cciss_getgeometry()