/kernel/linux/linux-6.6/fs/ntfs/ |
H A D | file.c | 151 a = ctx->attr; in ntfs_attr_extend_initialized() 195 a = ctx->attr; in ntfs_attr_extend_initialized() 287 a = ctx->attr; in ntfs_attr_extend_initialized() 1027 a = ctx->attr; in ntfs_prepare_pages_for_non_resident_write() 1133 a = ctx->attr; in ntfs_prepare_pages_for_non_resident_write() 1241 a = ctx->attr; in ntfs_prepare_pages_for_non_resident_write() 1465 a = ctx->attr; in ntfs_commit_pages_after_non_resident_write() 1591 a = ctx->attr; in ntfs_commit_pages_after_write()
|
H A D | super.c | 396 vi = (VOLUME_INFORMATION*)((u8*)ctx->attr + in ntfs_write_volume_flags() 397 le16_to_cpu(ctx->attr->data.resident.value_offset)); in ntfs_write_volume_flags() 1874 ctx) || ctx->attr->non_resident || ctx->attr->flags) { in load_system_files() 1881 vi = (VOLUME_INFORMATION*)((char*)ctx->attr + in load_system_files() 1882 le16_to_cpu(ctx->attr->data.resident.value_offset)); in load_system_files() 1884 if ((u8*)vi < (u8*)ctx->attr || (u8*)vi + in load_system_files() 1885 le32_to_cpu(ctx->attr->data.resident.value_length) > in load_system_files() 1886 (u8*)ctx->attr + le32_to_cpu(ctx->attr in load_system_files() [all...] |
H A D | mft.c | 1405 a = ctx->attr; in ntfs_mft_bitmap_extend_allocation_nolock() 1446 /* Generate the mapping pairs array directly into the attr record. */ in ntfs_mft_bitmap_extend_allocation_nolock() 1477 a = ctx->attr; in ntfs_mft_bitmap_extend_allocation_nolock() 1512 a = ctx->attr; in ntfs_mft_bitmap_extend_allocation_nolock() 1608 a = ctx->attr; in ntfs_mft_bitmap_extend_initialized_nolock() 1663 a = ctx->attr; in ntfs_mft_bitmap_extend_initialized_nolock() 1837 a = ctx->attr; in ntfs_mft_data_extend_allocation_nolock() 1883 /* Generate the mapping pairs array directly into the attr record. */ in ntfs_mft_data_extend_allocation_nolock() 1916 a = ctx->attr; in ntfs_mft_data_extend_allocation_nolock() 1950 ctx->attr in ntfs_mft_data_extend_allocation_nolock() [all...] |
/kernel/linux/linux-6.6/drivers/video/fbdev/ |
H A D | fsl-diu-fb.c | 1643 struct device_attribute *attr, const char *buf, size_t count) in store_monitor() 1647 container_of(attr, struct fsl_diu_data, dev_attr); in store_monitor() 1665 struct device_attribute *attr, char *buf) in show_monitor() 1668 container_of(attr, struct fsl_diu_data, dev_attr); in show_monitor() 1801 sysfs_attr_init(&data->dev_attr.attr); in fsl_diu_probe() 1802 data->dev_attr.attr.name = "monitor"; in fsl_diu_probe() 1803 data->dev_attr.attr.mode = S_IRUGO|S_IWUSR; in fsl_diu_probe() 1809 data->dev_attr.attr.name); in fsl_diu_probe() 1642 store_monitor(struct device *device, struct device_attribute *attr, const char *buf, size_t count) store_monitor() argument 1664 show_monitor(struct device *device, struct device_attribute *attr, char *buf) show_monitor() argument
|
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ar5523/ |
H A D | ar5523.c | 487 qinfo.len = cpu_to_be32(sizeof(qinfo.attr)); in ar5523_queue_init() 488 qinfo.attr.priority = cpu_to_be32(0); /* XXX */ in ar5523_queue_init() 489 qinfo.attr.aifs = cpu_to_be32(3); in ar5523_queue_init() 490 qinfo.attr.logcwmin = cpu_to_be32(4); in ar5523_queue_init() 491 qinfo.attr.logcwmax = cpu_to_be32(10); in ar5523_queue_init() 492 qinfo.attr.bursttime = cpu_to_be32(0); in ar5523_queue_init() 493 qinfo.attr.mode = cpu_to_be32(0); in ar5523_queue_init() 494 qinfo.attr.qflags = cpu_to_be32(1); /* XXX? */ in ar5523_queue_init()
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/qib/ |
H A D | qib_verbs.c | 1334 ah->vl = ibp->sl_to_vl[rdma_ah_get_sl(&ah->attr)]; in qib_notify_new_ah() 1340 struct rdma_ah_attr attr; in qib_create_qp0_ah() local 1347 memset(&attr, 0, sizeof(attr)); in qib_create_qp0_ah() 1348 attr.type = rdma_ah_find_type(&dd->verbs_dev.rdi.ibdev, port_num); in qib_create_qp0_ah() 1349 rdma_ah_set_dlid(&attr, dlid); in qib_create_qp0_ah() 1350 rdma_ah_set_port_num(&attr, port_num); in qib_create_qp0_ah() 1354 ah = rdma_create_ah(qp0->ibqp.pd, &attr, 0); in qib_create_qp0_ah()
|
/kernel/linux/linux-6.6/kernel/sched/ |
H A D | topology.c | 1456 struct sched_domain_attr *attr) in set_domain_attribute() 1460 if (!attr || attr->relax_domain_level < 0) { in set_domain_attribute() 1465 request = attr->relax_domain_level; in set_domain_attribute() 2303 const struct cpumask *cpu_map, struct sched_domain_attr *attr, in build_sched_domain() 2327 set_domain_attribute(sd, attr); in build_sched_domain() 2373 build_sched_domains(const struct cpumask *cpu_map, struct sched_domain_attr *attr) in build_sched_domains() argument 2399 sd = build_sched_domain(tl, cpu_map, attr, sd, i); in build_sched_domains() 1455 set_domain_attribute(struct sched_domain *sd, struct sched_domain_attr *attr) set_domain_attribute() argument 2302 build_sched_domain(struct sched_domain_topology_level *tl, const struct cpumask *cpu_map, struct sched_domain_attr *attr, struct sched_domain *child, int cpu) build_sched_domain() argument
|
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nf_conntrack_proto_tcp.c | 1425 struct nf_ct_tcp_flags *attr = in nlattr_to_tcp() local 1427 ct->proto.tcp.seen[0].flags &= ~attr->mask; in nlattr_to_tcp() 1428 ct->proto.tcp.seen[0].flags |= attr->flags & attr->mask; in nlattr_to_tcp() 1432 struct nf_ct_tcp_flags *attr = in nlattr_to_tcp() local 1434 ct->proto.tcp.seen[1].flags &= ~attr->mask; in nlattr_to_tcp() 1435 ct->proto.tcp.seen[1].flags |= attr->flags & attr->mask; in nlattr_to_tcp()
|
/kernel/linux/linux-6.6/tools/bpf/bpftool/ |
H A D | prog.c | 1967 struct perf_event_attr attr; member 1977 .attr = { 1985 .attr = { 1996 .attr = { 2007 .attr = { 2021 .attr = { 2035 .attr = { 2267 pmu_fd = syscall(__NR_perf_event_open, &metrics[mid].attr, in profile_open_perf_event()
|
/third_party/ntfs-3g/libntfs-3g/ |
H A D | win32_io.c | 884 OBJECT_ATTRIBUTES attr; in ntfs_device_win32_open_lowlevel() local 902 attr.Length = sizeof(OBJECT_ATTRIBUTES); in ntfs_device_win32_open_lowlevel() 903 attr.RootDirectory = (HANDLE*)NULL; in ntfs_device_win32_open_lowlevel() 904 attr.ObjectName = &unicode_name; in ntfs_device_win32_open_lowlevel() 905 attr.Attributes = OBJ_CASE_INSENSITIVE; in ntfs_device_win32_open_lowlevel() 906 attr.SecurityDescriptor = (void*)NULL; in ntfs_device_win32_open_lowlevel() 907 attr.SecurityQualityOfService = (void*)NULL; in ntfs_device_win32_open_lowlevel() 919 &attr, &io_status, in ntfs_device_win32_open_lowlevel()
|
/third_party/rust/crates/libc/src/unix/linux_like/ |
H A D | mod.rs | 1664 pub fn pthread_getattr_np(native: ::pthread_t, attr: *mut ::pthread_attr_t) -> ::c_int; in pthread_getattr_np() 1666 attr: *const ::pthread_attr_t, in pthread_attr_getstack() 1743 attr: *const pthread_condattr_t, in pthread_condattr_getclock() 1747 attr: *mut pthread_condattr_t, in pthread_condattr_setclock() 1750 pub fn pthread_condattr_setpshared(attr: *mut pthread_condattr_t, pshared: ::c_int) -> ::c_int; in pthread_condattr_setpshared() 1752 attr: *mut pthread_mutexattr_t, in pthread_mutexattr_setpshared() 1756 attr: *const pthread_rwlockattr_t, in pthread_rwlockattr_getpshared() 1759 pub fn pthread_rwlockattr_setpshared(attr: *mut pthread_rwlockattr_t, val: ::c_int) -> ::c_int; in pthread_rwlockattr_setpshared()
|
/third_party/python/Lib/test/support/ |
H A D | __init__.py | 1332 def swap_attr(obj, attr, new_val): 1336 with swap_attr(obj, "attr", 5): 1339 This will set obj.attr to 5 for the duration of the with: block, 1340 restoring the old value at the end of the block. If `attr` doesn't 1347 if hasattr(obj, attr): 1348 real_val = getattr(obj, attr) 1349 setattr(obj, attr, new_val) 1353 setattr(obj, attr, real_val) 1355 setattr(obj, attr, new_val) 1359 if hasattr(obj, attr) [all...] |
/third_party/selinux/libsepol/cil/src/ |
H A D | cil_policy.c | 127 struct cil_typeattribute *attr = node->data; in __cil_gather_statements_helper() local 128 if (strcmp(attr->datum.fqn, "cil_gen_require") != 0) { in __cil_gather_statements_helper() 134 struct cil_roleattribute *attr = node->data; in __cil_gather_statements_helper() local 135 if (strcmp(attr->datum.fqn, "cil_gen_require") != 0) { in __cil_gather_statements_helper() 340 static size_t __cil_userattribute_len(struct cil_db *db, struct cil_userattribute *attr) in __cil_userattribute_len() argument 346 ebitmap_for_each_positive_bit(attr->users, unode, i) { in __cil_userattribute_len() 449 static char *__cil_userattribute_to_string(struct cil_db *db, struct cil_userattribute *attr, char *new) in __cil_userattribute_to_string() argument 456 ebitmap_for_each_positive_bit(attr->users, unode, i) { in __cil_userattribute_to_string()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/ |
H A D | driver_atheros.c | 1568 struct rtattr *attr; in atheros_wireless_event_rtm_newlink() local 1574 attr = (struct rtattr *) buf; in atheros_wireless_event_rtm_newlink() 1577 while (RTA_OK(attr, attrlen)) { in atheros_wireless_event_rtm_newlink() 1578 if (attr->rta_type == IFLA_WIRELESS) { in atheros_wireless_event_rtm_newlink() 1580 drv, ((char *) attr) + rta_len, in atheros_wireless_event_rtm_newlink() 1581 attr->rta_len - rta_len); in atheros_wireless_event_rtm_newlink() 1583 attr = RTA_NEXT(attr, attrlen); in atheros_wireless_event_rtm_newlink()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/ |
H A D | driver_atheros.c | 1557 struct rtattr *attr; in atheros_wireless_event_rtm_newlink() local 1563 attr = (struct rtattr *) buf; in atheros_wireless_event_rtm_newlink() 1566 while (RTA_OK(attr, attrlen)) { in atheros_wireless_event_rtm_newlink() 1567 if (attr->rta_type == IFLA_WIRELESS) { in atheros_wireless_event_rtm_newlink() 1569 drv, ((char *) attr) + rta_len, in atheros_wireless_event_rtm_newlink() 1570 attr->rta_len - rta_len); in atheros_wireless_event_rtm_newlink() 1572 attr = RTA_NEXT(attr, attrlen); in atheros_wireless_event_rtm_newlink()
|
/kernel/linux/linux-5.10/net/core/ |
H A D | devlink.c | 983 const struct nlattr *attr, struct netlink_ext_ack *extack) in devlink_port_function_hw_addr_set() 990 hw_addr = nla_data(attr); in devlink_port_function_hw_addr_set() 991 hw_addr_len = nla_len(attr); in devlink_port_function_hw_addr_set() 1023 const struct nlattr *attr, struct netlink_ext_ack *extack) in devlink_port_function_set() 1028 err = nla_parse_nested(tb, DEVLINK_PORT_FUNCTION_ATTR_MAX, attr, in devlink_port_function_set() 1035 attr = tb[DEVLINK_PORT_FUNCTION_ATTR_HW_ADDR]; in devlink_port_function_set() 1036 if (attr) in devlink_port_function_set() 1037 err = devlink_port_function_hw_addr_set(devlink, port, attr, extack); in devlink_port_function_set() 1059 struct nlattr *attr = info->attrs[DEVLINK_ATTR_PORT_FUNCTION]; in devlink_nl_cmd_port_set_doit() local 1062 err = devlink_port_function_set(devlink, devlink_port, attr, extac in devlink_nl_cmd_port_set_doit() 982 devlink_port_function_hw_addr_set(struct devlink *devlink, struct devlink_port *port, const struct nlattr *attr, struct netlink_ext_ack *extack) devlink_port_function_hw_addr_set() argument 1022 devlink_port_function_set(struct devlink *devlink, struct devlink_port *port, const struct nlattr *attr, struct netlink_ext_ack *extack) devlink_port_function_set() argument 5075 devlink_info_version_put(struct devlink_info_req *req, int attr, const char *version_name, const char *version_value) devlink_info_version_put() argument 6712 struct nlattr *attr; devlink_trap_item_get_from_info() local 6744 struct nlattr *attr; devlink_trap_metadata_put() local 6793 struct nlattr *attr; devlink_trap_stats_put() local 7326 struct nlattr *attr; devlink_trap_policer_stats_put() local [all...] |
/kernel/linux/linux-5.10/drivers/block/ |
H A D | nbd.c | 212 struct device_attribute *attr, char *buf) in pid_show() 221 .attr = { .name = "pid", .mode = 0444}, 2071 struct nlattr *attr; in nbd_genl_connect() local 2074 nla_for_each_nested(attr, info->attrs[NBD_ATTR_SOCKETS], in nbd_genl_connect() 2078 if (nla_type(attr) != NBD_SOCK_ITEM) { in nbd_genl_connect() 2079 printk(KERN_ERR "nbd: socks must be embedded in a SOCK_ITEM attr\n"); in nbd_genl_connect() 2084 attr, in nbd_genl_connect() 2258 struct nlattr *attr; in nbd_genl_reconfigure() local 2261 nla_for_each_nested(attr, info->attrs[NBD_ATTR_SOCKETS], in nbd_genl_reconfigure() 2265 if (nla_type(attr) ! in nbd_genl_reconfigure() 211 pid_show(struct device *dev, struct device_attribute *attr, char *buf) pid_show() argument [all...] |
/kernel/linux/linux-5.10/drivers/mmc/core/ |
H A D | block.c | 212 struct device_attribute *attr, char *buf) in power_ro_lock_show() 232 struct device_attribute *attr, const char *buf, size_t count) in power_ro_lock_store() 277 static ssize_t force_ro_show(struct device *dev, struct device_attribute *attr, in force_ro_show() argument 290 static ssize_t force_ro_store(struct device *dev, struct device_attribute *attr, in force_ro_store() argument 2748 sysfs_attr_init(&md->force_ro.attr); in mmc_add_disk() 2749 md->force_ro.attr.name = "force_ro"; in mmc_add_disk() 2750 md->force_ro.attr.mode = S_IRUGO | S_IWUSR; in mmc_add_disk() 2766 sysfs_attr_init(&md->power_ro_lock.attr); in mmc_add_disk() 2767 md->power_ro_lock.attr.mode = mode; in mmc_add_disk() 2768 md->power_ro_lock.attr in mmc_add_disk() 211 power_ro_lock_show(struct device *dev, struct device_attribute *attr, char *buf) power_ro_lock_show() argument 231 power_ro_lock_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) power_ro_lock_store() argument [all...] |
/kernel/linux/linux-5.10/fs/ntfs/ |
H A D | mft.c | 1405 a = ctx->attr; in ntfs_mft_bitmap_extend_allocation_nolock() 1446 /* Generate the mapping pairs array directly into the attr record. */ in ntfs_mft_bitmap_extend_allocation_nolock() 1477 a = ctx->attr; in ntfs_mft_bitmap_extend_allocation_nolock() 1512 a = ctx->attr; in ntfs_mft_bitmap_extend_allocation_nolock() 1608 a = ctx->attr; in ntfs_mft_bitmap_extend_initialized_nolock() 1663 a = ctx->attr; in ntfs_mft_bitmap_extend_initialized_nolock() 1837 a = ctx->attr; in ntfs_mft_data_extend_allocation_nolock() 1883 /* Generate the mapping pairs array directly into the attr record. */ in ntfs_mft_data_extend_allocation_nolock() 1916 a = ctx->attr; in ntfs_mft_data_extend_allocation_nolock() 1950 ctx->attr in ntfs_mft_data_extend_allocation_nolock() [all...] |
H A D | super.c | 388 vi = (VOLUME_INFORMATION*)((u8*)ctx->attr + in ntfs_write_volume_flags() 389 le16_to_cpu(ctx->attr->data.resident.value_offset)); in ntfs_write_volume_flags() 1866 ctx) || ctx->attr->non_resident || ctx->attr->flags) { in load_system_files() 1873 vi = (VOLUME_INFORMATION*)((char*)ctx->attr + in load_system_files() 1874 le16_to_cpu(ctx->attr->data.resident.value_offset)); in load_system_files() 1876 if ((u8*)vi < (u8*)ctx->attr || (u8*)vi + in load_system_files() 1877 le32_to_cpu(ctx->attr->data.resident.value_length) > in load_system_files() 1878 (u8*)ctx->attr + le32_to_cpu(ctx->attr in load_system_files() [all...] |
/kernel/linux/linux-6.6/drivers/misc/ |
H A D | fastrpc.c | 77 #define FASTRPC_BUILD_SCALARS(attr, method, in, out, oin, oout) \ 78 (((attr & 0x07) << 29) | \ 227 u32 attr; member 318 if (map->attr & FASTRPC_ATTR_SECUREMAP) { in fastrpc_free_map() 756 u64 len, u32 attr, struct fastrpc_map **ppmap) in fastrpc_map_create() 795 if (attr & FASTRPC_ATTR_SECUREMAP) { in fastrpc_map_create() 805 if (attr & FASTRPC_ATTR_SECUREMAP) { in fastrpc_map_create() 817 map->attr = attr; in fastrpc_map_create() 915 ctx->args[i].length, ctx->args[i].attr, in fastrpc_create_maps() 755 fastrpc_map_create(struct fastrpc_user *fl, int fd, u64 len, u32 attr, struct fastrpc_map **ppmap) fastrpc_map_create() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_discovery.c | 693 struct attribute attr; member 767 #define to_ip_hw_instance_attr(x) container_of(x, struct ip_hw_instance_attr, attr) 770 struct attribute *attr, in ip_hw_instance_attr_show() 774 struct ip_hw_instance_attr *ip_hw_attr = to_ip_hw_instance_attr(attr); in ip_hw_instance_attr_show() 823 struct attribute attr; member 827 #define to_ip_die_entry_attr(x) container_of(x, struct ip_die_entry_attribute, attr) 842 &num_ips_attr.attr, 850 struct attribute *attr, in ip_die_entry_attr_show() 853 struct ip_die_entry_attribute *ip_die_entry_attr = to_ip_die_entry_attr(attr); in ip_die_entry_attr_show() 1134 ip_hw_instance_attrs[ii] = &ip_hw_attr[ii].attr; in amdgpu_discovery_sysfs_init() 769 ip_hw_instance_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) ip_hw_instance_attr_show() argument 849 ip_die_entry_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) ip_die_entry_attr_show() argument [all...] |
/kernel/linux/linux-6.6/drivers/firmware/arm_scmi/ |
H A D | driver.c | 1593 __le32 attr; member 1649 flags = le32_to_cpu(resp->attr); in scmi_common_fastchannel_init() 2862 struct device_attribute *attr, char *buf) in protocol_version_show() 2872 struct device_attribute *attr, char *buf) in firmware_version_show() 2881 struct device_attribute *attr, char *buf) in vendor_id_show() 2890 struct device_attribute *attr, char *buf) in sub_vendor_id_show() 2899 &dev_attr_firmware_version.attr, 2900 &dev_attr_protocol_version.attr, 2901 &dev_attr_vendor_id.attr, 2902 &dev_attr_sub_vendor_id.attr, 2861 protocol_version_show(struct device *dev, struct device_attribute *attr, char *buf) protocol_version_show() argument 2871 firmware_version_show(struct device *dev, struct device_attribute *attr, char *buf) firmware_version_show() argument 2880 vendor_id_show(struct device *dev, struct device_attribute *attr, char *buf) vendor_id_show() argument 2889 sub_vendor_id_show(struct device *dev, struct device_attribute *attr, char *buf) sub_vendor_id_show() argument [all...] |
/third_party/python/Lib/ |
H A D | inspect.py | 738 Follows the chain of :attr:`__wrapped__` attributes returning the last 1769 def _check_instance(obj, attr): 1775 return dict.get(instance_dict, attr, _sentinel) 1778 def _check_class(klass, attr): 1782 return entry.__dict__[attr] 1808 def getattr_static(obj, attr, default=_sentinel): 1825 instance_result = _check_instance(obj, attr) 1829 klass_result = _check_class(klass, attr) 1848 return entry.__dict__[attr] 1853 raise AttributeError(attr) [all...] |
/third_party/selinux/libsepol/src/ |
H A D | kernel_to_cil.c | 153 switch (curr->attr) { in constraint_expr_to_str() 171 curr->attr); in constraint_expr_to_str() 175 if (curr->attr >= CEXPR_XTARGET) { in constraint_expr_to_str() 183 if (curr->attr & CEXPR_TYPE) { in constraint_expr_to_str() 186 } else if (curr->attr & CEXPR_USER) { in constraint_expr_to_str() 188 } else if (curr->attr & CEXPR_ROLE) { in constraint_expr_to_str() 1541 type_datum_t *attr; in write_type_attribute_sets_to_cil() local 1554 attr = pdb->type_val_to_struct[i]; in write_type_attribute_sets_to_cil() 1555 if (!attr || attr in write_type_attribute_sets_to_cil() [all...] |