Searched refs:firmware_attr (Results 1 – 2 of 2) sorted by relevance
73 char firmware_attr[32]; in translate_readonly() local98 if (strlen(de->d_name) + sizeof("/firmware") > sizeof(firmware_attr)) in translate_readonly()100 strcpy(firmware_attr, de->d_name); in translate_readonly()101 strcat(firmware_attr, "/firmware"); in translate_readonly()103 firmware_fd = openat(class_fd, firmware_attr, O_RDONLY); in translate_readonly()
205 char firmware_attr[32]; in pd_enumerate_jsons() local232 if (strlen(de->d_name) + sizeof("/firmware") > sizeof(firmware_attr)) in pd_enumerate_jsons()235 strcpy(firmware_attr, de->d_name); in pd_enumerate_jsons()236 strcat(firmware_attr, "/firmware"); in pd_enumerate_jsons()238 firmware_fd = openat(class_fd, firmware_attr, O_RDONLY); in pd_enumerate_jsons()