/third_party/NuttX/drivers/bch/ |
D | bchdev_driver.c | 87 struct bchlib_s *bch; in bch_open() local 90 bch = (struct bchlib_s *)((struct drv_data *)vnode->data)->priv; in bch_open() 94 bchlib_semtake(bch); in bch_open() 95 if (bch->refs == MAX_OPENCNT) in bch_open() 101 bch->refs++; in bch_open() 104 bchlib_semgive(bch); in bch_open() 118 struct bchlib_s *bch; in bch_close() local 121 bch = (struct bchlib_s *)((struct drv_data *)vnode->data)->priv; in bch_close() 125 bchlib_semtake(bch); in bch_close() 126 (void)bchlib_flushsector(bch); in bch_close() [all …]
|
D | bchlib_setup.c | 49 struct bchlib_s *bch; in bchlib_setup() local 58 bch = (struct bchlib_s *)zalloc(sizeof(struct bchlib_s)); in bchlib_setup() 59 if (!bch) in bchlib_setup() 67 ret = open_blockdriver(blkdev, readonly ? MS_RDONLY : 0, &bch->vnode); in bchlib_setup() 74 struct drv_data *drv = (struct drv_data *)bch->vnode->data; in bchlib_setup() 77 DEBUGASSERT(bch->vnode && bops && bops->geometry); in bchlib_setup() 79 ret = bops->geometry(bch->vnode, &geo); in bchlib_setup() 102 (void)sem_init(&bch->sem, 0, 1); in bchlib_setup() 103 bch->nsectors = geo.geo_nsectors; in bchlib_setup() 104 bch->sectsize = geo.geo_sectorsize; in bchlib_setup() [all …]
|
D | bchlib_write.c | 47 struct bchlib_s *bch = (struct bchlib_s *)handle; in bchlib_write() local 64 sector = offset / bch->sectsize; in bchlib_write() 65 sectoffset = offset - sector * bch->sectsize; in bchlib_write() 67 if (sector >= bch->nsectors) in bchlib_write() 79 ret = bchlib_readsector(bch, sector + bch->sectstart); in bchlib_write() 87 if (sectoffset + len > bch->sectsize) in bchlib_write() 89 nbytes = bch->sectsize - sectoffset; in bchlib_write() 96 ret = LOS_CopyToKernel(&bch->buffer[sectoffset], nbytes, buffer, nbytes); in bchlib_write() 102 bch->dirty = true; in bchlib_write() 108 if (sector >= bch->nsectors) in bchlib_write() [all …]
|
D | bchlib_read.c | 63 struct bchlib_s *bch = (struct bchlib_s *)handle; in bchlib_read() local 80 sector = offset / bch->sectsize; in bchlib_read() 81 sectoffset = offset - sector * bch->sectsize; in bchlib_read() 83 if (sector >= bch->nsectors) in bchlib_read() 97 ret = bchlib_readsector(bch, sector + bch->sectstart); in bchlib_read() 105 if (sectoffset + len > bch->sectsize) in bchlib_read() 107 nbytes = bch->sectsize - sectoffset; in bchlib_read() 114 ret = LOS_CopyFromKernel(buffer, len, &bch->buffer[sectoffset], nbytes); in bchlib_read() 125 if (sector >= bch->nsectors) in bchlib_read() 139 if (len >= bch->sectsize) in bchlib_read() [all …]
|
D | bchlib_cache.c | 49 int bchlib_flushsector(struct bchlib_s *bch) in bchlib_flushsector() argument 57 if (bch->dirty) in bchlib_flushsector() 61 ret = los_disk_write(bch->disk->disk_id, (const void *)bch->buffer, bch->sector, 1); in bchlib_flushsector() 70 bch->dirty = false; in bchlib_flushsector() 87 int bchlib_readsector(struct bchlib_s *bch, unsigned long long sector) in bchlib_readsector() argument 91 if (bch->sector != sector) in bchlib_readsector() 93 ret = bchlib_flushsector(bch); in bchlib_readsector() 99 bch->sector = (unsigned long long)-1; in bchlib_readsector() 101 ret = los_disk_read(bch->disk->disk_id, (void *)bch->buffer, sector, 1, TRUE); in bchlib_readsector() 107 bch->sector = sector; in bchlib_readsector()
|
D | bchlib_teardown.c | 44 struct bchlib_s *bch = (struct bchlib_s *)handle; in bchlib_teardown() local 50 if (bch->refs > 0) in bchlib_teardown() 57 (void)bchlib_flushsector(bch); in bchlib_teardown() 61 (void)close_blockdriver(bch->vnode); in bchlib_teardown() 65 if (bch->buffer) in bchlib_teardown() 67 free(bch->buffer); in bchlib_teardown() 70 (void)sem_destroy(&bch->sem); in bchlib_teardown() 71 free(bch); in bchlib_teardown()
|
D | bchdev_unregister.c | 51 struct bchlib_s *bch; in bchdev_unregister() local 75 ret = ioctl(fd, DIOC_GETPRIV, (unsigned long)((uintptr_t)&bch)); in bchdev_unregister() 93 if (bch->refs > 1) in bchdev_unregister() 114 bch->refs = 0; in bchdev_unregister() 115 return bchlib_teardown(bch); in bchdev_unregister() 118 bch->refs--; in bchdev_unregister()
|
D | bch.h | 82 EXTERN void bchlib_semtake(struct bchlib_s *bch); 83 EXTERN int bchlib_flushsector(struct bchlib_s *bch); 84 EXTERN int bchlib_readsector(struct bchlib_s *bch, unsigned long long sector);
|
D | bchlib_sem.c | 37 void bchlib_semtake(struct bchlib_s *bch) in bchlib_semtake() argument 39 while (sem_wait(&bch->sem) != 0) in bchlib_semtake()
|
/third_party/NuttX/ |
D | NuttX.gni | 31 "//third_party/NuttX/drivers/bch/bchdev_driver.c", 32 "//third_party/NuttX/drivers/bch/bchdev_register.c", 33 "//third_party/NuttX/drivers/bch/bchdev_unregister.c", 34 "//third_party/NuttX/drivers/bch/bchlib_cache.c", 35 "//third_party/NuttX/drivers/bch/bchlib_read.c", 36 "//third_party/NuttX/drivers/bch/bchlib_sem.c", 37 "//third_party/NuttX/drivers/bch/bchlib_setup.c", 38 "//third_party/NuttX/drivers/bch/bchlib_teardown.c", 39 "//third_party/NuttX/drivers/bch/bchlib_write.c",
|
D | ReleaseNotes | 8731 - BCH driver: Avoid NULL pointer dereference when bch->refs == 255. 14211 - drivers/bch: BCH character driver bch_ioctl() always returns -ENOTTY 14215 - drivers/bch: Fix 'Missing Unlock' in bchdev_driver.c. From Masayuki
|
/third_party/node/src/ |
D | node_url.cc | 1205 const char bch = buffer[n]; in Parse() local 1206 if (bch == ':') { in Parse() 1214 AppendOrEscape(&url->password, bch, USERINFO_ENCODE_SET); in Parse() 1216 AppendOrEscape(&url->username, bch, USERINFO_ENCODE_SET); in Parse()
|
/third_party/pcre2/pcre2/testdata/ |
D | testinput10 | 616 /\bch\b/utf,match_invalid_utf
|
D | testoutput10 | 1878 /\bch\b/utf,match_invalid_utf
|
/third_party/flutter/skia/third_party/externals/icu/source/data/misc/ |
D | likelySubtags.txt | 112 bch{"bch_Latn_ZZ"}
|
/third_party/skia/third_party/externals/icu/source/data/misc/ |
D | likelySubtags.txt | 116 bch{"bch_Latn_ZZ"}
|
D | langInfo.txt | 348 "bch","Latn","ZZ",
|
/third_party/icu/icu4c/source/data/misc/ |
D | likelySubtags.txt | 116 bch{"bch_Latn_ZZ"}
|
D | langInfo.txt | 348 "bch","Latn","ZZ",
|