Home
last modified time | relevance | path

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

12345678910>>...30

/drivers/gpu/drm/vmwgfx/
Dvmwgfx_cmd.c186 static bool vmw_fifo_is_full(struct vmw_private *dev_priv, uint32_t bytes) in vmw_fifo_is_full() argument
193 return ((max - next_cmd) + (stop - min) <= bytes); in vmw_fifo_is_full()
197 uint32_t bytes, bool interruptible, in vmw_fifo_wait_noirq() argument
210 if (!vmw_fifo_is_full(dev_priv, bytes)) in vmw_fifo_wait_noirq()
230 uint32_t bytes, bool interruptible, in vmw_fifo_wait() argument
235 if (likely(!vmw_fifo_is_full(dev_priv, bytes))) in vmw_fifo_wait()
240 return vmw_fifo_wait_noirq(dev_priv, bytes, in vmw_fifo_wait()
249 !vmw_fifo_is_full(dev_priv, bytes), timeout); in vmw_fifo_wait()
253 !vmw_fifo_is_full(dev_priv, bytes), timeout); in vmw_fifo_wait()
277 uint32_t bytes) in vmw_local_fifo_reserve() argument
[all …]
/drivers/gpu/drm/i915/gvt/
Dmmio.c61 void *p_data, unsigned int bytes, bool read) in failsafe_emulate_mmio_rw() argument
76 bytes); in failsafe_emulate_mmio_rw()
79 bytes); in failsafe_emulate_mmio_rw()
84 memcpy(p_data, pt, bytes); in failsafe_emulate_mmio_rw()
86 memcpy(pt, p_data, bytes); in failsafe_emulate_mmio_rw()
103 void *p_data, unsigned int bytes) in intel_vgpu_emulate_mmio_read() argument
111 failsafe_emulate_mmio_rw(vgpu, pa, p_data, bytes, true); in intel_vgpu_emulate_mmio_read()
118 if (drm_WARN_ON(&i915->drm, bytes > 8)) in intel_vgpu_emulate_mmio_read()
125 if (drm_WARN_ON(&i915->drm, bytes != 4 && bytes != 8)) in intel_vgpu_emulate_mmio_read()
128 !reg_is_gtt(gvt, offset + bytes - 1))) in intel_vgpu_emulate_mmio_read()
[all …]
Dcfg_space.c69 u8 *src, unsigned int bytes) in vgpu_pci_cfg_mem_write() argument
76 for (; i < bytes && (off + i < sizeof(pci_cfg_space_rw_bmp)); i++) { in vgpu_pci_cfg_mem_write()
93 if (i < bytes) in vgpu_pci_cfg_mem_write()
94 memcpy(cfg_base + off + i, src + i, bytes - i); in vgpu_pci_cfg_mem_write()
117 void *p_data, unsigned int bytes) in intel_vgpu_emulate_cfg_read() argument
121 if (drm_WARN_ON(&i915->drm, bytes > 4)) in intel_vgpu_emulate_cfg_read()
125 offset + bytes > vgpu->gvt->device_info.cfg_space_size)) in intel_vgpu_emulate_cfg_read()
128 memcpy(p_data, vgpu_cfg_space(vgpu) + offset, bytes); in intel_vgpu_emulate_cfg_read()
189 unsigned int offset, void *p_data, unsigned int bytes) in emulate_pci_command_write() argument
196 vgpu_pci_cfg_mem_write(vgpu, offset, p_data, bytes); in emulate_pci_command_write()
[all …]
Dedid.c136 unsigned int offset, void *p_data, unsigned int bytes) in gmbus0_mmio_write() argument
141 memcpy(&vgpu_vreg(vgpu, offset), p_data, bytes); in gmbus0_mmio_write()
176 void *p_data, unsigned int bytes) in gmbus1_mmio_write() argument
277 void *p_data, unsigned int bytes) in gmbus3_mmio_write() argument
286 void *p_data, unsigned int bytes) in gmbus3_mmio_read() argument
299 memcpy(p_data, &vgpu_vreg(vgpu, offset), bytes); in gmbus3_mmio_read()
311 memcpy(p_data, &vgpu_vreg(vgpu, offset), bytes); in gmbus3_mmio_read()
332 memcpy(p_data, &vgpu_vreg(vgpu, offset), bytes); in gmbus3_mmio_read()
339 void *p_data, unsigned int bytes) in gmbus2_mmio_read() argument
345 memcpy(p_data, (void *)&value, bytes); in gmbus2_mmio_read()
[all …]
/drivers/staging/media/atomisp/pci/hmm/
Dhmm.c224 ia_css_ptr hmm_alloc(size_t bytes, enum hmm_bo_type type, in hmm_alloc() argument
243 pgnr = size_to_pgnr_ceil(bytes); in hmm_alloc()
269 hmm_set(bo->start, 0, bytes); in hmm_alloc()
273 __func__, bo->start, bytes, type, from_highmem, userptr, cached); in hmm_alloc()
336 unsigned int bytes) in load_and_flush_by_kmap() argument
349 while (bytes) { in load_and_flush_by_kmap()
355 if ((bytes + offset) >= PAGE_SIZE) { in load_and_flush_by_kmap()
357 bytes -= len; in load_and_flush_by_kmap()
359 len = bytes; in load_and_flush_by_kmap()
360 bytes = 0; in load_and_flush_by_kmap()
[all …]
/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth_sysfs.c62 ssize_t bytes = 0; in dpaa_eth_show_fqids() local
96 bytes += sprintf(buf + bytes, in dpaa_eth_show_fqids()
99 bytes += sprintf(buf + bytes, in dpaa_eth_show_fqids()
119 bytes += sprintf(buf + bytes, "%s: %d\n", prevstr, in dpaa_eth_show_fqids()
122 bytes += sprintf(buf + bytes, "%s: %d - %d\n", prevstr, in dpaa_eth_show_fqids()
126 return bytes; in dpaa_eth_show_fqids()
133 ssize_t bytes = 0; in dpaa_eth_show_bpids() local
135 bytes += snprintf(buf + bytes, PAGE_SIZE - bytes, "%u\n", in dpaa_eth_show_bpids()
138 return bytes; in dpaa_eth_show_bpids()
/drivers/rtc/
Drtc-dm355evm.c29 u8 bytes[4]; member
48 if (tries && time.bytes[0] == status) in dm355evm_rtc_read_time()
50 time.bytes[0] = status; in dm355evm_rtc_read_time()
55 if (tries && time.bytes[1] == status) in dm355evm_rtc_read_time()
57 time.bytes[1] = status; in dm355evm_rtc_read_time()
62 if (tries && time.bytes[2] == status) in dm355evm_rtc_read_time()
64 time.bytes[2] = status; in dm355evm_rtc_read_time()
69 if (tries && time.bytes[3] == status) in dm355evm_rtc_read_time()
71 time.bytes[3] = status; in dm355evm_rtc_read_time()
96 status = dm355evm_msp_write(time.bytes[0], DM355EVM_MSP_RTC_0); in dm355evm_rtc_set_time()
[all …]
/drivers/media/pci/cobalt/
Dcobalt-omnitek.c172 unsigned bytes; in descriptor_list_create() local
193 bytes = min(sg_dma_len(scatter_list) - offset, in descriptor_list_create()
203 d->bytes = (bytes / 2) & ~3; in descriptor_list_create()
205 size -= d->bytes; in descriptor_list_create()
206 copied += d->bytes; in descriptor_list_create()
207 offset += d->bytes; in descriptor_list_create()
208 addr += d->bytes; in descriptor_list_create()
213 bytes -= d->bytes; in descriptor_list_create()
228 d->bytes = bytes; in descriptor_list_create()
230 size -= bytes; in descriptor_list_create()
[all …]
/drivers/ps3/
Dps3-vuart.c352 const void *buf, unsigned int bytes, u64 *bytes_written) in ps3_vuart_raw_write() argument
358 ps3_mm_phys_to_lpar(__pa(buf)), bytes, bytes_written); in ps3_vuart_raw_write()
369 *bytes_written, bytes, priv->stats.bytes_written); in ps3_vuart_raw_write()
382 unsigned int bytes, u64 *bytes_read) in ps3_vuart_raw_read() argument
387 dev_dbg(&dev->core, "%s:%d: %xh\n", __func__, __LINE__, bytes); in ps3_vuart_raw_read()
390 ps3_mm_phys_to_lpar(__pa(buf)), bytes, bytes_read); in ps3_vuart_raw_read()
401 *bytes_read, bytes, priv->stats.bytes_read); in ps3_vuart_raw_read()
415 unsigned int bytes) in ps3_vuart_clear_rx_bytes() argument
426 bytes = bytes ? min(bytes, (unsigned int)bytes_waiting) : bytes_waiting; in ps3_vuart_clear_rx_bytes()
428 dev_dbg(&dev->core, "%s:%d: %u\n", __func__, __LINE__, bytes); in ps3_vuart_clear_rx_bytes()
[all …]
/drivers/crypto/vmx/
Dghash.c42 int bytes; member
49 dctx->bytes = 0; in p8_ghash_init()
123 if (dctx->bytes) { in p8_ghash_update()
124 if (dctx->bytes + srclen < GHASH_DIGEST_SIZE) { in p8_ghash_update()
125 memcpy(dctx->buffer + dctx->bytes, src, in p8_ghash_update()
127 dctx->bytes += srclen; in p8_ghash_update()
130 memcpy(dctx->buffer + dctx->bytes, src, in p8_ghash_update()
131 GHASH_DIGEST_SIZE - dctx->bytes); in p8_ghash_update()
135 src += GHASH_DIGEST_SIZE - dctx->bytes; in p8_ghash_update()
136 srclen -= GHASH_DIGEST_SIZE - dctx->bytes; in p8_ghash_update()
[all …]
/drivers/media/usb/hdpvr/
Dhdpvr-core.c69 static void challenge(u8 *bytes) in challenge() argument
78 bytes[(idx >> 3) + 3] = bytes[(idx >> 2) & 0x3]; in challenge()
82 bytes[2] += bytes[3] * 4 + bytes[4] + bytes[5]; in challenge()
83 bytes[4] += bytes[(idx & 0x1) * 2] * 9 + 9; in challenge()
86 bytes[0] *= 8; in challenge()
87 bytes[0] += 7*idx + 4; in challenge()
88 bytes[6] += bytes[3] * 3; in challenge()
91 bytes[3 - (idx >> 3)] = bytes[idx >> 2]; in challenge()
92 bytes[5] += bytes[6] * 3; in challenge()
94 bytes[3] *= bytes[3] + 1; in challenge()
[all …]
/drivers/vdpa/vdpa_sim/
Dvdpa_sim_blk.c66 ssize_t bytes; in vdpasim_blk_handle_req() local
96 bytes = vringh_iov_pull_iotlb(&vq->vring, &vq->out_iov, &hdr, in vdpasim_blk_handle_req()
98 if (bytes != sizeof(hdr)) { in vdpasim_blk_handle_req()
103 to_pull -= bytes; in vdpasim_blk_handle_req()
120 bytes = vringh_iov_push_iotlb(&vq->vring, &vq->in_iov, in vdpasim_blk_handle_req()
123 if (bytes < 0) { in vdpasim_blk_handle_req()
126 bytes, offset, to_push); in vdpasim_blk_handle_req()
131 pushed += bytes; in vdpasim_blk_handle_req()
143 bytes = vringh_iov_pull_iotlb(&vq->vring, &vq->out_iov, in vdpasim_blk_handle_req()
146 if (bytes < 0) { in vdpasim_blk_handle_req()
[all …]
/drivers/scsi/lpfc/
Dlpfc_compat.h40 lpfc_memcpy_to_slim(void __iomem *dest, void *src, unsigned int bytes) in lpfc_memcpy_to_slim() argument
51 for (four_bytes = bytes /4; four_bytes > 0; four_bytes--) { in lpfc_memcpy_to_slim()
62 lpfc_memcpy_from_slim( void *dest, void __iomem *src, unsigned int bytes) in lpfc_memcpy_from_slim() argument
73 for (four_bytes = bytes /4; four_bytes > 0; four_bytes--) { in lpfc_memcpy_from_slim()
85 lpfc_memcpy_to_slim( void __iomem *dest, void *src, unsigned int bytes) in lpfc_memcpy_to_slim() argument
88 __iowrite32_copy(dest, src, bytes / sizeof(uint32_t)); in lpfc_memcpy_to_slim()
92 lpfc_memcpy_from_slim( void *dest, void __iomem *src, unsigned int bytes) in lpfc_memcpy_from_slim() argument
95 memcpy_fromio( dest, src, bytes); in lpfc_memcpy_from_slim()
/drivers/most/
Dmost_snd.c55 void (*copy_fn)(void *alsa, void *most, unsigned int bytes);
75 static void swap_copy16(u16 *dest, const u16 *source, unsigned int bytes) in swap_copy16() argument
79 while (i < (bytes / 2)) { in swap_copy16()
85 static void swap_copy24(u8 *dest, const u8 *source, unsigned int bytes) in swap_copy24() argument
89 if (bytes < 2) in swap_copy24()
91 while (i < bytes - 2) { in swap_copy24()
99 static void swap_copy32(u32 *dest, const u32 *source, unsigned int bytes) in swap_copy32() argument
103 while (i < bytes / 4) { in swap_copy32()
109 static void alsa_to_most_memcpy(void *alsa, void *most, unsigned int bytes) in alsa_to_most_memcpy() argument
111 memcpy(most, alsa, bytes); in alsa_to_most_memcpy()
[all …]
/drivers/iommu/
Domap-iommu.h211 #define iopgsz_max(bytes) \ argument
212 (((bytes) >= SZ_16M) ? SZ_16M : \
213 ((bytes) >= SZ_1M) ? SZ_1M : \
214 ((bytes) >= SZ_64K) ? SZ_64K : \
215 ((bytes) >= SZ_4K) ? SZ_4K : 0)
217 #define bytes_to_iopgsz(bytes) \ argument
218 (((bytes) == SZ_16M) ? MMU_CAM_PGSZ_16M : \
219 ((bytes) == SZ_1M) ? MMU_CAM_PGSZ_1M : \
220 ((bytes) == SZ_64K) ? MMU_CAM_PGSZ_64K : \
221 ((bytes) == SZ_4K) ? MMU_CAM_PGSZ_4K : -1)
[all …]
Domap-iommu-debug.c32 ssize_t bytes; \
37 bytes = scnprintf(p, maxcol, str, __stringify(name), \
39 p += bytes; \
40 len -= bytes; \
69 ssize_t bytes) in omap_iommu_dump_ctx() argument
76 bytes = omap2_iommu_dump_ctx(obj, buf, bytes); in omap_iommu_dump_ctx()
80 return bytes; in omap_iommu_dump_ctx()
88 ssize_t bytes; in debug_read_regs() local
100 bytes = omap_iommu_dump_ctx(obj, p, count); in debug_read_regs()
101 if (bytes < 0) in debug_read_regs()
[all …]
/drivers/nvmem/
Dqcom-spmi-sdam.c64 size_t bytes) in sdam_read() argument
70 if (!sdam_is_valid(sdam, offset, bytes)) { in sdam_read()
72 offset, bytes); in sdam_read()
76 rc = regmap_bulk_read(sdam->regmap, sdam->base + offset, val, bytes); in sdam_read()
79 offset, bytes, rc); in sdam_read()
85 size_t bytes) in sdam_write() argument
91 if (!sdam_is_valid(sdam, offset, bytes)) { in sdam_write()
93 offset, bytes); in sdam_write()
97 if (sdam_is_ro(offset, bytes)) { in sdam_write()
99 offset, bytes); in sdam_write()
[all …]
/drivers/infiniband/sw/siw/
Dsiw_qp_rx.c36 int pg_off, bytes, rv; in siw_rx_umem() local
52 bytes = min(len, (int)PAGE_SIZE - pg_off); in siw_rx_umem()
54 siw_dbg_qp(rx_qp(srx), "page %pK, bytes=%u\n", p, bytes); in siw_rx_umem()
58 bytes); in siw_rx_umem()
73 (u8 *)(dest + pg_off), bytes); in siw_rx_umem()
87 siw_crc_skb(srx, bytes); in siw_rx_umem()
92 srx->skb_offset += bytes; in siw_rx_umem()
93 copied += bytes; in siw_rx_umem()
94 len -= bytes; in siw_rx_umem()
95 dest_addr += bytes; in siw_rx_umem()
[all …]
/drivers/iommu/intel/
Dperf.c120 int bytes = 0, i, j; in dmar_latency_snapshot() local
125 bytes += snprintf(str + bytes, size - bytes, in dmar_latency_snapshot()
133 bytes += snprintf(str + bytes, size - bytes, in dmar_latency_snapshot()
159 bytes += snprintf(str + bytes, size - bytes, in dmar_latency_snapshot()
165 return bytes; in dmar_latency_snapshot()
/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 …]
/drivers/gpu/drm/msm/
Dmsm_gpu_trace.h119 TP_PROTO(u32 bytes),
120 TP_ARGS(bytes),
122 __field(u32, bytes)
125 __entry->bytes = bytes;
127 TP_printk("Purging %u bytes", __entry->bytes)
132 TP_PROTO(u32 bytes),
133 TP_ARGS(bytes),
135 __field(u32, bytes)
138 __entry->bytes = bytes;
140 TP_printk("Evicting %u bytes", __entry->bytes)
/drivers/infiniband/sw/rxe/
Drxe_mr.c298 int bytes; in rxe_mr_copy() local
341 bytes = buf->size - offset; in rxe_mr_copy()
343 if (bytes > length) in rxe_mr_copy()
344 bytes = length; in rxe_mr_copy()
346 memcpy(dest, src, bytes); in rxe_mr_copy()
348 length -= bytes; in rxe_mr_copy()
349 addr += bytes; in rxe_mr_copy()
379 int bytes; in copy_data() local
404 bytes = length; in copy_data()
432 if (bytes > sge->length - offset) in copy_data()
[all …]
/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
Dsp_local.h76 #define store_sp_var(var, data, bytes) \ argument
77 sp_dmem_store(SP0_ID, (unsigned int)sp_address_of(var), data, bytes)
91 #define store_sp_var_with_offset(var, offset, data, bytes) \ argument
93 offset, data, bytes)
95 #define load_sp_var(var, data, bytes) \ argument
96 sp_dmem_load(SP0_ID, (unsigned int)sp_address_of(var), data, bytes)
98 #define load_sp_var_with_offset(var, offset, data, bytes) \ argument
100 data, bytes)
/drivers/acpi/acpica/
Dutmisc.c90 u8 bytes[4]; in acpi_ut_dword_byte_swap() member
94 u8 bytes[4]; in acpi_ut_dword_byte_swap() member
101 out.bytes[0] = in.bytes[3]; in acpi_ut_dword_byte_swap()
102 out.bytes[1] = in.bytes[2]; in acpi_ut_dword_byte_swap()
103 out.bytes[2] = in.bytes[1]; in acpi_ut_dword_byte_swap()
104 out.bytes[3] = in.bytes[0]; in acpi_ut_dword_byte_swap()
/drivers/net/ethernet/intel/i40e/
Di40e_nvm.c737 u8 *bytes, int *perrno);
740 u8 *bytes, int *perrno);
743 u8 *bytes, int *errno);
752 u8 *bytes, int *perrno);
755 u8 *bytes, int *perrno);
758 u8 *bytes, int *perrno);
761 u8 *bytes, int *perrno);
764 u8 *bytes, int *perrno);
811 u8 *bytes, int *perrno) in i40e_nvmupd_command() argument
844 bytes[0] = hw->nvmupd_state; in i40e_nvmupd_command()
[all …]

12345678910>>...30