/linux-4.4.14/drivers/usb/host/ |
D | ohci-dbg.c | 12 #define edstring(ed_type) ({ char *temp; \ 14 case PIPE_CONTROL: temp = "ctrl"; break; \ 15 case PIPE_BULK: temp = "bulk"; break; \ 16 case PIPE_INTERRUPT: temp = "intr"; break; \ 17 default: temp = "isoc"; break; \ 18 } temp;}) 103 u32 temp; in ohci_dump_status() local 105 temp = ohci_readl (controller, ®s->revision) & 0xff; in ohci_dump_status() 108 0x03 & (temp >> 4), (temp & 0x0f), in ohci_dump_status() 109 (temp & 0x0100) ? "with" : "NO", in ohci_dump_status() [all …]
|
D | ehci-dbg.c | 417 unsigned temp; in qh_lines() local 438 temp = scnprintf (next, size, in qh_lines() 448 size -= temp; in qh_lines() 449 next += temp; in qh_lines() 466 temp = snprintf (next, size, in qh_lines() 478 if (size < temp) in qh_lines() 479 temp = size; in qh_lines() 480 size -= temp; in qh_lines() 481 next += temp; in qh_lines() 482 if (temp == size) in qh_lines() [all …]
|
D | xhci-dbg.c | 31 u32 temp; in xhci_dbg_regs() local 35 temp = readl(&xhci->cap_regs->hc_capbase); in xhci_dbg_regs() 37 &xhci->cap_regs->hc_capbase, temp); in xhci_dbg_regs() 39 (unsigned int) HC_LENGTH(temp)); in xhci_dbg_regs() 42 (unsigned int) HC_VERSION(temp)); in xhci_dbg_regs() 47 temp = readl(&xhci->cap_regs->run_regs_off); in xhci_dbg_regs() 50 (unsigned int) temp & RTSOFF_MASK); in xhci_dbg_regs() 53 temp = readl(&xhci->cap_regs->db_off); in xhci_dbg_regs() 54 xhci_dbg(xhci, "// @%p = 0x%x DBOFF\n", &xhci->cap_regs->db_off, temp); in xhci_dbg_regs() 60 u32 temp; in xhci_print_cap_regs() local [all …]
|
D | xhci-hub.c | 67 u32 temp; in xhci_create_usb3_bos_desc() local 94 temp = readl(&xhci->cap_regs->hcc_params); in xhci_create_usb3_bos_desc() 95 if (HCC_LTC(temp)) in xhci_create_usb3_bos_desc() 100 temp = readl(&xhci->cap_regs->hcs_params3); in xhci_create_usb3_bos_desc() 101 buf[12] = HCS_U1_LATENCY(temp); in xhci_create_usb3_bos_desc() 102 put_unaligned_le16(HCS_U2_LATENCY(temp), &buf[13]); in xhci_create_usb3_bos_desc() 157 u16 temp; in xhci_common_hub_descriptor() local 163 temp = 0; in xhci_common_hub_descriptor() 166 temp |= HUB_CHAR_INDV_PORT_LPSM; in xhci_common_hub_descriptor() 168 temp |= HUB_CHAR_NO_LPSM; in xhci_common_hub_descriptor() [all …]
|
D | ehci-hub.c | 162 u32 temp; in ehci_adjust_port_wakeup_flags() local 180 temp = ehci_readl(ehci, hostpc_reg); in ehci_adjust_port_wakeup_flags() 181 ehci_writel(ehci, temp & ~HOSTPC_PHCD, hostpc_reg); in ehci_adjust_port_wakeup_flags() 212 temp = ehci_readl(ehci, hostpc_reg); in ehci_adjust_port_wakeup_flags() 213 ehci_writel(ehci, temp | HOSTPC_PHCD, hostpc_reg); in ehci_adjust_port_wakeup_flags() 378 u32 temp; in ehci_bus_resume() local 428 temp = ehci_readl(ehci, &ehci->regs->port_status[i]); in ehci_bus_resume() 429 if ((temp & PORT_PE) && in ehci_bus_resume() 430 !(temp & (PORT_SUSPEND | PORT_RESUME))) { in ehci_bus_resume() 431 ehci_dbg(ehci, "Port status(0x%x) is wrong\n", temp); in ehci_bus_resume() [all …]
|
D | ohci-hub.c | 20 label, num, temp, \ 21 (temp & RH_PS_PRSC) ? " PRSC" : "", \ 22 (temp & RH_PS_OCIC) ? " OCIC" : "", \ 23 (temp & RH_PS_PSSC) ? " PSSC" : "", \ 24 (temp & RH_PS_PESC) ? " PESC" : "", \ 25 (temp & RH_PS_CSC) ? " CSC" : "", \ 27 (temp & RH_PS_LSDA) ? " LSDA" : "", \ 28 (temp & RH_PS_PPS) ? " PPS" : "", \ 29 (temp & RH_PS_PRS) ? " PRS" : "", \ 30 (temp & RH_PS_POCI) ? " POCI" : "", \ [all …]
|
D | ehci-tegra.c | 124 u32 temp; in tegra_ehci_internal_port_reset() local 141 temp = ehci_readl(ehci, portsc_reg); in tegra_ehci_internal_port_reset() 142 temp |= PORT_RESET; in tegra_ehci_internal_port_reset() 143 ehci_writel(ehci, temp, portsc_reg); in tegra_ehci_internal_port_reset() 145 temp &= ~PORT_RESET; in tegra_ehci_internal_port_reset() 146 ehci_writel(ehci, temp, portsc_reg); in tegra_ehci_internal_port_reset() 157 temp = ehci_readl(ehci, portsc_reg); in tegra_ehci_internal_port_reset() 158 } while (!(temp & PORT_PE) && tries--); in tegra_ehci_internal_port_reset() 159 if (temp & PORT_PE) in tegra_ehci_internal_port_reset() 169 if (temp & PORT_CSC) in tegra_ehci_internal_port_reset() [all …]
|
D | xhci-rcar.c | 61 u32 temp; in xhci_rcar_start() local 65 temp = readl(hcd->regs + RCAR_USB3_INT_ENA); in xhci_rcar_start() 66 temp |= RCAR_USB3_INT_ENA_VAL; in xhci_rcar_start() 67 writel(temp, hcd->regs + RCAR_USB3_INT_ENA); in xhci_rcar_start() 85 u32 data, val, temp; in xhci_rcar_download_firmware() local 93 temp = readl(regs + RCAR_USB3_DL_CTRL); in xhci_rcar_download_firmware() 94 temp |= RCAR_USB3_DL_CTRL_ENABLE; in xhci_rcar_download_firmware() 95 writel(temp, regs + RCAR_USB3_DL_CTRL); in xhci_rcar_download_firmware() 104 temp = readl(regs + RCAR_USB3_DL_CTRL); in xhci_rcar_download_firmware() 105 temp |= RCAR_USB3_DL_CTRL_FW_SET_DATA0; in xhci_rcar_download_firmware() [all …]
|
D | ehci-pci.c | 104 u32 temp; in ehci_pci_setup() local 235 temp = pci_find_capability(pdev, PCI_CAP_ID_DBG); in ehci_pci_setup() 236 if (temp) { in ehci_pci_setup() 237 pci_read_config_dword(pdev, temp, &temp); in ehci_pci_setup() 238 temp >>= 16; in ehci_pci_setup() 239 if (((temp >> 13) & 7) == 1) { in ehci_pci_setup() 243 temp &= 0x1fff; in ehci_pci_setup() 244 ehci->debug = hcd->regs + temp; in ehci_pci_setup() 245 temp = ehci_readl(ehci, &ehci->debug->control); in ehci_pci_setup() 248 (temp & DBGP_ENABLED) ? " IN USE" : ""); in ehci_pci_setup() [all …]
|
D | fotg210-hcd.c | 370 unsigned temp; in qh_lines() local 391 temp = scnprintf(next, size, in qh_lines() 401 size -= temp; in qh_lines() 402 next += temp; in qh_lines() 418 temp = snprintf(next, size, in qh_lines() 438 if (size < temp) in qh_lines() 439 temp = size; in qh_lines() 440 size -= temp; in qh_lines() 441 next += temp; in qh_lines() 442 if (temp == size) in qh_lines() [all …]
|
D | oxu210hp-hcd.c | 342 u32 temp = readl(&oxu->regs->status); in ehci_halt() local 347 if ((temp & STS_HALT) != 0) in ehci_halt() 350 temp = readl(&oxu->regs->command); in ehci_halt() 351 temp &= ~CMD_RUN; in ehci_halt() 352 writel(temp, &oxu->regs->command); in ehci_halt() 394 u32 temp; in ehci_quiesce() local 402 temp = readl(&oxu->regs->command) << 10; in ehci_quiesce() 403 temp &= STS_ASS | STS_PSS; in ehci_quiesce() 405 temp, 16 * 125) != 0) { in ehci_quiesce() 411 temp = readl(&oxu->regs->command); in ehci_quiesce() [all …]
|
D | ohci-da8xx.c | 175 int temp; in ohci_da8xx_hub_control() local 185 temp = roothub_portstatus(hcd_to_ohci(hcd), wIndex - 1); in ohci_da8xx_hub_control() 189 temp &= ~RH_PS_PPS; in ohci_da8xx_hub_control() 193 temp |= RH_PS_POCI; in ohci_da8xx_hub_control() 197 temp |= RH_PS_OCIC; in ohci_da8xx_hub_control() 199 put_unaligned(cpu_to_le32(temp), (__le32 *)buf); in ohci_da8xx_hub_control() 202 temp = 1; in ohci_da8xx_hub_control() 205 temp = 0; in ohci_da8xx_hub_control() 215 temp ? "Set" : "Clear", wIndex, "POWER"); in ohci_da8xx_hub_control() 220 return hub->set_power(wIndex, temp) ? -EPIPE : 0; in ohci_da8xx_hub_control() [all …]
|
/linux-4.4.14/drivers/media/usb/cx231xx/ |
D | cx231xx-417.c | 371 u32 temp; in mc417_register_write() local 374 temp = 0x82 | MCI_REGISTER_DATA_BYTE0 | ((value & 0x000000FF) << 8); in mc417_register_write() 375 temp = temp << 10; in mc417_register_write() 376 status = set_itvc_reg(dev, ITVC_WRITE_DIR, temp); in mc417_register_write() 379 temp = temp | (0x05 << 10); in mc417_register_write() 380 set_itvc_reg(dev, ITVC_WRITE_DIR, temp); in mc417_register_write() 383 temp = 0x82 | MCI_REGISTER_DATA_BYTE1 | (value & 0x0000FF00); in mc417_register_write() 384 temp = temp << 10; in mc417_register_write() 385 set_itvc_reg(dev, ITVC_WRITE_DIR, temp); in mc417_register_write() 386 temp = temp | (0x05 << 10); in mc417_register_write() [all …]
|
/linux-4.4.14/drivers/staging/comedi/ |
D | comedi_compat32.c | 108 } temp; in compat_chaninfo() local 119 err |= __get_user(temp.uint, &chaninfo32->subdev); in compat_chaninfo() 120 err |= __put_user(temp.uint, &chaninfo->subdev); in compat_chaninfo() 121 err |= __get_user(temp.uptr, &chaninfo32->maxdata_list); in compat_chaninfo() 122 err |= __put_user(compat_ptr(temp.uptr), &chaninfo->maxdata_list); in compat_chaninfo() 123 err |= __get_user(temp.uptr, &chaninfo32->flaglist); in compat_chaninfo() 124 err |= __put_user(compat_ptr(temp.uptr), &chaninfo->flaglist); in compat_chaninfo() 125 err |= __get_user(temp.uptr, &chaninfo32->rangelist); in compat_chaninfo() 126 err |= __put_user(compat_ptr(temp.uptr), &chaninfo->rangelist); in compat_chaninfo() 142 } temp; in compat_rangeinfo() local [all …]
|
/linux-4.4.14/drivers/thermal/ |
D | thermal_hwmon.c | 76 struct thermal_hwmon_temp *temp in temp_input_show() local 79 struct thermal_zone_device *tz = temp->tz; in temp_input_show() 94 struct thermal_hwmon_temp *temp in temp_crit_show() local 97 struct thermal_zone_device *tz = temp->tz; in temp_crit_show() 130 struct thermal_hwmon_temp *temp; in thermal_hwmon_lookup_temp() local 133 list_for_each_entry(temp, &hwmon->tz_list, hwmon_node) in thermal_hwmon_lookup_temp() 134 if (temp->tz == tz) { in thermal_hwmon_lookup_temp() 136 return temp; in thermal_hwmon_lookup_temp() 145 int temp; in thermal_zone_crit_temp_valid() local 146 return tz->ops->get_crit_temp && !tz->ops->get_crit_temp(tz, &temp); in thermal_zone_crit_temp_valid() [all …]
|
D | intel_quark_dts_thermal.c | 189 static int _get_trip_temp(int trip, int *temp) in _get_trip_temp() argument 208 *temp = (out >> (trip * QRK_DTS_SHIFT_TP)) & QRK_DTS_MASK_TP_THRES; in _get_trip_temp() 209 *temp -= QRK_DTS_TEMP_BASE; in _get_trip_temp() 215 int trip, int *temp) in sys_get_trip_temp() argument 217 return _get_trip_temp(trip, temp); in sys_get_trip_temp() 220 static inline int sys_get_crit_temp(struct thermal_zone_device *tzd, int *temp) in sys_get_crit_temp() argument 222 return _get_trip_temp(QRK_DTS_ID_TP_CRITICAL, temp); in sys_get_crit_temp() 226 int trip, int temp) in update_trip_temp() argument 250 if (temp > QRK_DTS_SAFE_TP_THRES) in update_trip_temp() 251 temp = QRK_DTS_SAFE_TP_THRES; in update_trip_temp() [all …]
|
D | qcom-spmi-temp-alarm.c | 61 long temp; member 105 chip->temp = (stage - 1) * TEMP_STAGE_STEP + in qpnp_tm_update_temp_no_adc() 110 chip->temp = stage * TEMP_STAGE_STEP + in qpnp_tm_update_temp_no_adc() 120 static int qpnp_tm_get_temp(void *data, int *temp) in qpnp_tm_get_temp() argument 125 if (!temp) in qpnp_tm_get_temp() 137 chip->temp = mili_celsius; in qpnp_tm_get_temp() 140 *temp = chip->temp < 0 ? 0 : chip->temp; in qpnp_tm_get_temp() 169 chip->temp = DEFAULT_TEMP; in qpnp_tm_init() 178 chip->temp = chip->thresh * TEMP_THRESH_STEP + in qpnp_tm_init()
|
D | db8500_thermal.c | 110 static int db8500_sys_get_temp(struct thermal_zone_device *thermal, int *temp) in db8500_sys_get_temp() argument 119 *temp = pzone->cur_temp_pseudo; in db8500_sys_get_temp() 182 int trip, int *temp) in db8500_sys_get_trip_temp() argument 190 *temp = ptrips->trip_points[trip].temp; in db8500_sys_get_trip_temp() 197 int *temp) in db8500_sys_get_crit_temp() argument 205 *temp = ptrips->trip_points[i].temp; in db8500_sys_get_crit_temp() 251 next_high = ptrips->trip_points[0].temp; in prcmu_low_irq_handler() 254 next_high = ptrips->trip_points[idx-1].temp; in prcmu_low_irq_handler() 255 next_low = ptrips->trip_points[idx-2].temp; in prcmu_low_irq_handler() 278 next_high = ptrips->trip_points[idx+1].temp; in prcmu_high_irq_handler() [all …]
|
D | rockchip_thermal.c | 105 int chn, void __iomem *reg, int *temp); 107 int chn, void __iomem *reg, int temp); 168 int temp; member 249 int temp) in rk_tsadcv2_temp_to_code() argument 257 if (temp < table.id[low].temp || temp > table.id[high].temp) in rk_tsadcv2_temp_to_code() 261 if (temp == table.id[mid].temp) in rk_tsadcv2_temp_to_code() 263 else if (temp < table.id[mid].temp) in rk_tsadcv2_temp_to_code() 274 int *temp) in rk_tsadcv2_code_to_temp() argument 329 num = table.id[mid].temp - v2_code_table[mid - 1].temp; in rk_tsadcv2_code_to_temp() 332 *temp = table.id[mid - 1].temp + (num / denom); in rk_tsadcv2_code_to_temp() [all …]
|
D | imx_thermal.c | 133 static int imx_get_temp(struct thermal_zone_device *tz, int *temp) in imx_get_temp() argument 179 *temp = data->c2 - n_meas * data->c1; in imx_get_temp() 184 *temp >= data->temp_passive) in imx_get_temp() 187 *temp < data->temp_passive) { in imx_get_temp() 194 if (*temp != data->last_temp) { in imx_get_temp() 195 dev_dbg(&tz->device, "millicelsius: %d\n", *temp); in imx_get_temp() 196 data->last_temp = *temp; in imx_get_temp() 200 if (!data->irq_enabled && *temp < data->alarm_temp) { in imx_get_temp() 262 static int imx_get_crit_temp(struct thermal_zone_device *tz, int *temp) in imx_get_crit_temp() argument 266 *temp = data->temp_critical; in imx_get_crit_temp() [all …]
|
D | x86_pkg_temp_thermal.c | 167 static int sys_get_curr_temp(struct thermal_zone_device *tzd, int *temp) in sys_get_curr_temp() argument 176 *temp = phy_dev_entry->tj_max - in sys_get_curr_temp() 178 pr_debug("sys_get_curr_temp %d\n", *temp); in sys_get_curr_temp() 186 int trip, int *temp) in sys_get_trip_temp() argument 214 *temp = phy_dev_entry->tj_max - thres_reg_value * 1000; in sys_get_trip_temp() 216 *temp = 0; in sys_get_trip_temp() 217 pr_debug("sys_get_trip_temp %d\n", *temp); in sys_get_trip_temp() 223 int temp) in sys_set_trip_temp() argument 232 if (trip >= MAX_NUMBER_OF_TRIPS || temp >= phy_dev_entry->tj_max) in sys_set_trip_temp() 255 if (!temp) in sys_set_trip_temp() [all …]
|
D | intel_pch_thermal.c | 120 static int pch_wpt_get_temp(struct pch_thermal_device *ptd, int *temp) in pch_wpt_get_temp() argument 127 *temp = (wpt_temp * 1000 / 2 - 50000); in pch_wpt_get_temp() 134 int (*get_temp)(struct pch_thermal_device *ptd, int *temp); 144 static int pch_thermal_get_temp(struct thermal_zone_device *tzd, int *temp) in pch_thermal_get_temp() argument 148 return ptd->ops->get_temp(ptd, temp); in pch_thermal_get_temp() 166 static int pch_get_trip_temp(struct thermal_zone_device *tzd, int trip, int *temp) in pch_get_trip_temp() argument 171 *temp = ptd->crt_temp; in pch_get_trip_temp() 173 *temp = ptd->hot_temp; in pch_get_trip_temp()
|
/linux-4.4.14/drivers/usb/gadget/udc/bdc/ |
D | bdc_dbg.c | 20 u32 temp; in bdc_dbg_regs() local 23 temp = bdc_readl(bdc->regs, BDC_BDCCFG0); in bdc_dbg_regs() 24 dev_vdbg(bdc->dev, "bdccfg0:0x%08x\n", temp); in bdc_dbg_regs() 25 temp = bdc_readl(bdc->regs, BDC_BDCCFG1); in bdc_dbg_regs() 26 dev_vdbg(bdc->dev, "bdccfg1:0x%08x\n", temp); in bdc_dbg_regs() 27 temp = bdc_readl(bdc->regs, BDC_BDCCAP0); in bdc_dbg_regs() 28 dev_vdbg(bdc->dev, "bdccap0:0x%08x\n", temp); in bdc_dbg_regs() 29 temp = bdc_readl(bdc->regs, BDC_BDCCAP1); in bdc_dbg_regs() 30 dev_vdbg(bdc->dev, "bdccap1:0x%08x\n", temp); in bdc_dbg_regs() 31 temp = bdc_readl(bdc->regs, BDC_USPC); in bdc_dbg_regs() [all …]
|
D | bdc_core.c | 59 u32 temp; in bdc_stop() local 62 temp = bdc_readl(bdc->regs, BDC_BDCSC); in bdc_stop() 64 if (BDC_CSTS(temp) == BDC_HLT) { in bdc_stop() 68 temp &= ~BDC_COP_MASK; in bdc_stop() 69 temp |= BDC_COS|BDC_COP_STP; in bdc_stop() 70 bdc_writel(bdc->regs, BDC_BDCSC, temp); in bdc_stop() 82 u32 temp; in bdc_reset() local 91 temp = bdc_readl(bdc->regs, BDC_BDCSC); in bdc_reset() 92 temp &= ~BDC_COP_MASK; in bdc_reset() 93 temp |= BDC_COS|BDC_COP_RST; in bdc_reset() [all …]
|
/linux-4.4.14/fs/jffs2/ |
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 …]
|
/linux-4.4.14/drivers/scsi/aic7xxx/ |
D | aic7xxx_93cx6.c | 113 uint8_t temp; in send_seeprom_cmd() local 117 temp = sd->sd_MS ^ sd->sd_CS; in send_seeprom_cmd() 118 SEEPROM_OUTB(sd, temp ^ sd->sd_CK); in send_seeprom_cmd() 123 temp ^= sd->sd_DO; in send_seeprom_cmd() 124 SEEPROM_OUTB(sd, temp); in send_seeprom_cmd() 126 SEEPROM_OUTB(sd, temp ^ sd->sd_CK); in send_seeprom_cmd() 129 temp ^= sd->sd_DO; in send_seeprom_cmd() 139 uint8_t temp; in reset_seeprom() local 141 temp = sd->sd_MS; in reset_seeprom() 142 SEEPROM_OUTB(sd, temp); in reset_seeprom() [all …]
|
/linux-4.4.14/arch/mips/include/asm/ |
D | bitops.h | 72 unsigned long temp; in set_bit() local 82 : "=&r" (temp), "=" GCC_OFF_SMALL_ASM() (*m) in set_bit() 91 : "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (*m) in set_bit() 93 } while (unlikely(!temp)); in set_bit() 103 : "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (*m) in set_bit() 105 } while (unlikely(!temp)); in set_bit() 124 unsigned long temp; in clear_bit() local 134 : "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (*m) in clear_bit() 143 : "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (*m) in clear_bit() 145 } while (unlikely(!temp)); in clear_bit() [all …]
|
D | atomic.h | 48 int temp; \ 57 : "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (v->counter) \ 60 int temp; \ 69 : "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (v->counter) \ 71 } while (unlikely(!temp)); \ 89 int temp; \ 99 : "=&r" (result), "=&r" (temp), \ 103 int temp; \ 112 : "=&r" (result), "=&r" (temp), \ 117 result = temp; result c_op i; \ [all …]
|
D | local.h | 34 unsigned long temp; in local_add_return() local 44 : "=&r" (result), "=&r" (temp), "=m" (l->a.counter) in local_add_return() 48 unsigned long temp; in local_add_return() local 58 : "=&r" (result), "=&r" (temp), "=m" (l->a.counter) in local_add_return() 79 unsigned long temp; in local_sub_return() local 89 : "=&r" (result), "=&r" (temp), "=m" (l->a.counter) in local_sub_return() 93 unsigned long temp; in local_sub_return() local 103 : "=&r" (result), "=&r" (temp), "=m" (l->a.counter) in local_sub_return()
|
/linux-4.4.14/drivers/net/phy/ |
D | marvell.c | 437 int temp; in m88e1116r_config_init() local 440 temp = phy_read(phydev, MII_BMCR); in m88e1116r_config_init() 441 temp |= BMCR_RESET; in m88e1116r_config_init() 442 err = phy_write(phydev, MII_BMCR, temp); in m88e1116r_config_init() 452 temp = phy_read(phydev, MII_M1011_PHY_SCR); in m88e1116r_config_init() 453 temp |= (7 << 12); /* max number of gigabit attempts */ in m88e1116r_config_init() 454 temp |= (1 << 11); /* enable downshift */ in m88e1116r_config_init() 455 temp |= MII_M1011_PHY_SCR_AUTO_CROSS; in m88e1116r_config_init() 456 err = phy_write(phydev, MII_M1011_PHY_SCR, temp); in m88e1116r_config_init() 463 temp = phy_read(phydev, MII_M1116R_CONTROL_REG_MAC); in m88e1116r_config_init() [all …]
|
D | davicom.c | 68 int temp; in dm9161_config_intr() local 70 temp = phy_read(phydev, MII_DM9161_INTR); in dm9161_config_intr() 72 if (temp < 0) in dm9161_config_intr() 73 return temp; in dm9161_config_intr() 76 temp &= ~(MII_DM9161_INTR_STOP); in dm9161_config_intr() 78 temp |= MII_DM9161_INTR_STOP; in dm9161_config_intr() 80 temp = phy_write(phydev, MII_DM9161_INTR, temp); in dm9161_config_intr() 82 return temp; in dm9161_config_intr() 106 int err, temp; in dm9161_config_init() local 116 temp = MII_DM9161_SCR_INIT; in dm9161_config_init() [all …]
|
/linux-4.4.14/arch/powerpc/platforms/embedded6xx/ |
D | c2k.c | 71 u32 temp; in c2k_reset_board() local 75 temp = in_le32(mv64x60_mpp_reg_base + MV64x60_MPP_CNTL_0); in c2k_reset_board() 76 temp &= 0xFFFF0FFF; in c2k_reset_board() 77 out_le32(mv64x60_mpp_reg_base + MV64x60_MPP_CNTL_0, temp); in c2k_reset_board() 79 temp = in_le32(mv64x60_gpp_reg_base + MV64x60_GPP_LEVEL_CNTL); in c2k_reset_board() 80 temp |= 0x00000004; in c2k_reset_board() 81 out_le32(mv64x60_gpp_reg_base + MV64x60_GPP_LEVEL_CNTL, temp); in c2k_reset_board() 83 temp = in_le32(mv64x60_gpp_reg_base + MV64x60_GPP_IO_CNTL); in c2k_reset_board() 84 temp |= 0x00000004; in c2k_reset_board() 85 out_le32(mv64x60_gpp_reg_base + MV64x60_GPP_IO_CNTL, temp); in c2k_reset_board() [all …]
|
/linux-4.4.14/drivers/staging/xgifb/ |
D | vb_setmode.c | 51 unsigned char temp; in InitTo330Pointer() local 59 temp = xgifb_reg_get(pVBInfo->P3c4, 0x3B); in InitTo330Pointer() 61 if (((temp & 0x88) == 0x80) || ((temp & 0x88) == 0x08)) in InitTo330Pointer() 251 unsigned short sync, temp; in XGI_SetSync() local 256 temp = 0x2F; in XGI_SetSync() 257 temp |= sync; in XGI_SetSync() 258 outb(temp, pVBInfo->P3c2); /* Set Misc(3c2) */ in XGI_SetSync() 586 unsigned char temp; in XGI_SetXG27FPBits() local 589 temp = xgifb_reg_get(pVBInfo->P3d4, 0x37); in XGI_SetXG27FPBits() 590 temp = (temp & 3) << 6; in XGI_SetXG27FPBits() [all …]
|
D | vb_util.h | 18 u8 temp; in xgifb_reg_and_or() local 20 temp = xgifb_reg_get(port, index); in xgifb_reg_and_or() 21 temp = (u8) ((temp & data_and) | data_or); in xgifb_reg_and_or() 22 xgifb_reg_set(port, index, temp); in xgifb_reg_and_or() 27 u8 temp; in xgifb_reg_and() local 29 temp = xgifb_reg_get(port, index); in xgifb_reg_and() 30 temp = (u8) (temp & data_and); in xgifb_reg_and() 31 xgifb_reg_set(port, index, temp); in xgifb_reg_and() 36 u8 temp; in xgifb_reg_or() local 38 temp = xgifb_reg_get(port, index); in xgifb_reg_or() [all …]
|
D | vb_init.c | 35 unsigned char data, temp; in XGINew_GetXG20DRAMType() local 44 temp = xgifb_reg_get(pVBInfo->P3c4, 0x3B); in XGINew_GetXG20DRAMType() 46 if (((temp & 0x88) == 0x80) || ((temp & 0x88) == 0x08)) in XGINew_GetXG20DRAMType() 405 unsigned char temp, temp1, temp2, temp3, j, k; in XGINew_SetDRAMDefaultRegister340() local 415 temp = 0xaa; in XGINew_SetDRAMDefaultRegister340() 416 XGI_SetDRAM_Helper(P3d4, temp, 0, 0x6B, 2, 0xF0, 0x10); in XGINew_SetDRAMDefaultRegister340() 440 temp = 0; in XGINew_SetDRAMDefaultRegister340() 441 temp1 = temp & 0x03; in XGINew_SetDRAMDefaultRegister340() 445 temp = pVBInfo->CR40[3][pVBInfo->ram_type]; in XGINew_SetDRAMDefaultRegister340() 446 temp1 = temp & 0x0F; in XGINew_SetDRAMDefaultRegister340() [all …]
|
/linux-4.4.14/lib/xz/ |
D | xz_dec_stream.c | 129 } temp; member 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() 389 if (!memeq(s->temp.buf, HEADER_MAGIC, HEADER_MAGIC_SIZE)) in dec_stream_header() 392 if (xz_crc32(s->temp.buf + HEADER_MAGIC_SIZE, 2, 0) in dec_stream_header() 393 != get_le32(s->temp.buf + HEADER_MAGIC_SIZE + 2)) in dec_stream_header() 396 if (s->temp.buf[HEADER_MAGIC_SIZE] != 0) in dec_stream_header() [all …]
|
D | xz_dec_bcj.c | 75 } temp; member 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() 449 if (s->temp.size < b->out_size - b->out_pos || s->temp.size == 0) { in xz_dec_bcj_run() 451 memcpy(b->out + b->out_pos, s->temp.buf, s->temp.size); in xz_dec_bcj_run() [all …]
|
D | xz_dec_lzma2.c | 275 } temp; member 852 if (s->temp.size > 0 || s->lzma2.compressed == 0) { in lzma2_lzma() 853 tmp = 2 * LZMA_IN_REQUIRED - s->temp.size; in lzma2_lzma() 854 if (tmp > s->lzma2.compressed - s->temp.size) in lzma2_lzma() 855 tmp = s->lzma2.compressed - s->temp.size; in lzma2_lzma() 859 memcpy(s->temp.buf + s->temp.size, b->in + b->in_pos, tmp); in lzma2_lzma() 861 if (s->temp.size + tmp == s->lzma2.compressed) { in lzma2_lzma() 862 memzero(s->temp.buf + s->temp.size + tmp, in lzma2_lzma() 863 sizeof(s->temp.buf) in lzma2_lzma() 864 - s->temp.size - tmp); in lzma2_lzma() [all …]
|
/linux-4.4.14/drivers/i2c/busses/ |
D | i2c-ali15x3.c | 132 unsigned char temp; in ali15x3_setup() local 145 pci_read_config_byte(ALI15X3_dev, SMBATPC, &temp); in ali15x3_setup() 146 if (temp & ALI15X3_LOCK) { in ali15x3_setup() 147 temp &= ~ALI15X3_LOCK; in ali15x3_setup() 148 pci_write_config_byte(ALI15X3_dev, SMBATPC, temp); in ali15x3_setup() 193 pci_read_config_byte(ALI15X3_dev, SMBCOM, &temp); in ali15x3_setup() 194 if ((temp & 1) == 0) { in ali15x3_setup() 196 pci_write_config_byte(ALI15X3_dev, SMBCOM, temp | 0x01); in ali15x3_setup() 200 pci_read_config_byte(ALI15X3_dev, SMBHSTCFG, &temp); in ali15x3_setup() 201 if ((temp & 1) == 0) { in ali15x3_setup() [all …]
|
D | i2c-imx.c | 425 unsigned int temp; in i2c_imx_bus_busy() local 430 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_bus_busy() 433 if (temp & I2SR_IAL) { in i2c_imx_bus_busy() 434 temp &= ~I2SR_IAL; in i2c_imx_bus_busy() 435 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2SR); in i2c_imx_bus_busy() 439 if (for_busy && (temp & I2SR_IBB)) in i2c_imx_bus_busy() 441 if (!for_busy && !(temp & I2SR_IBB)) in i2c_imx_bus_busy() 523 unsigned int temp = 0; in i2c_imx_start() local 542 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_start() 543 temp |= I2CR_MSTA; in i2c_imx_start() [all …]
|
D | i2c-ali1535.c | 140 unsigned char temp; in ali1535_setup() local 184 pci_read_config_byte(dev, SMBCFG, &temp); in ali1535_setup() 185 if ((temp & ALI1535_SMBIO_EN) == 0) { in ali1535_setup() 192 pci_read_config_byte(dev, SMBHSTCFG, &temp); in ali1535_setup() 193 if ((temp & 1) == 0) { in ali1535_setup() 209 pci_read_config_byte(dev, SMBREV, &temp); in ali1535_setup() 210 dev_dbg(&dev->dev, "SMBREV = 0x%X\n", temp); in ali1535_setup() 223 int temp; in ali1535_transaction() local 233 temp = inb_p(SMBHSTSTS); in ali1535_transaction() 237 if (temp & ALI1535_STS_BUSY) { in ali1535_transaction() [all …]
|
D | i2c-isch.c | 68 int temp; in sch_transaction() local 78 temp = inb(SMBHSTSTS) & 0x0f; in sch_transaction() 79 if (temp) { in sch_transaction() 81 if (temp & 0x01) { in sch_transaction() 83 "Clear...\n", temp); in sch_transaction() 85 if (temp & 0x06) { in sch_transaction() 87 "Resetting...\n", temp); in sch_transaction() 89 outb(temp, SMBHSTSTS); in sch_transaction() 90 temp = inb(SMBHSTSTS) & 0x0f; in sch_transaction() 91 if (temp) { in sch_transaction() [all …]
|
D | i2c-sis5595.c | 227 int temp; in sis5595_transaction() local 232 temp = sis5595_read(SMB_STS_LO) + (sis5595_read(SMB_STS_HI) << 8); in sis5595_transaction() 233 if (temp != 0x00) { in sis5595_transaction() 234 dev_dbg(&adap->dev, "SMBus busy (%04x). Resetting...\n", temp); in sis5595_transaction() 235 sis5595_write(SMB_STS_LO, temp & 0xff); in sis5595_transaction() 236 sis5595_write(SMB_STS_HI, temp >> 8); in sis5595_transaction() 237 if ((temp = sis5595_read(SMB_STS_LO) + (sis5595_read(SMB_STS_HI) << 8)) != 0x00) { in sis5595_transaction() 238 dev_dbg(&adap->dev, "Failed! (%02x)\n", temp); in sis5595_transaction() 251 temp = sis5595_read(SMB_STS_LO); in sis5595_transaction() 252 } while (!(temp & 0x40) && (timeout++ < MAX_TIMEOUT)); in sis5595_transaction() [all …]
|
D | i2c-sis96x.c | 89 int temp; in sis96x_transaction() local 96 if (((temp = sis96x_read(SMB_CNT)) & 0x03) != 0x00) { in sis96x_transaction() 99 "Resetting...\n", temp); in sis96x_transaction() 105 if (((temp = sis96x_read(SMB_CNT)) & 0x03) != 0x00) { in sis96x_transaction() 106 dev_dbg(&sis96x_adapter.dev, "Failed (0x%02x)\n", temp); in sis96x_transaction() 117 temp = sis96x_read(SMB_STS); in sis96x_transaction() 118 sis96x_write(SMB_STS, temp & 0x1e); in sis96x_transaction() 126 temp = sis96x_read(SMB_STS); in sis96x_transaction() 127 } while (!(temp & 0x0e) && (timeout++ < MAX_TIMEOUT)); in sis96x_transaction() 131 dev_dbg(&sis96x_adapter.dev, "SMBus Timeout! (0x%02x)\n", temp); in sis96x_transaction() [all …]
|
D | i2c-amd756.c | 106 int temp; in amd756_transaction() local 116 if ((temp = inw_p(SMB_GLOBAL_STATUS)) & (GS_HST_STS | GS_SMB_STS)) { in amd756_transaction() 117 dev_dbg(&adap->dev, "SMBus busy (%04x). Waiting...\n", temp); in amd756_transaction() 120 temp = inw_p(SMB_GLOBAL_STATUS); in amd756_transaction() 121 } while ((temp & (GS_HST_STS | GS_SMB_STS)) && in amd756_transaction() 125 dev_dbg(&adap->dev, "Busy wait timeout (%04x)\n", temp); in amd756_transaction() 137 temp = inw_p(SMB_GLOBAL_STATUS); in amd756_transaction() 138 } while ((temp & GS_HST_STS) && (timeout++ < MAX_TIMEOUT)); in amd756_transaction() 146 if (temp & GS_PRERR_STS) { in amd756_transaction() 151 if (temp & GS_COL_STS) { in amd756_transaction() [all …]
|
D | i2c-viapro.c | 138 int temp; in vt596_transaction() local 145 if ((temp = inb_p(SMBHSTSTS)) & 0x1F) { in vt596_transaction() 147 "Resetting...\n", temp); in vt596_transaction() 149 outb_p(temp, SMBHSTSTS); in vt596_transaction() 150 if ((temp = inb_p(SMBHSTSTS)) & 0x1F) { in vt596_transaction() 152 "(0x%02x)\n", temp); in vt596_transaction() 163 temp = inb_p(SMBHSTSTS); in vt596_transaction() 164 } while ((temp & 0x01) && (++timeout < MAX_TIMEOUT)); in vt596_transaction() 172 if (temp & 0x10) { in vt596_transaction() 178 if (temp & 0x08) { in vt596_transaction() [all …]
|
D | i2c-piix4.c | 132 unsigned char temp; in piix4_setup() local 180 pci_read_config_byte(PIIX4_dev, SMBHSTCFG, &temp); in piix4_setup() 185 pci_write_config_byte(PIIX4_dev, SMBHSTCFG, temp & 0xfe); in piix4_setup() 187 pci_write_config_byte(PIIX4_dev, SMBHSTCFG, temp | 0x01); in piix4_setup() 190 } else if ((temp & 1) == 0) { in piix4_setup() 201 temp | 1); in piix4_setup() 212 if (((temp & 0x0E) == 8) || ((temp & 0x0E) == 2)) in piix4_setup() 214 else if ((temp & 0x0E) == 0) in piix4_setup() 220 pci_read_config_byte(PIIX4_dev, SMBREV, &temp); in piix4_setup() 223 piix4_smba, temp); in piix4_setup() [all …]
|
D | i2c-sis630.c | 132 int temp; in sis630_transaction_start() local 135 temp = sis630_read(SMB_CNT); in sis630_transaction_start() 136 if ((temp & (SMB_PROBE | SMB_HOSTBUSY)) != 0x00) { in sis630_transaction_start() 137 dev_dbg(&adap->dev, "SMBus busy (%02x). Resetting...\n", temp); in sis630_transaction_start() 141 temp = sis630_read(SMB_CNT); in sis630_transaction_start() 142 if (temp & (SMB_PROBE | SMB_HOSTBUSY)) { in sis630_transaction_start() 143 dev_dbg(&adap->dev, "Failed! (%02x)\n", temp); in sis630_transaction_start() 163 temp = sis630_read(SMB_STS); in sis630_transaction_start() 164 sis630_write(SMB_STS, temp & 0x1e); in sis630_transaction_start() 174 int temp, result = 0, timeout = 0; in sis630_transaction_wait() local [all …]
|
/linux-4.4.14/arch/tile/gxio/ |
D | iorpc_mpipe.c | 28 struct alloc_buffer_stacks_param temp; in gxio_mpipe_alloc_buffer_stacks() local 29 struct alloc_buffer_stacks_param *params = &temp; in gxio_mpipe_alloc_buffer_stacks() 56 struct init_buffer_stack_aux_param temp; in gxio_mpipe_init_buffer_stack_aux() local 57 struct init_buffer_stack_aux_param *params = &temp; in gxio_mpipe_init_buffer_stack_aux() 87 struct alloc_notif_rings_param temp; in gxio_mpipe_alloc_notif_rings() local 88 struct alloc_notif_rings_param *params = &temp; in gxio_mpipe_alloc_notif_rings() 112 struct init_notif_ring_aux_param temp; in gxio_mpipe_init_notif_ring_aux() local 113 struct init_notif_ring_aux_param *params = &temp; in gxio_mpipe_init_notif_ring_aux() 141 struct request_notif_ring_interrupt_param temp; in gxio_mpipe_request_notif_ring_interrupt() local 142 struct request_notif_ring_interrupt_param *params = &temp; in gxio_mpipe_request_notif_ring_interrupt() [all …]
|
D | iorpc_trio.c | 27 struct alloc_asids_param temp; in gxio_trio_alloc_asids() local 28 struct alloc_asids_param *params = &temp; in gxio_trio_alloc_asids() 51 struct alloc_memory_maps_param temp; in gxio_trio_alloc_memory_maps() local 52 struct alloc_memory_maps_param *params = &temp; in gxio_trio_alloc_memory_maps() 74 struct alloc_scatter_queues_param temp; in gxio_trio_alloc_scatter_queues() local 75 struct alloc_scatter_queues_param *params = &temp; in gxio_trio_alloc_scatter_queues() 98 struct alloc_pio_regions_param temp; in gxio_trio_alloc_pio_regions() local 99 struct alloc_pio_regions_param *params = &temp; in gxio_trio_alloc_pio_regions() 122 struct init_pio_region_aux_param temp; in gxio_trio_init_pio_region_aux() local 123 struct init_pio_region_aux_param *params = &temp; in gxio_trio_init_pio_region_aux() [all …]
|
D | iorpc_globals.c | 24 struct arm_pollfd_param temp; in __iorpc_arm_pollfd() local 25 struct arm_pollfd_param *params = &temp; in __iorpc_arm_pollfd() 41 struct close_pollfd_param temp; in __iorpc_close_pollfd() local 42 struct close_pollfd_param *params = &temp; in __iorpc_close_pollfd() 59 struct get_mmio_base_param temp; in __iorpc_get_mmio_base() local 60 struct get_mmio_base_param *params = &temp; in __iorpc_get_mmio_base() 79 struct check_mmio_offset_param temp; in __iorpc_check_mmio_offset() local 80 struct check_mmio_offset_param *params = &temp; in __iorpc_check_mmio_offset()
|
D | iorpc_mpipe_info.c | 25 struct instance_aux_param temp; in gxio_mpipe_info_instance_aux() local 26 struct instance_aux_param *params = &temp; in gxio_mpipe_info_instance_aux() 47 struct enumerate_aux_param temp; in gxio_mpipe_info_enumerate_aux() local 48 struct enumerate_aux_param *params = &temp; in gxio_mpipe_info_enumerate_aux() 70 struct get_mmio_base_param temp; in gxio_mpipe_info_get_mmio_base() local 71 struct get_mmio_base_param *params = &temp; in gxio_mpipe_info_get_mmio_base() 91 struct check_mmio_offset_param temp; in gxio_mpipe_info_check_mmio_offset() local 92 struct check_mmio_offset_param *params = &temp; in gxio_mpipe_info_check_mmio_offset()
|
D | iorpc_usb_host.c | 25 struct cfg_interrupt_param temp; in gxio_usb_host_cfg_interrupt() local 26 struct cfg_interrupt_param *params = &temp; in gxio_usb_host_cfg_interrupt() 47 struct register_client_memory_param temp; in gxio_usb_host_register_client_memory() local 48 struct register_client_memory_param *params = &temp; in gxio_usb_host_register_client_memory() 67 struct get_mmio_base_param temp; in gxio_usb_host_get_mmio_base() local 68 struct get_mmio_base_param *params = &temp; in gxio_usb_host_get_mmio_base() 88 struct check_mmio_offset_param temp; in gxio_usb_host_check_mmio_offset() local 89 struct check_mmio_offset_param *params = &temp; in gxio_usb_host_check_mmio_offset()
|
D | iorpc_uart.c | 25 struct cfg_interrupt_param temp; in gxio_uart_cfg_interrupt() local 26 struct cfg_interrupt_param *params = &temp; in gxio_uart_cfg_interrupt() 46 struct get_mmio_base_param temp; in gxio_uart_get_mmio_base() local 47 struct get_mmio_base_param *params = &temp; in gxio_uart_get_mmio_base() 67 struct check_mmio_offset_param temp; in gxio_uart_check_mmio_offset() local 68 struct check_mmio_offset_param *params = &temp; in gxio_uart_check_mmio_offset()
|
/linux-4.4.14/arch/metag/include/asm/ |
D | atomic_lnkget.h | 20 int temp; in atomic_read() local 24 : "=da" (temp) in atomic_read() 27 return temp; in atomic_read() 33 int temp; \ 43 : "=&d" (temp) \ 51 int result, temp; \ 63 : "=&d" (temp), "=&da" (result) \ 87 int result, temp; in ATOMIC_OPS() local 101 : "=&d" (temp), "=&d" (result) in ATOMIC_OPS() 112 int temp, old; in atomic_xchg() local [all …]
|
D | cmpxchg_lnkget.h | 6 int temp, old; in xchg_u32() local 20 : "=&d" (temp), "=&d" (old) in xchg_u32() 32 int temp, old; in xchg_u8() local 46 : "=&d" (temp), "=&d" (old) in xchg_u8() 59 __u32 retval, temp; in __cmpxchg_u32() local 76 : "=&d" (temp), "=&da" (retval) in __cmpxchg_u32()
|
/linux-4.4.14/drivers/video/fbdev/sis/ |
D | init301.c | 287 unsigned short modeflag,index,temp,backupindex; in SiS_GetRatePtr() local 326 temp = LCDRefreshIndex[SiS_GetBIOSLCDResInfo(SiS_Pr)]; in SiS_GetRatePtr() 327 if(index > temp) index = temp; in SiS_GetRatePtr() 353 temp = SiS_Pr->SiS_RefIndex[RRTI + i].Ext_InfoFlag; in SiS_GetRatePtr() 354 temp &= ModeTypeMask; in SiS_GetRatePtr() 355 if(temp < SiS_Pr->SiS_ModeType) break; in SiS_GetRatePtr() 362 temp = SiS_Pr->SiS_RefIndex[RRTI + i - 1].Ext_InfoFlag; in SiS_GetRatePtr() 363 if(temp & InterlaceMode) i++; in SiS_GetRatePtr() 404 unsigned short temp,temp1; in SiS_CR36BIOSWord23b() local 408 temp = 1 << ((SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) >> 4) & 0x0f); in SiS_CR36BIOSWord23b() [all …]
|
D | init.c | 932 u8 temp; in SiS_SetRegANDOR() local 934 temp = SiS_GetReg(Port, Index); in SiS_SetRegANDOR() 935 temp = (temp & (DataAND)) | DataOR; in SiS_SetRegANDOR() 936 SiS_SetReg(Port, Index, temp); in SiS_SetRegANDOR() 942 u8 temp; in SiS_SetRegAND() local 944 temp = SiS_GetReg(Port, Index); in SiS_SetRegAND() 945 temp &= DataAND; in SiS_SetRegAND() 946 SiS_SetReg(Port, Index, temp); in SiS_SetRegAND() 952 u8 temp; in SiS_SetRegOR() local 954 temp = SiS_GetReg(Port, Index); in SiS_SetRegOR() [all …]
|
/linux-4.4.14/drivers/char/agp/ |
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 …]
|
D | i460-agp.c | 107 u8 temp; in i460_fetch_size() local 111 pci_read_config_byte(agp_bridge->dev, INTEL_I460_GXBCTL, &temp); in i460_fetch_size() 112 i460.io_page_shift = (temp & I460_4M_PS) ? 22 : 12; in i460_fetch_size() 126 pci_read_config_byte(agp_bridge->dev, INTEL_I460_AGPSIZ, &temp); in i460_fetch_size() 129 if (temp & I460_SRAM_IO_DISABLE) { in i460_fetch_size() 136 if ((i460.io_page_shift == 0) && ((temp & I460_AGPSIZ_MASK) == 4)) { in i460_fetch_size() 142 if (temp & I460_BAPBASE_ENABLE) in i460_fetch_size() 159 if ((temp & I460_AGPSIZ_MASK) == values[i].size_value) { in i460_fetch_size() 181 u8 temp; in i460_write_agpsiz() local 183 pci_read_config_byte(agp_bridge->dev, INTEL_I460_AGPSIZ, &temp); in i460_write_agpsiz() [all …]
|
D | ati-agp.c | 147 u32 temp; in ati_fetch_size() local 151 pci_read_config_dword(agp_bridge->dev, ATI_RS100_APSIZE, &temp); in ati_fetch_size() 153 pci_read_config_dword(agp_bridge->dev, ATI_RS300_APSIZE, &temp); in ati_fetch_size() 155 temp = (temp & 0x0000000e); in ati_fetch_size() 158 if (temp == values[i].size_value) { in ati_fetch_size() 179 u32 temp; in ati_cleanup() local 185 pci_read_config_dword(agp_bridge->dev, ATI_RS100_APSIZE, &temp); in ati_cleanup() 186 temp = ((temp & ~(0x0000000f)) | previous_size->size_value); in ati_cleanup() 187 pci_write_config_dword(agp_bridge->dev, ATI_RS100_APSIZE, temp); in ati_cleanup() 189 pci_read_config_dword(agp_bridge->dev, ATI_RS300_APSIZE, &temp); in ati_cleanup() [all …]
|
D | via-agp.c | 26 u8 temp; in via_fetch_size() local 30 pci_read_config_byte(agp_bridge->dev, VIA_APSIZE, &temp); in via_fetch_size() 32 if (temp == values[i].size_value) { in via_fetch_size() 39 printk(KERN_ERR PFX "Unknown aperture size from AGP bridge (0x%x)\n", temp); in via_fetch_size() 81 u32 temp; in via_tlbflush() local 83 pci_read_config_dword(agp_bridge->dev, VIA_GARTCTRL, &temp); in via_tlbflush() 84 temp |= (1<<7); in via_tlbflush() 85 pci_write_config_dword(agp_bridge->dev, VIA_GARTCTRL, temp); in via_tlbflush() 86 temp &= ~(1<<7); in via_tlbflush() 87 pci_write_config_dword(agp_bridge->dev, VIA_GARTCTRL, temp); in via_tlbflush() [all …]
|
D | generic.c | 291 void *temp; in agp_return_size() local 293 temp = agp_bridge->current_size; in agp_return_size() 297 current_size = A_SIZE_8(temp)->size; in agp_return_size() 300 current_size = A_SIZE_16(temp)->size; in agp_return_size() 303 current_size = A_SIZE_32(temp)->size; in agp_return_size() 306 current_size = A_SIZE_LVL2(temp)->size; in agp_return_size() 309 current_size = A_SIZE_FIX(temp)->size; in agp_return_size() 326 void *temp; in agp_num_entries() local 328 temp = agp_bridge->current_size; in agp_num_entries() 332 num_entries = A_SIZE_8(temp)->num_entries; in agp_num_entries() [all …]
|
D | intel-agp.c | 20 u16 temp; in intel_fetch_size() local 23 pci_read_config_word(agp_bridge->dev, INTEL_APSIZE, &temp); in intel_fetch_size() 27 if (temp == values[i].size_value) { in intel_fetch_size() 37 static int __intel_8xx_fetch_size(u8 temp) in __intel_8xx_fetch_size() argument 45 if (temp == values[i].size_value) { in __intel_8xx_fetch_size() 57 u8 temp; in intel_8xx_fetch_size() local 59 pci_read_config_byte(agp_bridge->dev, INTEL_APSIZE, &temp); in intel_8xx_fetch_size() 60 return __intel_8xx_fetch_size(temp); in intel_8xx_fetch_size() 65 u8 temp; in intel_815_fetch_size() local 69 pci_read_config_byte(agp_bridge->dev, INTEL_APSIZE, &temp); in intel_815_fetch_size() [all …]
|
D | sworks-agp.c | 142 u32 temp; in serverworks_create_gatt_table() local 177 pci_read_config_dword(agp_bridge->dev,serverworks_private.gart_addr_ofs,&temp); in serverworks_create_gatt_table() 178 agp_bridge->gart_bus_addr = (temp & PCI_BASE_ADDRESS_MEM_MASK); in serverworks_create_gatt_table() 203 u32 temp; in serverworks_fetch_size() local 208 pci_read_config_dword(agp_bridge->dev,serverworks_private.gart_addr_ofs,&temp); in serverworks_fetch_size() 212 pci_write_config_dword(agp_bridge->dev,serverworks_private.gart_addr_ofs,temp); in serverworks_fetch_size() 235 static void serverworks_tlbflush(struct agp_memory *temp) in serverworks_tlbflush() argument 265 u32 temp; in serverworks_configure() local 272 pci_read_config_dword(agp_bridge->dev, serverworks_private.mm_addr_ofs, &temp); in serverworks_configure() 273 temp = (temp & PCI_BASE_ADDRESS_MEM_MASK); in serverworks_configure() [all …]
|
D | amd-k7-agp.c | 186 u32 temp; in amd_irongate_fetch_size() local 189 pci_read_config_dword(agp_bridge->dev, AMD_APSIZE, &temp); in amd_irongate_fetch_size() 190 temp = (temp & 0x0000000e); in amd_irongate_fetch_size() 193 if (temp == values[i].size_value) { in amd_irongate_fetch_size() 209 u32 temp; in amd_irongate_configure() local 239 pci_read_config_dword(agp_bridge->dev, AMD_APSIZE, &temp); in amd_irongate_configure() 240 temp = (((temp & ~(0x0000000e)) | current_size->size_value) | 1); in amd_irongate_configure() 241 pci_write_config_dword(agp_bridge->dev, AMD_APSIZE, temp); in amd_irongate_configure() 252 u32 temp; in amd_irongate_cleanup() local 263 pci_read_config_dword(agp_bridge->dev, AMD_APSIZE, &temp); in amd_irongate_cleanup() [all …]
|
D | nvidia-agp.c | 111 u32 temp; in nvidia_configure() local 148 pci_read_config_dword(nvidia_private.dev_2, NVIDIA_2_GARTCTRL, &temp); in nvidia_configure() 149 pci_write_config_dword(nvidia_private.dev_2, NVIDIA_2_GARTCTRL, temp | 0x11); in nvidia_configure() 152 pci_read_config_dword(agp_bridge->dev, NVIDIA_0_APSIZE, &temp); in nvidia_configure() 153 pci_write_config_dword(agp_bridge->dev, NVIDIA_0_APSIZE, temp | 0x100); in nvidia_configure() 169 u32 temp; in nvidia_cleanup() local 172 pci_read_config_dword(agp_bridge->dev, NVIDIA_0_APSIZE, &temp); in nvidia_cleanup() 173 pci_write_config_dword(agp_bridge->dev, NVIDIA_0_APSIZE, temp & ~(0x100)); in nvidia_cleanup() 176 pci_read_config_dword(nvidia_private.dev_2, NVIDIA_2_GARTCTRL, &temp); in nvidia_cleanup() 177 pci_write_config_dword(nvidia_private.dev_2, NVIDIA_2_GARTCTRL, temp & ~(0x11)); in nvidia_cleanup() [all …]
|
/linux-4.4.14/arch/mips/include/asm/mach-pmcs-msp71xx/ |
D | msp_regops.h | 76 u32 temp; in set_value_reg32() local 88 : "=&r" (temp), "=" GCC_OFF_SMALL_ASM() (*addr) in set_value_reg32() 98 u32 temp; in set_reg32() local 109 : "=&r" (temp), "=" GCC_OFF_SMALL_ASM() (*addr) in set_reg32() 119 u32 temp; in clear_reg32() local 130 : "=&r" (temp), "=" GCC_OFF_SMALL_ASM() (*addr) in clear_reg32() 140 u32 temp; in toggle_reg32() local 151 : "=&r" (temp), "=" GCC_OFF_SMALL_ASM() (*addr) in toggle_reg32() 161 u32 temp; in read_reg32() local 169 : "=&r" (temp) in read_reg32() [all …]
|
/linux-4.4.14/arch/powerpc/sysdev/qe_lib/ |
D | qe_ic.c | 203 u32 temp; in qe_ic_unmask_irq() local 207 temp = qe_ic_read(qe_ic->regs, qe_ic_info[src].mask_reg); in qe_ic_unmask_irq() 209 temp | qe_ic_info[src].mask); in qe_ic_unmask_irq() 219 u32 temp; in qe_ic_mask_irq() local 223 temp = qe_ic_read(qe_ic->regs, qe_ic_info[src].mask_reg); in qe_ic_mask_irq() 225 temp & ~qe_ic_info[src].mask); in qe_ic_mask_irq() 320 u32 temp = 0, ret, high_active = 0; in qe_ic_init() local 353 temp |= CICR_GWCC; in qe_ic_init() 355 temp |= CICR_GXCC; in qe_ic_init() 357 temp |= CICR_GYCC; in qe_ic_init() [all …]
|
/linux-4.4.14/arch/powerpc/boot/ |
D | cuboot-c2k.c | 138 u32 temp; in c2k_reset() local 143 temp = in_le32((u32 *)(bridge_base + MV64x60_MPP_CNTL_0)); in c2k_reset() 144 temp &= 0xFFFF0FFF; in c2k_reset() 145 out_le32((u32 *)(bridge_base + MV64x60_MPP_CNTL_0), temp); in c2k_reset() 147 temp = in_le32((u32 *)(bridge_base + MV64x60_GPP_LEVEL_CNTL)); in c2k_reset() 148 temp |= 0x00000004; in c2k_reset() 149 out_le32((u32 *)(bridge_base + MV64x60_GPP_LEVEL_CNTL), temp); in c2k_reset() 151 temp = in_le32((u32 *)(bridge_base + MV64x60_GPP_IO_CNTL)); in c2k_reset() 152 temp |= 0x00000004; in c2k_reset() 153 out_le32((u32 *)(bridge_base + MV64x60_GPP_IO_CNTL), temp); in c2k_reset() [all …]
|
/linux-4.4.14/drivers/gpu/drm/gma500/ |
D | oaktrail_hdmi_i2c.c | 79 u32 temp; in hdmi_i2c_irq_enable() local 81 temp = HDMI_READ(HDMI_HICR); in hdmi_i2c_irq_enable() 82 temp |= (HDMI_INTR_I2C_ERROR | HDMI_INTR_I2C_FULL | HDMI_INTR_I2C_DONE); in hdmi_i2c_irq_enable() 83 HDMI_WRITE(HDMI_HICR, temp); in hdmi_i2c_irq_enable() 97 u32 temp; in xfer_read() local 105 temp = ((pmsg->len) << 20) | HI2C_EDID_READ | HI2C_ENABLE_TRANSACTION; in xfer_read() 106 HDMI_WRITE(HDMI_HI2CHCR, temp); in xfer_read() 180 u32 temp; in hdmi_i2c_read() local 185 temp = HDMI_READ(HDMI_HI2CRDB0 + (i * 4)); in hdmi_i2c_read() 186 memcpy(buf + (offset + i * 4), &temp, 4); in hdmi_i2c_read() [all …]
|
D | mdfld_intel_display.c | 55 int count, temp; in mdfldWaitForPipeDisable() local 73 temp = REG_READ(map->conf); in mdfldWaitForPipeDisable() 74 if ((temp & PIPEACONF_PIPE_STATE) == 0) in mdfldWaitForPipeDisable() 83 int count, temp; in mdfldWaitForPipeEnable() local 101 temp = REG_READ(map->conf); in mdfldWaitForPipeEnable() 102 if ((temp & PIPEACONF_PIPE_STATE) == 1) in mdfldWaitForPipeEnable() 242 u32 temp; in mdfld_disable_crtc() local 252 temp = REG_READ(map->cntr); in mdfld_disable_crtc() 253 if ((temp & DISPLAY_PLANE_ENABLE) != 0) { in mdfld_disable_crtc() 255 temp & ~DISPLAY_PLANE_ENABLE); in mdfld_disable_crtc() [all …]
|
D | oaktrail_hdmi.c | 281 u32 dspcntr, pipeconf, dpll, temp; in oaktrail_crtc_hdmi_mode_set() local 325 temp = htotal_calculate(adjusted_mode); in oaktrail_crtc_hdmi_mode_set() 326 REG_WRITE(htot_reg, temp); in oaktrail_crtc_hdmi_mode_set() 342 temp = adjusted_mode->crtc_hblank_end - adjusted_mode->crtc_hblank_start; in oaktrail_crtc_hdmi_mode_set() 343 HDMI_WRITE(HDMI_HBLANK_A, ((adjusted_mode->crtc_hdisplay - 1) << 16) | temp); in oaktrail_crtc_hdmi_mode_set() 382 u32 temp; in oaktrail_crtc_hdmi_dpms() local 391 temp = REG_READ(DSPBCNTR); in oaktrail_crtc_hdmi_dpms() 392 if ((temp & DISPLAY_PLANE_ENABLE) != 0) { in oaktrail_crtc_hdmi_dpms() 393 REG_WRITE(DSPBCNTR, temp & ~DISPLAY_PLANE_ENABLE); in oaktrail_crtc_hdmi_dpms() 401 temp = REG_READ(PIPEBCONF); in oaktrail_crtc_hdmi_dpms() [all …]
|
D | gma_display.c | 207 u32 temp; in gma_crtc_dpms() local 226 temp = REG_READ(map->dpll); in gma_crtc_dpms() 227 if ((temp & DPLL_VCO_ENABLE) == 0) { in gma_crtc_dpms() 228 REG_WRITE(map->dpll, temp); in gma_crtc_dpms() 232 REG_WRITE(map->dpll, temp | DPLL_VCO_ENABLE); in gma_crtc_dpms() 236 REG_WRITE(map->dpll, temp | DPLL_VCO_ENABLE); in gma_crtc_dpms() 243 temp = REG_READ(map->cntr); in gma_crtc_dpms() 244 if ((temp & DISPLAY_PLANE_ENABLE) == 0) { in gma_crtc_dpms() 246 temp | DISPLAY_PLANE_ENABLE); in gma_crtc_dpms() 254 temp = REG_READ(map->conf); in gma_crtc_dpms() [all …]
|
D | oaktrail_crtc.c | 229 u32 temp; in oaktrail_crtc_dpms() local 250 temp = REG_READ_WITH_AUX(map->dpll, i); in oaktrail_crtc_dpms() 251 if ((temp & DPLL_VCO_ENABLE) == 0) { in oaktrail_crtc_dpms() 252 REG_WRITE_WITH_AUX(map->dpll, temp, i); in oaktrail_crtc_dpms() 257 temp | DPLL_VCO_ENABLE, i); in oaktrail_crtc_dpms() 262 temp | DPLL_VCO_ENABLE, i); in oaktrail_crtc_dpms() 269 temp = REG_READ_WITH_AUX(map->conf, i); in oaktrail_crtc_dpms() 270 if ((temp & PIPEACONF_ENABLE) == 0) { in oaktrail_crtc_dpms() 272 temp | PIPEACONF_ENABLE, i); in oaktrail_crtc_dpms() 276 temp = REG_READ_WITH_AUX(map->cntr, i); in oaktrail_crtc_dpms() [all …]
|
D | cdv_intel_crt.c | 42 u32 temp, reg; in cdv_intel_crt_dpms() local 45 temp = REG_READ(reg); in cdv_intel_crt_dpms() 46 temp &= ~(ADPA_HSYNC_CNTL_DISABLE | ADPA_VSYNC_CNTL_DISABLE); in cdv_intel_crt_dpms() 47 temp &= ~ADPA_DAC_ENABLE; in cdv_intel_crt_dpms() 51 temp |= ADPA_DAC_ENABLE; in cdv_intel_crt_dpms() 54 temp |= ADPA_DAC_ENABLE | ADPA_HSYNC_CNTL_DISABLE; in cdv_intel_crt_dpms() 57 temp |= ADPA_DAC_ENABLE | ADPA_VSYNC_CNTL_DISABLE; in cdv_intel_crt_dpms() 60 temp |= ADPA_HSYNC_CNTL_DISABLE | ADPA_VSYNC_CNTL_DISABLE; in cdv_intel_crt_dpms() 64 REG_WRITE(reg, temp); in cdv_intel_crt_dpms()
|
/linux-4.4.14/arch/microblaze/kernel/ |
D | kgdb.c | 41 int temp; in pt_regs_to_gdb_regs() local 48 __asm__ __volatile__ ("mfs %0, rbtr;" : "=r"(temp) : ); in pt_regs_to_gdb_regs() 49 gdb_regs[GDB_BTR] = temp; in pt_regs_to_gdb_regs() 56 __asm__ __volatile__ ("mfs %0, redr;" : "=r"(temp) : ); in pt_regs_to_gdb_regs() 57 gdb_regs[GDB_REDR] = temp; in pt_regs_to_gdb_regs() 58 __asm__ __volatile__ ("mfs %0, rpid;" : "=r"(temp) : ); in pt_regs_to_gdb_regs() 59 gdb_regs[GDB_RPID] = temp; in pt_regs_to_gdb_regs() 60 __asm__ __volatile__ ("mfs %0, rzpr;" : "=r"(temp) : ); in pt_regs_to_gdb_regs() 61 gdb_regs[GDB_RZPR] = temp; in pt_regs_to_gdb_regs() 62 __asm__ __volatile__ ("mfs %0, rtlbx;" : "=r"(temp) : ); in pt_regs_to_gdb_regs() [all …]
|
/linux-4.4.14/sound/pci/au88x0/ |
D | au88x0_mpu401.c | 47 int temp, mode; in snd_vortex_midi() local 55 temp = in snd_vortex_midi() 58 hwwrite(vortex->mmio, VORTEX_CTRL, temp); in snd_vortex_midi() 61 temp = in snd_vortex_midi() 64 hwwrite(vortex->mmio, VORTEX_CTRL, temp); in snd_vortex_midi() 68 temp = hwread(vortex->mmio, VORTEX_CTRL2) & 0xffff00cf; in snd_vortex_midi() 69 temp |= (MIDI_CLOCK_DIV << 8) | ((mode >> 24) & 0xff) << 4; in snd_vortex_midi() 70 hwwrite(vortex->mmio, VORTEX_CTRL2, temp); in snd_vortex_midi() 74 temp = hwread(vortex->mmio, VORTEX_MIDI_DATA); in snd_vortex_midi() 75 if (temp != MPU401_ACK /*0xfe */ ) { in snd_vortex_midi() [all …]
|
D | au88x0_core.c | 169 int addr, temp; 175 temp = hwread(vortex->mmio, VORTEX_MIX_ENIN + addr); 176 return ((temp >> (mixin & 3)) & 1); 183 int temp; in vortex_mix_setvolumebyte() local 186 temp = hwread(vortex->mmio, VORTEX_MIX_VOL_B + (mix << 2)); in vortex_mix_setvolumebyte() 187 if ((temp != 0x80) || (vol == 0x80)) in vortex_mix_setvolumebyte() 197 int temp; in vortex_mix_setinputvolumebyte() local 202 temp = in vortex_mix_setinputvolumebyte() 205 if ((temp != 0x80) || (vol == 0x80)) in vortex_mix_setinputvolumebyte() 215 int temp, addr; in vortex_mix_setenablebit() local [all …]
|
D | au88x0_synth.c | 42 int temp; in vortex_wt_setstereo() local 45 temp = hwread(vortex->mmio, WT_STEREO(wt)); in vortex_wt_setstereo() 46 temp = (temp & 0xfe) | (stereo & 1); in vortex_wt_setstereo() 48 hwwrite(vortex->mmio, WT_STEREO(wt), temp); in vortex_wt_setstereo() 54 int temp; in vortex_wt_setdsout() local 57 temp = hwread(vortex->mmio, WT_DSREG((wt >= 0x20) ? 1 : 0)); in vortex_wt_setdsout() 59 temp |= (1 << (wt & 0x1f)); in vortex_wt_setdsout() 61 temp &= ~(1 << (wt & 0x1f)); in vortex_wt_setdsout() 62 hwwrite(vortex->mmio, WT_DSREG((wt >= 0x20) ? 1 : 0), temp); in vortex_wt_setdsout() 69 int temp; in vortex_wt_allocroute() local [all …]
|
/linux-4.4.14/drivers/media/pci/cx23885/ |
D | cx23885-f300.c | 87 u8 i, temp, ret = 0; in f300_xfer() local 89 temp = buf[0]; in f300_xfer() 91 temp += buf[i + 1]; in f300_xfer() 92 temp = (~temp + 1);/* get check sum */ in f300_xfer() 93 buf[1 + buf[0]] = temp; in f300_xfer() 108 temp = buf[0]; in f300_xfer() 109 temp += 2; in f300_xfer() 110 for (i = 0; i < temp; i++) in f300_xfer() 117 temp = 0; in f300_xfer() 118 for (i = 0; ((i < 8) & (temp == 0)); i++) { in f300_xfer() [all …]
|
/linux-4.4.14/drivers/gpio/ |
D | gpio-amd8111.c | 104 u8 temp; in amd_gpio_set() local 108 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_set() 109 …temp = (temp & AMD_GPIO_DEBOUNCE) | AMD_GPIO_MODE_OUT | (value ? AMD_GPIO_X_OUT_HI : AMD_GPIO_X_OU… in amd_gpio_set() 110 iowrite8(temp, agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_set() 113 dev_dbg(&agp->pdev->dev, "Setting gpio %d, value %d, reg=%02x\n", offset, !!value, temp); in amd_gpio_set() 119 u8 temp; in amd_gpio_get() local 121 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_get() 123 dev_dbg(&agp->pdev->dev, "Getting gpio %d, reg=%02x\n", offset, temp); in amd_gpio_get() 125 return (temp & AMD_GPIO_RTIN) ? 1 : 0; in amd_gpio_get() 131 u8 temp; in amd_gpio_dirout() local [all …]
|
D | gpio-loongson.c | 39 u32 temp; in loongson_gpio_direction_input() local 44 temp = LOONGSON_GPIOIE; in loongson_gpio_direction_input() 45 temp |= mask; in loongson_gpio_direction_input() 46 LOONGSON_GPIOIE = temp; in loongson_gpio_direction_input() 55 u32 temp; in loongson_gpio_direction_output() local 61 temp = LOONGSON_GPIOIE; in loongson_gpio_direction_output() 62 temp &= (~mask); in loongson_gpio_direction_output() 63 LOONGSON_GPIOIE = temp; in loongson_gpio_direction_output()
|
/linux-4.4.14/drivers/hwmon/ |
D | adt7470.c | 156 s8 temp[ADT7470_TEMP_COUNT]; member 251 data->temp[i] = i2c_smbus_read_byte_data(client, in adt7470_read_temperatures() 253 if (data->temp[i]) in adt7470_read_temperatures() 314 data->temp[i] = i2c_smbus_read_byte_data(client, in adt7470_update_device() 412 long temp; in set_auto_update_interval() local 414 if (kstrtol(buf, 10, &temp)) in set_auto_update_interval() 417 temp = clamp_val(temp, 0, 60000); in set_auto_update_interval() 420 data->auto_update_interval = temp; in set_auto_update_interval() 440 long temp; in set_num_temp_sensors() local 442 if (kstrtol(buf, 10, &temp)) in set_num_temp_sensors() [all …]
|
D | adt7462.c | 212 u8 temp[ADT7462_TEMP_COUNT]; member 701 data->temp[i] = i2c_smbus_read_byte_data(client, in adt7462_update_device() 808 long temp; in set_temp_min() local 810 if (kstrtol(buf, 10, &temp) || !temp_enabled(data, attr->index)) in set_temp_min() 813 temp = DIV_ROUND_CLOSEST(temp, 1000) + 64; in set_temp_min() 814 temp = clamp_val(temp, 0, 255); in set_temp_min() 817 data->temp_min[attr->index] = temp; in set_temp_min() 819 temp); in set_temp_min() 846 long temp; in set_temp_max() local 848 if (kstrtol(buf, 10, &temp) || !temp_enabled(data, attr->index)) in set_temp_max() [all …]
|
D | tmp421.c | 79 s16 temp[4]; member 85 int temp = reg & ~0xf; in temp_from_s16() local 87 return (temp * 1000 + 128) / 256; in temp_from_s16() 93 int temp = reg & ~0xf; in temp_from_u16() local 96 temp -= 64 * 256; in temp_from_u16() 98 return (temp * 1000 + 128) / 256; in temp_from_u16() 114 data->temp[i] = i2c_smbus_read_byte_data(client, in tmp421_update_device() 116 data->temp[i] |= i2c_smbus_read_byte_data(client, in tmp421_update_device() 133 int temp; in show_temp_value() local 137 temp = temp_from_u16(data->temp[index]); in show_temp_value() [all …]
|
D | lm77.c | 69 int temp[t_num_temp]; /* index using temp_index */ member 81 static inline s16 LM77_TEMP_TO_REG(int temp) in LM77_TEMP_TO_REG() argument 83 return (temp / 500) * 8; in LM77_TEMP_TO_REG() 123 data->temp[i] = in lm77_update_device() 146 return sprintf(buf, "%d\n", data->temp[attr->index]); in show_temp() 155 int temp; in show_temp_hyst() local 157 temp = nr == t_min ? data->temp[nr] + data->temp[t_hyst] : in show_temp_hyst() 158 data->temp[nr] - data->temp[t_hyst]; in show_temp_hyst() 160 return sprintf(buf, "%d\n", temp); in show_temp_hyst() 179 data->temp[nr] = val; in set_temp() [all …]
|
D | ds1621.c | 129 u16 temp[3]; /* Register values, word */ member 147 static inline u16 DS1621_TEMP_TO_REG(long temp, u8 zbits) in DS1621_TEMP_TO_REG() argument 149 temp = clamp_val(temp, DS1621_TEMP_MIN, DS1621_TEMP_MAX); in DS1621_TEMP_TO_REG() 150 temp = DIV_ROUND_CLOSEST(temp * (1 << (8 - zbits)), 1000) << zbits; in DS1621_TEMP_TO_REG() 151 return temp; in DS1621_TEMP_TO_REG() 214 for (i = 0; i < ARRAY_SIZE(data->temp); i++) in ds1621_update_client() 215 data->temp[i] = i2c_smbus_read_word_swapped(client, in ds1621_update_client() 220 if (data->temp[0] > data->temp[1]) /* input > min */ in ds1621_update_client() 222 if (data->temp[0] < data->temp[2]) /* input < max */ in ds1621_update_client() 243 DS1621_TEMP_FROM_REG(data->temp[attr->index])); in show_temp() [all …]
|
D | k8temp.c | 49 u32 temp[2][2]; /* core, place */ member 67 pci_read_config_dword(pdev, REG_TEMP, &data->temp[0][0]); in k8temp_update_device() 73 &data->temp[0][1]); in k8temp_update_device() 81 &data->temp[1][0]); in k8temp_update_device() 87 &data->temp[1][1]); in k8temp_update_device() 119 int temp; in show_temp() local 125 temp = TEMP_FROM_REG(data->temp[core][place]) + data->temp_offset; in show_temp() 127 return sprintf(buf, "%d\n", temp); in show_temp() 181 u32 temp; in k8temp_probe() local 234 pci_read_config_dword(pdev, REG_TEMP, &temp); in k8temp_probe() [all …]
|
D | adt7x10.c | 77 s16 temp[4]; /* Register values, member 159 int temp; in adt7x10_update_temp() local 167 temp = adt7x10_read_word(dev, ADT7X10_REG_TEMP[0]); in adt7x10_update_temp() 168 if (temp < 0) { in adt7x10_update_temp() 169 ret = temp; in adt7x10_update_temp() 174 data->temp[0] = temp; in adt7x10_update_temp() 190 for (i = 1; i < ARRAY_SIZE(data->temp); i++) { in adt7x10_fill_cache() 197 data->temp[i] = ret; in adt7x10_fill_cache() 211 static s16 ADT7X10_TEMP_TO_REG(long temp) in ADT7X10_TEMP_TO_REG() argument 213 return DIV_ROUND_CLOSEST(clamp_val(temp, ADT7X10_TEMP_MIN, in ADT7X10_TEMP_TO_REG() [all …]
|
D | lm92.c | 114 s16 temp[t_num_regs]; /* index with enum temp_index */ member 133 data->temp[i] = in lm92_update_device() 151 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in show_temp() 169 data->temp[nr] = TEMP_TO_REG(val); in set_temp() 170 i2c_smbus_write_word_swapped(client, regs[nr], data->temp[nr]); in set_temp() 180 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index]) in show_temp_hyst() 181 - TEMP_FROM_REG(data->temp[t_hyst])); in show_temp_hyst() 188 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[t_min]) in show_temp_min_hyst() 189 + TEMP_FROM_REG(data->temp[t_hyst])); in show_temp_min_hyst() 208 data->temp[t_hyst] = in set_temp_hyst() [all …]
|
D | tmp401.c | 173 u16 temp[6][3]; member 183 int temp = reg; in tmp401_register_to_temp() local 186 temp -= 64 * 256; in tmp401_register_to_temp() 188 return DIV_ROUND_CLOSEST(temp * 125, 32); in tmp401_register_to_temp() 191 static u16 tmp401_temp_to_register(long temp, u8 config, int zbits) in tmp401_temp_to_register() argument 194 temp = clamp_val(temp, -64000, 191000); in tmp401_temp_to_register() 195 temp += 64000; in tmp401_temp_to_register() 197 temp = clamp_val(temp, 0, 127000); in tmp401_temp_to_register() 199 return DIV_ROUND_CLOSEST(temp * (1 << (8 - zbits)), 1000) << zbits; in tmp401_temp_to_register() 222 data->temp[j][i] = val << 8; in tmp401_update_device_reg16() [all …]
|
D | ab8500.c | 57 int v_ntc, int *temp) in ab8500_voltage_to_temp() argument 74 *temp = tbl[i].temp * 1000 + ((tbl[i + 1].temp - tbl[i].temp) * 1000 * in ab8500_voltage_to_temp() 80 static int ab8500_read_sensor(struct abx500_temp *data, u8 sensor, int *temp) in ab8500_read_sensor() argument 86 *temp = ab8500_btemp_get_batctrl_temp(ab8500_data->btemp); in ab8500_read_sensor() 88 *temp = ab8500_btemp_get_temp(ab8500_data->btemp); in ab8500_read_sensor() 94 ret = ab8500_voltage_to_temp(&ab8500_data->cfg, voltage, temp); in ab8500_read_sensor()
|
D | max6697.c | 93 u8 temp[8][4]; /* [nr][0]=temp [1]=ext [2]=max [3]=crit */ member 206 data->temp[i][MAX6697_TEMP_EXT] = val; in max6697_update_device() 214 data->temp[i][MAX6697_TEMP_INPUT] = val; in max6697_update_device() 221 data->temp[i][MAX6697_TEMP_MAX] = val; in max6697_update_device() 230 data->temp[i][MAX6697_TEMP_CRIT] = val; in max6697_update_device() 257 int temp; in show_temp_input() local 262 temp = (data->temp[index][MAX6697_TEMP_INPUT] - data->temp_offset) << 3; in show_temp_input() 263 temp |= data->temp[index][MAX6697_TEMP_EXT] >> 5; in show_temp_input() 265 return sprintf(buf, "%d\n", temp * 125); in show_temp_input() 274 int temp; in show_temp() local [all …]
|
D | i5k_amb.c | 160 unsigned long temp; in store_amb_min() local 161 int ret = kstrtoul(buf, 10, &temp); in store_amb_min() 165 temp = temp / 500; in store_amb_min() 166 if (temp > 255) in store_amb_min() 167 temp = 255; in store_amb_min() 169 amb_write_byte(data, amb_reg_temp_min(attr->index), temp); in store_amb_min() 180 unsigned long temp; in store_amb_mid() local 181 int ret = kstrtoul(buf, 10, &temp); in store_amb_mid() 185 temp = temp / 500; in store_amb_mid() 186 if (temp > 255) in store_amb_mid() [all …]
|
D | lm75.c | 88 s16 temp[3]; /* Register values, member 101 static inline long lm75_reg_to_mc(s16 temp, u8 resolution) in lm75_reg_to_mc() argument 103 return ((temp >> (16 - resolution)) * 1000) >> (resolution - 8); in lm75_reg_to_mc() 108 static int lm75_read_temp(void *dev, int *temp) in lm75_read_temp() argument 115 *temp = lm75_reg_to_mc(data->temp[0], data->resolution); in lm75_read_temp() 129 return sprintf(buf, "%ld\n", lm75_reg_to_mc(data->temp[attr->index], in show_temp() 140 long temp; in set_temp() local 144 error = kstrtol(buf, 10, &temp); in set_temp() 158 temp = clamp_val(temp, LM75_TEMP_MIN, LM75_TEMP_MAX); in set_temp() 159 data->temp[nr] = DIV_ROUND_CLOSEST(temp << (resolution - 8), in set_temp() [all …]
|
D | ad7414.c | 134 long temp; in set_max_min() local 135 int ret = kstrtol(buf, 10, &temp); in set_max_min() 140 temp = clamp_val(temp, -40000, 85000); in set_max_min() 141 temp = (temp + (temp < 0 ? -500 : 500)) / 1000; in set_max_min() 144 data->temps[index] = temp; in set_max_min() 145 ad7414_write(client, reg, temp); in set_max_min()
|
D | i5500_temp.c | 50 long temp; in show_temp() local 56 temp = ((long)tsthrhi - tsfsc) * 500; in show_temp() 58 return sprintf(buf, "%ld\n", temp); in show_temp() 66 long temp; in show_thresh() local 70 temp = tsthr * 500; in show_thresh() 72 return sprintf(buf, "%ld\n", temp); in show_thresh()
|
/linux-4.4.14/net/ipv6/netfilter/ |
D | ip6t_ipv6header.c | 33 unsigned int temp; in ipv6header_mt6() local 46 temp = 0; in ipv6header_mt6() 55 temp |= MASK_NONE; in ipv6header_mt6() 63 temp |= MASK_ESP; in ipv6header_mt6() 81 temp |= MASK_HOPOPTS; in ipv6header_mt6() 84 temp |= MASK_ROUTING; in ipv6header_mt6() 87 temp |= MASK_FRAGMENT; in ipv6header_mt6() 90 temp |= MASK_AH; in ipv6header_mt6() 93 temp |= MASK_DSTOPTS; in ipv6header_mt6() 107 temp |= MASK_PROTO; in ipv6header_mt6() [all …]
|
D | ip6t_rt.c | 44 unsigned int temp; in rt_mt6() local 130 for (temp = 0; in rt_mt6() 131 temp < (unsigned int)((hdrlen - 8) / 16); in rt_mt6() 132 temp++) { in rt_mt6() 136 + temp * sizeof(_addr), in rt_mt6() 143 pr_debug("i=%d temp=%d;\n", i, temp); in rt_mt6() 162 for (temp = 0; temp < rtinfo->addrnr; temp++) { in rt_mt6() 166 + temp * sizeof(_addr), in rt_mt6() 171 if (!ipv6_addr_equal(ap, &rtinfo->addrs[temp])) in rt_mt6() 174 pr_debug("temp=%d #%d\n", temp, rtinfo->addrnr); in rt_mt6() [all …]
|
D | ip6t_hbh.c | 52 unsigned int temp; in hbh_mt6() local 104 for (temp = 0; temp < optinfo->optsnr; temp++) { in hbh_mt6() 114 if (*tp != (optinfo->opts[temp] & 0xFF00) >> 8) { in hbh_mt6() 116 (optinfo->opts[temp] & 0xFF00) >> 8); in hbh_mt6() 133 spec_len = optinfo->opts[temp] & 0x00FF; in hbh_mt6() 151 temp < optinfo->optsnr - 1) { in hbh_mt6() 158 if (temp == optinfo->optsnr) in hbh_mt6()
|
/linux-4.4.14/drivers/acpi/ |
D | acpi_lpat.c | 34 int i, delta_temp, delta_raw, temp; in acpi_lpat_raw_to_temp() local 46 delta_temp = lpat[i+1].temp - lpat[i].temp; in acpi_lpat_raw_to_temp() 48 temp = lpat[i].temp + (raw - lpat[i].raw) * delta_temp / delta_raw; in acpi_lpat_raw_to_temp() 50 return temp; in acpi_lpat_raw_to_temp() 66 int temp) in acpi_lpat_temp_to_raw() argument 72 if (temp >= lpat[i].temp && temp <= lpat[i+1].temp) in acpi_lpat_temp_to_raw() 79 delta_temp = lpat[i+1].temp - lpat[i].temp; in acpi_lpat_temp_to_raw() 81 raw = lpat[i].raw + (temp - lpat[i].temp) * delta_raw / delta_temp; in acpi_lpat_temp_to_raw()
|
/linux-4.4.14/arch/score/kernel/ |
D | module.c | 76 unsigned long temp, temp_hi; in apply_relocate() local 78 temp = *(unsigned long *)loc; in apply_relocate() 82 offset = ((temp >> 16 & 0x03) << 15) | in apply_relocate() 83 ((temp & 0x7fff) >> 1); in apply_relocate() 94 temp = (temp & (~(0x37fff))) | (offset & 0x7fff) | in apply_relocate() 96 *(unsigned long *)loc = temp; in apply_relocate() 102 unsigned long temp; in apply_relocate() local 104 temp = *(unsigned long *)loc; in apply_relocate() 105 offset = (temp & 0x03FF7FFE); in apply_relocate() 112 temp = (temp & 0xfc008001) | in apply_relocate() [all …]
|
/linux-4.4.14/arch/arm/include/asm/ |
D | irqflags.h | 73 unsigned long flags, temp; in arch_local_irq_save() local 79 : "=r" (flags), "=r" (temp) in arch_local_irq_save() 91 unsigned long temp; in arch_local_irq_enable() local 96 : "=r" (temp) in arch_local_irq_enable() 107 unsigned long temp; in arch_local_irq_disable() local 112 : "=r" (temp) in arch_local_irq_disable() 122 unsigned long temp; \ 127 : "=r" (temp) \ 137 unsigned long temp; \ 142 : "=r" (temp) \
|
/linux-4.4.14/arch/powerpc/sysdev/ |
D | ipic.c | 528 u32 temp; in ipic_unmask_irq() local 532 temp = ipic_read(ipic->regs, ipic_info[src].mask); in ipic_unmask_irq() 533 temp |= (1 << (31 - ipic_info[src].bit)); in ipic_unmask_irq() 534 ipic_write(ipic->regs, ipic_info[src].mask, temp); in ipic_unmask_irq() 544 u32 temp; in ipic_mask_irq() local 548 temp = ipic_read(ipic->regs, ipic_info[src].mask); in ipic_mask_irq() 549 temp &= ~(1 << (31 - ipic_info[src].bit)); in ipic_mask_irq() 550 ipic_write(ipic->regs, ipic_info[src].mask, temp); in ipic_mask_irq() 564 u32 temp; in ipic_ack_irq() local 568 temp = 1 << (31 - ipic_info[src].bit); in ipic_ack_irq() [all …]
|
D | tsi108_pci.c | 152 u32 temp; in tsi108_direct_read_config() local 165 __tsi108_read_pci_config(temp, cfg_addr, "lbzx"); in tsi108_direct_read_config() 168 __tsi108_read_pci_config(temp, cfg_addr, "lhbrx"); in tsi108_direct_read_config() 171 __tsi108_read_pci_config(temp, cfg_addr, "lwbrx"); in tsi108_direct_read_config() 175 *val = temp; in tsi108_direct_read_config() 178 if ((0xFFFFFFFF != temp) && (0xFFFF != temp) && (0xFF != temp)) { in tsi108_direct_read_config() 286 u_int temp = 0; in get_pci_source() local 298 temp = in get_pci_source() 303 if (temp & (1 << mask % 4)) { in get_pci_source() 311 temp = tsi108_read_reg(TSI108_PCI_OFFSET + TSI108_PCI_IRP_ENABLE); in get_pci_source() [all …]
|
/linux-4.4.14/drivers/thermal/int340x_thermal/ |
D | int340x_thermal_zone.c | 23 int *temp) in int340x_thermal_get_zone_temp() argument 30 return d->override_ops->get_temp(zone, temp); in int340x_thermal_get_zone_temp() 43 *temp = (unsigned long)conv_temp * 10; in int340x_thermal_get_zone_temp() 46 *temp = DECI_KELVIN_TO_MILLICELSIUS(tmp); in int340x_thermal_get_zone_temp() 52 int trip, int *temp) in int340x_thermal_get_trip_temp() argument 58 return d->override_ops->get_trip_temp(zone, trip, temp); in int340x_thermal_get_trip_temp() 61 *temp = d->aux_trips[trip]; in int340x_thermal_get_trip_temp() 63 *temp = d->crt_temp; in int340x_thermal_get_trip_temp() 65 *temp = d->psv_temp; in int340x_thermal_get_trip_temp() 67 *temp = d->hot_temp; in int340x_thermal_get_trip_temp() [all …]
|
/linux-4.4.14/drivers/gpu/drm/msm/dsi/phy/ |
D | dsi_phy.c | 38 s32 temp; in dsi_dphy_timing_calc_clk_zero() local 41 temp = 300 * coeff - ((timing->clk_prepare >> 1) + 1) * 2 * ui; in dsi_dphy_timing_calc_clk_zero() 42 tmin = S_DIV_ROUND_UP(temp, ui) - 2; in dsi_dphy_timing_calc_clk_zero() 52 temp = (timing->hs_rqst + timing->clk_prepare + clk_z) & 0x7; in dsi_dphy_timing_calc_clk_zero() 53 timing->clk_zero = clk_z + 8 - temp; in dsi_dphy_timing_calc_clk_zero() 66 s32 temp; in msm_dsi_dphy_timing_calc() local 78 temp = lpx / ui; in msm_dsi_dphy_timing_calc() 79 if (temp & 0x1) in msm_dsi_dphy_timing_calc() 80 timing->hs_rqst = temp; in msm_dsi_dphy_timing_calc() 82 timing->hs_rqst = max_t(s32, 0, temp - 2); in msm_dsi_dphy_timing_calc() [all …]
|
/linux-4.4.14/drivers/tty/serial/ |
D | imx.c | 362 unsigned long temp; in imx_stop_tx() local 371 temp = readl(port->membase + UCR1); in imx_stop_tx() 372 writel(temp & ~UCR1_TXMPTYEN, port->membase + UCR1); in imx_stop_tx() 377 temp = readl(port->membase + UCR2); in imx_stop_tx() 379 temp &= ~UCR2_CTS; in imx_stop_tx() 381 temp |= UCR2_CTS; in imx_stop_tx() 382 writel(temp, port->membase + UCR2); in imx_stop_tx() 384 temp = readl(port->membase + UCR4); in imx_stop_tx() 385 temp &= ~UCR4_TCEN; in imx_stop_tx() 386 writel(temp, port->membase + UCR4); in imx_stop_tx() [all …]
|
D | fsl_lpuart.c | 287 unsigned char temp; in lpuart_stop_tx() local 289 temp = readb(port->membase + UARTCR2); in lpuart_stop_tx() 290 temp &= ~(UARTCR2_TIE | UARTCR2_TCIE); in lpuart_stop_tx() 291 writeb(temp, port->membase + UARTCR2); in lpuart_stop_tx() 296 unsigned long temp; in lpuart32_stop_tx() local 298 temp = lpuart32_read(port->membase + UARTCTRL); in lpuart32_stop_tx() 299 temp &= ~(UARTCTRL_TIE | UARTCTRL_TCIE); in lpuart32_stop_tx() 300 lpuart32_write(temp, port->membase + UARTCTRL); in lpuart32_stop_tx() 305 unsigned char temp; in lpuart_stop_rx() local 307 temp = readb(port->membase + UARTCR2); in lpuart_stop_rx() [all …]
|
/linux-4.4.14/arch/unicore32/include/asm/ |
D | assembler.h | 43 .macro disable_irq, temp 44 mov \temp, asr 45 andn \temp, \temp, #0xFF 46 or \temp, \temp, #PSR_I_BIT | PRIV_MODE 47 mov.a asr, \temp 50 .macro enable_irq, temp 51 mov \temp, asr 52 andn \temp, \temp, #0xFF 53 or \temp, \temp, #PRIV_MODE 54 mov.a asr, \temp
|
D | irqflags.h | 27 unsigned long temp; in arch_local_save_flags() local 29 asm volatile("mov %0, asr" : "=r" (temp) : : "memory", "cc"); in arch_local_save_flags() 31 return temp & PSR_c; in arch_local_save_flags() 39 unsigned long temp; in arch_local_irq_restore() local 45 : "=&r" (temp) in arch_local_irq_restore()
|
/linux-4.4.14/arch/alpha/include/asm/ |
D | rwsem.h | 31 long temp; in __down_read() local 41 :"=&r" (oldcount), "=m" (sem->count), "=&r" (temp) in __down_read() 73 long temp; in __down_write() local 83 :"=&r" (oldcount), "=m" (sem->count), "=&r" (temp) in __down_write() 109 long temp; in __up_read() local 119 :"=&r" (oldcount), "=m" (sem->count), "=&r" (temp) in __up_read() 134 long temp; in __up_write() local 145 :"=&r" (count), "=m" (sem->count), "=&r" (temp) in __up_write() 163 long temp; in __downgrade_write() local 173 :"=&r" (oldcount), "=m" (sem->count), "=&r" (temp) in __downgrade_write() [all …]
|
D | bitops.h | 30 unsigned long temp; in set_bit() local 41 :"=&r" (temp), "=m" (*m) in set_bit() 59 unsigned long temp; in clear_bit() local 70 :"=&r" (temp), "=m" (*m) in clear_bit() 102 unsigned long temp; in change_bit() local 113 :"=&r" (temp), "=m" (*m) in change_bit() 132 unsigned long temp; in test_and_set_bit() local 152 :"=&r" (temp), "=m" (*m), "=&r" (oldbit) in test_and_set_bit() 162 unsigned long temp; in test_and_set_bit_lock() local 179 :"=&r" (temp), "=m" (*m), "=&r" (oldbit) in test_and_set_bit_lock() [all …]
|
D | atomic.h | 35 unsigned long temp; \ 44 :"=&r" (temp), "=m" (v->counter) \ 51 long temp, result; \ 62 :"=&r" (temp), "=m" (v->counter), "=&r" (result) \ 71 unsigned long temp; \ 80 :"=&r" (temp), "=m" (v->counter) \ 87 long temp, result; \ 98 :"=&r" (temp), "=m" (v->counter), "=&r" (result) \
|
/linux-4.4.14/arch/arm/mach-socfpga/ |
D | socfpga.c | 66 u32 temp; in socfpga_cyclone5_restart() local 68 temp = readl(rst_manager_base_addr + SOCFPGA_RSTMGR_CTRL); in socfpga_cyclone5_restart() 71 temp |= RSTMGR_CTRL_SWCOLDRSTREQ; in socfpga_cyclone5_restart() 73 temp |= RSTMGR_CTRL_SWWARMRSTREQ; in socfpga_cyclone5_restart() 74 writel(temp, rst_manager_base_addr + SOCFPGA_RSTMGR_CTRL); in socfpga_cyclone5_restart() 79 u32 temp; in socfpga_arria10_restart() local 81 temp = readl(rst_manager_base_addr + SOCFPGA_A10_RSTMGR_CTRL); in socfpga_arria10_restart() 84 temp |= RSTMGR_CTRL_SWCOLDRSTREQ; in socfpga_arria10_restart() 86 temp |= RSTMGR_CTRL_SWWARMRSTREQ; in socfpga_arria10_restart() 87 writel(temp, rst_manager_base_addr + SOCFPGA_A10_RSTMGR_CTRL); in socfpga_arria10_restart()
|
/linux-4.4.14/arch/microblaze/kernel/cpu/ |
D | cpuinfo-pvr-full.c | 36 u32 temp; /* for saving temp value */ in set_cpuinfo_pvr_full() local 45 temp = PVR_USE_BARREL(pvr) | PVR_USE_MSR_INSTR(pvr) | in set_cpuinfo_pvr_full() 47 if (ci->use_instr != temp) in set_cpuinfo_pvr_full() 49 ci->use_instr = temp; in set_cpuinfo_pvr_full() 51 temp = PVR_USE_HW_MUL(pvr) | PVR_USE_MUL64(pvr); in set_cpuinfo_pvr_full() 52 if (ci->use_mult != temp) in set_cpuinfo_pvr_full() 54 ci->use_mult = temp; in set_cpuinfo_pvr_full() 56 temp = PVR_USE_FPU(pvr) | PVR_USE_FPU2(pvr); in set_cpuinfo_pvr_full() 57 if (ci->use_fpu != temp) in set_cpuinfo_pvr_full() 59 ci->use_fpu = temp; in set_cpuinfo_pvr_full() [all …]
|
/linux-4.4.14/security/integrity/evm/ |
D | evm_secfs.c | 37 char temp[80]; in evm_read_key() local 43 sprintf(temp, "%d", evm_initialized); in evm_read_key() 44 rc = simple_read_from_buffer(buf, count, ppos, temp, strlen(temp)); in evm_read_key() 64 char temp[80]; in evm_write_key() local 70 if (count >= sizeof(temp) || count == 0) in evm_write_key() 73 if (copy_from_user(temp, buf, count) != 0) in evm_write_key() 76 temp[count] = '\0'; in evm_write_key() 78 if ((sscanf(temp, "%d", &i) != 1) || (i != 1)) in evm_write_key()
|
/linux-4.4.14/arch/parisc/lib/ |
D | bitops.c | 22 unsigned long temp, flags; in __xchg64() local 25 temp = *ptr; in __xchg64() 28 return temp; in __xchg64() 35 long temp; in __xchg32() local 38 temp = (long) *ptr; /* XXX - sign extension wanted? */ in __xchg32() 41 return (unsigned long)temp; in __xchg32() 48 long temp; in __xchg8() local 51 temp = (long) *ptr; /* XXX - sign extension wanted? */ in __xchg8() 54 return (unsigned long)temp; in __xchg8()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
D | g84.c | 68 nvkm_wr32(device, 0x20480, sensor->thrs_shutdown.temp); in g84_therm_program_alarms() 71 nvkm_wr32(device, 0x204c4, sensor->thrs_fan_boost.temp); in g84_therm_program_alarms() 74 nvkm_wr32(device, 0x204c0, sensor->thrs_critical.temp); in g84_therm_program_alarms() 77 nvkm_wr32(device, 0x20414, sensor->thrs_down_clock.temp); in g84_therm_program_alarms() 82 sensor->thrs_fan_boost.temp, in g84_therm_program_alarms() 84 sensor->thrs_down_clock.temp, in g84_therm_program_alarms() 86 sensor->thrs_critical.temp, in g84_therm_program_alarms() 88 sensor->thrs_shutdown.temp, in g84_therm_program_alarms() 103 int temp, cur; in g84_therm_threshold_hyst_emulation() local 106 temp = nvkm_rd32(device, thrs_reg); in g84_therm_threshold_hyst_emulation() [all …]
|
D | base.c | 40 u8 temp = therm->func->temp_get(therm); in nvkm_therm_update_trip() local 46 if (temp >= trip[i].temp) in nvkm_therm_update_trip() 51 if (last_trip && temp <= (last_trip->temp) && in nvkm_therm_update_trip() 52 temp > (last_trip->temp - last_trip->hysteresis)) in nvkm_therm_update_trip() 71 u8 temp = therm->func->temp_get(therm); in nvkm_therm_update_linear() local 75 if (temp < linear_min_temp) in nvkm_therm_update_linear() 77 else if (temp > linear_max_temp) in nvkm_therm_update_linear() 81 duty = (temp - linear_min_temp); in nvkm_therm_update_linear() 206 return therm->bios_sensor.thrs_fan_boost.temp; in nvkm_therm_attr_get() 210 return therm->bios_sensor.thrs_down_clock.temp; in nvkm_therm_attr_get() [all …]
|
D | temp.c | 31 therm->bios_sensor.thrs_fan_boost.temp = 90; in nvkm_therm_temp_set_defaults() 34 therm->bios_sensor.thrs_down_clock.temp = 95; in nvkm_therm_temp_set_defaults() 37 therm->bios_sensor.thrs_critical.temp = 105; in nvkm_therm_temp_set_defaults() 40 therm->bios_sensor.thrs_shutdown.temp = 135; in nvkm_therm_temp_set_defaults() 143 int temp = therm->func->temp_get(therm); in nvkm_therm_threshold_hyst_polling() local 147 if (temp >= thrs->temp && prev_state == NVKM_THERM_THRS_LOWER) { in nvkm_therm_threshold_hyst_polling() 150 } else if (temp <= thrs->temp - thrs->hysteresis && in nvkm_therm_threshold_hyst_polling() 199 sensor->thrs_fan_boost.temp, in nvkm_therm_program_alarms_polling() 201 sensor->thrs_down_clock.temp, in nvkm_therm_program_alarms_polling() 203 sensor->thrs_critical.temp, in nvkm_therm_program_alarms_polling() [all …]
|
/linux-4.4.14/arch/powerpc/platforms/85xx/ |
D | mpc85xx_mds.c | 101 int temp; in mpc8568_mds_phy_fixups() local 110 temp = phy_read(phydev, 30); in mpc8568_mds_phy_fixups() 112 if (temp < 0) in mpc8568_mds_phy_fixups() 113 return temp; in mpc8568_mds_phy_fixups() 115 temp = (temp & (~0x8000)) | 0x4000; in mpc8568_mds_phy_fixups() 116 err = phy_write(phydev,30, temp); in mpc8568_mds_phy_fixups() 126 temp = phy_read(phydev, 30); in mpc8568_mds_phy_fixups() 128 if (temp < 0) in mpc8568_mds_phy_fixups() 129 return temp; in mpc8568_mds_phy_fixups() 131 temp = phy_read(phydev, 30); in mpc8568_mds_phy_fixups() [all …]
|
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_i2c.c | 44 uint32_t temp; in amdgpu_i2c_pre_xfer() local 50 temp = RREG32(rec->mask_clk_reg); in amdgpu_i2c_pre_xfer() 51 temp &= ~(1 << 16); in amdgpu_i2c_pre_xfer() 52 WREG32(rec->mask_clk_reg, temp); in amdgpu_i2c_pre_xfer() 56 temp = RREG32(rec->a_clk_reg) & ~rec->a_clk_mask; in amdgpu_i2c_pre_xfer() 57 WREG32(rec->a_clk_reg, temp); in amdgpu_i2c_pre_xfer() 59 temp = RREG32(rec->a_data_reg) & ~rec->a_data_mask; in amdgpu_i2c_pre_xfer() 60 WREG32(rec->a_data_reg, temp); in amdgpu_i2c_pre_xfer() 63 temp = RREG32(rec->en_clk_reg) & ~rec->en_clk_mask; in amdgpu_i2c_pre_xfer() 64 WREG32(rec->en_clk_reg, temp); in amdgpu_i2c_pre_xfer() [all …]
|
/linux-4.4.14/drivers/macintosh/ |
D | therm_windtunnel.c | 61 int temp; member 75 int temp; member 93 print_temp( const char *s, int temp ) in print_temp() argument 95 printk("%s%d.%d C", s ? s : "", temp>>8, (temp & 255)*10/256 ); in print_temp() 101 return sprintf(buf, "%d.%d\n", x.temp>>8, (x.temp & 255)*10/256 ); in show_cpu_temperature() 160 print_temp("CPU-temp: ", x.temp ); in tune_fan() 171 int temp, i, level, casetemp; in poll_temp() local 173 temp = read_reg( x.thermostat, 0, 2 ); in poll_temp() 176 if( temp < 0 ) in poll_temp() 182 if( LOG_TEMP && x.temp != temp ) { in poll_temp() [all …]
|
D | windfarm_pm72.c | 126 static int cpu_check_overtemp(s32 temp) in cpu_check_overtemp() argument 133 if (temp >= (cpu_all_tmax + LOW_OVER_IMMEDIATE)) { in cpu_check_overtemp() 139 if (temp >= (cpu_all_tmax + HIGH_OVER_IMMEDIATE)) { in cpu_check_overtemp() 155 cpu_thist[i] = temp; in cpu_check_overtemp() 156 cpu_thist_total += temp; in cpu_check_overtemp() 166 cpu_thist[cpu_thist_pt] = temp; in cpu_check_overtemp() 169 cpu_thist_total += temp; in cpu_check_overtemp() 173 FIX32TOPRINT(t_avg), FIX32TOPRINT(t_old), FIX32TOPRINT(temp)); in cpu_check_overtemp() 201 (temp < (cpu_all_tmax + LOW_OVER_CLEAR))) { in cpu_check_overtemp() 209 static int read_one_cpu_vals(int cpu, s32 *temp, s32 *power) in read_one_cpu_vals() argument [all …]
|
D | windfarm_rm31.c | 120 static int cpu_check_overtemp(s32 temp) in cpu_check_overtemp() argument 127 if (temp >= (cpu_all_tmax + LOW_OVER_IMMEDIATE)) { in cpu_check_overtemp() 133 if (temp >= (cpu_all_tmax + HIGH_OVER_IMMEDIATE)) { in cpu_check_overtemp() 149 cpu_thist[i] = temp; in cpu_check_overtemp() 150 cpu_thist_total += temp; in cpu_check_overtemp() 160 cpu_thist[cpu_thist_pt] = temp; in cpu_check_overtemp() 163 cpu_thist_total += temp; in cpu_check_overtemp() 167 FIX32TOPRINT(t_avg), FIX32TOPRINT(t_old), FIX32TOPRINT(temp)); in cpu_check_overtemp() 195 (temp < (cpu_all_tmax + LOW_OVER_CLEAR))) { in cpu_check_overtemp() 203 static int read_one_cpu_vals(int cpu, s32 *temp, s32 *power) in read_one_cpu_vals() argument [all …]
|
D | windfarm_pm112.c | 196 static int cpu_check_overtemp(s32 temp) in cpu_check_overtemp() argument 202 if (temp >= (cpu_all_tmax + LOW_OVER_IMMEDIATE)) { in cpu_check_overtemp() 208 if (temp >= (cpu_all_tmax + HIGH_OVER_IMMEDIATE)) { in cpu_check_overtemp() 219 cpu_thist[cpu_thist_pt] = temp; in cpu_check_overtemp() 222 cpu_thist_total += temp; in cpu_check_overtemp() 226 FIX32TOPRINT(t_avg), FIX32TOPRINT(t_old), FIX32TOPRINT(temp)); in cpu_check_overtemp() 254 (temp < (cpu_all_tmax + LOW_OVER_CLEAR))) { in cpu_check_overtemp() 266 s32 temp, power, t_max = 0; in cpu_fans_tick() local 276 err = sr->ops->get_value(sr, &temp); in cpu_fans_tick() 287 t_max = max(t_max, temp); in cpu_fans_tick() [all …]
|
/linux-4.4.14/sound/pci/emu10k1/ |
D | emu10k1_callback.c | 322 unsigned int temp; in start_voice() local 352 temp = FXBUS_MIDI_LEFT | (FXBUS_MIDI_RIGHT << 8) | in start_voice() 354 snd_emu10k1_ptr_write(hw, A_FXRT1, ch, temp); in start_voice() 356 temp = (FXBUS_MIDI_LEFT << 16) | (FXBUS_MIDI_RIGHT << 20) | in start_voice() 358 snd_emu10k1_ptr_write(hw, FXRT, ch, temp); in start_voice() 381 temp = (unsigned int)vp->acutoff << 8 | (unsigned char)vp->avol; in start_voice() 382 snd_emu10k1_ptr_write(hw, IFATN, vp->ch, temp); in start_voice() 399 temp = vp->reg.parm.reverb; in start_voice() 400 temp += (int)vp->chan->control[MIDI_CTL_E1_REVERB_DEPTH] * 9 / 10; in start_voice() 401 LIMITMAX(temp, 255); in start_voice() [all …]
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/ |
D | tt.c | 103 void iwl_mvm_tt_temp_changed(struct iwl_mvm *mvm, u32 temp) in iwl_mvm_tt_temp_changed() argument 109 if (mvm->temperature == temp) in iwl_mvm_tt_temp_changed() 112 mvm->temperature = temp; in iwl_mvm_tt_temp_changed() 121 int temp; in iwl_mvm_temp_notif_parse() local 130 temp = le32_to_cpu(notif->temp); in iwl_mvm_temp_notif_parse() 133 if (WARN_ON_ONCE(temp < 0)) in iwl_mvm_temp_notif_parse() 134 temp = 0; in iwl_mvm_temp_notif_parse() 136 IWL_DEBUG_TEMP(mvm, "DTS_MEASUREMENT_NOTIFICATION - %d\n", temp); in iwl_mvm_temp_notif_parse() 138 return temp; in iwl_mvm_temp_notif_parse() 146 int *temp = data; in iwl_mvm_temp_notif_wait() local [all …]
|
/linux-4.4.14/arch/hexagon/include/asm/ |
D | spinlock.h | 72 int temp; in arch_read_trylock() local 80 : "=&r" (temp) in arch_read_trylock() 84 return temp; in arch_read_trylock() 115 int temp; in arch_write_trylock() local 123 : "=&r" (temp) in arch_write_trylock() 127 return temp; in arch_write_trylock() 160 int temp; in arch_spin_trylock() local 168 : "=&r" (temp) in arch_spin_trylock() 172 return temp; in arch_spin_trylock()
|
/linux-4.4.14/tools/iio/ |
D | iio_utils.c | 291 struct iio_channel_info temp; in bsort_channel_array_by_index() local 297 temp = ci_array[y + 1]; in bsort_channel_array_by_index() 299 ci_array[y] = temp; in bsort_channel_array_by_index() 661 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_int() local 663 if (!temp) in _write_sysfs_int() 666 ret = sprintf(temp, "%s/%s", basedir, filename); in _write_sysfs_int() 670 sysfsfp = fopen(temp, "w"); in _write_sysfs_int() 673 fprintf(stderr, "failed to open %s\n", temp); in _write_sysfs_int() 691 sysfsfp = fopen(temp, "r"); in _write_sysfs_int() 694 fprintf(stderr, "failed to open %s\n", temp); in _write_sysfs_int() [all …]
|
/linux-4.4.14/arch/arc/include/asm/ |
D | irqflags-compact.h | 68 unsigned long temp, flags; in arch_local_irq_save() local 75 : "=r"(temp), "=r"(flags) in arch_local_irq_save() 100 unsigned long temp; in arch_local_irq_enable() local 106 : "=&r"(temp) in arch_local_irq_enable() 117 unsigned long temp; in arch_local_irq_disable() local 123 : "=&r"(temp) in arch_local_irq_disable() 133 unsigned long temp; in arch_local_save_flags() local 137 : "=&r"(temp) in arch_local_save_flags() 141 return temp; in arch_local_save_flags()
|
D | bitops.h | 34 unsigned int temp; \ 45 : "=&r"(temp) /* Early clobber, to prevent reg reuse */ \ 65 unsigned long old, temp; \ 82 : "=&r"(old), "=&r"(temp) \ 112 unsigned long temp, flags; \ 120 temp = *m; \ 121 *m = temp c_op (1UL << (nr & 0x1f)); \ 151 unsigned long temp; \ 154 temp = *m; \ 155 *m = temp c_op (1UL << (nr & 0x1f)); \
|
/linux-4.4.14/drivers/media/usb/dvb-usb/ |
D | af9005-fe.c | 108 u8 temp; in af9005_is_fecmon_available() local 114 fec_vtb_rsd_mon_en_len, &temp); in af9005_is_fecmon_available() 117 if (temp & 1) { in af9005_is_fecmon_available() 122 reg_ofsm_read_rbc_en_len, &temp); in af9005_is_fecmon_available() 125 if ((temp & 1) == 0) in af9005_is_fecmon_available() 141 u8 temp, temp0, temp1, temp2; in af9005_get_post_vit_err_cw_count() local 151 &temp); in af9005_get_post_vit_err_cw_count() 154 if (!temp) { in af9005_get_post_vit_err_cw_count() 241 u8 temp, temp0, temp1, temp2; in af9005_get_pre_vit_err_bit_count() local 248 &temp); in af9005_get_pre_vit_err_bit_count() [all …]
|
D | af9005.c | 179 u8 temp = value; in af9005_write_ofdm_register() local 183 &temp, 1); in af9005_write_ofdm_register() 211 u8 temp; in af9005_read_register_bits() local 214 ret = af9005_read_ofdm_register(d, reg, &temp); in af9005_read_register_bits() 219 *value = (temp >> pos) & regmask[len - 1]; in af9005_read_register_bits() 228 u8 temp, mask; in af9005_write_register_bits() local 233 ret = af9005_read_ofdm_register(d, reg, &temp); in af9005_write_register_bits() 237 temp = (temp & ~mask) | ((value << pos) & mask); in af9005_write_register_bits() 238 return af9005_write_ofdm_register(d, reg, temp); in af9005_write_register_bits() 265 u8 temp; in af9005_write_tuner_registers() local [all …]
|
/linux-4.4.14/drivers/cpufreq/ |
D | cpufreq-nforce2.c | 118 int temp; in nforce2_write_pll() local 124 for (temp = 0; temp <= 0x3f; temp++) in nforce2_write_pll() 139 u32 fsb, temp = 0; in nforce2_fsb_read() local 151 pci_read_config_byte(nforce2_dev, NFORCE2_PLLENABLE, (u8 *)&temp); in nforce2_fsb_read() 153 if (bootfsb || !temp) in nforce2_fsb_read() 157 pci_read_config_dword(nforce2_dev, NFORCE2_PLLREG, &temp); in nforce2_fsb_read() 158 fsb = nforce2_calc_fsb(temp); in nforce2_fsb_read() 171 u32 temp = 0; in nforce2_set_fsb() local 188 pci_read_config_byte(nforce2_dev, NFORCE2_PLLENABLE, (u8 *)&temp); in nforce2_set_fsb() 189 if (!temp) { in nforce2_set_fsb() [all …]
|
/linux-4.4.14/drivers/ata/ |
D | sata_fsl.c | 377 u32 temp; in fsl_sata_rx_watermark_store() local 385 temp = ioread32(csr_base + TRANSCFG); in fsl_sata_rx_watermark_store() 386 temp &= 0xffffffe0; in fsl_sata_rx_watermark_store() 387 iowrite32(temp | rx_watermark, csr_base + TRANSCFG); in fsl_sata_rx_watermark_store() 659 u32 temp; in sata_fsl_freeze() local 669 temp = ioread32(hcr_base + HCONTROL); in sata_fsl_freeze() 670 iowrite32((temp & ~0x3F), hcr_base + HCONTROL); in sata_fsl_freeze() 680 u32 temp; in sata_fsl_thaw() local 683 temp = ioread32(hcr_base + HSTATUS); in sata_fsl_thaw() 685 VPRINTK("xx_thaw, pending IRQs = 0x%x\n", (temp & 0x3F)); in sata_fsl_thaw() [all …]
|
/linux-4.4.14/drivers/usb/misc/sisusbvga/ |
D | sisusb_init.c | 191 unsigned short temp; in SiS_SetSegRegLower() local 194 temp = SiS_GetRegByte(SiS_Pr, SiS_Pr->SiS_P3cb) & 0xf0; in SiS_SetSegRegLower() 195 temp |= (value >> 4); in SiS_SetSegRegLower() 196 SiS_SetRegByte(SiS_Pr, SiS_Pr->SiS_P3cb, temp); in SiS_SetSegRegLower() 197 temp = SiS_GetRegByte(SiS_Pr, SiS_Pr->SiS_P3cd) & 0xf0; in SiS_SetSegRegLower() 198 temp |= (value & 0x0f); in SiS_SetSegRegLower() 199 SiS_SetRegByte(SiS_Pr, SiS_Pr->SiS_P3cd, temp); in SiS_SetSegRegLower() 204 unsigned short temp; in SiS_SetSegRegUpper() local 207 temp = SiS_GetRegByte(SiS_Pr, SiS_Pr->SiS_P3cb) & 0x0f; in SiS_SetSegRegUpper() 208 temp |= (value & 0xf0); in SiS_SetSegRegUpper() [all …]
|
/linux-4.4.14/arch/m68k/lib/ |
D | memmove.c | 13 size_t temp; in memmove() local 35 temp = n >> 2; in memmove() 36 if (temp) { in memmove() 39 temp--; in memmove() 42 while (temp--); in memmove() 77 temp = n >> 2; in memmove() 78 if (temp) { in memmove() 81 temp--; in memmove() 84 while (temp--); in memmove()
|
D | memset.c | 13 size_t temp; in memset() local 32 temp = count >> 2; in memset() 33 if (temp) { in memset() 36 for (; temp; temp--) in memset() 58 : "=a" (ls), "=d" (temp), "=&d" (temp1) in memset() 59 : "d" (c), "0" (ls), "1" (temp)); in memset()
|
D | memcpy.c | 13 size_t temp; in memcpy() local 42 temp = n >> 2; in memcpy() 43 if (temp) { in memcpy() 47 for (; temp; temp--) in memcpy() 69 : "=a" (lfrom), "=a" (lto), "=d" (temp), "=&d" (temp1) in memcpy() 70 : "0" (lfrom), "1" (lto), "2" (temp)); in memcpy()
|
/linux-4.4.14/drivers/memory/ |
D | omap-gpmc.c | 1250 u32 temp; in gpmc_round_ps_to_sync_clk() local 1254 temp = gpmc_ps_to_ticks(time_ps); in gpmc_round_ps_to_sync_clk() 1255 temp = (temp + div - 1) / div; in gpmc_round_ps_to_sync_clk() 1256 return gpmc_ticks_to_ps(temp * div); in gpmc_round_ps_to_sync_clk() 1264 u32 temp; in gpmc_calc_sync_read_timings() local 1267 temp = dev_t->t_avdp_r; in gpmc_calc_sync_read_timings() 1274 temp = max_t(u32, temp, gpmc_t->clk_activation + dev_t->t_avdh); in gpmc_calc_sync_read_timings() 1275 temp = max_t(u32, gpmc_t->adv_on + gpmc_ticks_to_ps(1), temp); in gpmc_calc_sync_read_timings() 1277 gpmc_t->adv_rd_off = gpmc_round_ps_to_ticks(temp); in gpmc_calc_sync_read_timings() 1280 temp = dev_t->t_oeasu; /* XXX: remove this ? */ in gpmc_calc_sync_read_timings() [all …]
|
/linux-4.4.14/drivers/gpu/drm/i915/ |
D | intel_ddi.c | 612 u32 temp, i, rx_ctl_val; in hsw_fdi_link_train() local 675 temp = I915_READ(FDI_RX_MISC(PIPE_A)); in hsw_fdi_link_train() 676 temp &= ~(FDI_RX_PWRDN_LANE1_MASK | FDI_RX_PWRDN_LANE0_MASK); in hsw_fdi_link_train() 677 I915_WRITE(FDI_RX_MISC(PIPE_A), temp); in hsw_fdi_link_train() 683 temp = I915_READ(DP_TP_STATUS(PORT_E)); in hsw_fdi_link_train() 684 if (temp & DP_TP_STATUS_AUTOTRAIN_DONE) { in hsw_fdi_link_train() 697 temp = I915_READ(DDI_BUF_CTL(PORT_E)); in hsw_fdi_link_train() 698 temp &= ~DDI_BUF_CTL_ENABLE; in hsw_fdi_link_train() 699 I915_WRITE(DDI_BUF_CTL(PORT_E), temp); in hsw_fdi_link_train() 703 temp = I915_READ(DP_TP_CTL(PORT_E)); in hsw_fdi_link_train() [all …]
|
D | i915_gem_gtt.h | 395 #define gen6_for_each_pde(pt, pd, start, length, temp, iter) \ argument 400 temp = ALIGN(start+1, 1 << GEN6_PDE_SHIFT) - start, \ 401 temp = min_t(unsigned, temp, length), \ 402 start += temp, length -= temp) 461 #define gen8_for_each_pde(pt, pd, start, length, temp, iter) \ argument 466 temp = ALIGN(start+1, 1 << GEN8_PDE_SHIFT) - start, \ 467 temp = min(temp, length), \ 468 start += temp, length -= temp) 470 #define gen8_for_each_pdpe(pd, pdp, start, length, temp, iter) \ argument 475 temp = ALIGN(start+1, 1 << GEN8_PDPE_SHIFT) - start, \ [all …]
|
/linux-4.4.14/arch/arm/mach-s3c24xx/ |
D | bast-irq.c | 71 unsigned long temp; in bast_pc104_mask() local 73 temp = __raw_readb(BAST_VA_PC104_IRQMASK); in bast_pc104_mask() 74 temp &= ~bast_pc104_irqmasks[data->irq]; in bast_pc104_mask() 75 __raw_writeb(temp, BAST_VA_PC104_IRQMASK); in bast_pc104_mask() 90 unsigned long temp; in bast_pc104_unmask() local 92 temp = __raw_readb(BAST_VA_PC104_IRQMASK); in bast_pc104_unmask() 93 temp |= bast_pc104_irqmasks[data->irq]; in bast_pc104_unmask() 94 __raw_writeb(temp, BAST_VA_PC104_IRQMASK); in bast_pc104_unmask()
|
/linux-4.4.14/sound/pci/mixart/ |
D | mixart_mixer.c | 1123 struct snd_kcontrol_new temp; in snd_mixart_create_mixer() local 1127 temp = mixart_control_analog_level; in snd_mixart_create_mixer() 1128 temp.name = "Master Playback Volume"; in snd_mixart_create_mixer() 1129 temp.private_value = 0; /* playback */ in snd_mixart_create_mixer() 1130 if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&temp, chip))) < 0) in snd_mixart_create_mixer() 1138 temp = mixart_control_analog_level; in snd_mixart_create_mixer() 1139 temp.name = "Master Capture Volume"; in snd_mixart_create_mixer() 1140 temp.private_value = 1; /* capture */ in snd_mixart_create_mixer() 1141 if ((err = snd_ctl_add(chip->card, snd_ctl_new1(&temp, chip))) < 0) in snd_mixart_create_mixer() 1145 temp = snd_mixart_pcm_vol; in snd_mixart_create_mixer() [all …]
|
/linux-4.4.14/sound/isa/sb/ |
D | emu8000_callback.c | 236 unsigned int temp; in start_voice() local 286 temp = vp->reg.parm.chorus; in start_voice() 287 temp += (int)chan->control[MIDI_CTL_E3_CHORUS_DEPTH] * 9 / 10; in start_voice() 288 LIMITMAX(temp, 255); in start_voice() 289 temp = (temp <<24) | (unsigned int)addr; in start_voice() 290 EMU8000_CSL_WRITE(hw, ch, temp); in start_voice() 294 temp = vp->reg.parm.filterQ; in start_voice() 295 temp = (temp<<28) | (unsigned int)addr; in start_voice() 296 EMU8000_CCCA_WRITE(hw, ch, temp); in start_voice() 303 temp = vp->vtarget << 16; in start_voice() [all …]
|
D | emu8000_pcm.c | 283 unsigned int temp; in setup_voice() local 314 temp = rec->panning[ch]; in setup_voice() 315 temp = (temp <<24) | ((unsigned int)rec->loop_start[ch] - 1); in setup_voice() 316 EMU8000_PSST_WRITE(hw, ch, temp); in setup_voice() 318 temp = 0; // chorus in setup_voice() 319 temp = (temp << 24) | ((unsigned int)rec->loop_start[ch] + rec->buf_size - 1); in setup_voice() 320 EMU8000_CSL_WRITE(hw, ch, temp); in setup_voice() 322 temp = 0; // filterQ in setup_voice() 323 temp = (temp << 28) | ((unsigned int)rec->loop_start[ch] - 1); in setup_voice() 324 EMU8000_CCCA_WRITE(hw, ch, temp); in setup_voice() [all …]
|
/linux-4.4.14/arch/alpha/kernel/ |
D | core_cia.c | 354 int temp, use_tbia_try2 = 0; in verify_tb_operation() local 400 temp = *(vip)CIA_IOC_TB_TAGn(0); in verify_tb_operation() 401 if (temp != tag0) { in verify_tb_operation() 403 "(tag0 %#x != %#x)\n", temp, tag0); in verify_tb_operation() 406 temp = *(vip)CIA_IOC_TB_TAGn(1); in verify_tb_operation() 407 if (temp != 0) { in verify_tb_operation() 409 "(tag1 %#x != 0)\n", temp); in verify_tb_operation() 412 temp = *(vip)CIA_IOC_TBn_PAGEm(0,0); in verify_tb_operation() 413 if (temp != pte0) { in verify_tb_operation() 415 "(pte0 %#x != %#x)\n", temp, pte0); in verify_tb_operation() [all …]
|
D | core_wildfire.c | 179 unsigned long temp; in wildfire_hardware_probe() local 190 temp = fast->qsd_whami.csr; in wildfire_hardware_probe() 192 printk(KERN_ERR "fast QSD_WHAMI at base %p is 0x%lx\n", fast, temp); in wildfire_hardware_probe() 195 hard_qbb = (temp >> 8) & 7; in wildfire_hardware_probe() 196 soft_qbb = (temp >> 4) & 7; in wildfire_hardware_probe() 217 temp = qsa->qsa_qbb_id.csr; in wildfire_hardware_probe() 219 printk(KERN_ERR "QSA_QBB_ID at base %p is 0x%lx\n", qsa, temp); in wildfire_hardware_probe() 222 if (temp & 0x40) /* Is there an HS? */ in wildfire_hardware_probe() 225 if (temp & 0x20) { /* Is there a GP? */ in wildfire_hardware_probe() 227 temp = 0; in wildfire_hardware_probe() [all …]
|
D | core_t2.c | 327 unsigned long temp; in t2_direct_map_window1() local 332 temp = (base & 0xfff00000UL) | ((base + length - 1) >> 20); in t2_direct_map_window1() 333 *(vulp)T2_WBASE1 = temp | 0x80000UL; /* OR in ENABLE bit */ in t2_direct_map_window1() 334 temp = (length - 1) & 0xfff00000UL; in t2_direct_map_window1() 335 *(vulp)T2_WMASK1 = temp; in t2_direct_map_window1() 349 unsigned long temp; in t2_sg_map_window2() local 356 temp = (base & 0xfff00000UL) | ((base + length - 1) >> 20); in t2_sg_map_window2() 357 *(vulp)T2_WBASE2 = temp | 0xc0000UL; /* OR in ENABLE/SG bits */ in t2_sg_map_window2() 358 temp = (length - 1) & 0xfff00000UL; in t2_sg_map_window2() 359 *(vulp)T2_WMASK2 = temp; in t2_sg_map_window2() [all …]
|
/linux-4.4.14/drivers/scsi/ |
D | scsicam.c | 234 unsigned long heads, sectors, cylinders, temp; in setsize() local 239 temp = cylinders * sectors; /* Compute divisor for heads */ in setsize() 240 heads = capacity / temp; /* Compute value for number of heads */ in setsize() 241 if (capacity % temp) { /* If no remainder, done! */ in setsize() 243 temp = cylinders * heads; /* Compute divisor for sectors */ in setsize() 244 sectors = capacity / temp; /* Compute value for sectors per in setsize() 246 if (capacity % temp) { /* If no remainder, done! */ in setsize() 248 temp = heads * sectors; /* Compute divisor for cylinders */ in setsize() 249 cylinders = capacity / temp; /* Compute number of cylinders */ in setsize()
|
/linux-4.4.14/drivers/iio/pressure/ |
D | ms5611_core.c | 72 s32 *temp, s32 *pressure) in ms5611_read_temp_and_pressure() argument 77 ret = st->read_adc_temp_and_pressure(&indio_dev->dev, temp, pressure); in ms5611_read_temp_and_pressure() 85 temp, pressure); in ms5611_read_temp_and_pressure() 89 s32 *temp, s32 *pressure) in ms5611_temp_and_pressure_compensate() argument 91 s32 t = *temp, p = *pressure; in ms5611_temp_and_pressure_compensate() 118 *temp = t; in ms5611_temp_and_pressure_compensate() 125 s32 *temp, s32 *pressure) in ms5607_temp_and_pressure_compensate() argument 127 s32 t = *temp, p = *pressure; in ms5607_temp_and_pressure_compensate() 154 *temp = t; in ms5607_temp_and_pressure_compensate() 181 s32 temp, pressure; in ms5611_read_raw() local [all …]
|
/linux-4.4.14/drivers/gpu/drm/ast/ |
D | ast_mode.c | 274 u16 temp; in ast_set_crtc_reg() local 278 temp = (mode->crtc_htotal >> 3) - 5; in ast_set_crtc_reg() 279 if (temp & 0x100) in ast_set_crtc_reg() 281 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x00, 0x00, temp); in ast_set_crtc_reg() 283 temp = (mode->crtc_hdisplay >> 3) - 1; in ast_set_crtc_reg() 284 if (temp & 0x100) in ast_set_crtc_reg() 286 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x01, 0x00, temp); in ast_set_crtc_reg() 288 temp = (mode->crtc_hblank_start >> 3) - 1; in ast_set_crtc_reg() 289 if (temp & 0x100) in ast_set_crtc_reg() 291 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x02, 0x00, temp); in ast_set_crtc_reg() [all …]
|
/linux-4.4.14/drivers/net/ethernet/sfc/ |
D | siena.c | 331 efx_oword_t temp; in siena_rx_push_rss_config() local 334 memcpy(&temp, efx->rx_hash_key, sizeof(temp)); in siena_rx_push_rss_config() 335 efx_writeo(efx, &temp, FR_BZ_RX_RSS_TKEY); in siena_rx_push_rss_config() 339 2 * sizeof(temp) + FRF_CZ_RX_RSS_IPV6_TKEY_HI_WIDTH / 8 || in siena_rx_push_rss_config() 341 memcpy(&temp, efx->rx_hash_key, sizeof(temp)); in siena_rx_push_rss_config() 342 efx_writeo(efx, &temp, FR_CZ_RX_RSS_IPV6_REG1); in siena_rx_push_rss_config() 343 memcpy(&temp, efx->rx_hash_key + sizeof(temp), sizeof(temp)); in siena_rx_push_rss_config() 344 efx_writeo(efx, &temp, FR_CZ_RX_RSS_IPV6_REG2); in siena_rx_push_rss_config() 345 EFX_POPULATE_OWORD_2(temp, FRF_CZ_RX_RSS_IPV6_THASH_ENABLE, 1, in siena_rx_push_rss_config() 347 memcpy(&temp, efx->rx_hash_key + 2 * sizeof(temp), in siena_rx_push_rss_config() [all …]
|
/linux-4.4.14/Documentation/hwmon/ |
D | adt7410 | 56 maximum and critical temperature, it can only be set for temp#_max_hyst. 57 However, temp#_min_hyst and temp#_crit_hyst show their corresponding 64 temp#_input - temperature input 65 temp#_min - temperature minimum setpoint 66 temp#_max - temperature maximum setpoint 67 temp#_crit - critical temperature setpoint 68 temp#_min_hyst - hysteresis for temperature minimum (read-only) 69 temp#_max_hyst - hysteresis for temperature maximum (read/write) 70 temp#_crit_hyst - hysteresis for critical temperature (read-only) 71 temp#_min_alarm - temperature minimum alarm flag [all …]
|
/linux-4.4.14/sound/drivers/vx/ |
D | vx_mixer.c | 915 struct snd_kcontrol_new temp; in snd_vx_mixer_new() local 923 temp = vx_control_output_level; in snd_vx_mixer_new() 924 temp.index = i; in snd_vx_mixer_new() 925 temp.tlv.p = chip->hw->output_level_db_scale; in snd_vx_mixer_new() 926 if ((err = snd_ctl_add(card, snd_ctl_new1(&temp, chip))) < 0) in snd_vx_mixer_new() 933 temp = vx_control_audio_gain; in snd_vx_mixer_new() 934 temp.index = i; in snd_vx_mixer_new() 935 temp.name = "PCM Playback Volume"; in snd_vx_mixer_new() 936 temp.private_value = val; in snd_vx_mixer_new() 937 if ((err = snd_ctl_add(card, snd_ctl_new1(&temp, chip))) < 0) in snd_vx_mixer_new() [all …]
|
/linux-4.4.14/drivers/thermal/samsung/ |
D | exynos_tmu.c | 210 void (*tmu_set_emulation)(struct exynos_tmu_data *data, int temp); 218 int temp; in exynos_report_trigger() local 231 tz->ops->get_trip_temp(tz, i, &temp); in exynos_report_trigger() 232 if (tz->last_temperature < temp) in exynos_report_trigger() 245 static int temp_to_code(struct exynos_tmu_data *data, u8 temp) in temp_to_code() argument 252 temp_code = (temp - pdata->first_point_trim) * in temp_to_code() 258 temp_code = temp + data->temp_error1 - pdata->first_point_trim; in temp_to_code() 261 temp_code = temp + pdata->default_temp_offset; in temp_to_code() 275 int temp; in code_to_temp() local 279 temp = (temp_code - data->temp_error1) * in code_to_temp() [all …]
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/dvm/ |
D | tt.c | 111 s32 temp = priv->temperature; /* degrees CELSIUS except specified */ in iwl_within_ct_kill_margin() local 115 within_margin = ((temp + IWL_TT_CT_KILL_MARGIN) >= in iwl_within_ct_kill_margin() 118 within_margin = ((temp + IWL_TT_CT_KILL_MARGIN) >= in iwl_within_ct_kill_margin() 258 static void iwl_legacy_tt_handler(struct iwl_priv *priv, s32 temp, bool force) in iwl_legacy_tt_handler() argument 265 (temp > tt->tt_previous_temp) && in iwl_legacy_tt_handler() 266 ((temp - tt->tt_previous_temp) > in iwl_legacy_tt_handler() 270 (temp - tt->tt_previous_temp)); in iwl_legacy_tt_handler() 275 if (temp >= IWL_MINIMAL_POWER_THRESHOLD) in iwl_legacy_tt_handler() 277 else if (temp >= IWL_REDUCED_PERFORMANCE_THRESHOLD_2) in iwl_legacy_tt_handler() 279 else if (temp >= IWL_REDUCED_PERFORMANCE_THRESHOLD_1) in iwl_legacy_tt_handler() [all …]
|
/linux-4.4.14/arch/parisc/math-emu/ |
D | fcnvfxt.c | 65 register unsigned int src, temp; in sgl_to_sgl_fcnvfxt() local 93 temp = src; in sgl_to_sgl_fcnvfxt() 94 Sgl_clear_signexponent_set_hidden(temp); in sgl_to_sgl_fcnvfxt() 95 Int_from_sgl_mantissa(temp,src_exponent); in sgl_to_sgl_fcnvfxt() 96 if (Sgl_isone_sign(src)) result = -Sgl_all(temp); in sgl_to_sgl_fcnvfxt() 97 else result = Sgl_all(temp); in sgl_to_sgl_fcnvfxt() 130 register unsigned int src, temp, resultp2; in sgl_to_dbl_fcnvfxt() local 165 temp = src; in sgl_to_dbl_fcnvfxt() 166 Sgl_clear_signexponent_set_hidden(temp); in sgl_to_dbl_fcnvfxt() 167 Dint_from_sgl_mantissa(temp,src_exponent,resultp1,resultp2); in sgl_to_dbl_fcnvfxt()
|
D | fcnvfx.c | 64 register unsigned int src, temp; in sgl_to_sgl_fcnvfx() local 93 temp = src; in sgl_to_sgl_fcnvfx() 94 Sgl_clear_signexponent_set_hidden(temp); in sgl_to_sgl_fcnvfx() 95 Int_from_sgl_mantissa(temp,src_exponent); in sgl_to_sgl_fcnvfx() 96 if (Sgl_isone_sign(src)) result = -Sgl_all(temp); in sgl_to_sgl_fcnvfx() 97 else result = Sgl_all(temp); in sgl_to_sgl_fcnvfx() 113 || (Sgl_isone_lowmantissa(temp))) in sgl_to_sgl_fcnvfx() 162 register unsigned int src, temp, resultp2; in sgl_to_dbl_fcnvfx() local 198 temp = src; in sgl_to_dbl_fcnvfx() 199 Sgl_clear_signexponent_set_hidden(temp); in sgl_to_dbl_fcnvfx() [all …]
|
/linux-4.4.14/drivers/iio/temperature/ |
D | tsys01.c | 51 s64 temp = 0; in tsys01_read_temperature() local 66 temp += coeff_mul[i] * in tsys01_read_temperature() 68 temp *= (s64)adc; in tsys01_read_temperature() 69 temp = div64_s64(temp, 100000); in tsys01_read_temperature() 71 temp *= 10; in tsys01_read_temperature() 72 temp += coeff_mul[0] * (s64)dev_data->prom[5]; in tsys01_read_temperature() 73 temp = div64_s64(temp, 100000); in tsys01_read_temperature() 75 *temperature = temp; in tsys01_read_temperature()
|
/linux-4.4.14/drivers/s390/crypto/ |
D | zcrypt_cca_key.h | 161 unsigned char *temp; in zcrypt_type6_mex_key_de() local 183 temp = key->pvtMeSec.exponent + in zcrypt_type6_mex_key_de() 185 if (copy_from_user(temp, mex->b_key, mex->inputdatalength)) in zcrypt_type6_mex_key_de() 189 temp = key->pvtMeSec.modulus + in zcrypt_type6_mex_key_de() 191 if (copy_from_user(temp, mex->n_modulus, mex->inputdatalength)) in zcrypt_type6_mex_key_de() 223 unsigned char *temp; in zcrypt_type6_mex_key_en() local 232 temp = key->exponent; in zcrypt_type6_mex_key_en() 233 if (copy_from_user(temp, mex->b_key, mex->inputdatalength)) in zcrypt_type6_mex_key_en() 237 if (temp[i]) in zcrypt_type6_mex_key_en() 241 memmove(temp, temp + i, mex->inputdatalength - i); in zcrypt_type6_mex_key_en() [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | timing.c | 88 u16 data = nvbios_timingEe(bios, idx, ver, hdr, cnt, len), temp; in nvbios_timingEp() local 150 temp = nvbios_rd16(bios, data + 0x2c); in nvbios_timingEp() 151 p->timing_20_2c_003f = (temp & 0x003f) >> 0; in nvbios_timingEp() 152 p->timing_20_2c_1fc0 = (temp & 0x1fc0) >> 6; in nvbios_timingEp() 155 temp = nvbios_rd16(bios, data + 0x31); in nvbios_timingEp() 156 p->timing_20_31_0007 = (temp & 0x0007) >> 0; in nvbios_timingEp() 157 p->timing_20_31_0078 = (temp & 0x0078) >> 3; in nvbios_timingEp() 158 p->timing_20_31_0780 = (temp & 0x0780) >> 7; in nvbios_timingEp() 159 p->timing_20_31_0800 = (temp & 0x0800) >> 11; in nvbios_timingEp() 160 p->timing_20_31_7000 = (temp & 0x7000) >> 12; in nvbios_timingEp() [all …]
|
/linux-4.4.14/arch/arm/kernel/ |
D | swp_emulate.c | 37 #define __user_swpX_asm(data, addr, res, temp, B) \ argument 55 : "=&r" (res), "+r" (data), "=&r" (temp) \ 59 #define __user_swp_asm(data, addr, res, temp) \ argument 60 __user_swpX_asm(data, addr, res, temp, "") 61 #define __user_swpb_asm(data, addr, res, temp) \ argument 62 __user_swpX_asm(data, addr, res, temp, "b") 143 unsigned long temp; in emulate_swpX() local 148 __user_swpb_asm(*data, address, res, temp); in emulate_swpX() 150 __user_swp_asm(*data, address, res, temp); in emulate_swpX()
|
/linux-4.4.14/arch/sh/include/asm/ |
D | atomic-irq.h | 25 unsigned long temp, flags; \ 28 temp = v->counter; \ 29 temp c_op i; \ 30 v->counter = temp; \ 33 return temp; \
|
/linux-4.4.14/drivers/usb/isp1760/ |
D | isp1760-hcd.c | 1296 u32 temp; in isp1760_run() local 1313 temp = reg_read32(hcd->regs, HC_HW_MODE_CTRL); in isp1760_run() 1314 reg_write32(hcd->regs, HC_HW_MODE_CTRL, temp | HW_GLOBAL_INTR_EN); in isp1760_run() 1711 u32 temp, status = 0; in isp1760_hub_status_data() local 1725 temp = reg_read32(hcd->regs, HC_PORTSC1); in isp1760_hub_status_data() 1727 if (temp & PORT_OWNER) { in isp1760_hub_status_data() 1728 if (temp & PORT_CSC) { in isp1760_hub_status_data() 1729 temp &= ~PORT_CSC; in isp1760_hub_status_data() 1730 reg_write32(hcd->regs, HC_PORTSC1, temp); in isp1760_hub_status_data() 1742 if ((temp & mask) != 0 in isp1760_hub_status_data() [all …]
|
/linux-4.4.14/drivers/usb/misc/ |
D | trancevibrator.c | 62 int temp, retval, old; in set_speed() local 64 temp = simple_strtoul(buf, NULL, 10); in set_speed() 65 if (temp > 255) in set_speed() 66 temp = 255; in set_speed() 67 else if (temp < 0) in set_speed() 68 temp = 0; in set_speed() 70 tv->speed = temp; in set_speed()
|
/linux-4.4.14/drivers/media/platform/coda/ |
D | coda-jpeg.c | 197 unsigned int temp; in coda_scale_quant_table() local 201 temp = DIV_ROUND_CLOSEST((unsigned int)q_tab[i] * scale, 100); in coda_scale_quant_table() 202 if (temp <= 0) in coda_scale_quant_table() 203 temp = 1; in coda_scale_quant_table() 204 if (temp > 255) in coda_scale_quant_table() 205 temp = 255; in coda_scale_quant_table() 206 q_tab[i] = (unsigned char)temp; in coda_scale_quant_table()
|
/linux-4.4.14/drivers/thermal/st/ |
D | st_thermal.c | 22 #define mcelsius(temp) ((temp) * 1000) argument 118 unsigned int temp; in st_thermal_get_temp() local 128 ret = regmap_field_read(sensor->temp_data, &temp); in st_thermal_get_temp() 132 temp += sensor->cdata->temp_adjust_val; in st_thermal_get_temp() 133 temp = mcelsius(temp); in st_thermal_get_temp() 135 dev_dbg(dev, "temperature: %d\n", temp); in st_thermal_get_temp() 137 *temperature = temp; in st_thermal_get_temp() 161 int trip, int *temp) in st_thermal_get_trip_temp() argument 168 *temp = mcelsius(sensor->cdata->crit_temp); in st_thermal_get_trip_temp()
|
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/phy/ |
D | phy_qmath.c | 73 s32 temp = (s32) op1 + (s32) op2; in qm_add16() local 74 if (temp > (s32) 0x7fff) in qm_add16() 76 else if (temp < (s32) 0xffff8000) in qm_add16() 79 result = (s16) temp; in qm_add16() 92 s32 temp = (s32) op1 - (s32) op2; in qm_sub16() local 93 if (temp > (s32) 0x7fff) in qm_sub16() 95 else if (temp < (s32) 0xffff8000) in qm_sub16() 98 result = (s16) temp; in qm_sub16()
|
/linux-4.4.14/drivers/pci/host/ |
D | pci-keystone.c | 164 int temp, max_host_irqs, legacy = 1, *host_irqs, ret = -EINVAL; in ks_pcie_get_irq_controller_info() local 187 temp = of_irq_count(*np_temp); in ks_pcie_get_irq_controller_info() 188 if (!temp) in ks_pcie_get_irq_controller_info() 190 if (temp > max_host_irqs) in ks_pcie_get_irq_controller_info() 192 (legacy ? "legacy" : "MSI"), temp); in ks_pcie_get_irq_controller_info() 198 for (temp = 0; temp < max_host_irqs; temp++) { in ks_pcie_get_irq_controller_info() 199 host_irqs[temp] = irq_of_parse_and_map(*np_temp, temp); in ks_pcie_get_irq_controller_info() 200 if (!host_irqs[temp]) in ks_pcie_get_irq_controller_info() 203 if (temp) { in ks_pcie_get_irq_controller_info() 204 *num_irqs = temp; in ks_pcie_get_irq_controller_info()
|
/linux-4.4.14/drivers/gpu/ipu-v3/ |
D | ipu-csi.c | 204 u32 temp; in ipu_csi_set_testgen_mclk() local 215 temp = ipu_csi_read(csi, CSI_SENS_CONF); in ipu_csi_set_testgen_mclk() 216 temp &= ~CSI_SENS_CONF_DIVRATIO_MASK; in ipu_csi_set_testgen_mclk() 217 ipu_csi_write(csi, temp | (div_ratio << CSI_SENS_CONF_DIVRATIO_SHIFT), in ipu_csi_set_testgen_mclk() 536 u32 temp; in ipu_csi_set_test_generator() local 540 temp = ipu_csi_read(csi, CSI_TST_CTRL); in ipu_csi_set_test_generator() 543 temp &= ~CSI_TEST_GEN_MODE_EN; in ipu_csi_set_test_generator() 544 ipu_csi_write(csi, temp, CSI_TST_CTRL); in ipu_csi_set_test_generator() 549 temp &= ~(CSI_TEST_GEN_R_MASK | CSI_TEST_GEN_G_MASK | in ipu_csi_set_test_generator() 551 temp |= CSI_TEST_GEN_MODE_EN; in ipu_csi_set_test_generator() [all …]
|
/linux-4.4.14/arch/frv/kernel/ |
D | gdb-stub.c | 1395 unsigned long addr, length, loop, dbar, temp, temp2, temp3; in gdbstub() local 1428 temp = (unsigned long) __entry_kerneltrap_table; in gdbstub() 1432 if (temp3 == temp + TBR_TT_INTERRUPT_15 || in gdbstub() 1446 if (temp3 == temp + TBR_TT_DECREMENT_TIMER || in gdbstub() 1613 temp = (unsigned long) __frame; in gdbstub() 1614 ptr = mem2hex(&temp, ptr, 4, 0); in gdbstub() 1620 temp = (unsigned long) __debug_frame; in gdbstub() 1621 ptr = mem2hex(&temp, ptr, 4, 0); in gdbstub() 1688 ptr = hex2mem(ptr, &temp, 4); in gdbstub() 1693 ptr = hex2mem(ptr, &temp, 4); in gdbstub() [all …]
|
/linux-4.4.14/drivers/net/ethernet/smsc/ |
D | smsc911x.c | 494 unsigned int temp; in smsc911x_mac_read() local 498 temp = smsc911x_reg_read(pdata, MAC_CSR_CMD); in smsc911x_mac_read() 499 if (unlikely(temp & MAC_CSR_CMD_CSR_BUSY_)) { in smsc911x_mac_read() 509 temp = smsc911x_reg_read(pdata, BYTE_TEST); in smsc911x_mac_read() 523 unsigned int temp; in smsc911x_mac_write() local 527 temp = smsc911x_reg_read(pdata, MAC_CSR_CMD); in smsc911x_mac_write() 528 if (unlikely(temp & MAC_CSR_CMD_CSR_BUSY_)) { in smsc911x_mac_write() 542 temp = smsc911x_reg_read(pdata, BYTE_TEST); in smsc911x_mac_write() 812 unsigned int temp; in smsc911x_phy_reset() local 815 temp = smsc911x_reg_read(pdata, PMT_CTRL); in smsc911x_phy_reset() [all …]
|
/linux-4.4.14/drivers/power/ |
D | ab8500_btemp.c | 473 int i, temp; in ab8500_btemp_res_to_temp() local 491 temp = tbl[i].temp + ((tbl[i + 1].temp - tbl[i].temp) * in ab8500_btemp_res_to_temp() 493 return temp; in ab8500_btemp_res_to_temp() 504 int temp; in ab8500_btemp_measure_temp() local 525 temp = ab8500_btemp_res_to_temp(di, in ab8500_btemp_measure_temp() 542 temp = ab8500_btemp_res_to_temp(di, in ab8500_btemp_measure_temp() 545 prev = temp; in ab8500_btemp_measure_temp() 547 dev_dbg(di->dev, "Battery temperature is %d\n", temp); in ab8500_btemp_measure_temp() 548 return temp; in ab8500_btemp_measure_temp() 818 int temp = 0; in ab8500_btemp_get_temp() local [all …]
|
/linux-4.4.14/tools/testing/selftests/size/ |
D | get_size.c | 59 unsigned long long temp; in print_k_value() local 64 temp = num; in print_k_value() 65 temp = (temp * units)/1024; in print_k_value() 66 num = temp; in print_k_value()
|
/linux-4.4.14/drivers/video/fbdev/aty/ |
D | mach64_gx.c | 209 u32 gModeReg, devSetupRegA, temp, mask; in aty_set_dac_ATI68860_B() local 243 temp = aty_ld_8(DAC_CNTL, par); in aty_set_dac_ATI68860_B() 244 aty_st_8(DAC_CNTL, (temp & ~DAC_EXT_SEL_RS2) | DAC_EXT_SEL_RS3, in aty_set_dac_ATI68860_B() 251 temp = aty_ld_8(DAC_CNTL, par); in aty_set_dac_ATI68860_B() 252 aty_st_8(DAC_CNTL, temp | DAC_EXT_SEL_RS2 | DAC_EXT_SEL_RS3, par); in aty_set_dac_ATI68860_B() 266 temp = aty_ld_8(DAC_REGS, par); in aty_set_dac_ATI68860_B() 267 aty_st_8(DAC_REGS, (devSetupRegA | mask) | (temp & A860_DELAY_L), in aty_set_dac_ATI68860_B() 269 temp = aty_ld_8(DAC_CNTL, par); in aty_set_dac_ATI68860_B() 270 aty_st_8(DAC_CNTL, (temp & ~(DAC_EXT_SEL_RS2 | DAC_EXT_SEL_RS3)), in aty_set_dac_ATI68860_B() 503 u32 temp, tempB; in aty_var_to_pll_1703() local [all …]
|
/linux-4.4.14/drivers/s390/char/ |
D | vmcp.c | 139 int temp; in vmcp_ioctl() local 150 temp = session->resp_code; in vmcp_ioctl() 152 return put_user(temp, argp); in vmcp_ioctl() 157 temp = get_user(session->bufsize, argp); in vmcp_ioctl() 160 temp = -EINVAL; in vmcp_ioctl() 163 return temp; in vmcp_ioctl() 165 temp = session->resp_size; in vmcp_ioctl() 167 return put_user(temp, argp); in vmcp_ioctl()
|
/linux-4.4.14/drivers/usb/phy/ |
D | phy-fsl-usb.c | 112 u32 temp; in write_ulpi() local 114 temp = 0x60000000 | (addr << 16) | data; in write_ulpi() 115 fsl_writel(temp, &usb_dr_regs->ulpiview); in write_ulpi() 857 u32 temp; in usb_otg_start() local 904 temp = fsl_readl(&p_otg->dr_mem_map->usbcmd); in usb_otg_start() 905 temp &= ~USB_CMD_RUN_STOP; in usb_otg_start() 906 fsl_writel(temp, &p_otg->dr_mem_map->usbcmd); in usb_otg_start() 909 temp = fsl_readl(&p_otg->dr_mem_map->usbcmd); in usb_otg_start() 910 temp |= USB_CMD_CTRL_RESET; in usb_otg_start() 911 fsl_writel(temp, &p_otg->dr_mem_map->usbcmd); in usb_otg_start() [all …]
|
/linux-4.4.14/drivers/platform/x86/ |
D | intel_mid_thermal.c | 137 int temp; in adc_to_temp() local 153 temp = 177 - (adc_val/5); in adc_to_temp() 155 temp = 111 - (adc_val/8); in adc_to_temp() 157 temp = 92 - (adc_val/10); in adc_to_temp() 159 temp = 91 - (adc_val/10); in adc_to_temp() 161 temp = 112 - (adc_val/6); in adc_to_temp() 164 *tp = temp * 1000; in adc_to_temp() 177 static int mid_read_temp(struct thermal_zone_device *tzd, int *temp) in mid_read_temp() argument 217 *temp = td_info->curr_temp = curr_temp; in mid_read_temp() 455 static int read_curr_temp(struct thermal_zone_device *tzd, int *temp) in read_curr_temp() argument [all …]
|
/linux-4.4.14/drivers/media/radio/ |
D | radio-terratec.c | 85 int temp; in terratec_s_frequency() local 96 temp = 102400; in terratec_s_frequency() 98 if (rest % temp == rest) in terratec_s_frequency() 102 rest = rest - temp; in terratec_s_frequency() 106 temp = temp / 2; in terratec_s_frequency()
|
/linux-4.4.14/arch/parisc/include/uapi/asm/ |
D | swab.h | 31 unsigned int temp; in __arch_swab32() local 35 : "=r" (x), "=&r" (temp) in __arch_swab32() 54 __u64 temp; in __arch_swab64() local 59 : "=r" (x), "=&r" (temp) in __arch_swab64()
|
/linux-4.4.14/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_device_queue_manager_vi.c | 111 unsigned int temp; in register_process_vi() local 131 temp = get_sh_mem_bases_32(pdd); in register_process_vi() 132 qpd->sh_mem_bases = temp << SH_MEM_BASES__SHARED_BASE__SHIFT; in register_process_vi() 136 temp = get_sh_mem_bases_nybble_64(pdd); in register_process_vi() 137 qpd->sh_mem_bases = compute_sh_mem_bases_64bit(temp); in register_process_vi() 143 qpd->pqm->process->is_32bit_user_mode, temp, qpd->sh_mem_bases); in register_process_vi()
|
D | kfd_device_queue_manager_cik.c | 105 unsigned int temp; in register_process_cik() local 122 temp = get_sh_mem_bases_32(pdd); in register_process_cik() 123 qpd->sh_mem_bases = SHARED_BASE(temp); in register_process_cik() 126 temp = get_sh_mem_bases_nybble_64(pdd); in register_process_cik() 127 qpd->sh_mem_bases = compute_sh_mem_bases_64bit(temp); in register_process_cik() 131 qpd->pqm->process->is_32bit_user_mode, temp, qpd->sh_mem_bases); in register_process_cik()
|
/linux-4.4.14/arch/powerpc/platforms/86xx/ |
D | mpc8610_hpcd.c | 233 u64 temp; in mpc8610hpcd_set_pixel_clock() local 251 temp = 1000000000000ULL; in mpc8610hpcd_set_pixel_clock() 252 do_div(temp, pixclock); in mpc8610hpcd_set_pixel_clock() 253 freq = temp; in mpc8610hpcd_set_pixel_clock() 332 unsigned int temp; in mpc86xx_time_init() local 338 temp = mfspr(SPRN_HID0); in mpc86xx_time_init() 339 temp |= HID0_TBEN; in mpc86xx_time_init() 340 mtspr(SPRN_HID0, temp); in mpc86xx_time_init()
|
D | sbc8641d.c | 81 unsigned int temp; in mpc86xx_time_init() local 87 temp = mfspr(SPRN_HID0); in mpc86xx_time_init() 88 temp |= HID0_TBEN; in mpc86xx_time_init() 89 mtspr(SPRN_HID0, temp); in mpc86xx_time_init()
|
/linux-4.4.14/drivers/scsi/cxlflash/ |
D | lunmgt.c | 84 struct llun_info *lli, *temp; in lookup_local() local 86 list_for_each_entry_safe(lli, temp, &cfg->lluns, list) in lookup_local() 101 struct glun_info *gli, *temp; in lookup_global() local 103 list_for_each_entry_safe(gli, temp, &global.gluns, list) in lookup_global() 178 struct llun_info *lli, *temp; in cxlflash_term_local_luns() local 181 list_for_each_entry_safe(lli, temp, &cfg->lluns, list) { in cxlflash_term_local_luns() 203 struct glun_info *gli, *temp; in cxlflash_term_global_luns() local 206 list_for_each_entry_safe(gli, temp, &global.gluns, list) { in cxlflash_term_global_luns()
|
/linux-4.4.14/drivers/misc/ |
D | apds9802als.c | 84 int temp; in als_lux0_input_data_show() local 93 temp = i2c_smbus_read_byte_data(client, 0x81); in als_lux0_input_data_show() 94 i2c_smbus_write_byte_data(client, 0x81, temp | 0x08); in als_lux0_input_data_show() 100 temp = i2c_smbus_read_byte_data(client, 0x8C); /* LSB data */ in als_lux0_input_data_show() 101 if (temp < 0) { in als_lux0_input_data_show() 102 ret_val = temp; in als_lux0_input_data_show() 112 temp = (ret_val << 8) | temp; in als_lux0_input_data_show() 113 return sprintf(buf, "%d\n", temp); in als_lux0_input_data_show()
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | align.c | 474 } data, temp; in emulate_spe() local 529 temp.ll = data.ll = 0; in emulate_spe() 535 ret |= __get_user_inatomic(temp.v[0], p++); in emulate_spe() 536 ret |= __get_user_inatomic(temp.v[1], p++); in emulate_spe() 537 ret |= __get_user_inatomic(temp.v[2], p++); in emulate_spe() 538 ret |= __get_user_inatomic(temp.v[3], p++); in emulate_spe() 540 ret |= __get_user_inatomic(temp.v[4], p++); in emulate_spe() 541 ret |= __get_user_inatomic(temp.v[5], p++); in emulate_spe() 543 ret |= __get_user_inatomic(temp.v[6], p++); in emulate_spe() 544 ret |= __get_user_inatomic(temp.v[7], p++); in emulate_spe() [all …]
|
/linux-4.4.14/drivers/usb/core/ |
D | file.c | 158 char *temp; in usb_register_dev() local 195 temp = strrchr(name, '/'); in usb_register_dev() 196 if (temp && (temp[1] != '\0')) in usb_register_dev() 197 ++temp; in usb_register_dev() 199 temp = name; in usb_register_dev() 202 "%s", temp); in usb_register_dev()
|
/linux-4.4.14/arch/arm/mach-mmp/ |
D | pm-mmp2.c | 162 int temp; in mmp2_pm_enter() local 164 temp = __raw_readl(MMP2_ICU_INT4_MASK); in mmp2_pm_enter() 165 if (temp & (1 << 1)) { in mmp2_pm_enter() 170 temp = __raw_readl(APMU_SRAM_PWR_DWN); in mmp2_pm_enter() 171 temp |= ((1 << 19) | (1 << 18)); in mmp2_pm_enter() 172 __raw_writel(temp, APMU_SRAM_PWR_DWN); in mmp2_pm_enter()
|
/linux-4.4.14/drivers/i2c/algos/ |
D | i2c-algo-pcf.c | 160 unsigned char temp; in pcf_init_8584() local 171 if (((temp = get_pcf(adap, 1)) & 0x7f) != (0)) { in pcf_init_8584() 172 …DEB2(printk(KERN_ERR "i2c-algo-pcf.o: PCF detection failed -- can't select S0 (0x%02x).\n", temp)); in pcf_init_8584() 179 if ((temp = i2c_inb(adap)) != get_own(adap)) { in pcf_init_8584() 180 DEB2(printk(KERN_ERR "i2c-algo-pcf.o: PCF detection failed -- can't set S0 (0x%02x).\n", temp)); in pcf_init_8584() 187 if (((temp = get_pcf(adap, 1)) & 0x7f) != I2C_PCF_ES1) { in pcf_init_8584() 188 …DEB2(printk(KERN_ERR "i2c-algo-pcf.o: PCF detection failed -- can't select S2 (0x%02x).\n", temp)); in pcf_init_8584() 195 if (((temp = i2c_inb(adap)) & 0x1f) != get_clock(adap)) { in pcf_init_8584() 196 DEB2(printk(KERN_ERR "i2c-algo-pcf.o: PCF detection failed -- can't set S2 (0x%02x).\n", temp)); in pcf_init_8584() 204 if ((temp = get_pcf(adap, 1)) != (I2C_PCF_PIN | I2C_PCF_BB)) { in pcf_init_8584() [all …]
|
/linux-4.4.14/arch/mips/pci/ |
D | ops-lantiq.c | 33 u32 temp; in ltq_pci_config_access() local 59 temp = ltq_r32(((u32 *)(cfg_base))); in ltq_pci_config_access() 60 temp = swab32(temp); in ltq_pci_config_access() 63 ltq_w32(temp, ((u32 *)cfg_base)); in ltq_pci_config_access()
|
/linux-4.4.14/arch/arm/mach-hisi/ |
D | hotplug.c | 217 unsigned int temp; in hip01_set_cpu() local 230 temp = readl_relaxed(ctrl_base + HIP01_PERI9); in hip01_set_cpu() 231 temp |= PERI9_CPU1_RESET; in hip01_set_cpu() 232 writel_relaxed(temp, ctrl_base + HIP01_PERI9); in hip01_set_cpu() 237 temp = readl_relaxed(ctrl_base + HIP01_PERI9); in hip01_set_cpu() 238 temp &= ~PERI9_CPU1_RESET; in hip01_set_cpu() 239 writel_relaxed(temp, ctrl_base + HIP01_PERI9); in hip01_set_cpu()
|
/linux-4.4.14/drivers/char/ |
D | nwflash.c | 148 int nBlock, temp, rc; in flash_write() local 186 temp = ((int) (p + count) >> 16) - nBlock + 1; in flash_write() 192 temp -= 1; in flash_write() 196 "starting at %d.\n", temp, nBlock); in flash_write() 198 for (; temp; temp--, nBlock++) { in flash_write() 325 int temp, temp1; in erase_block() local 410 for (temp = 0; temp < 16 * 1024; temp++, pWritePtr += 4) { in erase_block()
|
/linux-4.4.14/drivers/staging/rtl8723au/core/ |
D | rtw_efuse.c | 238 u8 temp = {0x00}; in EFUSE_Read1Byte23a() local 248 temp = Address & 0xFF; in EFUSE_Read1Byte23a() 249 rtl8723au_write8(Adapter, EFUSE_CTRL+1, temp); in EFUSE_Read1Byte23a() 252 temp = ((Address >> 8) & 0x03) | (Bytetemp & 0xFC); in EFUSE_Read1Byte23a() 253 rtl8723au_write8(Adapter, EFUSE_CTRL+2, temp); in EFUSE_Read1Byte23a() 257 temp = Bytetemp & 0x7F; in EFUSE_Read1Byte23a() 258 rtl8723au_write8(Adapter, EFUSE_CTRL+3, temp); in EFUSE_Read1Byte23a() 280 u8 temp = {0x00}; in EFUSE_Write1Byte() local 292 temp = Address & 0xFF; in EFUSE_Write1Byte() 293 rtl8723au_write8(Adapter, EFUSE_CTRL+1, temp); in EFUSE_Write1Byte() [all …]
|
/linux-4.4.14/sound/pci/pcxhr/ |
D | pcxhr_mixer.c | 868 unsigned char temp; in pcxhr_iec958_capture_byte() local 911 temp = (unsigned char)rmh.stat[1]; in pcxhr_iec958_capture_byte() 913 temp = 0; in pcxhr_iec958_capture_byte() 916 temp <<= 1; in pcxhr_iec958_capture_byte() 918 temp |= 1; in pcxhr_iec958_capture_byte() 922 chip->chip_idx, aes_idx, temp); in pcxhr_iec958_capture_byte() 923 *aes_bits = temp; in pcxhr_iec958_capture_byte() 1124 struct snd_kcontrol_new temp; in pcxhr_create_mixer() local 1129 temp = pcxhr_control_analog_level; in pcxhr_create_mixer() 1130 temp.name = "Master Playback Volume"; in pcxhr_create_mixer() [all …]
|
/linux-4.4.14/drivers/clk/imx/ |
D | clk-pllv2.c | 82 u64 temp; in __clk_pllv2_recalc_rate() local 98 temp = (u64) ref_clk * abs(mfn); in __clk_pllv2_recalc_rate() 99 do_div(temp, mfd + 1); in __clk_pllv2_recalc_rate() 101 temp = (ref_clk * mfi) - temp; in __clk_pllv2_recalc_rate() 103 temp = (ref_clk * mfi) + temp; in __clk_pllv2_recalc_rate() 105 return temp; in __clk_pllv2_recalc_rate()
|