Home
last modified time | relevance | path

Searched refs:buff_size (Results 1 – 25 of 44) sorted by relevance

12

/linux-6.6.21/drivers/net/ethernet/intel/i40e/
Di40e_prototype.h26 void *buff, /* can be NULL */ u16 buff_size,
32 u16 buff_size,
37 void *buff, /* can be NULL */ u16 buff_size,
44 u16 buff_size,
215 void *buff, u16 buff_size, u16 *data_size,
226 u8 mib_type, void *buff, u16 buff_size,
231 u8 mib_type, void *buff, u16 buff_size,
249 void *buff, u16 buff_size,
427 u8 table_id, u32 start_index, u16 buff_size,
476 u16 buff_size, u32 track_id,
[all …]
Di40e_adminq.c786 u16 buff_size, in i40e_asq_send_command_atomic_exec() argument
837 if (buff_size > hw->aq.asq_buf_size) { in i40e_asq_send_command_atomic_exec()
841 buff_size); in i40e_asq_send_command_atomic_exec()
879 memcpy(dma_buff->va, buff, buff_size); in i40e_asq_send_command_atomic_exec()
880 desc_on_ring->datalen = cpu_to_le16(buff_size); in i40e_asq_send_command_atomic_exec()
894 buff, buff_size); in i40e_asq_send_command_atomic_exec()
927 memcpy(buff, dma_buff->va, buff_size); in i40e_asq_send_command_atomic_exec()
950 i40e_debug_aq(hw, I40E_DEBUG_AQ_COMMAND, (void *)desc, buff, buff_size); in i40e_asq_send_command_atomic_exec()
990 u16 buff_size, in i40e_asq_send_command_atomic() argument
997 status = i40e_asq_send_command_atomic_exec(hw, desc, buff, buff_size, in i40e_asq_send_command_atomic()
[all …]
Di40e_common.c3359 void *buff, u16 buff_size, u16 *data_size, in i40e_aq_discover_capabilities() argument
3378 if (buff_size > I40E_AQ_LARGE_BUF) in i40e_aq_discover_capabilities()
3381 status = i40e_asq_send_command(hw, &desc, buff, buff_size, cmd_details); in i40e_aq_discover_capabilities()
3501 u8 mib_type, void *buff, u16 buff_size, in i40e_aq_get_lldp_mib() argument
3512 if (buff_size == 0 || !buff) in i40e_aq_get_lldp_mib()
3523 desc.datalen = cpu_to_le16(buff_size); in i40e_aq_get_lldp_mib()
3526 if (buff_size > I40E_AQ_LARGE_BUF) in i40e_aq_get_lldp_mib()
3529 status = i40e_asq_send_command(hw, &desc, buff, buff_size, cmd_details); in i40e_aq_get_lldp_mib()
3552 u8 mib_type, void *buff, u16 buff_size, in i40e_aq_set_lldp_mib() argument
3560 if (buff_size == 0 || !buff) in i40e_aq_set_lldp_mib()
[all …]
Di40e_nvm.c1379 u32 buff_size = 0; in i40e_nvmupd_exec_aq() local
1407 buff_size = max_t(u32, aq_data_len, le16_to_cpu(aq_desc->datalen)); in i40e_nvmupd_exec_aq()
1408 if (buff_size) { in i40e_nvmupd_exec_aq()
1429 buff_size, &cmd_details); in i40e_nvmupd_exec_aq()
/linux-6.6.21/sound/soc/stm/
Dstm32_adfsdm.c174 size_t buff_size = snd_pcm_lib_buffer_bytes(priv->substream); in stm32_afsdm_pcm_cb() local
186 if ((priv->pos + src_size) > buff_size) { in stm32_afsdm_pcm_cb()
189 buff_size - priv->pos); in stm32_afsdm_pcm_cb()
192 buff_size - priv->pos); in stm32_afsdm_pcm_cb()
193 cur_size -= buff_size - priv->pos; in stm32_afsdm_pcm_cb()
204 priv->pos = (priv->pos + cur_size) % buff_size; in stm32_afsdm_pcm_cb()
/linux-6.6.21/drivers/net/ethernet/ibm/
Dibmveth.c154 u32 buff_size, u32 pool_active) in ibmveth_init_buffer_pool() argument
158 pool->buff_size = buff_size; in ibmveth_init_buffer_pool()
229 skb = netdev_alloc_skb(adapter->netdev, pool->buff_size); in ibmveth_replenish_buffer_pool()
248 pool->buff_size, DMA_FROM_DEVICE); in ibmveth_replenish_buffer_pool()
260 desc.fields.flags_len = IBMVETH_BUF_VALID | pool->buff_size; in ibmveth_replenish_buffer_pool()
264 unsigned int len = min(pool->buff_size, in ibmveth_replenish_buffer_pool()
293 pool->dma_addr[index], pool->buff_size, in ibmveth_replenish_buffer_pool()
347 pool->buff_size, in ibmveth_free_buffer_pool()
386 adapter->rx_buff_pool[pool].buff_size, in ibmveth_remove_buffer_from_pool()
435 adapter->rx_buff_pool[pool].buff_size; in ibmveth_rxq_recycle_buffer()
[all …]
Dibmvnic.c584 int buff_size) in alloc_ltb_set() argument
598 buff_size); in alloc_ltb_set()
600 ltb_size = rounddown(IBMVNIC_ONE_LTB_SIZE, buff_size); in alloc_ltb_set()
601 tot_size = num_buffs * buff_size; in alloc_ltb_set()
703 nbufs = ltb->size / rxpool->buff_size; in map_rxpool_buf_to_ltb()
710 *offset = bufidx * rxpool->buff_size; in map_rxpool_buf_to_ltb()
797 pool->buff_size); in replenish_rx_pool()
811 memset(dst, 0, pool->buff_size); in replenish_rx_pool()
819 pool->rx_buff[bufidx].size = pool->buff_size; in replenish_rx_pool()
838 sub_crq->rx_add.len = cpu_to_be32(pool->buff_size << shift); in replenish_rx_pool()
[all …]
Dibmveth.h115 u32 buff_size; member
/linux-6.6.21/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_a0.c128 u32 buff_size = 0U; in hw_atl_a0_hw_qos_set() local
148 buff_size = HW_ATL_A0_TXBUF_MAX; in hw_atl_a0_hw_qos_set()
150 hw_atl_tpb_tx_pkt_buff_size_per_tc_set(self, buff_size, tc); in hw_atl_a0_hw_qos_set()
152 (buff_size * in hw_atl_a0_hw_qos_set()
156 (buff_size * in hw_atl_a0_hw_qos_set()
163 buff_size = HW_ATL_A0_RXBUF_MAX; in hw_atl_a0_hw_qos_set()
165 hw_atl_rpb_rx_pkt_buff_size_per_tc_set(self, buff_size, tc); in hw_atl_a0_hw_qos_set()
167 (buff_size * in hw_atl_a0_hw_qos_set()
171 (buff_size * in hw_atl_a0_hw_qos_set()
/linux-6.6.21/drivers/net/ethernet/intel/iavf/
Diavf_adminq.c644 u16 buff_size, in iavf_asq_send_command() argument
696 if (buff_size > hw->aq.asq_buf_size) { in iavf_asq_send_command()
700 buff_size); in iavf_asq_send_command()
738 memcpy(dma_buff->va, buff, buff_size); in iavf_asq_send_command()
739 desc_on_ring->datalen = cpu_to_le16(buff_size); in iavf_asq_send_command()
753 buff, buff_size); in iavf_asq_send_command()
781 memcpy(buff, dma_buff->va, buff_size); in iavf_asq_send_command()
804 iavf_debug_aq(hw, IAVF_DEBUG_AQ_COMMAND, (void *)desc, buff, buff_size); in iavf_asq_send_command()
Diavf_prototype.h28 u16 buff_size,
/linux-6.6.21/drivers/net/ethernet/aquantia/atlantic/
Daq_nic.c615 unsigned int buff_size = 0U; in aq_nic_map_xdp() local
620 buff_size = AQ_CFG_TX_FRAME_MAX; in aq_nic_map_xdp()
622 buff_size = frag_len; in aq_nic_map_xdp()
625 buff_size, DMA_TO_DEVICE); in aq_nic_map_xdp()
634 dx_buff->len = buff_size; in aq_nic_map_xdp()
639 frag_len -= buff_size; in aq_nic_map_xdp()
640 buff_offset += buff_size; in aq_nic_map_xdp()
759 unsigned int buff_size = 0U; in aq_nic_map_skb() local
767 buff_size = AQ_CFG_TX_FRAME_MAX; in aq_nic_map_skb()
769 buff_size = frag_len; in aq_nic_map_skb()
[all …]
/linux-6.6.21/drivers/usb/renesas_usbhs/
Dpipe.c474 u16 buff_size; in usbhsp_setup_pipebuff() local
489 buff_size = pipe_config->bufsize; in usbhsp_setup_pipebuff()
493 bufnmb_cnt = (buff_size / 64) - 1; in usbhsp_setup_pipebuff()
496 pipe_num, buff_size, bufnmb); in usbhsp_setup_pipebuff()
/linux-6.6.21/drivers/net/ethernet/qlogic/qed/
Dqed_iwarp.c1584 (u16)buf->buff_size, buf, 1); in qed_iwarp_ll2_post_rx()
1589 dma_free_coherent(&p_hwfn->cdev->pdev->dev, buf->buff_size, in qed_iwarp_ll2_post_rx()
1903 if ((fpdu->mpa_frag_len + tcp_payload_size) > (u16)buf->buff_size) { in qed_iwarp_cp_pkt()
1906 buf->buff_size, fpdu->mpa_frag_len, in qed_iwarp_cp_pkt()
1942 buf->buff_size, fpdu->mpa_frag_len, tcp_payload_size, in qed_iwarp_cp_pkt()
2474 dma_free_coherent(&p_hwfn->cdev->pdev->dev, buffer->buff_size, in qed_iwarp_ll2_rel_rx_pkt()
2517 buffer->piggy_buf->buff_size, in qed_iwarp_ll2_rel_tx_pkt()
2524 dma_free_coherent(&p_hwfn->cdev->pdev->dev, buffer->buff_size, in qed_iwarp_ll2_rel_tx_pkt()
2598 int num_rx_bufs, int buff_size, u8 ll2_handle) in qed_iwarp_ll2_alloc_buffers() argument
2612 buff_size, in qed_iwarp_ll2_alloc_buffers()
[all …]
Dqed_iwarp.h35 u32 buff_size; member
/linux-6.6.21/drivers/firmware/efi/libstub/
Dmem.c54 m->buff_size = m->map_size = size; in efi_get_memory_map()
/linux-6.6.21/drivers/ntb/
Dntb_transport.c209 size_t buff_size; member
803 mw->buff_size = 0; in ntb_free_mw()
832 if (mw->alloc_size > mw->buff_size) { in ntb_alloc_mw_buffer()
858 size_t xlat_size, buff_size; in ntb_set_mw() local
872 buff_size = round_up(size, xlat_align); in ntb_set_mw()
878 if (mw->buff_size) in ntb_set_mw()
883 mw->buff_size = buff_size; in ntb_set_mw()
884 mw->alloc_size = buff_size; in ntb_set_mw()
894 mw->buff_size = 0; in ntb_set_mw()
1330 mw->buff_size = 0; in ntb_transport_probe()
/linux-6.6.21/drivers/infiniband/hw/hns/
Dhns_roce_qp.c651 hr_qp->buff_size = 0; in set_wqe_buf_attr()
661 hr_qp->buff_size += buf_size; in set_wqe_buf_attr()
665 hr_qp->sge.offset = hr_qp->buff_size; in set_wqe_buf_attr()
672 hr_qp->buff_size += buf_size; in set_wqe_buf_attr()
676 hr_qp->rq.offset = hr_qp->buff_size; in set_wqe_buf_attr()
683 hr_qp->buff_size += buf_size; in set_wqe_buf_attr()
686 if (hr_qp->buff_size < 1) in set_wqe_buf_attr()
/linux-6.6.21/drivers/dma/
Dmv_xor_v2.c129 u32 buff_size; member
421 hw_descriptor->buff_size = len; in mv_xor_v2_prep_dma_memcpy()
480 hw_descriptor->buff_size = len; in mv_xor_v2_prep_dma_xor()
/linux-6.6.21/sound/soc/sof/
Ddebug.c217 static int memory_info_update(struct snd_sof_dev *sdev, char *buf, size_t buff_size) in memory_info_update() argument
255 ret = scnprintf(buf + len, buff_size - len, "zone %d.%d used %#8x free %#8x\n", in memory_info_update()
/linux-6.6.21/drivers/gpu/drm/bridge/cadence/
Dcdns-mhdp8546-hdcp.c83 u8 *buff, u16 buff_size) in cdns_mhdp_secure_mailbox_recv_data() argument
88 for (i = 0; i < buff_size; i++) { in cdns_mhdp_secure_mailbox_recv_data()
/linux-6.6.21/drivers/crypto/ccree/
Dcc_buffer_mgr.c117 u32 buff_size, u32 *curr_nents, in cc_render_buff_to_mlli() argument
124 new_nents = (*curr_nents + buff_size / CC_MAX_MLLI_ENTRY_SIZE + 1); in cc_render_buff_to_mlli()
132 while (buff_size > CC_MAX_MLLI_ENTRY_SIZE) { in cc_render_buff_to_mlli()
139 buff_size -= CC_MAX_MLLI_ENTRY_SIZE; in cc_render_buff_to_mlli()
145 cc_lli_set_size(mlli_entry_p, buff_size); in cc_render_buff_to_mlli()
/linux-6.6.21/drivers/s390/net/
Dlcs.h219 __u16 buff_size; member
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dsc/
Ddc_dsc.c332 int buff_size; in dc_dsc_parse_dsc_dpcd() local
338 buff_size = dpcd_dsc_basic_data[DP_DSC_RC_BUF_SIZE - DP_DSC_SUPPORT] + 1; in dc_dsc_parse_dsc_dpcd()
339 dsc_sink_caps->rc_buffer_size = buff_size * buff_block_size; in dc_dsc_parse_dsc_dpcd()
/linux-6.6.21/drivers/net/wireless/marvell/mwifiex/
D11n.c217 tx_buf->buff_size = cpu_to_le16(*buf_size); in mwifiex_cmd_recfg_tx_buf()
221 tx_buf->buff_size = 0; in mwifiex_cmd_recfg_tx_buf()

12