| /OK3568_Linux_fs/external/xserver/hw/xquartz/GL/ |
| H A D | capabilities.c | 63 int offset = 0; in handleStencilModes() local 66 c->stencil_bit_depths[offset++] = 0; in handleStencilModes() 69 c->stencil_bit_depths[offset++] = 1; in handleStencilModes() 72 c->stencil_bit_depths[offset++] = 2; in handleStencilModes() 75 c->stencil_bit_depths[offset++] = 3; in handleStencilModes() 78 c->stencil_bit_depths[offset++] = 4; in handleStencilModes() 81 c->stencil_bit_depths[offset++] = 5; in handleStencilModes() 84 c->stencil_bit_depths[offset++] = 6; in handleStencilModes() 87 c->stencil_bit_depths[offset++] = 8; in handleStencilModes() 90 c->stencil_bit_depths[offset++] = 10; in handleStencilModes() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/phy/rf/halrf_8852b/ |
| H A D | halrf_efuse_8852b.c | 35 u32 offset = 0; in halrf_get_efuse_info_8852b() local 43 offset = 0; in halrf_get_efuse_info_8852b() 47 offset = 0; in halrf_get_efuse_info_8852b() 51 offset = 0; in halrf_get_efuse_info_8852b() 55 offset = EFUSE_INFO_RF_RFE_8852B_ADDR; in halrf_get_efuse_info_8852b() 59 offset = 0; in halrf_get_efuse_info_8852b() 63 offset = EFUSE_INFO_RF_BOARD_OPTION_8852B_ADDR; in halrf_get_efuse_info_8852b() 67 offset = EFUSE_INFO_RF_CHAN_PLAN_8852B_ADDR; in halrf_get_efuse_info_8852b() 71 offset = 0; in halrf_get_efuse_info_8852b() 76 offset = EFUSE_INFO_RF_2G_CCK_A_TSSI_DE_1_8852B_ADDR; in halrf_get_efuse_info_8852b() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/phy/rf/halrf_8852b/ |
| H A D | halrf_efuse_8852b.c | 35 u32 offset = 0; in halrf_get_efuse_info_8852b() local 43 offset = 0; in halrf_get_efuse_info_8852b() 47 offset = 0; in halrf_get_efuse_info_8852b() 51 offset = 0; in halrf_get_efuse_info_8852b() 55 offset = EFUSE_INFO_RF_RFE_8852B_ADDR; in halrf_get_efuse_info_8852b() 59 offset = 0; in halrf_get_efuse_info_8852b() 63 offset = EFUSE_INFO_RF_BOARD_OPTION_8852B_ADDR; in halrf_get_efuse_info_8852b() 67 offset = EFUSE_INFO_RF_CHAN_PLAN_8852B_ADDR; in halrf_get_efuse_info_8852b() 71 offset = 0; in halrf_get_efuse_info_8852b() 76 offset = EFUSE_INFO_RF_2G_CCK_A_TSSI_DE_1_8852B_ADDR; in halrf_get_efuse_info_8852b() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/misc/rk628/ |
| H A D | rk628_pinctrl.c | 10 static int rk628_calc_mux_offset(struct rk628 *rk628, int mux, int reg, int offset) in rk628_calc_mux_offset() argument 18 val = BIT(offset) | orig; in rk628_calc_mux_offset() 20 val = ~BIT(offset) & orig; in rk628_calc_mux_offset() 23 if (offset >= 4 && offset < 8) { in rk628_calc_mux_offset() 24 offset += offset - 4; in rk628_calc_mux_offset() 25 val = 0x3 << (offset + 16) | (mux << offset); in rk628_calc_mux_offset() 26 } else if (offset > 7) { in rk628_calc_mux_offset() 27 offset += 4; in rk628_calc_mux_offset() 28 val = BIT(offset + 16) | (mux << offset); in rk628_calc_mux_offset() 30 val = BIT(offset + 16) | (mux << offset); in rk628_calc_mux_offset() [all …]
|
| /OK3568_Linux_fs/kernel/arch/mips/include/asm/octeon/ |
| H A D | cvmx-pexp-defs.h | 31 #define CVMX_PEXP_NPEI_BAR1_INDEXX(offset) (CVMX_ADD_IO_SEG(0x00011F0000008000ull) + ((offset) & 31… argument 43 #define CVMX_PEXP_NPEI_DMAX_COUNTS(offset) (CVMX_ADD_IO_SEG(0x00011F0000008450ull) + ((offset) & 7)… argument 44 #define CVMX_PEXP_NPEI_DMAX_DBELL(offset) (CVMX_ADD_IO_SEG(0x00011F00000083B0ull) + ((offset) & 7) … argument 45 #define CVMX_PEXP_NPEI_DMAX_IBUFF_SADDR(offset) (CVMX_ADD_IO_SEG(0x00011F0000008400ull) + ((offset)… argument 46 #define CVMX_PEXP_NPEI_DMAX_NADDR(offset) (CVMX_ADD_IO_SEG(0x00011F00000084A0ull) + ((offset) & 7) … argument 68 #define CVMX_PEXP_NPEI_MEM_ACCESS_SUBIDX(offset) (CVMX_ADD_IO_SEG(0x00011F0000008280ull) + ((offset… argument 92 #define CVMX_PEXP_NPEI_PKTX_CNTS(offset) (CVMX_ADD_IO_SEG(0x00011F000000A400ull) + ((offset) & 31) … argument 93 #define CVMX_PEXP_NPEI_PKTX_INSTR_BADDR(offset) (CVMX_ADD_IO_SEG(0x00011F000000A800ull) + ((offset)… argument 94 #define CVMX_PEXP_NPEI_PKTX_INSTR_BAOFF_DBELL(offset) (CVMX_ADD_IO_SEG(0x00011F000000AC00ull) + ((o… argument 95 #define CVMX_PEXP_NPEI_PKTX_INSTR_FIFO_RSIZE(offset) (CVMX_ADD_IO_SEG(0x00011F000000B000ull) + ((of… argument [all …]
|
| H A D | cvmx-pcsx-defs.h | 31 static inline uint64_t CVMX_PCSX_ANX_ADV_REG(unsigned long offset, unsigned long block_id) in CVMX_PCSX_ANX_ADV_REG() argument 35 return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024; in CVMX_PCSX_ANX_ADV_REG() 38 return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024; in CVMX_PCSX_ANX_ADV_REG() 42 return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024; in CVMX_PCSX_ANX_ADV_REG() 44 return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x4000ull) * 1024; in CVMX_PCSX_ANX_ADV_REG() 46 return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024; in CVMX_PCSX_ANX_ADV_REG() 49 static inline uint64_t CVMX_PCSX_ANX_EXT_ST_REG(unsigned long offset, unsigned long block_id) in CVMX_PCSX_ANX_EXT_ST_REG() argument 53 return CVMX_ADD_IO_SEG(0x00011800B0001028ull) + ((offset) + (block_id) * 0x20000ull) * 1024; in CVMX_PCSX_ANX_EXT_ST_REG() 56 return CVMX_ADD_IO_SEG(0x00011800B0001028ull) + ((offset) + (block_id) * 0x20000ull) * 1024; in CVMX_PCSX_ANX_EXT_ST_REG() 60 return CVMX_ADD_IO_SEG(0x00011800B0001028ull) + ((offset) + (block_id) * 0x20000ull) * 1024; in CVMX_PCSX_ANX_EXT_ST_REG() [all …]
|
| /OK3568_Linux_fs/u-boot/lib/libfdt/ |
| H A D | fdt_ro.c | 17 static int _fdt_nodename_eq(const void *fdt, int offset, in _fdt_nodename_eq() argument 20 const char *p = fdt_offset_ptr(fdt, offset + FDT_TAGSIZE, len+1); in _fdt_nodename_eq() 53 int offset; in fdt_get_max_phandle() local 55 for (offset = fdt_next_node(fdt, -1, NULL);; in fdt_get_max_phandle() 56 offset = fdt_next_node(fdt, offset, NULL)) { in fdt_get_max_phandle() 59 if (offset == -FDT_ERR_NOTFOUND) in fdt_get_max_phandle() 62 if (offset < 0) in fdt_get_max_phandle() 65 phandle = fdt_get_phandle(fdt, offset); in fdt_get_max_phandle() 93 static int _nextprop(const void *fdt, int offset) in _nextprop() argument 99 tag = fdt_next_tag(fdt, offset, &nextoffset); in _nextprop() [all …]
|
| /OK3568_Linux_fs/external/xserver/hw/xfree86/common/ |
| H A D | compiler.h | 402 xf86ReadMmio8(__volatile__ void *base, const unsigned long offset) in xf86ReadMmio8() argument 404 unsigned long addr = ((unsigned long) base) + offset; in xf86ReadMmio8() 414 xf86ReadMmio16Be(__volatile__ void *base, const unsigned long offset) in xf86ReadMmio16Be() argument 416 unsigned long addr = ((unsigned long) base) + offset; in xf86ReadMmio16Be() 426 xf86ReadMmio16Le(__volatile__ void *base, const unsigned long offset) in xf86ReadMmio16Le() argument 428 unsigned long addr = ((unsigned long) base) + offset; in xf86ReadMmio16Le() 438 xf86ReadMmio32Be(__volatile__ void *base, const unsigned long offset) in xf86ReadMmio32Be() argument 440 unsigned long addr = ((unsigned long) base) + offset; in xf86ReadMmio32Be() 450 xf86ReadMmio32Le(__volatile__ void *base, const unsigned long offset) in xf86ReadMmio32Le() argument 452 unsigned long addr = ((unsigned long) base) + offset; in xf86ReadMmio32Le() [all …]
|
| /OK3568_Linux_fs/u-boot/scripts/dtc/libfdt/ |
| H A D | fdt_ro.c | 58 static int _fdt_nodename_eq(const void *fdt, int offset, in _fdt_nodename_eq() argument 61 const char *p = fdt_offset_ptr(fdt, offset + FDT_TAGSIZE, len+1); in _fdt_nodename_eq() 94 int offset; in fdt_get_max_phandle() local 96 for (offset = fdt_next_node(fdt, -1, NULL);; in fdt_get_max_phandle() 97 offset = fdt_next_node(fdt, offset, NULL)) { in fdt_get_max_phandle() 100 if (offset == -FDT_ERR_NOTFOUND) in fdt_get_max_phandle() 103 if (offset < 0) in fdt_get_max_phandle() 106 phandle = fdt_get_phandle(fdt, offset); in fdt_get_max_phandle() 134 static int _nextprop(const void *fdt, int offset) in _nextprop() argument 140 tag = fdt_next_tag(fdt, offset, &nextoffset); in _nextprop() [all …]
|
| H A D | fdt.c | 77 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int len) in fdt_offset_ptr() argument 79 unsigned absoffset = offset + fdt_off_dt_struct(fdt); in fdt_offset_ptr() 81 if ((absoffset < offset) in fdt_offset_ptr() 87 if (((offset + len) < offset) in fdt_offset_ptr() 88 || ((offset + len) > fdt_size_dt_struct(fdt))) in fdt_offset_ptr() 91 return _fdt_offset_ptr(fdt, offset); in fdt_offset_ptr() 98 int offset = startoffset; in fdt_next_tag() local 102 tagp = fdt_offset_ptr(fdt, offset, FDT_TAGSIZE); in fdt_next_tag() 106 offset += FDT_TAGSIZE; in fdt_next_tag() 113 p = fdt_offset_ptr(fdt, offset++, 1); in fdt_next_tag() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/crypto/cavium/nitrox/ |
| H A D | nitrox_hal.c | 43 u64 offset; in nitrox_config_emu_unit() local 57 offset = EMU_WD_INT_ENA_W1SX(i); in nitrox_config_emu_unit() 58 nitrox_write_csr(ndev, offset, emu_wd_int.value); in nitrox_config_emu_unit() 59 offset = EMU_GE_INT_ENA_W1SX(i); in nitrox_config_emu_unit() 60 nitrox_write_csr(ndev, offset, emu_ge_int.value); in nitrox_config_emu_unit() 69 u64 offset; in reset_pkt_input_ring() local 72 offset = NPS_PKT_IN_INSTR_CTLX(ring); in reset_pkt_input_ring() 73 pkt_in_ctl.value = nitrox_read_csr(ndev, offset); in reset_pkt_input_ring() 75 nitrox_write_csr(ndev, offset, pkt_in_ctl.value); in reset_pkt_input_ring() 80 pkt_in_ctl.value = nitrox_read_csr(ndev, offset); in reset_pkt_input_ring() [all …]
|
| /OK3568_Linux_fs/kernel/scripts/dtc/libfdt/ |
| H A D | fdt_ro.c | 13 static int fdt_nodename_eq_(const void *fdt, int offset, in fdt_nodename_eq_() argument 17 const char *p = fdt_get_name(fdt, offset, &olen); in fdt_nodename_eq_() 117 int offset = -1; in fdt_find_max_phandle() local 122 offset = fdt_next_node(fdt, offset, NULL); in fdt_find_max_phandle() 123 if (offset < 0) { in fdt_find_max_phandle() 124 if (offset == -FDT_ERR_NOTFOUND) in fdt_find_max_phandle() 127 return offset; in fdt_find_max_phandle() 130 value = fdt_get_phandle(fdt, offset); in fdt_find_max_phandle() 162 unsigned int offset = n * sizeof(struct fdt_reserve_entry); in fdt_mem_rsv() local 163 unsigned int absoffset = fdt_off_mem_rsvmap(fdt) + offset; in fdt_mem_rsv() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/gpio/ |
| H A D | sandbox.c | 27 static u8 *get_gpio_flags(struct udevice *dev, unsigned offset) in get_gpio_flags() argument 32 if (offset >= uc_priv->gpio_count) { in get_gpio_flags() 34 printf("sandbox_gpio: error: invalid gpio %u\n", offset); in get_gpio_flags() 38 return &state[offset].flags; in get_gpio_flags() 41 static int get_gpio_flag(struct udevice *dev, unsigned offset, int flag) in get_gpio_flag() argument 43 return (*get_gpio_flags(dev, offset) & flag) != 0; in get_gpio_flag() 46 static int set_gpio_flag(struct udevice *dev, unsigned offset, int flag, in set_gpio_flag() argument 49 u8 *gpio = get_gpio_flags(dev, offset); in set_gpio_flag() 63 int sandbox_gpio_get_value(struct udevice *dev, unsigned offset) in sandbox_gpio_get_value() argument 65 if (get_gpio_flag(dev, offset, GPIOF_OUTPUT)) in sandbox_gpio_get_value() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/ath/ath10k/ |
| H A D | qmi_wlfw_v01.c | 17 .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01, 26 .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01, 35 .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01, 44 .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01, 53 .offset = offsetof(struct wlfw_ce_tgt_pipe_cfg_s_v01, 66 .offset = offsetof(struct wlfw_ce_svc_pipe_cfg_s_v01, 75 .offset = offsetof(struct wlfw_ce_svc_pipe_cfg_s_v01, 84 .offset = offsetof(struct wlfw_ce_svc_pipe_cfg_s_v01, 97 .offset = offsetof(struct wlfw_shadow_reg_cfg_s_v01, 106 .offset = offsetof(struct wlfw_shadow_reg_cfg_s_v01, [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/hal/rkdec/ |
| H A D | vdpu34x_com.c | 44 RK_S32 offset, RK_S32 len, RK_S32 idx) in update_size_offset() argument 50 info[idx].offset = offset; in update_size_offset() 58 RK_S32 offset = 0; in vdpu34x_get_rcb_buf_size() local 60 offset += update_size_offset(info, 139, offset, width, RCB_DBLK_ROW); in vdpu34x_get_rcb_buf_size() 61 offset += update_size_offset(info, 133, offset, width, RCB_INTRA_ROW); in vdpu34x_get_rcb_buf_size() 62 offset += update_size_offset(info, 134, offset, width, RCB_TRANSD_ROW); in vdpu34x_get_rcb_buf_size() 63 offset += update_size_offset(info, 136, offset, width, RCB_STRMD_ROW); in vdpu34x_get_rcb_buf_size() 64 offset += update_size_offset(info, 137, offset, width, RCB_INTER_ROW); in vdpu34x_get_rcb_buf_size() 65 offset += update_size_offset(info, 140, offset, width, RCB_SAO_ROW); in vdpu34x_get_rcb_buf_size() 66 offset += update_size_offset(info, 141, offset, width, RCB_FBC_ROW); in vdpu34x_get_rcb_buf_size() [all …]
|
| H A D | vdpu382_com.c | 44 RK_S32 offset, RK_S32 len, RK_S32 idx) in update_size_offset() argument 50 info[idx].offset = offset; in update_size_offset() 58 RK_S32 offset = 0; in vdpu382_get_rcb_buf_size() local 60 offset += update_size_offset(info, 139, offset, width, RCB_DBLK_ROW); in vdpu382_get_rcb_buf_size() 61 offset += update_size_offset(info, 133, offset, width, RCB_INTRA_ROW); in vdpu382_get_rcb_buf_size() 62 offset += update_size_offset(info, 134, offset, width, RCB_TRANSD_ROW); in vdpu382_get_rcb_buf_size() 63 offset += update_size_offset(info, 136, offset, width, RCB_STRMD_ROW); in vdpu382_get_rcb_buf_size() 64 offset += update_size_offset(info, 137, offset, width, RCB_INTER_ROW); in vdpu382_get_rcb_buf_size() 65 offset += update_size_offset(info, 140, offset, width, RCB_SAO_ROW); in vdpu382_get_rcb_buf_size() 66 offset += update_size_offset(info, 141, offset, width, RCB_FBC_ROW); in vdpu382_get_rcb_buf_size() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/ |
| H A D | pinctrl-coh901.c | 211 static int u300_gpio_get(struct gpio_chip *chip, unsigned offset) in u300_gpio_get() argument 215 return !!(readl(U300_PIN_REG(offset, dir)) & U300_PIN_BIT(offset)); in u300_gpio_get() 218 static void u300_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in u300_gpio_set() argument 226 val = readl(U300_PIN_REG(offset, dor)); in u300_gpio_set() 228 writel(val | U300_PIN_BIT(offset), U300_PIN_REG(offset, dor)); in u300_gpio_set() 230 writel(val & ~U300_PIN_BIT(offset), U300_PIN_REG(offset, dor)); in u300_gpio_set() 235 static int u300_gpio_direction_input(struct gpio_chip *chip, unsigned offset) in u300_gpio_direction_input() argument 242 val = readl(U300_PIN_REG(offset, pcr)); in u300_gpio_direction_input() 244 val &= ~(U300_GPIO_PXPCR_PIN_MODE_MASK << ((offset & 0x07) << 1)); in u300_gpio_direction_input() 245 writel(val, U300_PIN_REG(offset, pcr)); in u300_gpio_direction_input() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/thunderbolt/ |
| H A D | cap.c | 21 u32 value, offset; in tb_port_enable_tmu() local 29 offset = 0x26; in tb_port_enable_tmu() 31 offset = 0x2a; in tb_port_enable_tmu() 35 ret = tb_sw_read(sw, &value, TB_CFG_SWITCH, offset, 1); in tb_port_enable_tmu() 44 return tb_sw_write(sw, &value, TB_CFG_SWITCH, offset, 1); in tb_port_enable_tmu() 72 int tb_port_next_cap(struct tb_port *port, unsigned int offset) in tb_port_next_cap() argument 77 if (!offset) in tb_port_next_cap() 80 ret = tb_port_read(port, &header, TB_CFG_PORT, offset, 1); in tb_port_next_cap() 89 int offset = 0; in __tb_port_find_cap() local 95 offset = tb_port_next_cap(port, offset); in __tb_port_find_cap() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/misc/ocxl/ |
| H A D | mmio.c | 7 int ocxl_global_mmio_read32(struct ocxl_afu *afu, size_t offset, in ocxl_global_mmio_read32() argument 10 if (offset > afu->config.global_mmio_size - 4) in ocxl_global_mmio_read32() 20 *val = readl_be((char *)afu->global_mmio_ptr + offset); in ocxl_global_mmio_read32() 24 *val = readl((char *)afu->global_mmio_ptr + offset); in ocxl_global_mmio_read32() 32 int ocxl_global_mmio_read64(struct ocxl_afu *afu, size_t offset, in ocxl_global_mmio_read64() argument 35 if (offset > afu->config.global_mmio_size - 8) in ocxl_global_mmio_read64() 45 *val = readq_be((char *)afu->global_mmio_ptr + offset); in ocxl_global_mmio_read64() 49 *val = readq((char *)afu->global_mmio_ptr + offset); in ocxl_global_mmio_read64() 57 int ocxl_global_mmio_write32(struct ocxl_afu *afu, size_t offset, in ocxl_global_mmio_write32() argument 60 if (offset > afu->config.global_mmio_size - 4) in ocxl_global_mmio_write32() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
| H A D | init.c | 43 init->offset, init_exec(init) ? \ 365 return bit_I.offset; in init_table() 377 init_table_(struct nvbios_init *init, u16 offset, const char *name) in init_table_() argument 382 if (len >= offset + 2) { in init_table_() 383 data = nvbios_rd16(bios, data + offset); in init_table_() 461 init_xlat_(struct nvbios_init *init, u8 index, u8 offset) in init_xlat_() argument 468 return nvbios_rd08(bios, data + offset); in init_xlat_() 586 u8 opcode = nvbios_rd08(bios, init->offset); in init_reserved() 600 cont(" 0x%02x", nvbios_rd08(bios, init->offset + i)); in init_reserved() 602 init->offset += length; in init_reserved() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpio/ |
| H A D | gpio-eic-sprd.c | 140 static void sprd_eic_update(struct gpio_chip *chip, unsigned int offset, in sprd_eic_update() argument 145 sprd_eic_offset_base(sprd_eic, offset / SPRD_EIC_PER_BANK_NR); in sprd_eic_update() 153 tmp |= BIT(SPRD_EIC_BIT(offset)); in sprd_eic_update() 155 tmp &= ~BIT(SPRD_EIC_BIT(offset)); in sprd_eic_update() 161 static int sprd_eic_read(struct gpio_chip *chip, unsigned int offset, u16 reg) in sprd_eic_read() argument 165 sprd_eic_offset_base(sprd_eic, offset / SPRD_EIC_PER_BANK_NR); in sprd_eic_read() 167 return !!(readl_relaxed(base + reg) & BIT(SPRD_EIC_BIT(offset))); in sprd_eic_read() 170 static int sprd_eic_request(struct gpio_chip *chip, unsigned int offset) in sprd_eic_request() argument 172 sprd_eic_update(chip, offset, SPRD_EIC_DBNC_DMSK, 1); in sprd_eic_request() 176 static void sprd_eic_free(struct gpio_chip *chip, unsigned int offset) in sprd_eic_free() argument [all …]
|
| H A D | gpio-cs5535.c | 83 static void __cs5535_gpio_set(struct cs5535_gpio_chip *chip, unsigned offset, in __cs5535_gpio_set() argument 86 if (offset < 16) in __cs5535_gpio_set() 88 outl(1 << offset, chip->base + reg); in __cs5535_gpio_set() 91 errata_outl(chip, 1 << (offset - 16), reg); in __cs5535_gpio_set() 94 void cs5535_gpio_set(unsigned offset, unsigned int reg) in cs5535_gpio_set() argument 100 __cs5535_gpio_set(chip, offset, reg); in cs5535_gpio_set() 105 static void __cs5535_gpio_clear(struct cs5535_gpio_chip *chip, unsigned offset, in __cs5535_gpio_clear() argument 108 if (offset < 16) in __cs5535_gpio_clear() 110 outl(1 << (offset + 16), chip->base + reg); in __cs5535_gpio_clear() 113 errata_outl(chip, 1 << offset, reg); in __cs5535_gpio_clear() [all …]
|
| /OK3568_Linux_fs/kernel/arch/sh/boards/mach-microdev/ |
| H A D | io.c | 55 void __iomem *microdev_ioport_map(unsigned long offset, unsigned int len) in microdev_ioport_map() argument 59 if ((offset >= IO_LAN91C111_BASE) && in microdev_ioport_map() 60 (offset < IO_LAN91C111_BASE + IO_LAN91C111_EXTENT)) { in microdev_ioport_map() 64 result = IO_LAN91C111_PHYS + offset - IO_LAN91C111_BASE; in microdev_ioport_map() 65 } else if ((offset >= IO_SUPERIO_BASE) && in microdev_ioport_map() 66 (offset < IO_SUPERIO_BASE + IO_SUPERIO_EXTENT)) { in microdev_ioport_map() 72 result = IO_SUPERIO_PHYS + (offset << 1); in microdev_ioport_map() 73 } else if (((offset >= IO_IDE1_BASE) && in microdev_ioport_map() 74 (offset < IO_IDE1_BASE + IO_IDE_EXTENT)) || in microdev_ioport_map() 75 (offset == IO_IDE1_MISC)) { in microdev_ioport_map() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/css_2400_system/hive/ |
| H A D | ia_css_isp_configs.c | 35 unsigned int offset = 0; in ia_css_configure_iterator() local 40 offset = binary->info->mem_offsets.offsets.config->dmem.iterator.offset; in ia_css_configure_iterator() 44 &binary->mem_params.params[IA_CSS_PARAM_CLASS_CONFIG][IA_CSS_ISP_DMEM].address[offset], in ia_css_configure_iterator() 63 unsigned int offset = 0; in ia_css_configure_copy_output() local 68 offset = binary->info->mem_offsets.offsets.config->dmem.copy_output.offset; in ia_css_configure_copy_output() 72 &binary->mem_params.params[IA_CSS_PARAM_CLASS_CONFIG][IA_CSS_ISP_DMEM].address[offset], in ia_css_configure_copy_output() 91 unsigned int offset = 0; in ia_css_configure_crop() local 96 offset = binary->info->mem_offsets.offsets.config->dmem.crop.offset; in ia_css_configure_crop() 100 &binary->mem_params.params[IA_CSS_PARAM_CLASS_CONFIG][IA_CSS_ISP_DMEM].address[offset], in ia_css_configure_crop() 119 unsigned int offset = 0; in ia_css_configure_fpn() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/css_2401_system/hive/ |
| H A D | ia_css_isp_configs.c | 35 unsigned int offset = 0; in ia_css_configure_iterator() local 40 offset = binary->info->mem_offsets.offsets.config->dmem.iterator.offset; in ia_css_configure_iterator() 44 &binary->mem_params.params[IA_CSS_PARAM_CLASS_CONFIG][IA_CSS_ISP_DMEM].address[offset], in ia_css_configure_iterator() 63 unsigned int offset = 0; in ia_css_configure_copy_output() local 68 offset = binary->info->mem_offsets.offsets.config->dmem.copy_output.offset; in ia_css_configure_copy_output() 72 &binary->mem_params.params[IA_CSS_PARAM_CLASS_CONFIG][IA_CSS_ISP_DMEM].address[offset], in ia_css_configure_copy_output() 91 unsigned int offset = 0; in ia_css_configure_crop() local 96 offset = binary->info->mem_offsets.offsets.config->dmem.crop.offset; in ia_css_configure_crop() 100 &binary->mem_params.params[IA_CSS_PARAM_CLASS_CONFIG][IA_CSS_ISP_DMEM].address[offset], in ia_css_configure_crop() 119 unsigned int offset = 0; in ia_css_configure_fpn() local [all …]
|