Home
last modified time | relevance | path

Searched refs:pt (Results 1 – 25 of 300) sorted by relevance

12345678910>>...12

/freebsd/bin/pax/
H A Dtables.c125 HRDLNK *pt; in chk_lnk() local
141 if ((pt = ltab[indx]) != NULL) { in chk_lnk()
146 while (pt != NULL) { in chk_lnk()
147 if ((pt->ino == arcn->sb.st_ino) && in chk_lnk()
148 (pt->dev == arcn->sb.st_dev)) in chk_lnk()
150 ppt = &(pt->fow); in chk_lnk()
151 pt = pt->fow; in chk_lnk()
154 if (pt != NULL) { in chk_lnk()
161 arcn->ln_nlen = l_strncpy(arcn->ln_name, pt->name, in chk_lnk()
173 if (--pt->nlink <= 1) { in chk_lnk()
[all …]
H A Dsel_subs.c102 USRT *pt; in usr_add() local
139 if ((pt = usrtb[indx]) != NULL) { in usr_add()
140 while (pt != NULL) { in usr_add()
141 if (pt->uid == uid) in usr_add()
143 pt = pt->fow; in usr_add()
150 if ((pt = (USRT *)malloc(sizeof(USRT))) != NULL) { in usr_add()
151 pt->uid = uid; in usr_add()
152 pt->fow = usrtb[indx]; in usr_add()
153 usrtb[indx] = pt; in usr_add()
170 USRT *pt; in usr_match() local
[all …]
H A Dpat_rep.c193 PATTERN *pt; in pat_add() local
208 if ((pt = (PATTERN *)malloc(sizeof(PATTERN))) == NULL) { in pat_add()
213 pt->pstr = str; in pat_add()
214 pt->pend = NULL; in pat_add()
215 pt->plen = strlen(str); in pat_add()
216 pt->fow = NULL; in pat_add()
217 pt->flgs = 0; in pat_add()
218 pt->chdname = chdnam; in pat_add()
221 pattail = pathead = pt; in pat_add()
224 pattail->fow = pt; in pat_add()
[all …]
H A Dgen_subs.c246 char *pt; in ul_asc() local
252 pt = str + len - 1; in ul_asc()
260 while (pt >= str) { in ul_asc()
262 *pt-- = '0' + (char)digit; in ul_asc()
264 *pt-- = 'a' + (char)(digit - 10); in ul_asc()
269 while (pt >= str) { in ul_asc()
270 *pt-- = '0' + (char)(val & 0x7); in ul_asc()
279 while (pt >= str) in ul_asc()
280 *pt-- = '0'; in ul_asc()
342 char *pt; in uqd_asc() local
[all …]
/freebsd/contrib/tzcode/
H A Dstrftime.c164 _fmt(const char *format, const struct tm *t, char *pt, in _fmt() argument
177 pt = _add((t->tm_wday < 0 || in _fmt()
180 pt, ptlim); in _fmt()
183 pt = _add((t->tm_wday < 0 || in _fmt()
186 pt, ptlim); in _fmt()
189 pt = _add((t->tm_mon < 0 || in _fmt()
192 pt, ptlim); in _fmt()
196 pt = _add((t->tm_mon < 0 || in _fmt()
199 pt, ptlim); in _fmt()
209 pt = _yconv(t->tm_year, TM_YEAR_BASE, in _fmt()
[all …]
/freebsd/contrib/ntp/ntpd/
H A Dntp_leapsec.c114 leap_table_t * pt) in leapsec_get_table()
116 if (pt == &_ltab[0] || pt == &_ltab[1]) in leapsec_get_table()
117 _lptr = pt; in leapsec_get_table()
118 return _lptr == pt; in leapsec_get_table()
149 leap_table_t * pt) in leapsec_electric()
151 memset(&pt->lsig, 0, sizeof(pt->lsig)); in leapsec_electric()
152 memset(&pt->head, 0, sizeof(pt in leapsec_electric()
134 leapsec_set_table(leap_table_t * pt) leapsec_set_table() argument
169 leapsec_clear(leap_table_t * pt) leapsec_clear() argument
181 leapsec_load(leap_table_t * pt,leapsec_reader func,void * farg,int use_build_limit) leapsec_load() argument
254 leapsec_dump(const leap_table_t * pt,leapsec_dumper func,void * farg) leapsec_dump() argument
291 leap_table_t * pt; leapsec_query() local
381 const leap_table_t * pt; leapsec_query_era() local
395 const leap_table_t * pt; leapsec_frame() local
429 leap_table_t *pt; leapsec_load_stream() local
568 const leap_table_t * pt; leapsec_getsig() local
580 const leap_table_t * pt; leapsec_expired() local
594 const leap_table_t * pt; leapsec_daystolive() local
646 leap_table_t * pt; leapsec_add_dyn() local
662 leap_table_t * pt; leapsec_autokey_tai() local
733 reset_times(leap_table_t * pt) reset_times() argument
746 add_range(leap_table_t * pt,const leap_info_t * pi) add_range() argument
858 reload_limits(leap_table_t * pt,const vint64 * ts) reload_limits() argument
915 fetch_leap_era(leap_era_t * into,const leap_table_t * pt,const vint64 * ts) fetch_leap_era() argument
950 leapsec_add(leap_table_t * pt,const vint64 * now64,int insert) leapsec_add() argument
1001 leapsec_raw(leap_table_t * pt,const vint64 * ttime,int taiof,int dynls) leapsec_raw() argument
[all...]
/freebsd/lib/libc/stdtime/
H A Dstrftime.c115 _fmt(const char *format, const struct tm * const t, char *pt, in _fmt() argument
132 pt = _add((t->tm_wday < 0 || in _fmt()
135 pt, ptlim); in _fmt()
138 pt = _add((t->tm_wday < 0 || in _fmt()
141 pt, ptlim); in _fmt()
144 pt = _add((t->tm_mon < 0 || in _fmt()
148 pt, ptlim); in _fmt()
152 pt = _add((t->tm_mon < 0 || in _fmt()
155 pt, ptlim); in _fmt()
165 pt = _yconv(t->tm_year, TM_YEAR_BASE, 1, 0, in _fmt()
[all …]
/freebsd/crypto/openssh/regress/unittests/misc/
H A Dtest_ptimeout.c32 struct timespec pt, *ts; in test_ptimeout() local
35 ptimeout_init(&pt); in test_ptimeout()
36 ASSERT_PTR_EQ(ptimeout_get_tsp(&pt), NULL); in test_ptimeout()
37 ASSERT_INT_EQ(ptimeout_get_ms(&pt), -1); in test_ptimeout()
41 ptimeout_deadline_sec(&pt, 100); in test_ptimeout()
42 ptimeout_deadline_sec(&pt, 200); in test_ptimeout()
43 ASSERT_INT_EQ(ptimeout_get_ms(&pt), 100 * 1000); in test_ptimeout()
44 ts = ptimeout_get_tsp(&pt); in test_ptimeout()
51 ptimeout_deadline_ms(&pt, 50123); in test_ptimeout()
52 ptimeout_deadline_ms(&pt, 50500); in test_ptimeout()
[all …]
/freebsd/sbin/nvmecontrol/
H A Dns.c399 struct nvme_pt_command pt; in nsactive() local
422 memset(&pt, 0, sizeof(pt)); in nsactive()
423 pt.cmd.opc = NVME_OPC_IDENTIFY; in nsactive()
424 pt.cmd.nsid = htole32(0); in nsactive()
425 pt.cmd.cdw10 = htole32(0x02); in nsactive()
426 pt.buf = list; in nsactive()
427 pt.len = sizeof(list); in nsactive()
428 pt.is_read = 1; in nsactive()
429 if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < in nsactive()
444 struct nvme_pt_command pt; nsallocated() local
489 struct nvme_pt_command pt; nscontrollers() local
541 struct nvme_pt_command pt; nscreate() local
632 struct nvme_pt_command pt; nsdelete() local
699 struct nvme_pt_command pt; nsattach() local
769 struct nvme_pt_command pt; nsdetach() local
846 struct nvme_pt_command pt; nsattached() local
897 struct nvme_pt_command pt; nsidentify() local
[all...]
H A Dnvmecontrol.c101 struct nvme_pt_command pt; in read_controller_data() local
103 memset(&pt, 0, sizeof(pt)); in read_controller_data()
104 pt.cmd.opc = NVME_OPC_IDENTIFY; in read_controller_data()
105 pt.cmd.cdw10 = htole32(1); in read_controller_data()
106 pt.buf = cdata; in read_controller_data()
107 pt.len = sizeof(*cdata); in read_controller_data()
108 pt.is_read = 1; in read_controller_data()
110 if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0) in read_controller_data()
116 if (nvme_completion_is_error(&pt.cpl)) in read_controller_data()
124 struct nvme_pt_command pt; in read_namespace_data() local
[all …]
H A Dresv.c236 struct nvme_pt_command pt; in resvacquire() local
253 memset(&pt, 0, sizeof(pt)); in resvacquire()
254 pt.cmd.opc = NVME_OPC_RESERVATION_ACQUIRE; in resvacquire()
255 pt.cmd.nsid = htole32(nsid); in resvacquire()
256 pt.cmd.cdw10 = htole32((acquire_opt.racqa & 7) | in resvacquire()
258 pt.buf = &data; in resvacquire()
259 pt.len = sizeof(data); in resvacquire()
260 pt.is_read = 0; in resvacquire()
262 if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0) in resvacquire()
265 if (nvme_completion_is_error(&pt.cpl)) in resvacquire()
[all …]
H A Dpower.c102 struct nvme_pt_command pt; in power_set() local
106 memset(&pt, 0, sizeof(pt)); in power_set()
107 pt.cmd.opc = NVME_OPC_SET_FEATURES; in power_set()
108 pt.cmd.cdw10 = htole32(NVME_FEAT_POWER_MANAGEMENT | p); in power_set()
109 pt.cmd.cdw11 = htole32(power_val | (workload << 5)); in power_set()
111 if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0) in power_set()
114 if (nvme_completion_is_error(&pt.cpl)) in power_set()
121 struct nvme_pt_command pt; in power_show() local
123 memset(&pt, in power_show()
[all...]
H A Dfirmware.c159 struct nvme_pt_command pt; in update_firmware()
180 memset(&pt, 0, sizeof(pt)); in update_firmware()
181 pt.cmd.opc = NVME_OPC_FIRMWARE_IMAGE_DOWNLOAD; in update_firmware()
182 pt.cmd.cdw10 = htole32((size / sizeof(uint32_t)) - 1); in update_firmware()
183 pt.cmd.cdw11 = htole32(off / sizeof(uint32_t)); in update_firmware()
184 pt.buf = chunk; in update_firmware()
185 pt.len = size; in update_firmware()
186 pt.is_read = 0; in update_firmware()
188 if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < in update_firmware()
158 struct nvme_pt_command pt; update_firmware() local
202 struct nvme_pt_command pt; activate_firmware() local
[all...]
H A Dpassthru.c160 struct nvme_pt_command pt; in passthru() local
225 memset(&pt, 0, sizeof(pt)); in passthru()
226 pt.cmd.opc = opt.opcode; in passthru()
227 pt.cmd.fuse = opt.flags; in passthru()
228 pt.cmd.cid = htole16(opt.rsvd); in passthru()
229 pt.cmd.nsid = opt.nsid; /* XXX note: kernel overrides this */ in passthru()
230 pt.cmd.rsvd2 = htole32(opt.cdw2); in passthru()
231 pt.cmd.rsvd3 = htole32(opt.cdw3); in passthru()
232 pt.cmd.cdw10 = htole32(opt.cdw10); in passthru()
233 pt.cmd.cdw11 = htole32(opt.cdw11); in passthru()
[all …]
H A Dselftest.c58 struct nvme_pt_command pt; in selftest_op() local
60 memset(&pt, 0, sizeof(pt)); in selftest_op()
61 pt.cmd.opc = NVME_OPC_DEVICE_SELF_TEST; in selftest_op()
62 pt.cmd.nsid = htole32(nsid); in selftest_op()
63 pt.cmd.cdw10 = htole32(stc); in selftest_op()
65 if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0) in selftest_op()
68 if (NVME_STATUS_GET_SCT(pt.cpl.status) == NVME_SCT_COMMAND_SPECIFIC && in selftest_op()
69 NVME_STATUS_GET_SC(pt.cpl.status) == NVME_SC_SELF_TEST_IN_PROGRESS) in selftest_op()
71 else if (nvme_completion_is_error(&pt.cpl)) in selftest_op()
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/
H A DVEInstrIntrinsicVL.gen.td2 …t_ve_vl_vld_vssvl i64:$sy, i64:$sz, v256f64:$pt, i32:$vl), (VLDrrl_v i64:$sy, i64:$sz, i32:$vl, v2…
4 …_ve_vl_vld_vssvl simm7:$I, i64:$sz, v256f64:$pt, i32:$vl), (VLDirl_v (LO7 $I), i64:$sz, i32:$vl, v…
6 …e_vl_vldnc_vssvl i64:$sy, i64:$sz, v256f64:$pt, i32:$vl), (VLDNCrrl_v i64:$sy, i64:$sz, i32:$vl, v…
8 …_vl_vldnc_vssvl simm7:$I, i64:$sz, v256f64:$pt, i32:$vl), (VLDNCirl_v (LO7 $I), i64:$sz, i32:$vl, …
10 …_ve_vl_vldu_vssvl i64:$sy, i64:$sz, v256f64:$pt, i32:$vl), (VLDUrrl_v i64:$sy, i64:$sz, i32:$vl, v…
12 …e_vl_vldu_vssvl simm7:$I, i64:$sz, v256f64:$pt, i32:$vl), (VLDUirl_v (LO7 $I), i64:$sz, i32:$vl, v…
14 …_vl_vldunc_vssvl i64:$sy, i64:$sz, v256f64:$pt, i32:$vl), (VLDUNCrrl_v i64:$sy, i64:$sz, i32:$vl, …
16 …l_vldunc_vssvl simm7:$I, i64:$sz, v256f64:$pt, i32:$vl), (VLDUNCirl_v (LO7 $I), i64:$sz, i32:$vl, …
18 …_vl_vldlsx_vssvl i64:$sy, i64:$sz, v256f64:$pt, i32:$vl), (VLDLSXrrl_v i64:$sy, i64:$sz, i32:$vl, …
20 …l_vldlsx_vssvl simm7:$I, i64:$sz, v256f64:$pt, i32:$vl), (VLDLSXirl_v (LO7 $I), i64:$sz, i32:$vl, …
[all …]
/freebsd/lib/libc/gen/
H A Dgetcwd.c55 __ssp_real(getcwd)(char *pt, size_t size) in __ssp_real()
76 if (pt) { in __ssp_real()
86 ept = pt + size; in __ssp_real()
88 if ((pt = malloc(ptsize = PATH_MAX)) == NULL) in __ssp_real()
90 ept = pt + ptsize; in __ssp_real()
92 if (__getcwd(pt, ept - pt) == 0) { in __ssp_real()
93 if (*pt != '/') { in __ssp_real()
94 bpt = pt; in __ssp_real()
95 ept = pt + strlen(pt) - 1; in __ssp_real()
102 return (pt); in __ssp_real()
[all …]
/freebsd/usr.sbin/ppp/
H A Dtimer.c80 struct pppTimer *t, *pt; in timer_Start() local
104 pt = NULL; in timer_Start()
109 pt = t; in timer_Start()
123 if (pt) { in timer_Start()
124 pt->next = tp; in timer_Start()
139 struct pppTimer *t, *pt; in StopTimerNoBlock() local
150 pt = NULL; in StopTimerNoBlock()
152 pt = t; in StopTimerNoBlock()
155 if (pt) in StopTimerNoBlock()
156 pt->next = t->next; in StopTimerNoBlock()
[all …]
/freebsd/crypto/openssh/openbsd-compat/
H A Dgetcwd.c51 getcwd(char *pt, size_t size) in getcwd() argument
71 if (pt) { in getcwd()
80 ept = pt + size; in getcwd()
82 if ((pt = malloc(ptsize = MAXPATHLEN)) == NULL) in getcwd()
84 ept = pt + ptsize; in getcwd()
126 memmove(pt, bpt, ept - bpt); in getcwd()
128 return (pt); in getcwd()
192 if (bpt - pt < dp->d_namlen + (first ? 1 : 2)) { in getcwd()
201 if ((npt = realloc(pt, ptsize *= 2)) == NULL) in getcwd()
203 bpt = npt + (bpt - pt); in getcwd()
[all …]
/freebsd/sys/dev/mfi/
H A Dmfi_cam.c346 struct mfi_pass_frame *pt; in mfip_start() local
360 pt = &cm->cm_frame->pass; in mfip_start()
361 pt->header.cmd = MFI_CMD_PD_SCSI_IO; in mfip_start()
362 pt->header.cmd_status = 0; in mfip_start()
363 pt->header.scsi_status = 0; in mfip_start()
364 pt->header.target_id = ccbh->target_id; in mfip_start()
365 pt->header.lun_id = ccbh->target_lun; in mfip_start()
366 pt->header.flags = 0; in mfip_start()
367 pt->header.timeout = 0; in mfip_start()
368 pt->header.data_len = csio->dxfer_len; in mfip_start()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_deadlock_detector2.cpp87 void DestroyPhysicalThread(DDPhysicalThread *pt);
101 void CycleCheck(DDPhysicalThread *pt, DDLogicalThread *lt, DDMutex *mtx);
102 void Report(DDPhysicalThread *pt, DDLogicalThread *lt, int npath);
125 DDPhysicalThread *pt = (DDPhysicalThread*)MmapOrDie(sizeof(DDPhysicalThread), in CreatePhysicalThread() local
127 return pt; in CreatePhysicalThread()
130 void DD::DestroyPhysicalThread(DDPhysicalThread *pt) { in DestroyPhysicalThread() argument
131 pt->~DDPhysicalThread(); in DestroyPhysicalThread()
132 UnmapOrDie(pt, sizeof(DDPhysicalThread)); in DestroyPhysicalThread()
190 DDPhysicalThread *pt = cb->pt; in MutexBeforeLock() local
263 CycleCheck(pt, lt, m); in MutexBeforeLock()
[all …]
/freebsd/sys/powerpc/aim/
H A Dmoea64_native.c316 volatile struct lpte *pt = moea64_pteg_table + pvo->pvo_pte.slot; in moea64_pte_synch_native() local
324 if ((be64toh(pt->pte_hi) & LPTE_AVPN_MASK) != pvo_ptevpn) { in moea64_pte_synch_native()
331 ptelo = be64toh(pt->pte_lo); in moea64_pte_synch_native()
341 volatile struct lpte *pt = moea64_pteg_table + pvo->pvo_pte.slot; in moea64_pte_clear_native() local
350 if ((be64toh(pt->pte_hi) & LPTE_AVPN_MASK) != in moea64_pte_clear_native()
361 ptelo = be64toh(pt->pte_lo); in moea64_pte_clear_native()
364 ((volatile uint8_t *)(&pt->pte_lo))[6] = in moea64_pte_clear_native()
385 moea64_pte_unset_locked(volatile struct lpte *pt, uint64_t vpn) in moea64_pte_unset_locked() argument
395 ptehi = (be64toh(pt->pte_hi) & ~LPTE_VALID) | LPTE_LOCKED; in moea64_pte_unset_locked()
396 pt->pte_hi = htobe64(ptehi); in moea64_pte_unset_locked()
[all …]
/freebsd/usr.bin/systat/
H A Dpigs.c57 } *pt = NULL; variable
88 qsort(pt, nproc, sizeof (struct p_times), compar); in showpigs()
93 for (k = 0; i > 0 && pt[k].pt_pctcpu > 0.01; i--, y++, k++) { in showpigs()
94 uname = user_from_uid(pt[k].pt_kp->ki_uid, 0); in showpigs()
95 pname = pt[k].pt_kp->ki_comm; in showpigs()
102 for (j = pt[k].pt_pctcpu * 50 + 0.5; j > 0; j--) in showpigs()
149 if ((pt = realloc(pt, nproc * sizeof(*pt))) == NULL) { in fetchpigs()
159 pt[i].pt_kp = &kpp[i]; in fetchpigs()
160 pctp = &pt[i].pt_pctcpu; in fetchpigs()
/freebsd/crypto/openssl/crypto/ec/
H A Dec_print.c55 EC_POINT *pt = NULL; in EC_POINT_hex2point() local
61 pt = EC_POINT_new(group); in EC_POINT_hex2point()
62 if (pt == NULL) in EC_POINT_hex2point()
65 pt = point; in EC_POINT_hex2point()
74 || !EC_POINT_oct2point(group, pt, oct_buf, oct_buf_len, ctx)) in EC_POINT_hex2point()
80 if (pt != point) in EC_POINT_hex2point()
81 EC_POINT_clear_free(pt); in EC_POINT_hex2point()
82 pt = NULL; in EC_POINT_hex2point()
84 return pt; in EC_POINT_hex2point()
/freebsd/contrib/libpcap/
H A Dpcap-tc.c482 struct pcap_tc *pt = p->priv; in TcActivate() local
496 pt->PpiPacket = malloc(sizeof(PPI_HEADER) + MAX_TC_PACKET_SIZE); in TcActivate()
498 if (pt->PpiPacket == NULL) in TcActivate()
518 pPpiHeader = (PPPI_HEADER)pt->PpiPacket; in TcActivate()
530 status = g_TcFunctions.InstanceOpenByName(p->opt.device, &pt->TcInstance); in TcActivate()
563 status = g_TcFunctions.InstanceSetFeature(pt->TcInstance, TC_INST_FT_RX_STATUS, 1); in TcActivate()
574 status = g_TcFunctions.InstanceSetFeature(pt->TcInstance, TC_INST_FT_TX_STATUS, 1); in TcActivate()
602 status = g_TcFunctions.InstanceSetFeature(pt->TcInstance, TC_INST_FT_READ_TIMEOUT, timeout); in TcActivate()
753 struct pcap_tc *pt = p->priv; in TcCleanup() local
755 if (pt->TcPacketsBuffer != NULL) in TcCleanup()
[all …]

12345678910>>...12