Home
last modified time | relevance | path

Searched refs:buf_sz (Results 1 – 25 of 36) sorted by relevance

12

/drivers/infiniband/hw/usnic/
Dusnic_vnic.c90 int buf_sz, in usnic_vnic_dump() argument
103 offset += scnprintf(buf + offset, buf_sz - offset, in usnic_vnic_dump()
109 offset += printtitle(hdr_obj, buf + offset, buf_sz - offset); in usnic_vnic_dump()
110 offset += scnprintf(buf + offset, buf_sz - offset, "\n"); in usnic_vnic_dump()
111 offset += scnprintf(buf + offset, buf_sz - offset, in usnic_vnic_dump()
114 offset += printcols(buf + offset, buf_sz - offset); in usnic_vnic_dump()
115 offset += scnprintf(buf + offset, buf_sz - offset, "\n"); in usnic_vnic_dump()
122 offset += scnprintf(buf + offset, buf_sz - offset, in usnic_vnic_dump()
128 buf_sz - offset); in usnic_vnic_dump()
130 offset += scnprintf(buf + offset, buf_sz - offset, in usnic_vnic_dump()
[all …]
Dusnic_transport.c64 int usnic_transport_sock_to_str(char *buf, int buf_sz, in usnic_transport_sock_to_str() argument
72 memset(buf, 0, buf_sz); in usnic_transport_sock_to_str()
77 return scnprintf(buf, buf_sz, "Proto:%u Addr:%pI4h Port:%hu", in usnic_transport_sock_to_str()
Dusnic_ib_qp_grp.h90 int usnic_ib_qp_grp_dump_hdr(char *buf, int buf_sz);
91 int usnic_ib_qp_grp_dump_rows(void *obj, char *buf, int buf_sz);
Dusnic_vnic.h87 int usnic_vnic_dump(struct usnic_vnic *vnic, char *buf, int buf_sz,
97 int usnic_vnic_spec_dump(char *buf, int buf_sz,
Dusnic_ib_qp_grp.c72 int usnic_ib_qp_grp_dump_hdr(char *buf, int buf_sz) in usnic_ib_qp_grp_dump_hdr() argument
74 return scnprintf(buf, buf_sz, "|QPN\t|State\t|PID\t|VF Idx\t|Fil ID"); in usnic_ib_qp_grp_dump_hdr()
77 int usnic_ib_qp_grp_dump_rows(void *obj, char *buf, int buf_sz) in usnic_ib_qp_grp_dump_rows() argument
84 return scnprintf(buf, buf_sz, "|%d\t|%s\t|%d\t|%hu\t|%d", in usnic_ib_qp_grp_dump_rows()
92 return scnprintf(buf, buf_sz, "|N/A\t|N/A\t|N/A\t|N/A\t|N/A"); in usnic_ib_qp_grp_dump_rows()
Dusnic_transport.h44 int usnic_transport_sock_to_str(char *buf, int buf_sz,
Dusnic_ib_main.c76 static int usnic_ib_dump_vf_hdr(void *obj, char *buf, int buf_sz) in usnic_ib_dump_vf_hdr() argument
79 return scnprintf(buf, buf_sz, "PF: %s ", dev_name(&vf->pf->ib_dev.dev)); in usnic_ib_dump_vf_hdr()
83 static void usnic_ib_dump_vf(struct usnic_ib_vf *vf, char *buf, int buf_sz) in usnic_ib_dump_vf() argument
85 usnic_vnic_dump(vf->vnic, buf, buf_sz, vf, in usnic_ib_dump_vf()
/drivers/media/platform/mtk-vcodec/vdec/
Dvdec_h264_if.c172 unsigned int buf_sz = get_mv_buf_size(pic->buf_w, pic->buf_h); in alloc_mv_buf() local
178 mem->size = buf_sz; in alloc_mv_buf()
347 unsigned int buf_sz; in vdec_h264_decode() local
361 buf_sz = bs->size; in vdec_h264_decode()
362 nal_start_idx = find_start_code(buf, buf_sz); in vdec_h264_decode()
375 buf_sz -= nal_start_idx; in vdec_h264_decode()
376 if (buf_sz > HDR_PARSING_BUF_SZ) { in vdec_h264_decode()
380 memcpy(inst->vsi->hdr_buf, buf + nal_start_idx, buf_sz); in vdec_h264_decode()
388 data[0] = buf_sz; in vdec_h264_decode()
/drivers/scsi/snic/
Dsnic_trc.c65 snic_fmt_trc_data(struct snic_trc_data *td, char *buf, int buf_sz) in snic_fmt_trc_data() argument
72 len += snprintf(buf, buf_sz, in snic_fmt_trc_data()
89 snic_get_trc_data(char *buf, int buf_sz) in snic_get_trc_data() argument
115 return snic_fmt_trc_data(td, buf, buf_sz); in snic_get_trc_data()
Dsnic_trc.h59 int snic_get_trc_data(char *buf, int buf_sz);
Dsnic_disc.c376 int buf_sz = snic->disc.rtgt_cnt * sizeof(*tgtid); in snic_handle_tgt_disc() local
379 snic_hex_dump("rpt_tgt_rsp", (char *)tgtid, buf_sz); in snic_handle_tgt_disc()
/drivers/iio/adc/
Dstm32-dfsdm-adc.c92 unsigned int buf_sz; /* Buffer size */ member
791 adc->buf_sz = min(rx_buf_sz, watermark * 2 * adc->nconv); in stm32_dfsdm_set_watermark()
806 unsigned int i = adc->buf_sz - state.residue; in stm32_dfsdm_adc_dma_residue()
813 size = adc->buf_sz + i - adc->bufi; in stm32_dfsdm_adc_dma_residue()
861 if (adc->bufi >= adc->buf_sz) in stm32_dfsdm_adc_trigger_handler()
902 if (adc->bufi >= adc->buf_sz) { in stm32_dfsdm_dma_buffer_done()
905 adc->buf_sz - old_pos, adc->cb_priv); in stm32_dfsdm_dma_buffer_done()
938 adc->buf_sz, adc->buf_sz / 2); in stm32_dfsdm_adc_dma_start()
951 adc->buf_sz, adc->buf_sz / 2, in stm32_dfsdm_adc_dma_start()
/drivers/misc/mei/
Dinterrupt.c93 size_t buf_sz; in mei_cl_irq_read_msg() local
116 buf_sz = length + cb->buf_idx; in mei_cl_irq_read_msg()
118 if (buf_sz < cb->buf_idx) { in mei_cl_irq_read_msg()
125 if (cb->buf.size < buf_sz) { in mei_cl_irq_read_msg()
/drivers/net/wireless/realtek/rtw88/
Dpci.c132 int buf_sz = RTK_PCI_RX_BUF_SIZE; in rtw_pci_free_rx_ring_skbs() local
142 pci_unmap_single(pdev, dma, buf_sz, PCI_DMA_FROMDEVICE); in rtw_pci_free_rx_ring_skbs()
210 int buf_sz = RTK_PCI_RX_BUF_SIZE; in rtw_pci_reset_rx_desc() local
216 dma = pci_map_single(pdev, skb->data, buf_sz, PCI_DMA_FROMDEVICE); in rtw_pci_reset_rx_desc()
236 int buf_sz = RTK_PCI_RX_BUF_SIZE; in rtw_pci_sync_rx_desc_device() local
238 dma_sync_single_for_device(dev, dma, buf_sz, DMA_FROM_DEVICE); in rtw_pci_sync_rx_desc_device()
256 int buf_sz = RTK_PCI_RX_BUF_SIZE; in rtw_pci_init_rx_ring() local
268 skb = dev_alloc_skb(buf_sz); in rtw_pci_init_rx_ring()
275 memset(skb->data, 0, buf_sz); in rtw_pci_init_rx_ring()
299 pci_unmap_single(pdev, dma, buf_sz, PCI_DMA_FROMDEVICE); in rtw_pci_init_rx_ring()
/drivers/net/ethernet/huawei/hinic/
Dhinic_rx.c139 skb = netdev_alloc_skb_ip_align(rxq->netdev, rxq->rq->buf_sz); in rx_alloc_skb()
145 addr = dma_map_single(&pdev->dev, skb->data, rxq->rq->buf_sz, in rx_alloc_skb()
173 dma_unmap_single(&pdev->dev, dma_addr, rxq->rq->buf_sz, in rx_unmap_skb()
Dhinic_hw_qp.h100 size_t buf_sz; member
/drivers/net/wireless/ath/ath10k/
Dsnoc.h28 size_t buf_sz; member
Dsnoc.c493 skb = dev_alloc_skb(pipe->buf_sz); in __ath10k_snoc_rx_post_buf()
531 if (pipe->buf_sz == 0) in ath10k_snoc_rx_post_pipe()
847 if (!snoc_pipe->buf_sz) in ath10k_snoc_rx_pipe_cleanup()
879 if (!snoc_pipe->buf_sz) in ath10k_snoc_tx_pipe_cleanup()
1333 pipe->buf_sz = host_ce_config_wlan[i].src_sz_max; in ath10k_snoc_setup_resource()
Dpci.h90 size_t buf_sz; member
/drivers/net/ethernet/calxeda/
Dxgmac.c404 static inline void desc_set_buf_len(struct xgmac_dma_desc *p, u32 buf_sz) in desc_set_buf_len() argument
406 if (buf_sz > MAX_DESC_BUF_SZ) in desc_set_buf_len()
408 (buf_sz - MAX_DESC_BUF_SZ) << DESC_BUFFER2_SZ_OFFSET); in desc_set_buf_len()
410 p->buf_size = cpu_to_le32(buf_sz); in desc_set_buf_len()
421 int buf_sz) in desc_init_rx_desc() argument
428 desc_set_buf_len(p, buf_sz); in desc_init_rx_desc()
/drivers/staging/most/dim2/
Dhal.c393 static void dbrcnt_enq(int buf_sz) in dbrcnt_enq() argument
395 g.atx_dbr.rest_size -= buf_sz; in dbrcnt_enq()
396 g.atx_dbr.sz_queue[norm_pc(g.atx_dbr.wpc)] = buf_sz; in dbrcnt_enq()
/drivers/net/ethernet/via/
Dvia-velocity.c1501 vptr->rx.buf_sz = (mtu <= ETH_DATA_LEN) ? PKT_BUF_SZ : mtu + 32; in velocity_set_rxbufsize()
1519 rd_info->skb = netdev_alloc_skb(vptr->netdev, vptr->rx.buf_sz + 64); in velocity_alloc_rx_buf()
1530 vptr->rx.buf_sz, DMA_FROM_DEVICE); in velocity_alloc_rx_buf()
1537 rd->size = cpu_to_le16(vptr->rx.buf_sz) | RX_INTEN; in velocity_alloc_rx_buf()
1593 dma_unmap_single(vptr->dev, rd_info->skb_dma, vptr->rx.buf_sz, in velocity_free_rd_ring()
2050 vptr->rx.buf_sz, DMA_FROM_DEVICE); in velocity_receive_frame()
2057 dma_unmap_single(vptr->dev, rd_info->skb_dma, vptr->rx.buf_sz, in velocity_receive_frame()
2061 vptr->rx.buf_sz, DMA_FROM_DEVICE); in velocity_receive_frame()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_vfpf.h258 u16 buf_sz; member
/drivers/crypto/hisilicon/
Dqm.c149 #define QM_MK_CQC_DW3_V1(hop_num, pg_sz, buf_sz, cqe_sz) \ argument
152 ((buf_sz) << QM_CQ_BUF_SIZE_SHIFT) | \
163 #define QM_MK_SQC_DW3_V1(hop_num, pg_sz, buf_sz, sqe_sz) \ argument
166 ((buf_sz) << QM_SQ_BUF_SIZE_SHIFT) | \
/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_main.c82 static int buf_sz = DEFAULT_BUFSIZE; variable
83 module_param(buf_sz, int, 0644);
84 MODULE_PARM_DESC(buf_sz, "DMA buffer size");
124 if (unlikely((buf_sz < DEFAULT_BUFSIZE) || (buf_sz > BUF_SIZE_16KiB))) in stmmac_verify_args()
125 buf_sz = DEFAULT_BUFSIZE; in stmmac_verify_args()
2676 buf_sz = bfsize; in stmmac_open()
4916 if (kstrtoint(opt + 7, 0, &buf_sz)) in stmmac_cmdline_opt()

12