Home
last modified time | relevance | path

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

123456789

/drivers/net/wireless/intel/iwlwifi/
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 = offs;
48 __get_str(dev), __entry->offs, __entry->val)
[all …]
Diwl-devtrace.h19 int offs = 24; /* start with normal header length */ in iwl_trace_data() local
31 offs += 6; in iwl_trace_data()
33 offs += 2; in iwl_trace_data()
37 offs += 6; in iwl_trace_data()
39 return skb->len <= offs + 2 || in iwl_trace_data()
40 *(__be16 *)(skb->data + offs) != cpu_to_be16(ETH_P_PAE); in iwl_trace_data()
/drivers/scsi/aic94xx/
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) in asd_ddbsite_read_byte() argument
103 if (offs & 1) in asd_ddbsite_read_byte()
[all …]
Daic94xx_reg.c18 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 …]
Daic94xx_sds.c22 u8 offs[3]; member
66 .offs = {128}, /* Offset */
71 .offs = {128, 4}, /* Offset */
76 .offs = {128, 8}, /* Offset */
81 .offs = {128, 12}, /* Offset */
86 .offs = {128, 16}, /* Offset */
117 u32 offs, int size) in asd_read_ocm_seg() argument
121 asd_read_reg_string(asd_ha, buffer, offs+OCM_BASE_ADDR, size); in asd_read_ocm_seg()
123 for ( ; size > 0; size--, offs++, p++) in asd_read_ocm_seg()
124 *p = asd_read_ocm_byte(asd_ha, offs); in asd_read_ocm_seg()
[all …]
/drivers/misc/mei/
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 = offs;
54 __get_str(dev), __entry->reg, __entry->offs, __entry->val)
[all …]
/drivers/gpio/
Dgpio-syscon.c59 unsigned int val, offs; in syscon_gpio_get() local
62 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset; in syscon_gpio_get()
65 (offs / SYSCON_REG_BITS) * SYSCON_REG_SIZE, &val); in syscon_gpio_get()
69 return !!(val & BIT(offs % SYSCON_REG_BITS)); in syscon_gpio_get()
75 unsigned int offs; in syscon_gpio_set() local
77 offs = priv->dreg_offset + priv->data->dat_bit_offset + offset; in syscon_gpio_set()
80 (offs / SYSCON_REG_BITS) * SYSCON_REG_SIZE, in syscon_gpio_set()
81 BIT(offs % SYSCON_REG_BITS), in syscon_gpio_set()
82 val ? BIT(offs % SYSCON_REG_BITS) : 0); in syscon_gpio_set()
90 unsigned int offs; in syscon_gpio_dir_in() local
[all …]
/drivers/mtd/tests/
Dstresstest.c60 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 …]
/drivers/pinctrl/samsung/
Dpinctrl-exynos.h63 #define EXYNOS_PIN_BANK_EINTG(pins, reg, id, offs) \ argument
69 .eint_offset = offs, \
73 #define EXYNOS_PIN_BANK_EINTW(pins, reg, id, offs) \ argument
79 .eint_offset = offs, \
83 #define EXYNOS5433_PIN_BANK_EINTG(pins, reg, id, offs) \ argument
89 .eint_offset = offs, \
93 #define EXYNOS5433_PIN_BANK_EINTW(pins, reg, id, offs) \ argument
99 .eint_offset = offs, \
103 #define EXYNOS5433_PIN_BANK_EINTW_EXT(pins, reg, id, offs, pctl_idx) \ argument
109 .eint_offset = offs, \
[all …]
/drivers/net/ethernet/altera/
Daltera_utils.c9 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()
Daltera_tse.h487 u32 csrrd32(void __iomem *mac, size_t offs) in csrrd32() argument
489 void __iomem *paddr = (void __iomem *)((uintptr_t)mac + offs); in csrrd32()
494 u16 csrrd16(void __iomem *mac, size_t offs) in csrrd16() argument
496 void __iomem *paddr = (void __iomem *)((uintptr_t)mac + offs); in csrrd16()
501 u8 csrrd8(void __iomem *mac, size_t offs) in csrrd8() argument
503 void __iomem *paddr = (void __iomem *)((uintptr_t)mac + offs); in csrrd8()
508 void csrwr32(u32 val, void __iomem *mac, size_t offs) in csrwr32() argument
510 void __iomem *paddr = (void __iomem *)((uintptr_t)mac + offs); in csrwr32()
516 void csrwr16(u16 val, void __iomem *mac, size_t offs) in csrwr16() argument
518 void __iomem *paddr = (void __iomem *)((uintptr_t)mac + offs); in csrwr16()
[all …]
/drivers/net/ethernet/renesas/
Drcar_gen4_ptp.c41 iowrite32(addend, ptp_priv->addr + ptp_priv->offs->increment); in rcar_gen4_ptp_adjfine()
52 ts->tv_nsec = ioread32(ptp_priv->addr + ptp_priv->offs->monitor_t0); in _rcar_gen4_ptp_gettime()
53 ts->tv_sec = ioread32(ptp_priv->addr + ptp_priv->offs->monitor_t1) | in _rcar_gen4_ptp_gettime()
54 ((s64)ioread32(ptp_priv->addr + ptp_priv->offs->monitor_t2) << 32); in _rcar_gen4_ptp_gettime()
76 iowrite32(1, ptp_priv->addr + ptp_priv->offs->disable); in _rcar_gen4_ptp_settime()
77 iowrite32(0, ptp_priv->addr + ptp_priv->offs->config_t2); in _rcar_gen4_ptp_settime()
78 iowrite32(0, ptp_priv->addr + ptp_priv->offs->config_t1); in _rcar_gen4_ptp_settime()
79 iowrite32(0, ptp_priv->addr + ptp_priv->offs->config_t0); in _rcar_gen4_ptp_settime()
80 iowrite32(1, ptp_priv->addr + ptp_priv->offs->enable); in _rcar_gen4_ptp_settime()
81 iowrite32(ts->tv_sec >> 32, ptp_priv->addr + ptp_priv->offs->config_t2); in _rcar_gen4_ptp_settime()
[all …]
/drivers/mtd/nand/raw/
Dnand_bbt.c113 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 …]
/drivers/gpu/drm/amd/amdkfd/
Dkfd_topology.c217 #define sysfs_show_gen_prop(buffer, offs, fmt, ...) \ argument
218 (offs += snprintf(buffer+offs, PAGE_SIZE-offs, \
220 #define sysfs_show_32bit_prop(buffer, offs, name, value) \ argument
221 sysfs_show_gen_prop(buffer, offs, "%s %u\n", name, value)
222 #define sysfs_show_64bit_prop(buffer, offs, name, value) \ argument
223 sysfs_show_gen_prop(buffer, offs, "%s %llu\n", name, value)
224 #define sysfs_show_32bit_val(buffer, offs, value) \ argument
225 sysfs_show_gen_prop(buffer, offs, "%u\n", value)
226 #define sysfs_show_str_val(buffer, offs, value) \ argument
227 sysfs_show_gen_prop(buffer, offs, "%s\n", value)
[all …]
/drivers/mtd/nand/
Dbbt.c77 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()
/drivers/tee/optee/
Dcall.c193 u_int offs; in optee_get_msg_arg() local
234 offs = bit * sz; in optee_get_msg_arg()
235 res = tee_shm_get_va(entry->shm, offs); in optee_get_msg_arg()
244 *offs_ret = offs; in optee_get_msg_arg()
259 struct optee_shm_arg_entry *entry, u_int offs) in optee_free_msg_arg() argument
265 if (offs > SHM_ENTRY_SIZE || offs % sz) { in optee_free_msg_arg()
266 pr_err("Invalid offs %u\n", offs); in optee_free_msg_arg()
269 bit = offs / sz; in optee_free_msg_arg()
291 u_int offs; in optee_open_session() local
296 &entry, &shm, &offs); in optee_open_session()
[all …]
/drivers/mtd/parsers/
Dscpart.c53 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 …]
/drivers/clk/
Dclk-versaclock3.c139 u8 offs; member
145 u8 offs; member
159 u8 offs; member
219 regmap_read(vc3->regmap, pfd_mux->offs, &src); in vc3_pfd_mux_get_parent()
229 regmap_update_bits(vc3->regmap, pfd_mux->offs, pfd_mux->bitmsk, in vc3_pfd_mux_set_parent()
249 regmap_read(vc3->regmap, pfd->offs, &prediv); in vc3_pfd_recalc_rate()
324 regmap_update_bits(vc3->regmap, pfd->offs, pfd->mdiv1_bitmsk, in vc3_pfd_set_rate()
326 regmap_update_bits(vc3->regmap, pfd->offs, pfd->mdiv2_bitmsk, 0); in vc3_pfd_set_rate()
333 regmap_update_bits(vc3->regmap, pfd->offs, pfd->mdiv2_bitmsk, in vc3_pfd_set_rate()
335 regmap_update_bits(vc3->regmap, pfd->offs, pfd->mdiv1_bitmsk, 0); in vc3_pfd_set_rate()
[all …]
/drivers/mfd/
Dmax8925-core.c332 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 …]
/drivers/crypto/marvell/octeontx2/
Dotx2_cptlf.c262 int i, offs, vector; in otx2_cptlf_unregister_interrupts() local
265 for (offs = 0; offs < OTX2_CPT_LF_MSIX_VECTORS; offs++) { in otx2_cptlf_unregister_interrupts()
266 if (!lfs->lf[i].is_irq_reg[offs]) in otx2_cptlf_unregister_interrupts()
270 lfs->lf[i].msix_offset + offs); in otx2_cptlf_unregister_interrupts()
272 lfs->lf[i].is_irq_reg[offs] = false; in otx2_cptlf_unregister_interrupts()
330 int slot, offs; in otx2_cptlf_free_irqs_affinity() local
333 for (offs = 0; offs < OTX2_CPT_LF_MSIX_VECTORS; offs++) in otx2_cptlf_free_irqs_affinity()
336 offs), NULL); in otx2_cptlf_free_irqs_affinity()
345 int slot, offs, ret; in otx2_cptlf_set_irqs_affinity() local
359 for (offs = 0; offs < OTX2_CPT_LF_MSIX_VECTORS; offs++) { in otx2_cptlf_set_irqs_affinity()
[all …]
/drivers/net/ethernet/ti/icssg/
Dicssg_classifier.c31 (offs[slice].ft1_slot_base + FT1_SLOT_SIZE * (n) + (reg))
66 (offs[slice].ft3_slot_base + FT3_SLOT_SIZE * (n) + (reg))
75 (offs[slice].rx_class_base + RX_CLASS_EN_SIZE * (n) + (reg))
81 (offs[slice].rx_class_gates_base + RX_CLASS_GATES_SIZE * (n))
152 static const struct miig_rt_offsets offs[] = { variable
210 offset = offs[slice].ft1_start_len; in rx_class_ft1_set_start_len()
244 offset = offs[slice].ft1_cfg; in rx_class_ft1_cfg_set_type()
254 offset = offs[slice].rx_class_cfg1; in rx_class_sel_set_type()
286 regmap_write(miig_rt, offs[slice].mac0, (u32)(mac[0] | mac[1] << 8 | in icssg_class_set_mac_addr()
288 regmap_write(miig_rt, offs[slice].mac1, (u32)(mac[4] | mac[5] << 8)); in icssg_class_set_mac_addr()
[all …]
/drivers/clk/tegra/
Dclk-dfll.c331 static inline u32 dfll_readl(struct tegra_dfll *td, u32 offs) in dfll_readl() argument
333 return __raw_readl(td->base + offs); in dfll_readl()
336 static inline void dfll_writel(struct tegra_dfll *td, u32 val, u32 offs) in dfll_writel() argument
338 WARN_ON(offs >= DFLL_I2C_CFG); in dfll_writel()
339 __raw_writel(val, td->base + offs); in dfll_writel()
349 static inline u32 dfll_i2c_readl(struct tegra_dfll *td, u32 offs) in dfll_i2c_readl() argument
351 return __raw_readl(td->i2c_base + offs); in dfll_i2c_readl()
354 static inline void dfll_i2c_writel(struct tegra_dfll *td, u32 val, u32 offs) in dfll_i2c_writel() argument
356 __raw_writel(val, td->i2c_base + offs); in dfll_i2c_writel()
1326 u32 val, offs; in attr_registers_show() local
[all …]
/drivers/media/usb/pvrusb2/
Dpvrusb2-i2c-core.c385 u16 tcnt,bcnt,offs; in pvr2_i2c_xfer() local
399 offs = 0; in pvr2_i2c_xfer()
406 msgs[0].buf+offs,bcnt)) { in pvr2_i2c_xfer()
410 offs += bcnt; in pvr2_i2c_xfer()
432 u16 tcnt,bcnt,wcnt,offs; in pvr2_i2c_xfer() local
439 offs = 0; in pvr2_i2c_xfer()
447 msgs[1].buf+offs,bcnt)) { in pvr2_i2c_xfer()
451 offs += bcnt; in pvr2_i2c_xfer()
468 unsigned int idx,offs,cnt; in pvr2_i2c_xfer() local
480 for (offs = 0; offs < cnt; offs++) { in pvr2_i2c_xfer()
[all …]
/drivers/nvmem/
Duniphier-efuse.c24 int offs; in uniphier_reg_read() local
26 for (offs = 0; offs < bytes; offs += sizeof(u8)) in uniphier_reg_read()
27 *val++ = readb(priv->base + reg + offs); in uniphier_reg_read()
/drivers/mtd/ubi/
Dgluebi.c156 int err = 0, lnum, offs, bytes_left; in gluebi_read() local
160 lnum = div_u64_rem(from, mtd->erasesize, &offs); in gluebi_read()
163 size_t to_read = mtd->erasesize - offs; in gluebi_read()
168 err = ubi_read(gluebi->desc, lnum, buf, offs, to_read); in gluebi_read()
173 offs = 0; in gluebi_read()
196 int err = 0, lnum, offs, bytes_left; in gluebi_write() local
200 lnum = div_u64_rem(to, mtd->erasesize, &offs); in gluebi_write()
202 if (len % mtd->writesize || offs % mtd->writesize) in gluebi_write()
207 size_t to_write = mtd->erasesize - offs; in gluebi_write()
212 err = ubi_leb_write(gluebi->desc, lnum, buf, offs, to_write); in gluebi_write()
[all …]

123456789