Home
last modified time | relevance | path

Searched refs:dwords (Results 1 – 25 of 67) sorted by relevance

123

/OK3568_Linux_fs/u-boot/arch/arm/mach-mvebu/
H A Defuse.c74 val.dwords.d[0] = readl(&efuse->bits_31_0); in do_prog_efuse()
75 val.dwords.d[1] = readl(&efuse->bits_63_32); in do_prog_efuse()
81 val.dwords.d[0] |= (new_val->dwords.d[0] & mask0); in do_prog_efuse()
82 val.dwords.d[1] |= (new_val->dwords.d[1] & mask1); in do_prog_efuse()
85 writel(val.dwords.d[0], &efuse->bits_31_0); in do_prog_efuse()
87 writel(val.dwords.d[1], &efuse->bits_63_32); in do_prog_efuse()
119 if (!new_val->dwords.d[0] && !new_val->dwords.d[1] && (mask0 | mask1)) in prog_efuse()
165 val->dwords.d[0] = readl(&efuse->bits_31_0); in mvebu_read_efuse()
166 val->dwords.d[1] = readl(&efuse->bits_63_32); in mvebu_read_efuse()
211 *val = fuse_line.dwords.d[word]; in fuse_read()
[all …]
/OK3568_Linux_fs/kernel/drivers/thunderbolt/
H A Dusb4.c78 size_t dwords) in usb4_switch_op_read_data() argument
80 if (dwords > USB4_DATA_DWORDS) in usb4_switch_op_read_data()
83 return tb_sw_read(sw, data, TB_CFG_SWITCH, ROUTER_CS_9, dwords); in usb4_switch_op_read_data()
87 size_t dwords) in usb4_switch_op_write_data() argument
89 if (dwords > USB4_DATA_DWORDS) in usb4_switch_op_write_data()
92 return tb_sw_write(sw, data, TB_CFG_SWITCH, ROUTER_CS_9, dwords); in usb4_switch_op_write_data()
112 unsigned int dwaddress, dwords; in usb4_do_read_data() local
121 dwords = ALIGN(nbytes, 4) / 4; in usb4_do_read_data()
123 ret = read_block(read_block_data, dwaddress, data, dwords); in usb4_do_read_data()
341 size_t dwords) in usb4_switch_drom_read_block() argument
[all …]
H A Ddma_port.c306 u32 in, dwaddress, dwords; in dma_port_flash_read_block() local
310 dwords = size / 4; in dma_port_flash_read_block()
313 if (dwords < MAIL_DATA_DWORDS) in dma_port_flash_read_block()
314 in |= (dwords << MAIL_IN_DWORDS_SHIFT) & MAIL_IN_DWORDS_MASK; in dma_port_flash_read_block()
323 dma->base + MAIL_DATA, dwords, DMA_PORT_TIMEOUT); in dma_port_flash_read_block()
330 u32 in, dwaddress, dwords; in dma_port_flash_write_block() local
333 dwords = size / 4; in dma_port_flash_write_block()
337 dma->base + MAIL_DATA, dwords, DMA_PORT_TIMEOUT); in dma_port_flash_write_block()
349 in |= ((dwords - 1) << MAIL_IN_DWORDS_SHIFT) & MAIL_IN_DWORDS_MASK; in dma_port_flash_write_block()
H A Ddebugfs.c261 int i, dwords = min(length, TB_MAX_CONFIG_RW_LENGTH); in cap_show() local
266 dwords); in cap_show()
268 ret = tb_sw_read(sw, data, TB_CFG_SWITCH, cap + offset, dwords); in cap_show()
272 if (dwords > 1) in cap_show()
277 for (i = 0; i < dwords; i++) { in cap_show()
283 length -= dwords; in cap_show()
284 offset += dwords; in cap_show()
481 size_t dwords; in switch_basic_regs_show() local
486 dwords = ARRAY_SIZE(data); in switch_basic_regs_show()
488 dwords = 7; in switch_basic_regs_show()
[all …]
H A Dproperty.c42 static inline void parse_dwdata(void *dst, const void *src, size_t dwords) in parse_dwdata() argument
44 be32_to_cpu_array(dst, src, dwords); in parse_dwdata()
47 static inline void format_dwdata(void *dst, const void *src, size_t dwords) in format_dwdata() argument
49 cpu_to_be32_array(dst, src, dwords); in format_dwdata()
/OK3568_Linux_fs/kernel/drivers/mtd/spi-nor/
H A Dsfdp.c454 le32_to_cpu_array(bfpt.dwords, BFPT_DWORD_MAX); in spi_nor_parse_bfpt()
457 switch (bfpt.dwords[BFPT_DWORD(1)] & BFPT_DWORD1_ADDRESS_BYTES_MASK) { in spi_nor_parse_bfpt()
472 val = bfpt.dwords[BFPT_DWORD(2)]; in spi_nor_parse_bfpt()
495 if (!(bfpt.dwords[rd->supported_dword] & rd->supported_bit)) { in spi_nor_parse_bfpt()
503 half = bfpt.dwords[rd->settings_dword] >> rd->settings_shift; in spi_nor_parse_bfpt()
518 half = bfpt.dwords[er->dword] >> er->shift; in spi_nor_parse_bfpt()
553 val = bfpt.dwords[BFPT_DWORD(11)]; in spi_nor_parse_bfpt()
559 switch (bfpt.dwords[BFPT_DWORD(15)] & BFPT_DWORD15_QER_MASK) { in spi_nor_parse_bfpt()
952 u32 *dwords; in spi_nor_parse_4bait() local
962 len = sizeof(*dwords) * SFDP_4BAIT_DWORD_MAX; in spi_nor_parse_4bait()
[all …]
/OK3568_Linux_fs/external/xserver/Xext/
H A Dxvmc.c189 int dwords = 0; in ProcXvMCCreateContext() local
250 result = (*adaptor->CreateContext) (pPort, pContext, &dwords, &data); in ProcXvMCCreateContext()
264 .length = dwords, in ProcXvMCCreateContext()
271 if (dwords) in ProcXvMCCreateContext()
272 WriteToClient(client, dwords << 2, data); in ProcXvMCCreateContext()
302 int dwords = 0; in ProcXvMCCreateSurface() local
328 &dwords, in ProcXvMCCreateSurface()
343 .length = dwords in ProcXvMCCreateSurface()
347 if (dwords) in ProcXvMCCreateSurface()
348 WriteToClient(client, dwords << 2, data); in ProcXvMCCreateSurface()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/etnaviv/
H A Detnaviv_buffer.c252 unsigned int dwords = 7; in etnaviv_buffer_end() local
255 dwords += 10; in etnaviv_buffer_end()
257 link_target = etnaviv_buffer_reserve(gpu, buffer, dwords); in etnaviv_buffer_end()
290 VIV_FE_LINK_HEADER_PREFETCH(dwords), in etnaviv_buffer_end()
304 u32 dwords, target; in etnaviv_sync_point_queue() local
312 dwords = 4; in etnaviv_sync_point_queue()
313 target = etnaviv_buffer_reserve(gpu, buffer, dwords); in etnaviv_sync_point_queue()
334 VIV_FE_LINK_HEADER_PREFETCH(dwords), in etnaviv_sync_point_queue()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/
H A Dnv50_fbcon.c110 uint32_t dwords, *data = (uint32_t *)image->data; in nv50_fbcon_imageblit() local
142 dwords = ALIGN(ALIGN(image->width, 8) * image->height, 32) >> 5; in nv50_fbcon_imageblit()
143 while (dwords) { in nv50_fbcon_imageblit()
144 int count = dwords > 2047 ? 2047 : dwords; in nv50_fbcon_imageblit()
150 dwords -= count; in nv50_fbcon_imageblit()
H A Dnvc0_fbcon.c110 uint32_t dwords, *data = (uint32_t *)image->data; in nvc0_fbcon_imageblit() local
142 dwords = ALIGN(ALIGN(image->width, 8) * image->height, 32) >> 5; in nvc0_fbcon_imageblit()
143 while (dwords) { in nvc0_fbcon_imageblit()
144 int count = dwords > 2047 ? 2047 : dwords; in nvc0_fbcon_imageblit()
150 dwords -= count; in nvc0_fbcon_imageblit()
/OK3568_Linux_fs/u-boot/drivers/spi/
H A Drockchip_sfc.c468 u32 dwords; in rockchip_sfc_write_fifo() local
473 dwords = len >> 2; in rockchip_sfc_write_fifo()
474 while (dwords) { in rockchip_sfc_write_fifo()
478 write_words = min_t(u32, tx_level, dwords); in rockchip_sfc_write_fifo()
481 dwords -= write_words; in rockchip_sfc_write_fifo()
499 u32 dwords; in rockchip_sfc_read_fifo() local
505 dwords = len >> 2; in rockchip_sfc_read_fifo()
506 while (dwords) { in rockchip_sfc_read_fifo()
510 read_words = min_t(u32, rx_level, dwords); in rockchip_sfc_read_fifo()
513 dwords -= read_words; in rockchip_sfc_read_fifo()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/msm/adreno/
H A Da6xx_hfi.c27 struct a6xx_hfi_queue *queue, u32 *data, u32 dwords) in a6xx_hfi_queue_read() argument
48 BUG_ON(HFI_HEADER_SIZE(hdr) > dwords); in a6xx_hfi_queue_read()
63 struct a6xx_hfi_queue *queue, u32 *data, u32 dwords) in a6xx_hfi_queue_write() argument
72 if (space < dwords) { in a6xx_hfi_queue_write()
78 for (i = 0; i < dwords; i++) { in a6xx_hfi_queue_write()
169 int ret, dwords = size >> 2; in a6xx_hfi_send_msg() local
176 (dwords << 8) | id; in a6xx_hfi_send_msg()
178 ret = a6xx_hfi_queue_write(gmu, queue, data, dwords); in a6xx_hfi_send_msg()
H A Da5xx_power.c329 uint32_t dwords = 0, offset = 0, bosize; in a5xx_gpmu_ucode_init() local
378 ptr[dwords++] = PKT4(REG_A5XX_GPMU_INST_RAM_BASE + offset, in a5xx_gpmu_ucode_init()
382 ptr[dwords++] = *cmds++; in a5xx_gpmu_ucode_init()
389 a5xx_gpu->gpmu_dwords = dwords; in a5xx_gpmu_ucode_init()
/OK3568_Linux_fs/kernel/drivers/spi/
H A Dspi-rockchip-sfc.c406 u32 dwords; in rockchip_sfc_write_fifo() local
411 dwords = len >> 2; in rockchip_sfc_write_fifo()
412 while (dwords) { in rockchip_sfc_write_fifo()
416 write_words = min_t(u32, tx_level, dwords); in rockchip_sfc_write_fifo()
419 dwords -= write_words; in rockchip_sfc_write_fifo()
437 u32 dwords; in rockchip_sfc_read_fifo() local
443 dwords = len >> 2; in rockchip_sfc_read_fifo()
444 while (dwords) { in rockchip_sfc_read_fifo()
448 read_words = min_t(u32, rx_level, dwords); in rockchip_sfc_read_fifo()
451 dwords -= read_words; in rockchip_sfc_read_fifo()
/OK3568_Linux_fs/kernel/net/ncsi/
H A Dncsi-cmd.c116 cmd->mode = htonl(nca->dwords[1]); in ncsi_cmd_handler_ae()
128 cmd->mode = htonl(nca->dwords[0]); in ncsi_cmd_handler_sl()
129 cmd->oem_mode = htonl(nca->dwords[1]); in ncsi_cmd_handler_sl()
183 cmd->mode = htonl(nca->dwords[0]); in ncsi_cmd_handler_ebf()
195 cmd->mode = htonl(nca->dwords[0]); in ncsi_cmd_handler_egmf()
/OK3568_Linux_fs/kernel/drivers/media/platform/qcom/venus/
H A Dhfi_venus.c168 u32 dwords, new_wr_idx; in venus_write_queue() local
181 dwords = (*(u32 *)packet) >> 2; in venus_write_queue()
182 if (!dwords) in venus_write_queue()
196 if (empty_space <= dwords) { in venus_write_queue()
207 new_wr_idx = wr_idx + dwords; in venus_write_queue()
210 memcpy(wr_ptr, packet, dwords << 2); in venus_write_queue()
215 len = (dwords - new_wr_idx) << 2; in venus_write_queue()
236 u32 dwords, new_rd_idx; in venus_read_queue() local
276 dwords = *rd_ptr >> 2; in venus_read_queue()
277 if (!dwords) in venus_read_queue()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/r128/
H A Dr128_state.c650 int dwords = (end - start + 3) / sizeof(u32); in r128_cce_dispatch_indirect() local
656 if (dwords & 1) { in r128_cce_dispatch_indirect()
660 data[dwords++] = cpu_to_le32(R128_CCE_PACKET2); in r128_cce_dispatch_indirect()
670 OUT_RING(dwords); in r128_cce_dispatch_indirect()
706 int dwords; in r128_cce_dispatch_indices() local
720 dwords = (end - start + 3) / sizeof(u32); in r128_cce_dispatch_indices()
726 dwords - 2)); in r128_cce_dispatch_indices()
736 data[dwords - 1] &= 0x0000ffff; in r128_cce_dispatch_indices()
738 data[dwords - 1] &= 0xffff0000; in r128_cce_dispatch_indices()
787 int dword_shift, dwords; in r128_cce_dispatch_blit() local
[all …]
/OK3568_Linux_fs/kernel/fs/notify/fanotify/
H A Dfanotify.c321 int dwords = 0; in fanotify_encode_fh_len() local
326 exportfs_encode_inode_fh(inode, NULL, &dwords, NULL); in fanotify_encode_fh_len()
328 return dwords << 2; in fanotify_encode_fh_len()
340 int dwords, type = 0; in fanotify_encode_fh() local
372 dwords = fh_len >> 2; in fanotify_encode_fh()
373 type = exportfs_encode_inode_fh(inode, buf, &dwords, NULL); in fanotify_encode_fh()
375 if (!type || type == FILEID_INVALID || fh_len != dwords << 2) in fanotify_encode_fh()
/OK3568_Linux_fs/kernel/drivers/scsi/qla2xxx/
H A Dqla_tmpl.c263 ulong dwords; in qla27xx_fwdt_entry_t262() local
309 dwords = end - start + 1; in qla27xx_fwdt_entry_t262()
312 rc = qla24xx_dump_ram(vha->hw, start, buf, dwords, &buf); in qla27xx_fwdt_entry_t262()
320 *len += dwords * sizeof(uint32_t); in qla27xx_fwdt_entry_t262()
550 ulong dwords = le32_to_cpu(ent->t270.count); in qla27xx_fwdt_entry_t270() local
555 while (dwords--) { in qla27xx_fwdt_entry_t270()
585 ulong dwords = le32_to_cpu(ent->t272.count); in qla27xx_fwdt_entry_t272() local
592 "%s: @%lx -> (%lx dwords)\n", __func__, start, dwords); in qla27xx_fwdt_entry_t272()
594 qla27xx_dump_mpi_ram(vha->hw, start, buf, dwords, &buf); in qla27xx_fwdt_entry_t272()
596 *len += dwords * sizeof(uint32_t); in qla27xx_fwdt_entry_t272()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/hwcnt/
H A Dmali_kbase_hwcnt_gpu.h326 u64 dwords[2] = { lo, hi }; in kbase_hwcnt_backend_gpu_block_map_to_physical() local
330 const u64 dword = dwords[dword_idx]; in kbase_hwcnt_backend_gpu_block_map_to_physical()
H A Dmali_kbase_hwcnt_gpu.c511 u64 dwords[2] = { 0, 0 }; in kbasep_hwcnt_backend_gpu_block_map_from_physical() local
530 dwords[dword_idx] = dword; in kbasep_hwcnt_backend_gpu_block_map_from_physical()
532 *lo = dwords[0]; in kbasep_hwcnt_backend_gpu_block_map_from_physical()
533 *hi = dwords[1]; in kbasep_hwcnt_backend_gpu_block_map_from_physical()
/OK3568_Linux_fs/kernel/arch/parisc/kernel/
H A Dperf.c739 uint32_t dwords; in perf_write_image() local
767 dwords = tentry->num_words; in perf_write_image()
770 while (dwords--) { in perf_write_image()
776 while (dwords--) { in perf_write_image()
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/qib/
H A Dqib_sdma.c512 struct rvt_sge_state *ss, u32 dwords, in qib_sdma_verbs_send() argument
566 while (dwords) { in qib_sdma_verbs_send()
568 u32 len = rvt_get_sge_length(sge, dwords << 2); in qib_sdma_verbs_send()
594 dwords -= dw; in qib_sdma_verbs_send()
652 tx->dwords = dwords; in qib_sdma_verbs_send()
H A Dqib_verbs.c772 u32 plen, u32 dwords) in qib_verbs_send_dma() argument
789 ret = qib_sdma_verbs_send(ppd, tx->ss, tx->dwords, tx); in qib_verbs_send_dma()
832 ret = qib_sdma_verbs_send(ppd, ss, dwords, tx); in qib_verbs_send_dma()
908 u32 plen, u32 dwords) in qib_verbs_send_pio() argument
968 qib_pio_copy(piobuf, addr, dwords - 1); in qib_verbs_send_pio()
971 __raw_writel(addr[dwords - 1], piobuf + dwords - 1); in qib_verbs_send_pio()
975 qib_pio_copy(piobuf, addr, dwords); in qib_verbs_send_pio()
1020 u32 dwords = (len + 3) >> 2; in qib_verbs_send() local
1026 plen = hdrwords + dwords + 1; in qib_verbs_send()
1036 plen, dwords); in qib_verbs_send()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/intel/iwlwifi/
H A Diwl-trans.h626 void *buf, int dwords);
628 const void *buf, int dwords);
1375 void *buf, int dwords) in iwl_trans_read_mem() argument
1377 return trans->ops->read_mem(trans, addr, buf, dwords); in iwl_trans_read_mem()
1398 const void *buf, int dwords) in iwl_trans_write_mem() argument
1400 return trans->ops->write_mem(trans, addr, buf, dwords); in iwl_trans_write_mem()

123