Home
last modified time | relevance | path

Searched refs:dest_idx (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_mac.c407 u8 *mac, u16 *vid, u32 *dest_idx) in lan966x_mac_process_raw_entry() argument
417 *dest_idx = ANA_MACACCESS_DEST_IDX_GET(raw_entry->maca); in lan966x_mac_process_raw_entry()
427 u32 dest_idx; in lan966x_mac_irq_process() local
449 mac, &vid, &dest_idx); in lan966x_mac_irq_process()
450 if (WARN_ON(dest_idx >= lan966x->num_phys_ports)) in lan966x_mac_irq_process()
458 mac_entry->port_index == dest_idx) { in lan966x_mac_irq_process()
503 mac, &vid, &dest_idx); in lan966x_mac_irq_process()
504 if (WARN_ON(dest_idx >= lan966x->num_phys_ports)) in lan966x_mac_irq_process()
508 mac_entry = lan966x_mac_find_entry(lan966x, mac, vid, dest_idx); in lan966x_mac_irq_process()
514 port = lan966x->ports[dest_idx]; in lan966x_mac_irq_process()
/linux/drivers/net/ethernet/broadcom/
H A Db44.c640 int dest_idx; in b44_alloc_rx_skb() local
646 dest_idx = dest_idx_unmasked & (B44_RX_RING_SIZE - 1); in b44_alloc_rx_skb()
647 map = &bp->rx_buffers[dest_idx]; in b44_alloc_rx_skb()
693 if (dest_idx == (B44_RX_RING_SIZE - 1)) in b44_alloc_rx_skb()
696 dp = &bp->rx_ring[dest_idx]; in b44_alloc_rx_skb()
702 dest_idx * sizeof(*dp), in b44_alloc_rx_skb()
713 int dest_idx; in b44_recycle_rx() local
716 dest_idx = dest_idx_unmasked & (B44_RX_RING_SIZE - 1); in b44_recycle_rx()
717 dest_desc = &bp->rx_ring[dest_idx]; in b44_recycle_rx()
718 dest_map = &bp->rx_buffers[dest_idx]; in b44_recycle_rx()
[all...]
H A Dtg3.c6700 int skb_size, data_size, dest_idx; in tg3_alloc_rx_data() local
6704 dest_idx = dest_idx_unmasked & tp->rx_std_ring_mask; in tg3_alloc_rx_data()
6705 desc = &tpr->rx_std[dest_idx]; in tg3_alloc_rx_data()
6706 map = &tpr->rx_std_buffers[dest_idx]; in tg3_alloc_rx_data()
6711 dest_idx = dest_idx_unmasked & tp->rx_jmb_ring_mask; in tg3_alloc_rx_data()
6712 desc = &tpr->rx_jmb[dest_idx].std; in tg3_alloc_rx_data()
6713 map = &tpr->rx_jmb_buffers[dest_idx]; in tg3_alloc_rx_data()
6768 int dest_idx; in tg3_recycle_rx() local
6772 dest_idx = dest_idx_unmasked & tp->rx_std_ring_mask; in tg3_recycle_rx()
6773 dest_desc = &dpr->rx_std[dest_idx]; in tg3_recycle_rx()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch_offloads.c472 int attr_idx, int dest_idx, bool pkt_reformat) in esw_setup_dest_fwd_vport()
474 dest[dest_idx].type = MLX5_FLOW_DESTINATION_TYPE_VPORT; in esw_setup_dest_fwd_vport()
475 dest[dest_idx].vport.num = esw_attr->dests[attr_idx].vport; in esw_setup_dest_fwd_vport()
477 dest[dest_idx].vport.vhca_id = in esw_setup_dest_fwd_vport()
479 dest[dest_idx].vport.flags |= MLX5_FLOW_DEST_VPORT_VHCA_ID; in esw_setup_dest_fwd_vport()
480 if (dest[dest_idx].vport.num == MLX5_VPORT_UPLINK && in esw_setup_dest_fwd_vport()
482 dest[dest_idx].type = MLX5_FLOW_DESTINATION_TYPE_UPLINK; in esw_setup_dest_fwd_vport()
489 dest[dest_idx].vport.flags |= MLX5_FLOW_DEST_VPORT_REFORMAT_ID; in esw_setup_dest_fwd_vport()
490 dest[dest_idx].vport.pkt_reformat = esw_attr->dests[attr_idx].pkt_reformat; in esw_setup_dest_fwd_vport()
497 int attr_idx, int dest_idx, boo in esw_setup_dest_fwd_ipsec()
470 esw_setup_dest_fwd_vport(struct mlx5_flow_destination * dest,struct mlx5_flow_act * flow_act,struct mlx5_eswitch * esw,struct mlx5_esw_flow_attr * esw_attr,int attr_idx,int dest_idx,bool pkt_reformat) esw_setup_dest_fwd_vport() argument
495 esw_setup_dest_fwd_ipsec(struct mlx5_flow_destination * dest,struct mlx5_flow_act * flow_act,struct mlx5_eswitch * esw,struct mlx5_esw_flow_attr * esw_attr,int attr_idx,int dest_idx,bool pkt_reformat) esw_setup_dest_fwd_ipsec() argument
509 esw_setup_vport_dest(struct mlx5_flow_destination * dest,struct mlx5_flow_act * flow_act,struct mlx5_eswitch * esw,struct mlx5_esw_flow_attr * esw_attr,int attr_idx,int dest_idx,bool pkt_reformat) esw_setup_vport_dest() argument
[all...]