| /linux/virt/lib/ |
| A D | irqbypass.c | 35 if (prod->stop) in __connect() 36 prod->stop(prod); in __connect() 41 ret = prod->add_consumer(prod, cons); in __connect() 46 prod->del_consumer(prod, cons); in __connect() 51 if (prod->start) in __connect() 52 prod->start(prod); in __connect() 61 if (prod->stop) in __disconnect() 62 prod->stop(prod); in __disconnect() 69 prod->del_consumer(prod, cons); in __disconnect() 73 if (prod->start) in __disconnect() [all …]
|
| /linux/drivers/infiniband/sw/rxe/ |
| A D | rxe_queue.h | 103 u32 prod; in queue_get_producer() local 112 prod = q->index; in queue_get_producer() 116 prod = q->buf->producer_index; in queue_get_producer() 124 return prod; in queue_get_producer() 176 return (prod - cons) & q->index_mask; in queue_count() 182 u32 prod; in queue_advance_producer() local 193 prod = q->index; in queue_advance_producer() 194 prod = (prod + 1) & q->index_mask; in queue_advance_producer() 195 q->index = prod; in queue_advance_producer() 201 prod = q->buf->producer_index; in queue_advance_producer() [all …]
|
| /linux/drivers/media/dvb-frontends/ |
| A D | lgs8gxx.c | 133 (config->prod == LGS8GXX_PROD_LGS8G52)) { in lgs8gxx_set_ad_mode() 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() 220 prod == LGS8GXX_PROD_LGS8G42 || in lgs8gxx_set_mode_auto() 221 prod == LGS8GXX_PROD_LGS8G52 || in lgs8gxx_set_mode_auto() 222 prod == LGS8GXX_PROD_LGS8G54) { in lgs8gxx_set_mode_auto() 231 if (prod == LGS8GXX_PROD_LGS8913) { in lgs8gxx_set_mode_auto() [all …]
|
| /linux/drivers/xen/xenbus/ |
| A D | xenbus_comms.c | 72 XENSTORE_RING_IDX prod, in get_output_chunk() argument 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() 109 XENSTORE_RING_IDX cons, prod; in xb_write() local 118 prod = intf->req_prod; in xb_write() 119 if (!check_indexes(cons, prod)) { in xb_write() 145 if (prod <= intf->req_cons) in xb_write() 161 XENSTORE_RING_IDX cons, prod; in xb_read() local 170 prod = intf->rsp_prod; in xb_read() [all …]
|
| /linux/drivers/zorro/ |
| 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/fs/xfs/ |
| A D | xfs_rtalloc.c | 201 xfs_rtxlen_t prod) in xfs_rtalloc_align_len() argument 217 xfs_rtxlen_t prod) in xfs_rtallocate_clamp_len() argument 426 prod, rtx); in xfs_rtallocate_extent_near() 466 &n, prod, rtx); in xfs_rtallocate_extent_near() 644 prod, len, rtx); in xfs_rtallocate_extent_size() 1238 xfs_rtxlen_t *prod) in xfs_rtalloc_align_minmax() argument 1256 *prod = 1; in xfs_rtalloc_align_minmax() 1269 xfs_rtxlen_t prod, in xfs_rtallocate() argument 1318 prod, &rtx); in xfs_rtallocate() 1400 *prod = 1; in xfs_rtallocate_align() [all …]
|
| /linux/drivers/net/can/softing/ |
| 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/ |
| 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/drivers/net/ethernet/broadcom/bnxt/ |
| 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[RING_TX(bp, prod)]; in bnxt_xmit_bd() 50 txbd = &txr->tx_desc_ring[TX_RING(bp, prod)][TX_IDX(prod)]; in bnxt_xmit_bd() 55 txbd->tx_bd_opaque = SET_TX_OPAQUE(bp, txr, prod, 1 + num_frags); 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[RING_TX(bp, prod)]; in bnxt_xmit_bd() 72 txbd = &txr->tx_desc_ring[TX_RING(bp, prod)][TX_IDX(prod)]; in bnxt_xmit_bd() 89 prod = NEXT_TX(prod); in bnxt_xmit_bd() [all …]
|
| /linux/net/smc/ |
| 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()
|
| 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() 537 smc_curs_copy(&conn->local_tx_ctrl.prod, &prod, conn); in smc_tx_rdma_writes() 694 union smc_host_cursor cfed, cons, prod; in smc_tx_consumer_update() local 702 smc_curs_copy(&prod, &conn->local_rx_ctrl.prod, conn); in smc_tx_consumer_update() [all …]
|
| 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/ |
| A D | trans_xen.c | 105 RING_IDX cons, prod; in p9_xen_write_todo() local 108 prod = ring->intf->out_prod; in p9_xen_write_todo() 118 RING_IDX cons, prod, masked_cons, masked_prod; in p9_xen_request() local 143 prod = ring->intf->out_prod; in p9_xen_request() 152 masked_prod = xen_9pfs_mask(prod, XEN_9PFS_RING_SIZE(ring)); in p9_xen_request() 161 prod += size; in p9_xen_request() 162 ring->intf->out_prod = prod; in p9_xen_request() 174 RING_IDX cons, prod, masked_cons, masked_prod; in p9_xen_response() local 184 prod = ring->intf->in_prod; in p9_xen_response() 187 if (xen_9pfs_queued(prod, cons, XEN_9PFS_RING_SIZE(ring)) < in p9_xen_response() [all …]
|
| /linux/include/xen/interface/io/ |
| 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/Documentation/hwmon/ |
| 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
|
| /linux/arch/sparc/kernel/ |
| A D | visemul.c | 605 u32 prod = src1 * src2; in pmul() local 609 if (prod & 0x80) in pmul() 630 u32 prod = src1 * src2; in pmul() local 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() 685 u32 prod; in pmul() local 690 prod = src1 * src2; in pmul() [all …]
|
| /linux/drivers/iommu/arm/arm-smmu-v3/ |
| A D | arm-smmu-v3.c | 109 prod = Q_IDX(q, q->prod); in queue_has_space() 170 u32 prod; in queue_sync_prod_in() local 180 if (Q_OVF(prod) != Q_OVF(q->llq.prod)) in queue_sync_prod_in() 183 q->llq.prod = prod; in queue_sync_prod_in() 189 u32 prod = (Q_WRP(q, q->prod) | Q_IDX(q, q->prod)) + n; in queue_inc_prod_n() local 190 return Q_OVF(q->prod) | Q_WRP(q, prod) | Q_IDX(q, prod); in queue_inc_prod_n() 679 u32 prod = llq->prod; in __arm_smmu_cmdq_poll_until_consumed() local 741 .prod = prod, in arm_smmu_cmdq_write_entries() 773 u32 prod; in arm_smmu_cmdq_issue_cmdlist() local 829 arm_smmu_cmdq_set_valid_map(cmdq, llq.prod, head.prod); in arm_smmu_cmdq_issue_cmdlist() [all …]
|
| /linux/include/linux/qed/ |
| 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/sound/usb/line6/ |
| 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/ |
| 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/drivers/tty/hvc/ |
| A D | hvc_xen.c | 90 XENCONS_RING_IDX cons, prod; in __write_console() local 97 prod = intf->out_prod; in __write_console() 100 if ((prod - cons) > sizeof(intf->out)) { in __write_console() 106 while ((sent < len) && ((prod - cons) < sizeof(intf->out))) in __write_console() 107 intf->out[MASK_XENCONS_IDX(prod++, intf->out)] = data[sent++]; in __write_console() 110 intf->out_prod = prod; in __write_console() 151 XENCONS_RING_IDX cons, prod; in domU_read_console() local 163 prod = intf->in_prod; in domU_read_console() 166 if ((prod - cons) > sizeof(intf->in)) { in domU_read_console() 172 while (cons != prod && recv < len) in domU_read_console()
|
| /linux/tools/usb/usbip/libsrc/ |
| 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/accel/ivpu/ |
| A D | ivpu_mmu.c | 468 ret = REGV_POLL_FLD(IVPU_MMU_REG_CMDQ_CONS, VAL, cmdq->prod, in ivpu_mmu_cmdq_wait_for_cons() 473 cmdq->cons = cmdq->prod; in ivpu_mmu_cmdq_wait_for_cons() 480 return ((IVPU_MMU_Q_IDX(q->prod) == IVPU_MMU_Q_IDX(q->cons)) && in ivpu_mmu_queue_is_full() 481 (IVPU_MMU_Q_WRP(q->prod) != IVPU_MMU_Q_WRP(q->cons))); in ivpu_mmu_queue_is_full() 486 return ((IVPU_MMU_Q_IDX(q->prod) == IVPU_MMU_Q_IDX(q->cons)) && in ivpu_mmu_queue_is_empty() 487 (IVPU_MMU_Q_WRP(q->prod) == IVPU_MMU_Q_WRP(q->cons))); in ivpu_mmu_queue_is_empty() 503 cmdq->prod = (cmdq->prod + 1) & IVPU_MMU_Q_WRAP_MASK; in ivpu_mmu_cmdq_cmd_write() 524 REGV_WR32(IVPU_MMU_REG_CMDQ_PROD, q->prod); in ivpu_mmu_cmdq_sync() 573 mmu->cmdq.prod = 0; in ivpu_mmu_reset() 577 mmu->evtq.prod = 0; in ivpu_mmu_reset() [all …]
|
| /linux/drivers/infiniband/hw/bnxt_re/ |
| A D | qplib_res.h | 99 ((HWQ_CMP(hwq->prod, hwq)\ 187 u32 prod; /* raw */ member 395 idx += hwq->prod; in bnxt_qplib_get_prod_qe() 441 hwq->prod += cnt; in bnxt_qplib_hwq_incr_prod() 442 if (hwq->prod >= hwq->depth) { in bnxt_qplib_hwq_incr_prod() 443 hwq->prod %= hwq->depth; in bnxt_qplib_hwq_incr_prod() 501 indx = (((info->hwq->prod / info->max_slot) & DBC_DBC_INDEX_MASK) | in bnxt_qplib_ring_prod_db()
|
| /linux/drivers/net/xen-netback/ |
| 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()
|