footer->timestamp = cpu_to_be32(time(NULL) - VHD_TIMESTAMP_BASE);/* Version of Virtual PC 2007 */footer->major =cpu_to_be16(0x0005); footer->minor =cpu_to_be16(0x0003); footer->orig_size = cpu_to_be64(total_size); footer->current_size = cpu_to_be64(total_size); footer-...
}/* Validate chip ID to be sure we have a Micron device */if(id !=be16_to_cpu(id_be))continue;/* Check chip ID */id =be16_to_cpu(id_be);switch(id) {case0x1222: name ="MT9V012";/* MI370 *//* 640x480 */break;case0x1229: name ="MT9V112";/* 640x480 */break;case0...
props->port_cap_flags = be32_to_cpup((__be32 *) (out_mad->data +20)); props->gid_tbl_len = to_mdev(ibdev)->dev->caps.gid_table_len[port]; props->max_msg_sz =0x80000000; props->pkey_tbl_len = to_mdev(ibdev)->dev->caps.pkey_table_len[port]; props->bad_pkey_cntr ...