/drivers/net/ethernet/netronome/nfp/ |
D | nfp_asm.c | 30 u16 br_get_offset(u64 instr) in br_get_offset() argument 34 addr_lo = FIELD_GET(OP_BR_ADDR_LO, instr); in br_get_offset() 35 addr_hi = FIELD_GET(OP_BR_ADDR_HI, instr); in br_get_offset() 41 void br_set_offset(u64 *instr, u16 offset) in br_set_offset() argument 47 *instr &= ~(OP_BR_ADDR_HI | OP_BR_ADDR_LO); in br_set_offset() 48 *instr |= FIELD_PREP(OP_BR_ADDR_HI, addr_hi); in br_set_offset() 49 *instr |= FIELD_PREP(OP_BR_ADDR_LO, addr_lo); in br_set_offset() 52 void br_add_offset(u64 *instr, u16 offset) in br_add_offset() argument 56 addr = br_get_offset(*instr); in br_add_offset() 57 br_set_offset(instr, addr + offset); in br_add_offset() [all …]
|
D | nfp_asm.h | 91 u16 br_get_offset(u64 instr); 92 void br_set_offset(u64 *instr, u16 offset); 93 void br_add_offset(u64 *instr, u16 offset); 135 u16 immed_get_value(u64 instr); 136 void immed_set_value(u64 *instr, u16 immed); 137 void immed_add_value(u64 *instr, u16 offset);
|
/drivers/watchdog/ |
D | wdat_wdt.c | 65 const struct wdat_instruction *instr, u32 *value) in wdat_wdt_read() argument 67 const struct acpi_generic_address *gas = &instr->entry.register_region; in wdat_wdt_read() 71 *value = ioread8(instr->reg); in wdat_wdt_read() 74 *value = ioread16(instr->reg); in wdat_wdt_read() 77 *value = ioread32(instr->reg); in wdat_wdt_read() 90 const struct wdat_instruction *instr, u32 value) in wdat_wdt_write() argument 92 const struct acpi_generic_address *gas = &instr->entry.register_region; in wdat_wdt_write() 96 iowrite8((u8)value, instr->reg); in wdat_wdt_write() 99 iowrite16((u16)value, instr->reg); in wdat_wdt_write() 102 iowrite32(value, instr->reg); in wdat_wdt_write() [all …]
|
/drivers/crypto/cavium/nitrox/ |
D | nitrox_reqmgr.c | 299 memcpy(ent, &sr->instr, cmdq->instr_size); in post_se_instr() 447 sr->instr.dptr0 = cpu_to_be64(sr->in.sgcomp_dma); in nitrox_process_se_request() 450 sr->instr.ih.value = 0; in nitrox_process_se_request() 451 sr->instr.ih.s.g = 1; in nitrox_process_se_request() 452 sr->instr.ih.s.gsz = sr->in.sgmap_cnt; in nitrox_process_se_request() 453 sr->instr.ih.s.ssz = sr->out.sgmap_cnt; in nitrox_process_se_request() 454 sr->instr.ih.s.fsz = FDATA_SIZE + sizeof(struct gphdr); in nitrox_process_se_request() 455 sr->instr.ih.s.tlen = sr->instr.ih.s.fsz + sr->in.total_bytes; in nitrox_process_se_request() 456 sr->instr.ih.bev = cpu_to_be64(sr->instr.ih.value); in nitrox_process_se_request() 459 sr->instr.irh.value[0] = 0; in nitrox_process_se_request() [all …]
|
/drivers/mtd/nand/raw/ |
D | au1550nd.c | 154 const struct nand_op_instr *instr) in au1550nd_exec_instr() argument 160 switch (instr->type) { in au1550nd_exec_instr() 162 writeb(instr->ctx.cmd.opcode, in au1550nd_exec_instr() 169 for (i = 0; i < instr->ctx.addr.naddrs; i++) { in au1550nd_exec_instr() 170 writeb(instr->ctx.addr.addrs[i], in au1550nd_exec_instr() 179 !instr->ctx.data.force_8bit) in au1550nd_exec_instr() 180 au_read_buf16(this, instr->ctx.data.buf.in, in au1550nd_exec_instr() 181 instr->ctx.data.len); in au1550nd_exec_instr() 183 au_read_buf(this, instr->ctx.data.buf.in, in au1550nd_exec_instr() 184 instr->ctx.data.len); in au1550nd_exec_instr() [all …]
|
D | gpio.c | 76 const struct nand_op_instr *instr) in gpio_nand_exec_instr() argument 81 switch (instr->type) { in gpio_nand_exec_instr() 86 writeb(instr->ctx.cmd.opcode, gpiomtd->io); in gpio_nand_exec_instr() 95 for (i = 0; i < instr->ctx.addr.naddrs; i++) in gpio_nand_exec_instr() 96 writeb(instr->ctx.addr.addrs[i], gpiomtd->io); in gpio_nand_exec_instr() 104 !instr->ctx.data.force_8bit) in gpio_nand_exec_instr() 105 ioread16_rep(gpiomtd->io, instr->ctx.data.buf.in, in gpio_nand_exec_instr() 106 instr->ctx.data.len / 2); in gpio_nand_exec_instr() 108 ioread8_rep(gpiomtd->io, instr->ctx.data.buf.in, in gpio_nand_exec_instr() 109 instr->ctx.data.len); in gpio_nand_exec_instr() [all …]
|
D | vf610_nfc.c | 360 const struct nand_op_instr *instr; in vf610_nfc_cmd() local 372 instr = vf610_get_next_instr(subop, &op_id); in vf610_nfc_cmd() 373 if (!instr) in vf610_nfc_cmd() 376 if (instr && instr->type == NAND_OP_CMD_INSTR) { in vf610_nfc_cmd() 377 cmd2 |= instr->ctx.cmd.opcode << CMD_BYTE1_SHIFT; in vf610_nfc_cmd() 380 instr = vf610_get_next_instr(subop, &op_id); in vf610_nfc_cmd() 383 if (instr && instr->type == NAND_OP_ADDR_INSTR) { in vf610_nfc_cmd() 388 u8 val = instr->ctx.addr.addrs[i]; in vf610_nfc_cmd() 397 instr = vf610_get_next_instr(subop, &op_id); in vf610_nfc_cmd() 400 if (instr && instr->type == NAND_OP_DATA_OUT_INSTR) { in vf610_nfc_cmd() [all …]
|
D | ams-delta.c | 143 const struct nand_op_instr *instr; in gpio_nand_exec_op() local 151 for (instr = op->instrs; instr < op->instrs + op->ninstrs; instr++) { in gpio_nand_exec_op() 152 switch (instr->type) { in gpio_nand_exec_op() 155 gpio_nand_write_buf(priv, &instr->ctx.cmd.opcode, 1); in gpio_nand_exec_op() 161 gpio_nand_write_buf(priv, instr->ctx.addr.addrs, in gpio_nand_exec_op() 162 instr->ctx.addr.naddrs); in gpio_nand_exec_op() 167 gpio_nand_read_buf(priv, instr->ctx.data.buf.in, in gpio_nand_exec_op() 168 instr->ctx.data.len); in gpio_nand_exec_op() 172 gpio_nand_write_buf(priv, instr->ctx.data.buf.out, in gpio_nand_exec_op() 173 instr->ctx.data.len); in gpio_nand_exec_op() [all …]
|
D | cs553x_nand.c | 157 const struct nand_op_instr *instr) in cs553x_exec_instr() argument 162 switch (instr->type) { in cs553x_exec_instr() 165 instr->ctx.cmd.opcode); in cs553x_exec_instr() 169 for (i = 0; i < instr->ctx.addr.naddrs; i++) { in cs553x_exec_instr() 171 instr->ctx.addr.addrs[i]); in cs553x_exec_instr() 178 cs553x_data_in(cs553x, instr->ctx.data.buf.in, in cs553x_exec_instr() 179 instr->ctx.data.len); in cs553x_exec_instr() 183 cs553x_data_out(cs553x, instr->ctx.data.buf.out, in cs553x_exec_instr() 184 instr->ctx.data.len); in cs553x_exec_instr() 188 ret = cs553x_wait_ready(cs553x, instr->ctx.waitrdy.timeout_ms); in cs553x_exec_instr() [all …]
|
D | fsl_upm.c | 78 const struct nand_op_instr *instr) in func_exec_instr() argument 86 switch (instr->type) { in func_exec_instr() 89 mar = (instr->ctx.cmd.opcode << (32 - fun->upm.width)) | in func_exec_instr() 97 for (i = 0; i < instr->ctx.addr.naddrs; i++) { in func_exec_instr() 98 mar = (instr->ctx.addr.addrs[i] << (32 - fun->upm.width)) | in func_exec_instr() 106 in = instr->ctx.data.buf.in; in func_exec_instr() 107 for (i = 0; i < instr->ctx.data.len; i++) in func_exec_instr() 112 out = instr->ctx.data.buf.out; in func_exec_instr() 113 for (i = 0; i < instr->ctx.data.len; i++) in func_exec_instr() 119 return nand_soft_waitrdy(chip, instr->ctx.waitrdy.timeout_ms); in func_exec_instr() [all …]
|
D | meson_nand.c | 851 meson_nand_op_get_dma_safe_input_buf(const struct nand_op_instr *instr) in meson_nand_op_get_dma_safe_input_buf() argument 853 if (WARN_ON(instr->type != NAND_OP_DATA_IN_INSTR)) in meson_nand_op_get_dma_safe_input_buf() 856 if (meson_nfc_is_buffer_dma_safe(instr->ctx.data.buf.in)) in meson_nand_op_get_dma_safe_input_buf() 857 return instr->ctx.data.buf.in; in meson_nand_op_get_dma_safe_input_buf() 859 return kzalloc(instr->ctx.data.len, GFP_KERNEL); in meson_nand_op_get_dma_safe_input_buf() 863 meson_nand_op_put_dma_safe_input_buf(const struct nand_op_instr *instr, in meson_nand_op_put_dma_safe_input_buf() argument 866 if (WARN_ON(instr->type != NAND_OP_DATA_IN_INSTR) || in meson_nand_op_put_dma_safe_input_buf() 870 if (buf == instr->ctx.data.buf.in) in meson_nand_op_put_dma_safe_input_buf() 873 memcpy(instr->ctx.data.buf.in, buf, instr->ctx.data.len); in meson_nand_op_put_dma_safe_input_buf() 878 meson_nand_op_get_dma_safe_output_buf(const struct nand_op_instr *instr) in meson_nand_op_get_dma_safe_output_buf() argument [all …]
|
D | mxic_nand.c | 392 const struct nand_op_instr *instr = NULL; in mxic_nfc_exec_op() local 402 instr = &op->instrs[op_id]; in mxic_nfc_exec_op() 404 switch (instr->type) { in mxic_nfc_exec_op() 412 &instr->ctx.cmd.opcode, in mxic_nfc_exec_op() 418 OP_ADDR_BYTES(instr->ctx.addr.naddrs), in mxic_nfc_exec_op() 421 instr->ctx.addr.addrs, NULL, in mxic_nfc_exec_op() 422 instr->ctx.addr.naddrs); in mxic_nfc_exec_op() 430 instr->ctx.data.buf.in, in mxic_nfc_exec_op() 431 instr->ctx.data.len); in mxic_nfc_exec_op() 435 writel(instr->ctx.data.len, in mxic_nfc_exec_op() [all …]
|
D | davinci_nand.c | 633 const struct nand_op_instr *instr) in davinci_nand_exec_instr() argument 639 switch (instr->type) { in davinci_nand_exec_instr() 641 iowrite8(instr->ctx.cmd.opcode, in davinci_nand_exec_instr() 646 for (i = 0; i < instr->ctx.addr.naddrs; i++) { in davinci_nand_exec_instr() 647 iowrite8(instr->ctx.addr.addrs[i], in davinci_nand_exec_instr() 653 nand_davinci_data_in(info, instr->ctx.data.buf.in, in davinci_nand_exec_instr() 654 instr->ctx.data.len, in davinci_nand_exec_instr() 655 instr->ctx.data.force_8bit); in davinci_nand_exec_instr() 659 nand_davinci_data_out(info, instr->ctx.data.buf.out, in davinci_nand_exec_instr() 660 instr->ctx.data.len, in davinci_nand_exec_instr() [all …]
|
D | diskonchip.c | 511 const struct nand_op_instr *instr) in doc200x_exec_instr() argument 516 switch (instr->type) { in doc200x_exec_instr() 519 doc2000_write_byte(this, instr->ctx.cmd.opcode); in doc200x_exec_instr() 524 for (i = 0; i < instr->ctx.addr.naddrs; i++) { in doc200x_exec_instr() 525 u8 addr = instr->ctx.addr.addrs[i]; in doc200x_exec_instr() 537 doc2000_readbuf(this, instr->ctx.data.buf.in, in doc200x_exec_instr() 538 instr->ctx.data.len); in doc200x_exec_instr() 540 doc2001_readbuf(this, instr->ctx.data.buf.in, in doc200x_exec_instr() 541 instr->ctx.data.len); in doc200x_exec_instr() 547 doc2000_writebuf(this, instr->ctx.data.buf.out, in doc200x_exec_instr() [all …]
|
D | fsmc_nand.c | 634 const struct nand_op_instr *instr = NULL; in fsmc_exec_op() local 645 instr = &op->instrs[op_id]; in fsmc_exec_op() 647 nand_op_trace(" ", instr); in fsmc_exec_op() 649 switch (instr->type) { in fsmc_exec_op() 651 writeb_relaxed(instr->ctx.cmd.opcode, host->cmd_va); in fsmc_exec_op() 655 for (i = 0; i < instr->ctx.addr.naddrs; i++) in fsmc_exec_op() 656 writeb_relaxed(instr->ctx.addr.addrs[i], in fsmc_exec_op() 662 fsmc_read_buf_dma(host, instr->ctx.data.buf.in, in fsmc_exec_op() 663 instr->ctx.data.len); in fsmc_exec_op() 665 fsmc_read_buf(host, instr->ctx.data.buf.in, in fsmc_exec_op() [all …]
|
D | intel-nand-controller.c | 521 const struct nand_op_instr *instr = NULL; in ebu_nand_exec_op() local 530 instr = &op->instrs[op_id]; in ebu_nand_exec_op() 532 switch (instr->type) { in ebu_nand_exec_op() 535 instr->ctx.cmd.opcode); in ebu_nand_exec_op() 539 for (i = 0; i < instr->ctx.addr.naddrs; i++) in ebu_nand_exec_op() 542 instr->ctx.addr.addrs[i]); in ebu_nand_exec_op() 546 ebu_read_buf(chip, instr->ctx.data.buf.in, in ebu_nand_exec_op() 547 instr->ctx.data.len); in ebu_nand_exec_op() 551 ebu_write_buf(chip, instr->ctx.data.buf.out, in ebu_nand_exec_op() 552 instr->ctx.data.len); in ebu_nand_exec_op() [all …]
|
/drivers/mtd/ |
D | inftlmount.c | 196 struct erase_info *instr = &inftl->instr; in find_boot_record() local 205 instr->addr = ip->Reserved0 * inftl->EraseSize; in find_boot_record() 206 instr->len = inftl->EraseSize; in find_boot_record() 207 mtd_erase(mtd, instr); in find_boot_record() 365 struct erase_info *instr = &inftl->instr; in INFTL_formatblock() local 371 memset(instr, 0, sizeof(struct erase_info)); in INFTL_formatblock() 377 instr->addr = block * inftl->EraseSize; in INFTL_formatblock() 378 instr->len = inftl->mbd.mtd->erasesize; in INFTL_formatblock() 383 physblock += instr->len, instr->addr += instr->len) { in INFTL_formatblock() 386 ret = mtd_erase(inftl->mbd.mtd, instr); in INFTL_formatblock() [all …]
|
D | mtdconcat.c | 363 static int concat_erase(struct mtd_info *mtd, struct erase_info *instr) in concat_erase() argument 379 if (instr->addr & (concat->mtd.erasesize - 1)) in concat_erase() 381 if (instr->len & (concat->mtd.erasesize - 1)) in concat_erase() 392 instr->addr >= erase_regions[i].offset; i++) ; in concat_erase() 400 if (i < 0 || instr->addr & (erase_regions[i].erasesize - 1)) in concat_erase() 407 (instr->addr + instr->len) >= erase_regions[i].offset; in concat_erase() 413 if (i < 0 || ((instr->addr + instr->len) & in concat_erase() 424 *erase = *instr; in concat_erase() 425 length = instr->len; in concat_erase() 462 instr->fail_addr = erase->fail_addr + offset; in concat_erase()
|
/drivers/mtd/nand/raw/ingenic/ |
D | ingenic_nand_drv.c | 260 const struct nand_op_instr *instr) in ingenic_nand_exec_instr() argument 266 switch (instr->type) { in ingenic_nand_exec_instr() 268 writeb(instr->ctx.cmd.opcode, in ingenic_nand_exec_instr() 272 for (i = 0; i < instr->ctx.addr.naddrs; i++) in ingenic_nand_exec_instr() 273 writeb(instr->ctx.addr.addrs[i], in ingenic_nand_exec_instr() 277 if (instr->ctx.data.force_8bit || in ingenic_nand_exec_instr() 280 instr->ctx.data.buf.in, in ingenic_nand_exec_instr() 281 instr->ctx.data.len); in ingenic_nand_exec_instr() 284 instr->ctx.data.buf.in, in ingenic_nand_exec_instr() 285 instr->ctx.data.len); in ingenic_nand_exec_instr() [all …]
|
/drivers/mtd/devices/ |
D | lart.c | 358 static int flash_erase (struct mtd_info *mtd,struct erase_info *instr) in flash_erase() argument 364 printk (KERN_DEBUG "%s(addr = 0x%.8x, len = %d)\n", __func__, instr->addr, instr->len); in flash_erase() 376 for (i = 0; i < mtd->numeraseregions && instr->addr >= mtd->eraseregions[i].offset; i++) ; in flash_erase() 385 if (i < 0 || (instr->addr & (mtd->eraseregions[i].erasesize - 1))) in flash_erase() 398 … for (; i < mtd->numeraseregions && instr->addr + instr->len >= mtd->eraseregions[i].offset; i++) ; in flash_erase() 402 if (i < 0 || ((instr->addr + instr->len) & (mtd->eraseregions[i].erasesize - 1))) in flash_erase() 405 addr = instr->addr; in flash_erase() 406 len = instr->len; in flash_erase()
|
D | mtdram.c | 56 static int ram_erase(struct mtd_info *mtd, struct erase_info *instr) in ram_erase() argument 58 if (check_offs_len(mtd, instr->addr, instr->len)) in ram_erase() 60 memset((char *)mtd->priv + instr->addr, 0xff, instr->len); in ram_erase()
|
D | mtd_dataflash.c | 162 static int dataflash_erase(struct mtd_info *mtd, struct erase_info *instr) in dataflash_erase() argument 173 (long long)instr->addr, (long long)instr->len); in dataflash_erase() 175 div_u64_rem(instr->len, priv->page_size, &rem); in dataflash_erase() 178 div_u64_rem(instr->addr, priv->page_size, &rem); in dataflash_erase() 189 while (instr->len > 0) { in dataflash_erase() 197 pageaddr = div_u64(instr->addr, priv->page_size); in dataflash_erase() 198 do_block = (pageaddr & 0x7) == 0 && instr->len >= blocksize; in dataflash_erase() 224 instr->addr += blocksize; in dataflash_erase() 225 instr->len -= blocksize; in dataflash_erase() 227 instr->addr += priv->page_size; in dataflash_erase() [all …]
|
/drivers/media/pci/tw68/ |
D | tw68-risc.c | 188 } instr[8] = { 198 if (!(risc & 0x80000000) || !instr[p].name) { 203 risc, instr[p].name, (risc >> 27) & 1); 204 if (instr[p].has_data_type) 206 if (instr[p].has_byte_info) 209 if (instr[p].has_addr)
|
/drivers/misc/eeprom/ |
D | at25.c | 84 u8 instr; in at25_ee_read() local 95 instr = AT25_READ; in at25_ee_read() 98 instr |= AT25_INSTR_BIT3; in at25_ee_read() 102 *cp++ = instr; in at25_ee_read() 222 u8 instr; in at25_ee_write() local 231 instr = AT25_WRITE; in at25_ee_write() 234 instr |= AT25_INSTR_BIT3; in at25_ee_write() 235 *cp++ = instr; in at25_ee_write()
|
/drivers/mtd/ubi/ |
D | gluebi.c | 234 static int gluebi_erase(struct mtd_info *mtd, struct erase_info *instr) in gluebi_erase() argument 239 if (mtd_mod_by_ws(instr->addr, mtd) || mtd_mod_by_ws(instr->len, mtd)) in gluebi_erase() 242 lnum = mtd_div_by_eb(instr->addr, mtd); in gluebi_erase() 243 count = mtd_div_by_eb(instr->len, mtd); in gluebi_erase() 265 instr->fail_addr = (long long)lnum * mtd->erasesize; in gluebi_erase()
|