Home
last modified time | relevance | path

Searched refs:dests (Results 1 – 25 of 29) sorted by relevance

12

/linux/net/tipc/
H A Dbcast.c67 int dests[MAX_BEARERS]; member
122 if (!bb->dests[i]) in tipc_bcbase_select_primary()
133 if (bb->dests[i] < all_dests) in tipc_bcbase_select_primary()
152 bb->dests[bearer_id]++; in tipc_bcast_inc_bearer_dst_cnt()
162 bb->dests[bearer_id]--; in tipc_bcast_dec_bearer_dst_cnt()
197 if (!bb->dests[bearer_id]) in tipc_bcbase_xmit()
212 static void tipc_bcast_select_xmit_method(struct net *net, int dests, in tipc_bcast_select_xmit_method() argument
249 method->rcast = dests <= bb->bc_threshold; in tipc_bcast_select_xmit_method()
289 struct tipc_nlist *dests, u16 *cong_link_cnt) in tipc_rcast_xmit() argument
298 list_for_each_entry_safe(dst, tmp, &dests->list, list) { in tipc_rcast_xmit()
[all …]
H A Dgroup.c85 struct tipc_nlist dests; member
175 tipc_nlist_init(&grp->dests, tipc_own_addr(net)); in tipc_group_create()
227 tipc_nlist_purge(&grp->dests); in tipc_group_delete()
326 tipc_nlist_add(&grp->dests, m->node); in tipc_group_create_member()
353 tipc_nlist_del(&grp->dests, m->node); in tipc_group_delete_member()
360 return &grp->dests; in tipc_group_dests()
H A Dbcast.h91 struct tipc_mc_method *method, struct tipc_nlist *dests,
/linux/drivers/md/
H A Ddm-kcopyd.c368 struct dm_io_region dests[DM_KCOPYD_MAX_REGIONS]; member
583 r = dm_io(&io_req, job->num_dests, job->dests, NULL, IOPRIO_DEFAULT); in run_io_job()
591 unsigned int nr_pages = dm_div_up(job->dests[0].count, PAGE_SIZE >> 9); in run_pages_job()
738 sub_job->dests[i].sector += progress; in segment_complete()
739 sub_job->dests[i].count = count; in segment_complete()
779 unsigned int num_dests, struct dm_io_region *dests, in dm_kcopyd_copy() argument
801 memcpy(&job->dests, dests, sizeof(*dests) * num_dests); in dm_kcopyd_copy()
810 if (bdev_is_zoned(dests[i].bdev)) { in dm_kcopyd_copy()
830 job->source.count = job->dests[0].count; in dm_kcopyd_copy()
838 if (!bdev_write_zeroes_sectors(job->dests[i].bdev)) { in dm_kcopyd_copy()
[all …]
/linux/tools/testing/selftests/damon/
H A Dsysfs.py83 def assert_migrate_dests_committed(dests, dump):
84 assert_true(dump['nr_dests'] == len(dests.dests), 'nr_dests', dump)
85 for idx, dest in enumerate(dests.dests):
136 assert_migrate_dests_committed(scheme.dests, dump['migrate_dests'])
250 dests=_damon_sysfs.DamosDests(
251 dests=[_damon_sysfs.DamosDest(id=1, weight=30),
77 assert_migrate_dests_committed(dests, dump) global() argument
H A D_damon_sysfs.py332 dests = None # owner dests
339 return os.path.join(self.dests.sysfs_dir(), '%d' % self.idx)
351 dests = None
354 def __init__(self, dests=[]):
355 self.dests = dests
356 for idx, dest in enumerate(self.dests):
358 dest.dests = self
361 return os.path.join(self.scheme.sysfs_dir(), 'dests')
326 dests = None # owner dests global() variable in DamosDest
345 dests = None global() variable in DamosDests
348 __init__(self, dests=[]) global() argument
399 dests = None global() variable in Damos
409 __init__(self, action='stat', access_pattern=DamosAccessPattern(), quota=DamosQuota(), watermarks=DamosWatermarks(), core_filters=[], ops_filters=[], filters=[], target_nid=0, dests=DamosDests(), apply_interval_us=0) global() argument
[all...]
H A Ddrgn_dump_damon_status.py127 def damos_migrate_dests_to_dict(dests):
128 nr_dests = int(dests.nr_dests)
132 node_id_arr.append(int(dests.node_id_arr[i]))
133 weight_arr.append(int(dests.weight_arr[i]))
126 damos_migrate_dests_to_dict(dests) global() argument
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch_offloads_termtbl.c236 if (!esw_attr->dest_int_port && esw_attr->dests[i].vport_valid && in mlx5_eswitch_termtbl_required()
237 esw_attr->dests[i].vport == MLX5_VPORT_UPLINK) in mlx5_eswitch_termtbl_required()
268 if (attr->dests[num_vport_dests].flags & MLX5_ESW_DEST_ENCAP) { in mlx5_eswitch_add_termtbl_rule()
270 term_tbl_act.pkt_reformat = attr->dests[num_vport_dests].pkt_reformat; in mlx5_eswitch_add_termtbl_rule()
283 attr->dests[num_vport_dests].termtbl = tt; in mlx5_eswitch_add_termtbl_rule()
313 struct mlx5_termtbl_handle *tt = attr->dests[curr_dest].termtbl; in mlx5_eswitch_add_termtbl_rule()
315 attr->dests[curr_dest].termtbl = NULL; in mlx5_eswitch_add_termtbl_rule()
H A Deswitch_offloads.c290 if (esw_attr->dests[i].flags & MLX5_ESW_DEST_CHAIN_WITH_SRC_PORT_CHANGE) in esw_put_dest_tables_loop()
292 else if (mlx5_esw_indir_table_needed(esw, attr, esw_attr->dests[i].vport, in esw_put_dest_tables_loop()
293 esw_attr->dests[i].mdev)) in esw_put_dest_tables_loop()
294 mlx5_esw_indir_table_put(esw, esw_attr->dests[i].vport, false); in esw_put_dest_tables_loop()
303 if (esw_attr->dests[i].flags & MLX5_ESW_DEST_CHAIN_WITH_SRC_PORT_CHANGE) in esw_is_chain_src_port_rewrite()
332 if (esw_attr->dests[esw_attr->split_count].pkt_reformat) { in esw_setup_chain_src_port_rewrite()
334 flow_act->pkt_reformat = esw_attr->dests[esw_attr->split_count].pkt_reformat; in esw_setup_chain_src_port_rewrite()
362 if (esw_attr->dests[i].vport_valid && in esw_is_indir_table()
363 mlx5_esw_indir_table_needed(esw, attr, esw_attr->dests[i].vport, in esw_is_indir_table()
364 esw_attr->dests[i].mdev)) { in esw_is_indir_table()
[all …]
/linux/mm/damon/
H A Dsysfs-schemes.c1915 struct damos_sysfs_dests *dests) in damos_sysfs_dests_rm_dirs() argument
1917 struct damos_sysfs_dest **dests_arr = dests->dests_arr; in damos_sysfs_dests_rm_dirs()
1920 for (i = 0; i < dests->nr; i++) in damos_sysfs_dests_rm_dirs()
1922 dests->nr = 0; in damos_sysfs_dests_rm_dirs()
1924 dests->dests_arr = NULL; in damos_sysfs_dests_rm_dirs()
1928 struct damos_sysfs_dests *dests, int nr_dests) in damos_sysfs_dests_add_dirs() argument
1933 damos_sysfs_dests_rm_dirs(dests); in damos_sysfs_dests_add_dirs()
1941 dests->dests_arr = dests_arr; in damos_sysfs_dests_add_dirs()
1946 damos_sysfs_dests_rm_dirs(dests); in damos_sysfs_dests_add_dirs()
1952 &dests->kobj, "%d", i); in damos_sysfs_dests_add_dirs()
[all …]
/linux/include/linux/
H A Ddm-kcopyd.h68 unsigned int num_dests, struct dm_io_region *dests,
87 unsigned int num_dests, struct dm_io_region *dests,
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dmirred.c198 esw_attr->dests[esw_attr->out_count].flags |= MLX5_ESW_DEST_ENCAP; in parse_mirred_encap()
273 esw_attr->dests[esw_attr->out_count].vport_valid = true; in parse_mirred()
274 esw_attr->dests[esw_attr->out_count].vport = rpriv->rep->vport; in parse_mirred()
275 esw_attr->dests[esw_attr->out_count].mdev = out_priv->mdev; in parse_mirred()
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dbridge_mcast.c61 struct mlx5_flow_destination *dests; in mlx5_esw_bridge_mdb_flow_create() local
72 dests = kvzalloc_objs(*dests, num_dests); in mlx5_esw_bridge_mdb_flow_create()
73 if (!dests) { in mlx5_esw_bridge_mdb_flow_create()
79 dests[i].type = MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE; in mlx5_esw_bridge_mdb_flow_create()
80 dests[i].ft = port->mcast.ft; in mlx5_esw_bridge_mdb_flow_create()
82 dests[i].ft->flags |= MLX5_FLOW_TABLE_UPLINK_VPORT; in mlx5_esw_bridge_mdb_flow_create()
111 handle = mlx5_add_flow_rules(bridge->egress_ft, rule_spec, &flow_act, dests, num_dests); in mlx5_esw_bridge_mdb_flow_create()
113 kvfree(dests); in mlx5_esw_bridge_mdb_flow_create()
H A Dbridge.c584 struct mlx5_flow_destination dests[2] = {}; in mlx5_esw_bridge_ingress_flow_with_esw_create() local
630 dests[0].type = MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE; in mlx5_esw_bridge_ingress_flow_with_esw_create()
631 dests[0].ft = bridge->egress_ft; in mlx5_esw_bridge_ingress_flow_with_esw_create()
632 dests[1].type = MLX5_FLOW_DESTINATION_TYPE_COUNTER; in mlx5_esw_bridge_ingress_flow_with_esw_create()
633 dests[1].counter = counter; in mlx5_esw_bridge_ingress_flow_with_esw_create()
635 handle = mlx5_add_flow_rules(br_offloads->ingress_ft, rule_spec, &flow_act, dests, in mlx5_esw_bridge_ingress_flow_with_esw_create()
636 ARRAY_SIZE(dests)); in mlx5_esw_bridge_ingress_flow_with_esw_create()
/linux/drivers/i3c/master/mipi-i3c-hci/
H A Dcore.c291 ccc->id, ccc->rnw, ccc->ndests, ccc->dests[0].payload.len); in i3c_hci_send_ccc_cmd()
307 xfer[i].data = ccc->dests[i].payload.data; in i3c_hci_send_ccc_cmd()
308 xfer[i].data_len = ccc->dests[i].payload.len; in i3c_hci_send_ccc_cmd()
310 ret = hci->cmd->prep_ccc(hci, &xfer[i], ccc->dests[i].addr, in i3c_hci_send_ccc_cmd()
329 ccc->dests[i - prefixed].payload.len = in i3c_hci_send_ccc_cmd()
346 ccc->dests[0].payload.len, ccc->dests[0].payload.data); in i3c_hci_send_ccc_cmd()
/linux/drivers/i3c/master/
H A Ddw-i3c-master.c718 pos = dw_i3c_master_get_addr_pos(master, ccc->dests[0].addr); in dw_i3c_ccc_set()
728 cmd->tx_buf = ccc->dests[0].payload.data; in dw_i3c_ccc_set()
729 cmd->tx_len = ccc->dests[0].payload.len; in dw_i3c_ccc_set()
731 cmd->cmd_hi = COMMAND_PORT_ARG_DATA_LEN(ccc->dests[0].payload.len) | in dw_i3c_ccc_set()
756 pos = dw_i3c_master_get_addr_pos(master, ccc->dests[0].addr); in dw_i3c_ccc_get()
765 cmd->rx_buf = ccc->dests[0].payload.data; in dw_i3c_ccc_get()
766 cmd->rx_len = ccc->dests[0].payload.len; in dw_i3c_ccc_get()
768 cmd->cmd_hi = COMMAND_PORT_ARG_DATA_LEN(ccc->dests[0].payload.len) | in dw_i3c_ccc_get()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Daction.c1362 struct mlx5hws_action_dest_attr *dests, in mlx5hws_action_create_dest_array() argument
1391 enum mlx5hws_action_type action_type = dests[i].dest->type; in mlx5hws_action_create_dest_array()
1392 struct mlx5hws_action *reformat_action = dests[i].reformat; in mlx5hws_action_create_dest_array()
1398 dest_list[i].destination_id = dests[i].dest->dest_obj.obj_id; in mlx5hws_action_create_dest_array()
1401 if (dests[i].is_wire_ft) in mlx5hws_action_create_dest_array()
1406 dest_list[i].destination_id = dests[i].dest->vport.vport_num; in mlx5hws_action_create_dest_array()
1412 dests[i].dest->vport.esw_owner_vhca_id; in mlx5hws_action_create_dest_array()
1430 fte_attr.dests = dest_list; in mlx5hws_action_create_dest_array()
1893 fte_attr.dests = &dest; in mlx5hws_action_create_flow_sampler()
H A Dcmd.h33 struct mlx5hws_cmd_set_fte_dest *dests; member
H A Dmlx5hws.h744 struct mlx5hws_action_dest_attr *dests,
H A Dtable.c69 fte_attr.dests = &dest; in hws_table_up_default_fdb_miss_tbl()
/linux/include/linux/i3c/
H A Dccc.h381 struct i3c_ccc_cmd_dest *dests; member
/linux/Documentation/admin-guide/device-mapper/
H A Dkcopyd.rst33 unsigned int num_dests, struct io_region *dests,
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Dmlx5dr.h100 struct mlx5dr_action_dest *dests,
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dfs_ttc.c419 rule->rule = mlx5_generate_ttc_rule(dev, ft, &params->dests[tt], in mlx5_generate_ttc_table_rules()
429 rule->default_dest = params->dests[tt]; in mlx5_generate_ttc_table_rules()
687 &params->dests[tt], in mlx5_generate_inner_ttc_table_rules()
696 rule->default_dest = params->dests[tt]; in mlx5_generate_inner_ttc_table_rules()
/linux/drivers/vdpa/mlx5/net/
H A Dmlx5_vnet.c1876 struct mlx5_flow_destination *dests) in add_steering_counters() argument
1891 dests[1].type = MLX5_FLOW_DESTINATION_TYPE_COUNTER; in add_steering_counters()
1915 struct mlx5_flow_destination dests[NUM_DESTS] = {}; in mlx5_vdpa_add_mac_vlan_rules() local
1946 dests[0].type = MLX5_FLOW_DESTINATION_TYPE_TIR; in mlx5_vdpa_add_mac_vlan_rules()
1947 dests[0].tir_num = ndev->res.tirn; in mlx5_vdpa_add_mac_vlan_rules()
1948 err = add_steering_counters(ndev, node, &flow_act, dests); in mlx5_vdpa_add_mac_vlan_rules()
1953 dests[1].counter = node->ucast_counter.counter; in mlx5_vdpa_add_mac_vlan_rules()
1955 node->ucast_rule = mlx5_add_flow_rules(ndev->rxft, spec, &flow_act, dests, NUM_DESTS); in mlx5_vdpa_add_mac_vlan_rules()
1962 dests[1].counter = node->mcast_counter.counter; in mlx5_vdpa_add_mac_vlan_rules()
1969 node->mcast_rule = mlx5_add_flow_rules(ndev->rxft, spec, &flow_act, dests, NUM_DESTS); in mlx5_vdpa_add_mac_vlan_rules()

12