Home
last modified time | relevance | path

Searched refs:index_mask (Results 1 – 14 of 14) sorted by relevance

/openbmc/linux/drivers/infiniband/sw/rxe/
H A Drxe_queue.h69 u32 index_mask; member
97 return (index + 1) & q->index_mask; in queue_next_index()
159 return ((prod - cons) & q->index_mask) == 0; in queue_empty()
167 return ((prod + 1 - cons) & q->index_mask) == 0; in queue_full()
176 return (prod - cons) & q->index_mask; in queue_count()
194 prod = (prod + 1) & q->index_mask; in queue_advance_producer()
202 prod = (prod + 1) & q->index_mask; in queue_advance_producer()
223 cons = (q->index + 1) & q->index_mask; in queue_advance_consumer()
243 cons = (cons + 1) & q->index_mask; in queue_advance_consumer()
268 return q->buf->data + ((index & q->index_mask) in queue_addr_from_index()
[all …]
H A Drxe_queue.c85 q->index_mask = num_slots - 1; in rxe_queue_init()
94 q->buf->index_mask = q->index_mask; in rxe_queue_init()
125 while ((prod - cons) & q->index_mask) { in resize_finish()
H A Drxe_srq.c137 if (attr->srq_limit > srq->rq.queue->buf->index_mask) { in rxe_srq_chk_attr()
140 srq->rq.queue->buf->index_mask); in rxe_srq_chk_attr()
H A Drxe_verbs.c478 attr->max_wr = srq->rq.queue->buf->index_mask; in rxe_query_srq()
/openbmc/linux/drivers/gpu/drm/radeon/
H A Dradeon_encoders.c45 uint32_t index_mask = drm_encoder_mask(encoder); in radeon_encoder_clones() local
50 return index_mask; in radeon_encoder_clones()
53 return index_mask; in radeon_encoder_clones()
56 return index_mask; in radeon_encoder_clones()
71 index_mask |= (1 << count); in radeon_encoder_clones()
73 return index_mask; in radeon_encoder_clones()
/openbmc/linux/kernel/bpf/
H A Darraymap.c87 u32 elem_size, index_mask, max_entries; in array_map_alloc() local
104 index_mask = mask64; in array_map_alloc()
109 max_entries = index_mask + 1; in array_map_alloc()
145 array->index_mask = index_mask; in array_map_alloc()
224 *insn++ = BPF_ALU32_IMM(BPF_AND, ret, array->index_mask); in array_map_gen_lookup()
283 pptr = array->pptrs[index & array->index_mask]; in bpf_percpu_array_copy()
342 (u64)array->elem_size * (index & array->index_mask); in array_map_update_elem()
381 pptr = array->pptrs[index & array->index_mask]; in bpf_percpu_array_update()
479 pptr = array->pptrs[index & array->index_mask]; in percpu_array_map_seq_show_elem()
567 index = info->index & array->index_mask; in bpf_array_map_seq_start()
[all …]
H A Dmap_in_map.c76 inner_array_meta->index_mask = inner_array->index_mask; in bpf_map_meta_alloc()
H A Dverifier.c19100 map)->index_mask); in do_misc_fixups()
/openbmc/linux/drivers/gpu/drm/gma500/
H A Dpsb_intel_display.c545 int index_mask = 0; in gma_connector_clones() local
552 index_mask |= (1 << entry); in gma_connector_clones()
557 return index_mask; in gma_connector_clones()
/openbmc/qemu/hw/i386/
H A Dintel_iommu_internal.h328 uint64_t index_mask:5; /* 2^N for continuous int invalidation */ member
336 uint32_t index_mask:5; /* 2^N for continuous int invalidation */
H A Dintel_iommu.c2661 inv_desc->iec.index_mask); in vtd_process_inv_iec_desc()
2665 inv_desc->iec.index_mask); in vtd_process_inv_iec_desc()
/openbmc/linux/drivers/thermal/qcom/
H A Dtsens.c399 u32 index_mask = 0, index_clear = 0; in tsens_set_interrupt_v2() local
410 index_mask = UP_INT_MASK_0 + hw_id; in tsens_set_interrupt_v2()
414 index_mask = LOW_INT_MASK_0 + hw_id; in tsens_set_interrupt_v2()
418 index_mask = CRIT_INT_MASK_0 + hw_id; in tsens_set_interrupt_v2()
424 regmap_field_write(priv->rf[index_mask], 0); in tsens_set_interrupt_v2()
426 regmap_field_write(priv->rf[index_mask], 1); in tsens_set_interrupt_v2()
/openbmc/linux/include/uapi/rdma/
H A Drdma_user_rxe.h222 __u32 index_mask; member
/openbmc/linux/include/linux/
H A Dbpf.h1760 u32 index_mask; member