/freebsd-9.3-release/sys/mips/cavium/ |
H A D | octeon_ds1337.c | 73 static int validate_ct_struct(struct clocktime *ct) argument 77 if (!ct) 80 CT_CHECK(ct->sec < 0 || ct->sec > 60, "second"); /* + Leap sec */ 81 CT_CHECK(ct->min < 0 || ct->min > 59, "minute"); 82 CT_CHECK(ct->hour < 0 || ct->hour > 23, "hour"); 83 CT_CHECK(ct->day < 1 || ct 101 struct clocktime ct; local 150 struct clocktime ct; local [all...] |
/freebsd-9.3-release/contrib/ntp/sntp/libopts/ |
H A D | cook.c | 92 unsigned int ct = 0; local 95 z[ct] = pzIn[ct]; 96 if (++ct >= 2) 98 } while (IS_HEX_DIGIT_CHAR(pzIn[ct])); 99 z[ct] = NUL; 101 return ct + 1; 115 unsigned int ct = 0; local 117 z[ct++] = *--pzIn; 118 while (IS_OCT_DIGIT_CHAR(pzIn[ct])) { 296 unsigned int ct; local [all...] |
/freebsd-9.3-release/sys/kern/ |
H A D | subr_clock.c | 126 print_ct(struct clocktime *ct) argument 129 ct->year, ct->mon, ct->day, 130 ct->hour, ct->min, ct->sec); 134 clock_ct_to_ts(struct clocktime *ct, struct timespec *ts) argument 139 year = ct->year; 143 print_ct(ct); 181 clock_ts_to_ct(struct timespec *ts, struct clocktime *ct) argument [all...] |
/freebsd-9.3-release/sys/rpc/ |
H A D | clnt_vc.c | 132 struct ct_data *ct = NULL; /* client handle */ local 145 ct = (struct ct_data *)mem_alloc(sizeof (*ct)); 147 mtx_init(&ct->ct_lock, "ct->ct_lock", NULL, MTX_DEF); 148 ct->ct_threads = 0; 149 ct->ct_closing = FALSE; 150 ct->ct_closed = FALSE; 151 ct->ct_upcallrefs = 0; 208 ct 291 struct ct_data *ct = (struct ct_data *) cl->cl_private; local 571 struct ct_data *ct = (struct ct_data *) cl->cl_private; local 597 struct ct_data *ct = (struct ct_data *)cl->cl_private; local 731 struct ct_data *ct = (struct ct_data *) cl->cl_private; local 782 struct ct_data *ct = (struct ct_data *) cl->cl_private; local 838 struct ct_data *ct = (struct ct_data *) arg; local 1060 clnt_vc_upcallsdone(struct ct_data *ct) argument [all...] |
/freebsd-9.3-release/crypto/openssl/crypto/aes/ |
H A D | aes_locl.h | 68 # define PUTU32(ct, st) { *((u32 *)(ct)) = SWAP((st)); } 71 # define PUTU32(ct, st) { (ct)[0] = (u8)((st) >> 24); (ct)[1] = (u8)((st) >> 16); (ct)[2] = (u8)((st) >> 8); (ct)[3] = (u8)(st); }
|
/freebsd-9.3-release/sys/dev/ct/ |
H A D | ct.c | 1 /* $NecBSD: ct.c,v 1.13.12.5 2001/06/26 07:31:53 honda Exp $ */ 70 #include <i386/Cbus/dev/ct/ctvar.h> 71 #include <i386/Cbus/dev/ct/ct_machdep.h> 83 #include <dev/ct/ctvar.h> 84 #include <dev/ct/ct_machdep.h> 195 cthw_phase_bypass(struct ct_softc *ct, u_int8_t ph) argument 197 struct ct_bus_access_handle *chp = &ct->sc_ch; 204 cthw_bus_reset(struct ct_softc *ct) argument 210 if (ct->ct_bus_reset != NULL) 211 ((*ct 311 ct_make_synch_table(struct ct_softc *ct) argument 379 ctattachsubr(struct ct_softc *ct) argument 394 cthw_attention(struct ct_softc *ct) argument 411 ct_attention(struct ct_softc *ct) argument 428 ct_targ_init(struct ct_softc *ct, struct targ_info *ti, int action) argument 465 ct_world_start(struct ct_softc *ct, int fdone) argument 496 ct_start_selection(struct ct_softc *ct, struct slccb *cb) argument 568 ct_msg(struct ct_softc *ct, struct targ_info *ti, u_int msg) argument 620 ct_xfer(struct ct_softc *ct, u_int8_t *data, int len, int direction, u_int *statp) argument 681 ct_io_xfer(struct ct_softc *ct) argument 733 ct_phase_error(struct ct_softc *ct, u_int8_t scsi_status) argument 779 ct_reselected(struct ct_softc *ct, u_int8_t scsi_status) argument 822 ct_target_nexus_establish(struct ct_softc *ct, int lun, int dir) argument 842 ct_lun_nexus_establish(struct ct_softc *ct) argument 853 ct_ccb_nexus_establish(struct ct_softc *ct) argument 879 ct_unbusy(struct ct_softc *ct) argument 902 ct_catch_intr(struct ct_softc *ct) argument 922 struct ct_softc *ct = arg; local [all...] |
H A D | ct_isa.c | 70 #include <i386/Cbus/dev/ct/ctvar.h> 71 #include <i386/Cbus/dev/ct/bshwvar.h> 90 #include <dev/ct/ctvar.h> 91 #include <dev/ct/bshwvar.h> 129 "ct", ct_isa_methods, sizeof(struct ct_isa_softc), 134 DRIVER_MODULE(ct, isa, ct_isa_driver, ct_devclass, 0, 0); 196 struct ct_softc *ct = &pct->sc_ct; local 197 struct ct_bus_access_handle *chp = &ct->sc_ch; 198 struct scsi_low_softc *slp = &ct->sc_sclow; 207 if (ct_space_map(dev, hw, &ct 376 ct_space_unmap(device_t dev, struct ct_softc *ct) argument 404 ct_isa_dmasync_before(struct ct_softc *ct) argument 412 ct_isa_dmasync_after(struct ct_softc *ct) argument [all...] |
H A D | bshw_machdep.c | 71 #include <i386/Cbus/dev/ct/ctvar.h> 72 #include <i386/Cbus/dev/ct/ct_machdep.h> 73 #include <i386/Cbus/dev/ct/bshwvar.h> 86 #include <dev/ct/ctvar.h> 87 #include <dev/ct/ct_machdep.h> 88 #include <dev/ct/bshwvar.h> 115 bshw_synch_setup(struct ct_softc *ct, struct targ_info *ti) argument 117 struct ct_bus_access_handle *chp = &ct->sc_ch; 119 struct bshw_softc *bs = ct->ct_hw; 134 bshw_bus_reset(struct ct_softc *ct) argument 214 bshw_lc_smit_stop(struct ct_softc *ct) argument 223 bshw_lc_smit_start(struct ct_softc *ct, int count, u_int direction) argument 239 bshw_lc_smit_fstat(struct ct_softc *ct, int wc, int read) argument 269 bshw_smit_xfer_stop(struct ct_softc *ct) argument 315 bshw_smit_xfer_start(struct ct_softc *ct) argument 418 bshw_dma_xfer_start(struct ct_softc *ct) argument 479 bshw_dma_xfer_stop(struct ct_softc *ct) argument 551 bshw_dmastart(struct ct_softc *ct) argument 597 bshw_dmadone(struct ct_softc *ct) argument 624 bshw_dma_init_texa(struct ct_softc *ct) argument 639 bshw_dma_init_sc98(struct ct_softc *ct) argument 665 bshw_dma_start_sc98(struct ct_softc *ct) argument 674 bshw_dma_stop_sc98(struct ct_softc *ct) argument 683 bshw_dma_start_elecom(struct ct_softc *ct) argument 692 bshw_dma_stop_elecom(struct ct_softc *ct) argument [all...] |
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/common/os/ |
H A D | callb.c | 89 static callb_table_t *ct = &callb_table; variable 111 mutex_enter(&ct->ct_lock); 113 while ((cp = ct->ct_freelist) != NULL) { 114 ct->ct_freelist = cp->c_next; 115 ct->ct_ncallb--; 118 if (ct->ct_ncallb == 0) 121 mutex_exit(&ct->ct_lock); 122 tsleep(ct, 0, "callb", hz / 4); 123 mutex_enter(&ct->ct_lock); 125 if (ct [all...] |
/freebsd-9.3-release/lib/libc/rpc/ |
H A D | clnt_vc.c | 168 struct ct_data *ct = NULL; /* client handle */ local 182 ct = (struct ct_data *)mem_alloc(sizeof (*ct)); 183 if ((cl == (CLIENT *)NULL) || (ct == (struct ct_data *)NULL)) { 190 ct->ct_addr.buf = NULL; 250 ct->ct_closeit = FALSE; 255 ct->ct_fd = fd; 256 ct->ct_wait.tv_usec = 0; 257 ct->ct_waitset = FALSE; 258 ct 324 struct ct_data *ct = (struct ct_data *) cl->cl_private; local 469 struct ct_data *ct; local 484 struct ct_data *ct; local 522 struct ct_data *ct; local 651 struct ct_data *ct = (struct ct_data *) cl->cl_private; local 695 struct ct_data *ct = (struct ct_data *)ctp; local 752 struct ct_data *ct = (struct ct_data *)ctp; local [all...] |
/freebsd-9.3-release/usr.sbin/pmcstat/ |
H A D | pmcpl_calltree.c | 269 pmcpl_ct_instr_add(struct pmcpl_ct_node *ct, int pmcin, argument 275 for (i = 0; i<ct->pct_ninstr; i++) { 276 if (ct->pct_instr[i].pctf_func == pc) { 277 in = &ct->pct_instr[i]; 284 pmcpl_ct_instr_grow(ct->pct_ninstr, &ct->pct_instr_c, &ct->pct_instr); 285 in = &ct->pct_instr[ct->pct_ninstr]; 290 ct 300 struct pmcpl_ct_node *ct; local 329 pmcpl_ct_node_free(struct pmcpl_ct_node *ct) argument 365 pmcpl_ct_node_dumptop(int pmcin, struct pmcpl_ct_node *ct, struct pmcpl_ct_sample *rsamples, int x, int *y) argument 463 struct pmcpl_ct_node *ct; local 662 struct pmcpl_ct_node *ct; local 730 struct pmcpl_ct_node *ct; local 822 pmcpl_ct_node_printchild(struct pmcpl_ct_node *ct, uintfptr_t paddr, int pline) argument 886 pmcpl_ct_node_printself(struct pmcpl_ct_node *ct) argument 957 pmcpl_ct_printnode(struct pmcpl_ct_node *ct) argument 977 pmcpl_ct_bfs(struct pmcpl_ct_node *ct) argument 1015 _pmcpl_ct_expand_inline(struct pmcpl_ct_node *ct) argument [all...] |
/freebsd-9.3-release/sys/arm/s3c2xx0/ |
H A D | s3c24x0_rtc.c | 88 struct clocktime ct; local 91 ct.year = YEAR_BASE + FROMBCD(bus_read_1(sc->mem_res, RTC_BCDYEAR)); \ 92 ct.mon = FROMBCD(bus_read_1(sc->mem_res, RTC_BCDMON)); \ 93 ct.dow = FROMBCD(bus_read_1(sc->mem_res, RTC_BCDDAY)); \ 94 ct.day = FROMBCD(bus_read_1(sc->mem_res, RTC_BCDDATE)); \ 95 ct.hour = FROMBCD(bus_read_1(sc->mem_res, RTC_BCDHOUR)); \ 96 ct.min = FROMBCD(bus_read_1(sc->mem_res, RTC_BCDMIN)); \ 97 ct.sec = FROMBCD(bus_read_1(sc->mem_res, RTC_BCDSEC)); \ 102 ct.nsec = 0; 108 if (ct 122 struct clocktime ct; local [all...] |
/freebsd-9.3-release/sys/arm/mv/ |
H A D | rtc.c | 128 struct clocktime ct; local 136 ct.nsec = 0; 137 ct.sec = FROMBCD(val & 0x7f); 138 ct.min = FROMBCD((val & 0x7f00) >> 8); 139 ct.hour = FROMBCD((val & 0x3f0000) >> 16); 140 ct.dow = FROMBCD((val & 0x7000000) >> 24) - 1; 144 ct.day = FROMBCD(val & 0x7f); 145 ct.mon = FROMBCD((val & 0x1f00) >> 8); 146 ct.year = YEAR_BASE + FROMBCD((val & 0xff0000) >> 16); 148 return (clock_ct_to_ts(&ct, t 154 struct clocktime ct; local [all...] |
/freebsd-9.3-release/sys/mips/atheros/ |
H A D | pcf2123_rtc.c | 103 struct clocktime ct; local 126 ct.nsec = 0; 127 ct.sec = FROMBCD(rxTimedate[1] & 0x7f); 128 ct.min = FROMBCD(rxTimedate[2] & 0x7f); 129 ct.hour = FROMBCD(rxTimedate[3] & 0x3f); 131 ct.dow = FROMBCD(rxTimedate[5] & 0x3f); 133 ct.day = FROMBCD(rxTimedate[4] & 0x3f); 134 ct.mon = FROMBCD(rxTimedate[6] & 0x1f); 135 ct.year = YEAR_BASE + FROMBCD(rxTimedate[7]); 137 return (clock_ct_to_ts(&ct, t 143 struct clocktime ct; local [all...] |
/freebsd-9.3-release/crypto/heimdal/lib/gssapi/ |
H A D | gss.c | 73 rtbl_t ct; local 82 ct = rtbl_create(); 83 if (ct == NULL) 86 rtbl_set_separator(ct, " "); 87 rtbl_add_column(ct, COL_OID, 0); 88 rtbl_add_column(ct, COL_NAME, 0); 97 rtbl_add_column_entryv(ct, COL_OID, "%.*s", 102 rtbl_add_column_entry(ct, COL_NAME, "Kerberos 5"); 104 rtbl_add_column_entry(ct, COL_NAME, "SPNEGO"); 106 rtbl_add_column_entry(ct, COL_NAM [all...] |
/freebsd-9.3-release/sys/dev/iicbus/ |
H A D | pcf8563.c | 114 struct clocktime ct; local 132 ct.nsec = 0; 133 ct.sec = FROMBCD(val[PCF8563_R_SECOND] & PCF8563_M_SECOND); 134 ct.min = FROMBCD(val[PCF8563_R_MINUTE] & PCF8563_M_MINUTE); 135 ct.hour = FROMBCD(val[PCF8563_R_HOUR] & PCF8563_M_HOUR); 136 ct.day = FROMBCD(val[PCF8563_R_DAY] & PCF8563_M_DAY); 137 ct.dow = val[PCF8563_R_WEEKDAY] & PCF8563_M_WEEKDAY; 138 ct.mon = FROMBCD(val[PCF8563_R_MONTH] & PCF8563_M_MONTH); 139 ct.year = FROMBCD(val[PCF8563_R_YEAR] & PCF8563_M_YEAR); 140 ct 154 struct clocktime ct; local [all...] |
H A D | ds133x.c | 290 struct clocktime ct; local 296 ct.nsec = 0; 297 ct.sec = FROMBCD(date[0] & 0x7f); 298 ct.min = FROMBCD(date[1] & 0x7f); 299 ct.hour = ds133x_get_hours(date[2]); 300 ct.dow = FROMBCD(date[3] & 0x07) - 1; 301 ct.day = FROMBCD(date[4] & 0x3f); 302 ct.mon = FROMBCD(date[5] & 0x1f); 305 ct.year = 2000 + FROMBCD(date[6]); 307 ct 320 struct clocktime ct; local [all...] |
/freebsd-9.3-release/sys/pc98/cbus/ |
H A D | pcrtc.c | 175 struct clocktime ct; local 177 clock_ts_to_ct(ts, &ct); 181 rtc_outb(bin2bcd(ct.sec)); /* Write back Seconds */ 182 rtc_outb(bin2bcd(ct.min)); /* Write back Minutes */ 183 rtc_outb(bin2bcd(ct.hour)); /* Write back Hours */ 185 rtc_outb(bin2bcd(ct.day)); /* Write back Day */ 186 rtc_outb((ct.mon << 4) | ct.dow); /* Write back Month and DOW */ 187 rtc_outb(bin2bcd(ct.year % 100)); /* Write back Year */ 198 struct clocktime ct; local [all...] |
/freebsd-9.3-release/sys/powerpc/mpc85xx/ |
H A D | ds1553_core.c | 91 struct clocktime ct; local 102 ct.nsec = 0; 103 ct.sec = FROMBCD((*sc->sc_read)(dev, DS1553_OFF_SECONDS) & 105 ct.min = FROMBCD((*sc->sc_read)(dev, DS1553_OFF_MINUTES) & 107 ct.hour = FROMBCD((*sc->sc_read)(dev, DS1553_OFF_HOURS) & 109 ct.dow = FROMBCD((*sc->sc_read)(dev, DS1553_OFF_DAYOFWEEK) & 111 ct.day = FROMBCD((*sc->sc_read)(dev, DS1553_OFF_DATE) & 113 ct.mon = FROMBCD((*sc->sc_read)(dev, DS1553_OFF_MONTH) & 115 ct.year = FROMBCD((*sc->sc_read)(dev, DS1553_OFF_YEAR)); 120 ct 134 struct clocktime ct; local [all...] |
/freebsd-9.3-release/contrib/sendmail/src/ |
H A D | ratectrl.c | 392 CTime_T *ct = &chBest->ch_Times[ticks % CHTSIZE]; local 394 if (ct->ct_Ticks != ticks) 396 ct->ct_Ticks = ticks; 397 ct->ct_Count = 0; 399 ++ct->ct_Count; 406 CTime_T *ct = &chBest->ch_Times[i]; local 408 if (ct->ct_Ticks <= ticks && ct->ct_Ticks >= ticks - CHTSIZE) 409 cnt += ct->ct_Count; 441 CTime_T *ct; local [all...] |
/freebsd-9.3-release/sys/arm/at91/ |
H A D | at91_rtc.c | 202 struct clocktime ct; local 209 ct.nsec = 0; 210 ct.sec = RTC_TIMR_SEC(timr); 211 ct.min = RTC_TIMR_MIN(timr); 212 ct.hour = RTC_TIMR_HR(timr); 213 ct.year = RTC_CALR_CEN(calr) * 100 + RTC_CALR_YEAR(calr); 214 ct.mon = RTC_CALR_MON(calr); 215 ct.day = RTC_CALR_DAY(calr); 216 ct.dow = -1; 217 return clock_ct_to_ts(&ct, t 228 struct clocktime ct; local [all...] |
/freebsd-9.3-release/sys/dev/mc146818/ |
H A D | mc146818.c | 108 struct clocktime ct; local 132 ct.nsec = 0; 133 ct.sec = FROMREG((*sc->sc_mcread)(dev, MC_SEC)); 134 ct.min = FROMREG((*sc->sc_mcread)(dev, MC_MIN)); 135 ct.hour = FROMREG((*sc->sc_mcread)(dev, MC_HOUR)); 137 ct.dow = FROMREG((*sc->sc_mcread)(dev, MC_DOW)) - 1; 138 ct.day = FROMREG((*sc->sc_mcread)(dev, MC_DOM)); 139 ct.mon = FROMREG((*sc->sc_mcread)(dev, MC_MONTH)); 149 ct.year = year; 151 return (clock_ct_to_ts(&ct, t 194 struct clocktime ct; local [all...] |
/freebsd-9.3-release/lib/libdisk/ |
H A D | chunk.c | 51 struct chunk *c1, *c2, ct; local 53 ct.offset = offset; 54 ct.end = end; 57 if (Chunk_Inside(chunks, &ct)) 63 if (Chunk_Inside(c1, &ct)) 70 if (Chunk_Inside(c1, &ct)) 75 if (c2->type == type && Chunk_Inside(c2, &ct)) 83 if (Chunk_Inside(c1, &ct)) 137 struct chunk *ct,*cs; local 143 ct 220 struct chunk *c1, *c2, ct; local [all...] |
/freebsd-9.3-release/sys/x86/isa/ |
H A D | atrtc.c | 302 struct clocktime ct; local 304 clock_ts_to_ct(ts, &ct); 309 writertc(RTC_SEC, bin2bcd(ct.sec)); /* Write back Seconds */ 310 writertc(RTC_MIN, bin2bcd(ct.min)); /* Write back Minutes */ 311 writertc(RTC_HRS, bin2bcd(ct.hour)); /* Write back Hours */ 313 writertc(RTC_WDAY, ct.dow + 1); /* Write back Weekday */ 314 writertc(RTC_DAY, bin2bcd(ct.day)); /* Write back Day */ 315 writertc(RTC_MONTH, bin2bcd(ct.mon)); /* Write back Month */ 316 writertc(RTC_YEAR, bin2bcd(ct.year % 100)); /* Write back Year */ 318 writertc(RTC_CENTURY, bin2bcd(ct 330 struct clocktime ct; local [all...] |
/freebsd-9.3-release/crypto/openssl/crypto/camellia/ |
H A D | cmll_locl.h | 86 # define PUTU32(ct, st) { *((u32 *)(ct)) = SWAP((st)); } 95 # define PUTU32(ct, st) { (ct)[0] = (u8)((st) >> 24); \ 96 (ct)[1] = (u8)((st) >> 16); \ 97 (ct)[2] = (u8)((st) >> 8); \ 98 (ct)[3] = (u8)(st); }
|