Lines Matching refs:new
153 static void fat12_ent_put(struct fat_entry *fatent, int new) in fat12_ent_put() argument
157 if (new == FAT_ENT_EOF) in fat12_ent_put()
158 new = EOF_FAT12; in fat12_ent_put()
162 *ent12_p[0] = (new << 4) | (*ent12_p[0] & 0x0f); in fat12_ent_put()
163 *ent12_p[1] = new >> 4; in fat12_ent_put()
165 *ent12_p[0] = new & 0xff; in fat12_ent_put()
166 *ent12_p[1] = (*ent12_p[1] & 0xf0) | (new >> 8); in fat12_ent_put()
175 static void fat16_ent_put(struct fat_entry *fatent, int new) in fat16_ent_put() argument
177 if (new == FAT_ENT_EOF) in fat16_ent_put()
178 new = EOF_FAT16; in fat16_ent_put()
180 *fatent->u.ent16_p = cpu_to_le16(new); in fat16_ent_put()
184 static void fat32_ent_put(struct fat_entry *fatent, int new) in fat32_ent_put() argument
186 WARN_ON(new & 0xf0000000); in fat32_ent_put()
187 new |= le32_to_cpu(*fatent->u.ent32_p) & ~0x0fffffff; in fat32_ent_put()
188 *fatent->u.ent32_p = cpu_to_le32(new); in fat32_ent_put()
407 int new, int wait) in fat_ent_write() argument
413 ops->ent_put(fatent, new); in fat_ent_write()