| /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 …]
|
| /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 …]
|
| /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 …]
|
| /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 …]
|
| /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()
|
| /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 …]
|
| /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()
|
| /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_cdc.c | 108 pend->p_cursor = conn->local_tx_ctrl.prod; in smc_cdc_add_pending_send() 246 curs.acurs.counter = atomic64_read(&conn->local_tx_ctrl.prod.acurs); in smcd_cdc_msg_send() 247 cdc.prod.wrap = curs.wrap; in smcd_cdc_msg_send() 248 cdc.prod.count = curs.count; in smcd_cdc_msg_send() 295 smc_curs_copy(&conn->urg_curs, &conn->local_rx_ctrl.prod, conn); in smc_cdc_handle_urg_data_arrival() 337 smc_curs_copy(&prod_old, &conn->local_rx_ctrl.prod, conn); in smc_cdc_msg_recv_action() 377 &conn->local_rx_ctrl.prod); in smc_cdc_msg_recv_action() 453 smcd_curs_copy(&cdc.prod, &data_cdc->prod, conn); in smcd_cdc_rx_tsklet()
|
| /linux/net/9p/ |
| H A D | trans_xen.c | 107 RING_IDX cons, prod; in p9_xen_write_todo() local 110 prod = ring->intf->out_prod; in p9_xen_write_todo() 114 xen_9pfs_queued(prod, cons, XEN_9PFS_RING_SIZE(ring)) >= size; in p9_xen_write_todo() 120 RING_IDX cons, prod, masked_cons, masked_prod; in p9_xen_request() local 145 prod = ring->intf->out_prod; in p9_xen_request() 149 xen_9pfs_queued(prod, cons, XEN_9PFS_RING_SIZE(ring)) < size) { in p9_xen_request() 154 masked_prod = xen_9pfs_mask(prod, XEN_9PFS_RING_SIZE(ring)); in p9_xen_request() 163 prod += size; in p9_xen_request() 164 ring->intf->out_prod = prod; in p9_xen_request() 176 RING_IDX cons, prod, masked_cons, masked_prod; in p9_xen_response() local [all …]
|
| /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); \
|
| /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 …]
|
| /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
|
| H A D | tmp421.rst | 12 Datasheet: http://focus.ti.com/docs/prod/folders/print/tmp421.html 20 Datasheet: http://focus.ti.com/docs/prod/folders/print/tmp421.html 28 Datasheet: http://focus.ti.com/docs/prod/folders/print/tmp421.html
|
| /linux/drivers/iommu/arm/arm-smmu-v3/ |
| H A D | arm-smmu-v3.c | 128 u32 space, prod, cons; in queue_has_space() local 130 prod = Q_IDX(q, q->prod); in queue_has_space() 133 if (Q_WRP(q, q->prod) == Q_WRP(q, q->cons)) in queue_has_space() 134 space = (1 << q->max_n_shift) - (prod - cons); in queue_has_space() 136 space = cons - prod; in queue_has_space() 143 return Q_IDX(q, q->prod) == Q_IDX(q, q->cons) && in queue_full() 144 Q_WRP(q, q->prod) != Q_WRP(q, q->cons); in queue_full() 149 return Q_IDX(q, q->prod) == Q_IDX(q, q->cons) && in queue_empty() 150 Q_WRP(q, q->prod) == Q_WRP(q, q->cons); in queue_empty() 153 static bool queue_consumed(struct arm_smmu_ll_queue *q, u32 prod) in queue_consumed() argument [all …]
|
| /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()
|
| /linux/rust/syn/ |
| H A D | bigint.rs | 63 let prod = *digit * base + carry; in mul_assign() localVariable 64 *digit = prod % 10; in mul_assign() 65 carry = prod / 10; in mul_assign()
|
| /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
|
| /linux/sound/usb/ |
| H A D | implicit.c | 36 #define IMPLICIT_FB_GENERIC_DEV(vend, prod) \ argument 37 { .id = USB_ID(vend, prod), .type = IMPLICIT_FB_GENERIC } 38 #define IMPLICIT_FB_FIXED_DEV(vend, prod, ep, ifnum) \ argument 39 { .id = USB_ID(vend, prod), .type = IMPLICIT_FB_FIXED, .ep_num = (ep),\ 41 #define IMPLICIT_FB_BOTH_DEV(vend, prod, ep, ifnum) \ argument 42 { .id = USB_ID(vend, prod), .type = IMPLICIT_FB_BOTH, .ep_num = (ep),\ 44 #define IMPLICIT_FB_SKIP_DEV(vend, prod) \ argument 45 { .id = USB_ID(vend, prod), .type = IMPLICIT_FB_NONE }
|
| /linux/tools/usb/usbip/libsrc/ |
| H A D | usbip_common.c | 281 const char *prod, *vend; in usbip_names_get_product() local 283 prod = names_product(vendor, product); in usbip_names_get_product() 284 if (!prod) in usbip_names_get_product() 285 prod = "unknown product"; in usbip_names_get_product() 292 snprintf(buff, size, "%s : %s (%04x:%04x)", vend, prod, vendor, product); in usbip_names_get_product()
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | en_tx.c | 194 ring->prod = 0; in mlx4_en_activate_tx_ring() 232 u32 used = READ_ONCE(ring->prod) - READ_ONCE(ring->cons); in mlx4_en_is_tx_ring_full() 370 ring->cons, ring->prod); in mlx4_en_free_tx_buf() 372 if ((u32) (ring->prod - ring->cons) > ring->size) { in mlx4_en_free_tx_buf() 378 while (ring->cons != ring->prod) { in mlx4_en_free_tx_buf() 932 index = ring->prod & ring->size_mask; in mlx4_en_xmit() 933 bf_index = ring->prod; in mlx4_en_xmit() 1021 ((ring->prod & ring->size) ? in mlx4_en_xmit() 1057 ((ring->prod & ring->size) ? in mlx4_en_xmit() 1085 WRITE_ONCE(ring->prod, ring->prod + nr_txbb); in mlx4_en_xmit() [all …]
|
| /linux/drivers/net/xen-netback/ |
| H A D | rx.c | 60 RING_IDX prod, cons; in xenvif_rx_ring_slots_available() local 68 prod = queue->rx.sring->req_prod; in xenvif_rx_ring_slots_available() 71 if (prod - cons >= needed) in xenvif_rx_ring_slots_available() 74 queue->rx.sring->req_event = prod + 1; in xenvif_rx_ring_slots_available() 80 } while (queue->rx.sring->req_prod != prod); in xenvif_rx_ring_slots_available() 512 RING_IDX prod, cons; in xenvif_rx_queue_slots() local 514 prod = queue->rx.sring->req_prod; in xenvif_rx_queue_slots() 517 return prod - cons; in xenvif_rx_queue_slots()
|
| /linux/drivers/infiniband/hw/bnxt_re/ |
| H A D | qplib_fp.h | 368 int cons, prod, avail; in __bnxt_qplib_get_avail() local 371 prod = hwq->prod; in __bnxt_qplib_get_avail() 372 avail = cons - prod; in __bnxt_qplib_get_avail() 373 if (cons <= prod) in __bnxt_qplib_get_avail() 386 avail = hwq->cons - hwq->prod; in bnxt_qplib_queue_full() 387 if (hwq->cons <= hwq->prod) in bnxt_qplib_queue_full()
|
| /linux/include/uapi/linux/ |
| H A D | zorro.h | 36 #define ZORRO_ID(manuf, prod, epc) \ argument 37 ((ZORRO_MANUF_##manuf << 16) | ((prod) << 8) | (epc))
|
| /linux/drivers/iommu/riscv/ |
| H A D | iommu.c | 390 unsigned int prod; in riscv_iommu_queue_send() local 399 prod = atomic_inc_return(&queue->prod) - 1; in riscv_iommu_queue_send() 403 if ((prod - head) > queue->mask) { in riscv_iommu_queue_send() 405 head, (prod - head) < queue->mask, in riscv_iommu_queue_send() 408 } else if ((prod - head) == queue->mask) { in riscv_iommu_queue_send() 419 memcpy(queue->base + Q_ITEM(queue, prod) * entry_size, entry, entry_size); in riscv_iommu_queue_send() 422 if (readx_poll_timeout(atomic_read, &queue->tail, tail, prod == tail, in riscv_iommu_queue_send() 432 riscv_iommu_writel(queue->iommu, Q_TAIL(queue), Q_ITEM(queue, prod + 1)); in riscv_iommu_queue_send() 444 return prod; in riscv_iommu_queue_send() 450 return prod; in riscv_iommu_queue_send() [all …]
|