| /drivers/net/wireless/intel/iwlwifi/ |
| A D | iwl-io.h | 11 void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val); 12 void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val); 13 void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val); 14 u32 iwl_read32(struct iwl_trans *trans, u32 ofs); 41 u32 iwl_read_prph_no_grab(struct iwl_trans *trans, u32 ofs); 42 u32 iwl_read_prph(struct iwl_trans *trans, u32 ofs); 45 void iwl_write_prph_delay(struct iwl_trans *trans, u32 ofs, 49 iwl_write_prph_delay(trans, ofs, val, 0); in iwl_write_prph() 55 void iwl_set_bits_mask_prph(struct iwl_trans *trans, u32 ofs, 72 return ofs + trans->mac_cfg->umac_prph_offset; in iwl_umac_prph() [all …]
|
| A D | iwl-io.c | 19 trace_iwlwifi_dev_iowrite8(trans->dev, ofs, val); in iwl_write8() 20 iwl_trans_write8(trans, ofs, val); in iwl_write8() 27 iwl_trans_write32(trans, ofs, val); in iwl_write32() 39 u32 iwl_read32(struct iwl_trans *trans, u32 ofs) in iwl_read32() argument 41 u32 val = iwl_trans_read32(trans, ofs); in iwl_read32() 113 u32 val = iwl_trans_read_prph(trans, ofs); in iwl_read_prph_no_grab() 121 iwl_trans_write_prph(trans, ofs, val); in iwl_write_prph_no_grab() 150 iwl_write_prph_no_grab(trans, ofs, val); in iwl_write_prph_delay() 174 iwl_write_prph_no_grab(trans, ofs, in iwl_set_bits_prph() 186 iwl_write_prph_no_grab(trans, ofs, in iwl_set_bits_mask_prph() [all …]
|
| /drivers/tty/serial/ |
| A D | stm32-usart.c | 42 .ofs = { 64 .ofs = { 87 .ofs = { 141 const struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; in stm32_usart_tx_empty() local 226 const struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; in stm32_usart_config_rs485() local 351 const struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; in stm32_usart_pending_rx_pio() local 371 const struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; in stm32_usart_get_char_pio() local 384 const struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; in stm32_usart_receive_chars_pio() local 497 const struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; in stm32_usart_receive_chars() local 656 const struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; in stm32_usart_tx_interrupt_enable() local [all …]
|
| /drivers/net/wireless/mediatek/mt76/ |
| A D | mt792x_regs.h | 9 #define MT_MCU_WFDMA1(ofs) (MT_MCU_WFDMA1_BASE + (ofs)) argument 18 #define MT_PLE(ofs) (MT_PLE_BASE + (ofs)) argument 261 #define MT_WFDMA0(ofs) (MT_WFDMA0_BASE + (ofs)) argument 367 #define MT_SWDEF(ofs) (MT_SWDEF_BASE + (ofs)) argument 374 #define MT_TOP(ofs) (MT_TOP_BASE + (ofs)) argument 389 #define MT_CBTOP_RGU(ofs) (0x70002000 + (ofs)) argument 401 #define MT_PCIE_MAC(ofs) (MT_PCIE_MAC_BASE + (ofs)) argument 406 #define MT_DMA_SHDL(ofs) (0x7c026000 + (ofs)) argument 431 #define MT_UMAC(ofs) (0x74000000 + (ofs)) argument 460 #define MT_UWFDMA0(ofs) (0x7c024000 + (ofs)) argument [all …]
|
| /drivers/mtd/spi-nor/ |
| A D | swp.c | 71 *ofs = 0; in spi_nor_get_locked_range_sr() 83 *ofs = 0; in spi_nor_get_locked_range_sr() 85 *ofs = nor->params->size - *len; in spi_nor_get_locked_range_sr() 104 offs_max = ofs + len; in spi_nor_check_lock_status_sr() 180 if (!spi_nor_is_locked_sr(nor, 0, ofs, status_old)) in spi_nor_sr_lock() 184 if (!spi_nor_is_locked_sr(nor, ofs + len, nor->params->size - (ofs + len), in spi_nor_sr_lock() 196 lock_len = nor->params->size - ofs; in spi_nor_sr_lock() 198 lock_len = ofs + len; in spi_nor_sr_lock() 273 if (!spi_nor_is_unlocked_sr(nor, ofs + len, nor->params->size - (ofs + len), in spi_nor_sr_unlock() 285 lock_len = nor->params->size - (ofs + len); in spi_nor_sr_unlock() [all …]
|
| A D | atmel.c | 19 static int at25fs_nor_lock(struct spi_nor *nor, loff_t ofs, u64 len) in at25fs_nor_lock() argument 24 static int at25fs_nor_unlock(struct spi_nor *nor, loff_t ofs, u64 len) in at25fs_nor_unlock() argument 29 if (ofs || len != nor->params->size) in at25fs_nor_unlock() 40 static int at25fs_nor_is_locked(struct spi_nor *nor, loff_t ofs, u64 len) in at25fs_nor_is_locked() argument 71 static int atmel_nor_set_global_protection(struct spi_nor *nor, loff_t ofs, in atmel_nor_set_global_protection() argument 78 if (ofs || len != nor->params->size) in atmel_nor_set_global_protection() 121 static int atmel_nor_global_protect(struct spi_nor *nor, loff_t ofs, u64 len) in atmel_nor_global_protect() argument 123 return atmel_nor_set_global_protection(nor, ofs, len, true); in atmel_nor_global_protect() 128 return atmel_nor_set_global_protection(nor, ofs, len, false); in atmel_nor_global_unprotect() 131 static int atmel_nor_is_global_protected(struct spi_nor *nor, loff_t ofs, in atmel_nor_is_global_protected() argument [all …]
|
| A D | otp.c | 244 return div64_u64(ofs, spi_nor_otp_region_len(nor)); in spi_nor_otp_offset_to_region() 285 static int spi_nor_mtd_otp_range_is_locked(struct spi_nor *nor, loff_t ofs, in spi_nor_mtd_otp_range_is_locked() argument 296 for (region = spi_nor_otp_offset_to_region(nor, ofs); in spi_nor_mtd_otp_range_is_locked() 297 region <= spi_nor_otp_offset_to_region(nor, ofs + len - 1); in spi_nor_mtd_otp_range_is_locked() 308 static int spi_nor_mtd_otp_read_write(struct mtd_info *mtd, loff_t ofs, in spi_nor_mtd_otp_read_write() argument 320 if (ofs < 0 || ofs >= spi_nor_otp_size(nor)) in spi_nor_mtd_otp_read_write() 324 total_len = min_t(size_t, total_len, spi_nor_otp_size(nor) - ofs); in spi_nor_mtd_otp_read_write() 334 ret = spi_nor_mtd_otp_range_is_locked(nor, ofs, total_len); in spi_nor_mtd_otp_read_write() 350 region = spi_nor_otp_offset_to_region(nor, ofs); in spi_nor_mtd_otp_read_write() 358 rofs = ofs & (rlen - 1); in spi_nor_mtd_otp_read_write() [all …]
|
| /drivers/mtd/nand/spi/ |
| A D | otp.c | 56 if (ofs < 0 || ofs + len > spinand_otp_size(spinand, layout)) in spinand_otp_check_bounds() 63 loff_t ofs, size_t len) in spinand_user_otp_check_bounds() argument 65 return spinand_otp_check_bounds(spinand, ofs, len, in spinand_user_otp_check_bounds() 82 ret = spinand_otp_check_bounds(spinand, ofs, len, layout); in spinand_otp_rw() 90 page = ofs; in spinand_otp_rw() 222 ret = spinand_otp_check_bounds(spinand, ofs, len, in spinand_mtd_otp_read() 266 ret = spinand_user_otp_check_bounds(spinand, ofs, len); in spinand_mtd_user_otp_write() 271 ret = ops->write(spinand, ofs, len, retlen, buf); in spinand_mtd_user_otp_write() 287 ret = spinand_user_otp_check_bounds(spinand, ofs, len); in spinand_mtd_user_otp_erase() 292 ret = ops->erase(spinand, ofs, len); in spinand_mtd_user_otp_erase() [all …]
|
| /drivers/net/wireless/mediatek/mt76/mt7915/ |
| A D | regs.h | 131 #define MT_MCU_WFDMA0(ofs) (MT_MCU_WFDMA0_BASE + (ofs)) argument 137 #define MT_MCU_WFDMA1(ofs) (MT_MCU_WFDMA1_BASE + (ofs)) argument 147 #define MT_PLE(ofs) (MT_PLE_BASE + (ofs)) argument 168 #define MT_PSE(ofs) (MT_PSE_BASE + (ofs)) argument 172 #define MT_MDP(ofs) (MT_MDP_BASE + (ofs)) argument 582 #define MT_WFDMA0(ofs) (MT_WFDMA0_BASE + (ofs)) argument 614 #define MT_WFDMA1(ofs) (MT_WFDMA1_BASE + (ofs)) argument 1038 #define MT_SWDEF(ofs) (MT_SWDEF_BASE + (ofs)) argument 1096 #define MT_TOP(ofs) (MT_TOP_BASE + (ofs)) argument 1129 #define MT_SEMA(ofs) (MT_SEMA_BASE + (ofs)) argument [all …]
|
| /drivers/net/wireless/mediatek/mt76/mt7996/ |
| A D | regs.h | 85 #define MT_RRO_TOP(ofs) (MT_RRO_TOP_BASE + (ofs)) argument 128 #define MT_PLE(ofs) (MT_PLE_BASE + (ofs)) argument 145 #define MT_MDP(ofs) (MT_MDP_BASE + (ofs)) argument 173 #define MT_WF_DMA(_band, ofs) (MT_WF_DMA_BASE(_band) + (ofs)) argument 298 #define MT_WF_UMIB(ofs) (MT_WF_UMIB_BASE + (ofs)) argument 304 #define MT_WTBLON_TOP(ofs) (MT_WTBLON_TOP_BASE + (ofs)) argument 402 #define MT_WFDMA0(ofs) (MT_WFDMA0_BASE + (ofs)) argument 632 #define MT_SWDEF(ofs) (MT_SWDEF_BASE + (ofs)) argument 678 #define MT_TOP(ofs) (MT_TOP_BASE + (ofs)) argument 710 #define MT_PCIE_MAC(ofs) (MT_PCIE_MAC_BASE + (ofs)) argument [all …]
|
| /drivers/media/pci/pt3/ |
| A D | pt3_dma.c | 63 *ofs += PT3_ACCESS_UNIT; in next_unit() 65 *ofs -= DATA_BUF_SZ; in next_unit() 75 int idx, ofs; in pt3_proc_dma() local 78 ofs = adap->buf_ofs; in pt3_proc_dma() 100 adap->buf_ofs = ofs; in pt3_proc_dma() 107 int idx, ofs; in pt3_init_dmabuf() local 111 ofs = 0; in pt3_init_dmabuf() 118 ofs -= DATA_BUF_SZ; in pt3_init_dmabuf() 150 int idx, ofs; in pt3_alloc_dmabuf() local 170 ofs = 0; in pt3_alloc_dmabuf() [all …]
|
| /drivers/net/wireless/mediatek/mt76/mt7615/ |
| A D | regs.h | 36 #define MT_HW_INFO(ofs) (MT_HW_INFO_BASE + (ofs)) argument 52 #define MT_MCU(ofs) (MT_MCU_BASE + (ofs)) argument 65 #define MT_MCU_CIRQ(ofs) (MT_MCU_CIRQ_BASE + (ofs)) argument 88 #define MT_HIF2(ofs) (MT_HIF2_BASE + (ofs)) argument 195 #define MT_WF_PHY(ofs) (MT_WF_PHY_BASE + (ofs)) argument 251 #define MT_WF_CFG(ofs) (MT_WF_CFG_BASE + (ofs)) argument 260 #define MT_WF_AGG(ofs) (MT_WF_AGG_BASE + (ofs)) argument 291 #define MT_WF_ARB(ofs) (MT_WF_ARB_BASE + (ofs)) argument 387 #define MT_WF_DMA(ofs) (MT_WF_DMA_BASE + (ofs)) argument 405 #define MT_WF_PF(ofs) (MT_WF_PF_BASE + (ofs)) argument [all …]
|
| /drivers/mtd/maps/ |
| A D | pci.c | 25 unsigned long (*translate)(struct map_pci_info *map, unsigned long ofs); 37 static map_word mtd_pci_read8(struct map_info *_map, unsigned long ofs) in mtd_pci_read8() argument 41 val.x[0]= readb(map->base + map->translate(map, ofs)); in mtd_pci_read8() 49 val.x[0] = readl(map->base + map->translate(map, ofs)); in mtd_pci_read32() 62 writeb(val.x[0], map->base + map->translate(map, ofs)); in mtd_pci_write8() 68 writel(val.x[0], map->base + map->translate(map, ofs)); in mtd_pci_write32() 124 intel_iq80310_translate(struct map_pci_info *map, unsigned long ofs) in intel_iq80310_translate() argument 126 unsigned long page_addr = ofs & 0x00400000; in intel_iq80310_translate() 138 ofs += 0x00800000; in intel_iq80310_translate() 141 return ofs; in intel_iq80310_translate() [all …]
|
| A D | physmap-core.c | 122 unsigned long ofs) in physmap_set_addr_gpios() argument 126 ofs >>= info->win_order; in physmap_set_addr_gpios() 127 if (info->gpio_values == ofs) in physmap_set_addr_gpios() 137 info->gpio_values = ofs; in physmap_set_addr_gpios() 143 unsigned long ofs) in physmap_addr_gpios_read() argument 152 physmap_set_addr_gpios(info, ofs); in physmap_addr_gpios_read() 173 physmap_set_addr_gpios(info, ofs); in physmap_addr_gpios_copy_from() 177 ofs += chunklen; in physmap_addr_gpios_copy_from() 182 unsigned long ofs) in physmap_addr_gpios_write() argument 190 physmap_set_addr_gpios(info, ofs); in physmap_addr_gpios_write() [all …]
|
| /drivers/s390/char/ |
| A D | hmcdrv_cache.c | 40 loff_t ofs; member 50 .ofs = -1, 71 if (ftp->ofs >= hmcdrv_cache_file.fsize) /* EOF ? */ in hmcdrv_cache_get() 74 if ((hmcdrv_cache_file.ofs < 0) || /* has content? */ in hmcdrv_cache_get() 81 len = hmcdrv_cache_file.fsize - ftp->ofs; in hmcdrv_cache_get() 89 pos = ftp->ofs - hmcdrv_cache_file.ofs; in hmcdrv_cache_get() 143 hmcdrv_cache_file.ofs = ftp->ofs; in hmcdrv_cache_do() 150 hmcdrv_cache_file.ofs = -1; /* invalidate content */ in hmcdrv_cache_do() 205 hmcdrv_cache_file.ofs = -1; in hmcdrv_cache_cmd() 251 hmcdrv_cache_file.ofs = -1; in hmcdrv_cache_shutdown()
|
| /drivers/net/arcnet/ |
| A D | arc-rawmode.c | 45 int ofs; in rx() local 50 ofs = 512 - length; in rx() 52 ofs = 256 - length; in rx() 70 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx() 118 int ofs; in prepare_tx() local 134 hard->offset[1] = ofs = 512 - length; in prepare_tx() 137 hard->offset[1] = ofs = 512 - length - 3; in prepare_tx() 139 hard->offset[0] = ofs = 256 - length; in prepare_tx() 143 length, ofs); in prepare_tx() 146 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft, length); in prepare_tx()
|
| A D | capmode.c | 49 int ofs; in rx() local 55 ofs = 512 - length; in rx() 57 ofs = 256 - length; in rx() 83 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx() 137 int ofs; in prepare_tx() local 158 hard->offset[1] = ofs = 512 - length; in prepare_tx() 161 hard->offset[1] = ofs = 512 - length - 3; in prepare_tx() 163 hard->offset[0] = ofs = 256 - length; in prepare_tx() 167 length, ofs); in prepare_tx() 171 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft.cap.proto, in prepare_tx() [all …]
|
| A D | rfc1051.c | 128 int ofs; in rx() local 133 ofs = 512 - length; in rx() 135 ofs = 256 - length; in rx() 150 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx() 213 int ofs; in prepare_tx() local 229 hard->offset[1] = ofs = 512 - length; in prepare_tx() 232 hard->offset[1] = ofs = 512 - length - 3; in prepare_tx() 234 hard->offset[0] = ofs = 256 - length; in prepare_tx() 238 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft, length); in prepare_tx()
|
| /drivers/mtd/lpddr/ |
| A D | lpddr_cmds.c | 538 unsigned long ofs, last_end = 0; in lpddr_point() local 577 ofs = 0; in lpddr_point() 590 unsigned long ofs; in lpddr_unpoint() local 623 ofs = 0; in lpddr_unpoint() 649 unsigned long ofs, vec_seek, i; in lpddr_writev() local 661 ofs = to; in lpddr_writev() 672 ofs, &vecs, &vec_seek, size); in lpddr_writev() 676 ofs += size; in lpddr_writev() 691 unsigned long ofs, len; in lpddr_erase() local 697 ofs = instr->addr; in lpddr_erase() [all …]
|
| /drivers/gpu/drm/stm/ |
| A D | lvds.c | 200 struct phy_reg_offsets ofs; member 205 .ofs = { 231 .ofs = { 363 lvds_set(lvds, phy->base + phy->ofs.GCR, lvds_gcr); in lvds_pll_enable() 370 lvds_set(lvds, phy->base + phy->ofs.SCR, PHY_SCR_TX_EN); in lvds_pll_enable() 383 lvds_set(lvds, phy->ofs.PLLTESTCR, PHY_PLLTESTCR_CLK_EN); in lvds_pll_enable() 505 lvds_write(lvds, phy->base + phy->ofs.PLLCR2, ndiv << 16); in lvds_pll_config() 506 lvds_set(lvds, phy->base + phy->ofs.PLLCR2, bdiv); in lvds_pll_config() 507 lvds_write(lvds, phy->base + phy->ofs.PLLSDCR1, mdiv); in lvds_pll_config() 536 lvds_set(lvds, phy->base + phy->ofs.DCR, PHY_DCR_POWER_OK); in lvds_pll_config() [all …]
|
| /drivers/net/wireless/mediatek/mt76/mt7603/ |
| A D | regs.h | 11 #define MT_MCU(ofs) (MT_MCU_BASE + (ofs)) argument 22 #define MT_HIF(ofs) (MT_HIF_BASE + (ofs)) argument 96 #define MT_PSE(ofs) (MT_PSE_BASE + (ofs)) argument 134 #define MT_WF_PHY(ofs) (MT_WF_PHY_BASE + (ofs)) argument 175 #define MT_WF_AGG(ofs) (MT_WF_AGG_BASE + (ofs)) argument 236 #define MT_WF_DMA(ofs) (MT_WF_DMA_BASE + (ofs)) argument 268 #define MT_WF_ARB(ofs) (MT_WF_ARB_BASE + (ofs)) argument 355 #define MT_WF_TMAC(ofs) (MT_WF_TMAC_BASE + (ofs)) argument 410 #define MT_WF_RMAC(ofs) (MT_WF_RMAC_BASE + (ofs)) argument 470 #define MT_WF_SEC(ofs) (MT_WF_SEC_BASE + (ofs)) argument [all …]
|
| /drivers/mtd/ |
| A D | mtdconcat.c | 491 if (ofs >= subdev->size) { in concat_xxlock() 493 ofs -= subdev->size; in concat_xxlock() 496 if (ofs + len > subdev->size) in concat_xxlock() 497 size = subdev->size - ofs; in concat_xxlock() 513 ofs = 0; in concat_xxlock() 537 if (ofs >= subdev->size) { in concat_is_locked() 538 ofs -= subdev->size; in concat_is_locked() 597 if (ofs >= subdev->size) { in concat_block_isbad() 598 ofs -= subdev->size; in concat_block_isbad() 617 if (ofs >= subdev->size) { in concat_block_markbad() [all …]
|
| /drivers/pci/controller/dwc/ |
| A D | pcie-intel-gw.c | 76 old = readl(base + ofs); in pcie_update_bits() 80 writel(val, base + ofs); in pcie_update_bits() 83 static inline void pcie_app_wr(struct intel_pcie *pcie, u32 ofs, u32 val) in pcie_app_wr() argument 85 writel(val, pcie->app_base + ofs); in pcie_app_wr() 88 static void pcie_app_wr_mask(struct intel_pcie *pcie, u32 ofs, in pcie_app_wr_mask() argument 91 pcie_update_bits(pcie->app_base, ofs, mask, val); in pcie_app_wr_mask() 94 static inline u32 pcie_rc_cfg_rd(struct intel_pcie *pcie, u32 ofs) in pcie_rc_cfg_rd() argument 96 return dw_pcie_readl_dbi(&pcie->pci, ofs); in pcie_rc_cfg_rd() 101 dw_pcie_writel_dbi(&pcie->pci, ofs, val); in pcie_rc_cfg_wr() 104 static void pcie_rc_cfg_wr_mask(struct intel_pcie *pcie, u32 ofs, in pcie_rc_cfg_wr_mask() argument [all …]
|
| /drivers/net/ethernet/ti/ |
| A D | netcp_xgbepcsr.c | 34 u32 ofs; member 133 reg_rmw(serdes_regs + cfg_phyb_1p25g_156p25mhz_cmu0[i].ofs, in netcp_xgbe_serdes_cmu_init() 140 reg_rmw(serdes_regs + cfg_phyb_10p3125g_156p25mhz_cmu1[i].ofs, in netcp_xgbe_serdes_cmu_init() 155 cfg_phyb_10p3125g_16bit_lane[i].ofs + in netcp_xgbe_serdes_lane_config() 175 reg_rmw(serdes_regs + cfg_phyb_10p3125g_comlane[i].ofs, in netcp_xgbe_serdes_com_enable() 250 int select, int ofs) in netcp_xgbe_serdes_write_tbus_addr() argument 253 reg_rmw(serdes_regs + 0x0008, ((select << 5) + ofs) << 24, in netcp_xgbe_serdes_write_tbus_addr() 270 reg_rmw(serdes_regs + 0x00fc, ((select << 8) + ofs) << 16, ~0xf800ffff); in netcp_xgbe_serdes_write_tbus_addr() 274 int select, int ofs) in netcp_xgbe_serdes_read_select_tbus() argument 277 netcp_xgbe_serdes_write_tbus_addr(serdes_regs, select, ofs); in netcp_xgbe_serdes_read_select_tbus() [all …]
|
| /drivers/mtd/chips/ |
| A D | cfi_cmdset_0002.c | 1266 ofs = 0; in cfi_amdstd_read() 1376 ofs = 0; in cfi_amdstd_secsi_read() 1863 ofs += n; in cfi_amdstd_write_words() 1870 ofs = 0; in cfi_amdstd_write_words() 1894 ofs = 0; in cfi_amdstd_write_words() 2121 ofs = 0; in cfi_amdstd_write_buffers() 2149 ofs = 0; in cfi_amdstd_write_buffers() 2342 ofs += n; in cfi_amdstd_panic_write() 2349 ofs = 0; in cfi_amdstd_panic_write() 2373 ofs = 0; in cfi_amdstd_panic_write() [all …]
|