Searched refs:na (Results 1 - 25 of 55) sorted by relevance

123

/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dattrib.h215 #define test_nattr_flag(na, flag) test_bit(NA_##flag, (na)->state)
216 #define set_nattr_flag(na, flag) set_bit(NA_##flag, (na)->state)
217 #define clear_nattr_flag(na, flag) clear_bit(NA_##flag, (na)->state)
219 #define NAttrInitialized(na) test_nattr_flag(na, Initialized)
220 #define NAttrSetInitialized(na) set_nattr_flag(na, Initialize
[all...]
H A Dattrib.c86 static int NAttrFlag(ntfs_attr *na, FILE_ATTR_FLAGS flag) argument
88 if (na->type == AT_DATA && na->name == AT_UNNAMED)
89 return (na->ni->flags & flag);
93 static void NAttrSetFlag(ntfs_attr *na, FILE_ATTR_FLAGS flag) argument
95 if (na->type == AT_DATA && na->name == AT_UNNAMED)
96 na->ni->flags |= flag;
102 static void NAttrClearFlag(ntfs_attr *na, FILE_ATTR_FLAGS flag) argument
104 if (na
321 __ntfs_attr_init(ntfs_attr *na, ntfs_inode *ni, const ATTR_TYPES type, ntfschar *name, const u32 name_len) argument
349 ntfs_attr_init(ntfs_attr *na, const BOOL non_resident, const ATTR_FLAGS data_flags, const BOOL encrypted, const BOOL sparse, const s64 allocated_size, const s64 data_size, const s64 initialized_size, const s64 compressed_size, const u8 compression_unit) argument
402 ntfs_attr *na = NULL; local
535 ntfs_attr_close(ntfs_attr *na) argument
557 ntfs_attr_map_runlist(ntfs_attr *na, VCN vcn) argument
601 ntfs_attr_map_partial_runlist(ntfs_attr *na, VCN vcn) argument
680 ntfs_attr_map_whole_runlist(ntfs_attr *na) argument
801 ntfs_attr_vcn_to_lcn(ntfs_attr *na, const VCN vcn) argument
851 ntfs_attr_find_vcn(ntfs_attr *na, const VCN vcn) argument
912 ntfs_attr_pread_i(ntfs_attr *na, const s64 pos, s64 count, void *b) argument
1141 ntfs_attr_pread(ntfs_attr *na, const s64 pos, s64 count, void *b) argument
1163 ntfs_attr_fill_zero(ntfs_attr *na, s64 pos, s64 count) argument
1224 ntfs_attr_fill_hole(ntfs_attr *na, s64 count, s64 *ofs, runlist_element **rl, VCN *update_from) argument
1432 split_compressed_hole(ntfs_attr *na, runlist_element **prl, s64 pos, s64 count, VCN *update_from) argument
1593 borrow_from_hole(ntfs_attr *na, runlist_element **prl, s64 pos, s64 count, VCN *update_from, BOOL wasnonresident) argument
1760 ntfs_attr_pwrite(ntfs_attr *na, const s64 pos, s64 count, const void *b) argument
2307 ntfs_attr_pclose(ntfs_attr *na) argument
2532 ntfs_attr_mst_pread(ntfs_attr *na, const s64 pos, const s64 bk_cnt, const u32 bk_size, void *dst) argument
2590 ntfs_attr_mst_pwrite(ntfs_attr *na, const s64 pos, s64 bk_cnt, const u32 bk_size, void *src) argument
4157 ntfs_attr *na; local
4378 ntfs_attr_rm(ntfs_attr *na) argument
4728 ntfs_attr_make_non_resident(ntfs_attr *na, ntfs_attr_search_ctx *ctx) argument
4923 ntfs_resident_attr_resize_i(ntfs_attr *na, const s64 newsize, BOOL force_non_resident) argument
5170 ntfs_resident_attr_resize(ntfs_attr *na, const s64 newsize) argument
5195 ntfs_attr_force_non_resident(ntfs_attr *na) argument
5227 ntfs_attr_make_resident(ntfs_attr *na, ntfs_attr_search_ctx *ctx) argument
5391 ntfs_attr_update_meta(ATTR_RECORD *a, ntfs_attr *na, MFT_RECORD *m, hole_type holes, ntfs_attr_search_ctx *ctx) argument
5519 ntfs_attr_update_mapping_pairs_i(ntfs_attr *na, VCN from_vcn, hole_type holes) argument
5925 ntfs_attr_update_mapping_pairs(ntfs_attr *na, VCN from_vcn) argument
5947 ntfs_non_resident_attr_shrink(ntfs_attr *na, const s64 newsize) argument
6100 ntfs_non_resident_attr_expand_i(ntfs_attr *na, const s64 newsize, hole_type holes) argument
6326 ntfs_non_resident_attr_expand(ntfs_attr *na, const s64 newsize, hole_type holes) argument
6358 ntfs_attr_truncate_i(ntfs_attr *na, const s64 newsize, hole_type holes) argument
6439 ntfs_attr_truncate(ntfs_attr *na, const s64 newsize) argument
6453 ntfs_attr_truncate_solid(ntfs_attr *na, const s64 newsize) argument
6468 stuff_hole(ntfs_attr *na, const s64 pos) argument
6567 ntfs_attr *na; local
6608 ntfs_attr *na = NULL; local
6653 ntfs_attr *na = NULL; local
6706 ntfs_attr *na; local
6754 ntfs_attr_get_free_bits(ntfs_attr *na) argument
[all...]
H A Dbitmap.h42 extern int ntfs_bitmap_set_run(ntfs_attr *na, s64 start_bit, s64 count);
43 extern int ntfs_bitmap_clear_run(ntfs_attr *na, s64 start_bit, s64 count);
47 * @na: attribute containing the bitmap
50 * Set the @bit in the bitmap described by the attribute @na.
54 static __inline__ int ntfs_bitmap_set_bit(ntfs_attr *na, s64 bit) argument
56 return ntfs_bitmap_set_run(na, bit, 1);
61 * @na: attribute containing the bitmap
64 * Clear @bit in the bitmap described by the attribute @na.
68 static __inline__ int ntfs_bitmap_clear_bit(ntfs_attr *na, s64 bit) argument
70 return ntfs_bitmap_clear_run(na, bi
[all...]
H A Dcompress.h29 extern s64 ntfs_compressed_attr_pread(ntfs_attr *na, s64 pos, s64 count,
32 extern s64 ntfs_compressed_pwrite(ntfs_attr *na, runlist_element *brl, s64 wpos,
37 extern int ntfs_compressed_close(ntfs_attr *na, runlist_element *brl,
H A Defs.c139 ntfs_attr *na; local
160 na = ntfs_attr_open(ctx->ntfs_ino, AT_DATA,
163 if (!na) {
167 if (na && !(ctx->attr->flags & ATTR_IS_ENCRYPTED)) {
168 if (!NAttrNonResident(na)
169 && ntfs_attr_make_non_resident(na, ctx)) {
176 if (ntfs_attr_force_non_resident(na)) {
194 && ntfs_efs_fixup_attribute(ctx, na)) {
199 if (na)
200 ntfs_attr_close(na);
220 ntfs_attr *na; local
322 ntfs_efs_fixup_attribute(ntfs_attr_search_ctx *ctx, ntfs_attr *na) argument
[all...]
H A Defs.h28 int ntfs_efs_fixup_attribute(ntfs_attr_search_ctx *ctx, ntfs_attr *na);
H A Dcompress.c504 static BOOL ntfs_is_cb_compressed(ntfs_attr *na, runlist_element *rl, argument
520 rl = ntfs_attr_find_vcn(na, rl->vcn);
544 * @na: ntfs attribute to read from
552 * compressed ntfs attribute @na into the data buffer @b.
563 s64 ntfs_compressed_attr_pread(ntfs_attr *na, s64 pos, s64 count, void *b) argument
578 (unsigned long long)na->ni->mft_no, na->type,
580 data_flags = na->data_flags;
581 compression = na->ni->flags & FILE_ATTR_COMPRESSED;
582 if (!na || !n
913 ntfs_comp_set(ntfs_attr *na, runlist_element *rl, s64 offs, u32 insz, const char *inbuf) argument
1012 valid_compressed_run(ntfs_attr *na, runlist_element *rl, BOOL fullcheck, const char *text) argument
1076 ntfs_compress_overwr_free(ntfs_attr *na, runlist_element *rl, s32 usedcnt, s32 freecnt, VCN *update_from) argument
1288 ntfs_compress_free(ntfs_attr *na, runlist_element *rl, s64 used, s64 reserved, BOOL appending, VCN *update_from) argument
1425 ntfs_read_append(ntfs_attr *na, const runlist_element *rl, s64 offs, u32 compsz, s32 pos, BOOL appending, char *outbuf, s64 to_write, const void *b) argument
1469 ntfs_flush(ntfs_attr *na, runlist_element *rl, s64 offs, const char *outbuf, s32 count, BOOL compress, BOOL appending, VCN *update_from) argument
1511 ntfs_compressed_pwrite(ntfs_attr *na, runlist_element *wrl, s64 wpos, s64 offs, s64 to_write, s64 rounded, const void *b, int compressed_part, VCN *update_from) argument
1708 ntfs_compressed_close(ntfs_attr *na, runlist_element *wrl, s64 offs, VCN *update_from) argument
[all...]
H A Dbitmap.c105 * @na: attribute containing the bitmap
111 * attribute @na to @value, where @value is either 0 or 1.
115 static int ntfs_bitmap_set_bits_in_run(ntfs_attr *na, s64 start_bit, argument
122 if (!na || start_bit < 0 || count < 0) {
125 __FUNCTION__, na, (long long)start_bit, (long long)count);
150 br = ntfs_attr_pread(na, start_bit >> 3, 1, buf);
187 br = ntfs_attr_pread(na, (start_bit + count) >>
214 br = ntfs_attr_pwrite(na, tmp, bufsize, buf);
259 * @na: attribute containing the bitmap
264 * attribute @na
268 ntfs_bitmap_set_run(ntfs_attr *na, s64 start_bit, s64 count) argument
290 ntfs_bitmap_clear_run(ntfs_attr *na, s64 start_bit, s64 count) argument
[all...]
H A Dattrlist.c111 ntfs_attr *na = NULL; local
203 na = ntfs_attr_open(ni, AT_ATTRIBUTE_LIST, AT_UNNAMED, 0);
204 if (!na) {
209 if (ntfs_attr_truncate(na, ni->attr_list_size + entry_len)) {
226 ntfs_attr_close(na);
229 if (na)
230 ntfs_attr_close(na);
249 ntfs_attr *na; local
283 na = ntfs_attr_open(base_ni, AT_ATTRIBUTE_LIST, AT_UNNAMED, 0);
284 if (!na) {
[all...]
H A Dvolume.c132 static void ntfs_attr_free(ntfs_attr **na) argument
134 if (na && *na) {
135 ntfs_attr_close(*na);
136 *na = NULL;
632 ntfs_attr *na = NULL; local
643 na = ntfs_attr_open(ni, AT_DATA, AT_UNNAMED, 0);
644 if (!na) {
650 if (!ntfs_check_logfile(na, &rp) || !ntfs_is_logfile_clean(na, r
732 ntfs_attr *na = NULL; local
803 ntfs_attr *na; local
877 ntfs_attr *na; local
1529 ntfs_attr *na; local
1716 ntfs_attr *na; local
1749 ntfs_attr *na; local
[all...]
H A Dobject_id.c275 static int remove_object_id_index(ntfs_attr *na, ntfs_index_context *xo, argument
283 ret = na->data_size;
286 size = ntfs_attr_pread(na, 0, sizeof(GUID), old_attr);
332 ntfs_attr *na; local
339 na = ntfs_attr_open(ni, AT_OBJECT_ID, AT_UNNAMED, 0);
340 if (na) {
343 oldsize = remove_object_id_index(na,xo,&old_attr);
348 res = ntfs_attr_truncate(na, (s64)sizeof(GUID));
351 written = (int)ntfs_attr_pwrite(na,
370 ntfs_attr_rm(na);
432 ntfs_attr *na; local
575 ntfs_attr *na; local
[all...]
H A Dlcnalloc.h47 extern int ntfs_cluster_free(ntfs_volume *vol, ntfs_attr *na, VCN start_vcn,
H A Dreparse.c874 static int remove_reparse_index(ntfs_attr *na, ntfs_index_context *xr, argument
884 ret = na->data_size;
887 size = ntfs_attr_pread(na, 0, 4, preparse_tag);
889 seqn = na->ni->mrec->sequence_number;
890 file_id_cpu = MK_MREF(na->ni->mft_no,le16_to_cpu(seqn));
962 ntfs_attr *na; local
966 na = ntfs_attr_open(ni, AT_REPARSE_POINT, AT_UNNAMED, 0);
967 if (na) {
969 oldsize = remove_reparse_index(na,xr,&reparse_tag);
974 res = ntfs_attr_truncate(na, (s6
1020 ntfs_attr *na; local
1163 ntfs_attr *na; local
[all...]
H A Drunlist.h52 extern runlist_element *ntfs_rl_extend(ntfs_attr *na, runlist_element *rl,
H A Dlogfile.c690 * @na: ntfs attribute of journal $LogFile to empty
692 * Empty the contents of the $LogFile journal @na and return 0 on success and
699 int ntfs_empty_logfile(ntfs_attr *na) argument
706 if (NVolLogFileEmpty(na->ni->vol))
709 if (!NAttrNonResident(na)) {
718 while ((count = na->data_size - pos) > 0) {
723 count = ntfs_attr_pwrite(na, pos, count, buf);
733 NVolSetLogFileEmpty(na->ni->vol);
H A Dindex.c579 ntfs_attr *na; local
581 na = ntfs_attr_open(ni, AT_INDEX_ALLOCATION, icx->name, icx->name_len);
582 if (!na) {
588 return na;
900 ntfs_attr *na; local
905 na = ntfs_attr_open(icx->ni, AT_BITMAP, icx->name, icx->name_len);
906 if (!na) {
912 if (na->data_size < bpos + 1) {
913 if (ntfs_attr_truncate(na, (na
1219 ntfs_attr *na; local
[all...]
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/
H A Dattributes.c220 ntfs_attr *na = NULL; local
262 na = ntfs_attr_open(ni, AT_DATA, uname, ulen);
263 if (na != NULL) {
264 if (ntfs_attr_truncate(na, 0)) {
275 na = ntfs_attr_open(ni, AT_DATA, uname, ulen);
276 if (na == NULL) {
283 if(ntfs_attr_pwrite(na, 0, sizeof(uint32), &type) < 0 ) {
306 if (na != NULL)
307 ntfs_attr_close(na);
330 ntfs_attr *na local
456 ntfs_attr *na = NULL; local
495 ntfs_attr *na = NULL; local
571 ntfs_attr *na = NULL; local
[all...]
H A Dfs_func.c75 ntfs_attr* na; local
86 na = ntfs_attr_open(ni, AT_DATA, NULL, 0);
87 if (!na)
91 if (na->data_size <= sizeof(INTX_FILE_TYPES) +
93 na->data_size > sizeof(INTX_FILE_TYPES)) {
96 intx_file = ntfs_malloc(na->data_size);
98 ntfs_attr_close(na);
101 if (ntfs_attr_pread(na, 0, na->data_size,
102 intx_file) != na
774 ntfs_attr *na; local
896 ntfs_attr *na = ntfs_attr_open(ni, AT_DATA, NULL, 0); local
994 ntfs_attr *na = NULL; local
1052 ntfs_attr *na = NULL; local
1187 ntfs_attr *na = NULL; local
1268 ntfs_attr *na = NULL; local
1398 ntfs_attr *na = NULL; local
[all...]
/haiku-fatelf/src/add-ons/accelerants/radeon/
H A Ddriver_wrapper.c50 radeon_no_arg na; local
52 na.magic = RADEON_PRIVATE_DATA_MAGIC;
54 ioctl( ai->fd, RADEON_RESETENGINE, &na, sizeof( na ));
/haiku-fatelf/src/add-ons/media/plugins/musepack/mpc/
H A Din_mpc.cpp30 static const char na [] = "n.a."; local
32 na, "'Unstable/Experimental'", na, na,
33 na, "below 'Telephone'", "below 'Telephone'", "'Telephone'",
38 return profile >= sizeof(Names)/sizeof(*Names) ? na : Names [profile];
/haiku-fatelf/src/bin/gdb/gdb/rdi-share/
H A Dmsgbuild.c71 unsigned int na = va_arg(args, unsigned int); local
75 PUT32LE(buffer, na);
88 unsigned int na = va_arg(args, unsigned int); local
92 PUT16LE(buffer, na);
/haiku-fatelf/src/libs/ncurses/ncurses/tinfo/
H A Dalloc_ttype.c54 merge_names(char **dst, char **a, int na, char **b, int nb) argument
57 while (na > 0 && nb > 0) {
61 na--;
68 na--, nb--;
71 while (na-- > 0) {
378 int na = NUM_EXT_NAMES(to); local
385 DEBUG(2, ("align_termtype to(%d:%s), from(%d:%s)", na, to->term_names,
388 if (na != 0 || nb != 0) {
389 if ((na == nb) /* check if the arrays are equivalent */
393 for (n = 0, same = TRUE; n < na;
[all...]
/haiku-fatelf/src/bin/network/tcpdump/
H A Dprint-lwres.c452 u_int32_t l, na; local
485 na = EXTRACT_16BITS(&gabn->naliases);
486 for (i = 0; i < na; i++) {
494 na = EXTRACT_16BITS(&gabn->naddrs);
495 for (i = 0; i < na; i++) {
524 na = EXTRACT_16BITS(&gnba->naliases);
525 for (i = 0; i < na; i++) {
563 na = EXTRACT_16BITS(&grbn->nrdatas);
564 for (i = 0; i < na; i++) {
573 na
[all...]
/haiku-fatelf/src/apps/icon-o-matic/import_export/svg/
H A DSVGParser.cpp1024 unsigned* na)
1026 *na = 0;
1044 if(*na >= max_na)
1048 args[(*na)++] = atof(ptr);
1064 unsigned na = 0;
1065 unsigned len = parse_transform_args(str, args, 6, &na);
1066 if(na != 6)
1079 unsigned na = 0;
1080 unsigned len = parse_transform_args(str, args, 2, &na);
1081 if(na
[all...]
/haiku-fatelf/src/kits/shared/
H A DColorQuantizer.cpp124 uint32 na = 0; local
130 na += tmpPalette[k].a * sums[k];
136 table[j].a = clip((float)na / ns);

Completed in 224 milliseconds

123