Home
last modified time | relevance | path

Searched refs:sz (Results 1 – 25 of 588) sorted by relevance

12345678910>>...24

/linux/net/tipc/
H A Dtrace.c56 size_t sz = (more) ? SKB_LMAX : SKB_LMIN; in tipc_skb_dump() local
61 i += scnprintf(buf, sz, "msg: (null)\n"); in tipc_skb_dump()
69 i += scnprintf(buf, sz, "msg: %u", msg_user(hdr)); in tipc_skb_dump()
70 i += scnprintf(buf + i, sz - i, " %u", msg_type(hdr)); in tipc_skb_dump()
71 i += scnprintf(buf + i, sz - i, " %u", msg_hdr_sz(hdr)); in tipc_skb_dump()
72 i += scnprintf(buf + i, sz - i, " %u", msg_data_sz(hdr)); in tipc_skb_dump()
73 i += scnprintf(buf + i, sz - i, " %x", msg_orignode(hdr)); in tipc_skb_dump()
74 i += scnprintf(buf + i, sz - i, " %x", msg_destnode(hdr)); in tipc_skb_dump()
75 i += scnprintf(buf + i, sz - i, " %u", msg_seqno(hdr)); in tipc_skb_dump()
76 i += scnprintf(buf + i, sz - i, " %u", msg_ack(hdr)); in tipc_skb_dump()
[all …]
/linux/arch/arc/mm/
H A Dcache.c36 unsigned long sz, const int op, const int full_page);
38 void (*__dma_cache_wback_inv)(phys_addr_t start, unsigned long sz);
39 void (*__dma_cache_inv)(phys_addr_t start, unsigned long sz);
40 void (*__dma_cache_wback)(phys_addr_t start, unsigned long sz);
55 p_slc->sz_k = 128 << slc_cfg.sz; in read_decode_cache_bcr_arcv2()
119 p_ic->sz_k = 1 << (ibcr.sz - 1); in arc_cache_mumbojumbo()
145 p_dc->sz_k = 1 << (dbcr.sz - 1); in arc_cache_mumbojumbo()
189 unsigned long sz, const int op, const int full_page) in __cache_line_loop_v3() argument
209 sz += paddr & ~CACHE_LINE_MASK; in __cache_line_loop_v3()
213 num_lines = DIV_ROUND_UP(sz, L1_CACHE_BYTES); in __cache_line_loop_v3()
[all …]
/linux/arch/mips/include/asm/
H A Dmips-gic.h30 #define GIC_ACCESSOR_RO(sz, off, name) \ argument
31 CPS_ACCESSOR_RO(gic, sz, MIPS_GIC_SHARED_OFS + off, name) \
32 CPS_ACCESSOR_RO(gic, sz, MIPS_GIC_REDIR_OFS + off, redir_##name)
35 #define GIC_ACCESSOR_RW(sz, off, name) \ argument
36 CPS_ACCESSOR_RW(gic, sz, MIPS_GIC_SHARED_OFS + off, name) \
37 CPS_ACCESSOR_RW(gic, sz, MIPS_GIC_REDIR_OFS + off, redir_##name)
40 #define GIC_VX_ACCESSOR_RO(sz, off, name) \ argument
41 CPS_ACCESSOR_RO(gic, sz, MIPS_GIC_LOCAL_OFS + off, vl_##name) \
42 CPS_ACCESSOR_RO(gic, sz, MIPS_GIC_REDIR_OFS + off, vo_##name)
45 #define GIC_VX_ACCESSOR_RW(sz, off, name) \ argument
[all …]
H A Dmips-cpc.h64 #define CPC_ACCESSOR_RO(sz, off, name) \ argument
65 CPS_ACCESSOR_RO(cpc, sz, MIPS_CPC_GCB_OFS + off, name) \
66 CPS_ACCESSOR_RO(cpc, sz, MIPS_CPC_COCB_OFS + off, redir_##name)
68 #define CPC_ACCESSOR_RW(sz, off, name) \ argument
69 CPS_ACCESSOR_RW(cpc, sz, MIPS_CPC_GCB_OFS + off, name) \
70 CPS_ACCESSOR_RW(cpc, sz, MIPS_CPC_COCB_OFS + off, redir_##name)
72 #define CPC_CX_ACCESSOR_RO(sz, off, name) \ argument
73 CPS_ACCESSOR_RO(cpc, sz, MIPS_CPC_CLCB_OFS + off, cl_##name) \
74 CPS_ACCESSOR_RO(cpc, sz, MIPS_CPC_COCB_OFS + off, co_##name)
76 #define CPC_CX_ACCESSOR_RW(sz, off, name) \ argument
[all …]
/linux/drivers/net/ethernet/marvell/octeon_ep/
H A Doctep_ctrl_mbox.c59 static u32 octep_ctrl_mbox_circq_inc(u32 index, u32 inc, u32 sz) in octep_ctrl_mbox_circq_inc() argument
61 return (index + inc) % sz; in octep_ctrl_mbox_circq_inc()
64 static u32 octep_ctrl_mbox_circq_space(u32 pi, u32 ci, u32 sz) in octep_ctrl_mbox_circq_space() argument
66 return sz - (abs(pi - ci) % sz); in octep_ctrl_mbox_circq_space()
69 static u32 octep_ctrl_mbox_circq_depth(u32 pi, u32 ci, u32 sz) in octep_ctrl_mbox_circq_depth() argument
71 return (abs(pi - ci) % sz); in octep_ctrl_mbox_circq_depth()
109 mbox->h2fq.sz = readl(OCTEP_CTRL_MBOX_H2FQ_SZ(mbox->barmem)); in octep_ctrl_mbox_init()
114 mbox->f2hq.sz = readl(OCTEP_CTRL_MBOX_F2HQ_SZ(mbox->barmem)); in octep_ctrl_mbox_init()
119 mbox->h2fq.sz; in octep_ctrl_mbox_init()
143 *pi = octep_ctrl_mbox_circq_inc(*pi, w_sz, q->sz); in octep_write_mbox_data()
[all …]
/linux/tools/perf/util/
H A Dmem-events.c333 int perf_mem__tlb_scnprintf(char *out, size_t sz, const struct mem_info *mem_info) in perf_mem__tlb_scnprintf() argument
339 sz -= 1; /* -1 for null termination */ in perf_mem__tlb_scnprintf()
358 l += scnprintf(out + l, sz - l, tlb_access[i]); in perf_mem__tlb_scnprintf()
361 l += scnprintf(out, sz - l, "N/A"); in perf_mem__tlb_scnprintf()
363 l += scnprintf(out + l, sz - l, " hit"); in perf_mem__tlb_scnprintf()
365 l += scnprintf(out + l, sz - l, " miss"); in perf_mem__tlb_scnprintf()
417 static int perf_mem__op_scnprintf(char *out, size_t sz, const struct mem_info *mem_info) in perf_mem__op_scnprintf() argument
426 l = scnprintf(out, sz, "N/A"); in perf_mem__op_scnprintf()
428 l = scnprintf(out, sz, "LOAD"); in perf_mem__op_scnprintf()
430 l = scnprintf(out, sz, "STORE"); in perf_mem__op_scnprintf()
[all …]
/linux/tools/lib/
H A Dfind_bit.c29 unsigned long idx, val, sz = (size); \
31 for (idx = 0; idx * BITS_PER_LONG < sz; idx++) { \
34 sz = min(idx * BITS_PER_LONG + __ffs(MUNGE(val)), sz); \
39 sz; \
51 unsigned long mask, idx, tmp, sz = (size), __start = (start); \
53 if (unlikely(__start >= sz)) \
60 if ((idx + 1) * BITS_PER_LONG >= sz) \
65 sz = min(idx * BITS_PER_LONG + __ffs(MUNGE(tmp)), sz); \
67 sz; \
/linux/arch/arm/include/asm/
H A Dbitops.h202 #define find_first_zero_bit(p,sz) _find_first_zero_bit_le(p,sz) argument
203 #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_le(p,sz,off) argument
204 #define find_first_bit(p,sz) _find_first_bit_le(p,sz) argument
205 #define find_next_bit(p,sz,off) _find_next_bit_le(p,sz,off) argument
211 #define find_first_zero_bit(p,sz) _find_first_zero_bit_be(p,sz) argument
212 #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_be(p,sz,off) argument
213 #define find_first_bit(p,sz) _find_first_bit_be(p,sz) argument
214 #define find_next_bit(p,sz,off) _find_next_bit_be(p,sz,off) argument
/linux/net/netfilter/
H A Dnf_conntrack_h323_asn1.c82 unsigned char sz; member
321 switch (f->sz) { in decode_int()
350 INC_BITS(bs, f->sz); in decode_int()
369 INC_BITS(bs, f->sz); in decode_enum()
385 switch (f->sz) { in decode_bitstr()
421 if (nf_h323_error_boundary(bs, 0, f->sz)) in decode_numstr()
423 len = get_bits(bs, f->sz) + f->lb; in decode_numstr()
440 switch (f->sz) { in decode_octstr()
470 if (nf_h323_error_boundary(bs, 0, f->sz)) in decode_octstr()
472 len = get_bits(bs, f->sz) + f->lb; in decode_octstr()
[all …]
/linux/drivers/char/
H A Dmem.c40 unsigned long sz; in size_inside_page() local
42 sz = PAGE_SIZE - (start & (PAGE_SIZE - 1)); in size_inside_page()
44 return min(sz, size); in size_inside_page()
86 ssize_t read, sz; in read_mem() local
100 sz = size_inside_page(p, count); in read_mem()
101 if (sz > 0) { in read_mem()
102 if (clear_user(buf, sz)) in read_mem()
104 buf += sz; in read_mem()
105 p += sz; in read_mem()
106 count -= sz; in read_mem()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dglobal_data_init.c12 size_t sz; in test_global_data_init() local
23 sz = bpf_map__value_size(map); in test_global_data_init()
24 newval = malloc(sz); in test_global_data_init()
28 memset(newval, 0, sz); in test_global_data_init()
30 err = bpf_map__set_initial_value(map, newval, sz - 1); in test_global_data_init()
34 err = bpf_map__set_initial_value(map, newval, sz); in test_global_data_init()
46 buff = malloc(sz); in test_global_data_init()
49 if (CHECK(!buff || err || memcmp(buff, newval, sz), in test_global_data_init()
54 memset(newval, 1, sz); in test_global_data_init()
56 err = bpf_map__set_initial_value(map, newval, sz); in test_global_data_init()
H A Dtest_veristat.c17 size_t sz; member
35 fix->sz = 1000000; in init_fixture()
36 fix->output = malloc(fix->sz); in init_fixture()
77 read(fix->fd, fix->output, fix->sz); in test_set_global_vars_succeeds()
119 read(fix->fd, fix->output, fix->sz); in test_set_global_vars_from_file_succeeds()
137 read(fix->fd, fix->output, fix->sz); in test_set_global_vars_out_of_range()
152 read(fix->fd, fix->output, fix->sz); in test_unsupported_ptr_array_type()
167 read(fix->fd, fix->output, fix->sz); in test_array_out_of_bounds()
182 read(fix->fd, fix->output, fix->sz); in test_array_index_not_found()
197 pread(fix->fd, fix->output, fix->sz, in test_array_index_for_non_array()
[all...]
/linux/net/xfrm/
H A Dxfrm_hash.c16 struct hlist_head *xfrm_hash_alloc(unsigned int sz) in xfrm_hash_alloc() argument
20 if (sz <= PAGE_SIZE) in xfrm_hash_alloc()
21 n = kzalloc(sz, GFP_KERNEL); in xfrm_hash_alloc()
23 n = vzalloc(sz); in xfrm_hash_alloc()
27 get_order(sz)); in xfrm_hash_alloc()
32 void xfrm_hash_free(struct hlist_head *n, unsigned int sz) in xfrm_hash_free() argument
34 if (sz <= PAGE_SIZE) in xfrm_hash_free()
39 free_pages((unsigned long)n, get_order(sz)); in xfrm_hash_free()
/linux/drivers/mtd/parsers/
H A Dafs.c83 size_t sz; in afs_is_v1() local
86 ret = mtd_read(mtd, ptr, 4, &sz, (u_char *)&magic); in afs_is_v1()
92 if (ret >= 0 && sz != 4) in afs_is_v1()
103 size_t sz; in afs_is_v2() local
106 ret = mtd_read(mtd, ptr, 8, &sz, (u_char *)foot); in afs_is_v2()
112 if (ret >= 0 && sz != 8) in afs_is_v2()
132 size_t sz; in afs_parse_v1_partition() local
143 ret = mtd_read(mtd, ptr, sizeof(fs), &sz, (u_char *)&fs); in afs_parse_v1_partition()
144 if (ret >= 0 && sz != sizeof(fs)) in afs_parse_v1_partition()
182 ret = mtd_read(mtd, iis_ptr, sizeof(iis), &sz, (u_char *)&iis); in afs_parse_v1_partition()
[all …]
/linux/arch/xtensa/kernel/
H A Djump_label.c29 size_t sz; member
33 static void local_patch_text(unsigned long addr, const void *data, size_t sz) in local_patch_text() argument
35 memcpy((void *)addr, data, sz); in local_patch_text()
36 local_flush_icache_range(addr, addr + sz); in local_patch_text()
44 local_patch_text(patch->addr, patch->data, patch->sz); in patch_text_stop_machine()
49 __invalidate_icache_range(patch->addr, patch->sz); in patch_text_stop_machine()
54 static void patch_text(unsigned long addr, const void *data, size_t sz) in patch_text() argument
60 .sz = sz, in patch_text()
69 local_patch_text(addr, data, sz); in patch_text()
/linux/arch/arm/crypto/
H A Daes-cipher-core.S34 .macro __load, out, in, idx, sz, op
36 ldr\op \out, [ttab, \in, lsr #(8 * \idx) - \sz]
38 ldr\op \out, [ttab, \in, lsl #\sz]
42 .macro __hround, out0, out1, in0, in1, in2, in3, t3, t4, enc, sz, op, oldcpsr
45 __load \out0, \out0, 0, \sz, \op
46 __load t0, t0, 1, \sz, \op
55 __load \out1, \out1, 0, \sz, \op
57 __load t1, t1, 1, \sz, \op
58 __load t2, t2, 2, \sz, \op
70 __load \t3, \t3, 2, \sz, \op
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dport.c112 int sz = MLX5_ST_SZ_BYTES(pbmc_reg); in mlx5e_port_query_pbmc() local
116 in = kzalloc(sz, GFP_KERNEL); in mlx5e_port_query_pbmc()
121 err = mlx5_core_access_reg(mdev, in, sz, out, sz, MLX5_REG_PBMC, 0, 0); in mlx5e_port_query_pbmc()
129 int sz = MLX5_ST_SZ_BYTES(pbmc_reg); in mlx5e_port_set_pbmc() local
133 out = kzalloc(sz, GFP_KERNEL); in mlx5e_port_set_pbmc()
138 err = mlx5_core_access_reg(mdev, in, sz, out, sz, MLX5_REG_PBMC, 0, 1); in mlx5e_port_set_pbmc()
219 int sz = MLX5_ST_SZ_BYTES(pptb_reg); in mlx5e_port_query_priority2buffer() local
226 in = kzalloc(sz, GFP_KERNEL); in mlx5e_port_query_priority2buffer()
227 out = kzalloc(sz, GFP_KERNEL); in mlx5e_port_query_priority2buffer()
234 err = mlx5_core_access_reg(mdev, in, sz, out, sz, MLX5_REG_PPTB, 0, 0); in mlx5e_port_query_priority2buffer()
[all …]
/linux/arch/arm/mach-orion5x/
H A Dts78xx-setup.c157 int sz; in ts78xx_ts_nand_write_buf() local
160 sz = min_t(int, 4 - off, len); in ts78xx_ts_nand_write_buf()
161 writesb(io_base, buf, sz); in ts78xx_ts_nand_write_buf()
162 buf += sz; in ts78xx_ts_nand_write_buf()
163 len -= sz; in ts78xx_ts_nand_write_buf()
166 sz = len >> 2; in ts78xx_ts_nand_write_buf()
167 if (sz) { in ts78xx_ts_nand_write_buf()
169 writesl(io_base, buf32, sz); in ts78xx_ts_nand_write_buf()
170 buf += sz << 2; in ts78xx_ts_nand_write_buf()
171 len -= sz << 2; in ts78xx_ts_nand_write_buf()
[all …]
/linux/include/net/libeth/
H A Dcache.h16 #define libeth_cacheline_group_assert(type, grp, sz) \ argument
19 (sz))
20 #define __libeth_cacheline_struct_assert(type, sz) \ argument
21 static_assert(sizeof(type) == (sz))
23 #define libeth_cacheline_group_assert(type, grp, sz) \ argument
26 (sz))
27 #define __libeth_cacheline_struct_assert(type, sz) \ argument
28 static_assert(sizeof(type) <= (sz))
/linux/arch/arm64/crypto/
H A Daes-cipher-core.S20 .macro __pair1, sz, op, reg0, reg1, in0, in1e, in1d, shift
49 .macro __pair0, sz, op, reg0, reg1, in0, in1e, in1d, shift
52 ldr\op \reg0, [tt, \reg0, uxtw #\sz]
53 ldr\op \reg1, [tt, \reg1, uxtw #\sz]
56 .macro __hround, out0, out1, in0, in1, in2, in3, t0, t1, enc, sz, op
59 __pair\enc \sz, \op, w12, w13, \in0, \in1, \in3, 0
60 __pair\enc \sz, \op, w14, w15, \in1, \in2, \in0, 8
61 __pair\enc \sz, \op, w16, w17, \in2, \in3, \in1, 16
62 __pair\enc \sz, \op, \t0, \t1, \in3, \in0, \in2, 24
74 .macro fround, out0, out1, out2, out3, in0, in1, in2, in3, sz=2, op argument
[all …]
/linux/arch/arm64/include/asm/
H A Dpercpu.h55 #define PERCPU_RW_OPS(sz) \ argument
56 static inline unsigned long __percpu_read_##sz(void *ptr) \
58 return READ_ONCE(*(u##sz *)ptr); \
61 static inline void __percpu_write_##sz(void *ptr, unsigned long val) \
63 WRITE_ONCE(*(u##sz *)ptr, (u##sz)val); \
66 #define __PERCPU_OP_CASE(w, sfx, name, sz, op_llsc, op_lse) \ argument
68 __percpu_##name##_case_##sz(void *ptr, unsigned long val) \
71 u##sz tmp; \
83 [ptr] "+Q"(*(u##sz *)ptr) \
84 : [val] "r" ((u##sz)(val))); \
[all …]
H A Dcmpxchg.h21 #define __XCHG_CASE(w, sfx, name, sz, mb, nop_lse, acq, acq_lse, rel, cl) \ argument
22 static inline u##sz __xchg_case_##name##sz(u##sz x, volatile void *ptr) \
24 u##sz ret; \
38 : "=&r" (ret), "=&r" (tmp), "+Q" (*(u##sz *)ptr) \
105 #define __CMPXCHG_CASE(name, sz) \ argument
106 static inline u##sz __cmpxchg_case_##name##sz(volatile void *ptr, \
107 u##sz old, \
108 u##sz new) \
110 return __lse_ll_sc_body(_cmpxchg_case_##name##sz, \
211 #define __CMPWAIT_CASE(w, sfx, sz) \ argument
[all …]
/linux/arch/riscv/mm/
H A Dhugetlbpage.c33 unsigned long sz) in huge_pte_alloc() argument
51 if (sz == PUD_SIZE) { in huge_pte_alloc()
56 if (sz == PMD_SIZE) { in huge_pte_alloc()
69 if (napot_cont_size(order) == sz) { in huge_pte_alloc()
86 unsigned long sz) in huge_pte_offset() argument
104 if (sz == PUD_SIZE) in huge_pte_offset()
112 if (sz == PMD_SIZE) in huge_pte_offset()
120 if (napot_cont_size(order) == sz) { in huge_pte_offset()
218 static int num_contig_ptes_from_size(unsigned long sz, size_t *pgsize) in num_contig_ptes_from_size() argument
222 if (sz >= PGDIR_SIZE) in num_contig_ptes_from_size()
[all …]
/linux/mm/
H A Dslab_common.c767 #define KMALLOC_DMA_NAME(sz) .name[KMALLOC_DMA] = "dma-kmalloc-" #sz, argument
769 #define KMALLOC_DMA_NAME(sz) argument
773 #define KMALLOC_CGROUP_NAME(sz) .name[KMALLOC_CGROUP] = "kmalloc-cg-" #sz, argument
775 #define KMALLOC_CGROUP_NAME(sz) argument
779 #define KMALLOC_RCL_NAME(sz) .name[KMALLOC_RECLAIM] = "kmalloc-rcl-" #sz, argument
781 #define KMALLOC_RCL_NAME(sz) argument
786 #define KMALLOC_RANDOM_NAME(N, sz) __KMALLOC_RANDOM_CONCAT(KMA_RAND_, N)(sz) argument
787 #define KMA_RAND_1(sz) .name[KMALLOC_RANDOM_START + 1] = "kmalloc-rnd-01-" #sz, argument
788 #define KMA_RAND_2(sz) KMA_RAND_1(sz) .name[KMALLOC_RANDOM_START + 2] = "kmalloc-rnd-02-" #sz, argument
789 #define KMA_RAND_3(sz) KMA_RAND_2(sz) .name[KMALLOC_RANDOM_START + 3] = "kmalloc-rnd-03-" #sz, argument
[all …]
/linux/sound/soc/intel/boards/
H A Dsof_cirrus_common.c160 unsigned int uid, sz = 0; in cs35l41_compute_codec_conf()
178 cs35l41_components[sz].name = dev_name(physdev); in cs35l41_compute_codec_conf()
179 cs35l41_components[sz].dai_name = CS35L41_CODEC_DAI; in cs35l41_compute_codec_conf()
180 cs35l41_codec_conf[sz].dlc.name = dev_name(physdev); in cs35l41_compute_codec_conf()
181 cs35l41_codec_conf[sz].name_prefix = cs35l41_name_prefixes[uid]; in cs35l41_compute_codec_conf()
182 sz++; in cs35l41_compute_codec_conf()
185 if (sz != 2 && sz != 4) in cs35l41_compute_codec_conf()
186 pr_warn("Invalid number of cs35l41 amps found: %d, expected 2 or 4\n", sz); in cs35l41_compute_codec_conf()
187 return sz; in cs35l41_compute_codec_conf()
159 unsigned int uid, sz = 0; cs35l41_compute_codec_conf() local
[all...]

12345678910>>...24