Home
last modified time | relevance | path

Searched refs:pn (Results 1 – 25 of 78) sorted by relevance

1234

/dragonfly/sys/libprop/
H A Dprop_number.c158 prop_number_t pn = *obj; in _PROP_MUTEX_DECL_STATIC() local
196 prop_number_t pn = v; in _prop_number_externalize() local
203 if (pn->pn_value.pnv_is_unsigned) in _prop_number_externalize()
275 prop_number_t opn, pn, rpn; in _prop_number_alloc() local
297 if (pn == NULL) in _prop_number_alloc()
302 pn->pn_value = *pnv; in _prop_number_alloc()
317 _PROP_ASSERT(rpn == pn); in _prop_number_alloc()
319 return (pn); in _prop_number_alloc()
396 if (! prop_object_is_number(pn)) in prop_number_size()
399 pnv = &pn->pn_value; in prop_number_size()
[all …]
/dragonfly/usr.bin/finger/
H A Dutil.c127 w = walloc(pn); in enter_lastlog()
141 w = walloc(pn); in enter_where()
153 PERSON *pn; in enter_person() local
164 memmove(&pn, data.data, sizeof pn); in enter_person()
165 return (pn); in enter_person()
172 pn = palloc(); in enter_person()
177 data.data = &pn; in enter_person()
180 return (pn); in enter_person()
226 pn->whead = pn->wtail = w; in walloc()
229 pn->wtail = w; in walloc()
[all …]
H A Dlprint.c64 PERSON *pn; in lflag_print() local
76 pn = tmp; in lflag_print()
79 lprint(pn); in lflag_print()
93 lprint(PERSON *pn) in lprint() argument
114 pn->name, pn->realname, pn->dir); in lprint()
115 printf("\tShell: %-s\n", *pn->shell ? pn->shell : _PATH_BSHELL); in lprint()
126 if (pn->office && pn->officephone && in lprint()
127 strlen(pn->office) + strlen(pn->officephone) + in lprint()
130 OFFICE_TAG, pn->office, prphone(pn->officephone)); in lprint()
133 if (pn->office) { in lprint()
[all …]
H A Dsprint.c52 PERSON *pn; in sflag_print() local
92 pn = tmp; in sflag_print()
94 for (w = pn->whead; w != NULL; w = w->next) { in sflag_print()
99 pn->name, MAXREALNAME, namelen, in sflag_print()
100 pn->realname ? pn->realname : ""); in sflag_print()
140 if (pn->office) in sflag_print()
141 (void)printf(" %-7.7s", pn->office); in sflag_print()
142 else if (pn->officephone) in sflag_print()
144 if (pn->officephone) in sflag_print()
146 prphone(pn->officephone)); in sflag_print()
H A Dfinger.c216 PERSON *pn; in loginlist() local
224 if ((pn = find_person(ep->name)) == NULL) { in loginlist()
229 pn = enter_person(pw); in loginlist()
231 enter_where(ep, pn); in loginlist()
250 PERSON *pn; in userlist() local
359 if ((pn = find_person(ep->name)) == NULL) in userlist()
361 enter_where(ep, pn); in userlist()
/dragonfly/sys/bus/u4b/serial/
H A Dumcs.c465 if (umcs7840_set_UART_reg_sync(sc, pn, MCS7840_UART_REG_LCR, sc->sc_ports[pn].sc_lcr)) in umcs7840_cfg_open()
473 if (umcs7840_set_UART_reg_sync(sc, pn, MCS7840_UART_REG_MCR, sc->sc_ports[pn].sc_mcr)) in umcs7840_cfg_open()
514 …RINTF("Port %d has been opened, LSR=%02x MSR=%02x\n", pn, sc->sc_ports[pn].sc_lsr, sc->sc_ports[pn in umcs7840_cfg_open()
550 umcs7840_set_UART_reg_sync(sc, pn, MCS7840_UART_REG_MCR, sc->sc_ports[pn].sc_mcr); in umcs7840_cfg_set_dtr()
565 umcs7840_set_UART_reg_sync(sc, pn, MCS7840_UART_REG_MCR, sc->sc_ports[pn].sc_mcr); in umcs7840_cfg_set_rts()
580 umcs7840_set_UART_reg_sync(sc, pn, MCS7840_UART_REG_LCR, sc->sc_ports[pn].sc_lcr); in umcs7840_cfg_set_break()
650 umcs7840_set_UART_reg_sync(sc, pn, MCS7840_UART_REG_LCR, sc->sc_ports[pn].sc_lcr); in umcs7840_cfg_param()
651 DPRINTF("Port %d LCR=%02x\n", pn, sc->sc_ports[pn].sc_lcr); in umcs7840_cfg_param()
654 umcs7840_set_UART_reg_sync(sc, pn, MCS7840_UART_REG_MCR, sc->sc_ports[pn].sc_mcr); in umcs7840_cfg_param()
655 DPRINTF("Port %d MCR=%02x\n", pn, sc->sc_ports[pn].sc_mcr); in umcs7840_cfg_param()
[all …]
/dragonfly/lib/libdevattr/
H A Ddevattr_device.c147 prop_number_t pn; in udev_device_get_devnum() local
154 if (pn == NULL) in udev_device_get_devnum()
165 prop_number_t pn; in udev_device_get_kptr() local
172 if (pn == NULL) in udev_device_get_kptr()
183 prop_number_t pn; in udev_device_get_major() local
190 if (pn == NULL) in udev_device_get_major()
201 prop_number_t pn; in udev_device_get_minor() local
208 if (pn == NULL) in udev_device_get_minor()
233 prop_number_t pn; in udev_device_get_property_value() local
248 pn = po; in udev_device_get_property_value()
[all …]
H A Ddevattr.c209 prop_number_t pn; in _udev_dict_set_int() local
211 pn = prop_number_create_integer(val); in _udev_dict_set_int()
212 if (pn == NULL) in _udev_dict_set_int()
215 if (prop_dictionary_set(dict, key, pn) == false) { in _udev_dict_set_int()
216 prop_object_release(pn); in _udev_dict_set_int()
220 prop_object_release(pn); in _udev_dict_set_int()
227 prop_number_t pn; in _udev_dict_set_uint() local
229 pn = prop_number_create_unsigned_integer(val); in _udev_dict_set_uint()
230 if (pn == NULL) in _udev_dict_set_uint()
234 prop_object_release(pn); in _udev_dict_set_uint()
[all …]
/dragonfly/contrib/gmp/mpn/generic/
H A Dremove.c59 mp_size_t pn, nn, qn, i; in mpn_remove() local
75 pn = vn; in mpn_remove()
86 while (qn >= pn) in mpn_remove()
89 if (!mpn_zero_p (tp, pn)) in mpn_remove()
93 qn = qn - pn; in mpn_remove()
97 pwpsn[npowers] = pn; in mpn_remove()
107 mpn_sqr (np, pp, pn); in mpn_remove()
110 pn = nn; in mpn_remove()
119 pn = pwpsn[i]; in mpn_remove()
120 if (qn < pn) in mpn_remove()
[all …]
H A Dperfpow.c325 mp_size_t ncn, s, pn, xn; in mpn_perfect_power_p() local
404 pn = 1; in mpn_perfect_power_p()
406 while (2 * pn - 1 <= ncn) in mpn_perfect_power_p()
409 xn = 2 * pn; in mpn_perfect_power_p()
416 pn = xn; in mpn_perfect_power_p()
429 if (pn + xn - 1 > ncn) in mpn_perfect_power_p()
435 xn += pn; in mpn_perfect_power_p()
441 next[pn] = cry; in mpn_perfect_power_p()
442 xn = pn + (cry != 0); in mpn_perfect_power_p()
454 pn = xn; in mpn_perfect_power_p()
[all …]
/dragonfly/lib/libc/stdlib/
H A Dqsort.c109 char *pa, *pb, *pc, *pd, *pl, *pm, *pn; in qsort_r() local
127 pn = (char *)a + (n - 1) * es; in qsort_r()
132 pn = med3(pn - 2 * d, pn - d, pn, cmp, thunk); in qsort_r()
134 pm = med3(pl, pm, pn, cmp, thunk); in qsort_r()
173 pn = (char *)a + n * es; in qsort_r()
176 r = min(pd - pc, pn - pd - es); in qsort_r()
177 vecswap(pb, pn - r, r); in qsort_r()
186 a = pn - r; in qsort_r()
/dragonfly/sys/libkern/
H A Dqsort.c108 char *pa, *pb, *pc, *pd, *pl, *pm, *pn; in kqsort_r() local
123 pn = (char *)a + (n - 1) * es; in kqsort_r()
128 pn = med3(pn - 2 * d, pn - d, pn, cmp, thunk); in kqsort_r()
130 pm = med3(pl, pm, pn, cmp, thunk); in kqsort_r()
168 pn = (char *)a + n * es; in kqsort_r()
171 r = min(pd - pc, pn - pd - es); in kqsort_r()
172 vecswap(pb, pn - r, r); in kqsort_r()
181 a = pn - r; in kqsort_r()
/dragonfly/sys/netbt/
H A Drfcomm_session.c1316 m_copydata(m, 0, sizeof(pn), &pn); in rfcomm_session_recv_mcc_pn()
1318 pn.dlci &= 0x3f; in rfcomm_session_recv_mcc_pn()
1319 pn.mtu = letoh16(pn.mtu); in rfcomm_session_recv_mcc_pn()
1334 pn.mtu = min(pn.mtu, RFCOMM_MTU_MAX); in rfcomm_session_recv_mcc_pn()
1335 pn.mtu = min(pn.mtu, rs->rs_mtu); in rfcomm_session_recv_mcc_pn()
1336 pn.mtu = max(pn.mtu, RFCOMM_MTU_MIN); in rfcomm_session_recv_mcc_pn()
1338 pn.mtu = htole16(pn.mtu); in rfcomm_session_recv_mcc_pn()
1358 pn.ack_timer = 0; in rfcomm_session_recv_mcc_pn()
1363 RFCOMM_MCC_PN, &pn, sizeof(pn)); in rfcomm_session_recv_mcc_pn()
1374 if (pn.mtu > RFCOMM_MTU_MAX || pn.mtu > dlc->rd_mtu) { in rfcomm_session_recv_mcc_pn()
[all …]
H A Drfcomm_dlc.c249 struct rfcomm_mcc_pn pn; in rfcomm_dlc_connect() local
262 memset(&pn, 0, sizeof(pn)); in rfcomm_dlc_connect()
263 pn.dlci = dlc->rd_dlci; in rfcomm_dlc_connect()
264 pn.priority = dlc->rd_dlci | 0x07; in rfcomm_dlc_connect()
265 pn.mtu = htole16(dlc->rd_mtu); in rfcomm_dlc_connect()
267 pn.flow_control = 0xf0; in rfcomm_dlc_connect()
270 pn.credits = dlc->rd_rxcred; in rfcomm_dlc_connect()
273 RFCOMM_MCC_PN, &pn, sizeof(pn)); in rfcomm_dlc_connect()
/dragonfly/contrib/cvs-1.12/lib/
H A Dxmalloc.c151 x2nrealloc_inline (void *p, size_t *pn, size_t s) in x2nrealloc_inline() argument
153 size_t n = *pn; in x2nrealloc_inline()
176 *pn = n; in x2nrealloc_inline()
181 x2nrealloc (void *p, size_t *pn, size_t s) in x2nrealloc() argument
183 return x2nrealloc_inline (p, pn, s); in x2nrealloc()
193 x2realloc (void *p, size_t *pn) in x2realloc() argument
195 return x2nrealloc_inline (p, pn, 1); in x2realloc()
/dragonfly/contrib/grep/lib/
H A Dxalloc.h61 void *x2realloc (void *p, size_t *pn);
174 x2nrealloc (void *p, size_t *pn, size_t s) in x2nrealloc() argument
176 size_t n = *pn; in x2nrealloc()
206 *pn = n; in x2nrealloc()
241 x2realloc (T *p, size_t *pn) in x2realloc() argument
243 return (T *) x2realloc ((void *) p, pn); in x2realloc()
247 x2nrealloc (T *p, size_t *pn, size_t s) in x2nrealloc() argument
249 return (T *) x2nrealloc ((void *) p, pn, s); in x2nrealloc()
/dragonfly/contrib/gmp/mpf/
H A Dget_str.c117 mp_size_t un, pn, tn; in mpf_get_str() local
197 pn = mpn_pow_1_highpart (pp, &ign, (mp_limb_t) base, e, n_limbs_needed, tp); in mpf_get_str()
198 if (un > pn) in mpf_get_str()
199 mpn_mul (tp, up, un, pp, pn); /* FIXME: mpn_mul_highpart */ in mpf_get_str()
201 mpn_mul (tp, pp, pn, up, un); /* FIXME: mpn_mul_highpart */ in mpf_get_str()
202 tn = un + pn; in mpf_get_str()
234 pn = mpn_pow_1_highpart (pp, &ign, (mp_limb_t) base, e, n_limbs_needed, tp); in mpf_get_str()
242 dummyp = TMP_ALLOC_LIMBS (pn); in mpf_get_str()
243 mpn_tdiv_qr (tp, dummyp, (mp_size_t) 0, xp, xn, pp, pn); in mpf_get_str()
244 tn = xn - pn + 1; in mpf_get_str()
/dragonfly/sbin/udevd/
H A Dtest_udevd.c329 prop_number_t pn; in udev_monitor_receive_device() local
349 if (pn == NULL) { in udev_monitor_receive_device()
642 prop_number_t pn; in _udev_dict_set_int() local
644 pn = prop_number_create_integer(val); in _udev_dict_set_int()
645 if (pn == NULL) in _udev_dict_set_int()
649 prop_object_release(pn); in _udev_dict_set_int()
653 prop_object_release(pn); in _udev_dict_set_int()
660 prop_number_t pn; in _udev_dict_set_uint() local
663 if (pn == NULL) in _udev_dict_set_uint()
667 prop_object_release(pn); in _udev_dict_set_uint()
[all …]
H A Dudevd.c90 prop_number_t pn, pn2; in match_dev_dict() local
103 if ((pn = prop_dictionary_get(dict, "devnum")) == NULL) in match_dev_dict()
107 if (!prop_number_equals(pn, pn2)) in match_dev_dict()
110 if ((pn = prop_dictionary_get(dict, "kptr")) == NULL) in match_dev_dict()
114 if (!prop_number_equals(pn, pn2)) in match_dev_dict()
165 prop_number_t pn; in udev_read_event() local
197 pn = prop_dictionary_get(dict, "evtype"); in udev_read_event()
198 if (pn == NULL) { in udev_read_event()
203 evtype = prop_number_integer_value(pn); in udev_read_event()
H A Dudevd_monitor.c252 prop_number_t pn; in _parse_filter_prop() local
275 pn = prop_dictionary_get(dict, "type"); in _parse_filter_prop()
276 if (pn == NULL) in _parse_filter_prop()
288 evf->type = prop_number_integer_value(pn); in _parse_filter_prop()
344 prop_number_t pn; in match_filter() local
361 pn = po; in match_filter()
362 if (prop_number_unsigned(pn)) { in match_filter()
363 snprintf(buf, sizeof(buf), "%" PRIu64, prop_number_unsigned_integer_value(pn)); in match_filter()
365 snprintf(buf, sizeof(buf), "%" PRIi64, prop_number_integer_value(pn)); in match_filter()
/dragonfly/sys/netproto/802_11/wlan_ccmp/
H A Dieee80211_crypto_ccmp.c230 uint64_t pn; in ccmp_decap() local
249 if (pn <= k->wk_keyrsc[tid] && in ccmp_decap()
267 !ccmp_decrypt(k, pn, m, hdrlen)) in ccmp_decap()
280 k->wk_keyrsc[tid] = pn; in ccmp_decap()
318 u_int64_t pn, size_t dlen, in ccmp_init_blocks() argument
332 b0[8] = pn >> 40; in ccmp_init_blocks()
333 b0[9] = pn >> 32; in ccmp_init_blocks()
334 b0[10] = pn >> 24; in ccmp_init_blocks()
335 b0[11] = pn >> 16; in ccmp_init_blocks()
336 b0[12] = pn >> 8; in ccmp_init_blocks()
[all …]
/dragonfly/sys/dev/drm/i915/
H A Dintel_dp_aux_backlight.c114 u8 pn, pn_min, pn_max; in intel_dp_aux_set_pwm_freq() local
156 for (pn = pn_max; pn >= pn_min; pn--) { in intel_dp_aux_set_pwm_freq()
157 f = clamp(DIV_ROUND_CLOSEST(fxp, 1 << pn), 1, 255); in intel_dp_aux_set_pwm_freq()
158 fxp_actual = f << pn; in intel_dp_aux_set_pwm_freq()
164 DP_EDP_PWMGEN_BIT_COUNT, pn) < 0) { in intel_dp_aux_set_pwm_freq()
/dragonfly/sys/kern/
H A Dvfs_cache.c1400 spin_lock(&pn->neg_spin); in _cache_setvp()
1403 ++pn->neg_count; in _cache_setvp()
1465 struct pcpu_ncache *pn; in _cache_setunresolved() local
1504 --pn->neg_count; in _cache_setunresolved()
4669 struct pcpu_ncache *pn; in _cache_cleanneg() local
4691 pn = &pcpu_ncache[n]; in _cache_cleanneg()
4914 struct pcpu_ncache *pn; in nchinit() local
4924 pn = &pcpu_ncache[i]; in nchinit()
5336 struct pcpu_ncache *pn; in vfscache_rollup_cpu() local
5358 if (pn->vfscache_negs) { in vfscache_rollup_cpu()
[all …]
/dragonfly/contrib/gmp/mpz/
H A Dnextprime.c47 mp_size_t pn; in mpz_nextprime() local
64 pn = SIZ(p); in mpz_nextprime()
65 count_leading_zeros (cnt, PTR(p)[pn - 1]); in mpz_nextprime()
66 nbits = pn * GMP_NUMB_BITS - (cnt - GMP_NAIL_BITS); in mpz_nextprime()
/dragonfly/sys/netgraph7/bluetooth/socket/
H A Dng_btsocket_rfcomm.c2895 RFCOMM_MCC_LENGTH(hdr->length), pn->flow_control, pn->priority, in ng_btsocket_rfcomm_receive_pn()
2896 pn->ack_timer, le16toh(pn->mtu), pn->max_retrans, pn->credits, in ng_btsocket_rfcomm_receive_pn()
2899 if (pn->dlci == 0) { in ng_btsocket_rfcomm_receive_pn()
2914 pn->credits, pn->mtu); in ng_btsocket_rfcomm_receive_pn()
2921 pn->credits = 0; in ng_btsocket_rfcomm_receive_pn()
2932 pn->flow_control, pn->credits, pn->mtu); in ng_btsocket_rfcomm_receive_pn()
2956 pn->credits, pn->mtu); in ng_btsocket_rfcomm_receive_pn()
2963 pn->credits = 0; in ng_btsocket_rfcomm_receive_pn()
3243 pn->ack_timer = 0; in ng_btsocket_rfcomm_send_pn()
3252 pn->credits = 0; in ng_btsocket_rfcomm_send_pn()
[all …]

1234