Home
last modified time | relevance | path

Searched refs:new_attr (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/
H A Ddevlink.c236 const struct devlink_port_new_attrs *new_attr, in mlx5_sf_add() argument
244 sf = mlx5_sf_alloc(table, esw, new_attr->controller, new_attr->sfnum, extack); in mlx5_sf_add()
250 &sf->dl_port, new_attr->controller, new_attr->sfnum); in mlx5_sf_add()
255 trace_mlx5_sf_add(dev, sf->port_index, sf->controller, sf->hw_fn_id, new_attr->sfnum); in mlx5_sf_add()
265 mlx5_sf_new_check_attr(struct mlx5_core_dev *dev, const struct devlink_port_new_attrs *new_attr, in mlx5_sf_new_check_attr() argument
270 if (new_attr->flavour != DEVLINK_PORT_FLAVOUR_PCI_SF) { in mlx5_sf_new_check_attr()
274 if (new_attr->port_index_valid) { in mlx5_sf_new_check_attr()
279 if (!new_attr->sfnum_valid) { in mlx5_sf_new_check_attr()
284 if (new_attr->controller_valid && new_attr->controller && in mlx5_sf_new_check_attr()
289 controller = new_attr->controller_valid ? new_attr->controller : 0; in mlx5_sf_new_check_attr()
[all …]
/linux/drivers/net/ethernet/intel/ice/devlink/
H A Dport.c624 const struct devlink_port_new_attrs *new_attr, in ice_devlink_port_new_check_attr() argument
627 if (new_attr->flavour != DEVLINK_PORT_FLAVOUR_PCI_SF) { in ice_devlink_port_new_check_attr()
632 if (new_attr->controller_valid) { in ice_devlink_port_new_check_attr()
637 if (new_attr->port_index_valid) { in ice_devlink_port_new_check_attr()
642 if (new_attr->pfnum != pf->hw.pf_id) { in ice_devlink_port_new_check_attr()
828 const struct devlink_port_new_attrs *new_attr, in ice_reserve_sf_num() argument
834 if (!new_attr->sfnum_valid) in ice_reserve_sf_num()
839 err = xa_insert(&pf->sf_nums, new_attr->sfnum, NULL, GFP_KERNEL); in ice_reserve_sf_num()
846 *sfnum = new_attr->sfnum; in ice_reserve_sf_num()
910 const struct devlink_port_new_attrs *new_attr, in ice_alloc_dynamic_port() argument
[all …]
H A Dport.h55 const struct devlink_port_new_attrs *new_attr,
/linux/tools/perf/tests/
H A Dwp.c156 struct perf_event_attr new_attr; in test__wp_modify()
166 get__perf_event_attr(&new_attr, HW_BREAKPOINT_W, (void *)&data2[0], in test__wp_modify()
168 new_attr.disabled = 1; in test__wp_modify()
169 ret = ioctl(fd, PERF_EVENT_IOC_MODIFY_ATTRIBUTES, &new_attr); in test__wp_modify()
/linux/tools/testing/selftests/perf_events/
H A Dsigtrap_threads.c185 struct perf_event_attr new_attr = make_event_attr(true, &ctx.iterate_on, 42); in TEST_F() local
187 EXPECT_EQ(ioctl(self->fd, PERF_EVENT_IOC_MODIFY_ATTRIBUTES, &new_attr), 0); in TEST_F()
/linux/fs/
H A Dpidfs.c1040 struct pidfs_attr *new_attr __free(kfree) = NULL; in pidfs_register_pid_gfp()
1054 new_attr = kmem_cache_zalloc(pidfs_attr_cachep, gfp); in pidfs_register_pid_gfp()
1055 if (!new_attr) in pidfs_register_pid_gfp()
1058 INIT_LIST_HEAD_RCU(&new_attr->xattrs); in pidfs_register_pid_gfp()
1069 pid->attr = no_free_ptr(new_attr); in pidfs_register_pid_gfp()
/linux/tools/net/ynl/pyynl/lib/
H A Dnlspec.py224 attr = self.new_attr(elem, val)
233 attr = self.new_attr(combined_elem, real_attr.value)
238 def new_attr(self, elem, value): member in SpecAttrSet
/linux/fs/ntfs3/
H A Dfrecord.c1429 __le16 flags, struct ATTRIB **new_attr, in ni_insert_nonresident() argument
1480 if (new_attr) in ni_insert_nonresident()
1481 *new_attr = attr; in ni_insert_nonresident()
1505 struct ATTRIB **new_attr, struct mft_inode **mi, in ni_insert_resident() argument
1533 if (new_attr) in ni_insert_resident()
1534 *new_attr = attr; in ni_insert_resident()
H A Dntfs_fs.h596 __le16 flags, struct ATTRIB **new_attr,
600 struct ATTRIB **new_attr, struct mft_inode **mi,
/linux/kernel/events/
H A Dcore.c6696 struct perf_event_attr new_attr; in _perf_ioctl() local
6698 &new_attr); in _perf_ioctl()
6703 return perf_event_modify_attr(event, &new_attr); in _perf_ioctl()
/linux/tools/net/ynl/pyynl/
H A Dynl_gen_c.py1146 def new_attr(self, elem, value): member in AttrSet