/third_party/ntfs-3g/libntfs-3g/ |
H A D | ea.c | 490 } attr; in ntfs_ea_set_wsl_not_symlink() local 494 memset(&attr, 0, sizeof(attr)); in ntfs_ea_set_wsl_not_symlink() 496 attr.mod.base.next_entry_offset in ntfs_ea_set_wsl_not_symlink() 497 = const_cpu_to_le32(sizeof(attr.mod)); in ntfs_ea_set_wsl_not_symlink() 498 attr.mod.base.flags = 0; in ntfs_ea_set_wsl_not_symlink() 499 attr.mod.base.name_length = sizeof(lxmod) - 1; in ntfs_ea_set_wsl_not_symlink() 500 attr.mod.base.value_length = const_cpu_to_le16(sizeof(mode)); in ntfs_ea_set_wsl_not_symlink() 501 memcpy(attr.mod.name, lxmod, sizeof(lxmod)); in ntfs_ea_set_wsl_not_symlink() 502 memcpy(attr in ntfs_ea_set_wsl_not_symlink() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/declaration/piece/ |
H A D | piece_declaration.cpp | 100 bool PieceDeclaration::SetSpecializedAttr(const std::pair<std::string, std::string>& attr) in SetSpecializedAttr() argument 102 if (attr.first == DOM_PIECE_CONTENT) { in SetSpecializedAttr() 103 hasContent_ = !attr.second.empty(); in SetSpecializedAttr() 104 SetContent(attr.second); in SetSpecializedAttr() 106 } else if (attr.first == DOM_PIECE_ICON) { in SetSpecializedAttr() 107 SetIcon(attr.second); in SetSpecializedAttr() 109 } else if (attr.first == DOM_PIECE_CLOSABLE) { in SetSpecializedAttr() 110 SetShowDelete(StringToBool(attr.second)); in SetSpecializedAttr()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/ |
H A D | svg_ellipse.cpp | 71 [](const std::string& val, SvgEllipseAttribute& attr) { in AsPath() 72 attr.cx = SvgAttributesParser::ParseDimension(val); in AsPath() 75 [](const std::string& val, SvgEllipseAttribute& attr) { in AsPath() 76 attr.cy = SvgAttributesParser::ParseDimension(val); in AsPath() 79 [](const std::string& val, SvgEllipseAttribute& attr) { in AsPath() 80 attr.rx = SvgAttributesParser::ParseDimension(val); in AsPath() 83 [](const std::string& val, SvgEllipseAttribute& attr) { in AsPath() 84 attr.ry = SvgAttributesParser::ParseDimension(val); in AsPath()
|
/foundation/multimedia/media_foundation/src/osal/task/pthread/ |
H A D | thread.cpp | 75 pthread_attr_t attr; in CreateThread() local 76 pthread_attr_init(&attr); in CreateThread() 77 pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE); in CreateThread() 80 pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED); in CreateThread() 81 pthread_attr_setschedpolicy(&attr, SCHED_RR); in CreateThread() 84 pthread_attr_setschedparam(&attr, &sched); in CreateThread() 86 pthread_attr_setstacksize(&attr, THREAD_STACK_SIZE); in CreateThread() 89 int rtv = pthread_create(&id_, &attr, Thread::Run, this); in CreateThread()
|
/foundation/multimedia/media_foundation/engine/foundation/osal/thread/ |
H A D | thread.cpp | 66 pthread_attr_t attr; in CreateThread() local 67 pthread_attr_init(&attr); in CreateThread() 68 pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE); in CreateThread() 71 pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED); in CreateThread() 72 pthread_attr_setschedpolicy(&attr, SCHED_RR); in CreateThread() 75 pthread_attr_setschedparam(&attr, &sched); in CreateThread() 77 pthread_attr_setstacksize(&attr, THREAD_STACK_SIZE); in CreateThread() 80 int rtv = pthread_create(&id_, &attr, Thread::Run, state_.get()); in CreateThread()
|
/foundation/multimedia/av_codec/test/unittest/video_test/vcodec_framework_test/stable_sample/sample/decoder/include/ |
H A D | vdec_sample.h | 60 int32_t PushInputData(uint32_t index, OH_AVCodecBufferAttr attr = {0, 0, 0, 0}); 64 int32_t HandleInputFrame(uint32_t &index, OH_AVCodecBufferAttr &attr); 65 int32_t HandleOutputFrame(uint32_t &index, OH_AVCodecBufferAttr &attr); 66 int32_t HandleInputFrame(OH_AVMemory *data, OH_AVCodecBufferAttr &attr); 67 int32_t HandleOutputFrame(OH_AVMemory *data, OH_AVCodecBufferAttr &attr); 94 int32_t SetAVBufferAttr(OH_AVBuffer *avBuffer, OH_AVCodecBufferAttr &attr); 95 int32_t HandleInputFrameInner(uint8_t *addr, OH_AVCodecBufferAttr &attr); 96 int32_t HandleOutputFrameInner(uint8_t *addr, OH_AVCodecBufferAttr &attr);
|
/foundation/multimedia/av_codec/test/unittest/video_test/vcodec_framework_test/stable_sample/sample/encoder/include/ |
H A D | venc_sample.h | 62 int32_t PushInputData(uint32_t index, OH_AVCodecBufferAttr attr = {0, 0, 0, 0}); 67 int32_t HandleInputFrame(uint32_t &index, OH_AVCodecBufferAttr &attr); 68 int32_t HandleOutputFrame(uint32_t &index, OH_AVCodecBufferAttr &attr); 69 int32_t HandleInputFrame(OH_AVMemory *data, OH_AVCodecBufferAttr &attr); 70 int32_t HandleOutputFrame(OH_AVMemory *data, OH_AVCodecBufferAttr &attr); 94 int32_t SetAVBufferAttr(OH_AVBuffer *avBuffer, OH_AVCodecBufferAttr &attr); 95 int32_t HandleInputFrameInner(uint8_t *addr, OH_AVCodecBufferAttr &attr); 96 int32_t HandleOutputFrameInner(uint8_t *addr, OH_AVCodecBufferAttr &attr);
|
/foundation/resourceschedule/ffrt/test/ut/testcase/ |
H A D | ut_coroutine.cpp | 98 ffrt_task_attr_t attr; in HWTEST_F() local 99 ffrt_task_attr_init(&attr); in HWTEST_F() 100 ffrt_submit_coroutine((void *)&co1, exec_stackless_coroutine, destroy_stackless_coroutine, NULL, NULL, &attr); in HWTEST_F() 101 ffrt_submit_coroutine((void *)&co2, exec_stackless_coroutine, destroy_stackless_coroutine, NULL, NULL, &attr); in HWTEST_F() 114 ffrt_task_attr_t attr; in HWTEST_F() local 115 ffrt_task_attr_init(&attr); in HWTEST_F() 118 ffrt_submit_coroutine(nullptr, nullptr, nullptr, NULL, NULL, &attr); in HWTEST_F() 119 ffrt_submit_coroutine(nullptr, nullptr, nullptr, NULL, NULL, &attr); in HWTEST_F()
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/pmu/ |
H A D | event.c | 16 int perf_event_open(struct perf_event_attr *attr, pid_t pid, int cpu, in perf_event_open() argument 19 return syscall(__NR_perf_event_open, attr, pid, cpu, in perf_event_open() 29 e->attr.type = type; in event_init_opts() 30 e->attr.config = config; in event_init_opts() 31 e->attr.size = sizeof(e->attr); in event_init_opts() 33 e->attr.read_format = PERF_FORMAT_TOTAL_TIME_ENABLED | \ in event_init_opts() 54 e->fd = perf_event_open(&e->attr, pid, cpu, group_fd, 0); in event_open_with_options()
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | event_attributes_test.c | 36 event.attr.exclusive = 0; in event_attributes() 43 event.attr.freq = 1; in event_attributes() 50 event.attr.sample_period = 1; in event_attributes() 57 event.attr.enable_on_exec = 1; in event_attributes() 64 event.attr.inherit = 1; in event_attributes() 96 leader.attr.config &= ~(1ull << 63); in event_attributes() 110 leader.attr.exclusive = 0; in event_attributes() 117 leader.attr.pinned = 0; in event_attributes()
|
/kernel/linux/linux-5.10/drivers/soc/fsl/dpio/ |
H A D | dpio.c | 132 * @attr: Returned object's attributes 139 struct dpio_attr *attr) in dpio_get_attributes() 156 attr->id = le32_to_cpu(dpio_rsp->id); in dpio_get_attributes() 157 attr->qbman_portal_id = le16_to_cpu(dpio_rsp->qbman_portal_id); in dpio_get_attributes() 158 attr->num_priorities = dpio_rsp->num_priorities; in dpio_get_attributes() 159 attr->channel_mode = dpio_rsp->channel_mode & DPIO_CHANNEL_MODE_MASK; in dpio_get_attributes() 160 attr->qbman_portal_ce_offset = in dpio_get_attributes() 162 attr->qbman_portal_ci_offset = in dpio_get_attributes() 164 attr->qbman_version = le32_to_cpu(dpio_rsp->qbman_version); in dpio_get_attributes() 136 dpio_get_attributes(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, struct dpio_attr *attr) dpio_get_attributes() argument
|
/kernel/linux/linux-5.10/drivers/soc/versatile/ |
H A D | soc-integrator.c | 60 manufacturer_show(struct device *dev, struct device_attribute *attr, char *buf) in manufacturer_show() argument 68 arch_show(struct device *dev, struct device_attribute *attr, char *buf) in arch_show() argument 76 fpga_show(struct device *dev, struct device_attribute *attr, char *buf) in fpga_show() argument 84 build_show(struct device *dev, struct device_attribute *attr, char *buf) in build_show() argument 92 &dev_attr_manufacturer.attr, 93 &dev_attr_arch.attr, 94 &dev_attr_fpga.attr, 95 &dev_attr_build.attr,
|
H A D | soc-realview.c | 43 manufacturer_show(struct device *dev, struct device_attribute *attr, char *buf) in manufacturer_show() argument 51 board_show(struct device *dev, struct device_attribute *attr, char *buf) in board_show() argument 59 fpga_show(struct device *dev, struct device_attribute *attr, char *buf) in fpga_show() argument 67 build_show(struct device *dev, struct device_attribute *attr, char *buf) in build_show() argument 75 &dev_attr_manufacturer.attr, 76 &dev_attr_board.attr, 77 &dev_attr_fpga.attr, 78 &dev_attr_build.attr,
|
/kernel/linux/linux-6.6/include/net/ |
H A D | tcx.h | 163 int tcx_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog); 164 int tcx_link_attach(const union bpf_attr *attr, struct bpf_prog *prog); 165 int tcx_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog); 168 int tcx_prog_query(const union bpf_attr *attr, 178 static inline int tcx_prog_attach(const union bpf_attr *attr, in tcx_prog_attach() argument 184 static inline int tcx_link_attach(const union bpf_attr *attr, in tcx_link_attach() argument 190 static inline int tcx_prog_detach(const union bpf_attr *attr, in tcx_prog_detach() argument 196 static inline int tcx_prog_query(const union bpf_attr *attr, in tcx_prog_query() argument
|
/kernel/linux/linux-6.6/drivers/soc/versatile/ |
H A D | soc-integrator.c | 60 manufacturer_show(struct device *dev, struct device_attribute *attr, char *buf) in manufacturer_show() argument 68 arch_show(struct device *dev, struct device_attribute *attr, char *buf) in arch_show() argument 76 fpga_show(struct device *dev, struct device_attribute *attr, char *buf) in fpga_show() argument 84 build_show(struct device *dev, struct device_attribute *attr, char *buf) in build_show() argument 92 &dev_attr_manufacturer.attr, 93 &dev_attr_arch.attr, 94 &dev_attr_fpga.attr, 95 &dev_attr_build.attr,
|
H A D | soc-realview.c | 43 manufacturer_show(struct device *dev, struct device_attribute *attr, char *buf) in manufacturer_show() argument 51 board_show(struct device *dev, struct device_attribute *attr, char *buf) in board_show() argument 59 fpga_show(struct device *dev, struct device_attribute *attr, char *buf) in fpga_show() argument 67 build_show(struct device *dev, struct device_attribute *attr, char *buf) in build_show() argument 75 &dev_attr_manufacturer.attr, 76 &dev_attr_board.attr, 77 &dev_attr_fpga.attr, 78 &dev_attr_build.attr,
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | find_vma.c | 27 struct perf_event_attr attr = {0}; in open_pe() local 31 attr.size = sizeof(attr); in open_pe() 32 attr.type = PERF_TYPE_HARDWARE; in open_pe() 33 attr.config = PERF_COUNT_HW_CPU_CYCLES; in open_pe() 34 attr.freq = 1; in open_pe() 35 attr.sample_freq = 1000; in open_pe() 36 pfd = syscall(__NR_perf_event_open, &attr, 0, -1, -1, PERF_FLAG_FD_CLOEXEC); in open_pe()
|
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | event_attributes_test.c | 36 event.attr.exclusive = 0; in event_attributes() 43 event.attr.freq = 1; in event_attributes() 50 event.attr.sample_period = 1; in event_attributes() 57 event.attr.enable_on_exec = 1; in event_attributes() 64 event.attr.inherit = 1; in event_attributes() 96 leader.attr.config &= ~(1ull << 63); in event_attributes() 110 leader.attr.exclusive = 0; in event_attributes() 117 leader.attr.pinned = 0; in event_attributes()
|
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/full/ |
H A D | It_posix_pthread_007.c | 50 pthread_attr_t attr; in Testcase() local 60 ret = pthread_attr_init(&attr); in Testcase() 64 ret = pthread_create(NULL, &attr, PthreadF01, NULL); in Testcase() 76 ret = pthread_create(&newTh, &attr, NULL, (void *)8); // 8, test for invalid param. in Testcase() 79 ret = pthread_create(&newTh, &attr, PthreadF01, NULL); in Testcase() 89 ret = pthread_create(&newTh, &attr, PthreadF01, (void *)&cc); in Testcase() 98 ret = pthread_create(&newTh, &attr, PthreadF01, (void *)str); in Testcase() 108 ret = pthread_attr_destroy(&attr); in Testcase()
|
H A D | It_posix_pthread_188.c | 63 pthread_attr_t attr; in Testcase() local 73 ret = pthread_attr_init(&attr); in Testcase() 77 ret = pthread_attr_setschedpolicy(&attr, g_pthreadSchedPolicy); in Testcase() 81 ret = pthread_attr_setschedpolicy(&attr, g_pthreadSchedPolicy); in Testcase() 85 ret = pthread_attr_setinheritsched(&attr, g_pthreadSchedInherit); in Testcase() 90 ret = pthread_attr_setschedparam(&attr, &schedparam); in Testcase() 94 ret = pthread_create(&thread, &attr, PthreadF01, ¶mTest); in Testcase() 103 ret = pthread_attr_destroy(&attr); in Testcase()
|
/third_party/curl/docs/examples/ |
H A D | htmltidy.c | 54 TidyAttr attr; in dumpNode() local 57 for(attr = tidyAttrFirst(child); attr; attr = tidyAttrNext(attr) ) { in dumpNode() 58 printf("%s", tidyAttrName(attr)); in dumpNode() 59 tidyAttrValue(attr)?printf("=\"%s\" ", in dumpNode() 60 tidyAttrValue(attr)):printf(" "); in dumpNode()
|
/third_party/ltp/testcases/kernel/syscalls/bpf/ |
H A D | bpf_prog05.c | 62 static union bpf_attr *attr; variable 83 bpf_init_prog_attr(attr, prog_insn, sizeof(prog_insn), log, BUFSIZE); in ensure_ptr_arithmetic() 85 ret = TST_RETRY_FUNC(bpf(BPF_PROG_LOAD, attr, sizeof(*attr)), in ensure_ptr_arithmetic() 141 bpf_init_prog_attr(attr, prog_insn, sizeof(prog_insn), log, BUFSIZE); in load_prog() 143 return bpf_load_prog(attr, log); in load_prog() 206 {&attr, .size = sizeof(*attr)},
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/ |
H A D | 2-1.c | 18 * 3/13/03 - Added fix from Gregoire Pichon for specifying an attr 59 struct mq_attr attr; in main() local 78 attr.mq_msgsize = BUFFER; in main() 79 attr.mq_maxmsg = BUFFER; in main() 80 childqueue = mq_open(qname, O_RDWR, S_IRUSR | S_IWUSR, &attr); in main() 104 struct mq_attr attr; in main() local 106 attr.mq_msgsize = BUFFER; in main() 107 attr.mq_maxmsg = BUFFER; in main() 109 S_IRUSR | S_IWUSR, &attr); in main()
|
H A D | 9-2.c | 15 * 3/13/03 - Added fix from Gregoire Pichon for specifying an attr 55 struct mq_attr attr; in main() local 75 attr.mq_msgsize = BUFFER; in main() 76 attr.mq_maxmsg = BUFFER; in main() 78 S_IRUSR | S_IWUSR, &attr); in main() 113 struct mq_attr attr; in main() local 117 attr.mq_msgsize = BUFFER; in main() 118 attr.mq_maxmsg = BUFFER; in main() 120 S_IRUSR | S_IWUSR, &attr); in main()
|
H A D | 8-2.c | 15 * 3/13/03 - Added fix from Gregoire Pichon for specifying an attr 55 struct mq_attr attr; in main() local 75 attr.mq_msgsize = BUFFER; in main() 76 attr.mq_maxmsg = BUFFER; in main() 77 woqueue = mq_open(qname, O_WRONLY, S_IRUSR | S_IWUSR, &attr); in main() 110 struct mq_attr attr; in main() local 114 attr.mq_msgsize = BUFFER; in main() 115 attr.mq_maxmsg = BUFFER; in main() 117 S_IRUSR | S_IWUSR, &attr); in main()
|