/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_urandom_usdt.c | 14 int BPF_USDT(urand_read_without_sema, int iter_num, int iter_cnt, int buf_sz) argument 20 __sync_fetch_and_add(&urand_read_without_sema_buf_sz_sum, buf_sz); 29 int BPF_USDT(urand_read_with_sema, int iter_num, int iter_cnt, int buf_sz) argument 35 __sync_fetch_and_add(&urand_read_with_sema_buf_sz_sum, buf_sz); 44 int BPF_USDT(urandlib_read_without_sema, int iter_num, int iter_cnt, int buf_sz) argument 50 __sync_fetch_and_add(&urandlib_read_without_sema_buf_sz_sum, buf_sz); 59 int BPF_USDT(urandlib_read_with_sema, int iter_num, int iter_cnt, int buf_sz) argument 65 __sync_fetch_and_add(&urandlib_read_with_sema_buf_sz_sum, buf_sz);
|
H A D | bpf_iter_task_stack.c | 45 uint64_t buf_sz = 0; local 59 buf_sz += res; 63 * the verifier will believe that max buf_sz value allows reading 66 bpf_seq_write(seq, &entries, buf_sz);
|
/linux-master/drivers/infiniband/hw/usnic/ |
H A D | usnic_transport.h | 44 int usnic_transport_sock_to_str(char *buf, int buf_sz,
|
H A D | usnic_ib_qp_grp.h | 90 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);
|
H A D | usnic_vnic.c | 89 int buf_sz, 102 offset += scnprintf(buf + offset, buf_sz - offset, 108 offset += printtitle(hdr_obj, buf + offset, buf_sz - offset); 109 offset += scnprintf(buf + offset, buf_sz - offset, "\n"); 110 offset += scnprintf(buf + offset, buf_sz - offset, 113 offset += printcols(buf + offset, buf_sz - offset); 114 offset += scnprintf(buf + offset, buf_sz - offset, "\n"); 121 offset += scnprintf(buf + offset, buf_sz - offset, 127 buf_sz - offset); 129 offset += scnprintf(buf + offset, buf_sz 88 usnic_vnic_dump(struct usnic_vnic *vnic, char *buf, int buf_sz, void *hdr_obj, int (*printtitle)(void *, char*, int), int (*printcols)(char *, int), int (*printrow)(void *, char *, int)) argument 178 usnic_vnic_spec_dump(char *buf, int buf_sz, struct usnic_vnic_res_spec *res_spec) argument [all...] |
H A D | usnic_transport.c | 63 int usnic_transport_sock_to_str(char *buf, int buf_sz, argument 71 memset(buf, 0, buf_sz); 76 return scnprintf(buf, buf_sz, "Proto:%u Addr:%pI4h Port:%hu",
|
H A D | usnic_vnic.h | 87 int usnic_vnic_dump(struct usnic_vnic *vnic, char *buf, int buf_sz, 97 int usnic_vnic_spec_dump(char *buf, int buf_sz,
|
/linux-master/drivers/media/test-drivers/vidtv/ |
H A D | vidtv_ts.c | 64 args.buf_sz, 73 args.buf_sz, 107 args.buf_sz, 114 args.buf_sz, 125 args.buf_sz,
|
H A D | vidtv_ts.h | 54 * @buf_sz: The size of the buffer in bytes. 62 u32 buf_sz; member in struct:pcr_write_args 71 * @buf_sz: The size of the buffer in bytes. 77 u32 buf_sz; member in struct:null_packet_write_args
|
H A D | vidtv_psi.h | 534 * @buf_sz: The size of the destination buffer. 542 u32 buf_sz; member in struct:vidtv_psi_pat_write_args 565 * @buf_sz: The size of the destination buffer. 574 u32 buf_sz; member in struct:vidtv_psi_sdt_write_args 598 * @buf_sz: The size of the destination buffer. 608 u32 buf_sz; member in struct:vidtv_psi_pmt_write_args 689 * @buf_sz: The size of the destination buffer. 697 u32 buf_sz; member in struct:vidtv_psi_nit_write_args 753 * @buf_sz: The size of the destination buffer. 761 u32 buf_sz; member in struct:vidtv_psi_eit_write_args [all...] |
/linux-master/drivers/net/ethernet/marvell/octeon_ep/ |
H A D | octep_ctrl_mbox.c | 164 u32 pi, ci, buf_sz, w_sz; local 184 buf_sz = msg->hdr.s.sz; 185 for (s = 0; ((s < msg->sg_num) && (buf_sz > 0)); s++) { 187 w_sz = (sg->sz <= buf_sz) ? sg->sz : buf_sz; 189 buf_sz -= w_sz; 228 u32 pi, ci, r_sz, buf_sz, q_depth; local 247 buf_sz = msg->hdr.s.sz; 248 for (s = 0; ((s < msg->sg_num) && (buf_sz > 0)); s++) { 250 r_sz = (sg->sz <= buf_sz) [all...] |
/linux-master/drivers/scsi/snic/ |
H A D | snic_trc.c | 51 snic_fmt_trc_data(struct snic_trc_data *td, char *buf, int buf_sz) argument 58 len += snprintf(buf, buf_sz, 75 snic_get_trc_data(char *buf, int buf_sz) argument 101 return snic_fmt_trc_data(td, buf, buf_sz);
|
/linux-master/drivers/net/ethernet/amd/pds_core/ |
H A D | fw.c | 101 u32 buf_sz, copy_sz, offset; local 117 buf_sz = sizeof(pdsc->cmd_regs->data); 121 (int)fw->size, buf_sz, DIV_ROUND_UP(fw->size, buf_sz)); 135 copy_sz = min_t(unsigned int, buf_sz, fw->size - offset);
|
/linux-master/tools/testing/selftests/sparc64/drivers/ |
H A D | adi-test.c | 180 static int read_adi(int fd, unsigned char *buf, int buf_sz) argument 187 ret = read(fd, buf + bytes_read, buf_sz - bytes_read); 193 update_stats(&read_stats, elapsed_time, buf_sz); 196 } while (bytes_read < buf_sz); 205 int buf_sz, unsigned long offset) 214 ret = pread(fd, buf + bytes_read, buf_sz - bytes_read, 221 update_stats(&pread_stats, elapsed_time, buf_sz); 225 } while (bytes_read < buf_sz); 236 static int write_adi(int fd, const unsigned char * const buf, int buf_sz) argument 243 ret = write(fd, buf + bytes_written, buf_sz 204 pread_adi(int fd, unsigned char *buf, int buf_sz, unsigned long offset) argument 259 pwrite_adi(int fd, const unsigned char * const buf, int buf_sz, unsigned long offset) argument [all...] |
/linux-master/tools/perf/util/intel-pt-decoder/ |
H A D | intel-pt-log.c | 29 size_t buf_sz; member in struct:log_buf 105 size_t space = b->buf_sz - b->head; 112 if (sz && b->head >= b->buf_sz) { 137 b->buf_sz = sz; 138 b->buf = malloc(b->buf_sz); 176 write_lines(b->buf + b->head, b->buf_sz - b->head, b->backend, &remove_first);
|
/linux-master/drivers/net/wireless/ath/ath11k/ |
H A D | dbring.c | 60 ath11k_dbring_fill_magic_value(ar, ptr_aligned, ring->buf_sz); 61 paddr = dma_map_single(ab->dev, ptr_aligned, ring->buf_sz, 99 dma_unmap_single(ab->dev, paddr, ring->buf_sz, 124 size = ring->buf_sz + align - 1; 171 param.buf_size = ring->buf_sz; 211 ring->buf_sz = db_cap->min_buf_sz; 326 size = ring->buf_sz + ring->buf_align - 1; 351 dma_unmap_single(ab->dev, buff->paddr, ring->buf_sz, 361 handler_data.data_sz = ring->buf_sz; 393 ring->buf_sz, DMA_FROM_DEVIC [all...] |
H A D | dbring.h | 51 u32 buf_sz; member in struct:ath11k_dbring
|
/linux-master/drivers/net/wireless/ath/ath12k/ |
H A D | dbring.c | 31 paddr = dma_map_single(ab->dev, ptr_aligned, ring->buf_sz, 68 dma_unmap_single(ab->dev, paddr, ring->buf_sz, 94 size = sizeof(*buff) + ring->buf_sz + align - 1; 135 arg.buf_size = ring->buf_sz; 175 ring->buf_sz = db_cap->min_buf_sz; 288 size = sizeof(*buff) + ring->buf_sz + ring->buf_align - 1; 313 dma_unmap_single(ab->dev, buff->paddr, ring->buf_sz, 320 handler_data.data_sz = ring->buf_sz; 351 ring->buf_sz, DMA_FROM_DEVICE);
|
H A D | dbring.h | 51 u32 buf_sz; member in struct:ath12k_dbring
|
H A D | ce.h | 145 unsigned int buf_sz; member in struct:ath12k_ce_pipe
|
/linux-master/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
H A D | vdec_h264_if.c | 169 unsigned int buf_sz = get_mv_buf_size(pic->buf_w, pic->buf_h); local 175 mem->size = buf_sz; 339 unsigned int buf_sz; local 353 buf_sz = bs->size; 354 nal_start_idx = find_start_code(buf, buf_sz); 367 buf_sz -= nal_start_idx; 368 if (buf_sz > HDR_PARSING_BUF_SZ) { 372 memcpy(inst->vsi->hdr_buf, buf + nal_start_idx, buf_sz); 380 data[0] = buf_sz;
|
/linux-master/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_fw.c | 101 u32 buf_sz, copy_sz, offset; local 117 buf_sz = sizeof(idev->dev_cmd_regs->data); 121 (int)fw->size, buf_sz, DIV_ROUND_UP(fw->size, buf_sz)); 132 copy_sz = min_t(unsigned int, buf_sz, fw->size - offset);
|
/linux-master/drivers/net/wireless/ath/ath10k/ |
H A D | snoc.h | 30 size_t buf_sz; member in struct:ath10k_snoc_pipe
|
/linux-master/tools/testing/selftests/net/tcp_ao/lib/ |
H A D | sock.c | 537 ssize_t test_client_loop(int sk, char *buf, size_t buf_sz, argument 547 for (i = 0; i < buf_sz; i += min(msg_len, buf_sz - i)) { 548 size_t sent, bytes = min(msg_len, buf_sz - i); 587 size_t buf_sz = msg_len * nr; local 588 char *buf = alloca(buf_sz); 591 randomize_buffer(buf, buf_sz); 592 ret = test_client_loop(sk, buf, buf_sz, msg_len, timeout_sec); 595 return ret != buf_sz ? -1 : 0;
|
/linux-master/tools/lib/bpf/ |
H A D | relo_core.h | 97 int bpf_core_format_spec(char *buf, size_t buf_sz, const struct bpf_core_spec *spec);
|