Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 475) sorted by relevance

12345678910>>...19

/drivers/gpu/drm/vmwgfx/
Dvmwgfx_fifo.c206 static bool vmw_fifo_is_full(struct vmw_private *dev_priv, uint32_t bytes) in vmw_fifo_is_full() argument
214 return ((max - next_cmd) + (stop - min) <= bytes); in vmw_fifo_is_full()
218 uint32_t bytes, bool interruptible, in vmw_fifo_wait_noirq() argument
231 if (!vmw_fifo_is_full(dev_priv, bytes)) in vmw_fifo_wait_noirq()
251 uint32_t bytes, bool interruptible, in vmw_fifo_wait() argument
256 if (likely(!vmw_fifo_is_full(dev_priv, bytes))) in vmw_fifo_wait()
261 return vmw_fifo_wait_noirq(dev_priv, bytes, in vmw_fifo_wait()
270 !vmw_fifo_is_full(dev_priv, bytes), timeout); in vmw_fifo_wait()
274 !vmw_fifo_is_full(dev_priv, bytes), timeout); in vmw_fifo_wait()
298 uint32_t bytes) in vmw_local_fifo_reserve() argument
[all …]
/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 …]
/drivers/media/pci/cobalt/
Dcobalt-omnitek.c184 unsigned bytes; in descriptor_list_create() local
205 bytes = min(sg_dma_len(scatter_list) - offset, in descriptor_list_create()
215 d->bytes = (bytes / 2) & ~3; in descriptor_list_create()
217 size -= d->bytes; in descriptor_list_create()
218 copied += d->bytes; in descriptor_list_create()
219 offset += d->bytes; in descriptor_list_create()
220 addr += d->bytes; in descriptor_list_create()
225 bytes -= d->bytes; in descriptor_list_create()
240 d->bytes = bytes; in descriptor_list_create()
242 size -= bytes; in descriptor_list_create()
[all …]
/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 …]
/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 …]
/drivers/gpu/drm/msm/
Dmsm_iommu.c63 size_t bytes = sg->length + sg->offset; in msm_iommu_map() local
65 VERB("map[%d]: %08x %08lx(%zx)", i, da, (unsigned long)pa, bytes); in msm_iommu_map()
67 ret = iommu_map(domain, da, pa, bytes, prot); in msm_iommu_map()
71 da += bytes; in msm_iommu_map()
80 size_t bytes = sg->length + sg->offset; in msm_iommu_map() local
81 iommu_unmap(domain, da, bytes); in msm_iommu_map()
82 da += bytes; in msm_iommu_map()
97 size_t bytes = sg->length + sg->offset; in msm_iommu_unmap() local
100 unmapped = iommu_unmap(domain, da, bytes); in msm_iommu_unmap()
101 if (unmapped < bytes) in msm_iommu_unmap()
[all …]
/drivers/crypto/vmx/
Dghash.c49 int bytes; member
104 dctx->bytes = 0; in p8_ghash_init()
140 if (dctx->bytes) { in p8_ghash_update()
141 if (dctx->bytes + srclen < GHASH_DIGEST_SIZE) { in p8_ghash_update()
142 memcpy(dctx->buffer + dctx->bytes, src, in p8_ghash_update()
144 dctx->bytes += srclen; in p8_ghash_update()
147 memcpy(dctx->buffer + dctx->bytes, src, in p8_ghash_update()
148 GHASH_DIGEST_SIZE - dctx->bytes); in p8_ghash_update()
157 src += GHASH_DIGEST_SIZE - dctx->bytes; in p8_ghash_update()
158 srclen -= GHASH_DIGEST_SIZE - dctx->bytes; in p8_ghash_update()
[all …]
/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()
/drivers/iommu/
Domap-iommu.h174 #define iopgsz_max(bytes) \ argument
175 (((bytes) >= SZ_16M) ? SZ_16M : \
176 ((bytes) >= SZ_1M) ? SZ_1M : \
177 ((bytes) >= SZ_64K) ? SZ_64K : \
178 ((bytes) >= SZ_4K) ? SZ_4K : 0)
180 #define bytes_to_iopgsz(bytes) \ argument
181 (((bytes) == SZ_16M) ? MMU_CAM_PGSZ_16M : \
182 ((bytes) == SZ_1M) ? MMU_CAM_PGSZ_1M : \
183 ((bytes) == SZ_64K) ? MMU_CAM_PGSZ_64K : \
184 ((bytes) == SZ_4K) ? MMU_CAM_PGSZ_4K : -1)
[all …]
Domap-iommu-debug.c35 ssize_t bytes; \
38 bytes = snprintf(p, maxcol, str, __stringify(name), \
40 p += bytes; \
41 len -= bytes; \
72 ssize_t bytes) in omap_iommu_dump_ctx() argument
79 bytes = omap2_iommu_dump_ctx(obj, buf, bytes); in omap_iommu_dump_ctx()
83 return bytes; in omap_iommu_dump_ctx()
91 ssize_t bytes; in debug_read_regs() local
103 bytes = omap_iommu_dump_ctx(obj, p, count); in debug_read_regs()
104 bytes = simple_read_from_buffer(userbuf, count, ppos, buf, bytes); in debug_read_regs()
[all …]
/drivers/infiniband/sw/rxe/
Drxe_mr.c351 int bytes; in rxe_mem_copy() local
397 bytes = buf->size - offset; in rxe_mem_copy()
399 if (bytes > length) in rxe_mem_copy()
400 bytes = length; in rxe_mem_copy()
403 crc = crc32_le(crc, src, bytes); in rxe_mem_copy()
405 memcpy(dest, src, bytes); in rxe_mem_copy()
407 length -= bytes; in rxe_mem_copy()
408 addr += bytes; in rxe_mem_copy()
443 int bytes; in copy_data() local
468 bytes = length; in copy_data()
[all …]
/drivers/staging/most/aim-sound/
Dsound.c62 void (*copy_fn)(void *alsa, void *most, unsigned int bytes);
81 static void swap_copy16(u16 *dest, const u16 *source, unsigned int bytes) in swap_copy16() argument
85 while (i < (bytes / 2)) { in swap_copy16()
91 static void swap_copy24(u8 *dest, const u8 *source, unsigned int bytes) in swap_copy24() argument
95 while (i < bytes - 2) { in swap_copy24()
103 static void swap_copy32(u32 *dest, const u32 *source, unsigned int bytes) in swap_copy32() argument
107 while (i < bytes / 4) { in swap_copy32()
113 static void alsa_to_most_memcpy(void *alsa, void *most, unsigned int bytes) in alsa_to_most_memcpy() argument
115 memcpy(most, alsa, bytes); in alsa_to_most_memcpy()
118 static void alsa_to_most_copy16(void *alsa, void *most, unsigned int bytes) in alsa_to_most_copy16() argument
[all …]
/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()
176 bytes = AUX_SW_REPLY_GET_BYTE_COUNT(tmp); in radeon_dp_aux_transfer_native()
177 if (bytes) { in radeon_dp_aux_transfer_native()
184 for (i = 0; i < bytes - 1; i++) { in radeon_dp_aux_transfer_native()
[all …]
/drivers/acpi/acpica/
Dutmisc.c125 u8 bytes[4]; in acpi_ut_dword_byte_swap() member
129 u8 bytes[4]; in acpi_ut_dword_byte_swap() member
136 out.bytes[0] = in.bytes[3]; in acpi_ut_dword_byte_swap()
137 out.bytes[1] = in.bytes[2]; in acpi_ut_dword_byte_swap()
138 out.bytes[2] = in.bytes[1]; in acpi_ut_dword_byte_swap()
139 out.bytes[3] = in.bytes[0]; in acpi_ut_dword_byte_swap()
/drivers/net/ethernet/intel/i40e/
Di40e_nvm.c621 u8 *bytes, int *perrno);
624 u8 *bytes, int *perrno);
627 u8 *bytes, int *errno);
636 u8 *bytes, int *perrno);
639 u8 *bytes, int *perrno);
642 u8 *bytes, int *perrno);
645 u8 *bytes, int *perrno);
685 u8 *bytes, int *perrno) in i40e_nvmupd_command() argument
718 bytes[0] = hw->nvmupd_state; in i40e_nvmupd_command()
721 bytes[1] = 0; in i40e_nvmupd_command()
[all …]
/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()
/drivers/mfd/
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()
/drivers/s390/char/
Dzcore.c68 unsigned long offset, bytes; in memcpy_hsa_user() local
79 bytes = min(PAGE_SIZE - offset, count); in memcpy_hsa_user()
80 if (copy_to_user(dest, hsa_buf + offset, bytes)) in memcpy_hsa_user()
82 src += bytes; in memcpy_hsa_user()
83 dest += bytes; in memcpy_hsa_user()
84 count -= bytes; in memcpy_hsa_user()
98 unsigned long offset, bytes; in memcpy_hsa_kernel() local
109 bytes = min(PAGE_SIZE - offset, count); in memcpy_hsa_kernel()
110 memcpy(dest, hsa_buf + offset, bytes); in memcpy_hsa_kernel()
111 src += bytes; in memcpy_hsa_kernel()
[all …]
/drivers/net/wireless/intel/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 …]
/drivers/lguest/
Dcore.c212 void __lgread(struct lg_cpu *cpu, void *b, unsigned long addr, unsigned bytes) in __lgread() argument
214 if (!lguest_address_ok(cpu->lg, addr, bytes) in __lgread()
215 || copy_from_user(b, cpu->lg->mem_base + addr, bytes) != 0) { in __lgread()
217 memset(b, 0, bytes); in __lgread()
218 kill_guest(cpu, "bad read address %#lx len %u", addr, bytes); in __lgread()
224 unsigned bytes) in __lgwrite() argument
226 if (!lguest_address_ok(cpu->lg, addr, bytes) in __lgwrite()
227 || copy_to_user(cpu->lg->mem_base + addr, b, bytes) != 0) in __lgwrite()
228 kill_guest(cpu, "bad write address %#lx len %u", addr, bytes); in __lgwrite()
/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()
/drivers/nvmem/
Dcore.c52 int bytes; member
71 void *val, size_t bytes) in nvmem_reg_read() argument
74 return nvmem->reg_read(nvmem->priv, offset, val, bytes); in nvmem_reg_read()
80 void *val, size_t bytes) in nvmem_reg_write() argument
83 return nvmem->reg_write(nvmem->priv, offset, val, bytes); in nvmem_reg_write()
330 cell->bytes = info->bytes; in nvmem_cell_info_to_nvmem_cell()
337 cell->bytes = DIV_ROUND_UP(cell->nbits + cell->bit_offset, in nvmem_cell_info_to_nvmem_cell()
797 cell->bytes = be32_to_cpup(addr); in of_nvmem_cell_get()
807 cell->bytes = DIV_ROUND_UP(cell->nbits + cell->bit_offset, in of_nvmem_cell_get()
945 for (i = 1; i < cell->bytes; i++) { in nvmem_shift_read_buffer_in_place()
[all …]
/drivers/gpu/drm/etnaviv/
Detnaviv_mmu.c45 size_t bytes = sg_dma_len(sg) + sg->offset; in etnaviv_iommu_map() local
47 VERB("map[%d]: %08x %08x(%zx)", i, iova, pa, bytes); in etnaviv_iommu_map()
49 ret = iommu_map(domain, da, pa, bytes, prot); in etnaviv_iommu_map()
53 da += bytes; in etnaviv_iommu_map()
62 size_t bytes = sg_dma_len(sg) + sg->offset; in etnaviv_iommu_map() local
64 iommu_unmap(domain, da, bytes); in etnaviv_iommu_map()
65 da += bytes; in etnaviv_iommu_map()
79 size_t bytes = sg_dma_len(sg) + sg->offset; in etnaviv_iommu_unmap() local
82 unmapped = iommu_unmap(domain, da, bytes); in etnaviv_iommu_unmap()
83 if (unmapped < bytes) in etnaviv_iommu_unmap()
[all …]
/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()
155 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 …]
/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()

12345678910>>...19