Searched refs:offs (Results 1 - 25 of 384) sorted by relevance

1234567891011>>

/linux-master/drivers/net/ethernet/altera/
H A Daltera_utils.c9 void tse_set_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask) argument
11 u32 value = csrrd32(ioaddr, offs);
13 csrwr32(value, ioaddr, offs);
16 void tse_clear_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask) argument
18 u32 value = csrrd32(ioaddr, offs);
20 csrwr32(value, ioaddr, offs);
23 int tse_bit_is_set(void __iomem *ioaddr, size_t offs, u32 bit_mask) argument
25 u32 value = csrrd32(ioaddr, offs);
29 int tse_bit_is_clear(void __iomem *ioaddr, size_t offs, u32 bit_mask) argument
31 u32 value = csrrd32(ioaddr, offs);
[all...]
H A Daltera_utils.h12 void tse_set_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask);
13 void tse_clear_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask);
14 int tse_bit_is_set(void __iomem *ioaddr, size_t offs, u32 bit_mask);
15 int tse_bit_is_clear(void __iomem *ioaddr, size_t offs, u32 bit_mask);
/linux-master/fs/ubifs/
H A Dscan.c52 * @offs: offset within the logical eraseblock
58 int offs, int quiet)
66 dbg_scan("hit empty space at LEB %d:%d", lnum, offs);
77 dbg_ntype(ch->node_type), lnum, offs);
79 if (ubifs_check_node(c, buf, len, lnum, offs, quiet, 1))
89 offs + node_len + pad_len > c->leb_size) {
92 lnum, offs);
102 offs, offs + node_len + pad_len);
107 lnum, offs, ALIG
57 ubifs_scan_a_node(const struct ubifs_info *c, void *buf, int len, int lnum, int offs, int quiet) argument
125 ubifs_start_scan(const struct ubifs_info *c, int lnum, int offs, void *sbuf) argument
163 ubifs_end_scan(const struct ubifs_info *c, struct ubifs_scan_leb *sleb, int lnum, int offs) argument
181 ubifs_add_snod(const struct ubifs_info *c, struct ubifs_scan_leb *sleb, void *buf, int offs) argument
225 ubifs_scanned_corruption(const struct ubifs_info *c, int lnum, int offs, void *buf) argument
254 ubifs_scan(const struct ubifs_info *c, int lnum, int offs, void *sbuf, int quiet) argument
[all...]
H A Drecovery.c101 int err, offs, len; local
113 offs = 0;
116 while (offs + UBIFS_MST_NODE_SZ <= c->leb_size) {
121 offs += sz;
126 if (offs) {
129 offs -= sz;
132 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1);
133 if (ret != SCANNED_A_NODE && offs) {
135 offs -= sz;
138 ret = ubifs_scan_a_node(c, buf, len, lnum, offs,
402 is_last_write(const struct ubifs_info *c, void *buf, int offs) argument
429 clean_buf(const struct ubifs_info *c, void **buf, int lnum, int *offs, int *len) argument
458 no_more_nodes(const struct ubifs_info *c, void *buf, int len, int lnum, int offs) argument
562 drop_last_group(struct ubifs_scan_leb *sleb, int *offs) argument
591 drop_last_node(struct ubifs_scan_leb *sleb, int *offs) argument
622 ubifs_recover_leb(struct ubifs_info *c, int lnum, int offs, void *sbuf, int jhead) argument
799 get_cs_sqnum(struct ubifs_info *c, int lnum, int offs, unsigned long long *cs_sqnum) argument
856 ubifs_recover_log_leb(struct ubifs_info *c, int lnum, int offs, void *sbuf) argument
912 recover_head(struct ubifs_info *c, int lnum, int offs, void *sbuf) argument
985 int err, lnum = ucleb->lnum, offs = 0, len = ucleb->endpt, quiet = 1; local
1407 int err, lnum, offs, len; local
[all...]
H A Dio.c38 * have to make sure that the write-buffer offset (@wbuf->offs) becomes aligned
87 int ubifs_leb_read(const struct ubifs_info *c, int lnum, void *buf, int offs, argument
92 err = ubi_read(c->ubi, lnum, buf, offs, len);
99 len, lnum, offs, err);
105 int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs, argument
114 err = ubi_leb_write(c->ubi, lnum, buf, offs, len);
116 err = dbg_leb_write(c, lnum, buf, offs, len);
119 len, lnum, offs, err);
221 * @offs: offset within the logical eraseblock
245 int lnum, int offs, in
244 ubifs_check_node(const struct ubifs_info *c, const void *buf, int len, int lnum, int offs, int quiet, int must_chk_crc) argument
633 ubifs_wbuf_seek_nolock(struct ubifs_wbuf *wbuf, int lnum, int offs) argument
957 ubifs_write_node_hmac(struct ubifs_info *c, void *buf, int len, int lnum, int offs, int hmac_offs) argument
998 ubifs_write_node(struct ubifs_info *c, void *buf, int len, int lnum, int offs) argument
1019 ubifs_read_node_wbuf(struct ubifs_wbuf *wbuf, void *buf, int type, int len, int lnum, int offs) argument
1096 ubifs_read_node(const struct ubifs_info *c, void *buf, int type, int len, int lnum, int offs) argument
[all...]
H A Dlpt_commit.c184 int lnum, offs, len, alen, done_lsave, done_ltab, err; local
194 offs = c->nhead_offs;
198 if (!done_lsave && offs + c->lsave_sz <= c->leb_size) {
201 c->lsave_offs = offs;
202 offs += c->lsave_sz;
206 if (offs + c->ltab_sz <= c->leb_size) {
209 c->ltab_offs = offs;
210 offs += c->ltab_sz;
222 while (offs + len > c->leb_size) {
223 alen = ALIGN(offs,
362 int lnum, offs, len, from, err, wlen, alen, done_ltab, done_lsave; local
860 make_nnode_dirty(struct ubifs_info *c, int node_num, int lnum, int offs) argument
909 make_pnode_dirty(struct ubifs_info *c, int node_num, int lnum, int offs) argument
939 make_ltab_dirty(struct ubifs_info *c, int lnum, int offs) argument
964 make_lsave_dirty(struct ubifs_info *c, int lnum, int offs) argument
991 make_node_dirty(struct ubifs_info *c, int node_type, int node_num, int lnum, int offs) argument
1035 int offs, pad_len; local
1107 int err, len = c->leb_size, node_type, node_num, node_len, offs; local
1476 dbg_is_nnode_dirty(struct ubifs_info *c, int lnum, int offs) argument
1511 dbg_is_pnode_dirty(struct ubifs_info *c, int lnum, int offs) argument
1540 dbg_is_ltab_dirty(struct ubifs_info *c, int lnum, int offs) argument
1553 dbg_is_lsave_dirty(struct ubifs_info *c, int lnum, int offs) argument
1567 dbg_is_node_dirty(struct ubifs_info *c, int node_type, int lnum, int offs) argument
1843 int err, len = c->leb_size, node_type, node_num, node_len, offs; local
[all...]
/linux-master/drivers/net/wireless/intel/iwlwifi/
H A Diwl-devtrace-io.h18 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
[all...]
H A Diwl-devtrace.h21 int offs = 24; /* start with normal header length */ local
37 offs += 6;
39 offs += 2;
43 offs += 6;
45 return skb->len <= offs + 2 ||
46 *(__be16 *)(skb->data + offs) != cpu_to_be16(ETH_P_PAE);
/linux-master/drivers/misc/mei/
H A Dmei-trace.h20 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), __entry->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
[all...]
/linux-master/drivers/mtd/nand/
H A Dbbt.c77 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; local
83 status = pos[0] >> offs;
84 if (bits_per_block + offs > BITS_PER_LONG)
85 status |= pos[1] << (BITS_PER_LONG - offs);
110 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; local
116 pos[0] &= ~GENMASK(offs + bits_per_block - 1, offs);
117 pos[0] |= val << offs;
119 if (bits_per_block + offs > BITS_PER_LONG) {
120 unsigned int rbits = bits_per_block + offs
[all...]
/linux-master/drivers/gpio/
H A Dgpio-syscon.c59 unsigned int val, offs; local
62 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset;
65 (offs / SYSCON_REG_BITS) * SYSCON_REG_SIZE, &val);
69 return !!(val & BIT(offs % SYSCON_REG_BITS));
75 unsigned int offs; local
77 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset;
80 (offs / SYSCON_REG_BITS) * SYSCON_REG_SIZE,
81 BIT(offs % SYSCON_REG_BITS),
82 val ? BIT(offs % SYSCON_REG_BITS) : 0);
90 unsigned int offs; local
108 unsigned int offs; local
135 unsigned int offs; local
163 unsigned int offs; local
[all...]
/linux-master/drivers/scsi/aic94xx/
H A Daic94xx_reg.h55 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)
103 if (offs
99 asd_ddbsite_read_byte(struct asd_ha_struct *asd_ha, u16 ddb_site_no, u16 offs) argument
125 asd_ddbsite_write_byte(struct asd_ha_struct *asd_ha, u16 ddb_site_no, u16 offs, u8 val) argument
152 asd_scbsite_read_byte(struct asd_ha_struct *asd_ha, u16 scb_site_no, u16 offs) argument
178 asd_scbsite_write_byte(struct asd_ha_struct *asd_ha, u16 scb_site_no, u16 offs, u8 val) argument
206 asd_ddbsite_update_word(struct asd_ha_struct *asd_ha, u16 ddb_site_no, u16 offs, u16 oldval, u16 newval) argument
227 asd_ddbsite_update_byte(struct asd_ha_struct *asd_ha, u16 ddb_site_no, u16 offs, u8 _oldval, u8 _newval) argument
[all...]
H A Daic94xx_reg.c15 * this function is *offs = val.
18 unsigned long offs, u8 val)
22 (unsigned long)asd_ha->io_handle[0].addr + (offs & 0xFF));
24 writeb(val, asd_ha->io_handle[0].addr + offs);
29 unsigned long offs, u16 val)
33 (unsigned long)asd_ha->io_handle[0].addr + (offs & 0xFF));
35 writew(val, asd_ha->io_handle[0].addr + offs);
40 unsigned long offs, u32 val)
44 (unsigned long)asd_ha->io_handle[0].addr + (offs & 0xFF));
46 writel(val, asd_ha->io_handle[0].addr + offs);
17 asd_write_byte(struct asd_ha_struct *asd_ha, unsigned long offs, u8 val) argument
28 asd_write_word(struct asd_ha_struct *asd_ha, unsigned long offs, u16 val) argument
39 asd_write_dword(struct asd_ha_struct *asd_ha, unsigned long offs, u32 val) argument
52 asd_read_byte(struct asd_ha_struct *asd_ha, unsigned long offs) argument
64 asd_read_word(struct asd_ha_struct *asd_ha, unsigned long offs) argument
77 asd_read_dword(struct asd_ha_struct *asd_ha, unsigned long offs) argument
284 asd_read_reg_string(struct asd_ha_struct *asd_ha, void *dst, u32 offs, int count) argument
303 asd_write_reg_string(struct asd_ha_struct *asd_ha, void *src, u32 offs, int count) argument
[all...]
/linux-master/security/integrity/platform_certs/
H A Defi_parser.c43 unsigned int offs = 0; local
57 offs,
68 __func__, offs);
77 pr_devel("- bad size combo @%x\n", offs);
85 offs += lsize;
91 offs += sizeof(list) + hsize;
96 pr_devel("ELEM[%04x]\n", offs);
103 offs += esize;
/linux-master/drivers/pinctrl/samsung/
H A Dpinctrl-exynos.h64 #define EXYNOS_PIN_BANK_EINTG(pins, reg, id, offs) \
70 .eint_offset = offs, \
74 #define EXYNOS_PIN_BANK_EINTW(pins, reg, id, offs) \
80 .eint_offset = offs, \
84 #define EXYNOS5433_PIN_BANK_EINTG(pins, reg, id, offs) \
90 .eint_offset = offs, \
94 #define EXYNOS5433_PIN_BANK_EINTW(pins, reg, id, offs) \
100 .eint_offset = offs, \
104 #define EXYNOS5433_PIN_BANK_EINTW_EXT(pins, reg, id, offs, pctl_idx) \
110 .eint_offset = offs, \
[all...]
/linux-master/drivers/mtd/tests/
H A Dstresstest.c60 static int rand_len(int offs) argument
62 return get_random_u32_below(bufsize - offs);
68 int offs = rand_offs(); local
69 int len = rand_len(offs);
73 if (offs >= mtd->erasesize)
74 offs -= mtd->erasesize;
75 if (offs + len > mtd->erasesize)
76 len = mtd->erasesize - offs;
78 addr = (loff_t)eb * mtd->erasesize + offs;
84 int eb = rand_eb(), offs, er local
[all...]
/linux-master/drivers/nvmem/
H A Duniphier-efuse.c24 int offs; local
26 for (offs = 0; offs < bytes; offs += sizeof(u8))
27 *val++ = readb(priv->base + reg + offs);
/linux-master/tools/testing/selftests/arm64/signal/testcases/
H A Dtestcases.c12 size_t offs = 0; local
18 while (offs <= resv_sz - HDR_SZ &&
20 offs += head->size;
26 *offset = offs;
134 size_t offs = 0; local
150 while (head && !terminated && offs < resv_sz) {
166 offs = 0;
261 offs += head->size;
262 if (resv_sz < offs + sizeof(*head)) {
321 size_t offs local
[all...]
/linux-master/drivers/net/can/esd/
H A Desdacc.h266 static inline u32 acc_read32(struct acc_core *core, unsigned short offs) argument
268 return ioread32be(core->addr + offs);
272 unsigned short offs, u32 v)
274 iowrite32be(v, core->addr + offs);
278 unsigned short offs, u32 v)
280 iowrite32(v, core->addr + offs);
284 unsigned short offs, u32 mask)
286 u32 v = acc_read32(core, offs);
289 acc_write32(core, offs, v);
293 unsigned short offs, u3
271 acc_write32(struct acc_core *core, unsigned short offs, u32 v) argument
277 acc_write32_noswap(struct acc_core *core, unsigned short offs, u32 v) argument
283 acc_set_bits(struct acc_core *core, unsigned short offs, u32 mask) argument
292 acc_clear_bits(struct acc_core *core, unsigned short offs, u32 mask) argument
308 acc_ov_read32(struct acc_ov *ov, unsigned short offs) argument
313 acc_ov_write32(struct acc_ov *ov, unsigned short offs, u32 v) argument
319 acc_ov_set_bits(struct acc_ov *ov, unsigned short offs, u32 b) argument
328 acc_ov_clear_bits(struct acc_ov *ov, unsigned short offs, u32 b) argument
[all...]
/linux-master/lib/
H A Dlogic_iomem.c106 long offs; local
111 offs = rreg->ops->map(offset - found->res->start,
114 if (offs < 0) {
124 ret = (void __iomem *)(IOREMAP_BIAS + (i << AREA_SHIFT) + offs);
257 unsigned long offs, start; local
271 for (offs = 0; offs < size; offs++)
272 area->ops->write(area->priv, start + offs, 1, value);
281 unsigned long offs, star local
304 unsigned long offs, start; local
[all...]
/linux-master/drivers/net/can/softing/
H A Dsofting_platform.h29 unsigned long offs; member in struct:softing_platform_data::__anon1499
/linux-master/tools/lib/perf/include/internal/
H A Dlib.h12 ssize_t preadn(int fd, void *buf, size_t n, off_t offs);
/linux-master/arch/arm/mach-s3c/
H A Dgpio-cfg.h52 samsung_gpio_pull_t (*get_pull)(struct samsung_gpio_chip *chip, unsigned offs);
53 int (*set_pull)(struct samsung_gpio_chip *chip, unsigned offs,
56 unsigned (*get_config)(struct samsung_gpio_chip *chip, unsigned offs);
57 int (*set_config)(struct samsung_gpio_chip *chip, unsigned offs,
/linux-master/arch/sparc/kernel/
H A Dpmc.c37 #define pmc_readb(offs) (sbus_readb(regs+offs))
38 #define pmc_writeb(val, offs) (sbus_writeb(val, regs+offs))
/linux-master/drivers/net/ethernet/renesas/
H A Drcar_gen4_ptp.c41 iowrite32(addend, ptp_priv->addr + ptp_priv->offs->increment);
52 ts->tv_nsec = ioread32(ptp_priv->addr + ptp_priv->offs->monitor_t0);
53 ts->tv_sec = ioread32(ptp_priv->addr + ptp_priv->offs->monitor_t1) |
54 ((s64)ioread32(ptp_priv->addr + ptp_priv->offs->monitor_t2) << 32);
76 iowrite32(1, ptp_priv->addr + ptp_priv->offs->disable);
77 iowrite32(0, ptp_priv->addr + ptp_priv->offs->config_t2);
78 iowrite32(0, ptp_priv->addr + ptp_priv->offs->config_t1);
79 iowrite32(0, ptp_priv->addr + ptp_priv->offs->config_t0);
80 iowrite32(1, ptp_priv->addr + ptp_priv->offs->enable);
81 iowrite32(ts->tv_sec >> 32, ptp_priv->addr + ptp_priv->offs
[all...]

Completed in 347 milliseconds

1234567891011>>