Home
last modified time | relevance | path

Searched refs:attrs (Results 1 – 25 of 1009) sorted by relevance

12345678910>>...41

/Linux-v4.19/net/ieee802154/
Dnl-mac.c157 if (info->attrs[IEEE802154_ATTR_DEV_NAME]) { in ieee802154_nl_get_dev()
160 nla_strlcpy(name, info->attrs[IEEE802154_ATTR_DEV_NAME], in ieee802154_nl_get_dev()
163 } else if (info->attrs[IEEE802154_ATTR_DEV_INDEX]) { in ieee802154_nl_get_dev()
165 nla_get_u32(info->attrs[IEEE802154_ATTR_DEV_INDEX])); in ieee802154_nl_get_dev()
188 if (!info->attrs[IEEE802154_ATTR_CHANNEL] || in ieee802154_associate_req()
189 !info->attrs[IEEE802154_ATTR_COORD_PAN_ID] || in ieee802154_associate_req()
190 (!info->attrs[IEEE802154_ATTR_COORD_HW_ADDR] && in ieee802154_associate_req()
191 !info->attrs[IEEE802154_ATTR_COORD_SHORT_ADDR]) || in ieee802154_associate_req()
192 !info->attrs[IEEE802154_ATTR_CAPABILITY]) in ieee802154_associate_req()
201 if (info->attrs[IEEE802154_ATTR_COORD_HW_ADDR]) { in ieee802154_associate_req()
[all …]
Dnl802154.c43 __cfg802154_wpan_dev_from_attrs(struct net *netns, struct nlattr **attrs) in __cfg802154_wpan_dev_from_attrs() argument
47 bool have_ifidx = attrs[NL802154_ATTR_IFINDEX]; in __cfg802154_wpan_dev_from_attrs()
48 bool have_wpan_dev_id = attrs[NL802154_ATTR_WPAN_DEV]; in __cfg802154_wpan_dev_from_attrs()
59 ifidx = nla_get_u32(attrs[NL802154_ATTR_IFINDEX]); in __cfg802154_wpan_dev_from_attrs()
61 wpan_dev_id = nla_get_u64(attrs[NL802154_ATTR_WPAN_DEV]); in __cfg802154_wpan_dev_from_attrs()
98 __cfg802154_rdev_from_attrs(struct net *netns, struct nlattr **attrs) in __cfg802154_rdev_from_attrs() argument
105 if (!attrs[NL802154_ATTR_WPAN_PHY] && in __cfg802154_rdev_from_attrs()
106 !attrs[NL802154_ATTR_IFINDEX] && in __cfg802154_rdev_from_attrs()
107 !attrs[NL802154_ATTR_WPAN_DEV]) in __cfg802154_rdev_from_attrs()
110 if (attrs[NL802154_ATTR_WPAN_PHY]) in __cfg802154_rdev_from_attrs()
[all …]
Dnl-phy.c91 if (!info->attrs[IEEE802154_ATTR_PHY_NAME]) in ieee802154_list_phy()
94 name = nla_data(info->attrs[IEEE802154_ATTR_PHY_NAME]); in ieee802154_list_phy()
95 if (name[nla_len(info->attrs[IEEE802154_ATTR_PHY_NAME]) - 1] != '\0') in ieee802154_list_phy()
182 if (!info->attrs[IEEE802154_ATTR_PHY_NAME]) in ieee802154_add_iface()
185 name = nla_data(info->attrs[IEEE802154_ATTR_PHY_NAME]); in ieee802154_add_iface()
186 if (name[nla_len(info->attrs[IEEE802154_ATTR_PHY_NAME]) - 1] != '\0') in ieee802154_add_iface()
189 if (info->attrs[IEEE802154_ATTR_DEV_NAME]) { in ieee802154_add_iface()
190 devname = nla_data(info->attrs[IEEE802154_ATTR_DEV_NAME]); in ieee802154_add_iface()
191 if (devname[nla_len(info->attrs[IEEE802154_ATTR_DEV_NAME]) - 1] in ieee802154_add_iface()
211 if (info->attrs[IEEE802154_ATTR_HW_ADDR] && in ieee802154_add_iface()
[all …]
/Linux-v4.19/net/l2tp/
Dl2tp_netlink.c60 if (info->attrs[L2TP_ATTR_IFNAME]) { in l2tp_nl_session_get()
61 ifname = nla_data(info->attrs[L2TP_ATTR_IFNAME]); in l2tp_nl_session_get()
63 } else if ((info->attrs[L2TP_ATTR_SESSION_ID]) && in l2tp_nl_session_get()
64 (info->attrs[L2TP_ATTR_CONN_ID])) { in l2tp_nl_session_get()
65 tunnel_id = nla_get_u32(info->attrs[L2TP_ATTR_CONN_ID]); in l2tp_nl_session_get()
66 session_id = nla_get_u32(info->attrs[L2TP_ATTR_SESSION_ID]); in l2tp_nl_session_get()
174 if (!info->attrs[L2TP_ATTR_CONN_ID]) { in l2tp_nl_cmd_tunnel_create()
178 tunnel_id = nla_get_u32(info->attrs[L2TP_ATTR_CONN_ID]); in l2tp_nl_cmd_tunnel_create()
180 if (!info->attrs[L2TP_ATTR_PEER_CONN_ID]) { in l2tp_nl_cmd_tunnel_create()
184 peer_tunnel_id = nla_get_u32(info->attrs[L2TP_ATTR_PEER_CONN_ID]); in l2tp_nl_cmd_tunnel_create()
[all …]
/Linux-v4.19/fs/kernfs/
Dinode.c68 struct kernfs_iattrs *attrs; in __kernfs_setattr() local
72 attrs = kernfs_iattrs(kn); in __kernfs_setattr()
73 if (!attrs) in __kernfs_setattr()
76 iattrs = &attrs->ia_iattr; in __kernfs_setattr()
138 static int kernfs_node_setsecdata(struct kernfs_iattrs *attrs, void **secdata, in kernfs_node_setsecdata() argument
144 old_secdata = attrs->ia_secdata; in kernfs_node_setsecdata()
145 old_secdata_len = attrs->ia_secdata_len; in kernfs_node_setsecdata()
147 attrs->ia_secdata = *secdata; in kernfs_node_setsecdata()
148 attrs->ia_secdata_len = *secdata_len; in kernfs_node_setsecdata()
158 struct kernfs_iattrs *attrs; in kernfs_iop_listxattr() local
[all …]
/Linux-v4.19/net/netlabel/
Dnetlabel_mgmt.c104 entry->def.type = nla_get_u32(info->attrs[NLBL_MGMT_A_PROTOCOL]); in netlbl_mgmt_add_common()
105 if (info->attrs[NLBL_MGMT_A_DOMAIN]) { in netlbl_mgmt_add_common()
106 size_t tmp_size = nla_len(info->attrs[NLBL_MGMT_A_DOMAIN]); in netlbl_mgmt_add_common()
113 info->attrs[NLBL_MGMT_A_DOMAIN], tmp_size); in netlbl_mgmt_add_common()
123 if (info->attrs[NLBL_MGMT_A_FAMILY]) in netlbl_mgmt_add_common()
125 nla_get_u16(info->attrs[NLBL_MGMT_A_FAMILY]); in netlbl_mgmt_add_common()
130 if (!info->attrs[NLBL_MGMT_A_CV4DOI]) in netlbl_mgmt_add_common()
133 tmp_val = nla_get_u32(info->attrs[NLBL_MGMT_A_CV4DOI]); in netlbl_mgmt_add_common()
142 if (!info->attrs[NLBL_MGMT_A_CLPDOI]) in netlbl_mgmt_add_common()
145 tmp_val = nla_get_u32(info->attrs[NLBL_MGMT_A_CLPDOI]); in netlbl_mgmt_add_common()
[all …]
/Linux-v4.19/drivers/infiniband/core/
Duverbs_std_types_flow_action.c49 static u64 esp_flags_uverbs_to_verbs(struct uverbs_attr_bundle *attrs, in esp_flags_uverbs_to_verbs() argument
54 if (uverbs_attr_is_valid(attrs, UVERBS_ATTR_FLOW_ACTION_ESP_ESN)) in esp_flags_uverbs_to_verbs()
57 if (is_modify && uverbs_attr_is_valid(attrs, in esp_flags_uverbs_to_verbs()
192 struct uverbs_attr_bundle *attrs) in flow_action_esp_get_encap() argument
197 ret = uverbs_copy_from(&uverbs_encap, attrs, in flow_action_esp_get_encap()
227 struct uverbs_attr_bundle *attrs, in parse_flow_action_esp() argument
235 ret = uverbs_copy_from(&esp_attr->hdr.esn, attrs, in parse_flow_action_esp()
243 if (uverbs_attr_is_valid(attrs, UVERBS_ATTR_FLOW_ACTION_ESP_ATTRS)) { in parse_flow_action_esp()
244 ret = uverbs_copy_from_or_zero(&uverbs_esp, attrs, in parse_flow_action_esp()
257 esp_attr->hdr.flags = esp_flags_uverbs_to_verbs(attrs, uverbs_esp.flags, in parse_flow_action_esp()
[all …]
Duverbs_std_types_counters.c51 struct ib_uverbs_file *file, struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER()
54 attrs, UVERBS_ATTR_CREATE_COUNTERS_HANDLE); in UVERBS_HANDLER()
67 counters = ib_dev->create_counters(ib_dev, attrs); in UVERBS_HANDLER()
85 struct ib_uverbs_file *file, struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER()
90 uverbs_attr_get_obj(attrs, UVERBS_ATTR_READ_COUNTERS_HANDLE); in UVERBS_HANDLER()
99 ret = uverbs_get_flags32(&read_attr.flags, attrs, in UVERBS_HANDLER()
105 uattr = uverbs_attr_get(attrs, UVERBS_ATTR_READ_COUNTERS_BUFF); in UVERBS_HANDLER()
108 attrs, array_size(read_attr.ncounters, sizeof(u64))); in UVERBS_HANDLER()
112 ret = counters->device->read_counters(counters, &read_attr, attrs); in UVERBS_HANDLER()
116 return uverbs_copy_to(attrs, UVERBS_ATTR_READ_COUNTERS_BUFF, in UVERBS_HANDLER()
Duverbs_std_types_mr.c43 struct ib_uverbs_file *file, struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER()
47 uverbs_attr_get_uobject(attrs, UVERBS_ATTR_REG_DM_MR_HANDLE); in UVERBS_HANDLER()
49 uverbs_attr_get_obj(attrs, UVERBS_ATTR_REG_DM_MR_DM_HANDLE); in UVERBS_HANDLER()
51 uverbs_attr_get_obj(attrs, UVERBS_ATTR_REG_DM_MR_PD_HANDLE); in UVERBS_HANDLER()
60 ret = uverbs_copy_from(&attr.offset, attrs, UVERBS_ATTR_REG_DM_MR_OFFSET); in UVERBS_HANDLER()
64 ret = uverbs_copy_from(&attr.length, attrs, in UVERBS_HANDLER()
69 ret = uverbs_get_flags32(&attr.access_flags, attrs, in UVERBS_HANDLER()
86 mr = pd->device->reg_dm_mr(pd, dm, &attr, attrs); in UVERBS_HANDLER()
99 ret = uverbs_copy_to(attrs, UVERBS_ATTR_REG_DM_MR_RESP_LKEY, &mr->lkey, in UVERBS_HANDLER()
104 ret = uverbs_copy_to(attrs, UVERBS_ATTR_REG_DM_MR_RESP_RKEY, in UVERBS_HANDLER()
/Linux-v4.19/arch/arm64/mm/
Ddma-mapping.c37 static pgprot_t __get_dma_pgprot(unsigned long attrs, pgprot_t prot, in __get_dma_pgprot() argument
40 if (!coherent || (attrs & DMA_ATTR_WRITE_COMBINE)) in __get_dma_pgprot()
96 unsigned long attrs) in __dma_alloc() argument
101 pgprot_t prot = __get_dma_pgprot(attrs, PAGE_KERNEL, false); in __dma_alloc()
115 ptr = swiotlb_alloc(dev, size, dma_handle, flags, attrs); in __dma_alloc()
136 swiotlb_free(dev, size, ptr, *dma_handle, attrs); in __dma_alloc()
143 unsigned long attrs) in __dma_free() argument
154 swiotlb_free(dev, size, swiotlb_addr, dma_handle, attrs); in __dma_free()
160 unsigned long attrs) in __swiotlb_map_page() argument
164 dev_addr = swiotlb_map_page(dev, page, offset, size, dir, attrs); in __swiotlb_map_page()
[all …]
/Linux-v4.19/net/tipc/
Dnet.c156 struct nlattr *attrs; in __tipc_nl_add_net() local
164 attrs = nla_nest_start(msg->skb, TIPC_NLA_NET); in __tipc_nl_add_net()
165 if (!attrs) in __tipc_nl_add_net()
174 nla_nest_end(msg->skb, attrs); in __tipc_nl_add_net()
180 nla_nest_cancel(msg->skb, attrs); in __tipc_nl_add_net()
214 struct nlattr *attrs[TIPC_NLA_NET_MAX + 1]; in __tipc_nl_net_set() local
219 if (!info->attrs[TIPC_NLA_NET]) in __tipc_nl_net_set()
222 err = nla_parse_nested(attrs, TIPC_NLA_NET_MAX, in __tipc_nl_net_set()
223 info->attrs[TIPC_NLA_NET], tipc_nl_net_policy, in __tipc_nl_net_set()
233 if (attrs[TIPC_NLA_NET_ID]) { in __tipc_nl_net_set()
[all …]
Dbearer.c680 struct nlattr *attrs; in __tipc_nl_add_bearer() local
688 attrs = nla_nest_start(msg->skb, TIPC_NLA_BEARER); in __tipc_nl_add_bearer()
689 if (!attrs) in __tipc_nl_add_bearer()
717 nla_nest_end(msg->skb, attrs); in __tipc_nl_add_bearer()
725 nla_nest_cancel(msg->skb, attrs); in __tipc_nl_add_bearer()
771 struct nlattr *attrs[TIPC_NLA_BEARER_MAX + 1]; in tipc_nl_bearer_get() local
774 if (!info->attrs[TIPC_NLA_BEARER]) in tipc_nl_bearer_get()
777 err = nla_parse_nested(attrs, TIPC_NLA_BEARER_MAX, in tipc_nl_bearer_get()
778 info->attrs[TIPC_NLA_BEARER], in tipc_nl_bearer_get()
783 if (!attrs[TIPC_NLA_BEARER_NAME]) in tipc_nl_bearer_get()
[all …]
/Linux-v4.19/fs/orangefs/
Dorangefs-utils.c83 static int orangefs_inode_flags(struct ORANGEFS_sys_attr_s *attrs) in orangefs_inode_flags() argument
86 if (attrs->flags & ORANGEFS_IMMUTABLE_FL) in orangefs_inode_flags()
90 if (attrs->flags & ORANGEFS_APPEND_FL) in orangefs_inode_flags()
94 if (attrs->flags & ORANGEFS_NOATIME_FL) in orangefs_inode_flags()
101 static int orangefs_inode_perms(struct ORANGEFS_sys_attr_s *attrs) in orangefs_inode_perms() argument
105 if (attrs->perms & ORANGEFS_O_EXECUTE) in orangefs_inode_perms()
107 if (attrs->perms & ORANGEFS_O_WRITE) in orangefs_inode_perms()
109 if (attrs->perms & ORANGEFS_O_READ) in orangefs_inode_perms()
112 if (attrs->perms & ORANGEFS_G_EXECUTE) in orangefs_inode_perms()
114 if (attrs->perms & ORANGEFS_G_WRITE) in orangefs_inode_perms()
[all …]
/Linux-v4.19/fs/hostfs/
Dhostfs_user.c194 int set_attr(const char *file, struct hostfs_iattr *attrs, int fd) in set_attr() argument
200 if (attrs->ia_valid & HOSTFS_ATTR_MODE) { in set_attr()
202 if (fchmod(fd, attrs->ia_mode) != 0) in set_attr()
204 } else if (chmod(file, attrs->ia_mode) != 0) { in set_attr()
208 if (attrs->ia_valid & HOSTFS_ATTR_UID) { in set_attr()
210 if (fchown(fd, attrs->ia_uid, -1)) in set_attr()
212 } else if (chown(file, attrs->ia_uid, -1)) { in set_attr()
216 if (attrs->ia_valid & HOSTFS_ATTR_GID) { in set_attr()
218 if (fchown(fd, -1, attrs->ia_gid)) in set_attr()
220 } else if (chown(file, -1, attrs->ia_gid)) { in set_attr()
[all …]
/Linux-v4.19/drivers/infiniband/hw/mlx5/
Dflow.c42 struct ib_uverbs_file *file, struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER()
53 uverbs_attr_get_uobject(attrs, MLX5_IB_ATTR_CREATE_FLOW_HANDLE); in UVERBS_HANDLER()
60 uverbs_attr_is_valid(attrs, MLX5_IB_ATTR_CREATE_FLOW_DEST_DEVX); in UVERBS_HANDLER()
61 dest_qp = uverbs_attr_is_valid(attrs, in UVERBS_HANDLER()
69 attrs, MLX5_IB_ATTR_CREATE_FLOW_DEST_DEVX); in UVERBS_HANDLER()
81 qp = uverbs_attr_get_obj(attrs, in UVERBS_HANDLER()
101 attrs, MLX5_IB_ATTR_CREATE_FLOW_MATCH_VALUE); in UVERBS_HANDLER()
102 inlen = uverbs_attr_get_len(attrs, in UVERBS_HANDLER()
104 fs_matcher = uverbs_attr_get_obj(attrs, in UVERBS_HANDLER()
131 struct ib_uverbs_file *file, struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER()
[all …]
/Linux-v4.19/net/wireless/
Dnl80211.c65 __cfg80211_wdev_from_attrs(struct net *netns, struct nlattr **attrs) in __cfg80211_wdev_from_attrs() argument
69 bool have_ifidx = attrs[NL80211_ATTR_IFINDEX]; in __cfg80211_wdev_from_attrs()
70 bool have_wdev_id = attrs[NL80211_ATTR_WDEV]; in __cfg80211_wdev_from_attrs()
81 ifidx = nla_get_u32(attrs[NL80211_ATTR_IFINDEX]); in __cfg80211_wdev_from_attrs()
83 wdev_id = nla_get_u64(attrs[NL80211_ATTR_WDEV]); in __cfg80211_wdev_from_attrs()
118 __cfg80211_rdev_from_attrs(struct net *netns, struct nlattr **attrs) in __cfg80211_rdev_from_attrs() argument
125 if (!attrs[NL80211_ATTR_WIPHY] && in __cfg80211_rdev_from_attrs()
126 !attrs[NL80211_ATTR_IFINDEX] && in __cfg80211_rdev_from_attrs()
127 !attrs[NL80211_ATTR_WDEV]) in __cfg80211_rdev_from_attrs()
130 if (attrs[NL80211_ATTR_WIPHY]) in __cfg80211_rdev_from_attrs()
[all …]
/Linux-v4.19/include/xen/arm/
Dpage-coherent.h18 enum dma_data_direction dir, unsigned long attrs);
21 unsigned long attrs);
29 dma_addr_t *dma_handle, gfp_t flags, unsigned long attrs) in xen_alloc_coherent_pages() argument
31 return xen_get_dma_ops(hwdev)->alloc(hwdev, size, dma_handle, flags, attrs); in xen_alloc_coherent_pages()
35 void *cpu_addr, dma_addr_t dma_handle, unsigned long attrs) in xen_free_coherent_pages() argument
37 xen_get_dma_ops(hwdev)->free(hwdev, size, cpu_addr, dma_handle, attrs); in xen_free_coherent_pages()
42 enum dma_data_direction dir, unsigned long attrs) in xen_dma_map_page() argument
61 xen_get_dma_ops(hwdev)->map_page(hwdev, page, offset, size, dir, attrs); in xen_dma_map_page()
63 __xen_dma_map_page(hwdev, page, dev_addr, offset, size, dir, attrs); in xen_dma_map_page()
67 size_t size, enum dma_data_direction dir, unsigned long attrs) in xen_dma_unmap_page() argument
[all …]
/Linux-v4.19/tools/testing/selftests/efivarfs/
Defivarfs.sh49 local attrs='\x07\x00\x00\x00'
52 printf "$attrs\x00" > $file
85 local attrs='\x07\x00\x00\x00'
88 printf "$attrs\x00" > $file
112 local attrs='\x07\x00\x00\x00'
115 printf "$attrs\x00" > $file
123 printf "$attrs" > $file
140 local attrs='\x07\x00\x00\x00'
147 printf "$attrs\x00" > $file
166 local attrs='\x07\x00\x00\x00'
[all …]
/Linux-v4.19/net/decnet/
Ddn_fib.c267 struct dn_fib_info *dn_fib_create_info(const struct rtmsg *r, struct nlattr *attrs[], in dn_fib_create_info() argument
281 if (attrs[RTA_MULTIPATH] && in dn_fib_create_info()
282 (nhs = dn_fib_count_nhs(attrs[RTA_MULTIPATH])) == 0) in dn_fib_create_info()
294 if (attrs[RTA_PRIORITY]) in dn_fib_create_info()
295 fi->fib_priority = nla_get_u32(attrs[RTA_PRIORITY]); in dn_fib_create_info()
297 if (attrs[RTA_METRICS]) { in dn_fib_create_info()
301 nla_for_each_nested(attr, attrs[RTA_METRICS], rem) { in dn_fib_create_info()
314 if (attrs[RTA_PREFSRC]) in dn_fib_create_info()
315 fi->fib_prefsrc = nla_get_le16(attrs[RTA_PREFSRC]); in dn_fib_create_info()
317 if (attrs[RTA_MULTIPATH]) { in dn_fib_create_info()
[all …]
/Linux-v4.19/arch/arm/mm/
Ddma-mapping.c131 unsigned long attrs) in arm_dma_map_page() argument
133 if ((attrs & DMA_ATTR_SKIP_CPU_SYNC) == 0) in arm_dma_map_page()
140 unsigned long attrs) in arm_coherent_dma_map_page() argument
160 size_t size, enum dma_data_direction dir, unsigned long attrs) in arm_dma_unmap_page() argument
162 if ((attrs & DMA_ATTR_SKIP_CPU_SYNC) == 0) in arm_dma_unmap_page()
207 dma_addr_t *handle, gfp_t gfp, unsigned long attrs);
209 dma_addr_t handle, unsigned long attrs);
212 unsigned long attrs);
634 static inline pgprot_t __get_dma_pgprot(unsigned long attrs, pgprot_t prot) in __get_dma_pgprot() argument
636 prot = (attrs & DMA_ATTR_WRITE_COMBINE) ? in __get_dma_pgprot()
[all …]
/Linux-v4.19/net/nfc/
Dnetlink.c737 if (!info->attrs[NFC_ATTR_DEVICE_INDEX]) in nfc_genl_get_device()
740 idx = nla_get_u32(info->attrs[NFC_ATTR_DEVICE_INDEX]); in nfc_genl_get_device()
774 if (!info->attrs[NFC_ATTR_DEVICE_INDEX]) in nfc_genl_dev_up()
777 idx = nla_get_u32(info->attrs[NFC_ATTR_DEVICE_INDEX]); in nfc_genl_dev_up()
795 if (!info->attrs[NFC_ATTR_DEVICE_INDEX]) in nfc_genl_dev_down()
798 idx = nla_get_u32(info->attrs[NFC_ATTR_DEVICE_INDEX]); in nfc_genl_dev_down()
819 if (!info->attrs[NFC_ATTR_DEVICE_INDEX] || in nfc_genl_start_poll()
820 ((!info->attrs[NFC_ATTR_IM_PROTOCOLS] && in nfc_genl_start_poll()
821 !info->attrs[NFC_ATTR_PROTOCOLS]) && in nfc_genl_start_poll()
822 !info->attrs[NFC_ATTR_TM_PROTOCOLS])) in nfc_genl_start_poll()
[all …]
/Linux-v4.19/drivers/hwmon/
Ds3c-hwmon.c57 struct s3c_hwmon_attr attrs[8]; member
132 .attrs = s3c_hwmon_attrs,
221 struct s3c_hwmon_attr *attrs, in s3c_hwmon_create_attr() argument
227 snprintf(attrs->in_name, sizeof(attrs->in_name), "in%d_input", channel); in s3c_hwmon_create_attr()
229 attr = &attrs->in; in s3c_hwmon_create_attr()
232 attr->dev_attr.attr.name = attrs->in_name; in s3c_hwmon_create_attr()
244 snprintf(attrs->label_name, sizeof(attrs->label_name), in s3c_hwmon_create_attr()
247 attr = &attrs->label; in s3c_hwmon_create_attr()
250 attr->dev_attr.attr.name = attrs->label_name; in s3c_hwmon_create_attr()
256 device_remove_file(dev, &attrs->in.dev_attr); in s3c_hwmon_create_attr()
[all …]
/Linux-v4.19/net/ipv6/
Dseg6_local.c42 unsigned long attrs; member
542 .attrs = 0,
547 .attrs = (1 << SEG6_LOCAL_NH6),
552 .attrs = (1 << SEG6_LOCAL_TABLE),
557 .attrs = (1 << SEG6_LOCAL_OIF),
562 .attrs = (1 << SEG6_LOCAL_NH6),
567 .attrs = (1 << SEG6_LOCAL_NH4),
572 .attrs = (1 << SEG6_LOCAL_TABLE),
577 .attrs = (1 << SEG6_LOCAL_SRH),
582 .attrs = (1 << SEG6_LOCAL_SRH),
[all …]
/Linux-v4.19/net/xfrm/
Dxfrm_user.c36 static int verify_one_alg(struct nlattr **attrs, enum xfrm_attr_type_t type) in verify_one_alg() argument
38 struct nlattr *rt = attrs[type]; in verify_one_alg()
62 static int verify_auth_trunc(struct nlattr **attrs) in verify_auth_trunc() argument
64 struct nlattr *rt = attrs[XFRMA_ALG_AUTH_TRUNC]; in verify_auth_trunc()
78 static int verify_aead(struct nlattr **attrs) in verify_aead() argument
80 struct nlattr *rt = attrs[XFRMA_ALG_AEAD]; in verify_aead()
94 static void verify_one_addr(struct nlattr **attrs, enum xfrm_attr_type_t type, in verify_one_addr() argument
97 struct nlattr *rt = attrs[type]; in verify_one_addr()
103 static inline int verify_sec_ctx_len(struct nlattr **attrs) in verify_sec_ctx_len() argument
105 struct nlattr *rt = attrs[XFRMA_SEC_CTX]; in verify_sec_ctx_len()
[all …]
/Linux-v4.19/arch/powerpc/kernel/
Ddma-iommu.c22 unsigned long attrs) in dma_iommu_alloc_coherent() argument
31 unsigned long attrs) in dma_iommu_free_coherent() argument
44 unsigned long attrs) in dma_iommu_map_page() argument
47 size, device_to_mask(dev), direction, attrs); in dma_iommu_map_page()
53 unsigned long attrs) in dma_iommu_unmap_page() argument
56 attrs); in dma_iommu_unmap_page()
62 unsigned long attrs) in dma_iommu_map_sg() argument
65 device_to_mask(dev), direction, attrs); in dma_iommu_map_sg()
70 unsigned long attrs) in dma_iommu_unmap_sg() argument
73 direction, attrs); in dma_iommu_unmap_sg()

12345678910>>...41