/foundation/multimedia/av_codec/test/nativedemo/e2e_demo/ |
H A D | avcodec_e2e_demo.cpp | 72 OH_AVCodecBufferAttr attr; in OnDecInputBufferAvailable() local 73 OH_AVBuffer_GetBufferAttr(buffer, &attr); in OnDecInputBufferAvailable() 74 if (attr.size > 0) { in OnDecInputBufferAvailable() 75 fwrite(data, attr.size, 1, demuxerOutFp); in OnDecInputBufferAvailable() 84 OH_AVCodecBufferAttr attr; in OnDecOutputBufferAvailable() local 85 OH_AVBuffer_GetBufferAttr(buffer, &attr); in OnDecOutputBufferAvailable() 86 if (attr.flags & AVCODEC_BUFFER_FLAGS_EOS) { in OnDecOutputBufferAvailable() 109 OH_AVCodecBufferAttr attr; in OnEncOutputBufferAvailable() local 110 OH_AVBuffer_GetBufferAttr(buffer, &attr); in OnEncOutputBufferAvailable() 111 if (attr in OnEncOutputBufferAvailable() 225 OH_AVCodecBufferAttr attr; WriteAudioTrack() local [all...] |
/kernel/linux/linux-5.10/arch/powerpc/perf/ |
H A D | power9-pmu.c | 228 &format_attr_event.attr, 229 &format_attr_pmcxsel.attr, 230 &format_attr_mark.attr, 231 &format_attr_combine.attr, 232 &format_attr_unit.attr, 233 &format_attr_pmc.attr, 234 &format_attr_cache_sel.attr, 235 &format_attr_sample_mode.attr, 236 &format_attr_thresh_sel.attr, 237 &format_attr_thresh_stop.attr, [all...] |
/kernel/linux/linux-5.10/drivers/accessibility/speakup/ |
H A D | speakup_dectlk.c | 92 &caps_start_attribute.attr, 93 &caps_stop_attribute.attr, 94 &pitch_attribute.attr, 95 &inflection_attribute.attr, 96 &punct_attribute.attr, 97 &rate_attribute.attr, 98 &voice_attribute.attr, 99 &vol_attribute.attr, 100 &delay_time_attribute.attr, 101 &direct_attribute.attr, [all...] |
/kernel/linux/linux-6.6/arch/arm64/kvm/ |
H A D | vgic-sys-reg-v3.c | 333 static u64 attr_to_id(u64 attr) in attr_to_id() argument 335 return ARM64_SYS_REG(FIELD_GET(KVM_REG_ARM_VGIC_SYSREG_OP0_MASK, attr), in attr_to_id() 336 FIELD_GET(KVM_REG_ARM_VGIC_SYSREG_OP1_MASK, attr), in attr_to_id() 337 FIELD_GET(KVM_REG_ARM_VGIC_SYSREG_CRN_MASK, attr), in attr_to_id() 338 FIELD_GET(KVM_REG_ARM_VGIC_SYSREG_CRM_MASK, attr), in attr_to_id() 339 FIELD_GET(KVM_REG_ARM_VGIC_SYSREG_OP2_MASK, attr)); in attr_to_id() 342 int vgic_v3_has_cpu_sysregs_attr(struct kvm_vcpu *vcpu, struct kvm_device_attr *attr) in vgic_v3_has_cpu_sysregs_attr() argument 344 if (get_reg_by_id(attr_to_id(attr->attr), gic_v3_icc_reg_descs, in vgic_v3_has_cpu_sysregs_attr() 352 struct kvm_device_attr *attr, in vgic_v3_cpu_sysregs_uaccess() 351 vgic_v3_cpu_sysregs_uaccess(struct kvm_vcpu *vcpu, struct kvm_device_attr *attr, bool is_write) vgic_v3_cpu_sysregs_uaccess() argument [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/ |
H A D | rxe_loc.h | 11 void rxe_init_av(struct rdma_ah_attr *attr, struct rxe_av *av); 13 int rxe_av_chk_attr(struct rxe_dev *rxe, struct rdma_ah_attr *attr); 16 struct rdma_ah_attr *attr); 18 void rxe_av_to_attr(struct rxe_av *av, struct rdma_ah_attr *attr); 20 void rxe_av_fill_ip_info(struct rxe_av *av, struct rdma_ah_attr *attr); 134 struct ib_qp_attr *attr, int mask); 136 int rxe_qp_from_attr(struct rxe_qp *qp, struct ib_qp_attr *attr, 139 int rxe_qp_to_attr(struct rxe_qp *qp, struct ib_qp_attr *attr, int mask); 159 return qp->attr.qp_state; in qp_state() 165 return qp->attr in qp_mtu() [all...] |
/kernel/linux/linux-5.10/drivers/hwmon/ |
H A D | max197.c | 92 struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); in max197_show_range() local 93 int channel = attr->index; in max197_show_range() 94 bool is_min = attr->nr; in max197_show_range() 120 struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); in max197_store_range() local 121 int channel = attr->index; in max197_store_range() 122 bool is_min = attr->nr; in max197_store_range() 175 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in max197_show_input() local 176 int channel = attr->index; in max197_show_input() 208 static ssize_t name_show(struct device *dev, struct device_attribute *attr, in name_show() argument 228 &sensor_dev_attr_in##chan##_input.dev_attr.attr, \ [all...] |
/kernel/linux/linux-5.10/drivers/usb/misc/ |
H A D | cytherm.c | 67 static ssize_t brightness_show(struct device *dev, struct device_attribute *attr, char *buf) in brightness_show() argument 75 static ssize_t brightness_store(struct device *dev, struct device_attribute *attr, const char *buf, in brightness_store() argument 116 static ssize_t temp_show(struct device *dev, struct device_attribute *attr, char *buf) in temp_show() argument 153 static ssize_t button_show(struct device *dev, struct device_attribute *attr, char *buf) in button_show() argument 183 static ssize_t port0_show(struct device *dev, struct device_attribute *attr, char *buf) in port0_show() argument 207 static ssize_t port0_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) in port0_store() argument 238 static ssize_t port1_show(struct device *dev, struct device_attribute *attr, char *buf) in port1_show() argument 262 static ssize_t port1_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) in port1_store() argument 294 &dev_attr_brightness.attr, 295 &dev_attr_temp.attr, [all...] |
/kernel/linux/linux-5.10/drivers/media/rc/ |
H A D | bpf-lirc.c | 244 int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog) in lirc_prog_attach() argument 249 if (attr->attach_flags) in lirc_prog_attach() 252 rcdev = rc_dev_get_from_fd(attr->target_fd, true); in lirc_prog_attach() 263 int lirc_prog_detach(const union bpf_attr *attr) in lirc_prog_detach() argument 269 if (attr->attach_flags) in lirc_prog_detach() 272 prog = bpf_prog_get_type(attr->attach_bpf_fd, in lirc_prog_detach() 277 rcdev = rc_dev_get_from_fd(attr->target_fd, true); in lirc_prog_detach() 291 int lirc_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr) in lirc_prog_query() argument 293 __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids); in lirc_prog_query() 299 if (attr in lirc_prog_query() [all...] |
/kernel/linux/linux-5.10/drivers/nvdimm/ |
H A D | btt_devs.c | 41 struct device_attribute *attr, char *buf) in sector_size_show() 49 struct device_attribute *attr, const char *buf, size_t len) in sector_size_store() 68 struct device_attribute *attr, char *buf) in uuid_show() 78 struct device_attribute *attr, const char *buf, size_t len) in uuid_store() 94 struct device_attribute *attr, char *buf) in namespace_show() 107 struct device_attribute *attr, const char *buf, size_t len) in namespace_store() 125 struct device_attribute *attr, char *buf) in size_show() 144 struct device_attribute *attr, char *buf) in log_zero_flags_show() 151 &dev_attr_sector_size.attr, 152 &dev_attr_namespace.attr, 40 sector_size_show(struct device *dev, struct device_attribute *attr, char *buf) sector_size_show() argument 48 sector_size_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) sector_size_store() argument 67 uuid_show(struct device *dev, struct device_attribute *attr, char *buf) uuid_show() argument 77 uuid_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) uuid_store() argument 93 namespace_show(struct device *dev, struct device_attribute *attr, char *buf) namespace_show() argument 106 namespace_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) namespace_store() argument 124 size_show(struct device *dev, struct device_attribute *attr, char *buf) size_show() argument 143 log_zero_flags_show(struct device *dev, struct device_attribute *attr, char *buf) log_zero_flags_show() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/rc/ |
H A D | bpf-lirc.c | 248 int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog) in lirc_prog_attach() argument 253 if (attr->attach_flags) in lirc_prog_attach() 256 rcdev = rc_dev_get_from_fd(attr->target_fd, true); in lirc_prog_attach() 267 int lirc_prog_detach(const union bpf_attr *attr) in lirc_prog_detach() argument 273 if (attr->attach_flags) in lirc_prog_detach() 276 prog = bpf_prog_get_type(attr->attach_bpf_fd, in lirc_prog_detach() 281 rcdev = rc_dev_get_from_fd(attr->target_fd, true); in lirc_prog_detach() 295 int lirc_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr) in lirc_prog_query() argument 297 __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids); in lirc_prog_query() 303 if (attr in lirc_prog_query() [all...] |
/kernel/linux/linux-6.6/drivers/accessibility/speakup/ |
H A D | speakup_decext.c | 99 &caps_start_attribute.attr, 100 &caps_stop_attribute.attr, 101 &pitch_attribute.attr, 102 &inflection_attribute.attr, 103 &punct_attribute.attr, 104 &rate_attribute.attr, 105 &voice_attribute.attr, 106 &vol_attribute.attr, 107 &delay_time_attribute.attr, 108 &direct_attribute.attr, [all...] |
/kernel/linux/linux-6.6/drivers/usb/misc/ |
H A D | cytherm.c | 67 static ssize_t brightness_show(struct device *dev, struct device_attribute *attr, char *buf) in brightness_show() argument 75 static ssize_t brightness_store(struct device *dev, struct device_attribute *attr, const char *buf, in brightness_store() argument 116 static ssize_t temp_show(struct device *dev, struct device_attribute *attr, char *buf) in temp_show() argument 153 static ssize_t button_show(struct device *dev, struct device_attribute *attr, char *buf) in button_show() argument 183 static ssize_t port0_show(struct device *dev, struct device_attribute *attr, char *buf) in port0_show() argument 207 static ssize_t port0_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) in port0_store() argument 238 static ssize_t port1_show(struct device *dev, struct device_attribute *attr, char *buf) in port1_show() argument 262 static ssize_t port1_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) in port1_store() argument 294 &dev_attr_brightness.attr, 295 &dev_attr_temp.attr, [all...] |
/kernel/linux/linux-6.6/drivers/nvdimm/ |
H A D | btt_devs.c | 40 struct device_attribute *attr, char *buf) in sector_size_show() 48 struct device_attribute *attr, const char *buf, size_t len) in sector_size_store() 67 struct device_attribute *attr, char *buf) in uuid_show() 77 struct device_attribute *attr, const char *buf, size_t len) in uuid_store() 93 struct device_attribute *attr, char *buf) in namespace_show() 106 struct device_attribute *attr, const char *buf, size_t len) in namespace_store() 124 struct device_attribute *attr, char *buf) in size_show() 143 struct device_attribute *attr, char *buf) in log_zero_flags_show() 150 &dev_attr_sector_size.attr, 151 &dev_attr_namespace.attr, 39 sector_size_show(struct device *dev, struct device_attribute *attr, char *buf) sector_size_show() argument 47 sector_size_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) sector_size_store() argument 66 uuid_show(struct device *dev, struct device_attribute *attr, char *buf) uuid_show() argument 76 uuid_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) uuid_store() argument 92 namespace_show(struct device *dev, struct device_attribute *attr, char *buf) namespace_show() argument 105 namespace_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) namespace_store() argument 123 size_show(struct device *dev, struct device_attribute *attr, char *buf) size_show() argument 142 log_zero_flags_show(struct device *dev, struct device_attribute *attr, char *buf) log_zero_flags_show() argument [all...] |
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | max197.c | 92 struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); in max197_show_range() local 93 int channel = attr->index; in max197_show_range() 94 bool is_min = attr->nr; in max197_show_range() 120 struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); in max197_store_range() local 121 int channel = attr->index; in max197_store_range() 122 bool is_min = attr->nr; in max197_store_range() 175 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in max197_show_input() local 176 int channel = attr->index; in max197_show_input() 208 static ssize_t name_show(struct device *dev, struct device_attribute *attr, in name_show() argument 228 &sensor_dev_attr_in##chan##_input.dev_attr.attr, \ [all...] |
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nf_bpf_link.c | 177 static int bpf_nf_check_pf_and_hooks(const union bpf_attr *attr) in bpf_nf_check_pf_and_hooks() argument 181 switch (attr->link_create.netfilter.pf) { in bpf_nf_check_pf_and_hooks() 184 if (attr->link_create.netfilter.hooknum >= NF_INET_NUMHOOKS) in bpf_nf_check_pf_and_hooks() 191 if (attr->link_create.netfilter.flags & ~BPF_F_NETFILTER_IP_DEFRAG) in bpf_nf_check_pf_and_hooks() 195 prio = attr->link_create.netfilter.priority; in bpf_nf_check_pf_and_hooks() 200 else if ((attr->link_create.netfilter.flags & BPF_F_NETFILTER_IP_DEFRAG) && in bpf_nf_check_pf_and_hooks() 207 int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) in bpf_nf_link_attach() argument 214 if (attr->link_create.flags) in bpf_nf_link_attach() 217 err = bpf_nf_check_pf_and_hooks(attr); in bpf_nf_link_attach() 231 link->hook_ops.pf = attr in bpf_nf_link_attach() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/declaration/svg/ |
H A D | svg_text_declaration.cpp | 35 bool SvgTextDeclaration::SetSpecializedAttr(const std::pair<std::string, std::string>& attr) in SetSpecializedAttr() argument 37 return SetSpecializedValue(attr); in SetSpecializedAttr() 45 bool SvgTextDeclaration::SetSpecializedValue(const std::pair<std::string, std::string>& attr) in SetSpecializedValue() argument 76 auto attrIter = BinarySearchFindIndex(attrs, ArraySize(attrs), attr.first.c_str()); in SetSpecializedValue() 78 attrs[attrIter].value(attr.second, *this); in SetSpecializedValue() 81 return SvgBaseDeclaration::SetPresentationAttr(attr); in SetSpecializedValue()
|
H A D | svg_rect_declaration.cpp | 35 bool SvgRectDeclaration::SetSpecializedAttr(const std::pair<std::string, std::string>& attr) in SetSpecializedAttr() argument 37 return SetSpecializedValue(attr); in SetSpecializedAttr() 45 bool SvgRectDeclaration::SetSpecializedValue(const std::pair<std::string, std::string>& attr) in SetSpecializedValue() argument 73 auto attrIter = BinarySearchFindIndex(attrs, ArraySize(attrs), attr.first.c_str()); in SetSpecializedValue() 75 attrs[attrIter].value(attr.second, *this); in SetSpecializedValue() 78 return SetPresentationAttr(attr); in SetSpecializedValue()
|
H A D | svg_fe_declaration.cpp | 22 bool SvgFeDeclaration::SetSpecializedAttr(const std::pair<std::string, std::string>& attr) in SetSpecializedAttr() argument 24 return SetSpecializedValue(attr); in SetSpecializedAttr() 32 bool SvgFeDeclaration::SetSpecializedValue(const std::pair<std::string, std::string>& attr) in SetSpecializedValue() argument 65 std::string key = attr.first; in SetSpecializedValue() 69 attrs[attrIter].value(attr.second, *this); in SetSpecializedValue() 72 return SvgBaseDeclaration::SetPresentationAttr(attr); in SetSpecializedValue()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/ |
H A D | inspector_filter.cpp | 44 bool InspectorFilter::CheckExtAttr(const std::string& attr) const in CheckExtAttr() 49 return std::find(filterExt.begin(), filterExt.end(), attr) != filterExt.end(); in CheckExtAttr() 54 /* no filter attr set */ in CheckFilterAttr() 58 /* fixed attr set */ in CheckFilterAttr() 62 /* extend attr set */ in CheckFilterAttr() 71 /* no filter attr set */ in IsFastFilter() 75 /* no extend attr set */ in IsFastFilter() 82 void InspectorFilter::AddFilterAttr(const std::string& attr) in AddFilterAttr() argument 84 auto iter = FIXED_ATTR_MAP.find(attr); in AddFilterAttr() 86 filterFixed |= (1ULL << iter->second); /* this is a fixed attr */ in AddFilterAttr() [all...] |
/foundation/multimedia/media_foundation/engine/foundation/osal/thread/ |
H A D | condition_variable.cpp | 39 pthread_condattr_t attr; in condInited_() local 40 pthread_condattr_init(&attr); in condInited_() 43 pthread_condattr_setclock(&attr, CLOCK_REALTIME); in condInited_() 45 pthread_condattr_setclock(&attr, CLOCK_MONOTONIC); in condInited_() 48 int rtv = pthread_cond_init(&cond_, &attr); in condInited_() 54 pthread_condattr_destroy(&attr); in condInited_()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | get_stackid_cannot_attach.c | 8 struct perf_event_attr attr = { in test_get_stackid_cannot_attach() local 36 pmu_fd = syscall(__NR_perf_event_open, &attr, -1 /* pid */, in test_get_stackid_cannot_attach() 56 attr.sample_type |= PERF_SAMPLE_CALLCHAIN; in test_get_stackid_cannot_attach() 58 pmu_fd = syscall(__NR_perf_event_open, &attr, -1 /* pid */, in test_get_stackid_cannot_attach() 73 attr.exclude_callchain_kernel = 1; in test_get_stackid_cannot_attach() 75 pmu_fd = syscall(__NR_perf_event_open, &attr, -1 /* pid */, in test_get_stackid_cannot_attach()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/ |
H A D | usb.h | 38 #define ATH10K_USB_IS_BULK_EP(attr) (((attr) & 3) == 0x02) 39 #define ATH10K_USB_IS_INT_EP(attr) (((attr) & 3) == 0x03) 40 #define ATH10K_USB_IS_ISOC_EP(attr) (((attr) & 3) == 0x01)
|
/kernel/linux/linux-5.10/drivers/pci/hotplug/ |
H A D | rpadlpar_sysfs.c | 27 static ssize_t add_slot_store(struct kobject *kobj, struct kobj_attribute *attr, in add_slot_store() argument 51 struct kobj_attribute *attr, char *buf) in add_slot_show() 57 struct kobj_attribute *attr, in remove_slot_store() 81 struct kobj_attribute *attr, char *buf) in remove_slot_show() 93 &add_slot_attr.attr, 94 &remove_slot_attr.attr, 50 add_slot_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) add_slot_show() argument 56 remove_slot_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t nbytes) remove_slot_store() argument 80 remove_slot_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) remove_slot_show() argument
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | fault-inject.h | 50 int setup_fault_attr(struct fault_attr *attr, char *str); 51 bool should_fail_ex(struct fault_attr *attr, ssize_t size, int flags); 52 bool should_fail(struct fault_attr *attr, ssize_t size); 57 struct dentry *parent, struct fault_attr *attr); 62 struct dentry *parent, struct fault_attr *attr) in fault_create_debugfs_attr() 72 struct fault_attr attr; member 61 fault_create_debugfs_attr(const char *name, struct dentry *parent, struct fault_attr *attr) fault_create_debugfs_attr() argument
|
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath10k/ |
H A D | usb.h | 38 #define ATH10K_USB_IS_BULK_EP(attr) (((attr) & 3) == 0x02) 39 #define ATH10K_USB_IS_INT_EP(attr) (((attr) & 3) == 0x03) 40 #define ATH10K_USB_IS_ISOC_EP(attr) (((attr) & 3) == 0x01)
|