/drivers/net/wireless/intel/iwlwifi/ |
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 …]
|
D | iwl-devtrace.h | 19 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/ |
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 …]
|
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 …]
|
D | aic94xx_sds.c | 22 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/ |
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), __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/ |
D | gpio-syscon.c | 59 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/ |
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 …]
|
/drivers/pinctrl/samsung/ |
D | pinctrl-exynos.h | 63 #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/ |
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()
|
D | altera_tse.h | 487 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/ |
D | rcar_gen4_ptp.c | 41 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/ |
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 …]
|
/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_topology.c | 217 #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/ |
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()
|
/drivers/tee/optee/ |
D | call.c | 193 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/ |
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 …]
|
/drivers/clk/ |
D | clk-versaclock3.c | 139 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/ |
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 …]
|
/drivers/crypto/marvell/octeontx2/ |
D | otx2_cptlf.c | 262 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/ |
D | icssg_classifier.c | 31 (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/ |
D | clk-dfll.c | 331 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/ |
D | pvrusb2-i2c-core.c | 385 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/ |
D | uniphier-efuse.c | 24 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/ |
D | gluebi.c | 156 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 …]
|