Searched refs:fw_num (Results 1 – 2 of 2) sorted by relevance
/third_party/ltp/testcases/kernel/firmware/fw_load_user/ |
D | fw_load.c | 59 static int fw_num; variable 145 SAFE_ASPRINTF(cleanup, &fw[fw_num].file, "/n%d_%s", fw_num, fw_name); in setup() 146 fw[fw_num].fake = 1; in setup() 147 ++fw_num; in setup() 153 SAFE_FILE_PRINTF(cleanup, dev_fwnum, "%d", fw_num); in test_run() 160 for (i = 0; i < fw_num; ++i) { in test_run() 177 for (i = fw_num - 1; i >= 0; --i) { in cleanup() 194 struct fw_file_info *fi = &fw[fw_num]; in create_firmware() 203 SAFE_ASPRINTF(cleanup, &fi->file, "%s/n%d_%s", fi->dir, fw_num, fw_name); in create_firmware() 207 int k, byte = fw_num; in create_firmware() [all …]
|
/third_party/ltp/testcases/kernel/firmware/fw_load_kernel/ |
D | ltp_fw_load.c | 112 int err, fw_num = 0; in sys_fwnum() local 114 sscanf(buf, "%d", &fw_num); in sys_fwnum() 115 if (fw_num <= 0 || fw_num > 32) { in sys_fwnum() 116 pr_err(TCID ": Unexpected number of firmwares '%d'", fw_num); in sys_fwnum() 119 for (fw = 0; fw < fw_num; ++fw) { in sys_fwnum()
|