Home
last modified time | relevance | path

Searched refs:attr (Results 6276 - 6300 of 8468) sorted by relevance

1...<<251252253254255256257258259260>>...339

/kernel/linux/linux-5.10/drivers/net/phy/
H A Dphy_device.c482 phy_id_show(struct device *dev, struct device_attribute *attr, char *buf) in phy_id_show() argument
491 phy_interface_show(struct device *dev, struct device_attribute *attr, char *buf) in phy_interface_show() argument
506 phy_has_fixups_show(struct device *dev, struct device_attribute *attr, in phy_has_fixups_show() argument
516 &dev_attr_phy_id.attr,
517 &dev_attr_phy_interface.attr,
518 &dev_attr_phy_has_fixups.attr,
1215 phy_standalone_show(struct device *dev, struct device_attribute *attr, in phy_standalone_show() argument
1377 &dev_attr_phy_standalone.attr); in phy_attach_direct()
1663 &dev_attr_phy_standalone.attr); in phy_detach()
/kernel/linux/linux-5.10/drivers/video/fbdev/
H A Dudlfb.c1509 struct device_attribute *attr, in metrics_reset_store()
1524 .attr.name = "edid",
1525 .attr.mode = 0666,
1651 const struct device_attribute *attr; in dlfb_usb_probe() local
1756 attr = &fb_device_attrs[i]; in dlfb_usb_probe()
1757 retval = device_create_file(info->dev, attr); in dlfb_usb_probe()
1761 attr->attr.name, retval); in dlfb_usb_probe()
1767 edid_attr.attr.name, retval); in dlfb_usb_probe()
1508 metrics_reset_store(struct device *fbdev, struct device_attribute *attr, const char *buf, size_t count) metrics_reset_store() argument
/kernel/linux/linux-5.10/tools/perf/util/
H A Dsynthetic-events.c1798 err = perf_event__synthesize_attr(tool, &evsel->core.attr, evsel->core.ids, in perf_event__synthesize_attrs()
1827 * attr event - unit, scale, name in perf_event__synthesize_extra_attr()
1875 int perf_event__synthesize_attr(struct perf_tool *tool, struct perf_event_attr *attr, in perf_event__synthesize_attr() argument
1892 ev->attr.attr = *attr; in perf_event__synthesize_attr()
1893 memcpy(ev->attr.id, id, ids * sizeof(u64)); in perf_event__synthesize_attr()
1895 ev->attr.header.type = PERF_RECORD_HEADER_ATTR; in perf_event__synthesize_attr()
1896 ev->attr.header.size = (u16)size; in perf_event__synthesize_attr()
1898 if (ev->attr in perf_event__synthesize_attr()
[all...]
/kernel/linux/linux-5.10/net/dcb/
H A Ddcbnl.c1492 struct nlattr *attr; in dcbnl_ieee_set() local
1495 nla_for_each_nested(attr, ieee[DCB_ATTR_IEEE_APP_TABLE], rem) { in dcbnl_ieee_set()
1498 if (nla_type(attr) != DCB_ATTR_IEEE_APP) in dcbnl_ieee_set()
1501 if (nla_len(attr) < sizeof(struct dcb_app)) { in dcbnl_ieee_set()
1506 app_data = nla_data(attr); in dcbnl_ieee_set()
1553 struct nlattr *attr; in dcbnl_ieee_del() local
1556 nla_for_each_nested(attr, ieee[DCB_ATTR_IEEE_APP_TABLE], rem) { in dcbnl_ieee_del()
1559 if (nla_type(attr) != DCB_ATTR_IEEE_APP) in dcbnl_ieee_del()
1561 app_data = nla_data(attr); in dcbnl_ieee_del()
/kernel/linux/linux-5.10/drivers/ntb/hw/idt/
H A Dntb_hw_idt.c1977 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in idt_sysfs_show_temp() local
1979 enum idt_temp_val type = attr->index; in idt_sysfs_show_temp()
1999 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in idt_sysfs_set_temp() local
2001 enum idt_temp_val type = attr->index; in idt_sysfs_set_temp()
2062 &sensor_dev_attr_temp1_input.dev_attr.attr,
2063 &sensor_dev_attr_temp1_lowest.dev_attr.attr,
2064 &sensor_dev_attr_temp1_highest.dev_attr.attr,
2065 &sensor_dev_attr_temp1_offset.dev_attr.attr,
2066 &dev_attr_temp1_reset_history.attr,
/kernel/linux/linux-5.10/drivers/power/supply/
H A Dabx500_chargalg.c274 struct attribute attr; member
1839 struct attribute *attr, char *buf) in abx500_chargalg_sysfs_show()
1841 struct abx500_chargalg_sysfs_entry *entry = container_of(attr, in abx500_chargalg_sysfs_show()
1842 struct abx500_chargalg_sysfs_entry, attr); in abx500_chargalg_sysfs_show()
1854 struct attribute *attr, const char *buf, size_t length) in abx500_chargalg_sysfs_charger()
1856 struct abx500_chargalg_sysfs_entry *entry = container_of(attr, in abx500_chargalg_sysfs_charger()
1857 struct abx500_chargalg_sysfs_entry, attr); in abx500_chargalg_sysfs_charger()
1869 &abx500_chargalg_en_charger.attr,
1870 &abx500_chargalg_curr_step.attr,
1838 abx500_chargalg_sysfs_show(struct kobject *kobj, struct attribute *attr, char *buf) abx500_chargalg_sysfs_show() argument
1853 abx500_chargalg_sysfs_charger(struct kobject *kobj, struct attribute *attr, const char *buf, size_t length) abx500_chargalg_sysfs_charger() argument
/kernel/linux/linux-5.10/drivers/staging/fsl-dpaa2/ethsw/
H A Dethsw.c948 const struct switchdev_attr *attr, in dpaa2_switch_port_attr_set()
953 switch (attr->id) { in dpaa2_switch_port_attr_set()
956 attr->u.stp_state); in dpaa2_switch_port_attr_set()
960 attr->u.brport_flags); in dpaa2_switch_port_attr_set()
964 attr->u.brport_flags); in dpaa2_switch_port_attr_set()
983 struct dpsw_attr *attr = &ethsw->sw_attr; in dpaa2_switch_port_vlans_add() local
998 if (attr->max_vlans - attr->num_vlans < new_vlans) in dpaa2_switch_port_vlans_add()
1212 err = dpaa2_switch_port_attr_set(netdev, port_attr_info->attr, in dpaa2_switch_port_attr_set_event()
947 dpaa2_switch_port_attr_set(struct net_device *netdev, const struct switchdev_attr *attr, struct switchdev_trans *trans) dpaa2_switch_port_attr_set() argument
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_mbx.c1479 const struct fm10k_tlv_attr *attr; in fm10k_mbx_validate_handlers() local
1492 attr = msg_data->attr; in fm10k_mbx_validate_handlers()
1493 if (attr) { in fm10k_mbx_validate_handlers()
1494 while (attr->id != FM10K_TLV_ERROR) { in fm10k_mbx_validate_handlers()
1495 id = attr->id; in fm10k_mbx_validate_handlers()
1496 attr++; in fm10k_mbx_validate_handlers()
1498 if (id >= attr->id) in fm10k_mbx_validate_handlers()
1506 if (attr->id != FM10K_TLV_ERROR) in fm10k_mbx_validate_handlers()
/kernel/linux/linux-6.6/drivers/video/fbdev/
H A Dudlfb.c1510 struct device_attribute *attr, in metrics_reset_store()
1525 .attr.name = "edid",
1526 .attr.mode = 0666,
1644 const struct device_attribute *attr; in dlfb_usb_probe() local
1749 attr = &fb_device_attrs[i]; in dlfb_usb_probe()
1750 retval = device_create_file(info->dev, attr); in dlfb_usb_probe()
1754 attr->attr.name, retval); in dlfb_usb_probe()
1760 edid_attr.attr.name, retval); in dlfb_usb_probe()
1509 metrics_reset_store(struct device *fbdev, struct device_attribute *attr, const char *buf, size_t count) metrics_reset_store() argument
/kernel/linux/linux-6.6/drivers/block/null_blk/
H A Dmain.c703 dev->timeout_config.attr = null_timeout_attr; in null_alloc_dev()
704 dev->requeue_config.attr = null_requeue_attr; in null_alloc_dev()
705 dev->init_hctx_fault_config.attr = null_init_hctx_attr; in null_alloc_dev()
1553 return should_fail(&dev->timeout_config.attr, 1); in should_timeout_request()
1561 return should_fail(&dev->requeue_config.attr, 1); in should_requeue_request()
1566 return should_fail(&dev->init_hctx_fault_config.attr, 1); in should_init_hctx_fail()
2057 static bool __null_setup_fault(struct fault_attr *attr, char *str) in __null_setup_fault() argument
2062 if (!setup_fault_attr(attr, str)) in __null_setup_fault()
2065 attr->verbose = 0; in __null_setup_fault()
/kernel/linux/linux-6.6/drivers/ntb/hw/idt/
H A Dntb_hw_idt.c1977 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in idt_sysfs_show_temp() local
1979 enum idt_temp_val type = attr->index; in idt_sysfs_show_temp()
1999 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in idt_sysfs_set_temp() local
2001 enum idt_temp_val type = attr->index; in idt_sysfs_set_temp()
2062 &sensor_dev_attr_temp1_input.dev_attr.attr,
2063 &sensor_dev_attr_temp1_lowest.dev_attr.attr,
2064 &sensor_dev_attr_temp1_highest.dev_attr.attr,
2065 &sensor_dev_attr_temp1_offset.dev_attr.attr,
2066 &dev_attr_temp1_reset_history.attr,
/kernel/linux/linux-6.6/drivers/i2c/
H A Di2c-core-base.c659 name_show(struct device *dev, struct device_attribute *attr, char *buf) in name_show() argument
667 modalias_show(struct device *dev, struct device_attribute *attr, char *buf) in modalias_show() argument
685 &dev_attr_name.attr,
687 &dev_attr_modalias.attr,
1219 new_device_store(struct device *dev, struct device_attribute *attr, in new_device_store() argument
1287 delete_device_store(struct device *dev, struct device_attribute *attr, in delete_device_store() argument
1334 &dev_attr_name.attr,
1335 &dev_attr_new_device.attr,
1336 &dev_attr_delete_device.attr,
/kernel/linux/linux-6.6/tools/perf/
H A Dbuiltin-kvm.c1555 struct perf_event_attr *attr = &pos->core.attr; in kvm_live_open_events() local
1568 attr->mmap = 0; in kvm_live_open_events()
1569 attr->comm = 0; in kvm_live_open_events()
1570 attr->task = 0; in kvm_live_open_events()
1572 attr->sample_period = 1; in kvm_live_open_events()
1574 attr->watermark = 0; in kvm_live_open_events()
1575 attr->wakeup_events = 1000; in kvm_live_open_events()
1578 attr->disabled = 1; in kvm_live_open_events()
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/lib/
H A Dkvm_util.c1665 int __kvm_has_device_attr(int dev_fd, uint32_t group, uint64_t attr) in __kvm_has_device_attr() argument
1669 .attr = attr, in __kvm_has_device_attr()
1700 int __kvm_device_attr_get(int dev_fd, uint32_t group, uint64_t attr, void *val) in __kvm_device_attr_get() argument
1704 .attr = attr, in __kvm_device_attr_get()
1712 int __kvm_device_attr_set(int dev_fd, uint32_t group, uint64_t attr, void *val) in __kvm_device_attr_set() argument
1716 .attr = attr, in __kvm_device_attr_set()
/third_party/ffmpeg/libavcodec/
H A Dvaapi_encode_h265.c1172 VAConfigAttrib attr; in vaapi_encode_h265_get_encoder_caps() local
1175 attr.type = VAConfigAttribEncHEVCFeatures; in vaapi_encode_h265_get_encoder_caps()
1177 ctx->va_entrypoint, &attr, 1); in vaapi_encode_h265_get_encoder_caps()
1182 } else if (attr.value == VA_ATTRIB_NOT_SUPPORTED) { in vaapi_encode_h265_get_encoder_caps()
1186 priv->va_features = attr.value; in vaapi_encode_h265_get_encoder_caps()
1189 attr.type = VAConfigAttribEncHEVCBlockSizes; in vaapi_encode_h265_get_encoder_caps()
1191 ctx->va_entrypoint, &attr, 1); in vaapi_encode_h265_get_encoder_caps()
1196 } else if (attr.value == VA_ATTRIB_NOT_SUPPORTED) { in vaapi_encode_h265_get_encoder_caps()
1200 priv->va_bs = block_size.value = attr.value; in vaapi_encode_h265_get_encoder_caps()
/third_party/icu/icu4c/source/i18n/
H A Drulebasedcollator.cpp411 RuleBasedCollator::getAttribute(UColAttribute attr, UErrorCode &errorCode) const { in getAttribute() argument
414 switch(attr) { in getAttribute()
444 RuleBasedCollator::setAttribute(UColAttribute attr, UColAttributeValue value, in setAttribute() argument
446 UColAttributeValue oldValue = getAttribute(attr, errorCode); in setAttribute()
449 setAttributeExplicitly(attr); in setAttribute()
455 setAttributeDefault(attr); in setAttribute()
465 switch(attr) { in setAttribute()
503 setAttributeDefault(attr); in setAttribute()
505 setAttributeExplicitly(attr); in setAttribute()
/third_party/ntfs-3g/libntfs-3g/
H A Dindex.c409 a = (*ctx)->attr; in ntfs_ir_lookup()
1274 if (ntfs_resident_attr_value_resize(ctx->mrec, ctx->attr, in ntfs_ir_reparent()
1288 - le32_to_cpu(ctx->attr->value_length))) { in ntfs_ir_reparent()
1999 * @attr: attribute for which we want its index root
2008 INDEX_ROOT *ntfs_index_root_get(ntfs_inode *ni, ATTR_RECORD *attr) in ntfs_index_root_get() argument
2014 name = (ntfschar *)((u8 *)attr + le16_to_cpu(attr->name_offset)); in ntfs_index_root_get()
2016 if (!ntfs_ir_lookup(ni, name, attr->name_length, &ctx)) in ntfs_index_root_get()
2023 *root = *((INDEX_ROOT *)((u8 *)ctx->attr + in ntfs_index_root_get()
2024 le16_to_cpu(ctx->attr in ntfs_index_root_get()
[all...]
/third_party/node/deps/icu-small/source/i18n/
H A Drulebasedcollator.cpp413 RuleBasedCollator::getAttribute(UColAttribute attr, UErrorCode &errorCode) const { in getAttribute() argument
416 switch(attr) { in getAttribute()
446 RuleBasedCollator::setAttribute(UColAttribute attr, UColAttributeValue value, in setAttribute() argument
448 UColAttributeValue oldValue = getAttribute(attr, errorCode); in setAttribute()
451 setAttributeExplicitly(attr); in setAttribute()
457 setAttributeDefault(attr); in setAttribute()
467 switch(attr) { in setAttribute()
505 setAttributeDefault(attr); in setAttribute()
507 setAttributeExplicitly(attr); in setAttribute()
/third_party/python/Lib/
H A Dast.py185 for attr in 'lineno', 'col_offset', 'end_lineno', 'end_col_offset':
186 if attr in old_node._attributes and attr in new_node._attributes:
187 value = getattr(old_node, attr, None)
191 hasattr(old_node, attr) and attr.startswith("end_")
193 setattr(new_node, attr, value)
1470 self.write(node.attr)
1676 attr, pattern = pair
1677 self.write(f"{attr}
[all...]
/third_party/skia/third_party/externals/icu/source/i18n/
H A Drulebasedcollator.cpp411 RuleBasedCollator::getAttribute(UColAttribute attr, UErrorCode &errorCode) const { in getAttribute() argument
414 switch(attr) { in getAttribute()
444 RuleBasedCollator::setAttribute(UColAttribute attr, UColAttributeValue value, in setAttribute() argument
446 UColAttributeValue oldValue = getAttribute(attr, errorCode); in setAttribute()
449 setAttributeExplicitly(attr); in setAttribute()
455 setAttributeDefault(attr); in setAttribute()
465 switch(attr) { in setAttribute()
503 setAttributeDefault(attr); in setAttribute()
505 setAttributeExplicitly(attr); in setAttribute()
/third_party/python/Lib/test/
H A Dtest_sys.py687 for attr in attrs:
688 self.assertTrue(hasattr(sys.flags, attr), attr)
689 attr_type = bool if attr in ("dev_mode", "safe_path") else int
690 self.assertEqual(type(getattr(sys.flags, attr)), attr_type, attr)
1235 for attr in "exc_type exc_value exc_traceback err_msg object".split():
1236 self.assertEqual(getattr(hook_args, attr),
1237 getattr(expected, attr),
H A Dtest_functools.py256 f.attr = []
263 f.attr = []
266 self.assertIs(f_copy.attr, f.attr)
272 f.attr = []
275 self.assertIsNot(f_copy.attr, f.attr)
283 f.__setstate__((capture, (1,), dict(a=10), dict(attr=[])))
286 (capture, (1,), dict(a=10), dict(attr=[])))
624 f.attr
[all...]
/kernel/linux/linux-5.10/drivers/iommu/intel/
H A Diommu.c2400 u64 attr; in __domain_mapping() local
2407 attr = prot & (DMA_PTE_READ | DMA_PTE_WRITE | DMA_PTE_SNP); in __domain_mapping()
2408 attr |= DMA_FL_PTE_PRESENT; in __domain_mapping()
2410 attr |= DMA_FL_PTE_XD | DMA_FL_PTE_US; in __domain_mapping()
2413 attr |= DMA_FL_PTE_ACCESS; in __domain_mapping()
2415 attr |= DMA_FL_PTE_DIRTY; in __domain_mapping()
2421 pteval = ((phys_addr_t)phys_pfn << VTD_PAGE_SHIFT) | attr; in __domain_mapping()
2433 pteval = (sg_phys(sg) - pgoff) | attr; in __domain_mapping()
4815 struct device_attribute *attr, in intel_iommu_show_version()
4826 struct device_attribute *attr, in intel_iommu_show_address()
4814 intel_iommu_show_version(struct device *dev, struct device_attribute *attr, char *buf) intel_iommu_show_version() argument
4825 intel_iommu_show_address(struct device *dev, struct device_attribute *attr, char *buf) intel_iommu_show_address() argument
4834 intel_iommu_show_cap(struct device *dev, struct device_attribute *attr, char *buf) intel_iommu_show_cap() argument
4843 intel_iommu_show_ecap(struct device *dev, struct device_attribute *attr, char *buf) intel_iommu_show_ecap() argument
4852 intel_iommu_show_ndoms(struct device *dev, struct device_attribute *attr, char *buf) intel_iommu_show_ndoms() argument
4861 intel_iommu_show_ndoms_used(struct device *dev, struct device_attribute *attr, char *buf) intel_iommu_show_ndoms_used() argument
6134 intel_iommu_domain_set_attr(struct iommu_domain *domain, enum iommu_attr attr, void *data) intel_iommu_domain_set_attr() argument
[all...]
/third_party/libfuse/lib/
H A Dfuse.c2474 update_stat(node, &e->attr); in do_lookup()
2477 set_stat(f, e->ino, &e->attr); in do_lookup()
2488 res = fuse_fs_getattr(f->fs, path, &e->attr, fi); in lookup_path()
2770 static void fuse_lib_setattr(fuse_req_t req, fuse_ino_t ino, struct stat *attr, in fuse_lib_setattr() argument
2788 err = fuse_fs_chmod(f->fs, path, attr->st_mode, fi); in fuse_lib_setattr()
2791 attr->st_uid : (uid_t) -1; in fuse_lib_setattr()
2793 attr->st_gid : (gid_t) -1; in fuse_lib_setattr()
2798 attr->st_size, fi); in fuse_lib_setattr()
2813 tv[0] = attr->st_atim; in fuse_lib_setattr()
2818 tv[1] = attr in fuse_lib_setattr()
[all...]
/third_party/selinux/libsepol/cil/src/
H A Dcil_resolve_ast.c280 struct cil_typeattribute *attr = NULL; in cil_type_used() local
283 attr = (struct cil_typeattribute*)datum; in cil_type_used()
284 attr->used |= used; in cil_type_used()
285 if ((attr->used & CIL_ATTR_EXPAND_TRUE) && in cil_type_used()
286 (attr->used & CIL_ATTR_EXPAND_FALSE)) { in cil_type_used()
289 "Resolving to false. \n", attr->datum.name); in cil_type_used()
290 attr->used &= ~CIL_ATTR_EXPAND_TRUE; in cil_type_used()
432 struct cil_typeattribute *attr = NULL; in cil_resolve_typeattributeset() local
448 attr = (struct cil_typeattribute*)attr_datum; in cil_resolve_typeattributeset()
455 if (attr in cil_resolve_typeattributeset()
1152 struct cil_roleattribute *attr = NULL; cil_resolve_roleattributeset() local
3479 struct cil_userattribute *attr = NULL; cil_resolve_userattributeset() local
[all...]

Completed in 91 milliseconds

1...<<251252253254255256257258259260>>...339