| /openbsd/src/sys/dev/pci/drm/i915/gt/ |
| D | intel_timeline.c | 40 struct intel_timeline *tl = in __timeline_retire() local 41 container_of(active, typeof(*tl), active); in __timeline_retire() 43 i915_vma_unpin(tl->hwsp_ggtt); in __timeline_retire() 44 intel_timeline_put(tl); in __timeline_retire() 49 struct intel_timeline *tl = in __timeline_active() local 50 container_of(active, typeof(*tl), active); in __timeline_active() 52 __i915_vma_pin(tl->hwsp_ggtt); in __timeline_active() 53 intel_timeline_get(tl); in __timeline_active() 171 struct intel_timeline *tl; in intel_timeline_create_from_engine() local 173 tl = __intel_timeline_create(engine->gt, hwsp, offset); in intel_timeline_create_from_engine() [all …]
|
| D | selftest_timeline.c | 27 static struct vm_page *hwsp_page(struct intel_timeline *tl) in hwsp_page() argument 29 struct drm_i915_gem_object *obj = tl->hwsp_ggtt->obj; in hwsp_page() 35 static unsigned long hwsp_cacheline(struct intel_timeline *tl) in hwsp_cacheline() argument 37 unsigned long address = (unsigned long)page_address(hwsp_page(tl)); in hwsp_cacheline() 39 return (address + offset_in_page(tl->hwsp_offset)) / TIMELINE_SEQNO_BYTES; in hwsp_cacheline() 42 static int selftest_tl_pin(struct intel_timeline *tl) in selftest_tl_pin() argument 49 err = i915_gem_object_lock(tl->hwsp_ggtt->obj, &ww); in selftest_tl_pin() 51 err = intel_timeline_pin(tl, &ww); in selftest_tl_pin() 79 struct intel_timeline *tl) in __mock_hwsp_record() argument 81 tl = xchg(&state->history[idx], tl); in __mock_hwsp_record() [all …]
|
| D | intel_gt_requests.c | 17 static bool retire_requests(struct intel_timeline *tl) in retire_requests() argument 21 list_for_each_entry_safe(rq, rn, &tl->requests, link) in retire_requests() 26 return !i915_active_fence_isset(&tl->last_request); in retire_requests() 64 struct intel_timeline *tl = xchg(&engine->retire, NULL); in engine_retire() local 67 struct intel_timeline *next = xchg(&tl->retire, NULL); in engine_retire() 77 if (mutex_trylock(&tl->mutex)) { in engine_retire() 78 retire_requests(tl); in engine_retire() 79 mutex_unlock(&tl->mutex); in engine_retire() 81 intel_timeline_put(tl); in engine_retire() 84 tl = ptr_mask_bits(next, 1); in engine_retire() [all …]
|
| D | intel_timeline.h | 45 static inline int __intel_timeline_sync_set(struct intel_timeline *tl, in __intel_timeline_sync_set() argument 48 return i915_syncmap_set(&tl->sync, context, seqno); in __intel_timeline_sync_set() 51 static inline int intel_timeline_sync_set(struct intel_timeline *tl, in intel_timeline_sync_set() argument 54 return __intel_timeline_sync_set(tl, fence->context, fence->seqno); in intel_timeline_sync_set() 57 static inline bool __intel_timeline_sync_is_later(struct intel_timeline *tl, in __intel_timeline_sync_is_later() argument 60 return i915_syncmap_is_later(&tl->sync, context, seqno); in __intel_timeline_sync_is_later() 63 static inline bool intel_timeline_sync_is_later(struct intel_timeline *tl, in intel_timeline_sync_is_later() argument 66 return __intel_timeline_sync_is_later(tl, fence->context, fence->seqno); in intel_timeline_sync_is_later() 69 void __intel_timeline_pin(struct intel_timeline *tl); 70 int intel_timeline_pin(struct intel_timeline *tl, struct i915_gem_ww_ctx *ww); [all …]
|
| D | intel_context.h | 251 struct intel_timeline *tl = ce->timeline; in intel_context_timeline_lock() local 255 err = mutex_lock_interruptible_nested(&tl->mutex, 0); in intel_context_timeline_lock() 257 err = mutex_lock_interruptible_nested(&tl->mutex, in intel_context_timeline_lock() 260 err = mutex_lock_interruptible(&tl->mutex); in intel_context_timeline_lock() 264 return tl; in intel_context_timeline_lock() 267 static inline void intel_context_timeline_unlock(struct intel_timeline *tl) in intel_context_timeline_unlock() argument 268 __releases(&tl->mutex) in intel_context_timeline_unlock() 270 mutex_unlock(&tl->mutex); in intel_context_timeline_unlock()
|
| /openbsd/src/usr.bin/tail/ |
| D | reverse.c | 181 struct bf *mark, *tr, *tl = NULL; in r_buf() local 193 if (enomem || (tl = malloc(sizeof(*tl))) == NULL) { in r_buf() 196 tl = enomem ? tl->next : mark; in r_buf() 197 enomem += tl->len; in r_buf() 199 tl->next = mark; in r_buf() 200 tl->prev = mark->prev; in r_buf() 201 mark->prev->next = tl; in r_buf() 202 mark->prev = tl; in r_buf() 204 mark = tl; in r_buf() 209 tl->len = 0; in r_buf() [all …]
|
| /openbsd/src/sys/nfs/ |
| D | nfs_srvsubs.c | 242 u_int32_t *tl; in nfsm_srvwcc() local 245 tl = nfsm_build(&info->nmi_mb, NFSX_UNSIGNED); in nfsm_srvwcc() 246 *tl = nfs_false; in nfsm_srvwcc() 248 tl = nfsm_build(&info->nmi_mb, 7 * NFSX_UNSIGNED); in nfsm_srvwcc() 249 *tl++ = nfs_true; in nfsm_srvwcc() 250 txdr_hyper(before_vap->va_size, tl); in nfsm_srvwcc() 251 tl += 2; in nfsm_srvwcc() 252 txdr_nfsv3time(&(before_vap->va_mtime), tl); in nfsm_srvwcc() 253 tl += 2; in nfsm_srvwcc() 254 txdr_nfsv3time(&(before_vap->va_ctime), tl); in nfsm_srvwcc() [all …]
|
| D | nfs_subs.c | 554 u_int32_t *tl; in nfsm_rpchead() local 593 tl = nfsm_build(&mb, 6 * NFSX_UNSIGNED); in nfsm_rpchead() 596 *tl++ = req->r_xid = nfs_get_xid(); in nfsm_rpchead() 597 *tl++ = rpc_call; in nfsm_rpchead() 598 *tl++ = rpc_vers; in nfsm_rpchead() 599 *tl++ = nfs_prog; in nfsm_rpchead() 601 *tl++ = txdr_unsigned(NFS_VER3); in nfsm_rpchead() 602 *tl = txdr_unsigned(req->r_procnum); in nfsm_rpchead() 604 *tl++ = txdr_unsigned(NFS_VER2); in nfsm_rpchead() 605 *tl = txdr_unsigned(nfsv2_procid[req->r_procnum]); in nfsm_rpchead() [all …]
|
| D | nfs_socket.c | 751 u_int32_t rxid, *tl; in nfs_reply() local 793 tl = (uint32_t *)nfsm_dissect(&info, 2 * NFSX_UNSIGNED); in nfs_reply() 794 if (tl == NULL) in nfs_reply() 796 rxid = *tl++; in nfs_reply() 797 if (*tl != rpc_reply) { in nfs_reply() 866 u_int32_t *tl; in nfs_request() local 985 tl = (uint32_t *)nfsm_dissect(&info, 3 * NFSX_UNSIGNED); in nfs_request() 986 if (tl == NULL) in nfs_request() 988 if (*tl++ == rpc_msgdenied) { in nfs_request() 989 if (*tl == rpc_mismatch) in nfs_request() [all …]
|
| D | nfs_vnops.c | 283 u_int32_t *tl; in nfs_access() local 336 tl = nfsm_build(&info.nmi_mb, NFSX_UNSIGNED); in nfs_access() 353 *tl = txdr_unsigned(mode); in nfs_access() 367 tl = (uint32_t *)nfsm_dissect(&info, NFSX_UNSIGNED); in nfs_access() 368 if (tl == NULL) in nfs_access() 370 rmode = fxdr_unsigned(u_int32_t, *tl); in nfs_access() 686 uint32_t *tl; in nfsm_wcc_data() local 691 tl = (uint32_t *)nfsm_dissect(infop, NFSX_UNSIGNED); in nfsm_wcc_data() 692 if (tl == NULL) in nfsm_wcc_data() 694 if (*tl == nfs_true) { in nfsm_wcc_data() [all …]
|
| D | nfs_serv.c | 110 uint32_t *tl = (uint32_t *)nfsm_dissect(infop, NFSX_UNSIGNED); in nfsm_srvmtofh1() local 111 if (tl == NULL) in nfsm_srvmtofh1() 113 if (fxdr_unsigned(int, *tl) != NFSX_V3FH) { in nfsm_srvmtofh1() 125 uint32_t *tl = (uint32_t *)nfsm_dissect(infop, NFSX_V3FH); in nfsm_srvmtofh2() local 126 if (tl == NULL) in nfsm_srvmtofh2() 128 bcopy(tl, fhp, NFSX_V3FH); in nfsm_srvmtofh2() 149 u_int32_t *tl; in nfsrv3_access() local 168 tl = (uint32_t *)nfsm_dissect(&info, NFSX_UNSIGNED); in nfsrv3_access() 169 if (tl == NULL) in nfsrv3_access() 180 nfsmode = fxdr_unsigned(u_int32_t, *tl); in nfsrv3_access() [all …]
|
| D | nfsm_subs.h | 109 uint32_t *tl; in nfsm_postop_attr() local 117 tl = (uint32_t *)nfsm_dissect(infop, NFSX_UNSIGNED); in nfsm_postop_attr() 118 if (tl == NULL) in nfsm_postop_attr() 120 attrflag = fxdr_unsigned(int, *tl); in nfsm_postop_attr() 139 uint32_t *tl = (uint32_t *)nfsm_dissect(infop, NFSX_UNSIGNED); in nfsm_strsiz() local 141 if (tl == NULL) in nfsm_strsiz() 143 len = fxdr_unsigned(int32_t, *tl); in nfsm_strsiz()
|
| /openbsd/src/games/hack/ |
| D | hack.topl.c | 115 struct topl *tl; in remember_topl() local 125 tl = (struct topl *) in remember_topl() 127 tl->next_topl = old_toplines; in remember_topl() 128 tl->topl_text = (char *)(tl + 1); in remember_topl() 129 (void) strlcpy(tl->topl_text, toplines, slen); in remember_topl() 130 old_toplines = tl; in remember_topl() 131 while(cnt && tl){ in remember_topl() 133 tl = tl->next_topl; in remember_topl() 135 if(tl && tl->next_topl){ in remember_topl() 136 free(tl->next_topl); in remember_topl() [all …]
|
| D | hack.pager.c | 262 struct line *tl; in cornline() local 283 tl = (struct line *) in cornline() 285 tl->next_line = 0; in cornline() 286 tl->line_text = (char *)(tl + 1); in cornline() 287 (void) strlcpy(tl->line_text, text, len + 1); in cornline() 289 texthead = tl; in cornline() 291 texttail->next_line = tl; in cornline() 292 texttail = tl; in cornline() 312 for (tl = texthead; tl; tl = tl->next_line) { in cornline() 317 putstr (tl->line_text); in cornline() [all …]
|
| /openbsd/src/usr.sbin/iscsid/ |
| D | initiator.c | 195 struct task_login *tl; in initiator_login() local 198 if (!(tl = calloc(1, sizeof(*tl)))) { in initiator_login() 203 tl->c = c; in initiator_login() 204 tl->stage = ISCSI_LOGIN_STG_SECNEG; in initiator_login() 206 if (!(p = initiator_login_build(c, tl))) { in initiator_login() 208 free(tl); in initiator_login() 213 task_init(&tl->task, c->session, 1, tl, initiator_login_cb, NULL); in initiator_login() 214 task_pdu_add(&tl->task, p); in initiator_login() 215 conn_task_issue(c, &tl->task); in initiator_login() 249 struct task_logout *tl; in initiator_logout() local [all …]
|
| /openbsd/src/usr.bin/mandoc/ |
| D | term_tab.c | 45 struct tablist *tl; in term_tab_set() local 77 tl = tabs.r; in term_tab_set() 78 if (tl->n >= tl->s) { in term_tab_set() 79 tl->s += 8; in term_tab_set() 80 tl->t = mandoc_reallocarray(tl->t, tl->s, sizeof(*tl->t)); in term_tab_set() 86 tl->t[tl->n] = pos; in term_tab_set() 87 if (add && tl->n) in term_tab_set() 88 tl->t[tl->n] += tl->t[tl->n - 1]; in term_tab_set() 89 tl->n++; in term_tab_set()
|
| /openbsd/src/usr.bin/vi/ex/ |
| D | ex_move.c | 89 recno_t cnt, diff, fl, tl, mfl, mtl; in ex_move() local 119 tl = cmdp->lineno; in ex_move() 125 lmp->lno >= fl && lmp->lno <= tl) { in ex_move() 136 if (tl > fl) { /* Destination > source. */ in ex_move() 137 mfl = tl - diff; in ex_move() 138 mtl = tl; in ex_move() 144 if (db_append(sp, 1, tl, bp, len)) in ex_move() 150 lmp->lno = tl + 1; in ex_move() 155 mfl = tl; in ex_move() 156 mtl = tl + diff; in ex_move() [all …]
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/f/ |
| D | stt.c | 806 ffestt_tokenlist_append (ffesttTokenList tl, ffelexToken t) in ffestt_tokenlist_append() argument 812 ti->next = (ffesttTokenItem) &tl->first; in ffestt_tokenlist_append() 813 ti->previous = tl->last; in ffestt_tokenlist_append() 817 ++tl->count; in ffestt_tokenlist_append() 830 ffesttTokenList tl; in ffestt_tokenlist_create() local 832 tl = (ffesttTokenList) malloc_new_kp (ffesta_scratch_pool, in ffestt_tokenlist_create() 833 "FFEST token list", sizeof (*tl)); in ffestt_tokenlist_create() 834 tl->first = tl->last = (ffesttTokenItem) &tl->first; in ffestt_tokenlist_create() 835 tl->count = 0; in ffestt_tokenlist_create() 836 return tl; in ffestt_tokenlist_create() [all …]
|
| /openbsd/src/bin/ksh/ |
| D | syn.c | 75 struct op *t, *p, *tl = NULL; in pipeline() local 82 if (tl == NULL) in pipeline() 83 t = tl = block(TPIPE, t, p, NULL); in pipeline() 85 tl = tl->right = block(TPIPE, tl->right, p, NULL); in pipeline() 113 struct op *t = NULL, *p, *tl = NULL; in c_list() local 136 else if (!tl) in c_list() 137 t = tl = block(TLIST, t, p, NULL); in c_list() 139 tl = tl->right = block(TLIST, tl->right, p, NULL); in c_list() 479 struct op *t, *tl; in caselist() local 490 t = tl = NULL; in caselist() [all …]
|
| /openbsd/src/usr.bin/dig/lib/dns/ |
| D | rdata.c | 1107 unsigned int tl; in txt_totext() local 1116 tl = region.length; in txt_totext() 1125 if (tl < 1) in txt_totext() 1128 tl--; in txt_totext() 1135 if (tl < 4) in txt_totext() 1142 tl -= 4; in txt_totext() 1152 if (tl < 2) in txt_totext() 1155 tl--; in txt_totext() 1157 if (tl < 1) in txt_totext() 1160 tl--; in txt_totext() [all …]
|
| /openbsd/src/sys/dev/pci/drm/i915/ |
| D | i915_request.c | 464 struct intel_timeline * const tl = i915_request_timeline(rq); in i915_request_retire_upto() local 471 tmp = list_first_entry(&tl->requests, typeof(*tmp), link); in i915_request_retire_upto() 873 static void retire_requests(struct intel_timeline *tl) in retire_requests() argument 877 list_for_each_entry_safe(rq, rn, &tl->requests, link) in retire_requests() 885 request_alloc_slow(struct intel_timeline *tl, in request_alloc_slow() argument 900 if (list_empty(&tl->requests)) in request_alloc_slow() 904 rq = list_first_entry(&tl->requests, typeof(*rq), link); in request_alloc_slow() 920 rq = list_last_entry(&tl->requests, typeof(*rq), link); in request_alloc_slow() 924 retire_requests(tl); in request_alloc_slow() 966 struct intel_timeline *tl = ce->timeline; in __i915_request_create() local [all …]
|
| /openbsd/src/regress/usr.bin/mandoc/mdoc/Bk/ |
| D | inputlines.out_ascii | 4 BBkk--iinnppuuttlliinneess - effect of input lines breaks on word keeps 7 …BBkk--iinnppuuttlliinneess _x _x _x _x _x _x _x _x _x _x _x _x _x _x _… 10 …BBkk--iinnppuuttlliinneess _x _x _x _x _x _x _x _x _x _x _x _x _x _x _… 13 …BBkk--iinnppuuttlliinneess _x _x _x _x _x _x _x _x _x _x _x _x _x _x _… 16 …BBkk--iinnppuuttlliinneess _x _x _x _x _x _x _x _x _x _x _x _x _x _x _… 19 …BBkk--iinnppuuttlliinneess _x _x _x _x _x _x _x _x _x _x _x _x _x _x _… 22 …BBkk--iinnppuuttlliinneess _x _x _x _x _x _x _x _x _x _x _x _x _x _x _… 25 …BBkk--iinnppuuttlliinneess _x _x _x _x _x _x _x _x _x _x _x _x _x _x _… 28 …BBkk--iinnppuuttlliinneess _x _x _x _x _x _x _x _x _x _x _x _x _x _x _… 31 …BBkk--iinnppuuttlliinneess _x _x _x _x _x _x _x _x _x _x _x _x _x _x _… [all …]
|
| /openbsd/src/lib/libcrypto/bn/ |
| D | bn_div.c | 89 BN_ULONG dh, dl, q,ret = 0, th, tl, t; in bn_div_words() local 116 tl = dl * q; in bn_div_words() 120 ((tl) <= ( in bn_div_words() 126 tl -= dl; in bn_div_words() 128 t = (tl >> BN_BITS4); in bn_div_words() 129 tl = (tl << BN_BITS4) & BN_MASK2h; in bn_div_words() 132 if (l < tl) in bn_div_words() 134 l -= tl; in bn_div_words()
|
| /openbsd/src/usr.sbin/pppd/ |
| D | ipcp.c | 758 u_int32_t tl, ciaddr1, ciaddr2;/* Parsed address values */ in ipcp_reqci() local 810 GETLONG(tl, p); /* Parse source address (his) */ in ipcp_reqci() 811 ciaddr1 = htonl(tl); in ipcp_reqci() 818 tl = ntohl(wo->hisaddr); in ipcp_reqci() 819 PUTLONG(tl, p); in ipcp_reqci() 834 GETLONG(tl, p); /* Parse destination address (ours) */ in ipcp_reqci() 835 ciaddr2 = htonl(tl); in ipcp_reqci() 842 tl = ntohl(wo->ouraddr); in ipcp_reqci() 843 PUTLONG(tl, p); in ipcp_reqci() 871 GETLONG(tl, p); /* Parse source address (his) */ in ipcp_reqci() [all …]
|
| /openbsd/src/sys/netinet/ |
| D | ip_esp.c | 985 u_int32_t tl, th, wl; in checkreplaywindow() local 989 tl = (u_int32_t)t; in checkreplaywindow() 993 if ((esn && seq == 0 && tl <= AH_HMAC_INITIAL_RPL && th == 0) || in checkreplaywindow() 997 if (th == 0 && tl < window) in checkreplaywindow() 998 window = tl; in checkreplaywindow() 1000 wl = tl - window + 1; in checkreplaywindow() 1011 if ((tl >= window - 1 && seq >= wl) || in checkreplaywindow() 1012 (tl < window - 1 && seq < wl)) { in checkreplaywindow() 1014 if (seq > tl) { in checkreplaywindow() 1016 if (seq - tl > window) in checkreplaywindow() [all …]
|