| /OK3568_Linux_fs/kernel/drivers/media/usb/cx231xx/ |
| H A D | cx231xx-417.c | 355 u32 temp; in mc417_register_write() local 358 temp = 0x82 | MCI_REGISTER_DATA_BYTE0 | ((value & 0x000000FF) << 8); in mc417_register_write() 359 temp = temp << 10; in mc417_register_write() 360 status = set_itvc_reg(dev, ITVC_WRITE_DIR, temp); in mc417_register_write() 363 temp = temp | (0x05 << 10); in mc417_register_write() 364 set_itvc_reg(dev, ITVC_WRITE_DIR, temp); in mc417_register_write() 367 temp = 0x82 | MCI_REGISTER_DATA_BYTE1 | (value & 0x0000FF00); in mc417_register_write() 368 temp = temp << 10; in mc417_register_write() 369 set_itvc_reg(dev, ITVC_WRITE_DIR, temp); in mc417_register_write() 370 temp = temp | (0x05 << 10); in mc417_register_write() [all …]
|
| /OK3568_Linux_fs/u-boot/board/freescale/common/ |
| H A D | dcu_sii9022a.c | 64 u8 temp; in dcu_set_dvi_encoder() local 71 temp = TPI_TRANS_MODE_ENABLE; in dcu_set_dvi_encoder() 72 i2c_write(CONFIG_SYS_I2C_DVI_ADDR, TPI_TRANS_MODE_REG, 1, &temp, 1); in dcu_set_dvi_encoder() 75 i2c_read(CONFIG_SYS_I2C_DVI_ADDR, TPI_PWR_STAT_REG, 1, &temp, 1); in dcu_set_dvi_encoder() 76 temp &= ~TPI_PWR_STAT_MASK; in dcu_set_dvi_encoder() 77 temp |= TPI_PWR_STAT_D0; in dcu_set_dvi_encoder() 78 i2c_write(CONFIG_SYS_I2C_DVI_ADDR, TPI_PWR_STAT_REG, 1, &temp, 1); in dcu_set_dvi_encoder() 81 temp = TPI_SET_PAGE_SII9022A; in dcu_set_dvi_encoder() 82 i2c_write(CONFIG_SYS_I2C_DVI_ADDR, TPI_SET_PAGE_REG, 1, &temp, 1); in dcu_set_dvi_encoder() 83 temp = TPI_SET_OFFSET_SII9022A; in dcu_set_dvi_encoder() [all …]
|
| H A D | diu_ch7301.c | 52 u8 temp; in diu_set_dvi_encoder() local 54 temp = I2C_DVI_TEST_PATTERN_VAL; in diu_set_dvi_encoder() 56 &temp, 1); in diu_set_dvi_encoder() 61 temp = I2C_DVI_INPUT_DATA_FORMAT_VAL; in diu_set_dvi_encoder() 63 1, &temp, 1); in diu_set_dvi_encoder() 70 temp = I2C_DVI_SYNC_POLARITY_VAL; in diu_set_dvi_encoder() 72 &temp, 1); in diu_set_dvi_encoder() 80 temp = I2C_DVI_PLL_CHARGE_CNTL_HIGH_SPEED_VAL; in diu_set_dvi_encoder() 82 I2C_DVI_PLL_CHARGE_CNTL_REG, 1, &temp, 1); in diu_set_dvi_encoder() 87 temp = I2C_DVI_PLL_DIVIDER_HIGH_SPEED_VAL; in diu_set_dvi_encoder() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/host/ |
| H A D | ohci-dbg.c | 13 #define edstring(ed_type) ({ char *temp; \ 15 case PIPE_CONTROL: temp = "ctrl"; break; \ 16 case PIPE_BULK: temp = "bulk"; break; \ 17 case PIPE_INTERRUPT: temp = "intr"; break; \ 18 default: temp = "isoc"; break; \ 19 } temp;}) 104 u32 temp; in ohci_dump_status() local 106 temp = ohci_readl (controller, ®s->revision) & 0xff; in ohci_dump_status() 109 0x03 & (temp >> 4), (temp & 0x0f), in ohci_dump_status() 110 (temp & 0x0100) ? "with" : "NO", in ohci_dump_status() [all …]
|
| H A D | ehci-dbg.c | 377 unsigned temp; in qh_lines() local 398 temp = scnprintf(next, size, in qh_lines() 412 size -= temp; in qh_lines() 413 next += temp; in qh_lines() 446 temp = scnprintf(next, size, in qh_lines() 455 size -= temp; in qh_lines() 456 next += temp; in qh_lines() 457 if (temp == size) in qh_lines() 461 temp = scnprintf(next, size, "\n"); in qh_lines() 462 size -= temp; in qh_lines() [all …]
|
| H A D | ehci-hub.c | 150 u32 temp; in ehci_adjust_port_wakeup_flags() local 168 temp = ehci_readl(ehci, hostpc_reg); in ehci_adjust_port_wakeup_flags() 169 ehci_writel(ehci, temp & ~HOSTPC_PHCD, hostpc_reg); in ehci_adjust_port_wakeup_flags() 200 temp = ehci_readl(ehci, hostpc_reg); in ehci_adjust_port_wakeup_flags() 201 ehci_writel(ehci, temp | HOSTPC_PHCD, hostpc_reg); in ehci_adjust_port_wakeup_flags() 379 u32 temp; in ehci_bus_resume() local 429 temp = ehci_readl(ehci, &ehci->regs->port_status[i]); in ehci_bus_resume() 430 if ((temp & PORT_PE) && in ehci_bus_resume() 431 !(temp & (PORT_SUSPEND | PORT_RESUME))) { in ehci_bus_resume() 432 ehci_dbg(ehci, "Port status(0x%x) is wrong\n", temp); in ehci_bus_resume() [all …]
|
| H A D | xhci-hub.c | 60 u32 temp; in xhci_create_usb3_bos_desc() local 99 temp = readl(&xhci->cap_regs->hcc_params); in xhci_create_usb3_bos_desc() 100 if (HCC_LTC(temp)) in xhci_create_usb3_bos_desc() 105 temp = readl(&xhci->cap_regs->hcs_params3); in xhci_create_usb3_bos_desc() 106 buf[12] = HCS_U1_LATENCY(temp); in xhci_create_usb3_bos_desc() 107 put_unaligned_le16(HCS_U2_LATENCY(temp), &buf[13]); in xhci_create_usb3_bos_desc() 172 u16 temp; in xhci_common_hub_descriptor() local 177 temp = 0; in xhci_common_hub_descriptor() 180 temp |= HUB_CHAR_INDV_PORT_LPSM; in xhci_common_hub_descriptor() 182 temp |= HUB_CHAR_NO_LPSM; in xhci_common_hub_descriptor() [all …]
|
| H A D | ehci-tegra.c | 108 u32 temp; in tegra_ehci_internal_port_reset() local 125 temp = ehci_readl(ehci, portsc_reg); in tegra_ehci_internal_port_reset() 126 temp |= PORT_RESET; in tegra_ehci_internal_port_reset() 127 ehci_writel(ehci, temp, portsc_reg); in tegra_ehci_internal_port_reset() 129 temp &= ~PORT_RESET; in tegra_ehci_internal_port_reset() 130 ehci_writel(ehci, temp, portsc_reg); in tegra_ehci_internal_port_reset() 141 temp = ehci_readl(ehci, portsc_reg); in tegra_ehci_internal_port_reset() 142 } while (!(temp & PORT_PE) && tries--); in tegra_ehci_internal_port_reset() 143 if (temp & PORT_PE) in tegra_ehci_internal_port_reset() 153 if (temp & PORT_CSC) in tegra_ehci_internal_port_reset() [all …]
|
| /OK3568_Linux_fs/kernel/fs/jffs2/ |
| H A D | summary.c | 118 struct jffs2_sum_inode_mem *temp = kmalloc(sizeof(struct jffs2_sum_inode_mem), GFP_KERNEL); in jffs2_sum_add_inode_mem() local 120 if (!temp) in jffs2_sum_add_inode_mem() 123 temp->nodetype = ri->nodetype; in jffs2_sum_add_inode_mem() 124 temp->inode = ri->ino; in jffs2_sum_add_inode_mem() 125 temp->version = ri->version; in jffs2_sum_add_inode_mem() 126 temp->offset = cpu_to_je32(ofs); /* relative offset from the beginning of the jeb */ in jffs2_sum_add_inode_mem() 127 temp->totlen = ri->totlen; in jffs2_sum_add_inode_mem() 128 temp->next = NULL; in jffs2_sum_add_inode_mem() 130 return jffs2_sum_add_mem(s, (union jffs2_sum_mem *)temp); in jffs2_sum_add_inode_mem() 136 struct jffs2_sum_dirent_mem *temp = in jffs2_sum_add_dirent_mem() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/msm/dsi/phy/ |
| H A D | dsi_phy.c | 30 s32 temp; in dsi_dphy_timing_calc_clk_zero() local 33 temp = 300 * coeff - ((timing->clk_prepare >> 1) + 1) * 2 * ui; in dsi_dphy_timing_calc_clk_zero() 34 tmin = S_DIV_ROUND_UP(temp, ui) - 2; in dsi_dphy_timing_calc_clk_zero() 44 temp = (timing->hs_rqst + timing->clk_prepare + clk_z) & 0x7; in dsi_dphy_timing_calc_clk_zero() 45 timing->clk_zero = clk_z + 8 - temp; in dsi_dphy_timing_calc_clk_zero() 60 s32 temp; in msm_dsi_dphy_timing_calc() local 72 temp = lpx / ui; in msm_dsi_dphy_timing_calc() 73 if (temp & 0x1) in msm_dsi_dphy_timing_calc() 74 timing->hs_rqst = temp; in msm_dsi_dphy_timing_calc() 76 timing->hs_rqst = max_t(s32, 0, temp - 2); in msm_dsi_dphy_timing_calc() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/thermal/ |
| H A D | thermal_hwmon.c | 55 struct thermal_hwmon_temp *temp in temp_input_show() local 58 struct thermal_zone_device *tz = temp->tz; in temp_input_show() 73 struct thermal_hwmon_temp *temp in temp_crit_show() local 76 struct thermal_zone_device *tz = temp->tz; in temp_crit_show() 113 struct thermal_hwmon_temp *temp; in thermal_hwmon_lookup_temp() local 116 list_for_each_entry(temp, &hwmon->tz_list, hwmon_node) in thermal_hwmon_lookup_temp() 117 if (temp->tz == tz) { in thermal_hwmon_lookup_temp() 119 return temp; in thermal_hwmon_lookup_temp() 128 int temp; in thermal_zone_crit_temp_valid() local 129 return tz->ops->get_crit_temp && !tz->ops->get_crit_temp(tz, &temp); in thermal_zone_crit_temp_valid() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/bdc/ |
| H A D | bdc_dbg.c | 15 u32 temp; in bdc_dbg_regs() local 18 temp = bdc_readl(bdc->regs, BDC_BDCCFG0); in bdc_dbg_regs() 19 dev_vdbg(bdc->dev, "bdccfg0:0x%08x\n", temp); in bdc_dbg_regs() 20 temp = bdc_readl(bdc->regs, BDC_BDCCFG1); in bdc_dbg_regs() 21 dev_vdbg(bdc->dev, "bdccfg1:0x%08x\n", temp); in bdc_dbg_regs() 22 temp = bdc_readl(bdc->regs, BDC_BDCCAP0); in bdc_dbg_regs() 23 dev_vdbg(bdc->dev, "bdccap0:0x%08x\n", temp); in bdc_dbg_regs() 24 temp = bdc_readl(bdc->regs, BDC_BDCCAP1); in bdc_dbg_regs() 25 dev_vdbg(bdc->dev, "bdccap1:0x%08x\n", temp); in bdc_dbg_regs() 26 temp = bdc_readl(bdc->regs, BDC_USPC); in bdc_dbg_regs() [all …]
|
| H A D | bdc_core.c | 52 u32 temp; in bdc_stop() local 55 temp = bdc_readl(bdc->regs, BDC_BDCSC); in bdc_stop() 57 if (BDC_CSTS(temp) == BDC_HLT) { in bdc_stop() 61 temp &= ~BDC_COP_MASK; in bdc_stop() 62 temp |= BDC_COS|BDC_COP_STP; in bdc_stop() 63 bdc_writel(bdc->regs, BDC_BDCSC, temp); in bdc_stop() 75 u32 temp; in bdc_reset() local 84 temp = bdc_readl(bdc->regs, BDC_BDCSC); in bdc_reset() 85 temp &= ~BDC_COP_MASK; in bdc_reset() 86 temp |= BDC_COS|BDC_COP_RST; in bdc_reset() [all …]
|
| /OK3568_Linux_fs/u-boot/arch/x86/cpu/quark/ |
| H A D | mrc_util.c | 143 uint32_t temp; in set_rcvn() local 158 temp = (byte_lane & 1) ? (pi_count / HALF_CLK) << 20 : in set_rcvn() 160 mrc_alt_write_mask(DDRPHY, reg, temp, msk); in set_rcvn() 174 temp = pi_count << 24; in set_rcvn() 175 mrc_alt_write_mask(DDRPHY, reg, temp, msk); in set_rcvn() 185 temp = 0x00; in set_rcvn() 190 temp |= msk; in set_rcvn() 195 temp |= msk; in set_rcvn() 197 mrc_alt_write_mask(DDRPHY, reg, temp, msk); in set_rcvn() 217 uint32_t temp; in get_rcvn() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/i2c/busses/ |
| H A D | i2c-imx-lpi2c.c | 120 unsigned int temp; in lpi2c_imx_bus_busy() local 123 temp = readl(lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_bus_busy() 126 if (temp & MSR_ALF) { in lpi2c_imx_bus_busy() 127 writel(temp, lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_bus_busy() 131 if (temp & (MSR_BBF | MSR_MBF)) in lpi2c_imx_bus_busy() 166 unsigned int temp; in lpi2c_imx_start() local 168 temp = readl(lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_start() 169 temp |= MCR_RRF | MCR_RTF; in lpi2c_imx_start() 170 writel(temp, lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_start() 173 temp = i2c_8bit_addr_from_msg(msgs) | (GEN_START << 8); in lpi2c_imx_start() [all …]
|
| H A D | i2c-imx.c | 417 unsigned int temp; in i2c_imx_clear_irq() local 424 temp = ~i2c_imx->hwdata->i2sr_clr_opcode ^ bits; in i2c_imx_clear_irq() 425 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2SR); in i2c_imx_clear_irq() 431 unsigned int temp; in i2c_imx_bus_busy() local 436 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_bus_busy() 439 if (temp & I2SR_IAL) { in i2c_imx_bus_busy() 444 if (for_busy && (temp & I2SR_IBB)) { in i2c_imx_bus_busy() 448 if (!for_busy && !(temp & I2SR_IBB)) { in i2c_imx_bus_busy() 577 unsigned int temp = 0; in i2c_imx_start() local 594 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_start() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/hwmon/ |
| H A D | adt7470.c | 151 s8 temp[ADT7470_TEMP_COUNT]; member 221 /* Delay is 200ms * number of temp sensors. */ in adt7470_read_temperatures() 245 data->temp[i] = i2c_smbus_read_byte_data(client, in adt7470_read_temperatures() 247 if (data->temp[i]) in adt7470_read_temperatures() 309 data->temp[i] = i2c_smbus_read_byte_data(client, in adt7470_update_device() 406 long temp; in auto_update_interval_store() local 408 if (kstrtol(buf, 10, &temp)) in auto_update_interval_store() 411 temp = clamp_val(temp, 0, 60000); in auto_update_interval_store() 414 data->auto_update_interval = temp; in auto_update_interval_store() 433 long temp; in num_temp_sensors_store() local [all …]
|
| H A D | adt7462.c | 199 u8 temp[ADT7462_TEMP_COUNT]; member 200 /* bits 6-7 are quarter pieces of temp */ 692 data->temp[i] = i2c_smbus_read_byte_data(client, in adt7462_update_device() 797 long temp; in temp_min_store() local 799 if (kstrtol(buf, 10, &temp) || !temp_enabled(data, attr->index)) in temp_min_store() 802 temp = clamp_val(temp, -64000, 191000); in temp_min_store() 803 temp = DIV_ROUND_CLOSEST(temp, 1000) + 64; in temp_min_store() 806 data->temp_min[attr->index] = temp; in temp_min_store() 808 temp); in temp_min_store() 833 long temp; in temp_max_store() local [all …]
|
| /OK3568_Linux_fs/kernel/lib/xz/ |
| H A D | xz_dec_stream.c | 129 } temp; member 152 * Fill s->temp by copying data starting from b->in[b->in_pos]. Caller 153 * must have set s->temp.pos to indicate how much data we are supposed 154 * to copy into s->temp.buf. Return true once s->temp.pos has reached 155 * s->temp.size. 160 b->in_size - b->in_pos, s->temp.size - s->temp.pos); in fill_temp() 162 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); in fill_temp() 164 s->temp.pos += copy_size; in fill_temp() 166 if (s->temp.pos == s->temp.size) { in fill_temp() 167 s->temp.pos = 0; in fill_temp() [all …]
|
| H A D | xz_dec_bcj.c | 75 } temp; member 395 * Flush pending filtered data from temp to the output buffer. 397 * data to the beginning of temp. 403 copy_size = min_t(size_t, s->temp.filtered, b->out_size - b->out_pos); in bcj_flush() 404 memcpy(b->out + b->out_pos, s->temp.buf, copy_size); in bcj_flush() 407 s->temp.filtered -= copy_size; in bcj_flush() 408 s->temp.size -= copy_size; in bcj_flush() 409 memmove(s->temp.buf, s->temp.buf + copy_size, s->temp.size); in bcj_flush() 428 if (s->temp.filtered > 0) { in xz_dec_bcj_run() 430 if (s->temp.filtered > 0) in xz_dec_bcj_run() [all …]
|
| /OK3568_Linux_fs/u-boot/arch/m68k/lib/ |
| H A D | cache.c | 53 u32 temp = 0; in icache_disable() local 59 __asm__ __volatile__("movec %0, %%acr2"::"r"(temp)); in icache_disable() 60 __asm__ __volatile__("movec %0, %%acr3"::"r"(temp)); in icache_disable() 62 __asm__ __volatile__("movec %0, %%acr6"::"r"(temp)); in icache_disable() 63 __asm__ __volatile__("movec %0, %%acr7"::"r"(temp)); in icache_disable() 66 __asm__ __volatile__("movec %0, %%acr0"::"r"(temp)); in icache_disable() 67 __asm__ __volatile__("movec %0, %%acr1"::"r"(temp)); in icache_disable() 73 u32 temp; in icache_invalid() local 75 temp = CONFIG_SYS_ICACHE_INV; in icache_invalid() 77 temp |= CONFIG_SYS_CACHE_ICACR; in icache_invalid() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/char/agp/ |
| H A D | ali-agp.c | 24 u32 temp; in ali_fetch_size() local 27 pci_read_config_dword(agp_bridge->dev, ALI_ATTBASE, &temp); in ali_fetch_size() 28 temp &= ~(0xfffffff0); in ali_fetch_size() 32 if (temp == values[i].size_value) { in ali_fetch_size() 45 u32 temp; in ali_tlbflush() local 47 pci_read_config_dword(agp_bridge->dev, ALI_TLBCTRL, &temp); in ali_tlbflush() 48 temp &= 0xfffffff0; in ali_tlbflush() 49 temp |= (1<<0 | 1<<1); in ali_tlbflush() 50 pci_write_config_dword(agp_bridge->dev, ALI_TAGCTRL, temp); in ali_tlbflush() 56 u32 temp; in ali_cleanup() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/scsi/aic7xxx/ |
| H A D | aic7xxx_93cx6.c | 107 uint8_t temp; in send_seeprom_cmd() local 111 temp = sd->sd_MS ^ sd->sd_CS; in send_seeprom_cmd() 112 SEEPROM_OUTB(sd, temp ^ sd->sd_CK); in send_seeprom_cmd() 117 temp ^= sd->sd_DO; in send_seeprom_cmd() 118 SEEPROM_OUTB(sd, temp); in send_seeprom_cmd() 120 SEEPROM_OUTB(sd, temp ^ sd->sd_CK); in send_seeprom_cmd() 123 temp ^= sd->sd_DO; in send_seeprom_cmd() 133 uint8_t temp; in reset_seeprom() local 135 temp = sd->sd_MS; in reset_seeprom() 136 SEEPROM_OUTB(sd, temp); in reset_seeprom() [all …]
|
| /OK3568_Linux_fs/kernel/sound/pci/au88x0/ |
| H A D | au88x0_core.c | 157 int addr, temp; 163 temp = hwread(vortex->mmio, VORTEX_MIX_ENIN + addr); 164 return ((temp >> (mixin & 3)) & 1); 171 int temp; in vortex_mix_setvolumebyte() local 174 temp = hwread(vortex->mmio, VORTEX_MIX_VOL_B + (mix << 2)); in vortex_mix_setvolumebyte() 175 if ((temp != 0x80) || (vol == 0x80)) in vortex_mix_setvolumebyte() 185 int temp; in vortex_mix_setinputvolumebyte() local 190 temp = in vortex_mix_setinputvolumebyte() 193 if ((temp != 0x80) || (vol == 0x80)) in vortex_mix_setinputvolumebyte() 203 int temp, addr; in vortex_mix_setenablebit() local [all …]
|
| /OK3568_Linux_fs/u-boot/arch/m68k/cpu/mcf5445x/ |
| H A D | speed.c | 75 int temp, vco = 0, bootmod_ccr, pdr; in setup_5441x_clocks() local 93 temp = in_be32(&pll->pcr); in setup_5441x_clocks() 94 temp &= ~0x3f; in setup_5441x_clocks() 95 temp |= 5; in setup_5441x_clocks() 96 out_be32(&pll->pcr, temp); in setup_5441x_clocks() 98 temp = in_be32(&pll->pdr); in setup_5441x_clocks() 99 temp &= ~0x001f0000; in setup_5441x_clocks() 100 temp |= 0x00040000; in setup_5441x_clocks() 101 out_be32(&pll->pdr, temp); in setup_5441x_clocks() 114 temp = (pdr & PLL_DR_OUTDIV1_BITS) + 1; in setup_5441x_clocks() [all …]
|