/third_party/skia/third_party/externals/tint/src/reader/wgsl/ |
D | parser_impl_for_stmt_test.cc | 29 auto fl = p->for_stmt(); in TEST_F() local 31 EXPECT_FALSE(fl.errored); in TEST_F() 32 ASSERT_TRUE(fl.matched); in TEST_F() 33 EXPECT_EQ(fl->initializer, nullptr); in TEST_F() 34 EXPECT_EQ(fl->condition, nullptr); in TEST_F() 35 EXPECT_EQ(fl->continuing, nullptr); in TEST_F() 36 EXPECT_TRUE(fl->body->Empty()); in TEST_F() 42 auto fl = p->for_stmt(); in TEST_F() local 44 EXPECT_FALSE(fl.errored); in TEST_F() 45 ASSERT_TRUE(fl.matched); in TEST_F() [all …]
|
/third_party/mindspore/mindspore/ccsrc/fl/armour/cipher/ |
D | cipher_meta_storage.cc | 27 const fl::PBMetadata &clients_shares_pb_out = in GetClientSharesFromServer() 28 fl::server::DistributedMetadataStore::GetInstance().GetMetadata(list_name); in GetClientSharesFromServer() 29 const fl::ClientShares &clients_shares_pb = clients_shares_pb_out.client_shares(); in GetClientSharesFromServer() 33 const fl::SharesPb &shares_pb = iter->second; in GetClientSharesFromServer() 37 const fl::ClientShareStr &client_share_str_pb = shares_pb.clientsharestrs(index_shares); in GetClientSharesFromServer() 53 …const fl::PBMetadata &client_list_pb_out = fl::server::DistributedMetadataStore::GetInstance().Get… in GetClientListFromServer() 54 const fl::UpdateModelClientList &client_list_pb = client_list_pb_out.client_list(); in GetClientListFromServer() 68 const fl::PBMetadata &clients_keys_pb_out = in GetClientKeysFromServer() 69 fl::server::DistributedMetadataStore::GetInstance().GetMetadata(list_name); in GetClientKeysFromServer() 70 const fl::ClientKeys &clients_keys_pb = clients_keys_pb_out.client_keys(); in GetClientKeysFromServer() [all …]
|
D | cipher_keys.cc | 24 const std::shared_ptr<fl::server::FBBuilder> &fbb) { in GetKeys() 37 …cipher_init_->cipher_meta_storage_.GetClientKeysFromServer(fl::server::kCtxClientsKeys, &client_pu… in GetKeys() 56 …bool ret = cipher_init_->cipher_meta_storage_.UpdateClientToServer(fl::server::kCtxGetKeysClientLi… in GetKeys() 70 const std::shared_ptr<fl::server::FBBuilder> &fbb) { in ExchangeKeys() 85 mindspore::fl::PBMetadata device_metas = in ExchangeKeys() 86 fl::server::DistributedMetadataStore::GetInstance().GetMetadata(fl::server::kCtxDeviceMetas); in ExchangeKeys() 87 mindspore::fl::FLIdToDeviceMeta fl_id_to_meta = device_metas.device_metas(); in ExchangeKeys() 99 …cipher_init_->cipher_meta_storage_.GetClientListFromServer(fl::server::kCtxExChangeKeysClientList,… in ExchangeKeys() 100 …cipher_init_->cipher_meta_storage_.GetClientKeysFromServer(fl::server::kCtxClientsKeys, &client_pu… in ExchangeKeys() 123 …cipher_init_->cipher_meta_storage_.UpdateClientKeyToServer(fl::server::kCtxClientsKeys, exchange_k… in ExchangeKeys() [all …]
|
D | cipher_shares.cc | 24 … const std::shared_ptr<fl::server::FBBuilder> &share_secrets_resp_builder, in ShareSecrets() 46 …cipher_init_->cipher_meta_storage_.GetClientListFromServer(fl::server::kCtxGetKeysClientList, &get… in ShareSecrets() 48 cipher_init_->cipher_meta_storage_.GetClientListFromServer(fl::server::kCtxShareSecretsClientList, in ShareSecrets() 52 …cipher_init_->cipher_meta_storage_.GetClientSharesFromServer(fl::server::kCtxClientsEncryptedShare… in ShareSecrets() 80 …cipher_init_->cipher_meta_storage_.UpdateClientToServer(fl::server::kCtxShareSecretsClientList, fl… in ShareSecrets() 82 fl::server::kCtxClientsEncryptedShares, fl_id_src, encrypted_shares); in ShareSecrets() 98 … const std::shared_ptr<fl::server::FBBuilder> &fbb, const std::string &next_req_time) { in GetSecrets() 115 …cipher_init_->cipher_meta_storage_.GetClientSharesFromServer(fl::server::kCtxClientsEncryptedShare… in GetSecrets() 134 …cipher_init_->cipher_meta_storage_.UpdateClientToServer(fl::server::kCtxGetSecretsClientList, fl_i… in GetSecrets() 186 …const std::shared_ptr<fl::server::FBBuilder> &fbb, const schema::ResponseCode retcode, size_t iter… in BuildGetSecretsRsp() [all …]
|
/third_party/selinux/libselinux/src/ |
D | matchpathcon.c | 199 file_spec_t *prevfl, *fl; in matchpathcon_filespec_add() local 211 for (prevfl = &fl_head[h], fl = fl_head[h].next; fl; in matchpathcon_filespec_add() 212 prevfl = fl, fl = fl->next) { in matchpathcon_filespec_add() 213 if (ino == fl->ino) { in matchpathcon_filespec_add() 214 ret = lstat(fl->file, &sb); in matchpathcon_filespec_add() 216 fl->specind = specind; in matchpathcon_filespec_add() 217 free(fl->file); in matchpathcon_filespec_add() 218 fl->file = malloc(strlen(file) + 1); in matchpathcon_filespec_add() 219 if (!fl->file) in matchpathcon_filespec_add() 221 strcpy(fl->file, file); in matchpathcon_filespec_add() [all …]
|
D | selinux_restorecon.c | 423 file_spec_t *prevfl, *fl; in filespec_add() local 435 for (prevfl = &fl_head[h], fl = fl_head[h].next; fl; in filespec_add() 436 prevfl = fl, fl = fl->next) { in filespec_add() 437 if (ino == fl->ino) { in filespec_add() 438 ret = lstat64(fl->file, &sb); in filespec_add() 440 freecon(fl->con); in filespec_add() 441 free(fl->file); in filespec_add() 442 fl->file = strdup(file); in filespec_add() 443 if (!fl->file) in filespec_add() 445 fl->con = strdup(con); in filespec_add() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl20.c | 127 struct flock fl; in do_child() local 132 child_get(&fl); in do_child() 133 if (fcntl(fd, F_GETLK, &fl) < 0) { in do_child() 137 child_put(&fl); in do_child() 143 struct flock fl; in do_lock() local 145 fl.l_type = type; in do_lock() 146 fl.l_whence = whence; in do_lock() 147 fl.l_start = start; in do_lock() 148 fl.l_len = len; in do_lock() 149 return (fcntl(fd, cmd, &fl)); in do_lock() [all …]
|
D | fcntl19.c | 130 struct flock fl; in do_child() local 135 child_get(&fl); in do_child() 136 if (fcntl(fd, F_GETLK, &fl) < 0) in do_child() 138 child_put(&fl); in do_child() 144 struct flock fl; in do_lock() local 146 fl.l_type = type; in do_lock() 147 fl.l_whence = whence; in do_lock() 148 fl.l_start = start; in do_lock() 149 fl.l_len = len; in do_lock() 150 return (fcntl(fd, cmd, &fl)); in do_lock() [all …]
|
D | fcntl11.c | 116 struct flock fl; in do_child() local 121 child_get(&fl); in do_child() 122 if (fcntl(fd, F_GETLK, &fl) < 0) in do_child() 124 child_put(&fl); in do_child() 130 struct flock fl; in do_lock() local 132 fl.l_type = type; in do_lock() 133 fl.l_whence = whence; in do_lock() 134 fl.l_start = start; in do_lock() 135 fl.l_len = len; in do_lock() 136 return (fcntl(fd, cmd, &fl)); in do_lock() [all …]
|
D | fcntl21.c | 134 struct flock fl; in do_child() local 139 child_get(&fl); in do_child() 140 if (fcntl(fd, F_GETLK, &fl) < 0) { in do_child() 145 child_put(&fl); in do_child() 151 struct flock fl; in do_lock() local 153 fl.l_type = type; in do_lock() 154 fl.l_whence = whence; in do_lock() 155 fl.l_start = start; in do_lock() 156 fl.l_len = len; in do_lock() 157 return (fcntl(fd, cmd, &fl)); in do_lock() [all …]
|
/third_party/ffmpeg/libavfilter/x86/ |
D | vf_removegrain_init.c | 59 case 1: rg->fl[i] = ff_rg_fl_mode_1_sse2; break; in ff_removegrain_init_x86() 60 case 10: rg->fl[i] = ff_rg_fl_mode_10_sse2; break; in ff_removegrain_init_x86() 62 case 12: rg->fl[i] = ff_rg_fl_mode_11_12_sse2; break; in ff_removegrain_init_x86() 64 case 14: rg->fl[i] = ff_rg_fl_mode_13_14_sse2; break; in ff_removegrain_init_x86() 65 case 19: rg->fl[i] = ff_rg_fl_mode_19_sse2; break; in ff_removegrain_init_x86() 66 case 20: rg->fl[i] = ff_rg_fl_mode_20_sse2; break; in ff_removegrain_init_x86() 67 case 21: rg->fl[i] = ff_rg_fl_mode_21_sse2; break; in ff_removegrain_init_x86() 68 case 22: rg->fl[i] = ff_rg_fl_mode_22_sse2; break; in ff_removegrain_init_x86() 70 case 2: rg->fl[i] = ff_rg_fl_mode_2_sse2; break; in ff_removegrain_init_x86() 71 case 3: rg->fl[i] = ff_rg_fl_mode_3_sse2; break; in ff_removegrain_init_x86() [all …]
|
/third_party/mesa3d/src/util/ |
D | sparse_array.c | 218 util_sparse_array_free_list_init(struct util_sparse_array_free_list *fl, in util_sparse_array_free_list_init() argument 223 fl->head = sentinel; in util_sparse_array_free_list_init() 224 fl->arr = arr; in util_sparse_array_free_list_init() 225 fl->sentinel = sentinel; in util_sparse_array_free_list_init() 226 fl->next_offset = next_offset; in util_sparse_array_free_list_init() 236 util_sparse_array_free_list_push(struct util_sparse_array_free_list *fl, in util_sparse_array_free_list_push() argument 240 assert(items[0] != fl->sentinel); in util_sparse_array_free_list_push() 241 void *last_elem = util_sparse_array_get(fl->arr, items[0]); in util_sparse_array_free_list_push() 242 uint32_t *last_next = (uint32_t *)((char *)last_elem + fl->next_offset); in util_sparse_array_free_list_push() 245 assert(items[i] != fl->sentinel); in util_sparse_array_free_list_push() [all …]
|
/third_party/node/test/parallel/ |
D | test-event-emitter-listeners-side-effects.js | 30 let fl; // foo listeners variable 32 fl = e.listeners('foo'); 33 assert(Array.isArray(fl)); 34 assert.strictEqual(fl.length, 0); 39 fl = e.listeners('foo'); 41 assert(Array.isArray(fl)); 42 assert.strictEqual(fl.length, 1); 43 assert.strictEqual(fl[0], assert.fail); 48 fl = e.listeners('foo'); 55 assert(Array.isArray(fl)); [all …]
|
/third_party/ltp/tools/sparse/sparse-src/validation/backend/ |
D | function-ptr.c | 8 void arg(int a, int *p, int (*fb)(unsigned char), int (*fi)(int), int (*fl)(long), int (*fv)(void),… 9 void arg(int a, int *p, int (*fb)(unsigned char), int (*fi)(int), int (*fl)(long), int (*fv)(void),… in arg() 15 fl(a); in arg() 18 fl(123); in arg() 21 fl(123L); in arg() 24 fl(ival); in arg() 49 extern int (*fl)(long); 63 fl(a); in glb() 66 fl(123); in glb() 69 fl(123L); in glb() [all …]
|
/third_party/musl/libc-test/src/functional/ |
D | fcntl.c | 14 struct flock fl = {0}; in main() local 23 fl.l_type = F_WRLCK; in main() 24 fl.l_whence = SEEK_SET; in main() 25 fl.l_start = 0; in main() 26 fl.l_len = 0; in main() 27 TESTE(fcntl(fd, F_SETLK, &fl)==0); in main() 31 fl.l_type = F_RDLCK; in main() 32 _exit(fcntl(fd, F_SETLK, &fl)==0 || in main() 40 fl.l_type = F_WRLCK; in main() 41 _exit(fcntl(fd, F_GETLK, &fl) || fl.l_pid != getppid()); in main()
|
/third_party/libffi/testsuite/libffi.call/ |
D | return_fl.c | 10 static float return_fl(float fl) in return_fl() argument 12 return 2 * fl; in return_fl() 19 float fl, rfl; in main() local 22 values[0] = &fl; in main() 28 for (fl = -127.0; fl < 127; fl++) in main() 31 printf ("%f vs %f\n", rfl, return_fl(fl)); in main() 32 CHECK(rfl == 2 * fl); in main()
|
/third_party/python/Lib/turtledemo/ |
D | penrose.py | 26 fl = f * l 30 fd(fl) 32 fd(fl) 38 fl = f * l 42 fd(fl) 44 fd(fl) 55 fl = f * l 57 inflatedart(fl, n-1) 60 inflatekite(fl, n-1) 64 inflatekite(fl, n-1) [all …]
|
/third_party/boost/libs/lockfree/test/ |
D | freelist_test.cpp | 57 freelist_type fl(std::allocator<int>(), 8); in run_test() 66 dummy * allocated = fl.template construct<threadsafe, bounded>(); in run_test() 72 fl.template destruct<threadsafe>(d); in run_test() 76 nodes.insert(fl.template construct<threadsafe, bounded>()); in run_test() 79 fl.template destruct<threadsafe>(d); in run_test() 82 nodes.insert(fl.template construct<threadsafe, bounded>()); in run_test() 106 freelist_type fl(std::allocator<int>(), 8); in oom_test() 109 fl.template construct<threadsafe, bounded>(); in oom_test() 111 dummy * allocated = fl.template construct<threadsafe, bounded>(); in oom_test() 135 freelist_type fl; member [all …]
|
/third_party/ltp/testcases/kernel/syscalls/eventfd2/ |
D | eventfd2_02.c | 81 int fd, fl; in main() local 96 fl = fcntl(fd, F_GETFL); in main() 97 if (fl == -1) { in main() 100 if (fl & O_NONBLOCK) { in main() 109 fl = fcntl(fd, F_GETFL); in main() 110 if (fl == -1) { in main() 113 if ((fl & O_NONBLOCK) == 0) { in main()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/fl/ |
D | start_fl_job_kernel.h | 42 …if (!fl::worker::FLWorker::GetInstance().SendToServer(target_server_rank_, fbb_->GetBufferPointer(… in Launch() 67 fl::worker::FLWorker::GetInstance().set_fl_iteration_num(iteration); in Launch() 74 server_num_ = fl::worker::FLWorker::GetInstance().server_num(); in Init() 75 rank_id_ = fl::worker::FLWorker::GetInstance().rank_id(); in Init() 81 fl_name_ = fl::worker::FLWorker::GetInstance().fl_name(); in Init() 82 fl_id_ = fl::worker::FLWorker::GetInstance().fl_id(); in Init() 84 fl::worker::FLWorker::GetInstance().set_data_size(data_size_); in Init() 88 fbb_ = std::make_shared<fl::FBBuilder>(); in Init() 101 bool BuildStartFLJobReq(const std::shared_ptr<fl::FBBuilder> &fbb) { in BuildStartFLJobReq() 120 std::shared_ptr<fl::FBBuilder> fbb_;
|
/third_party/musl/porting/liteos_a/kernel/src/stdio/ |
D | vfprintf.c | 143 static void pad(FILE *f, char c, int w, int l, int fl) in pad() argument 146 if (fl & (LEFT_ADJ | ZERO_PAD) || l >= w) return; in pad() 185 static int fmt_fp(FILE *f, long double y, int w, int p, int fl, int t) in fmt_fp() argument 199 } else if (fl & MARK_POS) { in fmt_fp() 201 } else if (fl & PAD_POS) { in fmt_fp() 208 pad(f, ' ', w, 3+pl, fl&~ZERO_PAD); in fmt_fp() 211 pad(f, ' ', w, 3+pl, fl^LEFT_ADJ); in fmt_fp() 252 if (s-buf==1 && (y||p>0||(fl&ALT_FORM))) *s++='.'; in fmt_fp() 262 pad(f, ' ', w, pl+l, fl); in fmt_fp() 264 pad(f, '0', w, pl+l, fl^ZERO_PAD); in fmt_fp() [all …]
|
/third_party/musl/porting/liteos_m/kernel/src/stdio/ |
D | vfprintf.c | 143 static void pad(FILE *f, char c, int w, int l, int fl) in pad() argument 146 if (fl & (LEFT_ADJ | ZERO_PAD) || l >= w) return; in pad() 185 static int fmt_fp(FILE *f, long double y, int w, int p, int fl, int t) in fmt_fp() argument 200 } else if (fl & MARK_POS) { in fmt_fp() 202 } else if (fl & PAD_POS) { in fmt_fp() 209 pad(f, ' ', w, 3+pl, fl&~ZERO_PAD); in fmt_fp() 212 pad(f, ' ', w, 3+pl, fl^LEFT_ADJ); in fmt_fp() 253 if (s-buf==1 && (y||p>0||(fl&ALT_FORM))) *s++='.'; in fmt_fp() 263 pad(f, ' ', w, pl+l, fl); in fmt_fp() 265 pad(f, '0', w, pl+l, fl^ZERO_PAD); in fmt_fp() [all …]
|
/third_party/musl/src/stdio/ |
D | vfprintf.c | 138 static void pad(FILE *f, char c, int w, int l, int fl) in pad() argument 141 if (fl & (LEFT_ADJ | ZERO_PAD) || l >= w) return; in pad() 180 static int fmt_fp(FILE *f, long double y, int w, int p, int fl, int t) in fmt_fp() argument 194 } else if (fl & MARK_POS) { in fmt_fp() 196 } else if (fl & PAD_POS) { in fmt_fp() 203 pad(f, ' ', w, 3+pl, fl&~ZERO_PAD); in fmt_fp() 206 pad(f, ' ', w, 3+pl, fl^LEFT_ADJ); in fmt_fp() 247 if (s-buf==1 && (y||p>0||(fl&ALT_FORM))) *s++='.'; in fmt_fp() 257 pad(f, ' ', w, pl+l, fl); in fmt_fp() 259 pad(f, '0', w, pl+l, fl^ZERO_PAD); in fmt_fp() [all …]
|
/third_party/musl/porting/uniproton/kernel/src/stdio/ |
D | vfprintf.c | 143 static void pad(FILE *f, char c, int w, int l, int fl) in pad() argument 146 if (fl & (LEFT_ADJ | ZERO_PAD) || l >= w) return; in pad() 185 static int fmt_fp(FILE *f, long double y, int w, int p, int fl, int t) in fmt_fp() argument 200 } else if (fl & MARK_POS) { in fmt_fp() 202 } else if (fl & PAD_POS) { in fmt_fp() 209 pad(f, ' ', w, 3+pl, fl&~ZERO_PAD); in fmt_fp() 212 pad(f, ' ', w, 3+pl, fl^LEFT_ADJ); in fmt_fp() 253 if (s-buf==1 && (y||p>0||(fl&ALT_FORM))) *s++='.'; in fmt_fp() 263 pad(f, ' ', w, pl+l, fl); in fmt_fp() 265 pad(f, '0', w, pl+l, fl^ZERO_PAD); in fmt_fp() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/inotify_init/ |
D | inotify_init1_02.c | 120 int fd, fl; in main() local 140 fl = fcntl(fd, F_GETFL); in main() 141 if (fl == -1) { in main() 145 if (fl & O_NONBLOCK) { in main() 157 fl = fcntl(fd, F_GETFL); in main() 158 if (fl == -1) { in main() 162 if ((fl & O_NONBLOCK) == 0) { in main()
|