Home
last modified time | relevance | path

Searched refs:offs (Results 1 – 25 of 283) sorted by relevance

12345678910>>...12

/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/
Diwl-devtrace-io.h38 TP_PROTO(const struct device *dev, u32 offs, u32 val),
39 TP_ARGS(dev, offs, val),
42 __field(u32, offs)
47 __entry->offs = offs;
51 __get_str(dev), __entry->offs, __entry->val)
55 TP_PROTO(const struct device *dev, u32 offs, u8 val),
56 TP_ARGS(dev, offs, val),
59 __field(u32, offs)
64 __entry->offs = offs;
68 __get_str(dev), __entry->offs, __entry->val)
[all …]
Diwl-devtrace.h38 int offs = 24; /* start with normal header length */ in iwl_trace_data() local
50 offs += 6; in iwl_trace_data()
52 offs += 2; in iwl_trace_data()
56 offs += 6; in iwl_trace_data()
58 return skb->len <= offs + 2 || in iwl_trace_data()
59 *(__be16 *)(skb->data + offs) != cpu_to_be16(ETH_P_PAE); in iwl_trace_data()
/Linux-v4.19/fs/ubifs/
Dscan.c70 int offs, int quiet) in ubifs_scan_a_node() argument
78 dbg_scan("hit empty space at LEB %d:%d", lnum, offs); in ubifs_scan_a_node()
89 dbg_ntype(ch->node_type), lnum, offs); in ubifs_scan_a_node()
91 if (ubifs_check_node(c, buf, lnum, offs, quiet, 1)) in ubifs_scan_a_node()
101 offs + node_len + pad_len > c->leb_size) { in ubifs_scan_a_node()
104 lnum, offs); in ubifs_scan_a_node()
114 offs, offs + node_len + pad_len); in ubifs_scan_a_node()
119 lnum, offs, ALIGN(offs + node_len + pad_len, 8)); in ubifs_scan_a_node()
138 int offs, void *sbuf) in ubifs_start_scan() argument
143 dbg_scan("scan LEB %d:%d", lnum, offs); in ubifs_start_scan()
[all …]
Dio.c99 int ubifs_leb_read(const struct ubifs_info *c, int lnum, void *buf, int offs, in ubifs_leb_read() argument
104 err = ubi_read(c->ubi, lnum, buf, offs, len); in ubifs_leb_read()
111 len, lnum, offs, err); in ubifs_leb_read()
117 int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs, in ubifs_leb_write() argument
126 err = ubi_leb_write(c->ubi, lnum, buf, offs, len); in ubifs_leb_write()
128 err = dbg_leb_write(c, lnum, buf, offs, len); in ubifs_leb_write()
131 len, lnum, offs, err); in ubifs_leb_write()
238 int offs, int quiet, int must_chk_crc) in ubifs_check_node() argument
244 ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_check_node()
245 ubifs_assert(c, !(offs & 7) && offs < c->leb_size); in ubifs_check_node()
[all …]
Drecovery.c113 int err, offs, len; in get_master_node() local
125 offs = 0; in get_master_node()
128 while (offs + UBIFS_MST_NODE_SZ <= c->leb_size) { in get_master_node()
133 offs += sz; in get_master_node()
138 if (offs) { in get_master_node()
141 offs -= sz; in get_master_node()
144 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1); in get_master_node()
145 if (ret != SCANNED_A_NODE && offs) { in get_master_node()
147 offs -= sz; in get_master_node()
150 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1); in get_master_node()
[all …]
Dlpt_commit.c196 int lnum, offs, len, alen, done_lsave, done_ltab, err; in layout_cnodes() local
206 offs = c->nhead_offs; in layout_cnodes()
210 if (!done_lsave && offs + c->lsave_sz <= c->leb_size) { in layout_cnodes()
213 c->lsave_offs = offs; in layout_cnodes()
214 offs += c->lsave_sz; in layout_cnodes()
218 if (offs + c->ltab_sz <= c->leb_size) { in layout_cnodes()
221 c->ltab_offs = offs; in layout_cnodes()
222 offs += c->ltab_sz; in layout_cnodes()
234 while (offs + len > c->leb_size) { in layout_cnodes()
235 alen = ALIGN(offs, c->min_io_size); in layout_cnodes()
[all …]
Dreplay.c57 int offs; member
224 r->lnum, r->offs, r->len, r->deletion, r->sqnum); in apply_replay_entry()
230 err = ubifs_tnc_add_nm(c, &r->key, r->lnum, r->offs, in apply_replay_entry()
250 err = ubifs_tnc_add(c, &r->key, r->lnum, r->offs, in apply_replay_entry()
354 static int insert_node(struct ubifs_info *c, int lnum, int offs, int len, in insert_node() argument
361 dbg_mntk(key, "add LEB %d:%d, key ", lnum, offs); in insert_node()
373 r->offs = offs; in insert_node()
402 static int insert_dent(struct ubifs_info *c, int lnum, int offs, int len, in insert_dent() argument
409 dbg_mntk(key, "add LEB %d:%d, key ", lnum, offs); in insert_dent()
426 r->offs = offs; in insert_dent()
[all …]
Dlog.c176 int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs) in ubifs_add_bud_to_log() argument
216 if (c->bud_bytes + c->leb_size - offs > c->max_bud_bytes) { in ubifs_add_bud_to_log()
237 bud->start = offs; in ubifs_add_bud_to_log()
242 ref->offs = cpu_to_le32(bud->start); in ubifs_add_bud_to_log()
322 c->cmt_bud_bytes += wbuf->offs - bud->start; in remove_buds()
325 wbuf->offs - bud->start, c->cmt_bud_bytes); in remove_buds()
326 bud->start = wbuf->offs; in remove_buds()
390 int offs = c->jheads[i].wbuf.offs; in ubifs_log_start_commit() local
392 if (lnum == -1 || offs == c->leb_size) in ubifs_log_start_commit()
396 lnum, offs, dbg_jhead(i)); in ubifs_log_start_commit()
[all …]
Dtnc.c38 int len, int lnum, int offs);
82 static int insert_old_idx(struct ubifs_info *c, int lnum, int offs) in insert_old_idx() argument
91 old_idx->offs = offs; in insert_old_idx()
101 else if (offs < o->offs) in insert_old_idx()
103 else if (offs > o->offs) in insert_old_idx()
130 return insert_old_idx(c, zbr->lnum, zbr->offs); in insert_old_idx_znode()
134 c->zroot.offs); in insert_old_idx_znode()
155 err = insert_old_idx(c, zbr->lnum, zbr->offs); in ins_clr_old_idx_znode()
159 zbr->offs = 0; in ins_clr_old_idx_znode()
164 err = insert_old_idx(c, c->zroot.lnum, c->zroot.offs); in ins_clr_old_idx_znode()
[all …]
Dtnc_commit.c38 struct ubifs_znode *znode, int lnum, int offs, int len) in make_idx_node() argument
53 br->offs = cpu_to_le32(zbr->offs); in make_idx_node()
67 znode->offs = offs; in make_idx_node()
79 zbr->offs = offs; in make_idx_node()
83 c->zroot.offs = offs; in make_idx_node()
170 static int find_old_idx(struct ubifs_info *c, int lnum, int offs) in find_old_idx() argument
182 else if (offs < o->offs) in find_old_idx()
184 else if (offs > o->offs) in find_old_idx()
206 int level, int lnum, int offs) in is_idx_node_in_use() argument
210 ret = is_idx_node_in_tnc(c, key, level, lnum, offs); in is_idx_node_in_use()
[all …]
Dmaster.c40 int lnum, offs = 0, nodes_cnt; in scan_for_master() local
54 offs = snod->offs; in scan_for_master()
70 if (snod->offs != offs) in scan_for_master()
76 c->mst_offs = offs; in scan_for_master()
86 snod->type, lnum, snod->offs); in scan_for_master()
127 c->zroot.offs >= c->leb_size || c->zroot.offs & 7) { in validate_master()
283 c->zroot.offs = le32_to_cpu(c->mst_node->root_offs); in ubifs_read_master()
361 int err, lnum, offs, len; in ubifs_write_master() local
368 offs = c->mst_offs + c->mst_node_alsz; in ubifs_write_master()
371 if (offs + UBIFS_MST_NODE_SZ > c->leb_size) { in ubifs_write_master()
[all …]
Djournal.c106 int err = 0, err1, retries = 0, avail, lnum, offs, squeeze; in reserve_space() local
124 avail = c->leb_size - wbuf->offs - wbuf->used; in reserve_space()
132 lnum = ubifs_find_free_space(c, len, &offs, squeeze); in reserve_space()
173 avail = c->leb_size - wbuf->offs - wbuf->used; in reserve_space()
182 lnum, wbuf->lnum, wbuf->offs + wbuf->used); in reserve_space()
189 offs = 0; in reserve_space()
203 err = ubifs_add_bud_to_log(c, jhead, lnum, offs); in reserve_space()
206 err = ubifs_wbuf_seek_nolock(wbuf, lnum, offs); in reserve_space()
245 int *lnum, int *offs) in write_node() argument
252 *offs = c->jheads[jhead].wbuf.offs + c->jheads[jhead].wbuf.used; in write_node()
[all …]
/Linux-v4.19/drivers/mtd/tests/
Dstresstest.c70 unsigned int offs; in rand_offs() local
72 offs = prandom_u32(); in rand_offs()
73 offs %= bufsize; in rand_offs()
74 return offs; in rand_offs()
77 static int rand_len(int offs) in rand_len() argument
82 len %= (bufsize - offs); in rand_len()
89 int offs = rand_offs(); in do_read() local
90 int len = rand_len(offs); in do_read()
94 if (offs >= mtd->erasesize) in do_read()
95 offs -= mtd->erasesize; in do_read()
[all …]
/Linux-v4.19/drivers/misc/mei/
Dmei-trace.h30 TP_PROTO(const struct device *dev, const char *reg, u32 offs, u32 val),
31 TP_ARGS(dev, reg, offs, val),
35 __field(u32, offs)
41 __entry->offs = offs;
45 __get_str(dev), __entry->reg, __entry->offs, __entry->val)
49 TP_PROTO(const struct device *dev, const char *reg, u32 offs, u32 val),
50 TP_ARGS(dev, reg, offs, val),
54 __field(u32, offs)
60 __entry->offs = offs;
64 __get_str(dev), __entry->reg, __entry->offs, __entry->val)
[all …]
/Linux-v4.19/drivers/scsi/aic94xx/
Daic94xx_reg.h73 u32 offs, int count);
75 u32 offs, int count);
79 u32 offs) \
82 type val = read##S (io_handle->addr + (unsigned long) offs); \
93 u32 offs, type val) \
96 write##S (val, io_handle->addr + (unsigned long) offs); \
107 u16 offs) \
109 asd_write_reg_word(asd_ha, ALTCIOADR, MnDDB_SITE + offs); \
119 u16 offs) in asd_ddbsite_read_byte() argument
121 if (offs & 1) in asd_ddbsite_read_byte()
[all …]
Daic94xx_reg.c36 unsigned long offs, u8 val) in asd_write_byte() argument
40 (unsigned long)asd_ha->io_handle[0].addr + (offs & 0xFF)); in asd_write_byte()
42 writeb(val, asd_ha->io_handle[0].addr + offs); in asd_write_byte()
47 unsigned long offs, u16 val) in asd_write_word() argument
51 (unsigned long)asd_ha->io_handle[0].addr + (offs & 0xFF)); in asd_write_word()
53 writew(val, asd_ha->io_handle[0].addr + offs); in asd_write_word()
58 unsigned long offs, u32 val) in asd_write_dword() argument
62 (unsigned long)asd_ha->io_handle[0].addr + (offs & 0xFF)); in asd_write_dword()
64 writel(val, asd_ha->io_handle[0].addr + offs); in asd_write_dword()
70 static u8 asd_read_byte(struct asd_ha_struct *asd_ha, unsigned long offs) in asd_read_byte() argument
[all …]
/Linux-v4.19/drivers/gpio/
Dgpio-syscon.c65 unsigned int val, offs; in syscon_gpio_get() local
68 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset; in syscon_gpio_get()
71 (offs / SYSCON_REG_BITS) * SYSCON_REG_SIZE, &val); in syscon_gpio_get()
75 return !!(val & BIT(offs % SYSCON_REG_BITS)); in syscon_gpio_get()
81 unsigned int offs; in syscon_gpio_set() local
83 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset; in syscon_gpio_set()
86 (offs / SYSCON_REG_BITS) * SYSCON_REG_SIZE, in syscon_gpio_set()
87 BIT(offs % SYSCON_REG_BITS), in syscon_gpio_set()
88 val ? BIT(offs % SYSCON_REG_BITS) : 0); in syscon_gpio_set()
96 unsigned int offs; in syscon_gpio_dir_in() local
[all …]
/Linux-v4.19/drivers/net/ethernet/altera/
Daltera_utils.c20 void tse_set_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask) in tse_set_bit() argument
22 u32 value = csrrd32(ioaddr, offs); in tse_set_bit()
24 csrwr32(value, ioaddr, offs); in tse_set_bit()
27 void tse_clear_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask) in tse_clear_bit() argument
29 u32 value = csrrd32(ioaddr, offs); in tse_clear_bit()
31 csrwr32(value, ioaddr, offs); in tse_clear_bit()
34 int tse_bit_is_set(void __iomem *ioaddr, size_t offs, u32 bit_mask) in tse_bit_is_set() argument
36 u32 value = csrrd32(ioaddr, offs); in tse_bit_is_set()
40 int tse_bit_is_clear(void __iomem *ioaddr, size_t offs, u32 bit_mask) in tse_bit_is_clear() argument
42 u32 value = csrrd32(ioaddr, offs); in tse_bit_is_clear()
Daltera_utils.h22 void tse_set_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask);
23 void tse_clear_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask);
24 int tse_bit_is_set(void __iomem *ioaddr, size_t offs, u32 bit_mask);
25 int tse_bit_is_clear(void __iomem *ioaddr, size_t offs, u32 bit_mask);
/Linux-v4.19/drivers/mtd/nand/
Dbbt.c79 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; in nanddev_bbt_get_block_status() local
85 status = pos[0] >> offs; in nanddev_bbt_get_block_status()
86 if (bits_per_block + offs > BITS_PER_LONG) in nanddev_bbt_get_block_status()
87 status |= pos[1] << (BITS_PER_LONG - offs); in nanddev_bbt_get_block_status()
112 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; in nanddev_bbt_set_block_status() local
118 pos[0] &= ~GENMASK(offs + bits_per_block - 1, offs); in nanddev_bbt_set_block_status()
119 pos[0] |= val << offs; in nanddev_bbt_set_block_status()
121 if (bits_per_block + offs > BITS_PER_LONG) { in nanddev_bbt_set_block_status()
122 unsigned int rbits = bits_per_block + offs - BITS_PER_LONG; in nanddev_bbt_set_block_status()
/Linux-v4.19/drivers/pinctrl/samsung/
Dpinctrl-exynos.h60 #define EXYNOS_PIN_BANK_EINTG(pins, reg, id, offs) \ argument
66 .eint_offset = offs, \
70 #define EXYNOS_PIN_BANK_EINTW(pins, reg, id, offs) \ argument
76 .eint_offset = offs, \
80 #define EXYNOS5433_PIN_BANK_EINTG(pins, reg, id, offs) \ argument
86 .eint_offset = offs, \
90 #define EXYNOS5433_PIN_BANK_EINTW(pins, reg, id, offs) \ argument
96 .eint_offset = offs, \
100 #define EXYNOS5433_PIN_BANK_EINTW_EXT(pins, reg, id, offs, pctl_idx) \ argument
106 .eint_offset = offs, \
/Linux-v4.19/drivers/mtd/nand/raw/
Dnand_bbt.c79 static int nand_update_bbt(struct mtd_info *mtd, loff_t offs);
118 if (memcmp(buf + paglen + td->offs, td->pattern, td->len)) in check_pattern()
136 if (memcmp(buf + td->offs, td->pattern, td->len)) in check_short_pattern()
172 struct nand_bbt_descr *td, int offs) in read_bbt() argument
223 (loff_t)(offs + act) << in read_bbt()
225 bbt_mark_entry(this, offs + act, in read_bbt()
235 (loff_t)(offs + act) << in read_bbt()
239 bbt_mark_entry(this, offs + act, in read_bbt()
242 bbt_mark_entry(this, offs + act, in read_bbt()
270 int offs = 0; in read_abs_bbt() local
[all …]
/Linux-v4.19/drivers/mfd/
Dmax8925-core.c336 int offs; /* bit offset in mask register */ member
345 .offs = 1 << 0,
350 .offs = 1 << 1,
355 .offs = 1 << 2,
360 .offs = 1 << 0,
365 .offs = 1 << 1,
370 .offs = 1 << 2,
375 .offs = 1 << 3,
380 .offs = 1 << 4,
385 .offs = 1 << 5,
[all …]
/Linux-v4.19/drivers/clk/tegra/
Dclk-dfll.c323 static inline u32 dfll_readl(struct tegra_dfll *td, u32 offs) in dfll_readl() argument
325 return __raw_readl(td->base + offs); in dfll_readl()
328 static inline void dfll_writel(struct tegra_dfll *td, u32 val, u32 offs) in dfll_writel() argument
330 WARN_ON(offs >= DFLL_I2C_CFG); in dfll_writel()
331 __raw_writel(val, td->base + offs); in dfll_writel()
341 static inline u32 dfll_i2c_readl(struct tegra_dfll *td, u32 offs) in dfll_i2c_readl() argument
343 return __raw_readl(td->i2c_base + offs); in dfll_i2c_readl()
346 static inline void dfll_i2c_writel(struct tegra_dfll *td, u32 val, u32 offs) in dfll_i2c_writel() argument
348 __raw_writel(val, td->i2c_base + offs); in dfll_i2c_writel()
1154 u32 val, offs; in attr_registers_show() local
[all …]
/Linux-v4.19/drivers/nvmem/
Duniphier-efuse.c32 int offs; in uniphier_reg_read() local
34 for (offs = 0; offs < bytes; offs += sizeof(u8)) in uniphier_reg_read()
35 *val++ = readb(priv->base + reg + offs); in uniphier_reg_read()

12345678910>>...12