Searched refs:new_attrs (Results 1 – 6 of 6) sorted by relevance
/Linux-v6.1/drivers/infiniband/sw/siw/ |
D | siw_verbs.c | 544 struct siw_qp_attrs new_attrs; in siw_verbs_modify_qp() local 555 memset(&new_attrs, 0, sizeof(new_attrs)); in siw_verbs_modify_qp() 561 new_attrs.flags |= SIW_RDMA_READ_ENABLED; in siw_verbs_modify_qp() 563 new_attrs.flags |= SIW_RDMA_WRITE_ENABLED; in siw_verbs_modify_qp() 565 new_attrs.flags |= SIW_RDMA_BIND_ENABLED; in siw_verbs_modify_qp() 571 new_attrs.state = ib_qp_state_to_siw_qp_state[attr->qp_state]; in siw_verbs_modify_qp() 573 if (new_attrs.state > SIW_QP_STATE_RTS) in siw_verbs_modify_qp() 583 rv = siw_qp_modify(qp, &new_attrs, siw_attr_mask); in siw_verbs_modify_qp()
|
/Linux-v6.1/kernel/ |
D | workqueue.c | 3958 struct workqueue_attrs *new_attrs, *tmp_attrs; in apply_wqattrs_prepare() local 3965 new_attrs = alloc_workqueue_attrs(); in apply_wqattrs_prepare() 3967 if (!ctx || !new_attrs || !tmp_attrs) in apply_wqattrs_prepare() 3975 copy_workqueue_attrs(new_attrs, attrs); in apply_wqattrs_prepare() 3976 cpumask_and(new_attrs->cpumask, new_attrs->cpumask, wq_unbound_cpumask); in apply_wqattrs_prepare() 3977 if (unlikely(cpumask_empty(new_attrs->cpumask))) in apply_wqattrs_prepare() 3978 cpumask_copy(new_attrs->cpumask, wq_unbound_cpumask); in apply_wqattrs_prepare() 3985 copy_workqueue_attrs(tmp_attrs, new_attrs); in apply_wqattrs_prepare() 3992 ctx->dfl_pwq = alloc_unbound_pwq(wq, new_attrs); in apply_wqattrs_prepare() 3997 if (wq_calc_node_cpumask(new_attrs, node, -1, tmp_attrs->cpumask)) { in apply_wqattrs_prepare() [all …]
|
D | params.c | 630 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-v6.1/drivers/infiniband/hw/erdma/ |
D | erdma_verbs.c | 1267 struct erdma_qp_attrs new_attrs; in erdma_modify_qp() local 1275 memset(&new_attrs, 0, sizeof(new_attrs)); in erdma_modify_qp() 1278 new_attrs.state = ib_qp_state_to_erdma_qp_state[attr->qp_state]; in erdma_modify_qp() 1285 ret = erdma_modify_qp_internal(qp, &new_attrs, erdma_attr_mask); in erdma_modify_qp()
|
/Linux-v6.1/net/core/ |
D | devlink.c | 1791 struct devlink_port_new_attrs new_attrs = {}; in devlink_nl_cmd_port_new_doit() local 1804 new_attrs.flavour = nla_get_u16(info->attrs[DEVLINK_ATTR_PORT_FLAVOUR]); in devlink_nl_cmd_port_new_doit() 1805 new_attrs.pfnum = in devlink_nl_cmd_port_new_doit() 1810 new_attrs.port_index = in devlink_nl_cmd_port_new_doit() 1812 new_attrs.port_index_valid = true; in devlink_nl_cmd_port_new_doit() 1815 new_attrs.controller = in devlink_nl_cmd_port_new_doit() 1817 new_attrs.controller_valid = true; in devlink_nl_cmd_port_new_doit() 1819 if (new_attrs.flavour == DEVLINK_PORT_FLAVOUR_PCI_SF && in devlink_nl_cmd_port_new_doit() 1821 new_attrs.sfnum = nla_get_u32(info->attrs[DEVLINK_ATTR_PORT_PCI_SF_NUMBER]); in devlink_nl_cmd_port_new_doit() 1822 new_attrs.sfnum_valid = true; in devlink_nl_cmd_port_new_doit() [all …]
|
/Linux-v6.1/drivers/hwmon/pmbus/ |
D | pmbus_core.c | 1193 void *new_attrs = devm_krealloc(data->dev, data->group.attrs, in pmbus_add_attribute() local 1196 if (!new_attrs) in pmbus_add_attribute() 1198 data->group.attrs = new_attrs; in pmbus_add_attribute()
|