| /drivers/power/supply/ |
| A D | max1720x_battery.c | 154 { .name = "nXTable0", .offset = 0, .bytes = 2, }, 155 { .name = "nXTable1", .offset = 2, .bytes = 2, }, 156 { .name = "nXTable2", .offset = 4, .bytes = 2, }, 157 { .name = "nXTable3", .offset = 6, .bytes = 2, }, 158 { .name = "nXTable4", .offset = 8, .bytes = 2, }, 159 { .name = "nXTable5", .offset = 10, .bytes = 2, }, 160 { .name = "nXTable6", .offset = 12, .bytes = 2, }, 161 { .name = "nXTable7", .offset = 14, .bytes = 2, }, 162 { .name = "nXTable8", .offset = 16, .bytes = 2, }, 163 { .name = "nXTable9", .offset = 18, .bytes = 2, }, [all …]
|
| /drivers/md/ |
| A D | dm-io-rewind.c | 14 unsigned int bytes) in dm_bvec_iter_rewind() argument 18 iter->bi_size += bytes; in dm_bvec_iter_rewind() 19 if (bytes <= iter->bi_bvec_done) { in dm_bvec_iter_rewind() 20 iter->bi_bvec_done -= bytes; in dm_bvec_iter_rewind() 24 bytes -= iter->bi_bvec_done; in dm_bvec_iter_rewind() 27 while (idx >= 0 && bytes && bytes > bv[idx].bv_len) { in dm_bvec_iter_rewind() 28 bytes -= bv[idx].bv_len; in dm_bvec_iter_rewind() 32 if (WARN_ONCE(idx < 0 && bytes, in dm_bvec_iter_rewind() 34 iter->bi_size -= bytes; in dm_bvec_iter_rewind() 113 iter->bi_sector -= bytes >> 9; in dm_bio_rewind_iter() [all …]
|
| /drivers/staging/media/atomisp/pci/hmm/ |
| A D | hmm.c | 185 while (bytes) { in load_and_flush_by_kmap() 193 bytes -= len; in load_and_flush_by_kmap() 195 len = bytes; in load_and_flush_by_kmap() 196 bytes = 0; in load_and_flush_by_kmap() 317 while (bytes) { in hmm_store() 334 bytes -= len; in hmm_store() 336 len = bytes; in hmm_store() 337 bytes = 0; in hmm_store() 388 while (bytes) { in hmm_set() 398 len = bytes; in hmm_set() [all …]
|
| /drivers/gpu/drm/vmwgfx/ |
| A D | vmwgfx_cmd.c | 278 uint32_t bytes) in vmw_local_fifo_reserve() argument 299 fifo_state->reserved_size = bytes; in vmw_local_fifo_reserve() 338 bytes); in vmw_local_fifo_reserve() 396 if (bytes < chunk_size) in vmw_fifo_res_copy() 397 chunk_size = bytes; in vmw_fifo_res_copy() 402 rest = bytes - chunk_size; in vmw_fifo_res_copy() 415 while (bytes > 0) { in vmw_fifo_slow_copy() 423 bytes -= sizeof(uint32_t); in vmw_fifo_slow_copy() 435 BUG_ON((bytes & 3) != 0); in vmw_local_fifo_commit() 443 next_cmd, max, min, bytes); in vmw_local_fifo_commit() [all …]
|
| /drivers/soc/tegra/fuse/ |
| A D | fuse-tegra30.c | 140 .bytes = 4, 146 .bytes = 4, 152 .bytes = 4, 158 .bytes = 4, 164 .bytes = 4, 170 .bytes = 4, 176 .bytes = 4, 182 .bytes = 4, 188 .bytes = 4, 194 .bytes = 4, [all …]
|
| /drivers/gpu/drm/i915/gvt/ |
| A D | mmio.c | 83 bytes); in failsafe_emulate_mmio_rw() 86 bytes); in failsafe_emulate_mmio_rw() 91 memcpy(p_data, pt, bytes); in failsafe_emulate_mmio_rw() 93 memcpy(pt, p_data, bytes); in failsafe_emulate_mmio_rw() 110 void *p_data, unsigned int bytes) in intel_vgpu_emulate_mmio_read() argument 132 if (drm_WARN_ON(&i915->drm, bytes != 4 && bytes != 8)) in intel_vgpu_emulate_mmio_read() 139 p_data, bytes); in intel_vgpu_emulate_mmio_read() 168 offset, bytes); in intel_vgpu_emulate_mmio_read() 208 if (drm_WARN_ON(&i915->drm, bytes != 4 && bytes != 8)) in intel_vgpu_emulate_mmio_write() 215 p_data, bytes); in intel_vgpu_emulate_mmio_write() [all …]
|
| A D | cfg_space.c | 70 u8 *src, unsigned int bytes) in vgpu_pci_cfg_mem_write() argument 94 if (i < bytes) in vgpu_pci_cfg_mem_write() 95 memcpy(cfg_base + off + i, src + i, bytes - i); in vgpu_pci_cfg_mem_write() 118 void *p_data, unsigned int bytes) in intel_vgpu_emulate_cfg_read() argument 122 if (drm_WARN_ON(&i915->drm, bytes > 4)) in intel_vgpu_emulate_cfg_read() 129 memcpy(p_data, vgpu_cfg_space(vgpu) + offset, bytes); in intel_vgpu_emulate_cfg_read() 152 vgpu_pci_cfg_mem_write(vgpu, offset, p_data, bytes); in emulate_pci_command_write() 182 void *p_data, unsigned int bytes) in emulate_pci_bar_write() argument 257 void *p_data, unsigned int bytes) in intel_vgpu_emulate_cfg_write() argument 262 if (drm_WARN_ON(&i915->drm, bytes > 4)) in intel_vgpu_emulate_cfg_write() [all …]
|
| A D | edid.c | 147 memcpy(&vgpu_vreg(vgpu, offset), p_data, bytes); in gmbus0_mmio_write() 182 void *p_data, unsigned int bytes) in gmbus1_mmio_write() argument 283 void *p_data, unsigned int bytes) in gmbus3_mmio_write() argument 292 void *p_data, unsigned int bytes) in gmbus3_mmio_read() argument 345 void *p_data, unsigned int bytes) in gmbus2_mmio_read() argument 351 memcpy(p_data, (void *)&value, bytes); in gmbus2_mmio_read() 356 void *p_data, unsigned int bytes) in gmbus2_mmio_write() argument 384 if (drm_WARN_ON(&i915->drm, bytes > 8 && (offset & (bytes - 1)))) in intel_gvt_i2c_handle_gmbus_read() 392 memcpy(p_data, &vgpu_vreg(vgpu, offset), bytes); in intel_gvt_i2c_handle_gmbus_read() 414 if (drm_WARN_ON(&i915->drm, bytes > 8 && (offset & (bytes - 1)))) in intel_gvt_i2c_handle_gmbus_write() [all …]
|
| /drivers/net/ethernet/freescale/dpaa/ |
| A D | dpaa_eth_sysfs.c | 36 ssize_t bytes = 0; in dpaa_eth_show_fqids() local 69 bytes += sprintf(buf + bytes, in dpaa_eth_show_fqids() 72 bytes += sprintf(buf + bytes, in dpaa_eth_show_fqids() 91 bytes += sprintf(buf + bytes, "%s: %d\n", prevstr, in dpaa_eth_show_fqids() 94 bytes += sprintf(buf + bytes, "%s: %d - %d\n", prevstr, in dpaa_eth_show_fqids() 98 return bytes; in dpaa_eth_show_fqids() 105 ssize_t bytes = 0; in dpaa_eth_show_bpids() local 107 bytes += snprintf(buf + bytes, PAGE_SIZE - bytes, "%u\n", in dpaa_eth_show_bpids() 110 return bytes; in dpaa_eth_show_bpids()
|
| /drivers/accessibility/speakup/ |
| A D | devsynth.c | 19 size_t bytes; in speakup_file_write() local 26 bytes = min(count, sizeof(buf)); in speakup_file_write() 29 count -= bytes; in speakup_file_write() 30 ptr += bytes; in speakup_file_write() 32 synth_write(buf, bytes); in speakup_file_write() 44 size_t bytes; in speakup_file_writeu() local 56 bytes = min(count, sizeof(buf)); in speakup_file_writeu() 68 if (want > bytes - in) in speakup_file_writeu() 72 bytes = in; in speakup_file_writeu() 81 count -= bytes; in speakup_file_writeu() [all …]
|
| /drivers/ps3/ |
| A D | ps3-vuart.c | 426 bytes = bytes ? min(bytes, (unsigned int)bytes_waiting) : bytes_waiting; in ps3_vuart_clear_rx_bytes() 430 if (!bytes) in ps3_vuart_clear_rx_bytes() 435 bytes += 128; in ps3_vuart_clear_rx_bytes() 484 bytes, bytes); in ps3_vuart_write() 550 u64 bytes; in ps3_vuart_queue_rx_bytes() local 560 if (!bytes) in ps3_vuart_queue_rx_bytes() 565 bytes += 128; in ps3_vuart_queue_rx_bytes() 572 ps3_vuart_raw_read(dev, lb->data, bytes, &bytes); in ps3_vuart_queue_rx_bytes() 608 bytes, bytes); in ps3_vuart_read() 698 __LINE__, bytes, bytes); in ps3_vuart_read_async() [all …]
|
| /drivers/media/pci/cobalt/ |
| A D | cobalt-omnitek.c | 172 unsigned bytes; in descriptor_list_create() local 203 d->bytes = (bytes / 2) & ~3; 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() 231 copied += bytes; in descriptor_list_create() 232 offset += bytes; in descriptor_list_create() 238 copied += bytes; in descriptor_list_create() 239 offset += bytes; in descriptor_list_create() 240 size -= bytes; in descriptor_list_create() [all …]
|
| /drivers/media/usb/hdpvr/ |
| A D | hdpvr-core.c | 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() 98 bytes[1] *= bytes[6] + 1; in challenge() [all …]
|
| /drivers/infiniband/sw/rxe/ |
| A D | rxe_mr.c | 269 addr += bytes; in rxe_mr_copy_xarray() 270 length -= bytes; in rxe_mr_copy_xarray() 299 addr += bytes; in rxe_mr_copy_dma() 300 length -= bytes; in rxe_mr_copy_dma() 343 int bytes; in copy_data() local 368 bytes = length; in copy_data() 399 if (bytes > 0) { in copy_data() 408 addr += bytes; in copy_data() 454 iova += bytes; in rxe_mr_flush_pmem_iova() 599 bytes = length; in advance_dma_data() [all …]
|
| /drivers/nvmem/ |
| A D | sunxi_sid.c | 40 void *val, size_t bytes) in sunxi_sid_read() argument 48 val += round_down(bytes, 4); in sunxi_sid_read() 49 offset += round_down(bytes, 4); in sunxi_sid_read() 50 bytes = bytes % 4; in sunxi_sid_read() 52 if (!bytes) in sunxi_sid_read() 57 memcpy(val, &word, bytes); in sunxi_sid_read() 94 void *val, size_t bytes) in sun8i_sid_read_by_reg() argument 101 while (bytes >= 4) { in sun8i_sid_read_by_reg() 108 bytes -= 4; in sun8i_sid_read_by_reg() 111 if (!bytes) in sun8i_sid_read_by_reg() [all …]
|
| A D | zynqmp_nvmem.c | 67 size_t words = bytes / WORD_INBYTES; in zynqmp_efuse_access() 72 if (bytes % WORD_INBYTES != 0) { in zynqmp_efuse_access() 83 memcpy(&value, val, bytes); in zynqmp_efuse_access() 103 data = dma_alloc_coherent(dev, sizeof(bytes), in zynqmp_efuse_access() 111 memcpy(data, val, bytes); in zynqmp_efuse_access() 135 memcpy(val, data, bytes); in zynqmp_efuse_access() 137 dma_free_coherent(dev, sizeof(bytes), in zynqmp_efuse_access() 160 if (bytes != SOC_VER_SIZE) in zynqmp_nvmem_read() 174 bytes, EFUSE_READ, pufflag); in zynqmp_nvmem_read() 186 unsigned int offset, void *val, size_t bytes) in zynqmp_nvmem_write() argument [all …]
|
| A D | qcom-spmi-sdam.c | 64 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 …]
|
| A D | stm32-romem.c | 44 size_t bytes) in stm32_romem_read() argument 50 for (i = offset; i < offset + bytes; i++) in stm32_romem_read() 75 size_t bytes) in stm32_bsec_read() argument 86 rbytes = roundup(bytes + skip_bytes, 4); in stm32_bsec_read() 111 size = min(bytes, (size_t)4); in stm32_bsec_read() 113 bytes -= size; in stm32_bsec_read() 122 size_t bytes) in stm32_bsec_write() argument 130 if ((bytes % 4) || (offset % 4)) in stm32_bsec_write() 142 if (offset + bytes >= priv->lower * 4) in stm32_bsec_write() 149 size_t bytes) in stm32_bsec_pta_read() argument [all …]
|
| /drivers/most/ |
| A D | most_snd.c | 81 while (i < (bytes / 2)) { in swap_copy16() 91 if (bytes < 2) in swap_copy24() 93 while (i < bytes - 2) { in swap_copy24() 105 while (i < bytes / 4) { in swap_copy32() 113 memcpy(most, alsa, bytes); in alsa_to_most_memcpy() 118 swap_copy16(most, alsa, bytes); in alsa_to_most_copy16() 123 swap_copy24(most, alsa, bytes); in alsa_to_most_copy24() 128 swap_copy32(most, alsa, bytes); in alsa_to_most_copy32() 133 memcpy(alsa, most, bytes); in most_to_alsa_memcpy() 138 swap_copy16(alsa, most, bytes); in most_to_alsa_copy16() [all …]
|
| /drivers/gpu/drm/amd/display/dc/link/protocols/ |
| A D | link_dp_irq_handler.c | 71 &hpd_irq_dpcd_data->bytes.lane01_status.raw, in dp_parse_link_loss_status() 327 irq_data->bytes.lane_status_updated.bits.EQ_INTERLANE_ALIGN_DONE_128b_132b = in read_dpcd204h_on_irq_hpd() 329 irq_data->bytes.lane_status_updated.bits.CDS_INTERLANE_ALIGN_DONE_128b_132b = in read_dpcd204h_on_irq_hpd() 358 &irq_data->bytes.link_service_irq_esi0.raw, 1); in dp_read_hpd_rx_irq_data() 375 irq_data->bytes.sink_cnt.raw = tmp[DP_SINK_COUNT_ESI - DP_SINK_COUNT_ESI]; in dp_read_hpd_rx_irq_data() 380 irq_data->bytes.sink_status.raw = tmp[DP_SINK_STATUS_ESI - DP_SINK_COUNT_ESI]; in dp_read_hpd_rx_irq_data() 447 if (hpd_irq_dpcd_data.bytes.device_service_irq.bits.AUTOMATED_TEST) { in dp_handle_hpd_rx_irq() 483 if (hpd_irq_dpcd_data.bytes.device_service_irq.bits.UP_REQ_MSG_RDY) { in dp_handle_hpd_rx_irq() 490 if (hpd_irq_dpcd_data.bytes.device_service_irq.bits.DOWN_REP_MSG_RDY) { in dp_handle_hpd_rx_irq() 525 if (hpd_irq_dpcd_data.bytes.link_service_irq_esi0.bits.DP_LINK_TUNNELING_IRQ) in dp_handle_hpd_rx_irq() [all …]
|
| /drivers/infiniband/sw/siw/ |
| A D | siw_qp_rx.c | 58 bytes); in siw_rx_umem() 73 bytes); in siw_rx_umem() 93 copied += bytes; in siw_rx_umem() 94 len -= bytes; in siw_rx_umem() 135 int bytes; in siw_rx_pbl() local 141 bytes = min(bytes, len); in siw_rx_pbl() 143 bytes) { in siw_rx_pbl() 146 len -= bytes; in siw_rx_pbl() 550 int bytes, rv; in siw_proc_write() local 789 int bytes, rv; in siw_proc_rresp() local [all …]
|
| /drivers/scsi/lpfc/ |
| A D | lpfc_compat.h | 40 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/iommu/ |
| A D | omap-iommu-debug.c | 32 ssize_t bytes; \ 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() 103 bytes = simple_read_from_buffer(userbuf, count, ppos, buf, bytes); in debug_read_regs() [all …]
|
| A D | omap-iommu.h | 211 #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 …]
|
| /drivers/vdpa/vdpa_sim/ |
| A D | vdpa_sim_blk.c | 116 ssize_t bytes; in vdpasim_blk_handle_req() local 148 if (bytes != sizeof(hdr)) { in vdpasim_blk_handle_req() 153 to_pull -= bytes; in vdpasim_blk_handle_req() 182 if (bytes < 0) { in vdpasim_blk_handle_req() 190 pushed += bytes; in vdpasim_blk_handle_req() 205 if (bytes < 0) { in vdpasim_blk_handle_req() 218 if (bytes < 0) { in vdpasim_blk_handle_req() 225 pushed += bytes; in vdpasim_blk_handle_req() 247 if (bytes < 0) { in vdpasim_blk_handle_req() 308 if (bytes != 1) in vdpasim_blk_handle_req() [all …]
|