Lines Matching +full:attribute +full:- +full:set

1 /* SPDX-License-Identifier: GPL-2.0-only */
28 * ethnl_strz_size() - calculate attribute length for fixed size string
31 * Return: total length of an attribute with null terminated string from @s
39 * ethnl_put_strz() - put string attribute with fixed size string
41 * @attrtype: attribute type
44 * Puts an attribute with null terminated string from @s into the message.
56 return -EMSGSIZE; in ethnl_put_strz()
64 * ethnl_update_u32() - update u32 value from NLA_U32 attribute
66 * @attr: netlink attribute with new value or null
69 * Copy the u32 value from NLA_U32 netlink attribute @attr into variable
71 * is set to true if this function changed the value of *dst, otherwise it
90 * ethnl_update_u8() - update u8 value from NLA_U8 attribute
92 * @attr: netlink attribute with new value or null
95 * Copy the u8 value from NLA_U8 netlink attribute @attr into variable
97 * is set to true if this function changed the value of *dst, otherwise it
116 * ethnl_update_bool32() - update u32 used as bool from NLA_U8 attribute
118 * @attr: netlink attribute with new value or null
121 * Use the u8 value from NLA_U8 netlink attribute @attr to set u32 variable
123 * null. Bool pointed to by @mod is set to true if this function changed the
142 * ethnl_update_bool() - updateb bool used as bool from NLA_U8 attribute
144 * @attr: netlink attribute with new value or null
147 * Use the bool value from NLA_U8 netlink attribute @attr to set bool variable
149 * null. Bool pointed to by @mod is set to true if this function changed the
168 * ethnl_update_binary() - update binary data from NLA_BINARY attribute
171 * @attr: netlink attribute with new value or null
174 * Use the u8 value from NLA_U8 netlink attribute @attr to rewrite data block
175 * of length @len at @dst by attribute payload; do nothing if @attr is null.
176 * Bool pointed to by @mod is set to true if this function changed the logical
194 * ethnl_update_bitfield32() - update u32 value from NLA_BITFIELD32 attribute
196 * @attr: netlink attribute with new value or null
199 * Update bits in u32 value which are set in attribute's mask to values from
200 * attribute's value. Do nothing if @attr is null or the value wouldn't change;
201 * otherwise, set bool pointed to by @mod to true.
221 * ethnl_reply_header_size() - total size of reply header
250 * struct ethnl_req_info - base type of request information for GET requests
271 netdev_put(req_info->dev, &req_info->dev_tracker); in ethnl_parse_header_dev_put()
275 * ethnl_req_get_phydev() - Gets the phy_device targeted by this request,
297 * struct ethnl_reply_data - base type of reply data for GET requests
327 * struct ethnl_request_ops - unified handling of GET and SET requests
330 * @hdr_attr: attribute type for request header
333 * @allow_nodev_do: allow non-dump request with no device identification
334 * @set_ntf_cmd: notification to generate on changes (SET)
357 * ->reply_size() estimated.
361 * structure which were allocated by ->prepare_data(). When processing
362 * dump requests, ->cleanup() is called for each message.
364 * Check if set operation is supported for a given device, and perform
366 * - 0 if the operation is a noop for the device (rare)
367 * - 1 if operation should proceed to calling @set
368 * - negative errno on errors
370 * @set:
371 * Execute the set operation. The implementation should return
372 * - 0 if no configuration has changed
373 * - 1 if configuration changed and notification should be generated
374 * - negative errno on errors
408 int (*set)(struct ethnl_req_info *req_info, member