Home
last modified time | relevance | path

Searched refs:new_attrs (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/infiniband/sw/siw/
A Dsiw_verbs.c539 struct siw_qp_attrs new_attrs; in siw_verbs_modify_qp() local
550 memset(&new_attrs, 0, sizeof(new_attrs)); in siw_verbs_modify_qp()
556 new_attrs.flags |= SIW_RDMA_READ_ENABLED; in siw_verbs_modify_qp()
558 new_attrs.flags |= SIW_RDMA_WRITE_ENABLED; in siw_verbs_modify_qp()
560 new_attrs.flags |= SIW_RDMA_BIND_ENABLED; in siw_verbs_modify_qp()
566 new_attrs.state = ib_qp_state_to_siw_qp_state[attr->qp_state]; in siw_verbs_modify_qp()
568 if (new_attrs.state > SIW_QP_STATE_RTS) in siw_verbs_modify_qp()
578 rv = siw_qp_modify(qp, &new_attrs, siw_attr_mask); in siw_verbs_modify_qp()
/linux/kernel/
A Dworkqueue.c3960 struct workqueue_attrs *new_attrs, *tmp_attrs; in apply_wqattrs_prepare() local
3967 new_attrs = alloc_workqueue_attrs(); in apply_wqattrs_prepare()
3969 if (!ctx || !new_attrs || !tmp_attrs) in apply_wqattrs_prepare()
3977 copy_workqueue_attrs(new_attrs, attrs); in apply_wqattrs_prepare()
3978 cpumask_and(new_attrs->cpumask, new_attrs->cpumask, wq_unbound_cpumask); in apply_wqattrs_prepare()
3979 if (unlikely(cpumask_empty(new_attrs->cpumask))) in apply_wqattrs_prepare()
3987 copy_workqueue_attrs(tmp_attrs, new_attrs); in apply_wqattrs_prepare()
4010 copy_workqueue_attrs(new_attrs, attrs); in apply_wqattrs_prepare()
4011 cpumask_and(new_attrs->cpumask, new_attrs->cpumask, cpu_possible_mask); in apply_wqattrs_prepare()
4012 ctx->attrs = new_attrs; in apply_wqattrs_prepare()
[all …]
A Dparams.c630 struct attribute **new_attrs; in add_sysfs_param() local
660 new_attrs = krealloc(mk->mp->grp.attrs, in add_sysfs_param()
663 if (!new_attrs) in add_sysfs_param()
665 mk->mp->grp.attrs = new_attrs; in add_sysfs_param()
/linux/drivers/hwmon/pmbus/
A Dpmbus_core.c1007 void *new_attrs = devm_krealloc(data->dev, data->group.attrs, in pmbus_add_attribute() local
1010 if (!new_attrs) in pmbus_add_attribute()
1012 data->group.attrs = new_attrs; in pmbus_add_attribute()
/linux/net/core/
A Ddevlink.c1620 struct devlink_port_new_attrs new_attrs = {}; in devlink_nl_cmd_port_new_doit() local
1633 new_attrs.flavour = nla_get_u16(info->attrs[DEVLINK_ATTR_PORT_FLAVOUR]); in devlink_nl_cmd_port_new_doit()
1634 new_attrs.pfnum = in devlink_nl_cmd_port_new_doit()
1639 new_attrs.port_index = in devlink_nl_cmd_port_new_doit()
1641 new_attrs.port_index_valid = true; in devlink_nl_cmd_port_new_doit()
1644 new_attrs.controller = in devlink_nl_cmd_port_new_doit()
1646 new_attrs.controller_valid = true; in devlink_nl_cmd_port_new_doit()
1648 if (new_attrs.flavour == DEVLINK_PORT_FLAVOUR_PCI_SF && in devlink_nl_cmd_port_new_doit()
1650 new_attrs.sfnum = nla_get_u32(info->attrs[DEVLINK_ATTR_PORT_PCI_SF_NUMBER]); in devlink_nl_cmd_port_new_doit()
1651 new_attrs.sfnum_valid = true; in devlink_nl_cmd_port_new_doit()
[all …]

Completed in 43 milliseconds