HelenOS sources
BPS 53 uspace/srv/fs/exfat/exfat.h #define BPC(bs) ((uint32_t) (BPS(bs) * SPC(bs)))
BPS 65 uspace/srv/fs/exfat/exfat.h #define DPS(bs) (BPS((bs)) / sizeof(exfat_dentry_t))
BPS 67 uspace/srv/fs/exfat/exfat_bitmap.c rc = exfat_block_get(&b, bs, bitmapp, offset / BPS(bs), BLOCK_FLAGS_NONE);
BPS 73 uspace/srv/fs/exfat/exfat_bitmap.c alloc = bitmap[offset % BPS(bs)] & (1 << (clst % 8));
BPS 107 uspace/srv/fs/exfat/exfat_bitmap.c rc = exfat_block_get(&b, bs, bitmapp, offset / BPS(bs), BLOCK_FLAGS_NONE);
BPS 113 uspace/srv/fs/exfat/exfat_bitmap.c bitmap[offset % BPS(bs)] |= (1 << (clst % 8));
BPS 142 uspace/srv/fs/exfat/exfat_bitmap.c rc = exfat_block_get(&b, bs, bitmapp, offset / BPS(bs),
BPS 149 uspace/srv/fs/exfat/exfat_bitmap.c bitmap[offset % BPS(bs)] &= ~(1 << (clst % 8));
BPS 73 uspace/srv/fs/exfat/exfat_directory.c di->blocks = ROUND_UP(nodep->size, BPS(di->bs)) / BPS(di->bs);
BPS 106 uspace/srv/fs/exfat/exfat_directory.c i = (di->pos * sizeof(exfat_dentry_t)) / BPS(di->bs);
BPS 181 uspace/srv/fs/exfat/exfat_directory.c aoff64_t o = di->pos % (BPS(di->bs) / sizeof(exfat_dentry_t));
BPS 516 uspace/srv/fs/exfat/exfat_directory.c di->blocks = di->nodep->size / BPS(di->bs);
BPS 136 uspace/srv/fs/exfat/exfat_fat.c if (((((nodep->size - 1) / BPS(bs)) / SPC(bs)) == bn / SPC(bs)) &&
BPS 239 uspace/srv/fs/exfat/exfat_fat.c rc = block_get(&b, service_id, FAT_FS(bs) + offset / BPS(bs), BLOCK_FLAGS_NONE);
BPS 243 uspace/srv/fs/exfat/exfat_fat.c *value = uint32_t_le2host(*(uint32_t *)(b->data + offset % BPS(bs)));
BPS 269 uspace/srv/fs/exfat/exfat_fat.c rc = block_get(&b, service_id, FAT_FS(bs) + offset / BPS(bs), BLOCK_FLAGS_NONE);
BPS 273 uspace/srv/fs/exfat/exfat_fat.c *(uint32_t *)(b->data + offset % BPS(bs)) = host2uint32_t_le(value);
BPS 498 uspace/srv/fs/exfat/exfat_fat.c memset(b->data, 0, BPS(bs));
BPS 514 uspace/srv/fs/exfat/exfat_fat.c blocks = ROUND_UP(nodep->size, BPS(bs)) / BPS(bs);
BPS 515 uspace/srv/fs/exfat/exfat_fat.c count = BPS(bs);
BPS 522 uspace/srv/fs/exfat/exfat_fat.c count = nodep->size - i * BPS(bs);
BPS 532 uspace/srv/fs/exfat/exfat_ops.c (BPS(di.bs) / sizeof(exfat_dentry_t));
BPS 954 uspace/srv/fs/exfat/exfat_ops.c unsigned const bmap_sectors = ROUND_UP(bmap_node->size, BPS(bs)) /
BPS 955 uspace/srv/fs/exfat/exfat_ops.c BPS(bs);
BPS 972 uspace/srv/fs/exfat/exfat_ops.c for (bit = 0; bit < BPS(bs) * 8 && block_count > 0;
BPS 1046 uspace/srv/fs/exfat/exfat_ops.c rc = block_cache_init(service_id, BPS(bs), 0 /* XXX */, cmode);
BPS 1085 uspace/srv/fs/exfat/exfat_ops.c rootp->size = BPS(bs) * SPC(bs) * clusters;
BPS 1249 uspace/srv/fs/exfat/exfat_ops.c printf("Bytes per sector: %d\n", BPS(bs));
BPS 1251 uspace/srv/fs/exfat/exfat_ops.c printf("KBytes per cluster: %d\n", SPC(bs) * BPS(bs) / 1024);
BPS 1360 uspace/srv/fs/exfat/exfat_ops.c bytes = min(len, BPS(bs) - pos % BPS(bs));
BPS 1362 uspace/srv/fs/exfat/exfat_ops.c rc = exfat_block_get(&b, bs, nodep, pos / BPS(bs),
BPS 1370 uspace/srv/fs/exfat/exfat_ops.c b->data + pos % BPS(bs), bytes);
BPS 1388 uspace/srv/fs/exfat/exfat_ops.c assert(nodep->size % BPS(bs) == 0);
BPS 1389 uspace/srv/fs/exfat/exfat_ops.c assert(BPS(bs) % sizeof(exfat_dentry_t) == 0);
BPS 1500 uspace/srv/fs/exfat/exfat_ops.c bytes = min(len, BPS(bs) - pos % BPS(bs));
BPS 1501 uspace/srv/fs/exfat/exfat_ops.c if (bytes == BPS(bs))
BPS 1528 uspace/srv/fs/exfat/exfat_ops.c rc = exfat_block_get(&b, bs, nodep, pos / BPS(bs), flags);
BPS 1536 uspace/srv/fs/exfat/exfat_ops.c b->data + pos % BPS(bs), bytes);
BPS 56 uspace/srv/fs/fat/fat_directory.c di->blocks = ROUND_UP(nodep->size, BPS(di->bs)) / BPS(di->bs);
BPS 79 uspace/srv/fs/fat/fat_directory.c i = (di->pos * sizeof(fat_dentry_t)) / BPS(di->bs);
BPS 147 uspace/srv/fs/fat/fat_directory.c aoff64_t o = di->pos % (BPS(di->bs) / sizeof(fat_dentry_t));
BPS 439 uspace/srv/fs/fat/fat_directory.c di->nodep->size += BPS(di->bs) * SPC(di->bs);
BPS 441 uspace/srv/fs/fat/fat_directory.c di->blocks = di->nodep->size / BPS(di->bs);
BPS 140 uspace/srv/fs/fat/fat_fat.c if (((((nodep->size - 1) / BPS(bs)) / SPC(bs)) == bn / SPC(bs)) &&
BPS 246 uspace/srv/fs/fat/fat_fat.c boundary = ROUND_UP(nodep->size, BPS(bs) * SPC(bs));
BPS 250 uspace/srv/fs/fat/fat_fat.c o = ALIGN_DOWN(o + BPS(bs), BPS(bs))) {
BPS 251 uspace/srv/fs/fat/fat_fat.c int flags = (o % BPS(bs) == 0) ?
BPS 253 uspace/srv/fs/fat/fat_fat.c rc = fat_block_get(&b, bs, nodep, o / BPS(bs), flags);
BPS 256 uspace/srv/fs/fat/fat_fat.c memset(b->data + o % BPS(bs), 0, BPS(bs) - o % BPS(bs));
BPS 267 uspace/srv/fs/fat/fat_fat.c for (o = boundary; o < pos; o += BPS(bs)) {
BPS 269 uspace/srv/fs/fat/fat_fat.c NULL, (o - boundary) / BPS(bs), BLOCK_FLAGS_NOREAD);
BPS 272 uspace/srv/fs/fat/fat_fat.c memset(b->data, 0, min(BPS(bs), pos - o));
BPS 301 uspace/srv/fs/fat/fat_fat.c if (offset / BPS(bs) >= SF(bs))
BPS 305 uspace/srv/fs/fat/fat_fat.c offset / BPS(bs), BLOCK_FLAGS_NONE);
BPS 309 uspace/srv/fs/fat/fat_fat.c byte1 = ((uint8_t *) b->data)[offset % BPS(bs)];
BPS 311 uspace/srv/fs/fat/fat_fat.c if ((offset % BPS(bs)) + 1 == BPS(bs)) {
BPS 313 uspace/srv/fs/fat/fat_fat.c if (offset / BPS(bs) < SF(bs)) {
BPS 316 uspace/srv/fs/fat/fat_fat.c SF(bs) * fatno + offset / BPS(bs),
BPS 339 uspace/srv/fs/fat/fat_fat.c byte2 = ((uint8_t *) b->data)[(offset % BPS(bs)) + 1];
BPS 372 uspace/srv/fs/fat/fat_fat.c offset / BPS(bs), BLOCK_FLAGS_NONE);
BPS 376 uspace/srv/fs/fat/fat_fat.c *value = uint16_t_le2host(*(uint16_t *)(b->data + offset % BPS(bs)));
BPS 403 uspace/srv/fs/fat/fat_fat.c offset / BPS(bs), BLOCK_FLAGS_NONE);
BPS 407 uspace/srv/fs/fat/fat_fat.c *value = uint32_t_le2host(*(uint32_t *)(b->data + offset % BPS(bs))) &
BPS 462 uspace/srv/fs/fat/fat_fat.c if (offset / BPS(bs) >= SF(bs))
BPS 466 uspace/srv/fs/fat/fat_fat.c offset / BPS(bs), BLOCK_FLAGS_NONE);
BPS 470 uspace/srv/fs/fat/fat_fat.c byte1 = ((uint8_t *) b->data)[offset % BPS(bs)];
BPS 473 uspace/srv/fs/fat/fat_fat.c if ((offset % BPS(bs)) + 1 == BPS(bs)) {
BPS 475 uspace/srv/fs/fat/fat_fat.c if (offset / BPS(bs) < SF(bs)) {
BPS 478 uspace/srv/fs/fat/fat_fat.c SF(bs) * fatno + offset / BPS(bs),
BPS 496 uspace/srv/fs/fat/fat_fat.c byte2 = ((uint8_t *) b->data)[(offset % BPS(bs)) + 1];
BPS 511 uspace/srv/fs/fat/fat_fat.c ((uint8_t *) b->data)[(offset % BPS(bs))] = byte1;
BPS 522 uspace/srv/fs/fat/fat_fat.c ((uint8_t *) b->data)[(offset % BPS(bs)) + 1] = byte2;
BPS 551 uspace/srv/fs/fat/fat_fat.c offset / BPS(bs), BLOCK_FLAGS_NONE);
BPS 555 uspace/srv/fs/fat/fat_fat.c *(uint16_t *)(b->data + offset % BPS(bs)) = host2uint16_t_le(value);
BPS 585 uspace/srv/fs/fat/fat_fat.c offset / BPS(bs), BLOCK_FLAGS_NONE);
BPS 589 uspace/srv/fs/fat/fat_fat.c temp = uint32_t_le2host(*(uint32_t *)(b->data + offset % BPS(bs)));
BPS 592 uspace/srv/fs/fat/fat_fat.c *(uint32_t *)(b->data + offset % BPS(bs)) = host2uint32_t_le(temp);
BPS 893 uspace/srv/fs/fat/fat_fat.c memset(b->data, 0, BPS(bs));
BPS 944 uspace/srv/fs/fat/fat_fat.c (RDE(bs) * sizeof(fat_dentry_t)) % BPS(bs) != 0)
BPS 72 uspace/srv/fs/fat/fat_fat.h #define RDS(bs) ((sizeof(fat_dentry_t) * RDE((bs))) / BPS((bs))) + \
BPS 73 uspace/srv/fs/fat/fat_fat.h (((sizeof(fat_dentry_t) * RDE((bs))) % BPS((bs))) != 0)
BPS 64 uspace/srv/fs/fat/fat_ops.c #define DPS(bs) (BPS((bs)) / sizeof(fat_dentry_t))
BPS 65 uspace/srv/fs/fat/fat_ops.c #define BPC(bs) (BPS((bs)) * SPC((bs)))
BPS 130 uspace/srv/fs/fat/fat_ops.c NULL, (node->idx->pdi * sizeof(fat_dentry_t)) / BPS(bs),
BPS 307 uspace/srv/fs/fat/fat_ops.c (idxp->pdi * sizeof(fat_dentry_t)) / BPS(bs), BLOCK_FLAGS_NONE);
BPS 341 uspace/srv/fs/fat/fat_ops.c nodep->size = BPS(bs) * SPC(bs) * clusters;
BPS 395 uspace/srv/fs/fat/fat_ops.c (BPS(di.bs) / sizeof(fat_dentry_t));
BPS 518 uspace/srv/fs/fat/fat_ops.c nodep->size = BPS(bs) * SPC(bs);
BPS 773 uspace/srv/fs/fat/fat_ops.c blocks = nodep->size / BPS(bs);
BPS 933 uspace/srv/fs/fat/fat_ops.c if (BPS(bs) != BS_SIZE) {
BPS 939 uspace/srv/fs/fat/fat_ops.c rc = block_cache_init(service_id, BPS(bs), 0 /* XXX */, cmode);
BPS 1009 uspace/srv/fs/fat/fat_ops.c rootp->size = BPS(bs) * SPC(bs) * clusters;
BPS 1249 uspace/srv/fs/fat/fat_ops.c bytes = min(len, BPS(bs) - pos % BPS(bs));
BPS 1251 uspace/srv/fs/fat/fat_ops.c rc = fat_block_get(&b, bs, nodep, pos / BPS(bs),
BPS 1259 uspace/srv/fs/fat/fat_ops.c b->data + pos % BPS(bs), bytes);
BPS 1272 uspace/srv/fs/fat/fat_ops.c assert(nodep->size % BPS(bs) == 0);
BPS 1273 uspace/srv/fs/fat/fat_ops.c assert(BPS(bs) % sizeof(fat_dentry_t) == 0);
BPS 1357 uspace/srv/fs/fat/fat_ops.c bytes = min(len, BPS(bs) - pos % BPS(bs));
BPS 1358 uspace/srv/fs/fat/fat_ops.c if (bytes == BPS(bs))
BPS 1375 uspace/srv/fs/fat/fat_ops.c rc = fat_block_get(&b, bs, nodep, pos / BPS(bs), flags);
BPS 1382 uspace/srv/fs/fat/fat_ops.c b->data + pos % BPS(bs), bytes);
BPS 1423 uspace/srv/fs/fat/fat_ops.c (pos / BPS(bs)) % SPC(bs), flags);
BPS 1431 uspace/srv/fs/fat/fat_ops.c b->data + pos % BPS(bs), bytes);
HelenOS homepage, sources at GitHub