Home
last modified time | relevance | path

Searched refs:attrs (Results 26 – 50 of 1591) sorted by relevance

12345678910>>...64

/openbmc/linux/net/ieee802154/
H A Dnl802154.c101 if (!attrs[NL802154_ATTR_WPAN_PHY] && in __cfg802154_rdev_from_attrs()
102 !attrs[NL802154_ATTR_IFINDEX] && in __cfg802154_rdev_from_attrs()
103 !attrs[NL802154_ATTR_WPAN_DEV]) in __cfg802154_rdev_from_attrs()
106 if (attrs[NL802154_ATTR_WPAN_PHY]) in __cfg802154_rdev_from_attrs()
110 if (attrs[NL802154_ATTR_WPAN_DEV]) { in __cfg802154_rdev_from_attrs()
134 if (attrs[NL802154_ATTR_IFINDEX]) { in __cfg802154_rdev_from_attrs()
265 info->info.attrs); in nl802154_prepare_wpan_dev_dump()
1445 if (info->attrs[NL802154_ATTR_PAGE]) in nl802154_trigger_scan()
1658 if (!attrs[NL802154_DEV_ADDR_ATTR_PAN_ID] || !attrs[NL802154_DEV_ADDR_ATTR_MODE]) in ieee802154_llsec_parse_dev_addr()
1926 !attrs[NL802154_KEY_ATTR_BYTES]) in nl802154_add_llsec_key()
[all …]
H A Dnl-phy.c83 if (!info->attrs[IEEE802154_ATTR_PHY_NAME]) in ieee802154_list_phy()
86 name = nla_data(info->attrs[IEEE802154_ATTR_PHY_NAME]); in ieee802154_list_phy()
174 if (!info->attrs[IEEE802154_ATTR_PHY_NAME]) in ieee802154_add_iface()
181 if (info->attrs[IEEE802154_ATTR_DEV_NAME]) { in ieee802154_add_iface()
203 if (info->attrs[IEEE802154_ATTR_HW_ADDR] && in ieee802154_add_iface()
204 nla_len(info->attrs[IEEE802154_ATTR_HW_ADDR]) != in ieee802154_add_iface()
210 if (info->attrs[IEEE802154_ATTR_DEV_TYPE]) { in ieee802154_add_iface()
226 if (info->attrs[IEEE802154_ATTR_HW_ADDR]) { in ieee802154_add_iface()
276 if (!info->attrs[IEEE802154_ATTR_DEV_NAME]) in ieee802154_del_iface()
296 if (info->attrs[IEEE802154_ATTR_PHY_NAME]) { in ieee802154_del_iface()
[all …]
/openbmc/linux/net/netlabel/
H A Dnetlabel_mgmt.c92 if (info->attrs[NLBL_MGMT_A_DOMAIN]) { in netlbl_mgmt_add_common()
110 if (info->attrs[NLBL_MGMT_A_FAMILY]) in netlbl_mgmt_add_common()
117 if (!info->attrs[NLBL_MGMT_A_CV4DOI]) in netlbl_mgmt_add_common()
129 if (!info->attrs[NLBL_MGMT_A_CLPDOI]) in netlbl_mgmt_add_common()
148 if (info->attrs[NLBL_MGMT_A_IPV4ADDR]) { in netlbl_mgmt_add_common()
426 if ((!info->attrs[NLBL_MGMT_A_DOMAIN]) || in netlbl_mgmt_add()
428 (info->attrs[NLBL_MGMT_A_IPV4ADDR] && in netlbl_mgmt_add()
430 (info->attrs[NLBL_MGMT_A_IPV4MASK] && in netlbl_mgmt_add()
458 if (!info->attrs[NLBL_MGMT_A_DOMAIN]) in netlbl_mgmt_remove()
551 (info->attrs[NLBL_MGMT_A_IPV4ADDR] && in netlbl_mgmt_adddef()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_offload.c97 if (attrs->replay_esn.trigger) { in mlx5e_ipsec_packet_setup()
102 attrs->replay_esn.replay_window); in mlx5e_ipsec_packet_setup()
107 attrs->replay_esn.esn); in mlx5e_ipsec_packet_setup()
126 attrs->lft.hard_packet_limit); in mlx5e_ipsec_packet_setup()
132 attrs->lft.soft_packet_limit); in mlx5e_ipsec_packet_setup()
140 struct mlx5_accel_esp_xfrm_attrs *attrs = &sa_entry->attrs; in mlx5_create_ipsec_obj() local
159 if (attrs->replay_esn.trigger) { in mlx5_create_ipsec_obj()
293 memcpy(&sa_entry->attrs, attrs, sizeof(sa_entry->attrs)); in mlx5_accel_esp_modify_xfrm()
365 struct mlx5_accel_esp_xfrm_attrs *attrs = &sa_entry->attrs; in mlx5e_ipsec_handle_limits() local
454 attrs = &sa_entry->attrs; in mlx5e_ipsec_handle_event()
[all …]
H A Dipsec_fs.c1325 struct mlx5_accel_esp_xfrm_attrs *attrs = &sa_entry->attrs; in rx_add_rule() local
1336 rx = rx_ft_get(mdev, ipsec, attrs->family, attrs->type); in rx_add_rule()
1349 setup_fte_addr6(spec, attrs->saddr.a6, attrs->daddr.a6); in rx_add_rule()
1351 setup_fte_spi(spec, attrs->spi, attrs->encap); in rx_add_rule()
1419 rx_ft_put(ipsec, attrs->family, attrs->type); in rx_add_rule()
1449 setup_fte_addr6(spec, attrs->saddr.a6, attrs->daddr.a6); in tx_add_rule()
1543 setup_fte_addr6(spec, attrs->saddr.a6, attrs->daddr.a6); in tx_add_policy()
1596 tx_ft_put_policy(ipsec, attrs->prio, attrs->type); in tx_add_policy()
1629 setup_fte_addr6(spec, attrs->saddr.a6, attrs->daddr.a6); in rx_add_policy()
1670 rx_ft_put_policy(pol_entry->ipsec, attrs->family, attrs->prio, attrs->type); in rx_add_policy()
[all …]
/openbmc/linux/net/wireless/
H A Dnl80211.c3231 struct nlattr **attrs = info->attrs; in nl80211_parse_chandef() local
3471 info->attrs); in nl80211_set_wiphy()
5190 if (!attrs[attr]) in nl80211_parse_tx_bitrate_mask()
8982 if (!attrs[NL80211_ATTR_MAC] && !attrs[NL80211_ATTR_MAC_MASK]) { in nl80211_parse_random_mac()
8992 if (!attrs[NL80211_ATTR_MAC] || !attrs[NL80211_ATTR_MAC_MASK]) in nl80211_parse_random_mac()
9894 info->attrs, in nl80211_start_sched_scan()
10944 if (!attrs[NL80211_ATTR_MAC] || !attrs[NL80211_ATTR_WIPHY_FREQ]) in nl80211_assoc_bss()
11113 if (!attrs) in nl80211_associate()
11191 kfree(attrs); in nl80211_associate()
11192 attrs = NULL; in nl80211_associate()
[all …]
/openbmc/linux/drivers/infiniband/sw/siw/
H A Dsiw_qp.c138 qp->attrs.sk = NULL; in siw_qp_llp_close()
209 qp->attrs.irq_size = 0; in siw_qp_readq_init()
217 qp->attrs.orq_size = 0; in siw_qp_readq_init()
218 qp->attrs.irq_size = 0; in siw_qp_readq_init()
300 if (qp->attrs.orq_size) in siw_qp_mpa_rts()
643 switch (attrs->state) { in siw_qp_nextstate_from_idle()
683 qp->attrs.sk = attrs->sk; in siw_qp_nextstate_from_idle()
688 qp->attrs.orq_size, qp->attrs.irq_size); in siw_qp_nextstate_from_idle()
711 switch (attrs->state) { in siw_qp_nextstate_from_rts()
770 switch (attrs->state) { in siw_qp_nextstate_from_term()
[all …]
H A Dsiw_verbs.c149 attr->max_res_rd_atom = sdev->attrs.max_qp * sdev->attrs.max_ird; in siw_query_device()
311 if (attrs->create_flags) in siw_create_qp()
342 if (attrs->cap.max_send_wr + attrs->cap.max_recv_wr == 0) { in siw_create_qp()
348 if (!attrs->send_cq || (!attrs->recv_cq && !attrs->srq)) { in siw_create_qp()
402 if (attrs->srq) { in siw_create_qp()
409 qp->attrs.rq_size = 0; in siw_create_qp()
426 qp->attrs.sq_max_sges = attrs->cap.max_send_sge; in siw_create_qp()
427 qp->attrs.rq_max_sges = attrs->cap.max_recv_sge; in siw_create_qp()
790 qp->attrs.state); in siw_post_send()
1610 if (attrs->max_wr == 0 || attrs->max_wr > SIW_MAX_SRQ_WR || in siw_create_srq()
[all …]
/openbmc/linux/drivers/infiniband/core/
H A Duverbs_std_types_counters.c40 struct uverbs_attr_bundle *attrs) in uverbs_free_counters() argument
56 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER()
59 attrs, UVERBS_ATTR_CREATE_COUNTERS_HANDLE); in UVERBS_HANDLER()
60 struct ib_device *ib_dev = attrs->context->device; in UVERBS_HANDLER()
81 ret = ib_dev->ops.create_counters(counters, attrs); in UVERBS_HANDLER()
89 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER()
94 uverbs_attr_get_obj(attrs, UVERBS_ATTR_READ_COUNTERS_HANDLE); in UVERBS_HANDLER()
103 ret = uverbs_get_flags32(&read_attr.flags, attrs, in UVERBS_HANDLER()
109 uattr = uverbs_attr_get(attrs, UVERBS_ATTR_READ_COUNTERS_BUFF); in UVERBS_HANDLER()
114 attrs, array_size(read_attr.ncounters, sizeof(u64))); in UVERBS_HANDLER()
[all …]
H A Duverbs_std_types_dm.c39 struct uverbs_attr_bundle *attrs) in uverbs_free_dm() argument
46 return dm->device->ops.dealloc_dm(dm, attrs); in uverbs_free_dm()
50 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER()
54 uverbs_attr_get(attrs, UVERBS_ATTR_ALLOC_DM_HANDLE) in UVERBS_HANDLER()
56 struct ib_device *ib_dev = attrs->context->device; in UVERBS_HANDLER()
63 ret = uverbs_copy_from(&attr.length, attrs, in UVERBS_HANDLER()
68 ret = uverbs_copy_from(&attr.alignment, attrs, in UVERBS_HANDLER()
73 dm = ib_dev->ops.alloc_dm(ib_dev, attrs->context, &attr, attrs); in UVERBS_HANDLER()
/openbmc/linux/fs/hostfs/
H A Dhostfs_user.c201 if (attrs->ia_valid & HOSTFS_ATTR_MODE) { in set_attr()
203 if (fchmod(fd, attrs->ia_mode) != 0) in set_attr()
209 if (attrs->ia_valid & HOSTFS_ATTR_UID) { in set_attr()
211 if (fchown(fd, attrs->ia_uid, -1)) in set_attr()
217 if (attrs->ia_valid & HOSTFS_ATTR_GID) { in set_attr()
219 if (fchown(fd, -1, attrs->ia_gid)) in set_attr()
225 if (attrs->ia_valid & HOSTFS_ATTR_SIZE) { in set_attr()
227 if (ftruncate(fd, attrs->ia_size)) in set_attr()
240 if (attrs->ia_valid & ma) { in set_attr()
270 attrs->ia_atime = st.atime; in set_attr()
[all …]
/openbmc/linux/tools/testing/selftests/efivarfs/
H A Defivarfs.sh55 local attrs='\x07\x00\x00\x00'
58 printf "$attrs\x00" > $file
100 local attrs='\x07\x00\x00\x00'
103 printf "$attrs\x00" > $file
123 local attrs='\x07\x00\x00\x00'
126 printf "$attrs\x00" > $file
134 printf "$attrs" > $file
151 local attrs='\x07\x00\x00\x00'
158 printf "$attrs\x00" > $file
173 local attrs='\x07\x00\x00\x00'
[all …]
/openbmc/linux/kernel/dma/
H A Dmapping.c33 unsigned long attrs; member
41 this->attrs); in dmam_release()
90 gfp_t gfp, unsigned long attrs) in dmam_alloc_attrs() argument
108 dr->attrs = attrs; in dmam_alloc_attrs()
149 unsigned long attrs) in dma_map_page_attrs() argument
285 unsigned long attrs) in dma_unmap_sg_attrs() argument
401 unsigned long attrs) in dma_get_sgtable_attrs() argument
407 size, attrs); in dma_get_sgtable_attrs()
463 unsigned long attrs) in dma_mmap_attrs() argument
469 attrs); in dma_mmap_attrs()
[all …]
/openbmc/linux/net/ncsi/
H A Dncsi-netlink.c163 if (!info || !info->attrs) in ncsi_pkg_info_nl()
166 if (!info->attrs[NCSI_ATTR_IFINDEX]) in ncsi_pkg_info_nl()
228 if (!attrs[NCSI_ATTR_IFINDEX]) in ncsi_pkg_info_all_nl()
283 if (!info || !info->attrs) in ncsi_set_interface_nl()
286 if (!info->attrs[NCSI_ATTR_IFINDEX]) in ncsi_set_interface_nl()
362 if (!info || !info->attrs) in ncsi_clear_interface_nl()
365 if (!info->attrs[NCSI_ATTR_IFINDEX]) in ncsi_clear_interface_nl()
405 if (!info || !info->attrs) { in ncsi_send_cmd_nl()
425 if (!info->attrs[NCSI_ATTR_DATA]) { in ncsi_send_cmd_nl()
598 if (!info || !info->attrs) in ncsi_set_package_mask_nl()
[all …]
/openbmc/qemu/hw/misc/
H A Dtz-msc.c139 attrs.secure = 1; in tz_msc_read()
140 attrs.unspecified = 0; in tz_msc_read()
143 attrs.secure = 0; in tz_msc_read()
144 attrs.unspecified = 0; in tz_msc_read()
150 data = address_space_ldub(as, addr, attrs, &res); in tz_msc_read()
181 attrs.secure = 1; in tz_msc_write()
182 attrs.unspecified = 0; in tz_msc_write()
185 attrs.secure = 0; in tz_msc_write()
186 attrs.unspecified = 0; in tz_msc_write()
192 address_space_stb(as, addr, val, attrs, &res); in tz_msc_write()
[all …]
H A Dtz-ppc.c80 static bool tz_ppc_check(TZPPC *s, int n, MemTxAttrs attrs) in tz_ppc_check() argument
93 (attrs.user && !s->cfg_ap[n])) { in tz_ppc_check()
115 if (!tz_ppc_check(s, n, attrs)) { in tz_ppc_read()
116 trace_tz_ppc_read_blocked(n, addr, attrs.secure, attrs.user); in tz_ppc_read()
127 data = address_space_ldub(as, addr, attrs, &res); in tz_ppc_read()
154 if (!tz_ppc_check(s, n, attrs)) { in tz_ppc_write()
155 trace_tz_ppc_write_blocked(n, addr, attrs.secure, attrs.user); in tz_ppc_write()
165 address_space_stb(as, addr, val, attrs, &res); in tz_ppc_write()
168 address_space_stw_le(as, addr, val, attrs, &res); in tz_ppc_write()
171 address_space_stl_le(as, addr, val, attrs, &res); in tz_ppc_write()
[all …]
/openbmc/linux/fs/orangefs/
H A Dorangefs-utils.c91 if (attrs->flags & ORANGEFS_APPEND_FL) in orangefs_inode_flags()
108 if (attrs->perms & ORANGEFS_O_WRITE) in orangefs_inode_perms()
110 if (attrs->perms & ORANGEFS_O_READ) in orangefs_inode_perms()
115 if (attrs->perms & ORANGEFS_G_WRITE) in orangefs_inode_perms()
117 if (attrs->perms & ORANGEFS_G_READ) in orangefs_inode_perms()
122 if (attrs->perms & ORANGEFS_U_WRITE) in orangefs_inode_perms()
124 if (attrs->perms & ORANGEFS_U_READ) in orangefs_inode_perms()
127 if (attrs->perms & ORANGEFS_G_SGID) in orangefs_inode_perms()
129 if (attrs->perms & ORANGEFS_U_SUID) in orangefs_inode_perms()
140 struct ORANGEFS_sys_attr_s *attrs) in copy_attributes_from_inode() argument
[all …]
/openbmc/qemu/hw/intc/
H A Darm_gicv3_redist.c42 val &= mask_group(cs, attrs); in gicr_write_set_bitmap_reg()
51 val &= mask_group(cs, attrs); in gicr_write_clear_bitmap_reg()
59 reg &= mask_group(cs, attrs); in gicr_read_bitmap_reg()
390 *data = gicr_read_bitmap_reg(cs, attrs, val); in gicr_readl()
570 mask = mask_group(cs, attrs) & 0xffff0000U; in gicr_writel()
715 r = gicr_readb(cs, offset, data, attrs); in gicv3_redist_read()
718 r = gicr_readl(cs, offset, data, attrs); in gicv3_redist_read()
721 r = gicr_readll(cs, offset, data, attrs); in gicv3_redist_read()
774 r = gicr_writeb(cs, offset, data, attrs); in gicv3_redist_write()
777 r = gicr_writel(cs, offset, data, attrs); in gicv3_redist_write()
[all …]
/openbmc/linux/net/nfc/
H A Dnetlink.c814 if (info->attrs[NFC_ATTR_TM_PROTOCOLS]) in nfc_genl_start_poll()
817 if (info->attrs[NFC_ATTR_IM_PROTOCOLS]) in nfc_genl_start_poll()
887 !info->attrs[NFC_ATTR_PROTOCOLS]) in nfc_genl_activate_target()
941 !info->attrs[NFC_ATTR_COMM_MODE]) in nfc_genl_dep_link_up()
1117 if (info->attrs[NFC_ATTR_LLC_PARAM_RW]) in nfc_genl_llc_set_params()
1148 !info->attrs[NFC_ATTR_LLC_SDP]) in nfc_genl_llc_sdreq()
1233 if (!info->attrs[NFC_ATTR_DEVICE_INDEX] || !info->attrs[NFC_ATTR_FIRMWARE_NAME]) in nfc_genl_fw_download()
1290 !info->attrs[NFC_ATTR_SE_INDEX]) in nfc_genl_enable_se()
1313 !info->attrs[NFC_ATTR_SE_INDEX]) in nfc_genl_disable_se()
1517 !info->attrs[NFC_ATTR_SE_INDEX] || in nfc_genl_se_io()
[all …]
/openbmc/linux/include/linux/
H A Ddma-mapping.h106 unsigned long attrs);
113 unsigned long attrs);
138 unsigned long attrs);
141 unsigned long attrs);
173 unsigned long attrs) in dma_map_sg_attrs() argument
179 unsigned long attrs) in dma_unmap_sg_attrs() argument
189 unsigned long attrs) in dma_map_resource() argument
243 unsigned long attrs) in dma_mmap_attrs() argument
285 unsigned long attrs) in dma_alloc_noncontiguous() argument
337 size, dir, attrs); in dma_map_single_attrs()
[all …]
/openbmc/linux/net/smc/
H A Dsmc_stats.c50 struct nlattr *attrs; in smc_nl_fill_stats_rmb_data() local
58 if (!attrs) in smc_nl_fill_stats_rmb_data()
89 nla_nest_end(skb, attrs); in smc_nl_fill_stats_rmb_data()
103 struct nlattr *attrs; in smc_nl_fill_stats_bufsize_data() local
117 if (!attrs) in smc_nl_fill_stats_bufsize_data()
169 struct nlattr *attrs; in smc_nl_fill_stats_tech_data() local
177 if (!attrs) in smc_nl_fill_stats_tech_data()
265 struct nlattr *attrs; in smc_nl_get_stats() local
280 if (!attrs) in smc_nl_get_stats()
329 struct nlattr *attrs; in smc_nl_get_fback_details() local
[all …]
/openbmc/linux/net/tipc/
H A Dbearer.c823 struct nlattr *attrs; in __tipc_nl_add_bearer() local
832 if (!attrs) in __tipc_nl_add_bearer()
860 nla_nest_end(msg->skb, attrs); in __tipc_nl_add_bearer()
868 nla_nest_cancel(msg->skb, attrs); in __tipc_nl_add_bearer()
926 if (!attrs[TIPC_NLA_BEARER_NAME]) in tipc_nl_bearer_get()
976 if (!attrs[TIPC_NLA_BEARER_NAME]) in __tipc_nl_bearer_disable()
1188 struct nlattr *attrs; in __tipc_nl_add_media() local
1197 if (!attrs) in __tipc_nl_add_media()
1217 nla_nest_end(msg->skb, attrs); in __tipc_nl_add_media()
1276 if (!attrs[TIPC_NLA_MEDIA_NAME]) in tipc_nl_media_get()
[all …]
/openbmc/u-boot/arch/arm/mach-rmobile/
H A Dmemmap-gen3.c18 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
25 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
31 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
37 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
44 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
65 gen3_mem_map[i].attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | in enable_caches()
89 gen3_mem_map[i].attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | in enable_caches()
100 gen3_mem_map[i].attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | in enable_caches()
109 gen3_mem_map[i].attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | in enable_caches()
130 gen3_mem_map[i].attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | in enable_caches()
[all …]
/openbmc/linux/net/devlink/
H A Drate.c53 if (!attrs[DEVLINK_ATTR_RATE_NODE_NAME]) in devlink_rate_node_get_from_attrs()
73 struct nlattr **attrs = info->attrs; in devlink_rate_get_from_info() local
75 if (attrs[DEVLINK_ATTR_PORT_INDEX]) in devlink_rate_get_from_info()
77 else if (attrs[DEVLINK_ATTR_RATE_NODE_NAME]) in devlink_rate_get_from_info()
324 struct nlattr *nla_parent, **attrs = info->attrs; in devlink_nl_rate_set() local
330 if (attrs[DEVLINK_ATTR_RATE_TX_SHARE]) { in devlink_nl_rate_set()
343 if (attrs[DEVLINK_ATTR_RATE_TX_MAX]) { in devlink_nl_rate_set()
356 if (attrs[DEVLINK_ATTR_RATE_TX_PRIORITY]) { in devlink_nl_rate_set()
370 if (attrs[DEVLINK_ATTR_RATE_TX_WEIGHT]) { in devlink_nl_rate_set()
399 struct nlattr **attrs = info->attrs; in devlink_rate_set_ops_supported() local
[all …]
/openbmc/openbmc/poky/bitbake/lib/bs4/
H A Delement.py798 attrs = {}
799 elif attrs:
804 attrs = dict(attrs)
806 attrs = dict(attrs)
807 self.attrs = attrs
1013 self.attrs != other.attrs or
1082 attrs = []
1083 if self.attrs:
1133 if attrs:
1549 if attrs:
[all …]

12345678910>>...64