Home
last modified time | relevance | path

Searched refs:temp (Results 1 – 25 of 353) sorted by relevance

12345678910>>...15

/drivers/staging/otus/
Dapdbg.c282 unsigned char temp[29]; in main() local
291 sscanf(argv[3], "%02x%02x%02x%02x%02x", &temp[0], &temp[1], in main()
292 &temp[2], &temp[3], &temp[4]); in main()
297 &temp[0], &temp[1], &temp[2], &temp[3], &temp[4], in main()
298 &temp[5], &temp[6], &temp[7], &temp[8], &temp[9], in main()
299 &temp[10], &temp[11], &temp[12]); in main()
304 &temp[0], &temp[1], &temp[2], &temp[3], &temp[4], in main()
305 &temp[5], &temp[6], &temp[7], &temp[8], &temp[9], in main()
306 &temp[10], &temp[11], &temp[12], &temp[13], &temp[14], in main()
307 &temp[15], &temp[16], &temp[17], &temp[18], &temp[19], in main()
[all …]
/drivers/usb/host/
Dohci-dbg.c14 #define edstring(ed_type) ({ char *temp; \
16 case PIPE_CONTROL: temp = "ctrl"; break; \
17 case PIPE_BULK: temp = "bulk"; break; \
18 case PIPE_INTERRUPT: temp = "intr"; break; \
19 default: temp = "isoc"; break; \
20 }; temp;})
135 u32 temp; in ohci_dump_status() local
137 temp = ohci_readl (controller, &regs->revision) & 0xff; in ohci_dump_status()
140 0x03 & (temp >> 4), (temp & 0x0f), in ohci_dump_status()
141 (temp & 0x0100) ? "with" : "NO"); in ohci_dump_status()
[all …]
Dehci-hub.c194 u32 temp; in ehci_bus_resume() local
239 temp = ehci_readl(ehci, &ehci->regs->port_status [i]); in ehci_bus_resume()
240 temp &= ~(PORT_RWC_BITS | PORT_WAKE_BITS); in ehci_bus_resume()
242 (temp & PORT_SUSPEND)) { in ehci_bus_resume()
243 temp |= PORT_RESUME; in ehci_bus_resume()
246 ehci_writel(ehci, temp, &ehci->regs->port_status [i]); in ehci_bus_resume()
258 temp = ehci_readl(ehci, &ehci->regs->port_status [i]); in ehci_bus_resume()
260 (temp & PORT_SUSPEND)) { in ehci_bus_resume()
261 temp &= ~(PORT_RWC_BITS | PORT_RESUME); in ehci_bus_resume()
262 ehci_writel(ehci, temp, &ehci->regs->port_status [i]); in ehci_bus_resume()
[all …]
Dehci-dbg.c398 unsigned temp; in qh_lines() local
418 temp = scnprintf (next, size, in qh_lines()
428 size -= temp; in qh_lines()
429 next += temp; in qh_lines()
446 temp = snprintf (next, size, in qh_lines()
458 if (size < temp) in qh_lines()
459 temp = size; in qh_lines()
460 size -= temp; in qh_lines()
461 next += temp; in qh_lines()
462 if (temp == size) in qh_lines()
[all …]
Dohci-hub.c20 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 …]
/drivers/staging/comedi/
Dcomedi_compat32.c133 } temp; in compat_chaninfo() local
145 err |= __get_user(temp.uint, &chaninfo32->subdev); in compat_chaninfo()
146 err |= __put_user(temp.uint, &chaninfo->subdev); in compat_chaninfo()
147 err |= __get_user(temp.uptr, &chaninfo32->maxdata_list); in compat_chaninfo()
148 err |= __put_user(compat_ptr(temp.uptr), &chaninfo->maxdata_list); in compat_chaninfo()
149 err |= __get_user(temp.uptr, &chaninfo32->flaglist); in compat_chaninfo()
150 err |= __put_user(compat_ptr(temp.uptr), &chaninfo->flaglist); in compat_chaninfo()
151 err |= __get_user(temp.uptr, &chaninfo32->rangelist); in compat_chaninfo()
152 err |= __put_user(compat_ptr(temp.uptr), &chaninfo->rangelist); in compat_chaninfo()
169 } temp; in compat_rangeinfo() local
[all …]
/drivers/net/ixp2000/
Dpm3386.c157 u16 temp[3]; in pm3386_init_port() local
159 temp[0] = pm3386_port_reg_read(port, 0x308, 0x100); in pm3386_init_port()
160 temp[1] = pm3386_port_reg_read(port, 0x309, 0x100); in pm3386_init_port()
161 temp[2] = pm3386_port_reg_read(port, 0x30a, 0x100); in pm3386_init_port()
162 pm3386_port_reg_write(port, 0x308, 0x100, swaph(temp[2])); in pm3386_init_port()
163 pm3386_port_reg_write(port, 0x309, 0x100, swaph(temp[1])); in pm3386_init_port()
164 pm3386_port_reg_write(port, 0x30a, 0x100, swaph(temp[0])); in pm3386_init_port()
250 u16 temp; in pm3386_get_mac() local
252 temp = pm3386_port_reg_read(port, 0x308, 0x100); in pm3386_get_mac()
253 mac[0] = temp & 0xff; in pm3386_get_mac()
[all …]
Dcaleb.c104 u8 temp; in caleb_enable_rx() local
106 temp = caleb_reg_read(CALEB_PORTEN); in caleb_enable_rx()
107 temp |= 1 << port; in caleb_enable_rx()
108 caleb_reg_write(CALEB_PORTEN, temp); in caleb_enable_rx()
113 u8 temp; in caleb_disable_rx() local
115 temp = caleb_reg_read(CALEB_PORTEN); in caleb_disable_rx()
116 temp &= ~(1 << port); in caleb_disable_rx()
117 caleb_reg_write(CALEB_PORTEN, temp); in caleb_disable_rx()
122 u8 temp; in caleb_enable_tx() local
124 temp = caleb_reg_read(CALEB_PORTEN); in caleb_enable_tx()
[all …]
Dixp2400_rx.uc68 .reg temp
75 immed[temp, 0]
76 alu[temp2, temp, and, 0x1f]
78 alu[temp2, temp, and, 0x80]
96 .reg temp
98 immed[temp, 0]
100 alu_shf[addr, --, b, temp, <<CHANNEL_STATE_SHIFT]
108 alu[temp, temp, +, 1]
109 alu[--, temp, and, 0x20]
170 .reg temp
[all …]
/drivers/scsi/aic7xxx/
Daic7xxx_93cx6.c113 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 …]
/drivers/net/phy/
Dmarvell.c160 int temp; in m88e1111_config_init() local
163 temp = phy_read(phydev, MII_M1111_PHY_EXT_SR); in m88e1111_config_init()
164 temp &= ~MII_M1111_HWCFG_FIBER_COPPER_AUTO; in m88e1111_config_init()
165 phy_write(phydev, MII_M1111_PHY_EXT_SR, temp); in m88e1111_config_init()
167 temp = phy_read(phydev, MII_BMCR); in m88e1111_config_init()
168 temp |= BMCR_RESET; in m88e1111_config_init()
169 phy_write(phydev, MII_BMCR, temp); in m88e1111_config_init()
176 temp = phy_read(phydev, MII_M1111_PHY_EXT_CR); in m88e1111_config_init()
177 if (temp < 0) in m88e1111_config_init()
178 return temp; in m88e1111_config_init()
[all …]
/drivers/video/sis/
Dinit301.c295 unsigned short modeflag,index,temp,backupindex; in SiS_GetRatePtr() local
334 temp = LCDRefreshIndex[SiS_GetBIOSLCDResInfo(SiS_Pr)]; in SiS_GetRatePtr()
335 if(index > temp) index = temp; in SiS_GetRatePtr()
361 temp = SiS_Pr->SiS_RefIndex[RRTI + i].Ext_InfoFlag; in SiS_GetRatePtr()
362 temp &= ModeTypeMask; in SiS_GetRatePtr()
363 if(temp < SiS_Pr->SiS_ModeType) break; in SiS_GetRatePtr()
370 temp = SiS_Pr->SiS_RefIndex[RRTI + i - 1].Ext_InfoFlag; in SiS_GetRatePtr()
371 if(temp & InterlaceMode) i++; in SiS_GetRatePtr()
412 unsigned short temp,temp1; in SiS_CR36BIOSWord23b() local
416 temp = 1 << ((SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) >> 4) & 0x0f); in SiS_CR36BIOSWord23b()
[all …]
/drivers/i2c/busses/
Di2c-ali15x3.c137 unsigned char temp; in ali15x3_setup() local
150 pci_read_config_byte(ALI15X3_dev, SMBATPC, &temp); in ali15x3_setup()
151 if (temp & ALI15X3_LOCK) { in ali15x3_setup()
152 temp &= ~ALI15X3_LOCK; in ali15x3_setup()
153 pci_write_config_byte(ALI15X3_dev, SMBATPC, temp); in ali15x3_setup()
198 pci_read_config_byte(ALI15X3_dev, SMBCOM, &temp); in ali15x3_setup()
199 if ((temp & 1) == 0) { in ali15x3_setup()
201 pci_write_config_byte(ALI15X3_dev, SMBCOM, temp | 0x01); in ali15x3_setup()
205 pci_read_config_byte(ALI15X3_dev, SMBHSTCFG, &temp); in ali15x3_setup()
206 if ((temp & 1) == 0) { in ali15x3_setup()
[all …]
Di2c-ali1535.c144 unsigned char temp; in ali1535_setup() local
174 pci_read_config_byte(dev, SMBCFG, &temp); in ali1535_setup()
175 if ((temp & ALI1535_SMBIO_EN) == 0) { in ali1535_setup()
181 pci_read_config_byte(dev, SMBHSTCFG, &temp); in ali1535_setup()
182 if ((temp & 1) == 0) { in ali1535_setup()
197 pci_read_config_byte(dev, SMBREV, &temp); in ali1535_setup()
198 dev_dbg(&dev->dev, "SMBREV = 0x%X\n", temp); in ali1535_setup()
212 int temp; in ali1535_transaction() local
222 temp = inb_p(SMBHSTSTS); in ali1535_transaction()
226 if (temp & ALI1535_STS_BUSY) { in ali1535_transaction()
[all …]
Di2c-isch.c76 int temp; in sch_transaction() local
86 temp = inb(SMBHSTSTS) & 0x0f; in sch_transaction()
87 if (temp) { in sch_transaction()
89 if (temp & 0x01) { in sch_transaction()
91 "Clear...\n", temp); in sch_transaction()
93 if (temp & 0x06) { in sch_transaction()
95 "Resetting...\n", temp); in sch_transaction()
97 outb(temp, SMBHSTSTS); in sch_transaction()
98 temp = inb(SMBHSTSTS) & 0x0f; in sch_transaction()
99 if (temp) { in sch_transaction()
[all …]
/drivers/char/agp/
Dali-agp.c24 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 …]
Dati-agp.c147 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 …]
/drivers/net/
Dgianfar_sysfs.c53 u32 temp; in gfar_set_bd_stash() local
70 temp = gfar_read(&priv->regs->attr); in gfar_set_bd_stash()
73 temp |= ATTR_BDSTASH; in gfar_set_bd_stash()
75 temp &= ~(ATTR_BDSTASH); in gfar_set_bd_stash()
77 gfar_write(&priv->regs->attr, temp); in gfar_set_bd_stash()
100 u32 temp; in gfar_set_rx_stash_size() local
112 temp = gfar_read(&priv->regs->attreli); in gfar_set_rx_stash_size()
113 temp &= ~ATTRELI_EL_MASK; in gfar_set_rx_stash_size()
114 temp |= ATTRELI_EL(length); in gfar_set_rx_stash_size()
115 gfar_write(&priv->regs->attreli, temp); in gfar_set_rx_stash_size()
[all …]
/drivers/staging/otus/80211core/
Dcwep.c90 u8_t temp; in zfWEPEncrypt() local
119 temp = S[i]; in zfWEPEncrypt()
121 S[j] = temp; in zfWEPEncrypt()
138 temp = S[i]; in zfWEPEncrypt()
140 S[j] = temp; in zfWEPEncrypt()
142 temp += S[i]; in zfWEPEncrypt()
143 temp &=255; in zfWEPEncrypt()
144 K = S[temp]; // Key used to Xor with input data in zfWEPEncrypt()
165 temp = S[i]; in zfWEPEncrypt()
167 S[j] = temp; in zfWEPEncrypt()
[all …]
/drivers/usb/gadget/
Dimx_udc.h251 int temp = __raw_readl(imx_usb->base + USB_STAT); in dump_usb_stat() local
255 (temp & STAT_RST) ? " reset" : "", in dump_usb_stat()
256 (temp & STAT_SUSP) ? " suspend" : "", in dump_usb_stat()
257 (temp & STAT_CFG) >> 5, in dump_usb_stat()
258 (temp & STAT_INTF) >> 3, in dump_usb_stat()
259 (temp & STAT_ALTSET)); in dump_usb_stat()
264 int temp = __raw_readl(imx_ep->imx_usb->base + USB_EP_INTR(EP_NO(imx_ep))); in dump_ep_stat() local
268 (temp & EPINTR_FIFO_FULL) ? " full" : "", in dump_ep_stat()
269 (temp & EPINTR_FIFO_EMPTY) ? " fempty" : "", in dump_ep_stat()
270 (temp & EPINTR_FIFO_ERROR) ? " ferr" : "", in dump_ep_stat()
[all …]
/drivers/hwmon/
Dadt7470.c157 s8 temp[ADT7470_TEMP_COUNT]; member
288 data->temp[i] = i2c_smbus_read_byte_data(client, in adt7470_read_temperatures()
290 if (data->temp[i]) in adt7470_read_temperatures()
351 data->temp[i] = i2c_smbus_read_byte_data(client, in adt7470_update_device()
450 long temp; in set_auto_update_interval() local
452 if (strict_strtol(buf, 10, &temp)) in set_auto_update_interval()
455 temp = SENSORS_LIMIT(temp, 0, 60000); in set_auto_update_interval()
458 data->auto_update_interval = temp; in set_auto_update_interval()
479 long temp; in set_num_temp_sensors() local
481 if (strict_strtol(buf, 10, &temp)) in set_num_temp_sensors()
[all …]
Dadt7473.c145 s8 temp[ADT7473_TEMP_COUNT]; member
254 data->temp[i] = i2c_smbus_read_byte_data(client, in adt7473_update_device()
455 long temp; in set_temp_min() local
457 if (strict_strtol(buf, 10, &temp)) in set_temp_min()
460 temp = DIV_ROUND_CLOSEST(temp, 1000); in set_temp_min()
461 temp = encode_temp(data->temp_twos_complement, temp); in set_temp_min()
464 data->temp_min[attr->index] = temp; in set_temp_min()
466 temp); in set_temp_min()
491 long temp; in set_temp_max() local
493 if (strict_strtol(buf, 10, &temp)) in set_temp_max()
[all …]
Dadt7462.c216 u8 temp[ADT7462_TEMP_COUNT]; member
729 data->temp[i] = i2c_smbus_read_byte_data(client, in adt7462_update_device()
836 long temp; in set_temp_min() local
838 if (strict_strtol(buf, 10, &temp) || !temp_enabled(data, attr->index)) in set_temp_min()
841 temp = DIV_ROUND_CLOSEST(temp, 1000) + 64; in set_temp_min()
842 temp = SENSORS_LIMIT(temp, 0, 255); in set_temp_min()
845 data->temp_min[attr->index] = temp; in set_temp_min()
847 temp); in set_temp_min()
874 long temp; in set_temp_max() local
876 if (strict_strtol(buf, 10, &temp) || !temp_enabled(data, attr->index)) in set_temp_max()
[all …]
/drivers/ata/
Dsata_fsl.c524 u32 temp; in sata_fsl_freeze() local
534 temp = ioread32(hcr_base + HCONTROL); in sata_fsl_freeze()
535 iowrite32((temp & ~0x3F), hcr_base + HCONTROL); in sata_fsl_freeze()
545 u32 temp; in sata_fsl_thaw() local
548 temp = ioread32(hcr_base + HSTATUS); in sata_fsl_thaw()
550 VPRINTK("xx_thaw, pending IRQs = 0x%x\n", (temp & 0x3F)); in sata_fsl_thaw()
552 if (temp & 0x3F) in sata_fsl_thaw()
553 iowrite32((temp & 0x3F), hcr_base + HSTATUS); in sata_fsl_thaw()
556 temp = ioread32(hcr_base + HCONTROL); in sata_fsl_thaw()
557 iowrite32((temp | DEFAULT_PORT_IRQ_ENABLE_MASK), hcr_base + HCONTROL); in sata_fsl_thaw()
[all …]
/drivers/ieee1394/
Ddv1394-private.h129 u32 temp = 0; in fill_output_last() local
130 temp |= 1 << 28; /* OUTPUT_LAST */ in fill_output_last()
133 temp |= 1 << 27; in fill_output_last()
136 temp |= 3 << 20; in fill_output_last()
138 temp |= 3 << 18; /* must take branch */ in fill_output_last()
139 temp |= data_size; in fill_output_last()
141 ol->q[0] = cpu_to_le32(temp); in fill_output_last()
154 u32 temp = 2 << 28; /* INPUT_MORE */ in fill_input_more() local
155 temp |= 8 << 24; /* s = 1, update xferStatus and resCount */ in fill_input_more()
157 temp |= 0 << 20; /* interrupts, i=0 in packet-per-buffer mode */ in fill_input_more()
[all …]

12345678910>>...15