Home
last modified time | relevance | path

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

12345678

/linux-4.1.27/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.1.27/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.1.27/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.c787 static void *check_bytes8(const u8 *start, u8 value, unsigned int bytes) in check_bytes8() argument
789 while (bytes) { in check_bytes8()
793 bytes--; in check_bytes8()
807 void *memchr_inv(const void *start, int c, size_t bytes) in memchr_inv() argument
813 if (bytes <= 16) in memchr_inv()
814 return check_bytes8(start, value, bytes); in memchr_inv()
837 bytes -= prefix; in memchr_inv()
840 words = bytes / 8; in memchr_inv()
849 return check_bytes8(start, value, bytes % 8); in memchr_inv()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/fs/btrfs/
Dfree-space-cache.c37 u64 bytes; member
520 static int io_ctl_add_entry(struct btrfs_io_ctl *io_ctl, u64 offset, u64 bytes, in io_ctl_add_entry() argument
530 entry->bytes = cpu_to_le64(bytes); in io_ctl_add_entry()
604 entry->bytes = le64_to_cpu(e->bytes); in io_ctl_read_entry()
654 if (prev->offset + prev->bytes == e->offset) { in merge_space_tree()
657 prev->bytes += e->bytes; in merge_space_tree()
762 if (!e->bytes) { in __load_free_space_cache()
938 ret = io_ctl_add_entry(io_ctl, e->offset, e->bytes, in write_cache_extent_entries()
968 trim_entry->bytes, NULL); in write_cache_extent_entries()
1417 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
106 u64 offset, u64 bytes, u64 empty_size,
110 u64 bytes);
114 u64 offset, u64 bytes, u64 empty_size);
117 struct btrfs_free_cluster *cluster, u64 bytes,
128 u64 offset, u64 bytes, bool bitmap);
130 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.1.27/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.1.27/drivers/gpu/drm/vmwgfx/
Dvmwgfx_fifo.c209 static bool vmw_fifo_is_full(struct vmw_private *dev_priv, uint32_t bytes) in vmw_fifo_is_full() argument
217 return ((max - next_cmd) + (stop - min) <= bytes); in vmw_fifo_is_full()
221 uint32_t bytes, bool interruptible, in vmw_fifo_wait_noirq() argument
234 if (!vmw_fifo_is_full(dev_priv, bytes)) in vmw_fifo_wait_noirq()
254 uint32_t bytes, bool interruptible, in vmw_fifo_wait() argument
260 if (likely(!vmw_fifo_is_full(dev_priv, bytes))) in vmw_fifo_wait()
265 return vmw_fifo_wait_noirq(dev_priv, bytes, in vmw_fifo_wait()
282 !vmw_fifo_is_full(dev_priv, bytes), timeout); in vmw_fifo_wait()
286 !vmw_fifo_is_full(dev_priv, bytes), timeout); in vmw_fifo_wait()
315 void *vmw_fifo_reserve(struct vmw_private *dev_priv, uint32_t bytes) in vmw_fifo_reserve() argument
[all …]
/linux-4.1.27/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.1.27/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.1.27/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()
653 rs->rs_user_bytes = iov->bytes; in rds_cmsg_rdma_args()
663 nr_bytes, nr, iov->bytes, iov->addr); in rds_cmsg_rdma_args()
665 nr_bytes += iov->bytes; in rds_cmsg_rdma_args()
673 min_t(unsigned int, iov->bytes, PAGE_SIZE - offset), in rds_cmsg_rdma_args()
677 sg->offset, sg->length, iov->addr, iov->bytes); in rds_cmsg_rdma_args()
680 iov->bytes -= sg->length; in rds_cmsg_rdma_args()
[all …]
/linux-4.1.27/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.1.27/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.c22 u64 bytes; member
33 priv->bytes += pkt->skb->len; in nft_counter_eval()
42 u64 bytes; in nft_counter_dump() local
47 bytes = priv->bytes; in nft_counter_dump()
51 if (nla_put_be64(skb, NFTA_COUNTER_BYTES, cpu_to_be64(bytes))) in nft_counter_dump()
75 priv->bytes = be64_to_cpu(nla_get_be64(tb[NFTA_COUNTER_BYTES])); in nft_counter_init()
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.c34 atomic64_t bytes; member
82 atomic64_set(&matching->bytes, 0); in nfnl_acct_new()
119 atomic64_set(&nfacct->bytes, in nfnl_acct_new()
138 u64 pkts, bytes; in nfnl_acct_fill_info() local
157 bytes = atomic64_xchg(&acct->bytes, 0); in nfnl_acct_fill_info()
163 bytes = atomic64_read(&acct->bytes); in nfnl_acct_fill_info()
166 nla_put_be64(skb, NFACCT_BYTES, cpu_to_be64(bytes)) || in nfnl_acct_fill_info()
433 atomic64_add(skb->len, &nfacct->bytes); in nfnl_acct_update()
468 atomic64_read(&nfacct->pkts) : atomic64_read(&nfacct->bytes); in nfnl_acct_overquota()
/linux-4.1.27/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.1.27/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.1.27/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 …]
/linux-4.1.27/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.1.27/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 unsigned long addr, void *val, unsigned int bytes,
132 unsigned long addr, void *val, unsigned int bytes,
142 unsigned long addr, void *val, unsigned int bytes,
154 unsigned int bytes,
169 unsigned int bytes,
219 unsigned int bytes; member
/linux-4.1.27/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.1.27/drivers/crypto/vmx/
Dghash.c52 int bytes; member
102 dctx->bytes = 0; in p8_ghash_init()
136 if (dctx->bytes) { in p8_ghash_update()
137 if (dctx->bytes + srclen < GHASH_DIGEST_SIZE) { in p8_ghash_update()
138 memcpy(dctx->buffer + dctx->bytes, src, srclen); in p8_ghash_update()
139 dctx->bytes += srclen; in p8_ghash_update()
142 memcpy(dctx->buffer + dctx->bytes, src, in p8_ghash_update()
143 GHASH_DIGEST_SIZE - dctx->bytes); in p8_ghash_update()
151 src += GHASH_DIGEST_SIZE - dctx->bytes; in p8_ghash_update()
152 srclen -= GHASH_DIGEST_SIZE - dctx->bytes; in p8_ghash_update()
[all …]
/linux-4.1.27/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.1.27/drivers/iommu/
Domap-iommu.h170 #define iopgsz_max(bytes) \ argument
171 (((bytes) >= SZ_16M) ? SZ_16M : \
172 ((bytes) >= SZ_1M) ? SZ_1M : \
173 ((bytes) >= SZ_64K) ? SZ_64K : \
174 ((bytes) >= SZ_4K) ? SZ_4K : 0)
176 #define bytes_to_iopgsz(bytes) \ argument
177 (((bytes) == SZ_16M) ? MMU_CAM_PGSZ_16M : \
178 ((bytes) == SZ_1M) ? MMU_CAM_PGSZ_1M : \
179 ((bytes) == SZ_64K) ? MMU_CAM_PGSZ_64K : \
180 ((bytes) == SZ_4K) ? MMU_CAM_PGSZ_4K : -1)
[all …]
Domap-iommu-debug.c37 ssize_t bytes; in debug_read_regs() local
49 bytes = omap_iommu_dump_ctx(obj, p, count); in debug_read_regs()
50 bytes = simple_read_from_buffer(userbuf, count, ppos, buf, bytes); in debug_read_regs()
55 return bytes; in debug_read_regs()
63 ssize_t bytes, rest; in debug_read_tlb() local
80 bytes = simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in debug_read_tlb()
85 return bytes; in debug_read_tlb()
Domap-iommu.c430 size_t bytes; in flush_iotlb_page() local
436 bytes = iopgsz_to_bytes(cr.cam & 3); in flush_iotlb_page()
438 if ((start <= da) && (da < start + bytes)) { in flush_iotlb_page()
440 __func__, start, da, bytes); in flush_iotlb_page()
475 ssize_t bytes; \
478 bytes = snprintf(p, maxcol, str, __stringify(name), \
480 p += bytes; \
481 len -= bytes; \
511 ssize_t omap_iommu_dump_ctx(struct omap_iommu *obj, char *buf, ssize_t bytes) in omap_iommu_dump_ctx() argument
518 bytes = omap2_iommu_dump_ctx(obj, buf, bytes); in omap_iommu_dump_ctx()
[all …]
/linux-4.1.27/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.1.27/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.1.27/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 …]
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()
Dneon.c34 size_t bytes, void **ptrs) \
40 (unsigned long)bytes, ptrs); \
/linux-4.1.27/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()
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()
/linux-4.1.27/arch/s390/crypto/
Dghash_s390.c26 u32 bytes; member
63 if (dctx->bytes) { in ghash_update()
64 u8 *pos = buf + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update()
66 n = min(srclen, dctx->bytes); in ghash_update()
67 dctx->bytes -= n; in ghash_update()
73 if (!dctx->bytes) { in ghash_update()
91 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update()
103 if (dctx->bytes) { in ghash_flush()
104 u8 *pos = buf + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_flush()
106 memset(pos, 0, dctx->bytes); in ghash_flush()
[all …]
/linux-4.1.27/sound/soc/intel/common/
Dsst-dsp.c59 u32 *src, size_t bytes) in _sst_memcpy_toio_32() argument
61 int i, words = bytes >> 2; in _sst_memcpy_toio_32()
68 const volatile __iomem u32 *src, size_t bytes) in _sst_memcpy_fromio_32() argument
70 int i, words = bytes >> 2; in _sst_memcpy_fromio_32()
77 void __iomem *dest, void *src, size_t bytes) in sst_memcpy_toio_32() argument
79 _sst_memcpy_toio_32(dest, src, bytes); in sst_memcpy_toio_32()
84 void __iomem *src, size_t bytes) in sst_memcpy_fromio_32() argument
86 _sst_memcpy_fromio_32(dest, src, bytes); in sst_memcpy_fromio_32()
300 void sst_dsp_outbox_write(struct sst_dsp *sst, void *message, size_t bytes) in sst_dsp_outbox_write() argument
304 trace_sst_ipc_outbox_write(bytes); in sst_dsp_outbox_write()
[all …]
Dsst-dsp.h250 void __iomem *dest, void *src, size_t bytes);
252 void *dest, void __iomem *src, size_t bytes);
276 void sst_dsp_inbox_write(struct sst_dsp *dsp, void *message, size_t bytes);
277 void sst_dsp_inbox_read(struct sst_dsp *dsp, void *message, size_t bytes);
278 void sst_dsp_outbox_write(struct sst_dsp *dsp, void *message, size_t bytes);
279 void sst_dsp_outbox_read(struct sst_dsp *dsp, void *message, size_t bytes);
280 void sst_dsp_mailbox_dump(struct sst_dsp *dsp, size_t bytes);
Dsst-dsp-priv.h51 size_t bytes);
53 size_t bytes);
306 u32 dest_offset, size_t bytes) in sst_dsp_write() argument
308 sst->ops->ram_write(sst, sst->addr.lpe + dest_offset, src, bytes); in sst_dsp_write()
312 u32 src_offset, size_t bytes) in sst_dsp_read() argument
314 sst->ops->ram_read(sst, dest, sst->addr.lpe + src_offset, bytes); in sst_dsp_read()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/drivers/acpi/acpica/
Dutmisc.c124 u8 bytes[4]; in acpi_ut_dword_byte_swap() member
128 u8 bytes[4]; in acpi_ut_dword_byte_swap() member
135 out.bytes[0] = in.bytes[3]; in acpi_ut_dword_byte_swap()
136 out.bytes[1] = in.bytes[2]; in acpi_ut_dword_byte_swap()
137 out.bytes[2] = in.bytes[1]; in acpi_ut_dword_byte_swap()
138 out.bytes[3] = in.bytes[0]; in acpi_ut_dword_byte_swap()
/linux-4.1.27/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.1.27/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()
56 bytes = channels[i].location + channels[i].bytes; in size_from_channelarray()
59 return bytes; in size_from_channelarray()
104 switch (channels[k].bytes) { in process_scan()
/linux-4.1.27/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.1.27/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.1.27/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.c503 u8 bytes[4]; in twl4030_sih_bus_sync_unlock() member
511 status = twl_i2c_write(sih->module, imr.bytes, in twl4030_sih_bus_sync_unlock()
521 u8 bytes[6]; in twl4030_sih_bus_sync_unlock() local
532 status = twl_i2c_read(sih->module, bytes, in twl4030_sih_bus_sync_unlock()
547 bytes[byte] &= ~(0x03 << off); in twl4030_sih_bus_sync_unlock()
551 bytes[byte] |= BIT(off + 1); in twl4030_sih_bus_sync_unlock()
553 bytes[byte] |= BIT(off + 0); in twl4030_sih_bus_sync_unlock()
559 status = twl_i2c_write(sih->module, bytes, in twl4030_sih_bus_sync_unlock()
585 u8 bytes[4]; in sih_read_isr() member
592 status = twl_i2c_read(sih->module, isr.bytes, in sih_read_isr()
/linux-4.1.27/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.1.27/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.1.27/drivers/misc/sgi-gru/
Dgrukdump.c81 int i, ret, bytes; in gru_dump_tfm() local
83 bytes = GRU_NUM_TFM * GRU_CACHE_LINE_BYTES; in gru_dump_tfm()
84 if (bytes > ubufend - ubuf) in gru_dump_tfm()
102 int i, ret, bytes; in gru_dump_tgh() local
104 bytes = GRU_NUM_TGH * GRU_CACHE_LINE_BYTES; in gru_dump_tgh()
105 if (bytes > ubufend - ubuf) in gru_dump_tgh()
127 int try, cch_locked, cbrcnt = 0, dsrcnt = 0, bytes = 0, ret = 0; in gru_dump_context() local
149 bytes = sizeof(hdr) + GRU_CACHE_LINE_BYTES; in gru_dump_context()
163 bytes += (3 * cbrcnt + dsrcnt) * GRU_CACHE_LINE_BYTES; in gru_dump_context()
164 if (bytes > ubufend - ubuf) in gru_dump_context()
[all …]
Dgrukservices.h75 void *p, unsigned int bytes, int nasid, int vector, int apicid);
95 void *mesg, unsigned int bytes);
161 unsigned int bytes);
Dgrukservices.c553 void *p, unsigned int bytes, int nasid, int vector, int apicid) in gru_create_message_queue() argument
558 qlines = bytes / GRU_CACHE_LINE_BYTES - 2; in gru_create_message_queue()
559 memset(mq, 0, bytes); in gru_create_message_queue()
798 unsigned int bytes) in gru_send_message_gpa() argument
806 BUG_ON(bytes < sizeof(int) || bytes > 2 * GRU_CACHE_LINE_BYTES); in gru_send_message_gpa()
808 clines = DIV_ROUND_UP(bytes, GRU_CACHE_LINE_BYTES); in gru_send_message_gpa()
809 if (gru_get_cpu_resources(bytes, &cb, &dsr)) in gru_send_message_gpa()
811 memcpy(dsr, mesg, bytes); in gru_send_message_gpa()
930 unsigned int bytes) in gru_copy_gpa() argument
940 XTYPE_B, bytes, GRU_NUM_KERNEL_DSR_CL, IMA); in gru_copy_gpa()
[all …]
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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 …]
Dmemset.S19 ! need the number of bytes up to the next 8 byte address
28 ! Preamble to LongLoop which generates 4*8 bytes per interation (5 cycles)
45 ! Preamble to LongishLoop which generates 1*8 bytes per interation (2 cycles)
59 ! This does a byte structured burst of up to 7 bytes
/linux-4.1.27/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.1.27/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.1.27/drivers/net/ethernet/intel/i40e/
Di40e_nvm.c466 u8 *bytes, int *errno);
469 u8 *bytes, int *errno);
472 u8 *bytes, int *errno);
481 u8 *bytes, int *errno);
484 u8 *bytes, int *errno);
521 u8 *bytes, int *errno) in i40e_nvmupd_command() argument
530 status = i40e_nvmupd_state_init(hw, cmd, bytes, errno); in i40e_nvmupd_command()
534 status = i40e_nvmupd_state_reading(hw, cmd, bytes, errno); in i40e_nvmupd_command()
538 status = i40e_nvmupd_state_writing(hw, cmd, bytes, errno); in i40e_nvmupd_command()
564 u8 *bytes, int *errno) in i40e_nvmupd_state_init() argument
[all …]
/linux-4.1.27/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.1.27/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.1.27/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.1.27/drivers/staging/unisys/visorchipset/
Dparser.c44 parser_init_guts(u64 addr, u32 bytes, BOOL local, in parser_init_guts() argument
47 int allocbytes = sizeof(struct parser_context) + bytes; in parser_init_guts()
60 if ((controlvm_payload_bytes_buffered + bytes) in parser_init_guts()
76 ctx->param_bytes = bytes; in parser_init_guts()
88 memcpy(ctx->data, p, bytes); in parser_init_guts()
90 rgn = visor_memregion_create(addr, bytes); in parser_init_guts()
95 if (visor_memregion_read(rgn, 0, ctx->data, bytes) < 0) { in parser_init_guts()
106 if (phdr->total_length != bytes) { in parser_init_guts()
138 parser_init(u64 addr, u32 bytes, BOOL local, BOOL *retry) in parser_init() argument
140 return parser_init_guts(addr, bytes, local, TRUE, retry); in parser_init()
[all …]
Dparser.h33 struct parser_context *parser_init(u64 addr, u32 bytes, BOOL isLocal,
35 struct parser_context *parser_init_byte_stream(u64 addr, u32 bytes, BOOL local,
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/arch/x86/crypto/
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.1.27/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.1.27/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.c1241 unsigned int stride, frames, bytes, oldptr; in retire_capture_urb() local
1259 bytes = urb->iso_frame_desc[i].actual_length; in retire_capture_urb()
1260 frames = bytes / stride; in retire_capture_urb()
1262 bytes = frames * stride; in retire_capture_urb()
1263 if (bytes % (runtime->sample_bits >> 3) != 0) { in retire_capture_urb()
1264 int oldbytes = bytes; in retire_capture_urb()
1265 bytes = frames * stride; in retire_capture_urb()
1268 oldbytes, bytes); in retire_capture_urb()
1273 subs->hwptr_done += bytes; in retire_capture_urb()
1276 frames = (bytes + (oldptr % stride)) / stride; in retire_capture_urb()
[all …]
/linux-4.1.27/fs/
Dstat.c449 void __inode_add_bytes(struct inode *inode, loff_t bytes) in __inode_add_bytes() argument
451 inode->i_blocks += bytes >> 9; in __inode_add_bytes()
452 bytes &= 511; in __inode_add_bytes()
453 inode->i_bytes += bytes; in __inode_add_bytes()
460 void inode_add_bytes(struct inode *inode, loff_t bytes) in inode_add_bytes() argument
463 __inode_add_bytes(inode, bytes); in inode_add_bytes()
469 void __inode_sub_bytes(struct inode *inode, loff_t bytes) in __inode_sub_bytes() argument
471 inode->i_blocks -= bytes >> 9; in __inode_sub_bytes()
472 bytes &= 511; in __inode_sub_bytes()
473 if (inode->i_bytes < bytes) { in __inode_sub_bytes()
[all …]
/linux-4.1.27/block/
Dbio.c926 void bio_advance(struct bio *bio, unsigned bytes) in bio_advance() argument
929 bio_integrity_advance(bio, bytes); in bio_advance()
931 bio_advance_iter(bio, &bio->bi_iter, bytes); in bio_advance()
980 unsigned bytes; in bio_copy_data() local
1005 bytes = min(src_bv.bv_len, dst_bv.bv_len); in bio_copy_data()
1012 bytes); in bio_copy_data()
1017 bio_advance_iter(src, &src_iter, bytes); in bio_copy_data()
1018 bio_advance_iter(dst, &dst_iter, bytes); in bio_copy_data()
1216 unsigned int bytes = PAGE_SIZE; in bio_copy_user_iov() local
1218 bytes -= offset; in bio_copy_user_iov()
[all …]
Dbio-integrity.c267 unsigned int bytes, offset, i; in bio_integrity_prep() local
308 bytes = PAGE_SIZE - offset; in bio_integrity_prep()
313 if (bytes > len) in bio_integrity_prep()
314 bytes = len; in bio_integrity_prep()
317 bytes, offset); in bio_integrity_prep()
322 if (ret < bytes) in bio_integrity_prep()
325 buf += bytes; in bio_integrity_prep()
326 len -= bytes; in bio_integrity_prep()
414 unsigned bytes = bio_integrity_bytes(bi, bytes_done >> 9); in bio_integrity_advance() local
416 bvec_iter_advance(bip->bip_vec, &bip->bip_iter, bytes); in bio_integrity_advance()
/linux-4.1.27/net/mac80211/
Dled.h58 ieee80211_tpt_led_trig_tx(struct ieee80211_local *local, __le16 fc, int bytes) in ieee80211_tpt_led_trig_tx() argument
62 local->tpt_led_trigger->tx_bytes += bytes; in ieee80211_tpt_led_trig_tx()
67 ieee80211_tpt_led_trig_rx(struct ieee80211_local *local, __le16 fc, int bytes) in ieee80211_tpt_led_trig_rx() argument
71 local->tpt_led_trigger->rx_bytes += bytes; in ieee80211_tpt_led_trig_rx()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/drivers/usb/gadget/
Dconfig.c128 unsigned bytes; in usb_copy_descriptors() local
134 for (bytes = 0, n_desc = 0, tmp = src; *tmp; tmp++, n_desc++) in usb_copy_descriptors()
135 bytes += (*tmp)->bLength; in usb_copy_descriptors()
136 bytes += (n_desc + 1) * sizeof(*tmp); in usb_copy_descriptors()
138 mem = kmalloc(bytes, GFP_KERNEL); in usb_copy_descriptors()
/linux-4.1.27/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.1.27/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 …]
Dnand_base.c1138 int eccbytes = chip->ecc.bytes; in nand_read_page_raw_syndrome()
1179 int eccbytes = chip->ecc.bytes; in nand_read_page_swecc()
1238 index = start_step * chip->ecc.bytes; in nand_read_subpage()
1242 eccfrag_len = num_steps * chip->ecc.bytes; in nand_read_subpage()
1253 for (i = 0; i < eccfrag_len ; i += chip->ecc.bytes, p += chip->ecc.size) in nand_read_subpage()
1278 if (eccpos[index + (num_steps * chip->ecc.bytes)] & (busw - 1)) in nand_read_subpage()
1290 for (i = 0; i < eccfrag_len ; i += chip->ecc.bytes, p += chip->ecc.size) { in nand_read_subpage()
1319 int eccbytes = chip->ecc.bytes; in nand_read_page_hwecc()
1372 int eccbytes = chip->ecc.bytes; in nand_read_page_hwecc_oob_first()
1421 int eccbytes = chip->ecc.bytes; in nand_read_page_syndrome()
[all …]
Dsunxi_nand.c549 offset = mtd->writesize + layout->eccpos[i * ecc->bytes] - 4; in sunxi_nfc_hw_ecc_read_page()
586 ecc->bytes + 4); in sunxi_nfc_hw_ecc_read_page()
636 offset = layout->eccpos[i * ecc->bytes] - 4 + mtd->writesize; in sunxi_nfc_hw_ecc_write_page()
723 chip->read_buf(mtd, oob, ecc->bytes + ecc->prepad); in sunxi_nfc_hw_syndrome_ecc_read_page()
724 oob += ecc->bytes + ecc->prepad; in sunxi_nfc_hw_syndrome_ecc_read_page()
727 offset += ecc->bytes + ecc->prepad; in sunxi_nfc_hw_syndrome_ecc_read_page()
782 offset += ecc->bytes + ecc->prepad; in sunxi_nfc_hw_syndrome_ecc_write_page()
783 oob += ecc->bytes + ecc->prepad; in sunxi_nfc_hw_syndrome_ecc_write_page()
949 ecc->bytes = DIV_ROUND_UP(ecc->strength * fls(8 * 1024), 8); in sunxi_nand_hw_common_ecc_ctrl_init()
952 ecc->bytes = ALIGN(ecc->bytes, 2); in sunxi_nand_hw_common_ecc_ctrl_init()
[all …]
/linux-4.1.27/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.1.27/include/linux/netfilter/ipset/
Dip_set.h97 u64 bytes; member
107 atomic64_t bytes; member
286 ip_set_add_bytes(u64 bytes, struct ip_set_counter *counter) in ip_set_add_bytes() argument
288 atomic64_add((long long)bytes, &(counter)->bytes); in ip_set_add_bytes()
300 return (u64)atomic64_read(&(counter)->bytes); in ip_set_get_bytes()
316 ip_set_add_bytes(ext->bytes, counter); in ip_set_update_counter()
321 mext->bytes = ip_set_get_bytes(counter); in ip_set_update_counter()
375 if (ext->bytes != ULLONG_MAX) in ip_set_init_counter()
376 atomic64_set(&(counter)->bytes, (long long)(ext->bytes)); in ip_set_init_counter()
561 { .bytes = (skb)->len, .packets = 1, \
[all …]
/linux-4.1.27/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
Dw1_ds28e0422 A read operation on the "eeprom" file reads the given amount of bytes
27 fully aligned blocks of 32 bytes with valid CRC16 values (in bytes 30
/linux-4.1.27/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.1.27/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.1.27/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.1.27/Documentation/ABI/testing/
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-pyra6 The data is 6 bytes long.
17 settings back to the mouse. The data has to be 13 bytes long.
32 buttons back to the mouse. The data has to be 19 bytes long.
44 The size of the data is 3 bytes and holds information on the
47 The data has to be 3 bytes long. The mouse will reject invalid
Dsysfs-driver-hid-roccat-koneplus17 The data is 8 bytes long.
27 included in written data. The data has to be 2082 bytes long.
38 buttons back to the mouse. The data has to be 77 bytes long.
54 settings back to the mouse. The data has to be 43 bytes long.
67 set. The data has to be 6 bytes long.
75 The data has to be 16 bytes long.
85 The data has to be 4 bytes long.
94 The returned data is 1028 bytes in size.
Dsysfs-driver-sunxi-sid6 and A20 CPU's. The earlier A1x series of SoCs exports 16 bytes,
7 whereas the newer A20 SoC exposes 512 bytes split into sections.
8 Besides the 16 bytes of SID, there's also an SJTAG area,
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.
80 indicates how many bytes the beginning of the device is
91 indicates how many bytes the beginning of the partition
99 address. It is typically 512 bytes.
161 parameter indicates how many bytes the beginning of the
172 parameter indicates how many bytes the beginning of the
184 unit in bytes if reported by the device. Otherwise the
194 internal limits on the number of bytes that can be
199 to the maximum number of bytes that can be discarded in
[all …]
/linux-4.1.27/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.1.27/fs/ocfs2/
Docfs2.h730 u64 bytes) in ocfs2_clusters_for_bytes() argument
735 bytes += OCFS2_SB(sb)->s_clustersize - 1; in ocfs2_clusters_for_bytes()
737 clusters = (unsigned int)(bytes >> cl_bits); in ocfs2_clusters_for_bytes()
743 u64 bytes) in ocfs2_bytes_to_clusters() argument
748 clusters = (unsigned int)(bytes >> cl_bits); in ocfs2_bytes_to_clusters()
753 u64 bytes) in ocfs2_blocks_for_bytes() argument
755 bytes += sb->s_blocksize - 1; in ocfs2_blocks_for_bytes()
756 return bytes >> sb->s_blocksize_bits; in ocfs2_blocks_for_bytes()
776 u64 bytes) in ocfs2_align_bytes_to_clusters() argument
781 clusters = ocfs2_clusters_for_bytes(sb, bytes); in ocfs2_align_bytes_to_clusters()
[all …]
/linux-4.1.27/fs/xfs/
Dxfs_sysfs.c169 int bytes; in reserve_grant_head_show() local
171 xlog_crack_grant_head(&log->l_reserve_head.grant, &cycle, &bytes); in reserve_grant_head_show()
172 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, bytes); in reserve_grant_head_show()
183 int bytes; in write_grant_head_show() local
185 xlog_crack_grant_head(&log->l_write_head.grant, &cycle, &bytes); in write_grant_head_show()
186 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, bytes); in write_grant_head_show()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/arch/x86/kernel/apic/
Dx2apic_uv_x.c497 unsigned long bytes, paddr; in map_high() local
500 bytes = (1UL << bshift) * (max_pnode + 1); in map_high()
505 pr_debug("UV: Map %s_HI 0x%lx - 0x%lx\n", id, paddr, paddr + bytes); in map_high()
507 init_extra_mapping_uc(paddr, bytes); in map_high()
509 init_extra_mapping_wb(paddr, bytes); in map_high()
516 unsigned long bytes; in map_gru_distributed() local
526 bytes = 1UL << UVH_RH_GAM_GRU_OVERLAY_CONFIG_MMR_BASE_SHFT; in map_gru_distributed()
527 gru_dist_lmask = ((1UL << uv_hub_info->m_val) - 1) & ~(bytes - 1); in map_gru_distributed()
533 init_extra_mapping_wb(paddr, bytes); in map_gru_distributed()
879 int bytes, nid, cpu, lcpu, pnode, blade, i, j, m_val, n_val; in uv_system_init() local
[all …]
/linux-4.1.27/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.1.27/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.1.27/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.1.27/drivers/dma/hsu/
Dhsu.c262 size_t bytes = 0; in hsu_dma_desc_size() local
266 bytes += desc->sg[i].len; in hsu_dma_desc_size()
268 return bytes; in hsu_dma_desc_size()
274 size_t bytes = hsu_dma_desc_size(desc); in hsu_dma_active_desc_size() local
281 bytes += hsu_chan_readl(hsuc, HSU_CH_DxTSR(i)); in hsu_dma_active_desc_size()
285 return bytes; in hsu_dma_active_desc_size()
294 size_t bytes; in hsu_dma_tx_status() local
304 bytes = hsu_dma_active_desc_size(hsuc); in hsu_dma_tx_status()
305 dma_set_residue(state, bytes); in hsu_dma_tx_status()
308 bytes = hsu_dma_desc_size(to_hsu_dma_desc(vdesc)); in hsu_dma_tx_status()
[all …]
/linux-4.1.27/drivers/misc/carma/
Dcarma-fpga-program.c77 size_t bytes; member
157 priv->bytes = 0; in fpga_drop_firmware_data()
488 fpga_set_byte_count(priv->regs, priv->bytes); in fpga_program_cpu()
489 dev_dbg(priv->dev, "total byte count %u bytes\n", priv->bytes); in fpga_program_cpu()
496 ret = fpga_program_block(priv, priv->vaddr, priv->bytes); in fpga_program_cpu()
546 num_pages = DIV_ROUND_UP(priv->bytes, FIFO_MAX_LEN); in fpga_program_dma()
564 avail = priv->bytes; in fpga_program_dma()
620 fpga_set_byte_count(priv->regs, priv->bytes); in fpga_program_dma()
621 dev_dbg(priv->dev, "total byte count %u bytes\n", priv->bytes); in fpga_program_dma()
699 if (priv->bytes != priv->fw_size) { in fpga_do_program()
[all …]
/linux-4.1.27/fs/ntfs/
Dfile.c584 unsigned nr_pages, s64 pos, size_t bytes) in ntfs_prepare_pages_for_non_resident_write() argument
621 (long long)pos, bytes); in ntfs_prepare_pages_for_non_resident_write()
646 end = pos + bytes; in ntfs_prepare_pages_for_non_resident_write()
1400 s64 pos, size_t bytes) in ntfs_commit_pages_after_non_resident_write() argument
1416 end = pos + bytes; in ntfs_commit_pages_after_non_resident_write()
1554 const unsigned nr_pages, s64 pos, size_t bytes) in ntfs_commit_pages_after_write() argument
1578 (long long)pos, bytes); in ntfs_commit_pages_after_write()
1581 nr_pages, pos, bytes); in ntfs_commit_pages_after_write()
1619 end = pos + bytes; in ntfs_commit_pages_after_write()
1625 memcpy(kattr + pos, kaddr + pos, bytes); in ntfs_commit_pages_after_write()
[all …]
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/tools/perf/bench/
Dnuma.c314 ssize_t bytes; in alloc_data() local
327 bytes = bytes0 + HPSIZE; in alloc_data()
329 buf = (void *)mmap(0, bytes, PROT_READ|PROT_WRITE, MAP_ANON|map_flags, -1, 0); in alloc_data()
334 ret = madvise(buf, bytes, MADV_HUGEPAGE); in alloc_data()
341 ret = madvise(buf, bytes, MADV_NOHUGEPAGE); in alloc_data()
350 bzero(buf, bytes); in alloc_data()
358 for (i = 0; i < bytes/8; i++) in alloc_data()
375 static void free_data(void *data, ssize_t bytes) in free_data() argument
382 ret = munmap(data, bytes); in free_data()
389 static void * zalloc_shared_data(ssize_t bytes) in zalloc_shared_data() argument
[all …]
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/drivers/usb/serial/
Dezusb_convert.pl25 my(@bytes) = unpack("C*", pack("H".(2*$len), $reststring));
27 push(@records, [$addr, \@bytes]);
/linux-4.1.27/include/uapi/mtd/
Dubi-user.h321 __s64 bytes; member
341 __s64 bytes; member
406 __s32 bytes; member
/linux-4.1.27/drivers/char/
Drandom.c495 const char *bytes = in; in _mix_pool_bytes() local
509 w = rol32(*bytes++, input_rotate); in _mix_pool_bytes()
981 int bytes = nbytes; in _xfer_secondary_pool() local
984 bytes = max_t(int, bytes, random_read_wakeup_bits / 8); in _xfer_secondary_pool()
986 bytes = min_t(int, bytes, sizeof(tmp)); in _xfer_secondary_pool()
988 trace_xfer_secondary_pool(r->name, bytes * 8, nbytes * 8, in _xfer_secondary_pool()
990 bytes = extract_entropy(r->pull, tmp, bytes, in _xfer_secondary_pool()
992 mix_pool_bytes(r, tmp, bytes); in _xfer_secondary_pool()
993 credit_entropy_bits(r, bytes*8); in _xfer_secondary_pool()
1415 size_t bytes; in write_pool() local
[all …]
/linux-4.1.27/include/uapi/linux/
Dgen_stats.h23 __u64 bytes; member
27 __u64 bytes; member
/linux-4.1.27/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.1.27/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.1.27/include/linux/usb/
Dhcd.h601 #define HS_NSECS(bytes) (((55 * 8 * 2083) \ argument
602 + (2083UL * (3 + BitTime(bytes))))/1000 \
604 #define HS_NSECS_ISO(bytes) (((38 * 8 * 2083) \ argument
605 + (2083UL * (3 + BitTime(bytes))))/1000 \
607 #define HS_USECS(bytes) NS_TO_US(HS_NSECS(bytes)) argument
608 #define HS_USECS_ISO(bytes) NS_TO_US(HS_NSECS_ISO(bytes)) argument
/linux-4.1.27/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.1.27/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.1.27/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.1.27/drivers/media/pci/mantis/
Dmantis_uart.c70 for (i = 0; i < (config->bytes + 1); i++) { in mantis_uart_read()
103 for (i = 0; i < (config->bytes + 1); i++) in mantis_uart_work()
166 mmwrite((mmread(MANTIS_UART_BAUD) | (config->bytes << 8)), MANTIS_UART_BAUD); in mantis_uart_init()
/linux-4.1.27/drivers/net/ethernet/ibm/emac/
DKconfig26 int "RX skb copy threshold (bytes)"
31 int "Additional RX skb headroom (bytes)"
36 will always reserve at least 2 bytes to make IP header
/linux-4.1.27/tools/usb/ffs-aio-example/simple/host_app/
Dtest.c171 int bytes; in main() local
173 &bytes, 500); in main()
175 &bytes, 500); in main()
/linux-4.1.27/Documentation/spi/
Dspi-sc18is60229 The maximum SPI message size supported by SC18IS602/603 is 200 bytes. Attempts
32 200 bytes per SPI message (128 bytes of data per message is recommended). This
/linux-4.1.27/Documentation/devicetree/bindings/net/
Dethernet.txt3 - local-mac-address: array of 6 bytes, specifies the MAC address that was
5 - mac-address: array of 6 bytes, specifies the MAC address that was last used by
22 - rx-fifo-depth: the size of the controller's receive fifo in bytes. This
26 - tx-fifo-depth: the size of the controller's transmit fifo in bytes. This
/linux-4.1.27/arch/mips/mm/
Dcache.c69 SYSCALL_DEFINE3(cacheflush, unsigned long, addr, unsigned long, bytes, in SYSCALL_DEFINE3() argument
72 if (bytes == 0) in SYSCALL_DEFINE3()
74 if (!access_ok(VERIFY_WRITE, (void __user *) addr, bytes)) in SYSCALL_DEFINE3()
77 flush_icache_range(addr, addr + bytes); in SYSCALL_DEFINE3()
/linux-4.1.27/arch/arc/include/asm/
Darcregs.h187 #define TO_KB(bytes) ((bytes) >> 10) argument
188 #define TO_MB(bytes) (TO_KB(bytes) >> 10) argument
/linux-4.1.27/net/irda/
Dwrapper.c91 __u8 bytes[2]; in async_wrap_skb() member
149 n += stuff_byte(fcs.bytes[0], tx_buff+n); in async_wrap_skb()
150 n += stuff_byte(fcs.bytes[1], tx_buff+n); in async_wrap_skb()
152 n += stuff_byte(fcs.bytes[1], tx_buff+n); in async_wrap_skb()
153 n += stuff_byte(fcs.bytes[0], tx_buff+n); in async_wrap_skb()

12345678