Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 200 of 1491) sorted by relevance

12345678

/linux-4.4.14/include/sound/
Dpcm-indirect.h41 struct snd_pcm_indirect *rec, size_t bytes);
66 unsigned int bytes = qsize - rec->hw_ready; in snd_pcm_indirect_playback_transfer() local
67 if (rec->sw_ready < (int)bytes) in snd_pcm_indirect_playback_transfer()
68 bytes = rec->sw_ready; in snd_pcm_indirect_playback_transfer()
69 if (hw_to_end < bytes) in snd_pcm_indirect_playback_transfer()
70 bytes = hw_to_end; in snd_pcm_indirect_playback_transfer()
71 if (sw_to_end < bytes) in snd_pcm_indirect_playback_transfer()
72 bytes = sw_to_end; in snd_pcm_indirect_playback_transfer()
73 if (! bytes) in snd_pcm_indirect_playback_transfer()
75 copy(substream, rec, bytes); in snd_pcm_indirect_playback_transfer()
[all …]
Di2c.h49 int (*sendbytes)(struct snd_i2c_device *device, unsigned char *bytes, int count);
50 int (*readbytes)(struct snd_i2c_device *device, unsigned char *bytes, int count);
100 int snd_i2c_sendbytes(struct snd_i2c_device *device, unsigned char *bytes, int count);
101 int snd_i2c_readbytes(struct snd_i2c_device *device, unsigned char *bytes, int count);
/linux-4.4.14/sound/drivers/
Dpcm-indirect2.c139 unsigned int bytes) in snd_pcm_indirect2_increase_min_periods() argument
143 rec->sw_io += bytes; in snd_pcm_indirect2_increase_min_periods()
195 if (bytes >= diff) in snd_pcm_indirect2_increase_min_periods()
198 rec->sw_io += bytes; in snd_pcm_indirect2_increase_min_periods()
205 rec->min_period_count += bytes; in snd_pcm_indirect2_increase_min_periods()
274 unsigned int bytes; in snd_pcm_indirect2_playback_transfer() local
295 bytes = zero(substream, rec); in snd_pcm_indirect2_playback_transfer()
298 rec->zeros2hw += bytes; in snd_pcm_indirect2_playback_transfer()
299 if (bytes < 64) in snd_pcm_indirect2_playback_transfer()
300 rec->zero_sizes[bytes]++; in snd_pcm_indirect2_playback_transfer()
[all …]
/linux-4.4.14/lib/
Diov_iter.c138 static size_t copy_page_to_iter_iovec(struct page *page, size_t offset, size_t bytes, in copy_page_to_iter_iovec() argument
146 if (unlikely(bytes > i->count)) in copy_page_to_iter_iovec()
147 bytes = i->count; in copy_page_to_iter_iovec()
149 if (unlikely(!bytes)) in copy_page_to_iter_iovec()
152 wanted = bytes; in copy_page_to_iter_iovec()
156 copy = min(bytes, iov->iov_len - skip); in copy_page_to_iter_iovec()
167 bytes -= copy; in copy_page_to_iter_iovec()
169 while (unlikely(!left && bytes)) { in copy_page_to_iter_iovec()
172 copy = min(bytes, iov->iov_len); in copy_page_to_iter_iovec()
177 bytes -= copy; in copy_page_to_iter_iovec()
[all …]
Dmemweight.c10 size_t memweight(const void *ptr, size_t bytes) in memweight() argument
16 for (; bytes > 0 && ((unsigned long)bitmap) % sizeof(long); in memweight()
17 bytes--, bitmap++) in memweight()
20 longs = bytes / sizeof(long); in memweight()
25 bytes -= longs * sizeof(long); in memweight()
33 for (; bytes > 0; bytes--, bitmap++) in memweight()
Drandom32.c100 void prandom_bytes_state(struct rnd_state *state, void *buf, size_t bytes) in prandom_bytes_state() argument
104 while (bytes >= sizeof(u32)) { in prandom_bytes_state()
107 bytes -= sizeof(u32); in prandom_bytes_state()
110 if (bytes > 0) { in prandom_bytes_state()
114 bytes--; in prandom_bytes_state()
116 } while (bytes > 0); in prandom_bytes_state()
126 void prandom_bytes(void *buf, size_t bytes) in prandom_bytes() argument
130 prandom_bytes_state(state, buf, bytes); in prandom_bytes()
Dswiotlb.c145 unsigned long bytes = io_tlb_nslabs << IO_TLB_SHIFT; in swiotlb_print_info() local
159 bytes >> 20, vstart, vend - 1); in swiotlb_print_info()
165 unsigned long i, bytes; in swiotlb_init_with_tbl() local
167 bytes = nslabs << IO_TLB_SHIFT; in swiotlb_init_with_tbl()
171 io_tlb_end = io_tlb_start + bytes; in swiotlb_init_with_tbl()
216 unsigned long bytes; in swiotlb_init() local
223 bytes = io_tlb_nslabs << IO_TLB_SHIFT; in swiotlb_init()
226 vstart = memblock_virt_alloc_low_nopanic(PAGE_ALIGN(bytes), PAGE_SIZE); in swiotlb_init()
245 unsigned long bytes, req_nslabs = io_tlb_nslabs; in swiotlb_late_init_with_default_size() local
260 bytes = io_tlb_nslabs << IO_TLB_SHIFT; in swiotlb_late_init_with_default_size()
[all …]
Dstring.c876 static void *check_bytes8(const u8 *start, u8 value, unsigned int bytes) in check_bytes8() argument
878 while (bytes) { in check_bytes8()
882 bytes--; in check_bytes8()
896 void *memchr_inv(const void *start, int c, size_t bytes) in memchr_inv() argument
902 if (bytes <= 16) in memchr_inv()
903 return check_bytes8(start, value, bytes); in memchr_inv()
926 bytes -= prefix; in memchr_inv()
929 words = bytes / 8; in memchr_inv()
938 return check_bytes8(start, value, bytes % 8); in memchr_inv()
/linux-4.4.14/drivers/gpu/drm/vmwgfx/
Dvmwgfx_fifo.c206 static bool vmw_fifo_is_full(struct vmw_private *dev_priv, uint32_t bytes) in vmw_fifo_is_full() argument
214 return ((max - next_cmd) + (stop - min) <= bytes); in vmw_fifo_is_full()
218 uint32_t bytes, bool interruptible, in vmw_fifo_wait_noirq() argument
231 if (!vmw_fifo_is_full(dev_priv, bytes)) in vmw_fifo_wait_noirq()
251 uint32_t bytes, bool interruptible, in vmw_fifo_wait() argument
256 if (likely(!vmw_fifo_is_full(dev_priv, bytes))) in vmw_fifo_wait()
261 return vmw_fifo_wait_noirq(dev_priv, bytes, in vmw_fifo_wait()
270 !vmw_fifo_is_full(dev_priv, bytes), timeout); in vmw_fifo_wait()
274 !vmw_fifo_is_full(dev_priv, bytes), timeout); in vmw_fifo_wait()
298 uint32_t bytes) in vmw_local_fifo_reserve() argument
[all …]
/linux-4.4.14/arch/arm/include/asm/
Dxor.h50 xor_arm4regs_2(unsigned long bytes, unsigned long *p1, unsigned long *p2) in xor_arm4regs_2() argument
52 unsigned int lines = bytes / sizeof(unsigned long) / 4; in xor_arm4regs_2()
70 xor_arm4regs_3(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_arm4regs_3() argument
73 unsigned int lines = bytes / sizeof(unsigned long) / 4; in xor_arm4regs_3()
92 xor_arm4regs_4(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_arm4regs_4() argument
95 unsigned int lines = bytes / sizeof(unsigned long) / 2; in xor_arm4regs_4()
111 xor_arm4regs_5(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_arm4regs_5() argument
114 unsigned int lines = bytes / sizeof(unsigned long) / 2; in xor_arm4regs_5()
152 xor_neon_2(unsigned long bytes, unsigned long *p1, unsigned long *p2) in xor_neon_2() argument
155 xor_arm4regs_2(bytes, p1, p2); in xor_neon_2()
[all …]
/linux-4.4.14/arch/hexagon/mm/
Dcopy_user_template.S32 p0 = cmp.gtu(bytes,#0)
38 p1 = cmp.gtu(bytes,#15)
45 loopcount = lsr(bytes,#3)
59 bytes -= asl(loopcount,#3)
71 p1 = cmp.gtu(bytes,#7)
76 loopcount = lsr(bytes,#2)
89 bytes -= asl(loopcount,#2)
97 p1 = cmp.gtu(bytes,#3)
102 loopcount = lsr(bytes,#1)
115 bytes -= asl(loopcount,#1)
[all …]
/linux-4.4.14/drivers/rtc/
Drtc-dm355evm.c33 u8 bytes[4]; member
52 if (tries && time.bytes[0] == status) in dm355evm_rtc_read_time()
54 time.bytes[0] = status; in dm355evm_rtc_read_time()
59 if (tries && time.bytes[1] == status) in dm355evm_rtc_read_time()
61 time.bytes[1] = status; in dm355evm_rtc_read_time()
66 if (tries && time.bytes[2] == status) in dm355evm_rtc_read_time()
68 time.bytes[2] = status; in dm355evm_rtc_read_time()
73 if (tries && time.bytes[3] == status) in dm355evm_rtc_read_time()
75 time.bytes[3] = status; in dm355evm_rtc_read_time()
100 status = dm355evm_msp_write(time.bytes[0], DM355EVM_MSP_RTC_0); in dm355evm_rtc_set_time()
[all …]
/linux-4.4.14/fs/btrfs/
Dfree-space-cache.c37 u64 bytes; member
518 static int io_ctl_add_entry(struct btrfs_io_ctl *io_ctl, u64 offset, u64 bytes, in io_ctl_add_entry() argument
528 entry->bytes = cpu_to_le64(bytes); in io_ctl_add_entry()
602 entry->bytes = le64_to_cpu(e->bytes); in io_ctl_read_entry()
652 if (prev->offset + prev->bytes == e->offset) { in merge_space_tree()
655 prev->bytes += e->bytes; in merge_space_tree()
760 if (!e->bytes) { in __load_free_space_cache()
936 ret = io_ctl_add_entry(io_ctl, e->offset, e->bytes, in write_cache_extent_entries()
966 trim_entry->bytes, NULL); in write_cache_extent_entries()
1415 static inline unsigned long bytes_to_bits(u64 bytes, u32 unit) in bytes_to_bits() argument
[all …]
Dlzo.c113 unsigned long bytes; in lzo_compress_pages() local
162 bytes = min_t(unsigned long, pg_bytes_left, out_len); in lzo_compress_pages()
164 memcpy(cpage_out + out_offset, buf, bytes); in lzo_compress_pages()
166 out_len -= bytes; in lzo_compress_pages()
167 pg_bytes_left -= bytes; in lzo_compress_pages()
168 buf += bytes; in lzo_compress_pages()
169 out_offset += bytes; in lzo_compress_pages()
272 unsigned long bytes; in lzo_decompress_biovec() local
310 bytes = in_len; in lzo_decompress_biovec()
319 bytes = min(working_bytes, in_page_bytes_left); in lzo_decompress_biovec()
[all …]
Dfree-space-cache.h25 u64 bytes; member
107 u64 offset, u64 bytes, u64 empty_size,
111 u64 bytes);
115 u64 offset, u64 bytes, u64 empty_size);
118 struct btrfs_free_cluster *cluster, u64 bytes,
129 u64 offset, u64 bytes, bool bitmap);
131 u64 offset, u64 bytes);
Dzlib.c349 unsigned long bytes; in zlib_decompress() local
371 bytes = min(PAGE_CACHE_SIZE - pg_offset, in zlib_decompress()
373 bytes = min(bytes, bytes_left); in zlib_decompress()
376 memcpy(kaddr + pg_offset, workspace->buf + buf_offset, bytes); in zlib_decompress()
379 pg_offset += bytes; in zlib_decompress()
380 bytes_left -= bytes; in zlib_decompress()
/linux-4.4.14/sound/i2c/other/
Dpt2258.c48 unsigned char bytes[2]; in snd_pt2258_reset() local
52 bytes[0] = PT2258_CMD_RESET; in snd_pt2258_reset()
54 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in snd_pt2258_reset()
60 bytes[0] = PT2258_CMD_MUTE; in snd_pt2258_reset()
62 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in snd_pt2258_reset()
69 bytes[0] = 0xd0; in snd_pt2258_reset()
70 bytes[1] = 0xe0; in snd_pt2258_reset()
72 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 2) != 2) in snd_pt2258_reset()
111 unsigned char bytes[2]; in pt2258_stereo_volume_put() local
122 bytes[0] = pt2258_channel_code[2 * base] | (val0 / 10); in pt2258_stereo_volume_put()
[all …]
/linux-4.4.14/drivers/media/pci/cobalt/
Dcobalt-omnitek.c184 unsigned bytes; in descriptor_list_create() local
205 bytes = min(sg_dma_len(scatter_list) - offset, in descriptor_list_create()
215 d->bytes = (bytes / 2) & ~3; in descriptor_list_create()
217 size -= d->bytes; in descriptor_list_create()
218 copied += d->bytes; in descriptor_list_create()
219 offset += d->bytes; in descriptor_list_create()
220 addr += d->bytes; in descriptor_list_create()
225 bytes -= d->bytes; in descriptor_list_create()
240 d->bytes = bytes; in descriptor_list_create()
242 size -= bytes; in descriptor_list_create()
[all …]
/linux-4.4.14/arch/alpha/lib/
Dev6-memcpy.S67 ldq $1, 0($17) # L : get 8 bytes
84 wh64 ($7) # L1 : memory subsystem hint: 64 bytes at
86 ldq $6, 0($17) # L0 : bytes 0..7
90 ldq $4, 8($17) # L : bytes 8..15
91 ldq $5, 16($17) # L : bytes 16..23
95 ldq $3, 24($17) # L : bytes 24..31
100 addq $17, 32, $17 # E : src += 32 bytes
101 stq $6, 0($16) # L : bytes 0..7
105 stq $4, 8($16) # L : bytes 8..15
106 stq $5, 16($16) # L : bytes 16..23
[all …]
Dev6-memset.S82 insql $17,$16,$2 # U : Insert new bytes
88 bis $2,$4,$1 # E : Final bytes
103 and $18,7,$18 # E : Number of trailing bytes to write
119 subq $3, 16, $4 # E : Only try to unroll if > 128 bytes
259 insql $17,$16,$2 # U : Insert new bytes
265 bis $2,$4,$1 # E : Final bytes
280 and $18,7,$18 # E : Number of trailing bytes to write
296 subq $3, 16, $4 # E : Only try to unroll if > 128 bytes
446 insql $17,$16,$2 # U : Insert new bytes
452 bis $2,$4,$1 # E : Final bytes
[all …]
Dev6-clear_user.S69 and $1, 7, $2 # .. .. E .. : number of misaligned bytes in tail
86 addq $0, $4, $0 # .. E .. .. : bytes left -= 8 - misalignment
183 # zero to 16 quadwords left to store, plus any trailing bytes
189 beq $1, $trailbytes # U .. .. .. : U L U L : Only 0..7 bytes to go
202 # We have an unknown number of bytes left to go.
209 # $0 contains the number of bytes left to copy (0..31)
/linux-4.4.14/drivers/gpu/drm/msm/
Dmsm_iommu.c61 size_t bytes = sg->length + sg->offset; in msm_iommu_map() local
63 VERB("map[%d]: %08x %08x(%zx)", i, iova, pa, bytes); in msm_iommu_map()
65 ret = iommu_map(domain, da, pa, bytes, prot); in msm_iommu_map()
69 da += bytes; in msm_iommu_map()
78 size_t bytes = sg->length + sg->offset; in msm_iommu_map() local
79 iommu_unmap(domain, da, bytes); in msm_iommu_map()
80 da += bytes; in msm_iommu_map()
95 size_t bytes = sg->length + sg->offset; in msm_iommu_unmap() local
98 unmapped = iommu_unmap(domain, da, bytes); in msm_iommu_unmap()
99 if (unmapped < bytes) in msm_iommu_unmap()
[all …]
/linux-4.4.14/net/rds/
Dpage.c57 void __user *ptr, unsigned long bytes, in rds_page_copy_user() argument
65 rds_stats_add(s_copy_to_user, bytes); in rds_page_copy_user()
66 ret = copy_to_user(ptr, addr + offset, bytes); in rds_page_copy_user()
68 rds_stats_add(s_copy_from_user, bytes); in rds_page_copy_user()
69 ret = copy_from_user(addr + offset, ptr, bytes); in rds_page_copy_user()
97 int rds_page_remainder_alloc(struct scatterlist *scat, unsigned long bytes, in rds_page_remainder_alloc() argument
108 if (bytes >= PAGE_SIZE) { in rds_page_remainder_alloc()
124 if (rem->r_page && bytes > (PAGE_SIZE - rem->r_offset)) { in rds_page_remainder_alloc()
131 if (rem->r_page && bytes <= (PAGE_SIZE - rem->r_offset)) { in rds_page_remainder_alloc()
132 sg_set_page(scat, rem->r_page, bytes, rem->r_offset); in rds_page_remainder_alloc()
[all …]
Dinfo.c116 unsigned long bytes) in rds_info_copy() argument
120 while (bytes) { in rds_info_copy()
124 this = min(bytes, PAGE_SIZE - iter->offset); in rds_info_copy()
128 iter->offset, this, data, bytes); in rds_info_copy()
133 bytes -= this; in rds_info_copy()
Drdma.c58 if ((vec->addr + vec->bytes <= vec->addr) || in rds_pages_in_vec()
59 (vec->bytes > (u64)UINT_MAX)) in rds_pages_in_vec()
62 return ((vec->addr + vec->bytes + PAGE_SIZE - 1) >> PAGE_SHIFT) - in rds_pages_in_vec()
204 args->vec.addr, args->vec.bytes, nr_pages); in __rds_rdma_map()
654 rs->rs_user_bytes = iov->bytes; in rds_cmsg_rdma_args()
666 nr_bytes, nr, iov->bytes, iov->addr); in rds_cmsg_rdma_args()
668 nr_bytes += iov->bytes; in rds_cmsg_rdma_args()
676 min_t(unsigned int, iov->bytes, PAGE_SIZE - offset), in rds_cmsg_rdma_args()
680 sg->offset, sg->length, iov->addr, iov->bytes); in rds_cmsg_rdma_args()
683 iov->bytes -= sg->length; in rds_cmsg_rdma_args()
[all …]
/linux-4.4.14/drivers/scsi/lpfc/
Dlpfc_compat.h38 lpfc_memcpy_to_slim(void __iomem *dest, void *src, unsigned int bytes) in lpfc_memcpy_to_slim() argument
49 for (four_bytes = bytes /4; four_bytes > 0; four_bytes--) { in lpfc_memcpy_to_slim()
60 lpfc_memcpy_from_slim( void *dest, void __iomem *src, unsigned int bytes) in lpfc_memcpy_from_slim() argument
71 for (four_bytes = bytes /4; four_bytes > 0; four_bytes--) { in lpfc_memcpy_from_slim()
83 lpfc_memcpy_to_slim( void __iomem *dest, void *src, unsigned int bytes) in lpfc_memcpy_to_slim() argument
86 __iowrite32_copy(dest, src, bytes / sizeof(uint32_t)); in lpfc_memcpy_to_slim()
90 lpfc_memcpy_from_slim( void *dest, void __iomem *src, unsigned int bytes) in lpfc_memcpy_from_slim() argument
93 memcpy_fromio( dest, src, bytes); in lpfc_memcpy_from_slim()
/linux-4.4.14/net/netfilter/
Dxt_connbytes.c27 u_int64_t bytes = 0; in connbytes_mt() local
59 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes); in connbytes_mt()
62 what = atomic64_read(&counters[IP_CT_DIR_REPLY].bytes); in connbytes_mt()
65 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes); in connbytes_mt()
66 what += atomic64_read(&counters[IP_CT_DIR_REPLY].bytes); in connbytes_mt()
73 bytes = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes); in connbytes_mt()
77 bytes = atomic64_read(&counters[IP_CT_DIR_REPLY].bytes); in connbytes_mt()
81 bytes = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes) + in connbytes_mt()
82 atomic64_read(&counters[IP_CT_DIR_REPLY].bytes); in connbytes_mt()
88 what = div64_u64(bytes, pkts); in connbytes_mt()
Dnft_counter.c21 u64 bytes; member
44 this_cpu->counter.bytes += pkt->skb->len; in nft_counter_eval()
54 u64 bytes, packets; in nft_counter_fetch() local
63 bytes = cpu_stats->counter.bytes; in nft_counter_fetch()
68 total->bytes += bytes; in nft_counter_fetch()
79 if (nla_put_be64(skb, NFTA_COUNTER_BYTES, cpu_to_be64(total.bytes)) || in nft_counter_dump()
112 this_cpu->counter.bytes = in nft_counter_init()
146 this_cpu->counter.bytes = total.bytes; in nft_counter_clone()
Dxt_repldata.h19 unsigned int bytes = 0, hooknum = 0, i = 0; \
40 tbl->repl.hook_entry[hooknum] = bytes; \
41 tbl->repl.underflow[hooknum] = bytes; \
44 bytes += sizeof(struct type##_standard); \
Dnfnetlink_acct.c32 atomic64_t bytes; member
81 atomic64_set(&matching->bytes, 0); in nfnl_acct_new()
118 atomic64_set(&nfacct->bytes, in nfnl_acct_new()
137 u64 pkts, bytes; in nfnl_acct_fill_info() local
156 bytes = atomic64_xchg(&acct->bytes, 0); in nfnl_acct_fill_info()
162 bytes = atomic64_read(&acct->bytes); in nfnl_acct_fill_info()
165 nla_put_be64(skb, NFACCT_BYTES, cpu_to_be64(bytes)) || in nfnl_acct_fill_info()
437 atomic64_add(skb->len, &nfacct->bytes); in nfnl_acct_update()
472 atomic64_read(&nfacct->pkts) : atomic64_read(&nfacct->bytes); in nfnl_acct_overquota()
/linux-4.4.14/drivers/media/usb/hdpvr/
Dhdpvr-core.c75 static void challenge(u8 *bytes) in challenge() argument
84 bytes[(idx >> 3) + 3] = bytes[(idx >> 2) & 0x3]; in challenge()
88 bytes[2] += bytes[3] * 4 + bytes[4] + bytes[5]; in challenge()
89 bytes[4] += bytes[(idx & 0x1) * 2] * 9 + 9; in challenge()
92 bytes[0] *= 8; in challenge()
93 bytes[0] += 7*idx + 4; in challenge()
94 bytes[6] += bytes[3] * 3; in challenge()
97 bytes[3 - (idx >> 3)] = bytes[idx >> 2]; in challenge()
98 bytes[5] += bytes[6] * 3; in challenge()
100 bytes[3] *= bytes[3] + 1; in challenge()
[all …]
/linux-4.4.14/drivers/ps3/
Dps3-vuart.c364 const void *buf, unsigned int bytes, u64 *bytes_written) in ps3_vuart_raw_write() argument
370 ps3_mm_phys_to_lpar(__pa(buf)), bytes, bytes_written); in ps3_vuart_raw_write()
381 *bytes_written, bytes, priv->stats.bytes_written); in ps3_vuart_raw_write()
394 unsigned int bytes, u64 *bytes_read) in ps3_vuart_raw_read() argument
399 dev_dbg(&dev->core, "%s:%d: %xh\n", __func__, __LINE__, bytes); in ps3_vuart_raw_read()
402 ps3_mm_phys_to_lpar(__pa(buf)), bytes, bytes_read); in ps3_vuart_raw_read()
413 *bytes_read, bytes, priv->stats.bytes_read); in ps3_vuart_raw_read()
427 unsigned int bytes) in ps3_vuart_clear_rx_bytes() argument
438 bytes = bytes ? min(bytes, (unsigned int)bytes_waiting) : bytes_waiting; in ps3_vuart_clear_rx_bytes()
440 dev_dbg(&dev->core, "%s:%d: %u\n", __func__, __LINE__, bytes); in ps3_vuart_clear_rx_bytes()
[all …]
Dvuart.h77 unsigned int bytes);
79 unsigned int bytes);
80 int ps3_vuart_read_async(struct ps3_system_bus_device *dev, unsigned int bytes);
83 unsigned int bytes);
/linux-4.4.14/include/linux/
Dtask_io_accounting_ops.h10 static inline void task_io_account_read(size_t bytes) in task_io_account_read() argument
12 current->ioac.read_bytes += bytes; in task_io_account_read()
24 static inline void task_io_account_write(size_t bytes) in task_io_account_write() argument
26 current->ioac.write_bytes += bytes; in task_io_account_write()
38 static inline void task_io_account_cancelled_write(size_t bytes) in task_io_account_cancelled_write() argument
40 current->ioac.cancelled_write_bytes += bytes; in task_io_account_cancelled_write()
58 static inline void task_io_account_read(size_t bytes) in task_io_account_read() argument
67 static inline void task_io_account_write(size_t bytes) in task_io_account_write() argument
76 static inline void task_io_account_cancelled_write(size_t bytes) in task_io_account_cancelled_write() argument
Duio.h76 struct iov_iter *i, unsigned long offset, size_t bytes);
77 void iov_iter_advance(struct iov_iter *i, size_t bytes);
78 int iov_iter_fault_in_readable(struct iov_iter *i, size_t bytes);
79 int iov_iter_fault_in_multipages_readable(struct iov_iter *i, size_t bytes);
81 size_t copy_page_to_iter(struct page *page, size_t offset, size_t bytes,
83 size_t copy_page_from_iter(struct page *page, size_t offset, size_t bytes,
85 size_t copy_to_iter(void *addr, size_t bytes, struct iov_iter *i);
86 size_t copy_from_iter(void *addr, size_t bytes, struct iov_iter *i);
87 size_t copy_from_iter_nocache(void *addr, size_t bytes, struct iov_iter *i);
88 size_t iov_iter_zero(size_t bytes, struct iov_iter *);
[all …]
Dpmem.h45 static inline size_t arch_copy_from_iter_pmem(void __pmem *addr, size_t bytes, in arch_copy_from_iter_pmem() argument
101 size_t bytes, struct iov_iter *i) in default_copy_from_iter_pmem() argument
103 return copy_from_iter_nocache((void __force *)addr, bytes, i); in default_copy_from_iter_pmem()
158 static inline size_t copy_from_iter_pmem(void __pmem *addr, size_t bytes, in copy_from_iter_pmem() argument
162 return arch_copy_from_iter_pmem(addr, bytes, i); in copy_from_iter_pmem()
163 return default_copy_from_iter_pmem(addr, bytes, i); in copy_from_iter_pmem()
Dnvmem-consumer.h24 unsigned int bytes; member
46 size_t bytes, void *buf);
48 size_t bytes, void *buf);
124 unsigned int offset, size_t bytes, in nvmem_device_read() argument
131 unsigned int offset, size_t bytes, in nvmem_device_write() argument
/linux-4.4.14/arch/sparc/include/asm/
Dxor_32.h24 sparc_2(unsigned long bytes, unsigned long *p1, unsigned long *p2) in sparc_2() argument
26 int lines = bytes / (sizeof (long)) / 8; in sparc_2()
61 sparc_3(unsigned long bytes, unsigned long *p1, unsigned long *p2, in sparc_3() argument
64 int lines = bytes / (sizeof (long)) / 8; in sparc_3()
112 sparc_4(unsigned long bytes, unsigned long *p1, unsigned long *p2, in sparc_4() argument
115 int lines = bytes / (sizeof (long)) / 8; in sparc_4()
176 sparc_5(unsigned long bytes, unsigned long *p1, unsigned long *p2, in sparc_5() argument
179 int lines = bytes / (sizeof (long)) / 8; in sparc_5()
/linux-4.4.14/arch/x86/include/asm/
Dxor_32.h32 xor_pII_mmx_2(unsigned long bytes, unsigned long *p1, unsigned long *p2) in xor_pII_mmx_2() argument
34 unsigned long lines = bytes >> 7; in xor_pII_mmx_2()
75 xor_pII_mmx_3(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_pII_mmx_3() argument
78 unsigned long lines = bytes >> 7; in xor_pII_mmx_3()
124 xor_pII_mmx_4(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_pII_mmx_4() argument
127 unsigned long lines = bytes >> 7; in xor_pII_mmx_4()
179 xor_pII_mmx_5(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_pII_mmx_5() argument
182 unsigned long lines = bytes >> 7; in xor_pII_mmx_5()
259 xor_p5_mmx_2(unsigned long bytes, unsigned long *p1, unsigned long *p2) in xor_p5_mmx_2() argument
261 unsigned long lines = bytes >> 6; in xor_p5_mmx_2()
[all …]
Dxor.h71 xor_sse_2(unsigned long bytes, unsigned long *p1, unsigned long *p2) in xor_sse_2() argument
73 unsigned long lines = bytes >> 8; in xor_sse_2()
122 xor_sse_2_pf64(unsigned long bytes, unsigned long *p1, unsigned long *p2) in xor_sse_2_pf64() argument
124 unsigned long lines = bytes >> 8; in xor_sse_2_pf64()
156 xor_sse_3(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_sse_3() argument
159 unsigned long lines = bytes >> 8; in xor_sse_3()
215 xor_sse_3_pf64(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_sse_3_pf64() argument
218 unsigned long lines = bytes >> 8; in xor_sse_3_pf64()
252 xor_sse_4(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_sse_4() argument
255 unsigned long lines = bytes >> 8; in xor_sse_4()
[all …]
Dxor_avx.h35 static void xor_avx_2(unsigned long bytes, unsigned long *p0, unsigned long *p1) in xor_avx_2() argument
37 unsigned long lines = bytes >> 9; in xor_avx_2()
61 static void xor_avx_3(unsigned long bytes, unsigned long *p0, unsigned long *p1, in xor_avx_3() argument
64 unsigned long lines = bytes >> 9; in xor_avx_3()
91 static void xor_avx_4(unsigned long bytes, unsigned long *p0, unsigned long *p1, in xor_avx_4() argument
94 unsigned long lines = bytes >> 9; in xor_avx_4()
124 static void xor_avx_5(unsigned long bytes, unsigned long *p0, unsigned long *p1, in xor_avx_5() argument
127 unsigned long lines = bytes >> 9; in xor_avx_5()
Dinsn.h29 insn_byte_t bytes[4]; member
148 return X86_VEX3_M(insn->vex_prefix.bytes[1]); in insn_vex_m_bits()
154 return X86_VEX_P(insn->vex_prefix.bytes[1]); in insn_vex_p_bits()
156 return X86_VEX_P(insn->vex_prefix.bytes[2]); in insn_vex_p_bits()
165 if (insn->prefixes.bytes[3]) in insn_last_prefix_id()
166 return inat_get_last_prefix_id(insn->prefixes.bytes[3]); in insn_last_prefix_id()
Dkvm_emulate.h111 unsigned int bytes,
122 void *val, unsigned int bytes);
132 unsigned long addr, void *val, unsigned int bytes,
142 unsigned long addr, void *val, unsigned int bytes,
152 unsigned long addr, void *val, unsigned int bytes,
164 unsigned int bytes,
179 unsigned int bytes,
231 unsigned int bytes; member
Dpmem.h108 static inline size_t arch_copy_from_iter_pmem(void __pmem *addr, size_t bytes, in arch_copy_from_iter_pmem() argument
115 len = copy_from_iter_nocache(vaddr, bytes, i); in arch_copy_from_iter_pmem()
118 __arch_wb_cache_pmem(vaddr, bytes); in arch_copy_from_iter_pmem()
/linux-4.4.14/sound/soc/intel/atom/sst/
Dsst_stream.c164 struct snd_sst_bytes_v2 *bytes) in sst_send_byte_stream_mrfld() argument
172 bytes->type, bytes->ipc_msg, bytes->block, bytes->task_id, in sst_send_byte_stream_mrfld()
173 bytes->pipe_id, bytes->len); in sst_send_byte_stream_mrfld()
179 sst_fill_header_mrfld(&msg->mrfld_header, bytes->ipc_msg, in sst_send_byte_stream_mrfld()
180 bytes->task_id, 1, pvt_id); in sst_send_byte_stream_mrfld()
181 msg->mrfld_header.p.header_high.part.res_rqd = bytes->block; in sst_send_byte_stream_mrfld()
182 length = bytes->len; in sst_send_byte_stream_mrfld()
185 memcpy(msg->mailbox_data, &bytes->bytes, bytes->len); in sst_send_byte_stream_mrfld()
186 if (bytes->block) { in sst_send_byte_stream_mrfld()
187 block = sst_create_block(sst_drv_ctx, bytes->ipc_msg, pvt_id); in sst_send_byte_stream_mrfld()
[all …]
/linux-4.4.14/drivers/crypto/vmx/
Dghash.c52 int bytes; member
104 dctx->bytes = 0; in p8_ghash_init()
141 if (dctx->bytes) { in p8_ghash_update()
142 if (dctx->bytes + srclen < GHASH_DIGEST_SIZE) { in p8_ghash_update()
143 memcpy(dctx->buffer + dctx->bytes, src, in p8_ghash_update()
145 dctx->bytes += srclen; in p8_ghash_update()
148 memcpy(dctx->buffer + dctx->bytes, src, in p8_ghash_update()
149 GHASH_DIGEST_SIZE - dctx->bytes); in p8_ghash_update()
159 src += GHASH_DIGEST_SIZE - dctx->bytes; in p8_ghash_update()
160 srclen -= GHASH_DIGEST_SIZE - dctx->bytes; in p8_ghash_update()
[all …]
/linux-4.4.14/fs/squashfs/
Dsymlink.c55 int bytes, copied; in squashfs_symlink_readpage() local
66 bytes = squashfs_read_metadata(sb, NULL, &block, &offset, in squashfs_symlink_readpage()
68 if (bytes < 0) { in squashfs_symlink_readpage()
83 for (bytes = 0; bytes < length; offset = 0, bytes += copied) { in squashfs_symlink_readpage()
94 copied = squashfs_copy_data(pageaddr + bytes, entry, offset, in squashfs_symlink_readpage()
95 length - bytes); in squashfs_symlink_readpage()
96 if (copied == length - bytes) in squashfs_symlink_readpage()
Dblock.c97 int bytes, compressed, b = 0, k = 0, avail, i; in squashfs_read_data() local
108 bytes = -offset; in squashfs_read_data()
121 for (b = 0; bytes < length; b++, cur_index++) { in squashfs_read_data()
125 bytes += msblk->devblksize; in squashfs_read_data()
140 bytes = msblk->devblksize - offset; in squashfs_read_data()
153 for (; bytes < length; b++) { in squashfs_read_data()
157 bytes += msblk->devblksize; in squashfs_read_data()
180 for (bytes = length; k < b; k++) { in squashfs_read_data()
181 in = min(bytes, msblk->devblksize - offset); in squashfs_read_data()
182 bytes -= in; in squashfs_read_data()
Dlzo_wrapper.c84 int avail, i, bytes = length, res; in lzo_uncompress() local
88 avail = min(bytes, msblk->devblksize - offset); in lzo_uncompress()
91 bytes -= avail; in lzo_uncompress()
101 res = bytes = (int)out_len; in lzo_uncompress()
105 if (bytes <= PAGE_CACHE_SIZE) { in lzo_uncompress()
106 memcpy(data, buff, bytes); in lzo_uncompress()
111 bytes -= PAGE_CACHE_SIZE; in lzo_uncompress()
Dfile_direct.c37 int i, n, pages, missing_pages, bytes, res = -ENOMEM; in squashfs_readpage_block() local
99 bytes = res % PAGE_CACHE_SIZE; in squashfs_readpage_block()
100 if (bytes) { in squashfs_readpage_block()
102 memset(pageaddr + bytes, 0, PAGE_CACHE_SIZE - bytes); in squashfs_readpage_block()
146 int bytes = buffer->length, res = buffer->error, n, offset = 0; in squashfs_read_cache() local
155 for (n = 0; n < pages && bytes > 0; n++, in squashfs_read_cache()
156 bytes -= PAGE_CACHE_SIZE, offset += PAGE_CACHE_SIZE) { in squashfs_read_cache()
157 int avail = min_t(int, bytes, PAGE_CACHE_SIZE); in squashfs_read_cache()
Dlz4_wrapper.c99 int avail, i, bytes = length, res; in lz4_uncompress() local
103 avail = min(bytes, msblk->devblksize - offset); in lz4_uncompress()
106 bytes -= avail; in lz4_uncompress()
116 bytes = dest_len; in lz4_uncompress()
120 if (bytes <= PAGE_CACHE_SIZE) { in lz4_uncompress()
121 memcpy(data, buff, bytes); in lz4_uncompress()
126 bytes -= PAGE_CACHE_SIZE; in lz4_uncompress()
Dcache.c319 int bytes = min_t(int, entry->length - offset, in squashfs_copy_data() local
322 if (bytes >= remaining) { in squashfs_copy_data()
328 memcpy(buffer, buff, bytes); in squashfs_copy_data()
329 buffer += bytes; in squashfs_copy_data()
330 remaining -= bytes; in squashfs_copy_data()
331 offset += bytes; in squashfs_copy_data()
348 int bytes, res = length; in squashfs_read_metadata() local
363 bytes = squashfs_copy_data(buffer, entry, *offset, length); in squashfs_read_metadata()
365 buffer += bytes; in squashfs_read_metadata()
366 length -= bytes; in squashfs_read_metadata()
[all …]
/linux-4.4.14/sound/i2c/
Dtea6330t.c113 unsigned char bytes[3]; in snd_tea6330t_put_master_volume() local
124 bytes[count++] = TEA6330T_SADDR_VOLUME_LEFT; in snd_tea6330t_put_master_volume()
125 bytes[count++] = tea->regs[TEA6330T_SADDR_VOLUME_LEFT] = tea->mleft; in snd_tea6330t_put_master_volume()
129 bytes[count++] = TEA6330T_SADDR_VOLUME_RIGHT; in snd_tea6330t_put_master_volume()
130 bytes[count++] = tea->regs[TEA6330T_SADDR_VOLUME_RIGHT] = tea->mright; in snd_tea6330t_put_master_volume()
133 if ((err = snd_i2c_sendbytes(tea->device, bytes, count)) < 0) in snd_tea6330t_put_master_volume()
164 unsigned char bytes[3]; in snd_tea6330t_put_master_switch() local
175 bytes[0] = TEA6330T_SADDR_VOLUME_LEFT; in snd_tea6330t_put_master_switch()
176 bytes[1] = tea->regs[TEA6330T_SADDR_VOLUME_LEFT]; in snd_tea6330t_put_master_switch()
177 bytes[2] = tea->regs[TEA6330T_SADDR_VOLUME_RIGHT]; in snd_tea6330t_put_master_switch()
[all …]
Di2c.c36 unsigned char *bytes, int count);
38 unsigned char *bytes, int count);
146 int snd_i2c_sendbytes(struct snd_i2c_device *device, unsigned char *bytes, int count) in snd_i2c_sendbytes() argument
148 return device->bus->ops->sendbytes(device, bytes, count); in snd_i2c_sendbytes()
153 int snd_i2c_readbytes(struct snd_i2c_device *device, unsigned char *bytes, int count) in snd_i2c_readbytes() argument
155 return device->bus->ops->readbytes(device, bytes, count); in snd_i2c_readbytes()
276 unsigned char *bytes, int count) in snd_i2c_bit_sendbytes() argument
290 err = snd_i2c_bit_sendbyte(bus, *bytes++); in snd_i2c_bit_sendbytes()
302 unsigned char *bytes, int count) in snd_i2c_bit_readbytes() argument
321 *bytes++ = (unsigned char)err; in snd_i2c_bit_readbytes()
/linux-4.4.14/crypto/async_tx/
Dasync_raid6_recov.c160 __2data_recov_4(int disks, size_t bytes, int faila, int failb, in __2data_recov_4() argument
185 tx = async_sum_product(b, srcs, coef, bytes, submit); in __2data_recov_4()
192 tx = async_xor(a, srcs, 0, 2, bytes, submit); in __2data_recov_4()
199 __2data_recov_5(int disks, size_t bytes, int faila, int failb, in __2data_recov_5() argument
236 tx = async_memcpy(dp, g, 0, 0, bytes, submit); in __2data_recov_5()
238 tx = async_mult(dq, g, raid6_gfexp[good], bytes, submit); in __2data_recov_5()
245 tx = async_xor(dp, srcs, 0, 2, bytes, submit); in __2data_recov_5()
252 tx = async_xor(dq, srcs, 0, 2, bytes, submit); in __2data_recov_5()
260 tx = async_sum_product(dq, srcs, coef, bytes, submit); in __2data_recov_5()
267 tx = async_xor(dp, srcs, 0, 2, bytes, submit); in __2data_recov_5()
[all …]
Draid6test.c68 static void raid6_dual_recov(int disks, size_t bytes, int faila, int failb, struct page **ptrs) in raid6_dual_recov() argument
82 tx = async_gen_syndrome(ptrs, 0, disks, bytes, &submit); in raid6_dual_recov()
100 tx = async_xor(dest, blocks, 0, count, bytes, &submit); in raid6_dual_recov()
103 tx = async_gen_syndrome(ptrs, 0, disks, bytes, &submit); in raid6_dual_recov()
109 tx = async_raid6_datap_recov(disks, bytes, faila, ptrs, &submit); in raid6_dual_recov()
113 tx = async_raid6_2data_recov(disks, bytes, faila, failb, ptrs, &submit); in raid6_dual_recov()
118 tx = async_syndrome_val(ptrs, 0, disks, bytes, &result, spare, &submit); in raid6_dual_recov()
/linux-4.4.14/lib/raid6/
Drecov.c25 static void raid6_2data_recov_intx1(int disks, size_t bytes, int faila, in raid6_2data_recov_intx1() argument
46 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_2data_recov_intx1()
59 while ( bytes-- ) { in raid6_2data_recov_intx1()
69 static void raid6_datap_recov_intx1(int disks, size_t bytes, int faila, in raid6_datap_recov_intx1() argument
84 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_datap_recov_intx1()
94 while ( bytes-- ) { in raid6_datap_recov_intx1()
113 void raid6_dual_recov(int disks, size_t bytes, int faila, int failb, void **ptrs) in raid6_dual_recov() argument
124 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_dual_recov()
133 raid6_datap_recov(disks, bytes, faila, ptrs); in raid6_dual_recov()
136 raid6_2data_recov(disks, bytes, faila, failb, ptrs); in raid6_dual_recov()
Drecov_avx2.c22 static void raid6_2data_recov_avx2(int disks, size_t bytes, int faila, in raid6_2data_recov_avx2() argument
43 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_2data_recov_avx2()
61 while (bytes) { in raid6_2data_recov_avx2()
134 bytes -= 64; in raid6_2data_recov_avx2()
181 bytes -= 32; in raid6_2data_recov_avx2()
192 static void raid6_datap_recov_avx2(int disks, size_t bytes, int faila, in raid6_datap_recov_avx2() argument
208 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_datap_recov_avx2()
221 while (bytes) { in raid6_datap_recov_avx2()
269 bytes -= 64; in raid6_datap_recov_avx2()
299 bytes -= 32; in raid6_datap_recov_avx2()
Drecov_ssse3.c22 static void raid6_2data_recov_ssse3(int disks, size_t bytes, int faila, in raid6_2data_recov_ssse3() argument
45 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_2data_recov_ssse3()
69 while (bytes) { in raid6_2data_recov_ssse3()
138 bytes -= 32; in raid6_2data_recov_ssse3()
185 bytes -= 16; in raid6_2data_recov_ssse3()
197 static void raid6_datap_recov_ssse3(int disks, size_t bytes, int faila, in raid6_datap_recov_ssse3() argument
215 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_datap_recov_ssse3()
228 while (bytes) { in raid6_datap_recov_ssse3()
283 bytes -= 32; in raid6_datap_recov_ssse3()
314 bytes -= 16; in raid6_datap_recov_ssse3()
Dsse2.c41 static void raid6_sse21_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_sse21_gen_syndrome() argument
56 for ( d = 0 ; d < bytes ; d += 16 ) { in raid6_sse21_gen_syndrome()
93 size_t bytes, void **ptrs) in raid6_sse21_xor_syndrome() argument
107 for ( d = 0 ; d < bytes ; d += 16 ) { in raid6_sse21_xor_syndrome()
151 static void raid6_sse22_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_sse22_gen_syndrome() argument
168 for ( d = 0 ; d < bytes ; d += 32 ) { in raid6_sse22_gen_syndrome()
204 size_t bytes, void **ptrs) in raid6_sse22_xor_syndrome() argument
218 for ( d = 0 ; d < bytes ; d += 32 ) { in raid6_sse22_xor_syndrome()
283 static void raid6_sse24_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_sse24_gen_syndrome() argument
309 for ( d = 0 ; d < bytes ; d += 64 ) { in raid6_sse24_gen_syndrome()
[all …]
Dneon.c34 size_t bytes, void **ptrs) \
40 (unsigned long)bytes, ptrs); \
45 size_t bytes, void **ptrs) \
51 start, stop, (unsigned long)bytes, ptrs); \
Davx2.c42 static void raid6_avx21_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_avx21_gen_syndrome() argument
57 for (d = 0; d < bytes; d += 32) { in raid6_avx21_gen_syndrome()
101 static void raid6_avx22_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_avx22_gen_syndrome() argument
117 for (d = 0; d < bytes; d += 64) { in raid6_avx22_gen_syndrome()
165 static void raid6_avx24_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_avx24_gen_syndrome() argument
188 for (d = 0; d < bytes; d += 128) { in raid6_avx24_gen_syndrome()
Dmmx.c40 static void raid6_mmx1_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_mmx1_gen_syndrome() argument
55 for ( d = 0 ; d < bytes ; d += 8 ) { in raid6_mmx1_gen_syndrome()
88 static void raid6_mmx2_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_mmx2_gen_syndrome() argument
104 for ( d = 0 ; d < bytes ; d += 16 ) { in raid6_mmx2_gen_syndrome()
Dsse1.c45 static void raid6_sse11_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_sse11_gen_syndrome() argument
60 for ( d = 0 ; d < bytes ; d += 8 ) { in raid6_sse11_gen_syndrome()
104 static void raid6_sse12_gen_syndrome(int disks, size_t bytes, void **ptrs) in raid6_sse12_gen_syndrome() argument
121 for ( d = 0 ; d < bytes ; d += 16 ) { in raid6_sse12_gen_syndrome()
/linux-4.4.14/crypto/
Dghash-generic.c32 u32 bytes; member
73 if (dctx->bytes) { in ghash_update()
74 int n = min(srclen, dctx->bytes); in ghash_update()
75 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update()
77 dctx->bytes -= n; in ghash_update()
83 if (!dctx->bytes) in ghash_update()
95 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update()
107 if (dctx->bytes) { in ghash_flush()
108 u8 *tmp = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_flush()
110 while (dctx->bytes--) in ghash_flush()
[all …]
Dxor.c31 xor_blocks(unsigned int src_count, unsigned int bytes, void *dest, void **srcs) in xor_blocks() argument
37 active_template->do_2(bytes, dest, p1); in xor_blocks()
43 active_template->do_3(bytes, dest, p1, p2); in xor_blocks()
49 active_template->do_4(bytes, dest, p1, p2, p3); in xor_blocks()
54 active_template->do_5(bytes, dest, p1, p2, p3, p4); in xor_blocks()
Dpoly1305_generic.c183 unsigned int bytes; in crypto_poly1305_update() local
186 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen); in crypto_poly1305_update()
187 memcpy(dctx->buf + dctx->buflen, src, bytes); in crypto_poly1305_update()
188 src += bytes; in crypto_poly1305_update()
189 srclen -= bytes; in crypto_poly1305_update()
190 dctx->buflen += bytes; in crypto_poly1305_update()
200 bytes = poly1305_blocks(dctx, src, srclen, 1 << 24); in crypto_poly1305_update()
201 src += srclen - bytes; in crypto_poly1305_update()
202 srclen = bytes; in crypto_poly1305_update()
Dsalsa20_generic.c140 const u8 *src, unsigned int bytes) in salsa20_encrypt_bytes() argument
145 memcpy(dst, src, bytes); in salsa20_encrypt_bytes()
147 while (bytes) { in salsa20_encrypt_bytes()
154 if (bytes <= 64) { in salsa20_encrypt_bytes()
155 crypto_xor(dst, buf, bytes); in salsa20_encrypt_bytes()
160 bytes -= 64; in salsa20_encrypt_bytes()
Dchacha20_generic.c85 unsigned int bytes) in chacha20_docrypt() argument
90 memcpy(dst, src, bytes); in chacha20_docrypt()
92 while (bytes >= CHACHA20_BLOCK_SIZE) { in chacha20_docrypt()
95 bytes -= CHACHA20_BLOCK_SIZE; in chacha20_docrypt()
98 if (bytes) { in chacha20_docrypt()
100 crypto_xor(dst, stream, bytes); in chacha20_docrypt()
/linux-4.4.14/arch/s390/crypto/
Dghash_s390.c27 u32 bytes; member
64 if (dctx->bytes) { in ghash_update()
65 u8 *pos = buf + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update()
67 n = min(srclen, dctx->bytes); in ghash_update()
68 dctx->bytes -= n; in ghash_update()
74 if (!dctx->bytes) { in ghash_update()
92 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update()
104 if (dctx->bytes) { in ghash_flush()
105 u8 *pos = buf + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_flush()
107 memset(pos, 0, dctx->bytes); in ghash_flush()
[all …]
/linux-4.4.14/drivers/iommu/
Domap-iommu.h174 #define iopgsz_max(bytes) \ argument
175 (((bytes) >= SZ_16M) ? SZ_16M : \
176 ((bytes) >= SZ_1M) ? SZ_1M : \
177 ((bytes) >= SZ_64K) ? SZ_64K : \
178 ((bytes) >= SZ_4K) ? SZ_4K : 0)
180 #define bytes_to_iopgsz(bytes) \ argument
181 (((bytes) == SZ_16M) ? MMU_CAM_PGSZ_16M : \
182 ((bytes) == SZ_1M) ? MMU_CAM_PGSZ_1M : \
183 ((bytes) == SZ_64K) ? MMU_CAM_PGSZ_64K : \
184 ((bytes) == SZ_4K) ? MMU_CAM_PGSZ_4K : -1)
[all …]
Domap-iommu-debug.c35 ssize_t bytes; \
38 bytes = snprintf(p, maxcol, str, __stringify(name), \
40 p += bytes; \
41 len -= bytes; \
72 ssize_t bytes) in omap_iommu_dump_ctx() argument
79 bytes = omap2_iommu_dump_ctx(obj, buf, bytes); in omap_iommu_dump_ctx()
83 return bytes; in omap_iommu_dump_ctx()
91 ssize_t bytes; in debug_read_regs() local
103 bytes = omap_iommu_dump_ctx(obj, p, count); in debug_read_regs()
104 bytes = simple_read_from_buffer(userbuf, count, ppos, buf, bytes); in debug_read_regs()
[all …]
Domap-iommu.c427 size_t bytes; in flush_iotlb_page() local
433 bytes = iopgsz_to_bytes(cr.cam & 3); in flush_iotlb_page()
435 if ((start <= da) && (da < start + bytes)) { in flush_iotlb_page()
437 __func__, start, da, bytes); in flush_iotlb_page()
686 size_t bytes; in iopgtable_clear_entry_core() local
697 bytes = IOPTE_SIZE; in iopgtable_clear_entry_core()
703 bytes *= nent; in iopgtable_clear_entry_core()
718 bytes = IOPGD_SIZE; in iopgtable_clear_entry_core()
724 bytes *= nent; in iopgtable_clear_entry_core()
729 return bytes; in iopgtable_clear_entry_core()
[all …]
/linux-4.4.14/include/trace/events/
Drandom.h11 TP_PROTO(int bytes, unsigned long IP),
13 TP_ARGS(bytes, IP),
16 __field( int, bytes )
21 __entry->bytes = bytes;
26 __entry->bytes, (void *)__entry->IP)
30 TP_PROTO(const char *pool_name, int bytes, unsigned long IP),
32 TP_ARGS(pool_name, bytes, IP),
36 __field( int, bytes )
42 __entry->bytes = bytes;
47 __entry->pool_name, __entry->bytes, (void *)__entry->IP)
[all …]
/linux-4.4.14/drivers/gpu/drm/radeon/
Dradeon_dp_auxch.c67 int bytes; in radeon_dp_aux_transfer_native() local
88 bytes = BARE_ADDRESS_SIZE; in radeon_dp_aux_transfer_native()
91 bytes++; in radeon_dp_aux_transfer_native()
93 bytes += msg->size; in radeon_dp_aux_transfer_native()
114 AUX_SW_WR_BYTES(bytes)); in radeon_dp_aux_transfer_native()
116 AUX_SW_WR_BYTES(bytes)); in radeon_dp_aux_transfer_native()
149 AUX_SW_WR_BYTES(bytes) | AUX_SW_GO); in radeon_dp_aux_transfer_native()
177 bytes = AUX_SW_REPLY_GET_BYTE_COUNT(tmp); in radeon_dp_aux_transfer_native()
178 if (bytes) { in radeon_dp_aux_transfer_native()
185 for (i = 0; i < bytes - 1; i++) { in radeon_dp_aux_transfer_native()
[all …]
Dsi_dma.c75 unsigned bytes = count * 8; in si_dma_vm_copy_pages() local
76 if (bytes > 0xFFFF8) in si_dma_vm_copy_pages()
77 bytes = 0xFFFF8; in si_dma_vm_copy_pages()
80 1, 0, 0, bytes); in si_dma_vm_copy_pages()
86 pe += bytes; in si_dma_vm_copy_pages()
87 src += bytes; in si_dma_vm_copy_pages()
88 count -= bytes / 8; in si_dma_vm_copy_pages()
/linux-4.4.14/include/asm-generic/
Dxor.h19 xor_8regs_2(unsigned long bytes, unsigned long *p1, unsigned long *p2) in xor_8regs_2() argument
21 long lines = bytes / (sizeof (long)) / 8; in xor_8regs_2()
38 xor_8regs_3(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_8regs_3() argument
41 long lines = bytes / (sizeof (long)) / 8; in xor_8regs_3()
59 xor_8regs_4(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_8regs_4() argument
62 long lines = bytes / (sizeof (long)) / 8; in xor_8regs_4()
81 xor_8regs_5(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_8regs_5() argument
84 long lines = bytes / (sizeof (long)) / 8; in xor_8regs_5()
104 xor_32regs_2(unsigned long bytes, unsigned long *p1, unsigned long *p2) in xor_32regs_2() argument
106 long lines = bytes / (sizeof (long)) / 8; in xor_32regs_2()
[all …]
/linux-4.4.14/arch/x86/crypto/
Dchacha20_glue.c30 unsigned int bytes) in chacha20_dosimd() argument
36 while (bytes >= CHACHA20_BLOCK_SIZE * 8) { in chacha20_dosimd()
38 bytes -= CHACHA20_BLOCK_SIZE * 8; in chacha20_dosimd()
45 while (bytes >= CHACHA20_BLOCK_SIZE * 4) { in chacha20_dosimd()
47 bytes -= CHACHA20_BLOCK_SIZE * 4; in chacha20_dosimd()
52 while (bytes >= CHACHA20_BLOCK_SIZE) { in chacha20_dosimd()
54 bytes -= CHACHA20_BLOCK_SIZE; in chacha20_dosimd()
59 if (bytes) { in chacha20_dosimd()
60 memcpy(buf, src, bytes); in chacha20_dosimd()
62 memcpy(dst, buf, bytes); in chacha20_dosimd()
Dpoly1305_glue.c124 unsigned int bytes; in poly1305_simd_update() local
133 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen); in poly1305_simd_update()
134 memcpy(dctx->buf + dctx->buflen, src, bytes); in poly1305_simd_update()
135 src += bytes; in poly1305_simd_update()
136 srclen -= bytes; in poly1305_simd_update()
137 dctx->buflen += bytes; in poly1305_simd_update()
147 bytes = poly1305_simd_blocks(dctx, src, srclen); in poly1305_simd_update()
148 src += srclen - bytes; in poly1305_simd_update()
149 srclen = bytes; in poly1305_simd_update()
Dghash-clmulni-intel_glue.c43 u32 bytes; member
88 if (dctx->bytes) { in ghash_update()
89 int n = min(srclen, dctx->bytes); in ghash_update()
90 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update()
92 dctx->bytes -= n; in ghash_update()
98 if (!dctx->bytes) in ghash_update()
108 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update()
120 if (dctx->bytes) { in ghash_flush()
121 u8 *tmp = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_flush()
123 while (dctx->bytes--) in ghash_flush()
[all …]
Dcrc32c-pcl-intel-asm_64.S64 # efficient "by-1" code. This "by-1" code only handles up to 255 bytes, so
264 ## 6) LESS THAN 256-bytes REMAIN AT THIS POINT (8-bits of len are full)
291 crc32l (bufptmp), crc_init_dw # CRC of 4 bytes
298 crc32w (bufptmp), crc_init_dw # CRC of 2 bytes
315 ## jump table Table is 129 entries x 2 bytes each
331 ## Table is 128 entries x 2 words (8 bytes) each
/linux-4.4.14/sound/soc/intel/common/
Dsst-dsp.c60 u32 *src, size_t bytes) in _sst_memcpy_toio_32() argument
62 int i, words = bytes >> 2; in _sst_memcpy_toio_32()
69 const volatile __iomem u32 *src, size_t bytes) in _sst_memcpy_fromio_32() argument
71 int i, words = bytes >> 2; in _sst_memcpy_fromio_32()
78 void __iomem *dest, void *src, size_t bytes) in sst_memcpy_toio_32() argument
80 _sst_memcpy_toio_32(dest, src, bytes); in sst_memcpy_toio_32()
85 void __iomem *src, size_t bytes) in sst_memcpy_fromio_32() argument
87 _sst_memcpy_fromio_32(dest, src, bytes); in sst_memcpy_fromio_32()
371 void sst_dsp_outbox_write(struct sst_dsp *sst, void *message, size_t bytes) in sst_dsp_outbox_write() argument
375 trace_sst_ipc_outbox_write(bytes); in sst_dsp_outbox_write()
[all …]
Dsst-dsp.h256 void __iomem *dest, void *src, size_t bytes);
258 void *dest, void __iomem *src, size_t bytes);
282 void sst_dsp_inbox_write(struct sst_dsp *dsp, void *message, size_t bytes);
283 void sst_dsp_inbox_read(struct sst_dsp *dsp, void *message, size_t bytes);
284 void sst_dsp_outbox_write(struct sst_dsp *dsp, void *message, size_t bytes);
285 void sst_dsp_outbox_read(struct sst_dsp *dsp, void *message, size_t bytes);
286 void sst_dsp_mailbox_dump(struct sst_dsp *dsp, size_t bytes);
Dsst-dsp-priv.h53 size_t bytes);
55 size_t bytes);
322 u32 dest_offset, size_t bytes) in sst_dsp_write() argument
324 sst->ops->ram_write(sst, sst->addr.lpe + dest_offset, src, bytes); in sst_dsp_write()
328 u32 src_offset, size_t bytes) in sst_dsp_read() argument
330 sst->ops->ram_read(sst, dest, sst->addr.lpe + src_offset, bytes); in sst_dsp_read()
/linux-4.4.14/drivers/acpi/acpica/
Dutmisc.c125 u8 bytes[4]; in acpi_ut_dword_byte_swap() member
129 u8 bytes[4]; in acpi_ut_dword_byte_swap() member
136 out.bytes[0] = in.bytes[3]; in acpi_ut_dword_byte_swap()
137 out.bytes[1] = in.bytes[2]; in acpi_ut_dword_byte_swap()
138 out.bytes[2] = in.bytes[1]; in acpi_ut_dword_byte_swap()
139 out.bytes[3] = in.bytes[0]; in acpi_ut_dword_byte_swap()
/linux-4.4.14/include/uapi/linux/netfilter/
Dxt_sctp.h38 #define bytes(type) (sizeof(type) * 8) macro
42 (chunkmap)[type / bytes(__u32)] |= \
43 1 << (type % bytes(__u32)); \
48 (chunkmap)[type / bytes(__u32)] &= \
49 ~(1 << (type % bytes(__u32))); \
54 ((chunkmap)[type / bytes (__u32)] & \
55 (1 << (type % bytes (__u32)))) ? 1: 0; \
/linux-4.4.14/sound/pci/echoaudio/
Dmidi.c60 static int write_midi(struct echoaudio *chip, u8 *data, int bytes) in write_midi() argument
62 if (snd_BUG_ON(bytes <= 0 || bytes >= MIDI_OUT_BUFFER_SIZE)) in write_midi()
72 chip->comm_page->midi_output[0] = bytes; in write_midi()
73 memcpy(&chip->comm_page->midi_output[1], data, bytes); in write_midi()
77 dev_dbg(chip->card->dev, "write_midi: %d\n", bytes); in write_midi()
78 return bytes; in write_midi()
206 int bytes, sent, time; in snd_echo_midi_output_write() local
211 sent = bytes = 0; in snd_echo_midi_output_write()
215 bytes = snd_rawmidi_transmit_peek(chip->midi_out, buf, in snd_echo_midi_output_write()
217 dev_dbg(chip->card->dev, "Try to send %d bytes...\n", bytes); in snd_echo_midi_output_write()
[all …]
/linux-4.4.14/drivers/staging/most/aim-sound/
Dsound.c62 void (*copy_fn)(void *alsa, void *most, unsigned int bytes);
81 static void swap_copy16(u16 *dest, const u16 *source, unsigned int bytes) in swap_copy16() argument
85 while (i < (bytes / 2)) { in swap_copy16()
91 static void swap_copy24(u8 *dest, const u8 *source, unsigned int bytes) in swap_copy24() argument
95 while (i < bytes - 2) { in swap_copy24()
103 static void swap_copy32(u32 *dest, const u32 *source, unsigned int bytes) in swap_copy32() argument
107 while (i < bytes / 4) { in swap_copy32()
113 static void alsa_to_most_memcpy(void *alsa, void *most, unsigned int bytes) in alsa_to_most_memcpy() argument
115 memcpy(most, alsa, bytes); in alsa_to_most_memcpy()
118 static void alsa_to_most_copy16(void *alsa, void *most, unsigned int bytes) in alsa_to_most_copy16() argument
[all …]
/linux-4.4.14/drivers/md/bcache/
Ddebug.c151 size_t bytes; member
170 unsigned bytes = min(i->bytes, size); in bch_dump_read() local
172 int err = copy_to_user(buf, i->buf, bytes); in bch_dump_read()
176 ret += bytes; in bch_dump_read()
177 buf += bytes; in bch_dump_read()
178 size -= bytes; in bch_dump_read()
179 i->bytes -= bytes; in bch_dump_read()
180 memmove(i->buf, i->buf + bytes, i->bytes); in bch_dump_read()
182 if (i->bytes) in bch_dump_read()
190 i->bytes = snprintf(i->buf, PAGE_SIZE, "%s\n", kbuf); in bch_dump_read()
/linux-4.4.14/drivers/mfd/
Dtps65912-i2c.c26 int bytes, void *dest) in tps65912_i2c_read() argument
41 xfer[1].len = bytes; in tps65912_i2c_read()
53 int bytes, void *src) in tps65912_i2c_write() argument
60 if (bytes > TPS6591X_MAX_REGISTER) in tps65912_i2c_write()
64 memcpy(&msg[1], src, bytes); in tps65912_i2c_write()
66 ret = i2c_master_send(i2c, msg, bytes + 1); in tps65912_i2c_write()
69 if (ret != bytes + 1) in tps65912_i2c_write()
Dtps6507x.c38 int bytes, void *dest) in tps6507x_i2c_read_device() argument
53 xfer[1].len = bytes; in tps6507x_i2c_read_device()
66 int bytes, void *src) in tps6507x_i2c_write_device() argument
73 if (bytes > TPS6507X_MAX_REGISTER) in tps6507x_i2c_write_device()
77 memcpy(&msg[1], src, bytes); in tps6507x_i2c_write_device()
79 ret = i2c_master_send(i2c, msg, bytes + 1); in tps6507x_i2c_write_device()
82 if (ret != bytes + 1) in tps6507x_i2c_write_device()
D88pm860x-i2c.c87 int bytes, void *dest) in read_device() argument
110 msg[1].len = bytes; in read_device()
113 if (bytes > 0) in read_device()
116 memcpy(dest, msgbuf1, bytes); in read_device()
123 int bytes, void *src) in write_device() argument
131 memcpy(&buf[1], src, bytes); in write_device()
134 msg.len = bytes + 1; in write_device()
Dmax8925-i2c.c22 int reg, int bytes, void *dest) in max8925_read_device() argument
26 if (bytes > 1) in max8925_read_device()
27 ret = i2c_smbus_read_i2c_block_data(i2c, reg, bytes, dest); in max8925_read_device()
38 int reg, int bytes, void *src) in max8925_write_device() argument
44 memcpy(&buf[1], src, bytes); in max8925_write_device()
46 ret = i2c_master_send(i2c, buf, bytes + 1); in max8925_write_device()
Dtwl4030-irq.c494 u8 bytes[4]; in twl4030_sih_bus_sync_unlock() member
502 status = twl_i2c_write(sih->module, imr.bytes, in twl4030_sih_bus_sync_unlock()
512 u8 bytes[6]; in twl4030_sih_bus_sync_unlock() local
523 status = twl_i2c_read(sih->module, bytes, in twl4030_sih_bus_sync_unlock()
538 bytes[byte] &= ~(0x03 << off); in twl4030_sih_bus_sync_unlock()
542 bytes[byte] |= BIT(off + 1); in twl4030_sih_bus_sync_unlock()
544 bytes[byte] |= BIT(off + 0); in twl4030_sih_bus_sync_unlock()
550 status = twl_i2c_write(sih->module, bytes, in twl4030_sih_bus_sync_unlock()
576 u8 bytes[4]; in sih_read_isr() member
583 status = twl_i2c_read(sih->module, isr.bytes, in sih_read_isr()
/linux-4.4.14/Documentation/early-userspace/
Dbuffer-format.txt26 ALGN(n) means padding with null bytes to an n-byte boundary
41 formats); arbitrary amounts zero bytes (for padding) can be added
53 c_magic 6 bytes The string "070701" or "070702"
54 c_ino 8 bytes File inode number
55 c_mode 8 bytes File mode and permissions
56 c_uid 8 bytes File uid
57 c_gid 8 bytes File gid
58 c_nlink 8 bytes Number of links
59 c_mtime 8 bytes Modification time
60 c_filesize 8 bytes Size of data field
[all …]
/linux-4.4.14/drivers/staging/speakup/
Ddevsynth.c21 size_t bytes; in speakup_file_write() local
28 bytes = min(count, sizeof(buf)); in speakup_file_write()
29 if (copy_from_user(buf, ptr, bytes)) in speakup_file_write()
31 count -= bytes; in speakup_file_write()
32 ptr += bytes; in speakup_file_write()
34 synth_write(buf, bytes); in speakup_file_write()
/linux-4.4.14/arch/x86/oprofile/
Dbacktrace.c47 unsigned long bytes; in dump_user_backtrace_32() local
49 bytes = copy_from_user_nmi(bufhead, head, sizeof(bufhead)); in dump_user_backtrace_32()
50 if (bytes != 0) in dump_user_backtrace_32()
93 unsigned long bytes; in dump_user_backtrace() local
95 bytes = copy_from_user_nmi(bufhead, head, sizeof(bufhead)); in dump_user_backtrace()
96 if (bytes != 0) in dump_user_backtrace()
/linux-4.4.14/drivers/lguest/
Dcore.c184 void __lgread(struct lg_cpu *cpu, void *b, unsigned long addr, unsigned bytes) in __lgread() argument
186 if (!lguest_address_ok(cpu->lg, addr, bytes) in __lgread()
187 || copy_from_user(b, cpu->lg->mem_base + addr, bytes) != 0) { in __lgread()
189 memset(b, 0, bytes); in __lgread()
190 kill_guest(cpu, "bad read address %#lx len %u", addr, bytes); in __lgread()
196 unsigned bytes) in __lgwrite() argument
198 if (!lguest_address_ok(cpu->lg, addr, bytes) in __lgwrite()
199 || copy_to_user(cpu->lg->mem_base + addr, b, bytes) != 0) in __lgwrite()
200 kill_guest(cpu, "bad write address %#lx len %u", addr, bytes); in __lgwrite()
/linux-4.4.14/arch/powerpc/lib/
Dxor_vmx.c57 void xor_altivec_2(unsigned long bytes, unsigned long *v1_in, in xor_altivec_2() argument
62 unsigned long lines = bytes / (sizeof(unative_t)) / 4; in xor_altivec_2()
81 void xor_altivec_3(unsigned long bytes, unsigned long *v1_in, in xor_altivec_3() argument
87 unsigned long lines = bytes / (sizeof(unative_t)) / 4; in xor_altivec_3()
109 void xor_altivec_4(unsigned long bytes, unsigned long *v1_in, in xor_altivec_4() argument
117 unsigned long lines = bytes / (sizeof(unative_t)) / 4; in xor_altivec_4()
142 void xor_altivec_5(unsigned long bytes, unsigned long *v1_in, in xor_altivec_5() argument
151 unsigned long lines = bytes / (sizeof(unative_t)) / 4; in xor_altivec_5()
/linux-4.4.14/arch/metag/lib/
Dmemcpy.S15 ! If there are less than 16 bytes to copy use the byte copy loop
36 ! The destination address is not 8 byte aligned. We will copy bytes from
39 ! bytes here).
43 SUB D1Ar3, D1Ar3, #1 ! decrement count of remaining bytes
48 ! We have at least (16 - 7) = 9 bytes to copy - calculate the number of 8 byte
74 ! If there are any remaining bytes use the byte copy loop, otherwise we are done
80 ! or more bytes to be copied.
88 ! Save the number of bytes of mis-alignment in D0Ar4 for use later
94 ! prefetch 8 bytes
99 ! There are 3 mis-alignment cases to be considered. Less than 4 bytes, exactly
[all …]
/linux-4.4.14/sound/firewire/tascam/
Dtascam-transaction.c159 int bytes; in handle_midi_tx() local
174 bytes = calculate_message_bytes(b[1]); in handle_midi_tx()
176 if (bytes <= 0) { in handle_midi_tx()
178 for (bytes = 1; bytes < 4; bytes++) { in handle_midi_tx()
179 if (b[bytes] == 0xf7) in handle_midi_tx()
182 if (bytes == 4) in handle_midi_tx()
183 bytes = 3; in handle_midi_tx()
188 snd_rawmidi_receive(substream, b + 1, bytes); in handle_midi_tx()
/linux-4.4.14/fs/efivarfs/
Dfile.c25 ssize_t bytes; in efivarfs_file_write() local
41 bytes = efivar_entry_set_get_size(var, attributes, &datasize, in efivarfs_file_write()
43 if (!set && bytes) { in efivarfs_file_write()
44 if (bytes == -ENOENT) in efivarfs_file_write()
45 bytes = -EIO; in efivarfs_file_write()
49 if (bytes == -ENOENT) { in efivarfs_file_write()
59 bytes = count; in efivarfs_file_write()
64 return bytes; in efivarfs_file_write()
/linux-4.4.14/arch/metag/mm/
Dcache.c293 void metag_data_cache_flush(const void *start, int bytes) in metag_data_cache_flush() argument
302 if (bytes >= 4096) { in metag_data_cache_flush()
309 loops = ((int)start & (DCACHE_LINE_BYTES - 1)) + bytes + in metag_data_cache_flush()
344 static void metag_phys_code_cache_flush(const void *start, int bytes) in metag_phys_code_cache_flush() argument
384 if ((bytes < 4096) && (bytes < loops)) { in metag_phys_code_cache_flush()
388 loops = (((int) start) & (step-1)) + bytes + step - 1; in metag_phys_code_cache_flush()
465 void metag_code_cache_flush(const void *start, int bytes) in metag_code_cache_flush() argument
478 metag_phys_code_cache_flush(start, bytes); in metag_code_cache_flush()
482 if (bytes >= 4096) { in metag_code_cache_flush()
483 metag_phys_code_cache_flush(start, bytes); in metag_code_cache_flush()
[all …]
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
Di40e_nvm.c621 u8 *bytes, int *perrno);
624 u8 *bytes, int *perrno);
627 u8 *bytes, int *errno);
636 u8 *bytes, int *perrno);
639 u8 *bytes, int *perrno);
642 u8 *bytes, int *perrno);
645 u8 *bytes, int *perrno);
685 u8 *bytes, int *perrno) in i40e_nvmupd_command() argument
712 bytes[0] = hw->nvmupd_state; in i40e_nvmupd_command()
718 status = i40e_nvmupd_state_init(hw, cmd, bytes, perrno); in i40e_nvmupd_command()
[all …]
/linux-4.4.14/drivers/net/wireless/ipw2x00/
Dlibipw_tx.c265 int bytes, fc, hdr_len; in libipw_xmit() local
348 bytes = skb->len + SNAP_SIZE + sizeof(u16); in libipw_xmit()
354 int len = bytes + hdr_len + crypt->ops->extra_msdu_prefix_len + in libipw_xmit()
375 bytes += crypt->ops->extra_msdu_prefix_len + in libipw_xmit()
406 nr_frags = bytes / bytes_per_frag; in libipw_xmit()
407 bytes_last_frag = bytes % bytes_per_frag; in libipw_xmit()
414 bytes_per_frag = bytes_last_frag = bytes; in libipw_xmit()
415 frag_size = bytes + hdr_len; in libipw_xmit()
438 txb->payload_size = bytes; in libipw_xmit()
482 bytes = bytes_per_frag; in libipw_xmit()
[all …]
/linux-4.4.14/net/core/
Dgen_stats.c112 u64 bytes; in __gnet_stats_copy_basic_cpu() local
117 bytes = bcpu->bstats.bytes; in __gnet_stats_copy_basic_cpu()
121 bstats->bytes += bytes; in __gnet_stats_copy_basic_cpu()
134 bstats->bytes = b->bytes; in __gnet_stats_copy_basic()
161 d->tc_stats.bytes = bstats.bytes; in gnet_stats_copy_basic()
169 sb.bytes = bstats.bytes; in gnet_stats_copy_basic()
/linux-4.4.14/samples/seccomp/
Dbpf-fancy.c84 ssize_t bytes; in main() local
97 bytes = syscall(__NR_read, STDIN_FILENO, buf, sizeof(buf)-1); in main()
98 bytes = (bytes > 0 ? bytes : 0); in main()
100 syscall(__NR_write, STDERR_FILENO, buf, bytes); in main()
Dbpf-direct.c66 ssize_t bytes; in emulator() local
83 bytes = write(STDOUT_FILENO, buf, len); in emulator()
84 ctx->uc_mcontext.gregs[REG_RESULT] = bytes; in emulator()
166 ssize_t bytes = 0; in main() local
173 bytes = syscall(__NR_read, STDIN_FILENO, buf, sizeof(buf)); in main()
175 syscall(__NR_write, STDOUT_FILENO, buf, bytes); in main()
/linux-4.4.14/Documentation/networking/
Dudplite.txt64 sets the checksum coverage length to 20 bytes (12b data + 8b header).
65 Of each packet only the first 20 bytes (plus the pseudo-header) will be
172 Payload: 1536 bytes Send Buffer: 1024 bytes
173 MTU: 1500 bytes Coverage Length: 856 bytes
175 UDP-Lite will ship the 1536 bytes in two separate packets:
177 Packet 1: 1024 payload + 8 byte header + 20 byte IP header = 1052 bytes
178 Packet 2: 512 payload + 8 byte header + 20 byte IP header = 540 bytes
180 The coverage packet covers the UDP-Lite header and 848 bytes of the
189 Payload: 1024 bytes Send buffer size: 1024 bytes
190 MTU: 300 bytes Coverage length: 575 bytes
[all …]
/linux-4.4.14/arch/powerpc/platforms/powermac/
Dpfunc_core.c80 static void print_blob(const char *title, const void *blob, int bytes)
83 while(bytes--) {
270 u32 bytes = pmf_next32(cmd); in pmf_parser_read_i2c() local
272 LOG_PARSE("pmf: read_i2c(bytes: %ud)\n", bytes); in pmf_parser_read_i2c()
274 PMF_PARSE_CALL(read_i2c, cmd, h, bytes); in pmf_parser_read_i2c()
279 u32 bytes = pmf_next32(cmd); in pmf_parser_write_i2c() local
280 const void *blob = pmf_next_blob(cmd, bytes); in pmf_parser_write_i2c()
282 LOG_PARSE("pmf: write_i2c(bytes: %ud) ...\n", bytes); in pmf_parser_write_i2c()
283 LOG_BLOB("pmf: data: \n", blob, bytes); in pmf_parser_write_i2c()
285 PMF_PARSE_CALL(write_i2c, cmd, h, bytes, blob); in pmf_parser_write_i2c()
[all …]
/linux-4.4.14/drivers/mtd/ubi/
Dupd.c88 long long bytes) in clear_update_marker() argument
101 vol->used_bytes = bytes; in clear_update_marker()
102 vol->used_ebs = div_u64_rem(bytes, vol->usable_leb_size, in clear_update_marker()
128 long long bytes) in ubi_start_update() argument
132 dbg_gen("start update of volume %d, %llu bytes", vol->vol_id, bytes); in ubi_start_update()
151 if (bytes == 0) { in ubi_start_update()
165 vol->upd_ebs = div_u64(bytes + vol->usable_leb_size - 1, in ubi_start_update()
167 vol->upd_bytes = bytes; in ubi_start_update()
187 vol->vol_id, req->lnum, req->bytes); in ubi_start_leb_change()
188 if (req->bytes == 0) in ubi_start_leb_change()
[all …]
/linux-4.4.14/tools/iio/
Dgeneric_buffer.c47 int bytes = 0; in size_from_channelarray() local
51 if (bytes % channels[i].bytes == 0) in size_from_channelarray()
52 channels[i].location = bytes; in size_from_channelarray()
54 channels[i].location = bytes - bytes % channels[i].bytes in size_from_channelarray()
55 + channels[i].bytes; in size_from_channelarray()
57 bytes = channels[i].location + channels[i].bytes; in size_from_channelarray()
61 return bytes; in size_from_channelarray()
170 switch (channels[k].bytes) { in process_scan()
/linux-4.4.14/drivers/net/
Dloopback.c63 u64 bytes; member
92 lb_stats->bytes += len; in loopback_xmit()
103 u64 bytes = 0; in loopback_get_stats64() local
115 tbytes = lb_stats->bytes; in loopback_get_stats64()
118 bytes += tbytes; in loopback_get_stats64()
123 stats->rx_bytes = bytes; in loopback_get_stats64()
124 stats->tx_bytes = bytes; in loopback_get_stats64()
Dnlmon.c11 u64 bytes; member
21 stats->bytes += len; in nlmon_xmit()
83 u64 bytes = 0, packets = 0; in nlmon_get_stats64() local
94 tbytes = nl_stats->bytes; in nlmon_get_stats64()
99 bytes += tbytes; in nlmon_get_stats64()
105 stats->rx_bytes = bytes; in nlmon_get_stats64()
Dveth.c31 u64 bytes; member
125 stats->bytes += length; in veth_xmit()
146 result->bytes = 0; in veth_stats_one()
149 u64 packets, bytes; in veth_stats_one() local
155 bytes = stats->bytes; in veth_stats_one()
158 result->bytes += bytes; in veth_stats_one()
171 tot->tx_bytes = one.bytes; in veth_get_stats64()
178 tot->rx_bytes = one.bytes; in veth_get_stats64()
/linux-4.4.14/fs/qnx4/
Dbitmap.c30 int bytes = min(size - total, QNX4_BLOCK_SIZE); in qnx4_count_free_blocks() local
36 total_free += bytes * BITS_PER_BYTE - in qnx4_count_free_blocks()
37 memweight(bh->b_data, bytes); in qnx4_count_free_blocks()
39 total += bytes; in qnx4_count_free_blocks()
/linux-4.4.14/arch/powerpc/include/asm/
Dxor.h27 void xor_altivec_2(unsigned long bytes, unsigned long *v1_in,
29 void xor_altivec_3(unsigned long bytes, unsigned long *v1_in,
31 void xor_altivec_4(unsigned long bytes, unsigned long *v1_in,
34 void xor_altivec_5(unsigned long bytes, unsigned long *v1_in,
/linux-4.4.14/arch/powerpc/crypto/
Dsha1-spe-glue.c83 unsigned int bytes; in ppc_spe_sha1_update() local
106 bytes = (len > MAX_BYTES) ? MAX_BYTES : len; in ppc_spe_sha1_update()
107 bytes = bytes & ~0x3f; in ppc_spe_sha1_update()
110 ppc_spe_sha1_transform(sctx->state, src, bytes >> 6); in ppc_spe_sha1_update()
113 src += bytes; in ppc_spe_sha1_update()
114 len -= bytes; in ppc_spe_sha1_update()
Dsha256-spe-glue.c104 unsigned int bytes; in ppc_spe_sha256_update() local
128 bytes = (len > MAX_BYTES) ? MAX_BYTES : len; in ppc_spe_sha256_update()
129 bytes = bytes & ~0x3f; in ppc_spe_sha256_update()
132 ppc_spe_sha256_transform(sctx->state, src, bytes >> 6); in ppc_spe_sha256_update()
135 src += bytes; in ppc_spe_sha256_update()
136 len -= bytes; in ppc_spe_sha256_update()
/linux-4.4.14/arch/arm/lib/
Dmemzero.S24 blt 5f @ 1 bytes to align with?
43 blt 4f @ 1 have < 16 bytes
58 3: subs r1, r1, #64 @ 1 write 32 bytes out per loop
71 tst r1, #16 @ 1 16 bytes or more?
122 4: tst r1, #8 @ 1 8 bytes or more?
124 tst r1, #4 @ 1 4 bytes or more?
130 5: tst r1, #2 @ 1 2 bytes or more?
/linux-4.4.14/sound/usb/
Dhelper.c29 unsigned int snd_usb_combine_bytes(unsigned char *bytes, int size) in snd_usb_combine_bytes() argument
32 case 1: return *bytes; in snd_usb_combine_bytes()
33 case 2: return combine_word(bytes); in snd_usb_combine_bytes()
34 case 3: return combine_triple(bytes); in snd_usb_combine_bytes()
35 case 4: return combine_quad(bytes); in snd_usb_combine_bytes()
Dpcm.c1269 unsigned int stride, frames, bytes, oldptr; in retire_capture_urb() local
1287 bytes = urb->iso_frame_desc[i].actual_length; in retire_capture_urb()
1288 frames = bytes / stride; in retire_capture_urb()
1290 bytes = frames * stride; in retire_capture_urb()
1291 if (bytes % (runtime->sample_bits >> 3) != 0) { in retire_capture_urb()
1292 int oldbytes = bytes; in retire_capture_urb()
1293 bytes = frames * stride; in retire_capture_urb()
1296 oldbytes, bytes); in retire_capture_urb()
1301 subs->hwptr_done += bytes; in retire_capture_urb()
1304 frames = (bytes + (oldptr % stride)) / stride; in retire_capture_urb()
[all …]
/linux-4.4.14/fs/
Dstat.c447 void __inode_add_bytes(struct inode *inode, loff_t bytes) in __inode_add_bytes() argument
449 inode->i_blocks += bytes >> 9; in __inode_add_bytes()
450 bytes &= 511; in __inode_add_bytes()
451 inode->i_bytes += bytes; in __inode_add_bytes()
458 void inode_add_bytes(struct inode *inode, loff_t bytes) in inode_add_bytes() argument
461 __inode_add_bytes(inode, bytes); in inode_add_bytes()
467 void __inode_sub_bytes(struct inode *inode, loff_t bytes) in __inode_sub_bytes() argument
469 inode->i_blocks -= bytes >> 9; in __inode_sub_bytes()
470 bytes &= 511; in __inode_sub_bytes()
471 if (inode->i_bytes < bytes) { in __inode_sub_bytes()
[all …]
/linux-4.4.14/block/
Dbio.c894 void bio_advance(struct bio *bio, unsigned bytes) in bio_advance() argument
897 bio_integrity_advance(bio, bytes); in bio_advance()
899 bio_advance_iter(bio, &bio->bi_iter, bytes); in bio_advance()
948 unsigned bytes; in bio_copy_data() local
973 bytes = min(src_bv.bv_len, dst_bv.bv_len); in bio_copy_data()
980 bytes); in bio_copy_data()
985 bio_advance_iter(src, &src_iter, bytes); in bio_copy_data()
986 bio_advance_iter(dst, &dst_iter, bytes); in bio_copy_data()
1184 unsigned int bytes = PAGE_SIZE; in bio_copy_user_iov() local
1186 bytes -= offset; in bio_copy_user_iov()
[all …]
Dbio-integrity.c277 unsigned int bytes, offset, i; in bio_integrity_prep() local
318 bytes = PAGE_SIZE - offset; in bio_integrity_prep()
323 if (bytes > len) in bio_integrity_prep()
324 bytes = len; in bio_integrity_prep()
327 bytes, offset); in bio_integrity_prep()
332 if (ret < bytes) in bio_integrity_prep()
335 buf += bytes; in bio_integrity_prep()
336 len -= bytes; in bio_integrity_prep()
423 unsigned bytes = bio_integrity_bytes(bi, bytes_done >> 9); in bio_integrity_advance() local
425 bvec_iter_advance(bip->bip_vec, &bip->bip_iter, bytes); in bio_integrity_advance()
/linux-4.4.14/tools/perf/util/intel-pt-decoder/
Dinsn.c99 if (prefixes->bytes[i] == b) in insn_get_prefixes()
104 prefixes->bytes[nb++] = b; in insn_get_prefixes()
123 if (lb && lb != insn->prefixes.bytes[3]) { in insn_get_prefixes()
124 if (unlikely(insn->prefixes.bytes[3])) { in insn_get_prefixes()
126 b = insn->prefixes.bytes[3]; in insn_get_prefixes()
128 if (prefixes->bytes[i] == lb) in insn_get_prefixes()
129 prefixes->bytes[i] = b; in insn_get_prefixes()
131 insn->prefixes.bytes[3] = lb; in insn_get_prefixes()
163 insn->vex_prefix.bytes[0] = b; in insn_get_prefixes()
164 insn->vex_prefix.bytes[1] = b2; in insn_get_prefixes()
[all …]
Dinsn.h29 insn_byte_t bytes[4]; member
148 return X86_VEX3_M(insn->vex_prefix.bytes[1]); in insn_vex_m_bits()
154 return X86_VEX_P(insn->vex_prefix.bytes[1]); in insn_vex_p_bits()
156 return X86_VEX_P(insn->vex_prefix.bytes[2]); in insn_vex_p_bits()
165 if (insn->prefixes.bytes[3]) in insn_last_prefix_id()
166 return inat_get_last_prefix_id(insn->prefixes.bytes[3]); in insn_last_prefix_id()
/linux-4.4.14/arch/x86/lib/
Dinsn.c99 if (prefixes->bytes[i] == b) in insn_get_prefixes()
104 prefixes->bytes[nb++] = b; in insn_get_prefixes()
123 if (lb && lb != insn->prefixes.bytes[3]) { in insn_get_prefixes()
124 if (unlikely(insn->prefixes.bytes[3])) { in insn_get_prefixes()
126 b = insn->prefixes.bytes[3]; in insn_get_prefixes()
128 if (prefixes->bytes[i] == lb) in insn_get_prefixes()
129 prefixes->bytes[i] = b; in insn_get_prefixes()
131 insn->prefixes.bytes[3] = lb; in insn_get_prefixes()
163 insn->vex_prefix.bytes[0] = b; in insn_get_prefixes()
164 insn->vex_prefix.bytes[1] = b2; in insn_get_prefixes()
[all …]
/linux-4.4.14/drivers/nvmem/
Dcore.c46 int bytes; member
238 cell->bytes = info->bytes; in nvmem_cell_info_to_nvmem_cell()
245 cell->bytes = DIV_ROUND_UP(cell->nbits + cell->bit_offset, in nvmem_cell_info_to_nvmem_cell()
652 cell->bytes = be32_to_cpup(addr); in of_nvmem_cell_get()
662 cell->bytes = DIV_ROUND_UP(cell->nbits + cell->bit_offset, in of_nvmem_cell_get()
800 for (i = 1; i < cell->bytes; i++) { in nvmem_shift_read_buffer_in_place()
809 if (cell->bytes != DIV_ROUND_UP(cell->nbits, BITS_PER_BYTE)) in nvmem_shift_read_buffer_in_place()
822 rc = regmap_raw_read(nvmem->regmap, cell->offset, buf, cell->bytes); in __nvmem_cell_read()
831 *len = cell->bytes; in __nvmem_cell_read()
854 buf = kzalloc(cell->bytes, GFP_KERNEL); in nvmem_cell_read()
[all …]
/linux-4.4.14/arch/x86/kernel/
Dmsr.c78 ssize_t bytes = 0; in msr_read() local
92 bytes += 8; in msr_read()
95 return bytes ? bytes : err; in msr_read()
106 ssize_t bytes = 0; in msr_write() local
120 bytes += 8; in msr_write()
123 return bytes ? bytes : err; in msr_write()
Dioport.c27 unsigned int i, max_long, bytes, bytes_updated; in sys_ioperm() local
73 bytes = (max_long + 1) * sizeof(unsigned long); in sys_ioperm()
74 bytes_updated = max(bytes, t->io_bitmap_max); in sys_ioperm()
76 t->io_bitmap_max = bytes; in sys_ioperm()
Dcpuid.c90 ssize_t bytes = 0; in cpuid_read() local
107 bytes += 16; in cpuid_read()
111 return bytes ? bytes : err; in cpuid_read()
/linux-4.4.14/drivers/scsi/aic7xxx/
Daiclib.h145 scsi_4btoul(uint8_t *bytes) in scsi_4btoul() argument
149 rv = (bytes[0] << 24) | in scsi_4btoul()
150 (bytes[1] << 16) | in scsi_4btoul()
151 (bytes[2] << 8) | in scsi_4btoul()
152 bytes[3]; in scsi_4btoul()
/linux-4.4.14/drivers/scsi/aic7xxx/aicasm/
Daicasm.c373 cur_instr->format.bytes[0], in output_code()
374 cur_instr->format.bytes[1], in output_code()
375 cur_instr->format.bytes[2], in output_code()
376 cur_instr->format.bytes[3]); in output_code()
378 cur_instr->format.bytes[3], in output_code()
379 cur_instr->format.bytes[2], in output_code()
380 cur_instr->format.bytes[1], in output_code()
381 cur_instr->format.bytes[0]); in output_code()
617 cur_instr->format.bytes[0], in output_listing()
618 cur_instr->format.bytes[1], in output_listing()
[all …]
/linux-4.4.14/arch/ia64/sn/kernel/sn2/
Dcache.c24 sn_flush_all_caches(long flush_addr, long bytes) in sn_flush_all_caches() argument
32 flush_icache_range(addr, addr + bytes); in sn_flush_all_caches()
38 flush_icache_range(addr, addr + bytes); in sn_flush_all_caches()
/linux-4.4.14/security/selinux/ss/
Dpolicydb.h337 static inline int next_entry(void *buf, struct policy_file *fp, size_t bytes) in next_entry() argument
339 if (bytes > fp->len) in next_entry()
342 memcpy(buf, fp->data, bytes); in next_entry()
343 fp->data += bytes; in next_entry()
344 fp->len -= bytes; in next_entry()
348 static inline int put_entry(const void *buf, size_t bytes, int num, struct policy_file *fp) in put_entry() argument
350 size_t len = bytes * num; in put_entry()
/linux-4.4.14/net/mac80211/
Dled.h78 ieee80211_tpt_led_trig_tx(struct ieee80211_local *local, __le16 fc, int bytes) in ieee80211_tpt_led_trig_tx() argument
82 local->tpt_led_trigger->tx_bytes += bytes; in ieee80211_tpt_led_trig_tx()
87 ieee80211_tpt_led_trig_rx(struct ieee80211_local *local, __le16 fc, int bytes) in ieee80211_tpt_led_trig_rx() argument
91 local->tpt_led_trigger->rx_bytes += bytes; in ieee80211_tpt_led_trig_rx()
/linux-4.4.14/drivers/mtd/nand/
Domap2.c580 u32 bytes; in omap_nand_irq() local
582 bytes = readl(info->reg.gpmc_prefetch_status); in omap_nand_irq()
583 bytes = PREFETCH_STATUS_FIFO_CNT(bytes); in omap_nand_irq()
584 bytes = bytes & 0xFFFC; /* io in multiple of 4 bytes */ in omap_nand_irq()
589 if (info->buf_len && (info->buf_len < bytes)) in omap_nand_irq()
590 bytes = info->buf_len; in omap_nand_irq()
592 bytes = 0; in omap_nand_irq()
594 (u32 *)info->buf, bytes >> 2); in omap_nand_irq()
595 info->buf = info->buf + bytes; in omap_nand_irq()
596 info->buf_len -= bytes; in omap_nand_irq()
[all …]
Dsunxi_nand.c611 sunxi_nfc_read_buf(mtd, oob, ecc->bytes + 4); in sunxi_nfc_hw_ecc_read_chunk()
615 oob, ecc->bytes + 4, in sunxi_nfc_hw_ecc_read_chunk()
633 *cur_off = oob_off + ecc->bytes + 4; in sunxi_nfc_hw_ecc_read_chunk()
643 int offset = ((ecc->bytes + 4) * ecc->steps); in sunxi_nfc_hw_ecc_read_extra_oob()
697 *cur_off = oob_off + ecc->bytes + 4; in sunxi_nfc_hw_ecc_write_chunk()
707 int offset = ((ecc->bytes + 4) * ecc->steps); in sunxi_nfc_hw_ecc_write_extra_oob()
734 int oob_off = i * (ecc->bytes + 4); in sunxi_nfc_hw_ecc_read_page()
765 int oob_off = i * (ecc->bytes + 4); in sunxi_nfc_hw_ecc_write_page()
796 int data_off = i * (ecc->size + ecc->bytes + 4); in sunxi_nfc_hw_syndrome_ecc_read_page()
799 u8 *oob = chip->oob_poi + (i * (ecc->bytes + 4)); in sunxi_nfc_hw_syndrome_ecc_read_page()
[all …]
Dnand_base.c1272 int eccbytes = chip->ecc.bytes; in nand_read_page_raw_syndrome()
1313 int eccbytes = chip->ecc.bytes; in nand_read_page_swecc()
1372 index = start_step * chip->ecc.bytes; in nand_read_subpage()
1376 eccfrag_len = num_steps * chip->ecc.bytes; in nand_read_subpage()
1387 for (i = 0; i < eccfrag_len ; i += chip->ecc.bytes, p += chip->ecc.size) in nand_read_subpage()
1412 if (eccpos[index + (num_steps * chip->ecc.bytes)] & (busw - 1)) in nand_read_subpage()
1424 for (i = 0; i < eccfrag_len ; i += chip->ecc.bytes, p += chip->ecc.size) { in nand_read_subpage()
1453 int eccbytes = chip->ecc.bytes; in nand_read_page_hwecc()
1506 int eccbytes = chip->ecc.bytes; in nand_read_page_hwecc_oob_first()
1555 int eccbytes = chip->ecc.bytes; in nand_read_page_syndrome()
[all …]
/linux-4.4.14/drivers/spi/
Dspi-omap-uwire.c209 unsigned bytes; in uwire_txrx() local
231 bytes = 2; in uwire_txrx()
234 bytes = 1; in uwire_txrx()
250 len -= bytes; in uwire_txrx()
259 status += bytes; in uwire_txrx()
272 bytes = 2; in uwire_txrx()
274 bytes = 1; in uwire_txrx()
279 len -= bytes; in uwire_txrx()
294 if (bytes == 2) in uwire_txrx()
296 status += bytes; in uwire_txrx()
/linux-4.4.14/include/linux/netfilter/ipset/
Dip_set.h97 u64 bytes; member
107 atomic64_t bytes; member
294 ip_set_add_bytes(u64 bytes, struct ip_set_counter *counter) in ip_set_add_bytes() argument
296 atomic64_add((long long)bytes, &(counter)->bytes); in ip_set_add_bytes()
308 return (u64)atomic64_read(&(counter)->bytes); in ip_set_get_bytes()
324 ip_set_add_bytes(ext->bytes, counter); in ip_set_update_counter()
329 mext->bytes = ip_set_get_bytes(counter); in ip_set_update_counter()
382 if (ext->bytes != ULLONG_MAX) in ip_set_init_counter()
383 atomic64_set(&(counter)->bytes, (long long)(ext->bytes)); in ip_set_init_counter()
548 { .bytes = (skb)->len, .packets = 1, \
[all …]
/linux-4.4.14/Documentation/w1/slaves/
Dw1_ds242322 Each lines will contain the values of 42 bytes read from the counter and
28 Meaning of 42 bytes represented is following:
30 - 4 bytes for the counter value
31 - 4 zero bytes
32 - 2 bytes for crc16 which was calculated from the data read since the previous crc bytes
33 - 31 remaining bytes from the ram page
/linux-4.4.14/Documentation/scsi/
Darcmsr_spec.txt26 ** Byte 4--127 : Max 124 bytes of data
29 ** (inbound queue port) Request frame must be 32 bytes aligned
33 ** 0 : 256 bytes frame
34 ** 1 : 512 bytes frame
75 ** vendor 40 bytes char
76 ** model 8 bytes char
77 ** FirmVer 16 bytes char
78 ** Device Map 16 bytes char
111 ** (A) Header : 3 bytes sequence (0x5E, 0x01, 0x61)
120 ** note ..command block length shouldn't > 2040 bytes,
[all …]
/linux-4.4.14/arch/xtensa/lib/
Dusercopy.S113 # copy 2 bytes
146 movi a2, 0 # return success for len bytes copied
152 # copy 16 bytes per iteration for word-aligned dst and word-aligned src
179 # copy 8 bytes
188 # copy 4 bytes
195 # copy 2 bytes
206 movi a2, 0 # return success for len bytes copied
217 # copy 16 bytes per iteration for word-aligned dst and unaligned src
248 # copy 8 bytes
260 # copy 4 bytes
[all …]
Dmemcopy.S115 # copy 2 bytes
145 # copy 16 bytes per iteration for word-aligned dst and word-aligned src
169 # copy 8 bytes
182 # copy 4 bytes
191 # copy 2 bytes
211 # copy 16 bytes per iteration for word-aligned dst and unaligned src
249 # copy 8 bytes
261 # copy 4 bytes
276 # copy 2 bytes
382 # copy 2 bytes
[all …]
Dmemset.S48 slli a7, a3, 8 # duplicate character in all bytes of word
64 # set 16 bytes per iteration for word-aligned dst
86 # set 8 bytes
92 # set 4 bytes
97 # set 2 bytes
124 # set 2 bytes
/linux-4.4.14/sound/firewire/digi00x/
Ddigi00x-transaction.c14 int bytes; in fill_midi_message() local
17 bytes = snd_rawmidi_transmit_peek(substream, buf + 1, 2); in fill_midi_message()
18 if (bytes >= 0) in fill_midi_message()
19 buf[3] = 0xc0 | bytes; in fill_midi_message()
21 return bytes; in fill_midi_message()
/linux-4.4.14/drivers/usb/usbip/
Dusbip_protocol.txt123 | | | The unused bytes shall be filled with zero
124 | | | bytes.
128 | | | bytes shall be filled with zero bytes.
183 | | | A string closed with zero, the unused bytes
205 | | | The unused bytes shall be filled with zero
206 | | | bytes.
210 | | | bytes shall be filled with zero bytes.
265 0x28 | 8 | | setup: data bytes for USB setup, filled with
302 0x18 | 4 | n | actual_length: number of URB data bytes
311 0x28 | 8 | | setup: data bytes for USB setup, filled with
[all …]
/linux-4.4.14/Documentation/ABI/obsolete/
Dsysfs-driver-hid-roccat-ryos5 profile will be read next. The data has to be 3 bytes long.
17 The data has to be 3 bytes long.
26 The data has to be 125 bytes long.
36 in written data. The data has to be 95 bytes long.
46 written data. The data has to be 35 bytes long.
56 in written data. The data has to be 23 bytes long.
66 is included in written data. The data has to be 8 bytes long.
76 in written data. The data has to be 294 bytes long.
87 written data. The data has to be 6 bytes long.
98 The data has to be 16 bytes long.
[all …]
Dsysfs-driver-hid-roccat-isku16 The data is 6 bytes long.
26 written data. The data has to be 6 bytes long.
36 in written data. The data has to be 6 bytes long.
46 in written data. The data has to be 65 bytes long.
56 in written data. The data has to be 41 bytes long.
66 written data. The data has to be 35 bytes long.
76 written data. The data has to be 29 bytes long.
86 in written data. The data has to be 23 bytes long.
96 The data has to be 20 bytes long.
104 The data has to be 10 bytes long for Isku, IskuFX needs 16 bytes
[all …]
Dsysfs-driver-hid-roccat-konepure9 The data has to be 3 bytes long.
17 profile will be read next. The data has to be 3 bytes long.
26 The data is 6 bytes long.
36 included in written data. The data has to be 2082 bytes long.
47 buttons back to the mouse. The data has to be 59 bytes long.
63 settings back to the mouse. The data has to be 31 bytes long.
76 set. The data has to be 6 bytes long.
84 The data has to be 16 bytes long.
94 The data has to be 4 bytes long.
103 The returned data is 1028 bytes in size.
Dsysfs-driver-hid-roccat-savu8 buttons to the mouse. The data has to be 47 bytes long.
20 profile will be read next. The data has to be 3 bytes long.
32 settings back to the mouse. The data has to be 43 bytes long.
44 The data is 8 bytes long.
53 The data has to be 2083 bytes long.
66 The data has to be 3 bytes long.
75 The data has to be 4 bytes long.
Dsysfs-driver-hid-roccat-koneplus41 The data is 8 bytes long.
51 included in written data. The data has to be 2082 bytes long.
62 buttons back to the mouse. The data has to be 77 bytes long.
77 The returned data is 77 bytes in size.
90 settings back to the mouse. The data has to be 43 bytes long.
106 The returned data is 43 bytes in size.
116 set. The data has to be 6 bytes long.
124 The data has to be 16 bytes long.
134 The data has to be 4 bytes long.
143 The returned data is 1028 bytes in size.
/linux-4.4.14/drivers/media/usb/tm6000/
Dtm6000-i2c.c233 unsigned char bytes[17]; in tm6000_i2c_eeprom() local
238 bytes[16] = '\0'; in tm6000_i2c_eeprom()
258 bytes[i%16] = dev->eedata[i]; in tm6000_i2c_eeprom()
260 bytes[i%16] = '.'; in tm6000_i2c_eeprom()
265 bytes[16] = '\0'; in tm6000_i2c_eeprom()
266 printk(KERN_CONT " %s\n", bytes); in tm6000_i2c_eeprom()
270 bytes[i%16] = '\0'; in tm6000_i2c_eeprom()
273 printk(KERN_CONT " %s\n", bytes); in tm6000_i2c_eeprom()
/linux-4.4.14/fs/ocfs2/
Docfs2.h742 u64 bytes) in ocfs2_clusters_for_bytes() argument
747 bytes += OCFS2_SB(sb)->s_clustersize - 1; in ocfs2_clusters_for_bytes()
749 clusters = (unsigned int)(bytes >> cl_bits); in ocfs2_clusters_for_bytes()
755 u64 bytes) in ocfs2_bytes_to_clusters() argument
760 clusters = (unsigned int)(bytes >> cl_bits); in ocfs2_bytes_to_clusters()
765 u64 bytes) in ocfs2_blocks_for_bytes() argument
767 bytes += sb->s_blocksize - 1; in ocfs2_blocks_for_bytes()
768 return bytes >> sb->s_blocksize_bits; in ocfs2_blocks_for_bytes()
788 u64 bytes) in ocfs2_align_bytes_to_clusters() argument
793 clusters = ocfs2_clusters_for_bytes(sb, bytes); in ocfs2_align_bytes_to_clusters()
[all …]
/linux-4.4.14/drivers/misc/sgi-gru/
Dgrukservices.h75 void *p, unsigned int bytes, int nasid, int vector, int apicid);
95 void *mesg, unsigned int bytes);
161 unsigned int bytes);
Dgrukdump.c125 int try, cch_locked, cbrcnt = 0, dsrcnt = 0, bytes = 0, ret = 0; in gru_dump_context() local
147 bytes = sizeof(hdr) + GRU_CACHE_LINE_BYTES; in gru_dump_context()
161 bytes += (3 * cbrcnt + dsrcnt) * GRU_CACHE_LINE_BYTES; in gru_dump_context()
162 if (bytes > ubufend - ubuf) in gru_dump_context()
182 return bytes; in gru_dump_context()
Dgrukservices.c558 void *p, unsigned int bytes, int nasid, int vector, int apicid) in gru_create_message_queue() argument
563 qlines = bytes / GRU_CACHE_LINE_BYTES - 2; in gru_create_message_queue()
564 memset(mq, 0, bytes); in gru_create_message_queue()
803 unsigned int bytes) in gru_send_message_gpa() argument
811 BUG_ON(bytes < sizeof(int) || bytes > 2 * GRU_CACHE_LINE_BYTES); in gru_send_message_gpa()
813 clines = DIV_ROUND_UP(bytes, GRU_CACHE_LINE_BYTES); in gru_send_message_gpa()
814 if (gru_get_cpu_resources(bytes, &cb, &dsr)) in gru_send_message_gpa()
816 memcpy(dsr, mesg, bytes); in gru_send_message_gpa()
935 unsigned int bytes) in gru_copy_gpa() argument
945 XTYPE_B, bytes, GRU_NUM_KERNEL_DSR_CL, IMA); in gru_copy_gpa()
[all …]
/linux-4.4.14/sound/oss/
Daudio.c690 int bytes, count; in dma_set_fragment() local
699 bytes = fact & 0xffff; in dma_set_fragment()
707 if (bytes < 4 || bytes > 17) /* <16 || > 512k */ in dma_set_fragment()
714 if (bytes < audio_devs[dev]->min_fragment) in dma_set_fragment()
715 bytes = audio_devs[dev]->min_fragment; in dma_set_fragment()
718 if (bytes > audio_devs[dev]->max_fragment) in dma_set_fragment()
719 bytes = audio_devs[dev]->max_fragment; in dma_set_fragment()
722 if (bytes < OS_DMA_MINBITS) in dma_set_fragment()
723 bytes = OS_DMA_MINBITS; in dma_set_fragment()
726 dmap->fragment_size = (1 << bytes); in dma_set_fragment()
[all …]
/linux-4.4.14/drivers/video/fbdev/mb862xx/
Dmb862xxfb_accel.c82 u16 bytes; in mb86290fb_imageblit1() local
97 bytes = (image->width + 7) >> 3; in mb86290fb_imageblit1()
115 line += bytes; in mb86290fb_imageblit1()
131 u16 bytes; in mb86290fb_imageblit8() local
140 bytes = image->width; in mb86290fb_imageblit8()
154 line += bytes; in mb86290fb_imageblit8()
170 u16 bytes; in mb86290fb_imageblit16() local
174 bytes = image->width << 1; in mb86290fb_imageblit16()
183 line += bytes; in mb86290fb_imageblit16()
/linux-4.4.14/fs/proc/
Dtask_nommu.c23 unsigned long bytes = 0, sbytes = 0, slack = 0, size; in task_mem() local
29 bytes += kobjsize(vma); in task_mem()
43 bytes += size; in task_mem()
52 bytes += kobjsize(mm); in task_mem()
57 bytes += kobjsize(current->fs); in task_mem()
62 bytes += kobjsize(current->files); in task_mem()
67 bytes += kobjsize(current->sighand); in task_mem()
69 bytes += kobjsize(current); /* includes kernel stack */ in task_mem()
75 bytes, slack, sbytes); in task_mem()
/linux-4.4.14/Documentation/
Dlzo.txt25 - a length (number of bytes to copy from dictionary)
33 The first byte of the block follows a different encoding from other bytes, it
39 length, up to 255 may be added in increments by consuming more bytes with a
46 length += 255*(number of zero bytes)
54 Certain encodings involve one extra byte, others involve two extra bytes
68 for the distance, thus requiring 3 bytes.
71 instructions are called under the assumption that a certain number of bytes
73 They just have to "refill" this credit if they consume extra bytes. This is
110 bytes to encode a copy of 2 other bytes but it encodes the number of
113 0 0 0 0 D D S S (0..15) : copy 2 bytes from <= 1kB distance
[all …]
/linux-4.4.14/drivers/dma/hsu/
Dhsu.c254 size_t bytes = 0; in hsu_dma_desc_size() local
258 bytes += desc->sg[i].len; in hsu_dma_desc_size()
260 return bytes; in hsu_dma_desc_size()
266 size_t bytes = hsu_dma_desc_size(desc); in hsu_dma_active_desc_size() local
271 bytes += hsu_chan_readl(hsuc, HSU_CH_DxTSR(i)); in hsu_dma_active_desc_size()
274 return bytes; in hsu_dma_active_desc_size()
283 size_t bytes; in hsu_dma_tx_status() local
293 bytes = hsu_dma_active_desc_size(hsuc); in hsu_dma_tx_status()
294 dma_set_residue(state, bytes); in hsu_dma_tx_status()
297 bytes = hsu_dma_desc_size(to_hsu_dma_desc(vdesc)); in hsu_dma_tx_status()
[all …]
/linux-4.4.14/fs/xfs/
Dxfs_sysfs.c236 int bytes; in reserve_grant_head_show() local
239 xlog_crack_grant_head(&log->l_reserve_head.grant, &cycle, &bytes); in reserve_grant_head_show()
240 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, bytes); in reserve_grant_head_show()
250 int bytes; in write_grant_head_show() local
253 xlog_crack_grant_head(&log->l_write_head.grant, &cycle, &bytes); in write_grant_head_show()
254 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, bytes); in write_grant_head_show()
/linux-4.4.14/arch/x86/kernel/apic/
Dx2apic_uv_x.c495 unsigned long bytes, paddr; in map_high() local
498 bytes = (1UL << bshift) * (max_pnode + 1); in map_high()
503 pr_debug("UV: Map %s_HI 0x%lx - 0x%lx\n", id, paddr, paddr + bytes); in map_high()
505 init_extra_mapping_uc(paddr, bytes); in map_high()
507 init_extra_mapping_wb(paddr, bytes); in map_high()
514 unsigned long bytes; in map_gru_distributed() local
524 bytes = 1UL << UVH_RH_GAM_GRU_OVERLAY_CONFIG_MMR_BASE_SHFT; in map_gru_distributed()
525 gru_dist_lmask = ((1UL << uv_hub_info->m_val) - 1) & ~(bytes - 1); in map_gru_distributed()
531 init_extra_mapping_wb(paddr, bytes); in map_gru_distributed()
877 int bytes, nid, cpu, lcpu, pnode, blade, i, j, m_val, n_val; in uv_system_init() local
[all …]
/linux-4.4.14/drivers/tty/
Dmips_ejtag_fdc.c195 unsigned int bytes; member
231 word.word |= (u8)*ptr << (8*word.bytes); in mips_ejtag_fdc_encode()
232 ++word.bytes; in mips_ejtag_fdc_encode()
233 if (word.bytes == 4) in mips_ejtag_fdc_encode()
239 switch (word.bytes) { in mips_ejtag_fdc_encode()
247 word.bytes = 3; in mips_ejtag_fdc_encode()
346 count -= inc[word.bytes - 1]; in mips_ejtag_fdc_console_write()
347 s += inc[word.bytes - 1]; in mips_ejtag_fdc_console_write()
424 struct fdc_word word = { .bytes = 0 }; in mips_ejtag_fdc_put_chan()
440 min_t(int, word.bytes, sizes[0]), ptrs[0], in mips_ejtag_fdc_put_chan()
[all …]
/linux-4.4.14/arch/m68k/fpsp040/
Dfpsp.h79 .set LOCAL_SIZE,192 | bytes needed for local variables
130 .set WBTEMP,LV-76 | write back temp (12 bytes)
131 .set WBTEMP_EX,WBTEMP | wbtemp sign and exponent (2 bytes)
132 .set WBTEMP_HI,WBTEMP+4 | wbtemp mantissa [63:32] (4 bytes)
133 .set WBTEMP_LO,WBTEMP+8 | wbtemp mantissa [31:00] (4 bytes)
139 .set FPIARCU,LV-60 | Instr. addr. reg. for CU (4 bytes)
142 .set CMDREG3B,LV-48 | cmd reg for E3 exceptions (2 bytes)
172 .set CMDREG1B,LV-36 | cmd reg for E1 exceptions (2 bytes)
199 .set FPTEMP,LV-24 | fptemp (12 bytes)
200 .set FPTEMP_EX,FPTEMP | fptemp sign and exponent (2 bytes)
[all …]
/linux-4.4.14/drivers/net/wireless/ti/wlcore/
Ddebugfs.c1050 size_t bytes = count; in dev_mem_read() local
1055 if (bytes % 4) in dev_mem_read()
1062 bytes = min(bytes, WLCORE_MAX_BLOCK_SIZE); in dev_mem_read()
1064 if (bytes == 0) in dev_mem_read()
1069 part.mem.size = bytes; in dev_mem_read()
1071 buf = kmalloc(bytes, GFP_KERNEL); in dev_mem_read()
1094 ret = wlcore_raw_read(wl, 0, buf, bytes, false); in dev_mem_read()
1111 ret = copy_to_user(user_buf, buf, bytes); in dev_mem_read()
1112 if (ret < bytes) { in dev_mem_read()
1113 bytes -= ret; in dev_mem_read()
[all …]
/linux-4.4.14/sound/core/
Dmemalloc.c147 gen_pool_free(pool, (unsigned long)dmab->area, dmab->bytes); in snd_free_dev_iram()
182 dmab->bytes = 0; in snd_dma_alloc_pages()
217 dmab->bytes = size; in snd_dma_alloc_pages()
269 snd_free_pages(dmab->area, dmab->bytes); in snd_dma_free_pages()
278 snd_free_dev_pages(dmab->dev.dev, dmab->bytes, dmab->area, dmab->addr); in snd_dma_free_pages()
Dpcm_memory.c66 dmab->bytes = 0; /* tell error */ in preallocate_pcm_pages()
136 snd_iprintf(buffer, "%lu\n", (unsigned long) substream->dma_buffer.bytes / 1024); in snd_pcm_lib_preallocate_proc_read()
175 if (substream->dma_buffer.bytes == size) in snd_pcm_lib_preallocate_proc_write()
238 if (substream->dma_buffer.bytes > 0) in snd_pcm_lib_preallocate_pages1()
239 substream->buffer_bytes_max = substream->dma_buffer.bytes; in snd_pcm_lib_preallocate_pages1()
348 if (runtime->dma_buffer_p->bytes >= size) { in snd_pcm_lib_malloc_pages()
355 substream->dma_buffer.bytes >= size) { in snd_pcm_lib_malloc_pages()
/linux-4.4.14/drivers/usb/gadget/
Dconfig.c129 unsigned bytes; in usb_copy_descriptors() local
135 for (bytes = 0, n_desc = 0, tmp = src; *tmp; tmp++, n_desc++) in usb_copy_descriptors()
136 bytes += (*tmp)->bLength; in usb_copy_descriptors()
137 bytes += (n_desc + 1) * sizeof(*tmp); in usb_copy_descriptors()
139 mem = kmalloc(bytes, GFP_KERNEL); in usb_copy_descriptors()
/linux-4.4.14/fs/ntfs/
Dfile.c585 unsigned nr_pages, s64 pos, size_t bytes) in ntfs_prepare_pages_for_non_resident_write() argument
622 (long long)pos, bytes); in ntfs_prepare_pages_for_non_resident_write()
647 end = pos + bytes; in ntfs_prepare_pages_for_non_resident_write()
1401 s64 pos, size_t bytes) in ntfs_commit_pages_after_non_resident_write() argument
1417 end = pos + bytes; in ntfs_commit_pages_after_non_resident_write()
1555 const unsigned nr_pages, s64 pos, size_t bytes) in ntfs_commit_pages_after_write() argument
1579 (long long)pos, bytes); in ntfs_commit_pages_after_write()
1582 nr_pages, pos, bytes); in ntfs_commit_pages_after_write()
1620 end = pos + bytes; in ntfs_commit_pages_after_write()
1626 memcpy(kattr + pos, kaddr + pos, bytes); in ntfs_commit_pages_after_write()
[all …]
/linux-4.4.14/tools/perf/Documentation/
Dperf-kmem.txt40 Sort the output (default: 'frag,hit,bytes' for slab and 'bytes,hit'
41 for page). Available sort keys are 'ptr, callsite, bytes, hit,
42 pingpong, frag' for slab and 'page, callsite, bytes, hit, order,
/linux-4.4.14/drivers/mtd/tests/
Dtorturetest.c388 int bytes, bits, pages, first; in report_corrupt() local
395 bytes = bits = pages = 0; in report_corrupt()
397 if (countdiffs(written, read, i, pgsize, &bytes, in report_corrupt()
402 pages, bytes, bits); in report_corrupt()
408 bytes = bits = 0; in report_corrupt()
409 first = countdiffs(written, read, i, pgsize, &bytes, in report_corrupt()
420 bytes, bits, first); in report_corrupt()
423 len = ((first + bytes) | 0x7) + 1 - offset; in report_corrupt()
/linux-4.4.14/Documentation/filesystems/
Dromfs.txt11 defunct) filesystems, compiled as module need more than 20000 bytes,
12 while romfs is less than a page, about 4000 bytes (assuming i586
48 is 32 bytes (this is an empty file, with a less than 16 character
51 bytes. This is quite rare however, since most file names are longer
52 than 3 bytes, and shorter than 15 bytes.
60 +---+---+---+---+ The ASCII representation of those bytes
63 8 | full size | The number of accessible bytes in this fs.
76 The first eight bytes identify the filesystem, even for the casual
78 bytes accessible from the start of this filesystem. The 4th longword
79 is the checksum of the first 512 bytes (or the number of bytes
[all …]
/linux-4.4.14/Documentation/mtd/
Dnand_ecc.txt18 NAND flash (at least SLC one) typically has sectors of 256 bytes.
28 bytes. This is done by calculating several parity bits over the rows and
52 This figure represents a sector of 256 bytes.
66 rp0 is the parity of all even bytes (0, 2, 4, 6, ... 252, 254)
67 rp1 is the parity of all odd bytes (1, 3, 5, 7, ..., 253, 255)
68 rp2 is the parity of all bytes 0, 1, 4, 5, 8, 9, ...
69 (so handle two bytes, then skip 2 bytes).
70 rp3 is covers the half rp2 does not cover (bytes 2, 3, 6, 7, 10, 11, ...)
71 for rp4 the rule is cover 4 bytes, skip 4 bytes, cover 4 bytes, skip 4 etc.
72 so rp4 calculates parity over bytes 0, 1, 2, 3, 8, 9, 10, 11, 16, ...)
[all …]
/linux-4.4.14/drivers/media/i2c/
Dtvaudio.c72 unsigned char bytes[MAXREGS+1]; /* addr, data, data, ... */ member
164 chip->shadow.bytes[1] = val; in chip_write()
171 if (subaddr + 1 >= ARRAY_SIZE(chip->shadow.bytes)) { in chip_write()
180 chip->shadow.bytes[subaddr+1] = val; in chip_write()
199 val = (chip->shadow.bytes[1] & ~mask) | (val & mask); in chip_write_masked()
201 if (subaddr + 1 >= ARRAY_SIZE(chip->shadow.bytes)) { in chip_write_masked()
208 val = (chip->shadow.bytes[subaddr+1] & ~mask) | (val & mask); in chip_write_masked()
268 if (cmd->count + cmd->bytes[0] - 1 >= ARRAY_SIZE(chip->shadow.bytes)) { in chip_cmd()
271 cmd->bytes[0] + 1, cmd->bytes[0] + cmd->count - 1); in chip_cmd()
279 name, cmd->bytes[0]); in chip_cmd()
[all …]
/linux-4.4.14/arch/x86/tools/
Dtest_get_len.c64 indent, field->value, field->bytes[0], field->bytes[1], in dump_field()
65 field->bytes[2], field->bytes[3]); in dump_field()
/linux-4.4.14/arch/powerpc/sysdev/xics/
Dicp-native.c34 u8 bytes[4]; member
38 u8 bytes[4]; member
43 u8 bytes[4]; member
76 out_8(&icp_native_regs[cpu]->xirr.bytes[0], value); in icp_native_set_cppr()
81 out_8(&icp_native_regs[n_cpu]->qirr.bytes[0], value); in icp_native_set_qirr()
/linux-4.4.14/fs/ecryptfs/
Ddebug.c98 void ecryptfs_dump_hex(char *data, int bytes) in ecryptfs_dump_hex() argument
105 if (bytes != 0) { in ecryptfs_dump_hex()
109 while (i < bytes) { in ecryptfs_dump_hex()
/linux-4.4.14/tools/perf/bench/
Dnuma.c319 ssize_t bytes; in alloc_data() local
332 bytes = bytes0 + HPSIZE; in alloc_data()
334 buf = (void *)mmap(0, bytes, PROT_READ|PROT_WRITE, MAP_ANON|map_flags, -1, 0); in alloc_data()
339 ret = madvise(buf, bytes, MADV_HUGEPAGE); in alloc_data()
346 ret = madvise(buf, bytes, MADV_NOHUGEPAGE); in alloc_data()
355 bzero(buf, bytes); in alloc_data()
363 for (i = 0; i < bytes/8; i++) in alloc_data()
380 static void free_data(void *data, ssize_t bytes) in free_data() argument
387 ret = munmap(data, bytes); in free_data()
394 static void * zalloc_shared_data(ssize_t bytes) in zalloc_shared_data() argument
[all …]
/linux-4.4.14/mm/
Dpage_counter.c179 u64 bytes; in page_counter_memparse() local
186 bytes = memparse(buf, &end); in page_counter_memparse()
190 *nr_pages = min(bytes / PAGE_SIZE, (u64)PAGE_COUNTER_MAX); in page_counter_memparse()
Ddebug-pagealloc.c80 static void check_poison_mem(unsigned char *mem, size_t bytes) in check_poison_mem() argument
86 start = memchr_inv(mem, PAGE_POISON, bytes); in check_poison_mem()
90 for (end = mem + bytes - 1; end > start; end--) { in check_poison_mem()
Dprocess_vm_access.c99 size_t bytes; in process_vm_rw_single_vec() local
107 bytes = pages * PAGE_SIZE - start_offset; in process_vm_rw_single_vec()
108 if (bytes > len) in process_vm_rw_single_vec()
109 bytes = len; in process_vm_rw_single_vec()
112 start_offset, bytes, iter, in process_vm_rw_single_vec()
114 len -= bytes; in process_vm_rw_single_vec()
/linux-4.4.14/sound/firewire/
Diso-resources.c50 unsigned int bytes, s400_bytes; in packet_bandwidth() local
53 bytes = 3 * 4 + ALIGN(max_payload_bytes, 4); in packet_bandwidth()
57 s400_bytes = bytes * (1 << (SCODE_400 - speed)); in packet_bandwidth()
59 s400_bytes = DIV_ROUND_UP(bytes, 1 << (speed - SCODE_400)); in packet_bandwidth()
/linux-4.4.14/drivers/mtd/devices/
Dst_spi_fsm.c919 uint8_t *data, int bytes) in stfsm_read_status() argument
927 cmd, bytes); in stfsm_read_status()
929 BUG_ON(bytes != 1 && bytes != 2); in stfsm_read_status()
938 for (i = 0; i < bytes; i++) in stfsm_read_status()
947 uint16_t data, int bytes, int wait_busy) in stfsm_write_status() argument
953 " %s wait-busy\n", cmd, bytes, data, wait_busy ? "with" : "no"); in stfsm_write_status()
955 BUG_ON(bytes != 1 && bytes != 2); in stfsm_write_status()
961 seq->seq[2] = (bytes == 1) ? STFSM_INST_STA_WR1 : STFSM_INST_STA_WR1_2; in stfsm_write_status()
1678 uint32_t bytes; in stfsm_mtd_read() local
1686 bytes = min_t(size_t, len, FLASH_PAGESIZE); in stfsm_mtd_read()
[all …]
/linux-4.4.14/drivers/usb/serial/
Dezusb_convert.pl25 my(@bytes) = unpack("C*", pack("H".(2*$len), $reststring));
27 push(@records, [$addr, \@bytes]);
/linux-4.4.14/include/uapi/mtd/
Dubi-user.h321 __s64 bytes; member
341 __s64 bytes; member
406 __s32 bytes; member
/linux-4.4.14/Documentation/ABI/testing/
Dconfigfs-usb-gadget-uac29 c_ssize - capture sample size (bytes)
12 p_ssize - playback sample size (bytes)
Ddebugfs-pfo-nx-crypto29 - The total number of bytes encrypted using AES in any of the driver's
36 - The total number of bytes hashed by the hardware using SHA-256.
42 - The total number of bytes hashed by the hardware using SHA-512.
Dsysfs-block52 Number of bytes of integrity tag space available per
53 512 bytes of data.
67 Describes the number of data bytes which are protected
87 indicates how many bytes the beginning of the device is
98 indicates how many bytes the beginning of the partition
106 address. It is typically 512 bytes.
168 parameter indicates how many bytes the beginning of the
179 parameter indicates how many bytes the beginning of the
191 unit in bytes if reported by the device. Otherwise the
201 internal limits on the number of bytes that can be
[all …]
/linux-4.4.14/include/uapi/linux/
Dgen_stats.h23 __u64 bytes; member
27 __u64 bytes; member
/linux-4.4.14/arch/x86/kernel/kprobes/
Dopt.c196 return ((insn->opcode.bytes[0] == 0xff && in insn_is_indirect_jump()
198 insn->opcode.bytes[0] == 0xea); /* Segment based jump */ in insn_is_indirect_jump()
206 switch (insn->opcode.bytes[0]) { in insn_jump_into_range()
215 if ((insn->opcode.bytes[1] & 0xf0) == 0x80) /* jcc near */ in insn_jump_into_range()
219 if ((insn->opcode.bytes[0] & 0xf0) == 0x70) /* jcc short */ in insn_jump_into_range()
267 if (insn.opcode.bytes[0] == BREAKPOINT_INSTRUCTION) in can_optimize()
/linux-4.4.14/Documentation/devicetree/bindings/mtd/
Dgpmc-nand.txt112 so the device should have enough free bytes available its OOB/Spare
117 OOBSIZE number of bytes in OOB/spare area
118 PAGESIZE number of bytes in main-area of device page
119 ECC_BYTES number of ECC bytes generated to protect
120 512 bytes of data, which is:
128 Number of ECC bytes per page = (2 + (2048 / 512) * 26) = 106 B
135 Number of ECC bytes per page = (2 + (2048 / 512) * 26) = 106 B
/linux-4.4.14/include/linux/usb/
Dhcd.h612 #define HS_NSECS(bytes) (((55 * 8 * 2083) \ argument
613 + (2083UL * (3 + BitTime(bytes))))/1000 \
615 #define HS_NSECS_ISO(bytes) (((38 * 8 * 2083) \ argument
616 + (2083UL * (3 + BitTime(bytes))))/1000 \
618 #define HS_USECS(bytes) NS_TO_US(HS_NSECS(bytes)) argument
619 #define HS_USECS_ISO(bytes) NS_TO_US(HS_NSECS_ISO(bytes)) argument
/linux-4.4.14/sound/core/oss/
Dpcm_oss.c615 long bytes = frames_to_bytes(runtime, frames); in snd_pcm_oss_bytes() local
617 return bytes; in snd_pcm_oss_bytes()
619 return runtime->oss.buffer_bytes * bytes / buffer_size; in snd_pcm_oss_bytes()
622 u64 bsize = (u64)runtime->oss.buffer_bytes * (u64)bytes; in snd_pcm_oss_bytes()
628 static long snd_pcm_alsa_frames(struct snd_pcm_substream *substream, long bytes) in snd_pcm_alsa_frames() argument
633 return bytes_to_frames(runtime, bytes); in snd_pcm_alsa_frames()
634 return bytes_to_frames(runtime, (buffer_size * bytes) / runtime->oss.buffer_bytes); in snd_pcm_alsa_frames()
1329 …d_pcm_oss_write2(struct snd_pcm_substream *substream, const char *buf, size_t bytes, int in_kernel) in snd_pcm_oss_write2() argument
1338 if (copy_from_user(runtime->oss.buffer, (const char __force __user *)buf, bytes)) in snd_pcm_oss_write2()
1342 frames = bytes / oss_frame_bytes; in snd_pcm_oss_write2()
[all …]
/linux-4.4.14/drivers/staging/rtl8192u/ieee80211/
Dieee80211_tx.c606 int bytes, fc, qos_ctl = 0, hdr_len; in ieee80211_xmit() local
669 bytes = skb->len + SNAP_SIZE + sizeof(u16); in ieee80211_xmit()
738 nr_frags = bytes / bytes_per_frag; in ieee80211_xmit()
739 bytes_last_frag = bytes % bytes_per_frag; in ieee80211_xmit()
755 txb->payload_size = bytes; in ieee80211_xmit()
798 bytes = bytes_per_frag; in ieee80211_xmit()
802 bytes = bytes_last_frag; in ieee80211_xmit()
818 bytes -= SNAP_SIZE + sizeof(u16); in ieee80211_xmit()
821 memcpy(skb_put(skb_frag, bytes), skb->data, bytes); in ieee80211_xmit()
824 skb_pull(skb, bytes); in ieee80211_xmit()
/linux-4.4.14/fs/nilfs2/
Drecovery.c159 unsigned bytes = le16_to_cpu(sr->sr_bytes); in nilfs_read_super_root_block() local
161 if (bytes == 0 || bytes > nilfs->ns_blocksize) { in nilfs_read_super_root_block()
166 nilfs, bh_sr, &crc, sizeof(sr->sr_sum), bytes, in nilfs_read_super_root_block()
256 unsigned int *offset, unsigned int bytes) in nilfs_read_summary_info() argument
262 if (bytes > (*pbh)->b_size - *offset) { in nilfs_read_summary_info()
272 *offset += bytes; in nilfs_read_summary_info()
286 unsigned int *offset, unsigned int bytes, in nilfs_skip_summary_info() argument
290 = ((*pbh)->b_size - *offset) / bytes; in nilfs_skip_summary_info()
293 *offset += bytes * count; in nilfs_skip_summary_info()
296 unsigned int nitem_per_block = (*pbh)->b_size / bytes; in nilfs_skip_summary_info()
[all …]
/linux-4.4.14/drivers/char/
Drandom.c498 const char *bytes = in; in _mix_pool_bytes() local
512 w = rol32(*bytes++, input_rotate); in _mix_pool_bytes()
1001 int bytes = nbytes; in _xfer_secondary_pool() local
1004 bytes = max_t(int, bytes, random_read_wakeup_bits / 8); in _xfer_secondary_pool()
1006 bytes = min_t(int, bytes, sizeof(tmp)); in _xfer_secondary_pool()
1008 trace_xfer_secondary_pool(r->name, bytes * 8, nbytes * 8, in _xfer_secondary_pool()
1010 bytes = extract_entropy(r->pull, tmp, bytes, in _xfer_secondary_pool()
1012 mix_pool_bytes(r, tmp, bytes); in _xfer_secondary_pool()
1013 credit_entropy_bits(r, bytes*8); in _xfer_secondary_pool()
1493 size_t bytes; in write_pool() local
[all …]

12345678