Home
last modified time | relevance | path

Searched refs:pool_index (Results 1 – 17 of 17) sorted by relevance

/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_buffers.c31 u16 pool_index; member
49 u16 pool_index; member
149 u16 pool_index) in mlxsw_sp_sb_pr_get() argument
151 return &mlxsw_sp->sb->prs[pool_index]; in mlxsw_sp_sb_pr_get()
176 u16 local_port, u16 pool_index) in mlxsw_sp_sb_pm_get() argument
178 return &mlxsw_sp->sb->ports[local_port].pms[pool_index]; in mlxsw_sp_sb_pm_get()
181 static int mlxsw_sp_sb_pr_write(struct mlxsw_sp *mlxsw_sp, u16 pool_index, in mlxsw_sp_sb_pr_write() argument
186 &mlxsw_sp->sb_vals->pool_dess[pool_index]; in mlxsw_sp_sb_pr_write()
199 pr = mlxsw_sp_sb_pr_get(mlxsw_sp, pool_index); in mlxsw_sp_sb_pr_write()
222 bool infi_max, u16 pool_index) in mlxsw_sp_sb_cm_write() argument
[all …]
Dcore.h360 unsigned int sb_index, u16 pool_index,
363 unsigned int sb_index, u16 pool_index, u32 size,
367 unsigned int sb_index, u16 pool_index,
370 unsigned int sb_index, u16 pool_index,
379 u16 pool_index, u32 threshold,
386 unsigned int sb_index, u16 pool_index,
Dspectrum.h585 unsigned int sb_index, u16 pool_index,
588 unsigned int sb_index, u16 pool_index, u32 size,
592 unsigned int sb_index, u16 pool_index,
595 unsigned int sb_index, u16 pool_index,
604 u16 pool_index, u32 threshold,
611 unsigned int sb_index, u16 pool_index,
Dcore.c1373 unsigned int sb_index, u16 pool_index, in mlxsw_devlink_sb_pool_get() argument
1382 pool_index, pool_info); in mlxsw_devlink_sb_pool_get()
1387 unsigned int sb_index, u16 pool_index, u32 size, in mlxsw_devlink_sb_pool_set() argument
1397 pool_index, size, threshold_type, in mlxsw_devlink_sb_pool_set()
1402 unsigned int sb_index, u16 pool_index, in mlxsw_devlink_sb_port_pool_get() argument
1413 pool_index, p_threshold); in mlxsw_devlink_sb_port_pool_get()
1417 unsigned int sb_index, u16 pool_index, in mlxsw_devlink_sb_port_pool_set() argument
1429 pool_index, threshold, extack); in mlxsw_devlink_sb_port_pool_set()
1454 u16 pool_index, u32 threshold, in mlxsw_devlink_sb_tc_pool_bind_set() argument
1466 pool_index, threshold, extack); in mlxsw_devlink_sb_tc_pool_bind_set()
[all …]
/drivers/net/ethernet/mscc/
Docelot_devlink.c537 u16 pool_index, in ocelot_sb_pool_get() argument
542 if (pool_index >= OCELOT_SB_POOL_NUM) in ocelot_sb_pool_get()
546 pool_info->size = ocelot->pool_size[sb_index][pool_index]; in ocelot_sb_pool_get()
547 if (pool_index) in ocelot_sb_pool_get()
562 u16 pool_index, u32 size, in ocelot_sb_pool_set() argument
574 if (pool_index >= OCELOT_SB_POOL_NUM) { in ocelot_sb_pool_set()
585 old_pool_size = ocelot->pool_size[sb_index][pool_index]; in ocelot_sb_pool_set()
586 ocelot->pool_size[sb_index][pool_index] = size; in ocelot_sb_pool_set()
590 ocelot->pool_size[sb_index][pool_index] = old_pool_size; in ocelot_sb_pool_set()
602 unsigned int sb_index, u16 pool_index, in ocelot_sb_port_pool_get() argument
[all …]
Docelot_net.c45 unsigned int sb_index, u16 pool_index, in ocelot_devlink_sb_pool_get() argument
50 return ocelot_sb_pool_get(ocelot, sb_index, pool_index, pool_info); in ocelot_devlink_sb_pool_get()
54 u16 pool_index, u32 size, in ocelot_devlink_sb_pool_set() argument
60 return ocelot_sb_pool_set(ocelot, sb_index, pool_index, size, in ocelot_devlink_sb_pool_set()
65 unsigned int sb_index, u16 pool_index, in ocelot_devlink_sb_port_pool_get() argument
71 return ocelot_sb_port_pool_get(ocelot, port, sb_index, pool_index, in ocelot_devlink_sb_port_pool_get()
76 unsigned int sb_index, u16 pool_index, in ocelot_devlink_sb_port_pool_set() argument
83 return ocelot_sb_port_pool_set(ocelot, port, sb_index, pool_index, in ocelot_devlink_sb_port_pool_set()
105 u16 pool_index, u32 threshold, in ocelot_devlink_sb_tc_pool_bind_set() argument
112 pool_type, pool_index, threshold, in ocelot_devlink_sb_tc_pool_bind_set()
[all …]
/drivers/net/ethernet/netronome/nfp/
Dnfp_shared_buf.c26 int nfp_shared_buf_pool_get(struct nfp_pf *pf, unsigned int sb, u16 pool_index, in nfp_shared_buf_pool_get() argument
32 .pool = cpu_to_le32(pool_index), in nfp_shared_buf_pool_get()
57 u16 pool_index, u32 size, in nfp_shared_buf_pool_set() argument
63 .pool = cpu_to_le32(pool_index), in nfp_shared_buf_pool_set()
Dnfp_devlink.c117 u16 pool_index, struct devlink_sb_pool_info *pool_info) in nfp_devlink_sb_pool_get() argument
121 return nfp_shared_buf_pool_get(pf, sb_index, pool_index, pool_info); in nfp_devlink_sb_pool_get()
126 u16 pool_index, in nfp_devlink_sb_pool_set() argument
132 return nfp_shared_buf_pool_set(pf, sb_index, pool_index, in nfp_devlink_sb_pool_set()
Dnfp_main.h186 int nfp_shared_buf_pool_get(struct nfp_pf *pf, unsigned int sb, u16 pool_index,
189 u16 pool_index, u32 size,
/drivers/scsi/megaraid/
Dmegaraid_mm.c515 kioc->pool_index = -1; in mraid_mm_attach_buf()
540 kioc->pool_index = i; in mraid_mm_attach_buf()
567 kioc->pool_index = right_pool; in mraid_mm_attach_buf()
618 kioc->pool_index =-1; in mraid_mm_alloc_kioc()
639 if (kioc->pool_index != -1) { in mraid_mm_dealloc_kioc()
640 pool = &adp->dma_pool_list[kioc->pool_index]; in mraid_mm_dealloc_kioc()
Dmegaraid_ioctl.h146 int8_t pool_index; member
/drivers/net/ethernet/mellanox/mlx5/core/
Dpci_irq.c36 u32 pool_index; member
180 xa_erase(&pool->irqs, irq->pool_index); in irq_release()
312 irq->pool_index = i; in mlx5_irq_alloc()
313 err = xa_err(xa_store(&pool->irqs, irq->pool_index, irq, GFP_KERNEL)); in mlx5_irq_alloc()
316 irq->pool_index, err); in mlx5_irq_alloc()
/drivers/net/dsa/ocelot/
Dfelix.c1899 u16 pool_index, in felix_sb_pool_get() argument
1904 return ocelot_sb_pool_get(ocelot, sb_index, pool_index, pool_info); in felix_sb_pool_get()
1908 u16 pool_index, u32 size, in felix_sb_pool_set() argument
1914 return ocelot_sb_pool_set(ocelot, sb_index, pool_index, size, in felix_sb_pool_set()
1919 unsigned int sb_index, u16 pool_index, in felix_sb_port_pool_get() argument
1924 return ocelot_sb_port_pool_get(ocelot, port, sb_index, pool_index, in felix_sb_port_pool_get()
1929 unsigned int sb_index, u16 pool_index, in felix_sb_port_pool_set() argument
1934 return ocelot_sb_port_pool_set(ocelot, port, sb_index, pool_index, in felix_sb_port_pool_set()
1953 u16 pool_index, u32 threshold, in felix_sb_tc_pool_bind_set() argument
1959 pool_type, pool_index, threshold, in felix_sb_tc_pool_bind_set()
[all …]
/drivers/net/wireless/ath/ath9k/
Dhif_usb.c559 u16 pool_index = 0; in ath9k_hif_usb_rx_stream() local
582 skb_pool[pool_index++] = remain_skb; in ath9k_hif_usb_rx_stream()
652 if (pool_index == MAX_PKT_NUM_IN_TRANSFER) { in ath9k_hif_usb_rx_stream()
668 skb_pool[pool_index++] = nskb; in ath9k_hif_usb_rx_stream()
673 for (i = 0; i < pool_index; i++) { in ath9k_hif_usb_rx_stream()
681 for (i = 0; i < pool_index; i++) { in ath9k_hif_usb_rx_stream()
/drivers/net/ethernet/ibm/
Dibmvnic.h818 unsigned int pool_index; member
846 int pool_index; member
865 int pool_index; member
Dibmvnic.c818 pool->rx_buff[bufidx].pool_index = pool->index; in replenish_rx_pool()
1144 rx_buff->pool_index = 0; in init_rx_pools()
2308 queue_num = tx_scrq->pool_index; in ibmvnic_tx_scrq_clean_buffer()
2495 tx_buff->pool_index = queue_num; in ibmvnic_xmit()
3425 struct ibmvnic_rx_pool *pool = &adapter->rx_pool[rx_buff->pool_index]; in remove_buff_from_pool()
4177 unsigned int pool = scrq->pool_index; in ibmvnic_complete_tx()
4217 txq = netdev_get_tx_queue(adapter->netdev, scrq->pool_index); in ibmvnic_complete_tx()
4223 scrq->pool_index)) { in ibmvnic_complete_tx()
4227 scrq->pool_index); in ibmvnic_complete_tx()
4230 scrq->pool_index); in ibmvnic_complete_tx()
[all …]
Dibmveth.c153 u32 pool_index, u32 pool_size, in ibmveth_init_buffer_pool() argument
157 pool->index = pool_index; in ibmveth_init_buffer_pool()