| /linux/drivers/net/wireless/intel/iwlwifi/ |
| H A D | iwl-devtrace-io.h | 18 TP_PROTO(const struct device *dev, u32 offs, u32 val), 19 TP_ARGS(dev, offs, val), 22 __field(u32, offs) 27 __entry->offs = offs; 31 __get_str(dev), __entry->offs, __entry->val) 35 TP_PROTO(const struct device *dev, u32 offs, u8 val), 36 TP_ARGS(dev, offs, val), 39 __field(u32, offs) 44 __entry->offs = offs; 48 __get_str(dev), __entry->offs, __entry->val) [all …]
|
| /linux/fs/ubifs/ |
| H A D | scan.c | 58 int offs, int quiet) in ubifs_scan_a_node() argument 66 dbg_scan("hit empty space at LEB %d:%d", lnum, offs); in ubifs_scan_a_node() 77 dbg_ntype(ch->node_type), lnum, offs); in ubifs_scan_a_node() 79 if (ubifs_check_node(c, buf, len, lnum, offs, quiet, 1)) in ubifs_scan_a_node() 89 offs + node_len + pad_len > c->leb_size) { in ubifs_scan_a_node() 92 lnum, offs); in ubifs_scan_a_node() 102 offs, offs + node_len + pad_len); in ubifs_scan_a_node() 107 lnum, offs, ALIGN(offs + node_len + pad_len, 8)); in ubifs_scan_a_node() 126 int offs, void *sbuf) in ubifs_start_scan() argument 131 dbg_scan("scan LEB %d:%d", lnum, offs); in ubifs_start_scan() [all …]
|
| H A D | io.c | 87 int ubifs_leb_read(const struct ubifs_info *c, int lnum, void *buf, int offs, in ubifs_leb_read() argument 92 err = ubi_read(c->ubi, lnum, buf, offs, len); in ubifs_leb_read() 99 len, lnum, offs, err); in ubifs_leb_read() 105 int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs, in ubifs_leb_write() argument 114 err = ubi_leb_write(c->ubi, lnum, buf, offs, len); in ubifs_leb_write() 116 err = dbg_leb_write(c, lnum, buf, offs, len); in ubifs_leb_write() 119 len, lnum, offs, err); in ubifs_leb_write() 245 int lnum, int offs, int quiet, int must_chk_crc) in ubifs_check_node() argument 251 ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_check_node() 252 ubifs_assert(c, !(offs & 7) && offs < c->leb_size); in ubifs_check_node() [all …]
|
| H A D | recovery.c | 101 int err, offs, len; in get_master_node() local 113 offs = 0; in get_master_node() 116 while (offs + UBIFS_MST_NODE_SZ <= c->leb_size) { in get_master_node() 121 offs += sz; in get_master_node() 126 if (offs) { in get_master_node() 129 offs -= sz; in get_master_node() 132 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1); in get_master_node() 133 if (ret != SCANNED_A_NODE && offs) { in get_master_node() 135 offs -= sz; in get_master_node() 138 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1); in get_master_node() [all …]
|
| H A D | lpt_commit.c | 184 int lnum, offs, len, alen, done_lsave, done_ltab, err; in layout_cnodes() local 194 offs = c->nhead_offs; in layout_cnodes() 198 if (!done_lsave && offs + c->lsave_sz <= c->leb_size) { in layout_cnodes() 201 c->lsave_offs = offs; in layout_cnodes() 202 offs += c->lsave_sz; in layout_cnodes() 206 if (offs + c->ltab_sz <= c->leb_size) { in layout_cnodes() 209 c->ltab_offs = offs; in layout_cnodes() 210 offs += c->ltab_sz; in layout_cnodes() 222 while (offs + len > c->leb_size) { in layout_cnodes() 223 alen = ALIGN(offs, c->min_io_size); in layout_cnodes() [all …]
|
| H A D | log.c | 164 int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs) in ubifs_add_bud_to_log() argument 204 if (c->bud_bytes + c->leb_size - offs > c->max_bud_bytes) { in ubifs_add_bud_to_log() 225 bud->start = offs; in ubifs_add_bud_to_log() 231 ref->offs = cpu_to_le32(bud->start); in ubifs_add_bud_to_log() 319 c->cmt_bud_bytes += wbuf->offs - bud->start; in remove_buds() 322 wbuf->offs - bud->start, c->cmt_bud_bytes); in remove_buds() 323 bud->start = wbuf->offs; in remove_buds() 395 int offs = c->jheads[i].wbuf.offs; in ubifs_log_start_commit() local 397 if (lnum == -1 || offs == c->leb_size) in ubifs_log_start_commit() 401 lnum, offs, dbg_jhead(i)); in ubifs_log_start_commit() [all …]
|
| H A D | tnc_commit.c | 26 struct ubifs_znode *znode, int lnum, int offs, int len) in make_idx_node() argument 42 br->offs = cpu_to_le32(zbr->offs); in make_idx_node() 58 znode->offs = offs; in make_idx_node() 70 zbr->offs = offs; in make_idx_node() 75 c->zroot.offs = offs; in make_idx_node() 163 static int find_old_idx(struct ubifs_info *c, int lnum, int offs) in find_old_idx() argument 175 else if (offs < o->offs) in find_old_idx() 177 else if (offs > o->offs) in find_old_idx() 199 int level, int lnum, int offs) in is_idx_node_in_use() argument 203 ret = is_idx_node_in_tnc(c, key, level, lnum, offs); in is_idx_node_in_use() [all …]
|
| H A D | tnc_misc.c | 291 int offs = zzbr->offs; in read_znode() local 300 err = ubifs_read_node(c, idx, UBIFS_IDX_NODE, len, lnum, offs); in read_znode() 308 ubifs_bad_hash(c, idx, zzbr->hash, lnum, offs); in read_znode() 317 lnum, offs, znode->level, znode->child_cnt); in read_znode() 333 zbr->offs = le32_to_cpu(br->offs); in read_znode() 341 zbr->lnum >= c->leb_cnt || zbr->offs < 0 || in read_znode() 342 zbr->offs + zbr->len > c->leb_size || zbr->offs & 7) { in read_znode() 407 ubifs_err(c, "bad indexing node at LEB %d:%d", lnum, offs); in read_znode() 489 zbr->lnum, zbr->offs); in ubifs_tnc_read_node() 492 zbr->offs); in ubifs_tnc_read_node() [all …]
|
| /linux/drivers/misc/mei/ |
| H A D | mei-trace.h | 20 TP_PROTO(const struct device *dev, const char *reg, u32 offs, u32 val), 21 TP_ARGS(dev, reg, offs, val), 25 __field(u32, offs) 31 __entry->offs = offs; 35 __get_str(dev), __get_str(reg), __entry->offs, __entry->val) 39 TP_PROTO(const struct device *dev, const char *reg, u32 offs, u32 val), 40 TP_ARGS(dev, reg, offs, val), 44 __field(u32, offs) 50 __entry->offs = offs; 54 __get_str(dev), __get_str(reg), __entry->offs, __entry->val) [all …]
|
| /linux/drivers/scsi/aic94xx/ |
| H A D | aic94xx_reg.h | 55 u32 offs, int count); 57 u32 offs, int count); 61 u32 offs) \ 64 type val = read##S (io_handle->addr + (unsigned long) offs); \ 75 u32 offs, type val) \ 78 write##S (val, io_handle->addr + (unsigned long) offs); \ 89 u16 offs) \ 91 asd_write_reg_word(asd_ha, ALTCIOADR, MnDDB_SITE + offs); \ 101 u16 offs) in asd_ddbsite_read_byte() argument 103 if (offs & 1) in asd_ddbsite_read_byte() [all …]
|
| H A D | aic94xx_reg.c | 18 unsigned long offs, u8 val) in asd_write_byte() argument 22 (unsigned long)asd_ha->io_handle[0].addr + (offs & 0xFF)); in asd_write_byte() 24 writeb(val, asd_ha->io_handle[0].addr + offs); in asd_write_byte() 29 unsigned long offs, u16 val) in asd_write_word() argument 33 (unsigned long)asd_ha->io_handle[0].addr + (offs & 0xFF)); in asd_write_word() 35 writew(val, asd_ha->io_handle[0].addr + offs); in asd_write_word() 40 unsigned long offs, u32 val) in asd_write_dword() argument 44 (unsigned long)asd_ha->io_handle[0].addr + (offs & 0xFF)); in asd_write_dword() 46 writel(val, asd_ha->io_handle[0].addr + offs); in asd_write_dword() 52 static u8 asd_read_byte(struct asd_ha_struct *asd_ha, unsigned long offs) in asd_read_byte() argument [all …]
|
| /linux/drivers/gpio/ |
| H A D | gpio-syscon.c | 58 unsigned int val, offs; in syscon_gpio_get() local 61 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset; in syscon_gpio_get() 64 (offs / SYSCON_REG_BITS) * SYSCON_REG_SIZE, &val); in syscon_gpio_get() 68 return !!(val & BIT(offs % SYSCON_REG_BITS)); in syscon_gpio_get() 74 unsigned int offs; in syscon_gpio_set() local 76 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset; in syscon_gpio_set() 79 (offs / SYSCON_REG_BITS) * SYSCON_REG_SIZE, in syscon_gpio_set() 80 BIT(offs % SYSCON_REG_BITS), in syscon_gpio_set() 81 val ? BIT(offs % SYSCON_REG_BITS) : 0); in syscon_gpio_set() 89 unsigned int offs; in syscon_gpio_dir_in() local [all …]
|
| /linux/drivers/mtd/tests/ |
| H A D | stresstest.c | 60 static int rand_len(int offs) in rand_len() argument 62 return get_random_u32_below(bufsize - offs); in rand_len() 68 int offs = rand_offs(); in do_read() local 69 int len = rand_len(offs); in do_read() 73 if (offs >= mtd->erasesize) in do_read() 74 offs -= mtd->erasesize; in do_read() 75 if (offs + len > mtd->erasesize) in do_read() 76 len = mtd->erasesize - offs; in do_read() 78 addr = (loff_t)eb * mtd->erasesize + offs; in do_read() 84 int eb = rand_eb(), offs, err, len; in do_write() local [all …]
|
| /linux/drivers/net/ethernet/altera/ |
| H A D | altera_utils.c | 9 void tse_set_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask) in tse_set_bit() argument 11 u32 value = csrrd32(ioaddr, offs); in tse_set_bit() 13 csrwr32(value, ioaddr, offs); in tse_set_bit() 16 void tse_clear_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask) in tse_clear_bit() argument 18 u32 value = csrrd32(ioaddr, offs); in tse_clear_bit() 20 csrwr32(value, ioaddr, offs); in tse_clear_bit() 23 int tse_bit_is_set(void __iomem *ioaddr, size_t offs, u32 bit_mask) in tse_bit_is_set() argument 25 u32 value = csrrd32(ioaddr, offs); in tse_bit_is_set() 29 int tse_bit_is_clear(void __iomem *ioaddr, size_t offs, u32 bit_mask) in tse_bit_is_clear() argument 31 u32 value = csrrd32(ioaddr, offs); in tse_bit_is_clear()
|
| /linux/drivers/net/can/esd/ |
| H A D | esdacc.h | 268 static inline u32 acc_read32(struct acc_core *core, unsigned short offs) in acc_read32() argument 270 return ioread32be(core->addr + offs); in acc_read32() 274 unsigned short offs, u32 v) in acc_write32() argument 276 iowrite32be(v, core->addr + offs); in acc_write32() 280 unsigned short offs, u32 v) in acc_write32_noswap() argument 282 iowrite32(v, core->addr + offs); in acc_write32_noswap() 286 unsigned short offs, u32 mask) in acc_set_bits() argument 288 u32 v = acc_read32(core, offs); in acc_set_bits() 291 acc_write32(core, offs, v); in acc_set_bits() 295 unsigned short offs, u32 mask) in acc_clear_bits() argument [all …]
|
| /linux/lib/ |
| H A D | logic_iomem.c | 106 long offs; in ioremap() local 111 offs = rreg->ops->map(offset - found->res->start, in ioremap() 114 if (offs < 0) { in ioremap() 124 ret = (void __iomem *)(IOREMAP_BIAS + (i << AREA_SHIFT) + offs); in ioremap() 257 unsigned long offs, start; in memset_io() local 271 for (offs = 0; offs < size; offs++) in memset_io() 272 area->ops->write(area->priv, start + offs, 1, value); in memset_io() 281 unsigned long offs, start; in memcpy_fromio() local 295 for (offs = 0; offs < size; offs++) in memcpy_fromio() 296 buf[offs] = area->ops->read(area->priv, start + offs, 1); in memcpy_fromio() [all …]
|
| /linux/drivers/mtd/nand/ |
| H A D | bbt.c | 77 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; in nanddev_bbt_get_block_status() local 83 status = pos[0] >> offs; in nanddev_bbt_get_block_status() 84 if (bits_per_block + offs > BITS_PER_LONG) in nanddev_bbt_get_block_status() 85 status |= pos[1] << (BITS_PER_LONG - offs); in nanddev_bbt_get_block_status() 110 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; in nanddev_bbt_set_block_status() local 116 pos[0] &= ~GENMASK(offs + bits_per_block - 1, offs); in nanddev_bbt_set_block_status() 117 pos[0] |= val << offs; in nanddev_bbt_set_block_status() 119 if (bits_per_block + offs > BITS_PER_LONG) { in nanddev_bbt_set_block_status() 120 unsigned int rbits = bits_per_block + offs - BITS_PER_LONG; in nanddev_bbt_set_block_status()
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | nand_bbt.c | 113 if (memcmp(buf + paglen + td->offs, td->pattern, td->len)) in check_pattern() 131 if (memcmp(buf + td->offs, td->pattern, td->len)) in check_short_pattern() 167 struct nand_bbt_descr *td, int offs) in read_bbt() argument 218 (loff_t)(offs + act) << in read_bbt() 220 bbt_mark_entry(this, offs + act, in read_bbt() 230 (loff_t)(offs + act) << in read_bbt() 234 bbt_mark_entry(this, offs + act, in read_bbt() 237 bbt_mark_entry(this, offs + act, in read_bbt() 267 int offs = 0; in read_abs_bbt() local 272 td, offs); in read_abs_bbt() [all …]
|
| /linux/drivers/mtd/parsers/ |
| H A D | scpart.c | 53 uint32_t offs; in scpart_scan_partmap() local 71 for (offs = MAP_OFFS_IN_BLK; in scpart_scan_partmap() 72 offs < master->erasesize - sizeof(*tmpdesc); in scpart_scan_partmap() 73 offs += sizeof(*tmpdesc)) { in scpart_scan_partmap() 74 tmpdesc = (struct sc_part_desc *)&buf[offs]; in scpart_scan_partmap() 107 loff_t offs = 0; in scpart_find_partmap() local 112 (offs < master->size) && in scpart_find_partmap() 113 !mtd_block_isbad(master, offs)) { in scpart_find_partmap() 114 res2 = mtd_read(master, offs, PART_MAGIC_LEN, &retlen, rdbuf); in scpart_find_partmap() 120 pr_debug("Signature found at 0x%llx\n", offs); in scpart_find_partmap() [all …]
|
| /linux/security/integrity/platform_certs/ |
| H A D | efi_parser.c | 43 unsigned int offs = 0; in parse_efi_signature_list() local 57 offs, in parse_efi_signature_list() 68 __func__, offs); in parse_efi_signature_list() 77 pr_devel("- bad size combo @%x\n", offs); in parse_efi_signature_list() 85 offs += lsize; in parse_efi_signature_list() 91 offs += sizeof(list) + hsize; in parse_efi_signature_list() 96 pr_devel("ELEM[%04x]\n", offs); in parse_efi_signature_list() 103 offs += esize; in parse_efi_signature_list()
|
| /linux/tools/testing/selftests/arm64/signal/testcases/ |
| H A D | testcases.c | 111 size_t offs = 0; in validate_reserved() local 127 while (head && !terminated && offs < resv_sz) { in validate_reserved() 143 offs = 0; in validate_reserved() 249 offs += head->size; in validate_reserved() 250 if (resv_sz < offs + sizeof(*head)) { in validate_reserved() 309 size_t offs = 0; in get_starting_head() local 312 head = get_terminator(shead, resv_sz, &offs); in get_starting_head() 316 if (resv_sz - offs < need_sz) { in get_starting_head() 318 resv_sz - offs); in get_starting_head() 319 head = get_header(shead, EXTRA_MAGIC, resv_sz, &offs); in get_starting_head() [all …]
|
| /linux/drivers/mfd/ |
| H A D | max8925-core.c | 332 int offs; /* bit offset in mask register */ member 341 .offs = 1 << 0, 346 .offs = 1 << 1, 351 .offs = 1 << 2, 356 .offs = 1 << 0, 361 .offs = 1 << 1, 366 .offs = 1 << 2, 371 .offs = 1 << 3, 376 .offs = 1 << 4, 381 .offs = 1 << 5, [all …]
|
| /linux/drivers/s390/crypto/ |
| H A D | zcrypt_msgtype6.c | 520 int offs = 0, i; in xcrb_msg_to_type6_ep11cprb_msgx() local 569 if (pld[offs++] != 0x30) in xcrb_msg_to_type6_ep11cprb_msgx() 572 i = asn1_length_decode(pld + offs, pld_len - offs, &u); in xcrb_msg_to_type6_ep11cprb_msgx() 575 offs += i; in xcrb_msg_to_type6_ep11cprb_msgx() 576 if (offs >= pld_len || u > pld_len - offs) in xcrb_msg_to_type6_ep11cprb_msgx() 579 if (pld[offs++] != 0x04) in xcrb_msg_to_type6_ep11cprb_msgx() 582 if (offs >= pld_len) in xcrb_msg_to_type6_ep11cprb_msgx() 584 i = asn1_length_decode(pld + offs, pld_len - offs, &u); in xcrb_msg_to_type6_ep11cprb_msgx() 587 offs += i; in xcrb_msg_to_type6_ep11cprb_msgx() 588 if (offs >= pld_len || u > pld_len - offs) in xcrb_msg_to_type6_ep11cprb_msgx() [all …]
|
| /linux/drivers/spi/ |
| H A D | spi-rpc-if.c | 21 u64 *offs, size_t *len) in rpcif_spi_mem_prepare() argument 41 if (spi_op->data.nbytes || (offs && len)) { in rpcif_spi_mem_prepare() 61 rpcif_prepare(rpc->dev, &rpc_op, offs, len); in rpcif_spi_mem_prepare() 79 u64 offs, size_t len, const void *buf) in xspi_spi_mem_dirmap_write() argument 83 if (offs + desc->info.offset + len > U32_MAX) in xspi_spi_mem_dirmap_write() 86 rpcif_spi_mem_prepare(desc->mem->spi, desc->info.op_tmpl, &offs, &len); in xspi_spi_mem_dirmap_write() 88 return xspi_dirmap_write(rpc->dev, offs, len, buf); in xspi_spi_mem_dirmap_write() 92 u64 offs, size_t len, void *buf) in rpcif_spi_mem_dirmap_read() argument 97 if (offs + desc->info.offset + len > U32_MAX) in rpcif_spi_mem_dirmap_read() 100 rpcif_spi_mem_prepare(desc->mem->spi, desc->info.op_tmpl, &offs, &len); in rpcif_spi_mem_dirmap_read() [all …]
|
| /linux/arch/arm/mach-s3c/ |
| H A D | s3c64xx.c | 271 int offs = eint_offset(data->irq); in s3c_irq_eint_set_type() local 278 if (offs > 27) in s3c_irq_eint_set_type() 281 if (offs <= 15) in s3c_irq_eint_set_type() 316 if (offs <= 15) in s3c_irq_eint_set_type() 317 shift = (offs / 2) * 4; in s3c_irq_eint_set_type() 319 shift = ((offs - 16) / 2) * 4; in s3c_irq_eint_set_type() 329 if (offs < 16) { in s3c_irq_eint_set_type() 330 pin = S3C64XX_GPN(offs); in s3c_irq_eint_set_type() 332 } else if (offs < 23) { in s3c_irq_eint_set_type() 333 pin = S3C64XX_GPL(offs + 8 - 16); in s3c_irq_eint_set_type() [all …]
|