/third_party/musl/libc-test/src/regression/ |
H A D | pthread_cancel-sem_wait.c | 15 static int seqno; variable 22 seqno = 1; in wait_cancel() 29 seqno = 2; in start_sem_wait() 37 seqno = 2; in start_sem_timedwait() 45 seqno = 2; in start_sem_timedwait_time64() 59 seqno = 0; in main() 65 TESTC(seqno == 1, "uncontended sem_wait"); in main() 68 seqno = 0; in main() 75 TESTC(seqno == 1, "blocking sem_wait"); in main() 78 seqno in main() [all...] |
/third_party/selinux/libselinux/src/ |
H A D | sestatus.c | 63 uint32_t seqno = 0; in read_sequence() local 70 if (seqno & 0x0001) in read_sequence() 73 seqno = status->sequence; in read_sequence() 77 } while (seqno & 0x0001); in read_sequence() 79 return seqno; in read_sequence() 154 uint32_t seqno; in selinux_status_getenforce() local 171 seqno = read_sequence(selinux_status); in selinux_status_getenforce() 175 } while (seqno != read_sequence(selinux_status)); in selinux_status_getenforce() 191 uint32_t seqno; in selinux_status_policyload() local 208 seqno in selinux_status_policyload() 226 uint32_t seqno; selinux_status_deny_unknown() local 283 uint32_t seqno; selinux_status_open() local [all...] |
H A D | avc_internal.h | 37 extern int avc_process_policyload(uint32_t seqno); 167 uint32_t seqno) ; 170 access_vector_t perms, uint32_t seqno, 174 uint32_t seqno) ; 175 int avc_ss_reset(uint32_t seqno) ; 178 uint32_t seqno, uint32_t enable) ; 181 uint32_t seqno, uint32_t enable) ;
|
H A D | avc.c | 461 * sequence number @ae->avd.seqno is not less than the latest 474 if (ae->avd.seqno < avc_cache.latest_notif) { in avc_insert() 476 "%s: seqno %u < latest_notif %u\n", avc_prefix, in avc_insert() 477 ae->avd.seqno, avc_cache.latest_notif); in avc_insert() 740 avd->seqno = avc_cache.latest_notif; in avd_init() 1011 uint32_t seqno, access_vector_t * out_retained) in avc_control() 1052 if (seqno > avc_cache.latest_notif) in avc_control() 1053 avc_cache.latest_notif = seqno; in avc_control() 1066 * @seqno: policy sequence number 1070 uint32_t seqno) in avc_ss_grant() 1008 avc_control(uint32_t event, security_id_t ssid, security_id_t tsid, security_class_t tclass, access_vector_t perms, uint32_t seqno, access_vector_t * out_retained) avc_control() argument 1068 avc_ss_grant(security_id_t ssid, security_id_t tsid, security_class_t tclass, access_vector_t perms, uint32_t seqno) avc_ss_grant() argument 1089 avc_ss_try_revoke(security_id_t ssid, security_id_t tsid, security_class_t tclass, access_vector_t perms, uint32_t seqno, access_vector_t * out_retained) avc_ss_try_revoke() argument 1109 avc_ss_revoke(security_id_t ssid, security_id_t tsid, security_class_t tclass, access_vector_t perms, uint32_t seqno) avc_ss_revoke() argument 1121 avc_ss_reset(uint32_t seqno) avc_ss_reset() argument 1144 avc_ss_set_auditallow(security_id_t ssid, security_id_t tsid, security_class_t tclass, access_vector_t perms, uint32_t seqno, uint32_t enable) avc_ss_set_auditallow() argument 1165 avc_ss_set_auditdeny(security_id_t ssid, security_id_t tsid, security_class_t tclass, access_vector_t perms, uint32_t seqno, uint32_t enable) avc_ss_set_auditdeny() argument [all...] |
H A D | compute_av.c | 64 &avd->seqno, &avd->flags); in security_compute_av_flags_raw() 106 avd->seqno = lavd.seqno; in security_compute_av_raw() 158 avd->seqno = lavd.seqno; in security_compute_av()
|
H A D | avc_internal.c | 78 int avc_process_policyload(uint32_t seqno) in avc_process_policyload() argument 83 "%s: op=load_policy lsm=selinux seqno=%u res=1", in avc_process_policyload() 84 avc_prefix, seqno); in avc_process_policyload() 85 rc = avc_ss_reset(seqno); in avc_process_policyload() 95 return selinux_netlink_policyload(seqno); in avc_process_policyload() 230 rc = avc_process_policyload(msg->seqno); in avc_netlink_process()
|
/third_party/lwip/src/core/ |
H A D | tcp_in.c | 80 static u32_t seqno, ackno; variable 233 seqno = tcphdr->seqno = lwip_ntohl(tcphdr->seqno); 554 for the FIN's seqno */ 596 tcp_rst(NULL, ackno, seqno + tcplen, ip_current_dest_addr(), 669 tcp_rst((const struct tcp_pcb *)pcb, ackno, seqno + tcplen, ip_current_dest_addr(), 704 npcb->rcv_nxt = seqno + 1; 711 npcb->snd_wl1 = seqno - 1;/* initialise to seqno [all...] |
H A D | tcp_out.c | 163 * @param seqno TCP sequence number of this packet 170 tcp_create_segment(const struct tcp_pcb *pcb, struct pbuf *p, u8_t hdrflags, u32_t seqno, u8_t optflags) in tcp_create_segment() argument 211 seg->tcphdr->seqno = lwip_htonl(seqno); in tcp_create_segment() 702 lwip_ntohl(seg->tcphdr->seqno), in tcp_write() 703 lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg))); in tcp_write() 926 seg = tcp_create_segment(pcb, p, remainder_flags, lwip_ntohl(useg->tcphdr->seqno) + split, optflags); in tcp_split_unsent_seg() 1108 lwip_ntohl(seg->tcphdr->seqno), in tcp_enqueue_flags() 1109 lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg), in tcp_enqueue_flags() 1299 lwip_ntohl(seg->tcphdr->seqno) in tcp_output() 1993 tcp_rst(const struct tcp_pcb *pcb, u32_t seqno, u32_t ackno, const ip_addr_t *local_ip, const ip_addr_t *remote_ip, u16_t local_port, u16_t remote_port) tcp_rst() argument [all...] |
/third_party/ltp/testcases/kernel/logging/kmsg/ |
H A D | kmsg01.c | 10 * - can write to /dev/kmsg and message seqno grows 114 unsigned long *seqno) in get_msg_fields() 120 if (seqno) in get_msg_fields() 121 *seqno = s; in get_msg_fields() 279 unsigned long prefix, seqno, seqno_last = 0; in test_inject() local 305 if (get_msg_fields(tmp, &prefix, &seqno) != 0) { in test_inject() 315 if (seqno > seqno_last) { in test_inject() 316 seqno_last = seqno; in test_inject() 318 tst_res(TFAIL, "seqno doesn't grow: %lu, " in test_inject() 319 "last: %lu", seqno, seqno_las in test_inject() 113 get_msg_fields(const char *msg, unsigned long *prio, unsigned long *seqno) get_msg_fields() argument 330 unsigned long seqno[NUM_READ_MSGS + 1]; test_read_returns_first_message() local 387 unsigned long first_seqno = 0, seqno; test_messages_overwritten() local 438 read_msg_seqno(int fd, unsigned long *seqno) read_msg_seqno() argument 461 unsigned long seqno[2], tmp; test_seek() local [all...] |
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/ |
H A D | fd6_emit.h | 155 unsigned seqno = 0; in fd6_event_write() local 163 seqno = ++fd6_ctx->seqno; in fd6_event_write() 164 OUT_RELOC(ring, control_ptr(fd6_ctx, seqno)); /* ADDR_LO/HI */ in fd6_event_write() 165 OUT_RING(ring, seqno); in fd6_event_write() 168 return seqno; in fd6_event_write() 183 unsigned seqno; in fd6_cache_flush() local 185 seqno = fd6_event_write(batch, ring, RB_DONE_TS, true); in fd6_cache_flush() 190 OUT_RELOC(ring, control_ptr(fd6_ctx, seqno)); in fd6_cache_flush() 191 OUT_RING(ring, CP_WAIT_REG_MEM_3_REF(seqno)); in fd6_cache_flush() [all...] |
H A D | fd6_texture.c | 101 so->seqno = ++fd6_context(fd_context(pctx))->tex_seqno; in fd6_sampler_state_create() 146 if (samp->seqno == state->key.samp[i].seqno) { in fd6_sampler_state_delete() 223 so->seqno = ++fd6_context(ctx)->tex_seqno; in fd6_sampler_view_update() 225 so->rsc_seqno = rsc->seqno; in fd6_sampler_view_update() 300 if (view->seqno == state->key.view[i].seqno) { in fd6_sampler_view_destroy() 349 * seqno would have changed, so we don't have to worry about in fd6_texture_state() 352 key.view[i].rsc_seqno = fd_resource(view->base.texture)->seqno; in fd6_texture_state() 353 key.view[i].seqno in fd6_texture_state() [all...] |
H A D | fd6_texture.h | 43 uint16_t seqno; member 55 uint16_t seqno; member 121 /* We need to track the seqno of the rsc as well as of the 127 uint16_t seqno; member 130 uint16_t seqno; member
|
/third_party/mesa3d/src/gallium/drivers/iris/ |
H A D | iris_pipe_control.c | 177 * update will only ever change the seqno of the last update to a value 180 * have for the local seqno (see the coherent_seqnos comparisons below). 236 const uint64_t seqno = READ_ONCE(bo->last_seqnos[i]); in iris_emit_buffer_barrier_for() local 243 if (seqno > batch->coherent_seqnos[access][i]) { in iris_emit_buffer_barrier_for() 250 if (seqno > batch->l3_coherent_seqnos[i]) in iris_emit_buffer_barrier_for() 256 if (seqno > batch->coherent_seqnos[i][i]) in iris_emit_buffer_barrier_for() 271 const uint64_t seqno = READ_ONCE(bo->last_seqnos[i]); in iris_emit_buffer_barrier_for() local 280 if (seqno > last_visible_seqno) in iris_emit_buffer_barrier_for() 291 const uint64_t seqno = READ_ONCE(bo->last_seqnos[i]); in iris_emit_buffer_barrier_for() local 300 if (seqno > batc in iris_emit_buffer_barrier_for() [all...] |
H A D | iris_fine_fence.c | 27 uint32_t seqno = batch->fine_fences.next++; in iris_fine_fence_next() local 32 return seqno; in iris_fine_fence_next() 53 fine->seqno = iris_fine_fence_next(batch); in iris_fine_fence_new() 76 fine->seqno); in iris_fine_fence_new()
|
H A D | iris_fine_fence.h | 49 /** Buffer where the seqno lives */ 52 /** Coherent CPU map of the buffer containing the seqno DWord. */ 57 * batch which writes this seqno. This can be used to block until 58 * the seqno has definitely passed (but may wait longer than necessary). 72 * (written by the flush on the GPU) is greater-than-or-equal to @seqno. 74 uint32_t seqno; member 95 * Return true if this seqno has passed. 102 return !sq || (READ_ONCE(*sq->map) >= sq->seqno); in iris_fine_fence_signaled()
|
/third_party/mesa3d/src/virtio/vulkan/ |
H A D | vn_ring.c | 74 vn_ring_retire_submits(struct vn_ring *ring, uint32_t seqno) in vn_ring_retire_submits() argument 78 if (!vn_ring_ge_seqno(ring, seqno, submit->seqno)) in vn_ring_retire_submits() 90 vn_ring_wait_seqno(const struct vn_ring *ring, uint32_t seqno) in vn_ring_wait_seqno() argument 98 if (vn_ring_ge_seqno(ring, head, seqno)) in vn_ring_wait_seqno() 100 vn_relax(&iter, "ring seqno"); in vn_ring_wait_seqno() 231 uint32_t *seqno) in vn_ring_submit() 247 submit->seqno = ring->cur; in vn_ring_submit() 250 *seqno = submit->seqno; in vn_ring_submit() 228 vn_ring_submit(struct vn_ring *ring, struct vn_ring_submit *submit, const struct vn_cs_encoder *cs, uint32_t *seqno) vn_ring_submit() argument 258 vn_ring_wait(const struct vn_ring *ring, uint32_t seqno) vn_ring_wait() argument [all...] |
H A D | vn_ring.h | 53 uint32_t seqno; member 97 uint32_t *seqno); 100 vn_ring_wait(const struct vn_ring *ring, uint32_t seqno);
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
H A D | etnaviv_resource.h | 76 uint32_t seqno; member 104 return (int)(a->seqno - b->seqno) > 0; in etna_resource_newer() 111 return (int)(a->seqno - b->seqno) < 0; in etna_resource_older() 122 return etna_resource_has_valid_ts(res) && ((int)(res->seqno - res->flush_seqno) > 0); in etna_resource_needs_flush()
|
/third_party/musl/libc-test/src/functional/ |
H A D | pthread_cancel-points.c | 19 static int seqno; variable 119 seqno = 1; in run_execute() 121 seqno = 2; in run_execute() 135 seqno = 0; in main() 142 && TESTC(seqno == 1, "seqno"); in main() 145 && TESTC(seqno == 2, "seqno"); in main()
|
/third_party/mesa3d/src/freedreno/computerator/ |
H A D | a6xx.c | 45 unsigned seqno; member 60 uint32_t seqno; /* seqno for async CP_EVENT_WRITE, etc */ member 357 unsigned seqno = 0; in event_write() local 364 seqno = ++a6xx_backend->seqno; in event_write() 365 OUT_RELOC(ring, control_ptr(a6xx_backend, seqno)); /* ADDR_LO/HI */ in event_write() 366 OUT_RING(ring, seqno); in event_write() 369 return seqno; in event_write() 377 unsigned seqno; in cache_flush() local [all...] |
/third_party/mesa3d/src/gallium/drivers/vc4/ |
H A D | vc4_fence.c | 30 * seqno for that particular seqno to be passed. The fence API we're 33 * the same BOs), so we can just use the seqno of the last rendering we'd 49 uint64_t seqno; member 88 return vc4_wait_seqno(screen, f->seqno, timeout_ns, "fence wait"); in vc4_fence_finish() 92 vc4_fence_create(struct vc4_screen *screen, uint64_t seqno, int fd) in vc4_fence_create() argument 100 f->seqno = seqno; in vc4_fence_create()
|
H A D | vc4_bufmgr.c | 532 static int vc4_wait_seqno_ioctl(int fd, uint64_t seqno, uint64_t timeout_ns) in vc4_wait_seqno_ioctl() argument 535 .seqno = seqno, in vc4_wait_seqno_ioctl() 547 vc4_wait_seqno(struct vc4_screen *screen, uint64_t seqno, uint64_t timeout_ns, in vc4_wait_seqno() argument 550 if (screen->finished_seqno >= seqno) in vc4_wait_seqno() 554 if (vc4_wait_seqno_ioctl(screen->fd, seqno, 0) == -ETIME) { in vc4_wait_seqno() 555 fprintf(stderr, "Blocking on seqno %lld for %s\n", in vc4_wait_seqno() 556 (long long)seqno, reason); in vc4_wait_seqno() 560 int ret = vc4_wait_seqno_ioctl(screen->fd, seqno, timeout_ns); in vc4_wait_seqno() 570 screen->finished_seqno = seqno; in vc4_wait_seqno() [all...] |
/third_party/mesa3d/src/gallium/drivers/crocus/ |
H A D | crocus_fine_fence.c | 31 uint32_t seqno = batch->fine_fences.next++; in crocus_fine_fence_next() 36 return seqno; in crocus_fine_fence_next() 57 fine->seqno = crocus_fine_fence_next(batch); in crocus_fine_fence_new() 82 fine->seqno); in crocus_fine_fence_new()
|
/third_party/ltp/testcases/kernel/security/filecaps/ |
H A D | print_caps.c | 47 int seqno = 0; in main() local 51 seqno = atoi(argv[1]); in main() 64 snprintf(buf, 2000, "%d.%s", seqno, cap_to_text(cap, NULL)); in main()
|
/third_party/mesa3d/src/gallium/winsys/svga/drm/ |
H A D | vmw_fence.c | 62 uint32_t seqno; member 68 * vmw_fence_seq_is_signaled - Check whether a fence seqno is 120 * @emitted: Last seqno emitted by the kernel. 149 if (!vmw_fence_seq_is_signaled(fence->seqno, signaled, emitted)) in vmw_fences_signal() 188 uint32_t seqno, uint32_t mask, int32_t fd) in vmw_fence_create() 199 fence->seqno = seqno; in vmw_fence_create() 216 if (vmw_fence_seq_is_signaled(seqno, ops->last_signaled, seqno)) { in vmw_fence_create() 187 vmw_fence_create(struct pb_fence_ops *fence_ops, uint32_t handle, uint32_t seqno, uint32_t mask, int32_t fd) vmw_fence_create() argument
|