/openbmc/linux/virt/lib/ |
H A D | irqbypass.c | 30 static int __connect(struct irq_bypass_producer *prod, in __connect() argument 35 if (prod->stop) in __connect() 36 prod->stop(prod); in __connect() 40 if (prod->add_consumer) in __connect() 41 ret = prod->add_consumer(prod, cons); in __connect() 44 ret = cons->add_producer(cons, prod); in __connect() 45 if (ret && prod->del_consumer) in __connect() 46 prod->del_consumer(prod, cons); in __connect() 51 if (prod->start) in __connect() 52 prod->start(prod); in __connect() [all …]
|
/openbmc/linux/drivers/infiniband/sw/rxe/ |
H A D | rxe_queue.h | 103 u32 prod; in queue_get_producer() local 108 prod = smp_load_acquire(&q->buf->producer_index); in queue_get_producer() 112 prod = q->index; in queue_get_producer() 116 prod = q->buf->producer_index; in queue_get_producer() 120 prod = smp_load_acquire(&q->buf->producer_index); in queue_get_producer() 124 return prod; in queue_get_producer() 156 u32 prod = queue_get_producer(q, type); in queue_empty() local 159 return ((prod - cons) & q->index_mask) == 0; in queue_empty() 164 u32 prod = queue_get_producer(q, type); in queue_full() local 167 return ((prod + 1 - cons) & q->index_mask) == 0; in queue_full() [all …]
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | lgs8gxx.c | 47 if (priv->config->prod != LGS8GXX_PROD_LGS8G75 && reg >= 0xC0) in lgs8gxx_write_reg() 75 if (priv->config->prod != LGS8GXX_PROD_LGS8G75 && reg >= 0xC0) in lgs8gxx_read_reg() 133 (config->prod == LGS8GXX_PROD_LGS8G52)) { in lgs8gxx_set_ad_mode() 163 if (priv->config->prod == LGS8GXX_PROD_LGS8G75) { in lgs8gxx_set_if_freq() 185 if (priv->config->prod == LGS8GXX_PROD_LGS8G75) in lgs8gxx_get_afc_phase() 207 u8 prod = priv->config->prod; in lgs8gxx_set_mode_auto() local 209 if (prod == LGS8GXX_PROD_LGS8913) in lgs8gxx_set_mode_auto() 212 if (prod == LGS8GXX_PROD_LGS8G75) { in lgs8gxx_set_mode_auto() 218 } else if (prod == LGS8GXX_PROD_LGS8913 || in lgs8gxx_set_mode_auto() 219 prod == LGS8GXX_PROD_LGS8GL5 || in lgs8gxx_set_mode_auto() [all …]
|
/openbmc/linux/drivers/xen/xenbus/ |
H A D | xenbus_comms.c | 66 static int check_indexes(XENSTORE_RING_IDX cons, XENSTORE_RING_IDX prod) in check_indexes() argument 68 return ((prod - cons) <= XENSTORE_RING_SIZE); in check_indexes() 72 XENSTORE_RING_IDX prod, in get_output_chunk() argument 75 *len = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(prod); in get_output_chunk() 76 if ((XENSTORE_RING_SIZE - (prod - cons)) < *len) in get_output_chunk() 77 *len = XENSTORE_RING_SIZE - (prod - cons); in get_output_chunk() 78 return buf + MASK_XENSTORE_IDX(prod); in get_output_chunk() 82 XENSTORE_RING_IDX prod, in get_input_chunk() argument 86 if ((prod - cons) < *len) in get_input_chunk() 87 *len = prod - cons; in get_input_chunk() [all …]
|
/openbmc/linux/drivers/zorro/ |
H A D | names.c | 21 __u16 prod; member 41 #define PRODUCT( manuf, prod, name ) static char __prodstr_##manuf##prod[] __initdata = name; argument 47 #define PRODUCT( manuf, prod, name ) { 0x##prod, 0, __prodstr_##manuf##prod }, argument 53 #define PRODUCT( manuf, prod, name ) argument 79 if (prod_p->prod == in zorro_name_device()
|
/openbmc/linux/drivers/net/can/softing/ |
H A D | softing_cs.c | 30 .manf = 0x0168, .prod = 0x001, 42 .manf = 0x0168, .prod = 0x002, 54 .manf = 0x0168, .prod = 0x004, 66 .manf = 0x0168, .prod = 0x005, 78 .manf = 0x0168, .prod = 0x081, 90 .manf = 0x0168, .prod = 0x084, 102 .manf = 0x0168, .prod = 0x085, 114 .manf = 0x0168, .prod = 0x102, 126 .manf = 0x0168, .prod = 0x105, 151 *softingcs_find_platform_data(unsigned int manf, unsigned int prod) in softingcs_find_platform_data() argument [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | xsk.h | 118 static inline __u32 xsk_ring_prod__reserve(struct xsk_ring_prod *prod, __u32 nb, __u32 *idx) in xsk_ring_prod__reserve() argument 120 if (xsk_prod_nb_free(prod, nb) < nb) in xsk_ring_prod__reserve() 123 *idx = prod->cached_prod; in xsk_ring_prod__reserve() 124 prod->cached_prod += nb; in xsk_ring_prod__reserve() 129 static inline void xsk_ring_prod__submit(struct xsk_ring_prod *prod, __u32 nb) in xsk_ring_prod__submit() argument 134 __atomic_store_n(prod->producer, *prod->producer + nb, __ATOMIC_RELEASE); in xsk_ring_prod__submit() 137 static inline void xsk_ring_prod__cancel(struct xsk_ring_prod *prod, __u32 nb) in xsk_ring_prod__cancel() argument 139 prod->cached_prod -= nb; in xsk_ring_prod__cancel()
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_rtalloc.c | 224 xfs_extlen_t prod) in xfs_rtallocate_clamp_len() argument 229 return rounddown(ret, prod); in xfs_rtallocate_clamp_len() 249 xfs_extlen_t prod, /* extent product factor */ in xfs_rtallocate_extent_block() argument 269 maxlen = xfs_rtallocate_clamp_len(mp, i, maxlen, prod); in xfs_rtallocate_extent_block() 327 if (prod > 1) { in xfs_rtallocate_extent_block() 328 div_u64_rem(bestlen, prod, &p); in xfs_rtallocate_extent_block() 368 xfs_extlen_t prod, /* extent product factor */ in xfs_rtallocate_extent_exact() argument 376 ASSERT(minlen % prod == 0); in xfs_rtallocate_extent_exact() 377 ASSERT(maxlen % prod == 0); in xfs_rtallocate_extent_exact() 411 if (prod > 1 && (i = maxlen % prod)) { in xfs_rtallocate_extent_exact() [all …]
|
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_xdp.c | 35 u16 prod; in bnxt_xmit_bd() local 44 prod = txr->tx_prod; in bnxt_xmit_bd() 45 tx_buf = &txr->tx_buf_ring[prod]; in bnxt_xmit_bd() 50 txbd = &txr->tx_desc_ring[TX_RING(prod)][TX_IDX(prod)]; in bnxt_xmit_bd() 55 txbd->tx_bd_opaque = prod; in bnxt_xmit_bd() 65 prod = NEXT_TX(prod); in bnxt_xmit_bd() 66 WRITE_ONCE(txr->tx_prod, prod); in bnxt_xmit_bd() 69 frag_tx_buf = &txr->tx_buf_ring[prod]; in bnxt_xmit_bd() 72 txbd = &txr->tx_desc_ring[TX_RING(prod)][TX_IDX(prod)]; in bnxt_xmit_bd() 89 prod = NEXT_TX(prod); in bnxt_xmit_bd() [all …]
|
/openbmc/qemu/chardev/ |
H A D | char-ringbuf.c | 39 size_t prod; member 52 return d->prod - d->cons; in DECLARE_INSTANCE_CHECKER() 65 d->cbuf[d->prod++ & (d->size - 1)] = buf[i]; in ringbuf_chr_write() 66 if (d->prod - d->cons > d->size) { in ringbuf_chr_write() 67 d->cons = d->prod - d->size; in ringbuf_chr_write() 80 for (i = 0; i < len && d->cons != d->prod; i++) { in ringbuf_chr_read() 111 d->prod = 0; in qemu_chr_open_ringbuf()
|
/openbmc/linux/net/smc/ |
H A D | smc_cdc.h | 46 union smc_cdc_cursor prod; member 72 union smcd_cdc_cursor prod; member 216 smc_host_cursor_to_cdc(&peer->prod, &local->prod, save, conn); in smc_host_msg_to_cdc() 249 smc_cdc_cursor_to_host(&local->prod, &peer->prod, conn); in smcr_cdc_msg_to_host() 261 temp.wrap = peer->prod.wrap; in smcd_cdc_msg_to_host() 262 temp.count = peer->prod.count; in smcd_cdc_msg_to_host() 263 smc_curs_copy(&local->prod, &temp, conn); in smcd_cdc_msg_to_host()
|
H A D | smc_tx.c | 341 union smc_host_cursor *prod, in smc_tx_advance_cursors() argument 345 smc_curs_add(conn->peer_rmbe_size, prod, len); in smc_tx_advance_cursors() 467 union smc_host_cursor sent, prep, prod, cons; in smc_tx_rdma_writes() local 489 smc_curs_copy(&prod, &conn->local_tx_ctrl.prod, conn); in smc_tx_rdma_writes() 499 dst_off = prod.count; in smc_tx_rdma_writes() 500 if (prod.wrap == cons.wrap) { in smc_tx_rdma_writes() 507 conn->peer_rmbe_size - prod.count, len); in smc_tx_rdma_writes() 535 smc_tx_advance_cursors(conn, &prod, &sent, len); in smc_tx_rdma_writes() 537 smc_curs_copy(&conn->local_tx_ctrl.prod, &prod, conn); in smc_tx_rdma_writes() 722 union smc_host_cursor cfed, cons, prod; in smc_tx_consumer_update() local [all …]
|
/openbmc/openbmc/poky/bitbake/lib/ply/ |
H A D | yacc.py | 289 … prod = self.productions # Local reference to production list (to avoid lookup on self.) 380 p = prod[-t] 604 … prod = self.productions # Local reference to production list (to avoid lookup on self.) 677 p = prod[-t] 876 … prod = self.productions # Local reference to production list (to avoid lookup on self.) 949 p = prod[-t] 1156 def __init__(self,number,name,prod,precedence=('right',0),func=None,file='',line=0): argument 1158 self.prod = tuple(prod) 1168 self.len = len(self.prod) # Length of the production 1172 for s in self.prod: [all …]
|
/openbmc/linux/drivers/iommu/arm/arm-smmu-v3/ |
H A D | arm-smmu-v3.c | 106 u32 space, prod, cons; in queue_has_space() local 108 prod = Q_IDX(q, q->prod); in queue_has_space() 111 if (Q_WRP(q, q->prod) == Q_WRP(q, q->cons)) in queue_has_space() 112 space = (1 << q->max_n_shift) - (prod - cons); in queue_has_space() 114 space = cons - prod; in queue_has_space() 121 return Q_IDX(q, q->prod) == Q_IDX(q, q->cons) && in queue_full() 122 Q_WRP(q, q->prod) != Q_WRP(q, q->cons); in queue_full() 127 return Q_IDX(q, q->prod) == Q_IDX(q, q->cons) && in queue_empty() 128 Q_WRP(q, q->prod) == Q_WRP(q, q->cons); in queue_empty() 131 static bool queue_consumed(struct arm_smmu_ll_queue *q, u32 prod) in queue_consumed() argument [all …]
|
/openbmc/linux/net/9p/ |
H A D | trans_xen.c | 106 RING_IDX cons, prod; in p9_xen_write_todo() local 109 prod = ring->intf->out_prod; in p9_xen_write_todo() 113 xen_9pfs_queued(prod, cons, XEN_9PFS_RING_SIZE(ring)) >= size; in p9_xen_write_todo() 119 RING_IDX cons, prod, masked_cons, masked_prod; in p9_xen_request() local 144 prod = ring->intf->out_prod; in p9_xen_request() 148 xen_9pfs_queued(prod, cons, XEN_9PFS_RING_SIZE(ring)) < size) { in p9_xen_request() 153 masked_prod = xen_9pfs_mask(prod, XEN_9PFS_RING_SIZE(ring)); in p9_xen_request() 162 prod += size; in p9_xen_request() 163 ring->intf->out_prod = prod; in p9_xen_request() 175 RING_IDX cons, prod, masked_cons, masked_prod; in p9_xen_response() local [all …]
|
/openbmc/linux/include/xen/interface/io/ |
H A D | ring.h | 405 static inline RING_IDX name##_queued(RING_IDX prod, \ 411 if (prod == cons) \ 414 prod = name##_mask(prod, ring_size); \ 417 if (prod == cons) \ 420 if (prod > cons) \ 421 size = prod - cons; \ 423 size = ring_size - (cons - prod); \
|
/openbmc/qemu/hw/9pfs/ |
H A D | xen-9p-backend.c | 77 RING_IDX cons, prod, masked_prod, masked_cons; in xen_9pfs_in_sg() local 80 prod = ring->intf->in_prod; in xen_9pfs_in_sg() 82 masked_prod = xen_9pfs_mask(prod, XEN_FLEX_RING_SIZE(ring->ring_order)); in xen_9pfs_in_sg() 103 RING_IDX cons, prod, masked_prod, masked_cons; in xen_9pfs_out_sg() local 106 prod = ring->intf->out_prod; in xen_9pfs_out_sg() 108 masked_prod = xen_9pfs_mask(prod, XEN_FLEX_RING_SIZE(ring->ring_order)); in xen_9pfs_out_sg() 232 RING_IDX prod; in xen_9pfs_push_and_notify() local 242 prod = ring->intf->in_prod; in xen_9pfs_push_and_notify() 244 ring->intf->in_prod = prod + pdu->size; in xen_9pfs_push_and_notify() 269 RING_IDX cons, prod, masked_prod, masked_cons, queued; in xen_9pfs_receive() local [all …]
|
/openbmc/linux/Documentation/hwmon/ |
H A D | tmp401.rst | 12 Datasheet: http://focus.ti.com/docs/prod/folders/print/tmp401.html 20 Datasheet: http://focus.ti.com/docs/prod/folders/print/tmp411.html 28 Datasheet: http://focus.ti.com/docs/prod/folders/print/tmp431.html 36 Datasheet: http://focus.ti.com/docs/prod/folders/print/tmp432.html 44 Datasheet: http://focus.ti.com/docs/prod/folders/print/tmp435.html
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | visemul.c | 605 u32 prod = src1 * src2; in pmul() local 606 u16 scaled = ((prod & 0x00ffff00) >> 8); in pmul() 609 if (prod & 0x80) in pmul() 630 u32 prod = src1 * src2; in pmul() local 631 u16 scaled = ((prod & 0x00ffff00) >> 8); in pmul() 634 if (prod & 0x80) in pmul() 655 u32 prod; in pmul() local 660 prod = src1 * src2; in pmul() 661 scaled = ((prod & 0x00ffff00) >> 8); in pmul() 664 if (prod & 0x80) in pmul() [all …]
|
/openbmc/qemu/include/hw/xen/interface/io/ |
H A D | ring.h | 444 static inline RING_IDX name##_queued(RING_IDX prod, \ 450 if (prod == cons) \ 453 prod = name##_mask(prod, ring_size); \ 456 if (prod == cons) \ 459 if (prod > cons) \ 460 size = prod - cons; \ 462 size = ring_size - (cons - prod); \
|
/openbmc/qemu/hw/char/ |
H A D | xen_console.c | 67 XENCONS_RING_IDX cons, prod, size; in OBJECT_DECLARE_SIMPLE_TYPE() local 71 prod = intf->out_prod; in OBJECT_DECLARE_SIMPLE_TYPE() 74 size = prod - cons; in OBJECT_DECLARE_SIMPLE_TYPE() 83 while (cons != prod) in OBJECT_DECLARE_SIMPLE_TYPE() 120 XENCONS_RING_IDX cons, prod, space; in ring_free_bytes() local 123 prod = intf->in_prod; in ring_free_bytes() 126 space = prod - cons; in ring_free_bytes() 143 XENCONS_RING_IDX prod; in xencons_receive() local 151 prod = intf->in_prod; in xencons_receive() 153 intf->in[MASK_XENCONS_IDX(prod++, intf->in)] = in xencons_receive() [all …]
|
/openbmc/linux/include/linux/qed/ |
H A D | qed_chain.h | 208 u32 prod = qed_chain_get_prod_idx(chain); in qed_chain_get_elem_used() local 213 if (prod < cons) in qed_chain_get_elem_used() 214 prod += (u32)U16_MAX + 1; in qed_chain_get_elem_used() 216 used = (u16)(prod - cons); in qed_chain_get_elem_used() 218 used -= (u16)(prod / elem_per_page - cons / elem_per_page); in qed_chain_get_elem_used() 230 u64 prod = qed_chain_get_prod_idx_u32(chain); in qed_chain_get_elem_used_u32() local 235 if (prod < cons) in qed_chain_get_elem_used_u32() 236 prod += (u64)U32_MAX + 1; in qed_chain_get_elem_used_u32() 238 used = (u32)(prod - cons); in qed_chain_get_elem_used_u32() 240 used -= (u32)(prod / elem_per_page - cons / elem_per_page); in qed_chain_get_elem_used_u32()
|
/openbmc/qemu/target/hexagon/ |
H A D | fma_emu.c | 602 Accum prod; in internal_fmafx() local 605 accum_init(&prod); in internal_fmafx() 629 prod.mant = int128_mul_6464(float32_getmant(a), float32_getmant(b)); in internal_fmafx() 635 prod.exp = float32_getexp(a) + float32_getexp(b) - SF_BIAS - 23; in internal_fmafx() 636 prod.sign = a_sign ^ b_sign; in internal_fmafx() 638 prod.exp = -2 * WAY_BIG_EXP; in internal_fmafx() 645 result = accum_add(prod, acc); in internal_fmafx() 650 result = accum_add(prod, acc); in internal_fmafx() 652 result = prod; in internal_fmafx() 671 unsigned long long int prod; in internal_mpyhh() local [all …]
|
/openbmc/linux/sound/usb/line6/ |
H A D | variax.c | 180 #define LINE6_DEVICE(prod) USB_DEVICE(0x0e41, prod) argument 181 #define LINE6_IF_NUM(prod, n) USB_DEVICE_INTERFACE_NUMBER(0x0e41, prod, n) argument
|
/openbmc/qemu/hw/display/ |
H A D | xenfb.c | 131 uint32_t prod; in xenfb_kbd_event() local 138 prod = page->in_prod; in xenfb_kbd_event() 139 if (prod - page->in_cons == XENKBD_IN_RING_LEN) { in xenfb_kbd_event() 145 XENKBD_IN_RING_REF(page, prod) = *event; in xenfb_kbd_event() 147 page->in_prod = prod + 1; in xenfb_kbd_event() 676 uint32_t cons, prod; in xenfb_queue_full() local 681 prod = page->in_prod; in xenfb_queue_full() 683 return prod - cons == XENFB_IN_RING_LEN; in xenfb_queue_full() 688 uint32_t prod; in xenfb_send_event() local 691 prod = page->in_prod; in xenfb_send_event() [all …]
|