| /OK3568_Linux_fs/kernel/tools/perf/util/ |
| H A D | bpf-prologue.h | 19 struct bpf_insn *new_prog, size_t *new_cnt, 28 size_t *new_cnt, in bpf__gen_prologue() argument 31 if (!new_cnt) in bpf__gen_prologue() 33 *new_cnt = 0; in bpf__gen_prologue()
|
| H A D | bpf-prologue.c | 365 struct bpf_insn *new_prog, size_t *new_cnt, in bpf__gen_prologue() argument 375 if (!new_prog || !new_cnt) in bpf__gen_prologue() 392 *new_cnt = pos_get_cnt(&pos); in bpf__gen_prologue() 504 *new_cnt = pos_get_cnt(&pos); in bpf__gen_prologue()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-omap2/omap5/ |
| H A D | fdt.c | 36 int len, i, old_cnt, new_cnt; in ft_hs_fixup_crossbar() local 66 new_cnt = sizeof(hs_irq_skip) / in ft_hs_fixup_crossbar() 70 temp = malloc(sizeof(u32) * (old_cnt + new_cnt)); in ft_hs_fixup_crossbar() 71 for (i = 0; i < new_cnt; i++) in ft_hs_fixup_crossbar() 74 temp[i + new_cnt] = p_data[i]; in ft_hs_fixup_crossbar() 80 (old_cnt + new_cnt) * sizeof(u32)); in ft_hs_fixup_crossbar()
|
| /OK3568_Linux_fs/kernel/tools/perf/arch/x86/util/ |
| H A D | intel-bts.c | 282 int cnt = btsr->snapshot_ref_cnt, new_cnt = cnt * 2; in intel_bts_alloc_snapshot_refs() local 285 if (!new_cnt) in intel_bts_alloc_snapshot_refs() 286 new_cnt = 16; in intel_bts_alloc_snapshot_refs() 288 while (new_cnt <= idx) in intel_bts_alloc_snapshot_refs() 289 new_cnt *= 2; in intel_bts_alloc_snapshot_refs() 291 refs = calloc(new_cnt, sz); in intel_bts_alloc_snapshot_refs() 298 btsr->snapshot_ref_cnt = new_cnt; in intel_bts_alloc_snapshot_refs()
|
| H A D | intel-pt.c | 927 int cnt = ptr->snapshot_ref_cnt, new_cnt = cnt * 2; in intel_pt_alloc_snapshot_refs() local 930 if (!new_cnt) in intel_pt_alloc_snapshot_refs() 931 new_cnt = 16; in intel_pt_alloc_snapshot_refs() 933 while (new_cnt <= idx) in intel_pt_alloc_snapshot_refs() 934 new_cnt *= 2; in intel_pt_alloc_snapshot_refs() 936 refs = calloc(new_cnt, sz); in intel_pt_alloc_snapshot_refs() 943 ptr->snapshot_ref_cnt = new_cnt; in intel_pt_alloc_snapshot_refs()
|
| /OK3568_Linux_fs/kernel/drivers/rtc/ |
| H A D | sysfs.c | 317 size_t old_cnt = 0, add_cnt = 0, new_cnt; in rtc_add_groups() local 333 new_cnt = old_cnt + add_cnt + 1; in rtc_add_groups() 334 groups = devm_kcalloc(&rtc->dev, new_cnt, sizeof(*groups), GFP_KERNEL); in rtc_add_groups()
|
| /OK3568_Linux_fs/kernel/net/vmw_vsock/ |
| H A D | virtio_transport.c | 230 int new_cnt; in virtio_transport_cancel_pkt() local 232 new_cnt = atomic_sub_return(cnt, &vsock->queued_replies); in virtio_transport_cancel_pkt() 233 if (new_cnt + cnt >= virtqueue_get_vring_size(rx_vq) && in virtio_transport_cancel_pkt() 234 new_cnt < virtqueue_get_vring_size(rx_vq)) in virtio_transport_cancel_pkt()
|
| /OK3568_Linux_fs/kernel/drivers/vhost/ |
| H A D | vsock.c | 307 int new_cnt; in vhost_transport_cancel_pkt() local 309 new_cnt = atomic_sub_return(cnt, &vsock->queued_replies); in vhost_transport_cancel_pkt() 310 if (new_cnt + cnt >= tx_vq->num && new_cnt < tx_vq->num) in vhost_transport_cancel_pkt()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/msm/disp/dpu1/ |
| H A D | dpu_encoder_phys_cmd.c | 75 int new_cnt; in dpu_encoder_phys_cmd_pp_tx_done_irq() local 88 new_cnt = atomic_add_unless(&phys_enc->pending_kickoff_cnt, -1, 0); in dpu_encoder_phys_cmd_pp_tx_done_irq() 93 new_cnt, event); in dpu_encoder_phys_cmd_pp_tx_done_irq()
|
| /OK3568_Linux_fs/kernel/tools/lib/bpf/ |
| H A D | btf.c | 118 size_t new_cnt; in btf_add_mem() local 128 new_cnt = *cap_cnt; in btf_add_mem() 129 new_cnt += new_cnt / 4; /* expand by 25% */ in btf_add_mem() 130 if (new_cnt < 16) /* but at least 16 elements */ in btf_add_mem() 131 new_cnt = 16; in btf_add_mem() 132 if (new_cnt > max_cnt) /* but not exceeding a set limit */ in btf_add_mem() 133 new_cnt = max_cnt; in btf_add_mem() 134 if (new_cnt < cur_cnt + add_cnt) /* also ensure we have enough memory */ in btf_add_mem() 135 new_cnt = cur_cnt + add_cnt; in btf_add_mem() 137 new_data = libbpf_reallocarray(*data, new_cnt, elem_sz); in btf_add_mem() [all …]
|
| H A D | libbpf.c | 6213 size_t sub_insn_idx, insn_idx, new_cnt; in bpf_object__reloc_code() local 6274 new_cnt = main_prog->insns_cnt + subprog->insns_cnt; in bpf_object__reloc_code() 6275 insns = libbpf_reallocarray(main_prog->insns, new_cnt, sizeof(*insns)); in bpf_object__reloc_code() 6281 main_prog->insns_cnt = new_cnt; in bpf_object__reloc_code()
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/ocrdma/ |
| H A D | ocrdma_verbs.c | 1011 int ocrdma_resize_cq(struct ib_cq *ibcq, int new_cnt, in ocrdma_resize_cq() argument 1017 if (new_cnt < 1 || new_cnt > cq->max_hw_cqe) { in ocrdma_resize_cq() 1021 ibcq->cqe = new_cnt; in ocrdma_resize_cq()
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/qedr/ |
| H A D | verbs.c | 1051 int qedr_resize_cq(struct ib_cq *ibcq, int new_cnt, struct ib_udata *udata) in qedr_resize_cq() argument
|