Lines Matching defs:ctx
112 ntfs_attr_search_ctx *ctx;
145 ctx = ntfs_attr_get_search_ctx(ni, NULL);
146 if (!ctx) {
156 0 : le32_to_cpu(attr->value_length), ctx)) {
158 if (ctx->al_entry->lowest_vcn == attr->lowest_vcn) {
162 ntfs_attr_put_search_ctx(ctx);
166 ale = (ATTR_LIST_ENTRY*)((u8*)ctx->al_entry +
167 le16_to_cpu(ctx->al_entry->length));
173 ntfs_attr_put_search_ctx(ctx);
177 ale = ctx->al_entry;
179 /* Don't need it anymore, @ctx->al_entry points to @ni->attr_list. */
180 ntfs_attr_put_search_ctx(ctx);
238 * @ctx: attribute search context describing the attribute list entry
240 * Remove the attribute list entry @ctx->al_entry from the attribute list.
244 int ntfs_attrlist_entry_rm(ntfs_attr_search_ctx *ctx)
253 if (!ctx || !ctx->ntfs_ino || !ctx->al_entry) {
259 if (ctx->base_ntfs_ino)
260 base_ni = ctx->base_ntfs_ino;
262 base_ni = ctx->ntfs_ino;
263 ale = ctx->al_entry;
266 (long long) ctx->ntfs_ino->mft_no,
267 (unsigned) le32_to_cpu(ctx->al_entry->type),
268 (long long) sle64_to_cpu(ctx->al_entry->lowest_vcn));