Searched refs:map_arr (Results 1 – 2 of 2) sorted by relevance
/external/sg3_utils/src/ |
D | sg_map.c | 84 static my_map_info_t map_arr[MAX_SG_DEVS]; variable 277 map_arr[k].active = -2; in main() 284 map_arr[k].active = -1; in main() 296 res = ioctl(sg_fd, SG_GET_SCSI_ID, &map_arr[k].sg_dat); in main() 309 memcpy(map_arr[k].vendor, &buff[8], 8); in main() 310 memcpy(map_arr[k].product, &buff[16], 16); in main() 311 memcpy(map_arr[k].revision, &buff[32], 4); in main() 314 map_arr[k].active = 1; in main() 315 map_arr[k].oth_dev_num = -1; in main() 351 switch (map_arr[k].active) in main() [all …]
|
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/ |
D | scsimain.c | 367 static my_map_info_t map_arr[MAX_SG_DEVS]; variable 3117 map_arr[k].active = -2; in show_scsi_maps() 3123 map_arr[k].active = -1; in show_scsi_maps() 3135 res = ioctl(sg_fd, SG_GET_SCSI_ID, &map_arr[k].sg_dat); in show_scsi_maps() 3149 memcpy(map_arr[k].vendor, &buff[8], 8); in show_scsi_maps() 3150 memcpy(map_arr[k].product, &buff[16], 16); in show_scsi_maps() 3151 memcpy(map_arr[k].revision, &buff[32], 4); in show_scsi_maps() 3154 map_arr[k].active = 1; in show_scsi_maps() 3155 map_arr[k].oth_dev_num = -1; in show_scsi_maps() 3187 switch (map_arr[k].active) { in show_scsi_maps() [all …]
|