Lines Matching refs:ef

114     struct zip_extra_field *ef;  in zip_file_extra_field_get()  local
130 for (ef=de->extra_fields; ef; ef=ef->next) { in zip_file_extra_field_get()
131 if (ef->flags & flags & ZIP_EF_BOTH) { in zip_file_extra_field_get()
138 *idp = ef->id; in zip_file_extra_field_get()
140 *lenp = ef->size; in zip_file_extra_field_get()
141 if (ef->size > 0) in zip_file_extra_field_get()
142 return ef->data; in zip_file_extra_field_get()
181 struct zip_extra_field *ef; in zip_file_extra_fields_count() local
197 for (ef=de->extra_fields; ef; ef=ef->next) in zip_file_extra_fields_count()
198 if (ef->flags & flags & ZIP_EF_BOTH) in zip_file_extra_fields_count()
210 struct zip_extra_field *ef; in zip_file_extra_fields_count_by_id() local
226 for (ef=de->extra_fields; ef; ef=ef->next) in zip_file_extra_fields_count_by_id()
227 if (ef->id == ef_id && (ef->flags & flags & ZIP_EF_BOTH)) in zip_file_extra_fields_count_by_id()
240 struct zip_extra_field *ef, *ef_prev, *ef_new; in zip_file_extra_field_set() local
266 ef = de->extra_fields; in zip_file_extra_field_set()
271 for (; ef; ef=ef->next) { in zip_file_extra_field_set()
272 if (ef->id == ef_id && (ef->flags & flags & ZIP_EF_BOTH)) { in zip_file_extra_field_set()
279 ef_prev = ef; in zip_file_extra_field_set()
298 new_len -= ef->size + 4; in zip_file_extra_field_set()
312 if ((ef->flags & ZIP_EF_BOTH) == (flags & ZIP_EF_BOTH)) { in zip_file_extra_field_set()
313 ef_new->next = ef->next; in zip_file_extra_field_set()
314 ef->next = NULL; in zip_file_extra_field_set()
315 _zip_ef_free(ef); in zip_file_extra_field_set()
322 ef->flags &= ~(flags & ZIP_EF_BOTH); in zip_file_extra_field_set()
323 ef_new->next = ef->next; in zip_file_extra_field_set()
324 ef->next = ef_new; in zip_file_extra_field_set()