Home
last modified time | relevance | path

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

12345678910>>...32

/freebsd/lib/libusb/
H A Dlibusb20_desc.c354 uint8_t temp; in libusb20_me_encode() local
359 temp = *((const uint8_t *) in libusb20_me_encode()
361 buf[0] = temp; in libusb20_me_encode()
372 uint16_t temp; in libusb20_me_encode() local
378 temp = *((const uint16_t *) in libusb20_me_encode()
380 buf[1] = (temp >> 8) & 0xFF; in libusb20_me_encode()
381 buf[0] = temp & 0xFF; in libusb20_me_encode()
392 uint32_t temp; in libusb20_me_encode() local
397 temp = *((const uint32_t *) in libusb20_me_encode()
399 buf[3] = (temp >> 24) & 0xFF; in libusb20_me_encode()
[all …]
H A Dlibusb20_ugen20.c109 uint32_t temp = 0; in ugen20_path_convert_one() local
114 temp *= 10; in ugen20_path_convert_one()
115 temp += (*ptr - '0'); in ugen20_path_convert_one()
116 if (temp >= 1000000) { in ugen20_path_convert_one()
129 return (temp); in ugen20_path_convert_one()
521 int temp; in ugen20_get_config_index() local
523 if (ioctl(pdev->file_ctrl, IOUSB(USB_GET_CONFIG), &temp)) { in ugen20_get_config_index()
526 *pindex = temp; in ugen20_get_config_index()
534 int temp = cfg_index; in ugen20_set_config_index() local
539 if (ioctl(pdev->file_ctrl, IOUSB(USB_SET_CONFIG), &temp)) { in ugen20_set_config_index()
[all …]
/freebsd/sys/dev/aic7xxx/
H A Daic7xxx_93cx6.c107 uint8_t temp;
111 temp = sd->sd_MS ^ sd->sd_CS;
112 SEEPROM_OUTB(sd, temp ^ sd->sd_CK); in send_seeprom_cmd()
117 temp ^= sd->sd_DO; in send_seeprom_cmd()
118 SEEPROM_OUTB(sd, temp); in send_seeprom_cmd()
120 SEEPROM_OUTB(sd, temp ^ sd->sd_CK); in send_seeprom_cmd()
123 temp ^= sd->sd_DO; in send_seeprom_cmd()
133 uint8_t temp;
135 temp = sd->sd_MS;
136 SEEPROM_OUTB(sd, temp);
114 uint8_t temp; send_seeprom_cmd() local
140 uint8_t temp; reset_seeprom() local
162 uint8_t temp; ahc_read_seeprom() local
233 uint8_t temp; ahc_write_seeprom() local
[all...]
/freebsd/contrib/wpa/src/crypto/
H A Daes-internal.c782 u32 temp; in rijndaelKeySetupEnc() local
791 temp = rk[3]; in rijndaelKeySetupEnc()
792 rk[4] = rk[0] ^ TE421(temp) ^ TE432(temp) ^ in rijndaelKeySetupEnc()
793 TE443(temp) ^ TE414(temp) ^ RCON(i); in rijndaelKeySetupEnc()
807 temp = rk[5]; in rijndaelKeySetupEnc()
808 rk[6] = rk[0] ^ TE421(temp) ^ TE432(temp) ^ in rijndaelKeySetupEnc()
809 TE443(temp) ^ TE414(temp) ^ RCON(i); in rijndaelKeySetupEnc()
826 temp = rk[7]; in rijndaelKeySetupEnc()
827 rk[8] = rk[0] ^ TE421(temp) ^ TE432(temp) ^ in rijndaelKeySetupEnc()
828 TE443(temp) ^ TE414(temp) ^ RCON(i); in rijndaelKeySetupEnc()
[all …]
/freebsd/sys/dev/usb/controller/
H A Dmusb_otg.c293 uint8_t temp; in musbotg_pull_common() local
295 temp = MUSB2_READ_1(sc, MUSB2_REG_POWER); in musbotg_pull_common()
297 temp |= MUSB2_MASK_SOFTC; in musbotg_pull_common()
299 temp &= ~MUSB2_MASK_SOFTC; in musbotg_pull_common()
301 MUSB2_WRITE_1(sc, MUSB2_REG_POWER, temp); in musbotg_pull_common()
330 uint8_t temp; in musbotg_suspend_host() local
336 temp = MUSB2_READ_1(sc, MUSB2_REG_POWER); in musbotg_suspend_host()
337 temp |= MUSB2_MASK_SUSPMODE; in musbotg_suspend_host()
338 MUSB2_WRITE_1(sc, MUSB2_REG_POWER, temp); in musbotg_suspend_host()
345 uint8_t temp; in musbotg_wakeup_host() local
[all …]
H A Duss820dci.c166 uint8_t temp; in uss820dci_update_shared_1() local
169 temp = USS820_READ_1(sc, reg); in uss820dci_update_shared_1()
170 temp &= (keep_mask); in uss820dci_update_shared_1()
171 temp |= (set_mask); in uss820dci_update_shared_1()
172 USS820_WRITE_1(sc, reg, temp); in uss820dci_update_shared_1()
196 uint8_t temp; in uss820dci_pull_up() local
206 temp = USS820_READ_1(sc, USS820_MCSR); in uss820dci_pull_up()
207 temp |= USS820_MCSR_DPEN; in uss820dci_pull_up()
208 USS820_WRITE_1(sc, USS820_MCSR, temp); in uss820dci_pull_up()
215 uint8_t temp; in uss820dci_pull_down() local
[all …]
H A Ddwc_otg.c173 uint32_t temp; in dwc_otg_write_fifo() local
176 temp = count & ~3; in dwc_otg_write_fifo()
179 if (temp != 0 && usb_pc_buffer_is_aligned(pc, offset, temp, 3)) { in dwc_otg_write_fifo()
183 count -= temp; in dwc_otg_write_fifo()
190 if (buf_res.length > temp) in dwc_otg_write_fifo()
191 buf_res.length = temp; in dwc_otg_write_fifo()
199 temp -= buf_res.length; in dwc_otg_write_fifo()
200 } while (temp != 0); in dwc_otg_write_fifo()
223 uint32_t temp; in dwc_otg_read_fifo() local
276 uint32_t temp; dwc_otg_tx_fifo_reset() local
529 uint32_t temp; dwc_otg_pull_up() local
546 uint32_t temp; dwc_otg_pull_down() local
629 uint32_t temp; dwc_otg_wakeup_peer() local
670 uint32_t temp; dwc_otg_set_address() local
717 uint32_t temp; dwc_otg_host_check_tx_fifo_empty() local
1097 uint32_t temp; dwc_otg_setup_rx() local
1663 uint32_t temp; dwc_otg_data_rx() local
2133 uint32_t temp; dwc_otg_data_tx() local
2318 uint32_t temp; dwc_otg_data_tx_sync() local
2494 uint16_t temp; dwc_otg_update_host_transfer_schedule_locked() local
2681 uint32_t temp; dwc_otg_interrupt_poll_locked() local
2875 uint32_t temp; dwc_otg_filter_interrupt() local
2938 uint32_t temp; dwc_otg_interrupt() local
3065 uint32_t temp; dwc_otg_interrupt() local
3086 dwc_otg_setup_standard_chain_sub(struct dwc_otg_std_temp * temp) dwc_otg_setup_standard_chain_sub() argument
3124 struct dwc_otg_std_temp temp; dwc_otg_setup_standard_chain() local
3653 uint32_t temp; dwc_otg_set_stall() local
3708 uint32_t temp; dwc_otg_clear_stall_sub_locked() local
3837 uint32_t temp; dwc_otg_init() local
4189 uint32_t temp; dwc_otg_device_isoc_start() local
[all...]
H A Davr32dci.c176 uint32_t temp; in avr32dci_mod_ctrl() local
178 temp = AVR32_READ_4(sc, AVR32_CTRL); in avr32dci_mod_ctrl()
179 temp |= set; in avr32dci_mod_ctrl()
180 temp &= ~clear; in avr32dci_mod_ctrl()
181 AVR32_WRITE_4(sc, AVR32_CTRL, temp); in avr32dci_mod_ctrl()
187 uint32_t temp; in avr32dci_mod_ien() local
189 temp = AVR32_READ_4(sc, AVR32_IEN); in avr32dci_mod_ien()
190 temp |= set; in avr32dci_mod_ien()
191 temp &= ~clear; in avr32dci_mod_ien()
192 AVR32_WRITE_4(sc, AVR32_IEN, temp); in avr32dci_mod_ien()
[all …]
H A Datmegadci.c215 uint8_t temp; in atmegadci_wakeup_peer() local
221 temp = ATMEGA_READ_1(sc, ATMEGA_UDCON); in atmegadci_wakeup_peer()
222 ATMEGA_WRITE_1(sc, ATMEGA_UDCON, temp | ATMEGA_UDCON_RMWKUP); in atmegadci_wakeup_peer()
247 uint8_t temp; in atmegadci_setup_rx() local
256 temp = ATMEGA_READ_1(sc, ATMEGA_UEINTX); in atmegadci_setup_rx()
258 DPRINTFN(5, "UEINTX=0x%02x\n", temp); in atmegadci_setup_rx()
260 if (!(temp & ATMEGA_UEINTX_RXSTPI)) { in atmegadci_setup_rx()
317 if (temp & ATMEGA_UEINTX_RXSTPI) { in atmegadci_setup_rx()
332 uint8_t temp; in atmegadci_data_rx() local
348 temp = ATMEGA_READ_1(sc, ATMEGA_UEINTX); in atmegadci_data_rx()
[all …]
/freebsd/sys/contrib/xz-embedded/linux/lib/xz/
H A Dxz_dec_stream.c141 } temp; member
172 b->in_size - b->in_pos, s->temp.size - s->temp.pos); in fill_temp()
174 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); in fill_temp()
176 s->temp.pos += copy_size; in fill_temp()
178 if (s->temp.pos == s->temp.size) { in fill_temp()
179 s->temp.pos = 0; in fill_temp()
410 if (!memeq(s->temp.buf, HEADER_MAGIC, HEADER_MAGIC_SIZE)) in dec_stream_header()
413 if (xz_crc32(s->temp.buf + HEADER_MAGIC_SIZE, 2, 0) in dec_stream_header()
414 != get_le32(s->temp.buf + HEADER_MAGIC_SIZE + 2)) in dec_stream_header()
417 if (s->temp.buf[HEADER_MAGIC_SIZE] != 0) in dec_stream_header()
[all …]
H A Dxz_dec_bcj.c75 } 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 …]
/freebsd/lib/msun/src/
H A De_jn.c53 double a, b, c, s, temp, di; in jn() local
92 case 0: temp = c+s; break; in jn()
93 case 1: temp = -c+s; break; in jn()
94 case 2: temp = -c-s; break; in jn()
95 case 3: temp = c-s; break; in jn()
97 b = invsqrtpi*temp/sqrt(x); in jn()
102 temp = b; in jn()
104 a = temp; in jn()
115 temp = x*0.5; b = temp; in jn()
118 b *= temp; /* b = (x/2)^n */ in jn()
[all …]
/freebsd/sys/dev/usb/template/
H A Dusb_template.c199 usb_make_raw_desc(struct usb_temp_setup *temp, in usb_make_raw_desc() argument
210 if (temp->buf) { in usb_make_raw_desc()
211 dst = USB_ADD_BYTES(temp->buf, temp->size); in usb_make_raw_desc()
224 temp->bInterfaceNumber; in usb_make_raw_desc()
226 temp->bInterfaceNumber; in usb_make_raw_desc()
238 temp->bInterfaceNumber; in usb_make_raw_desc()
251 temp->bInterfaceNumber; in usb_make_raw_desc()
254 temp->size += len; in usb_make_raw_desc()
266 usb_make_endpoint_desc(struct usb_temp_setup *temp, in usb_make_endpoint_desc() argument
277 old_size = temp->size; in usb_make_endpoint_desc()
[all …]
/freebsd/sbin/nvmecontrol/modules/samsung/
H A Dsamsung.c68 struct samsung_log_extended_smart *temp = buf; in print_samsung_extended_smart() local
133 printf(" Lifetime Write Amplification Factor : %u\n", le32dec(&temp->lwaf)); in print_samsung_extended_smart()
134 printf(" Trailing Hour Write Amplification Factor : %u\n", le32dec(&temp->thwaf)); in print_samsung_extended_smart()
136 uint128_to_str(to128(temp->luw), cbuf, sizeof(cbuf))); in print_samsung_extended_smart()
138 uint128_to_str(to128(temp->lnw), cbuf, sizeof(cbuf))); in print_samsung_extended_smart()
140 uint128_to_str(to128(temp->lur), cbuf, sizeof(cbuf))); in print_samsung_extended_smart()
141 printf(" Lifetime Retired Block Count : %u\n", le32dec(&temp->lrbc)); in print_samsung_extended_smart()
143 print_temp_K(le16dec(&temp->ct)); in print_samsung_extended_smart()
144 printf(" Capacitor Health : %u\n", le16dec(&temp->ch)); in print_samsung_extended_smart()
145 printf(" Reserved Erase Block Count : %u\n", le32dec(&temp->luurb)); in print_samsung_extended_smart()
[all …]
/freebsd/contrib/libedit/
H A Dfilecomplete.c73 char *temp; in fn_tilde_expand() local
81 temp = strdup(txt + 1); in fn_tilde_expand()
82 if (temp == NULL) in fn_tilde_expand()
87 temp = el_calloc(len, sizeof(*temp)); in fn_tilde_expand()
88 if (temp == NULL) in fn_tilde_expand()
90 (void)strlcpy(temp, txt + 1, len - 1); in fn_tilde_expand()
92 if (temp[0] == 0) { in fn_tilde_expand()
104 if (getpwnam_r(temp, &pwres, pwbuf, sizeof(pwbuf), &pass) != 0) in fn_tilde_expand()
107 pass = getpwnam_r(temp, &pwres, pwbuf, sizeof(pwbuf)); in fn_tilde_expand()
109 pass = getpwnam(temp); in fn_tilde_expand()
[all …]
/freebsd/sys/contrib/openzfs/module/icp/algs/aes/
H A Daes_impl_generic.c794 uint32_t temp; in rijndael_key_setup_enc() local
803 temp = rk[3]; in rijndael_key_setup_enc()
805 (Te4[(temp >> 16) & 0xff] & 0xff000000) ^ in rijndael_key_setup_enc()
806 (Te4[(temp >> 8) & 0xff] & 0x00ff0000) ^ in rijndael_key_setup_enc()
807 (Te4[temp & 0xff] & 0x0000ff00) ^ in rijndael_key_setup_enc()
808 (Te4[temp >> 24] & 0x000000ff) ^ in rijndael_key_setup_enc()
826 temp = rk[5]; in rijndael_key_setup_enc()
828 (Te4[(temp >> 16) & 0xff] & 0xff000000) ^ in rijndael_key_setup_enc()
829 (Te4[(temp >> 8) & 0xff] & 0x00ff0000) ^ in rijndael_key_setup_enc()
830 (Te4[temp & 0xff] & 0x0000ff00) ^ in rijndael_key_setup_enc()
[all …]
/freebsd/contrib/ntp/libntp/
H A Drefidsmear.c20 l_fp temp; in convertRefIDToLFP() local
26 temp.l_uf = (r << 10); /* 22 fractional bits */ in convertRefIDToLFP()
28 temp.l_ui = (r >> 22) & 0x3; in convertRefIDToLFP()
29 temp.l_ui |= ~(temp.l_ui & 2) + 1; in convertRefIDToLFP()
31 return temp; in convertRefIDToLFP()
38 uint32_t temp; in convertLFPToRefID() local
50 temp = (num.l_ui << 22) | (num.l_uf >> 10); in convertLFPToRefID()
53 temp |= UINT32_C(0xFE000000); in convertLFPToRefID()
57 return htonl(temp); in convertLFPToRefID()
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_paprd.c831 int temp; in ar9300_paprd_debug_print() local
837 temp = in ar9300_paprd_debug_print()
841 "BB_paprd_trainer_cntl1.cf_paprd_lb_skip=0x%x\n", temp); in ar9300_paprd_debug_print()
843 temp = in ar9300_paprd_debug_print()
847 "BB_paprd_trainer_cntl1.cf_paprd_lb_enable=0x%x\n", temp); in ar9300_paprd_debug_print()
849 temp = in ar9300_paprd_debug_print()
853 "BB_paprd_trainer_cntl1.cf_paprd_tx_gain_force=0x%x\n", temp); in ar9300_paprd_debug_print()
858 temp = in ar9300_paprd_debug_print()
862 "BB_paprd_trainer_cntl1.cf_paprd_rx_bb_gain_force=0x%x\n", temp); in ar9300_paprd_debug_print()
864 temp = in ar9300_paprd_debug_print()
[all …]
/freebsd/usr.sbin/vidcontrol/
H A Ddecode.c40 char temp[128]; in decode() local
45 if (!fgets(temp, sizeof(temp), fd)) in decode()
47 } while (strncmp(temp, "begin ", 6)); in decode()
48 sscanf(temp, "begin %o %s", (unsigned *)&n, temp); in decode()
51 if (!fgets(p = temp, sizeof(temp), fd)) in decode()
93 if (!fgets(temp, sizeof(temp), fd) || strcmp(temp, "end\n")) in decode()
/freebsd/usr.sbin/makefs/
H A Dcd9660.c170 cd9660node *temp = ecalloc(1, sizeof(*temp)); in cd9660_allocate_cd9660node() local
172 TAILQ_INIT(&temp->cn_children); in cd9660_allocate_cd9660node()
173 temp->parent = temp->dot_record = temp->dot_dot_record = NULL; in cd9660_allocate_cd9660node()
174 temp->ptnext = temp->ptprev = temp->ptlast = NULL; in cd9660_allocate_cd9660node()
175 temp->node = NULL; in cd9660_allocate_cd9660node()
176 temp->isoDirRecord = NULL; in cd9660_allocate_cd9660node()
177 temp->isoExtAttributes = NULL; in cd9660_allocate_cd9660node()
178 temp->rr_real_parent = temp->rr_relocated = NULL; in cd9660_allocate_cd9660node()
179 temp->su_tail_data = NULL; in cd9660_allocate_cd9660node()
180 return temp; in cd9660_allocate_cd9660node()
[all …]
/freebsd/crypto/openssl/crypto/bn/
H A Drsaz_exp.c269 BN_ULONG *temp = (BN_ULONG *)(table + 16 * 8 * 8 + 8 * 8);
276 temp[0] = 0 - m[0];
277 temp[1] = ~m[1];
278 temp[2] = ~m[2];
279 temp[3] = ~m[3];
280 temp[4] = ~m[4];
281 temp[5] = ~m[5];
282 temp[6] = ~m[6];
283 temp[7] = ~m[7];
284 rsaz_512_scatter4(table, temp, 0);
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dkstrtox.h107 long temp; in kstrtoint() local
109 *res = temp = strtol(cp, &end, base); in kstrtoint()
116 if (temp != (int)temp) in kstrtoint()
125 unsigned long temp; in kstrtouint() local
127 *res = temp = strtoul(cp, &end, base); in kstrtouint()
134 if (temp != (unsigned int)temp) in kstrtouint()
143 unsigned long temp; in kstrtou8() local
145 *res = temp = strtoul(cp, &end, base); in kstrtou8()
152 if (temp != (uint8_t)temp) in kstrtou8()
161 unsigned long temp; in kstrtou16() local
[all …]
/freebsd/crypto/openssl/crypto/ec/
H A Decp_nistz256.c629 P256_POINT *temp; /* place for 5 temporary points */ in ecp_nistz256_windowed_mul() local
645 temp = (P256_POINT *)(table + num); in ecp_nistz256_windowed_mul()
682 if (!ecp_nistz256_bignum_to_field_elem(temp[0].X, point[i]->X) in ecp_nistz256_windowed_mul()
683 || !ecp_nistz256_bignum_to_field_elem(temp[0].Y, point[i]->Y) in ecp_nistz256_windowed_mul()
684 || !ecp_nistz256_bignum_to_field_elem(temp[0].Z, point[i]->Z)) { in ecp_nistz256_windowed_mul()
695 ecp_nistz256_scatter_w5 (row, &temp[0], 1); in ecp_nistz256_windowed_mul()
696 ecp_nistz256_point_double(&temp[1], &temp[0]); /*1+1=2 */ in ecp_nistz256_windowed_mul()
697 ecp_nistz256_scatter_w5 (row, &temp[1], 2); in ecp_nistz256_windowed_mul()
698 ecp_nistz256_point_add (&temp[2], &temp[1], &temp[0]); /*2+1=3 */ in ecp_nistz256_windowed_mul()
699 ecp_nistz256_scatter_w5 (row, &temp[2], 3); in ecp_nistz256_windowed_mul()
[all …]
/freebsd/crypto/openssl/crypto/
H A Dmem_sec.c376 SH_LIST *temp; in sh_add_to_list() local
381 temp = (SH_LIST *)ptr; in sh_add_to_list()
382 temp->next = *(SH_LIST **)list; in sh_add_to_list()
383 OPENSSL_assert(temp->next == NULL || WITHIN_ARENA(temp->next)); in sh_add_to_list()
384 temp->p_next = (SH_LIST **)list; in sh_add_to_list()
386 if (temp->next != NULL) { in sh_add_to_list()
387 OPENSSL_assert((char **)temp->next->p_next == list); in sh_add_to_list()
388 temp->next->p_next = &(temp->next); in sh_add_to_list()
396 SH_LIST *temp, *temp2; in sh_remove_from_list() local
398 temp = (SH_LIST *)ptr; in sh_remove_from_list()
[all …]
/freebsd/sys/dev/qat/qat_common/
H A Dadf_clock.c68 u64 temp = 0; in measure_clock() local
83 temp = delta.tv_nsec; in measure_clock()
84 do_div(temp, NSEC_PER_USEC); in measure_clock()
86 delta_us = delta.tv_sec * USEC_PER_SEC + temp; in measure_clock()
108 temp = delta.tv_nsec; in measure_clock()
109 do_div(temp, NSEC_PER_USEC); in measure_clock()
111 delta_us = delta.tv_sec * USEC_PER_SEC + temp; in measure_clock()
122 temp = in measure_clock()
124 do_div(temp, NSEC_PER_USEC); in measure_clock()
125 delta_us = temp; in measure_clock()
[all …]

12345678910>>...32