/linux-master/virt/lib/ |
H A D | irqbypass.c | 30 static int __connect(struct irq_bypass_producer *prod, argument 35 if (prod->stop) 36 prod->stop(prod); 40 if (prod->add_consumer) 41 ret = prod->add_consumer(prod, cons); 44 ret = cons->add_producer(cons, prod); 45 if (ret && prod->del_consumer) 46 prod 58 __disconnect(struct irq_bypass_producer *prod, struct irq_bypass_consumer *cons) argument [all...] |
/linux-master/drivers/zorro/ |
H A D | names.c | 21 __u16 prod; member in struct:zorro_prod_info 41 #define PRODUCT( manuf, prod, name ) static char __prodstr_##manuf##prod[] __initdata = name; 47 #define PRODUCT( manuf, prod, name ) { 0x##prod, 0, __prodstr_##manuf##prod }, 53 #define PRODUCT( manuf, prod, name ) 79 if (prod_p->prod ==
|
/linux-master/drivers/infiniband/sw/rxe/ |
H A D | rxe_queue.h | 103 u32 prod; local 108 prod = smp_load_acquire(&q->buf->producer_index); 112 prod = q->index; 116 prod = q->buf->producer_index; 120 prod = smp_load_acquire(&q->buf->producer_index); 124 return prod; 156 u32 prod = queue_get_producer(q, type); local 159 return ((prod - cons) & q->index_mask) == 0; 164 u32 prod = queue_get_producer(q, type); local 167 return ((prod 173 u32 prod = queue_get_producer(q, type); local 182 u32 prod; local 253 u32 prod = queue_get_producer(q, type); local [all...] |
/linux-master/drivers/net/can/softing/ |
H A D | softing_platform.h | 13 unsigned int prod; member in struct:softing_platform_data
|
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) argument [all...] |
/linux-master/drivers/xen/xenbus/ |
H A D | xenbus_comms.c | 66 static int check_indexes(XENSTORE_RING_IDX cons, XENSTORE_RING_IDX prod) argument 68 return ((prod - cons) <= XENSTORE_RING_SIZE); 72 XENSTORE_RING_IDX prod, 75 *len = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(prod); 76 if ((XENSTORE_RING_SIZE - (prod - cons)) < *len) 77 *len = XENSTORE_RING_SIZE - (prod - cons); 78 return buf + MASK_XENSTORE_IDX(prod); 82 XENSTORE_RING_IDX prod, 86 if ((prod - cons) < *len) 87 *len = prod 71 get_output_chunk(XENSTORE_RING_IDX cons, XENSTORE_RING_IDX prod, char *buf, uint32_t *len) argument 81 get_input_chunk(XENSTORE_RING_IDX cons, XENSTORE_RING_IDX prod, const char *buf, uint32_t *len) argument 109 XENSTORE_RING_IDX cons, prod; local 161 XENSTORE_RING_IDX cons, prod; local [all...] |
/linux-master/drivers/media/dvb-frontends/ |
H A D | lgs8gxx.c | 47 if (priv->config->prod != LGS8GXX_PROD_LGS8G75 && reg >= 0xC0) 75 if (priv->config->prod != LGS8GXX_PROD_LGS8G75 && reg >= 0xC0) 133 (config->prod == LGS8GXX_PROD_LGS8G52)) { 163 if (priv->config->prod == LGS8GXX_PROD_LGS8G75) { 185 if (priv->config->prod == LGS8GXX_PROD_LGS8G75) 207 u8 prod = priv->config->prod; local 209 if (prod == LGS8GXX_PROD_LGS8913) 212 if (prod == LGS8GXX_PROD_LGS8G75) { 218 } else if (prod [all...] |
H A D | atbm8830.h | 21 u8 prod; member in struct:atbm8830_config
|
H A D | lgs8gxx.h | 28 u8 prod; member in struct:lgs8gxx_config
|
/linux-master/fs/xfs/ |
H A D | xfs_rtalloc.c | 205 xfs_rtxlen_t prod) 210 return rounddown(ret, prod); 215 * bitmap block bbno. If we don't get maxlen then use prod to trim 227 xfs_rtxlen_t prod, /* extent product factor */ 248 maxlen = xfs_rtallocate_clamp_len(mp, i, maxlen, prod); 303 * If size should be a multiple of prod, make that so. 305 if (prod > 1) { 308 div_u64_rem(bestlen, prod, &p); 327 * bno. If we don't get maxlen then use prod to trim the length, if given. 338 xfs_rtxlen_t prod, /* exten 201 xfs_rtallocate_clamp_len( struct xfs_mount *mp, xfs_rtxnum_t startrtx, xfs_rtxlen_t rtxlen, xfs_rtxlen_t prod) argument 220 xfs_rtallocate_extent_block( struct xfs_rtalloc_args *args, xfs_fileoff_t bbno, xfs_rtxlen_t minlen, xfs_rtxlen_t maxlen, xfs_rtxlen_t *len, xfs_rtxnum_t *nextp, xfs_rtxlen_t prod, xfs_rtxnum_t *rtx) argument 332 xfs_rtallocate_extent_exact( struct xfs_rtalloc_args *args, xfs_rtxnum_t start, xfs_rtxlen_t minlen, xfs_rtxlen_t maxlen, xfs_rtxlen_t *len, xfs_rtxlen_t prod, xfs_rtxnum_t *rtx) argument 390 xfs_rtallocate_extent_near( struct xfs_rtalloc_args *args, xfs_rtxnum_t start, xfs_rtxlen_t minlen, xfs_rtxlen_t maxlen, xfs_rtxlen_t *len, xfs_rtxlen_t prod, xfs_rtxnum_t *rtx) argument 544 xfs_rtalloc_sumlevel( struct xfs_rtalloc_args *args, int l, xfs_rtxlen_t minlen, xfs_rtxlen_t maxlen, xfs_rtxlen_t prod, xfs_rtxlen_t *len, xfs_rtxnum_t *rtx) argument 595 xfs_rtallocate_extent_size( struct xfs_rtalloc_args *args, xfs_rtxlen_t minlen, xfs_rtxlen_t maxlen, xfs_rtxlen_t *len, xfs_rtxlen_t prod, xfs_rtxnum_t *rtx) argument 1297 xfs_rtalloc_align_minmax( xfs_rtxlen_t *raminlen, xfs_rtxlen_t *ramaxlen, xfs_rtxlen_t *prod) argument 1333 xfs_rtxlen_t prod = 0; /* product factor for allocators */ local [all...] |
/linux-master/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) argument 120 if (xsk_prod_nb_free(prod, nb) < nb) 123 *idx = prod->cached_prod; 124 prod->cached_prod += nb; 129 static inline void xsk_ring_prod__submit(struct xsk_ring_prod *prod, __u32 nb) argument 134 __atomic_store_n(prod->producer, *prod->producer + nb, __ATOMIC_RELEASE); 137 static inline void xsk_ring_prod__cancel(struct xsk_ring_prod *prod, __u32 nb) argument 139 prod->cached_prod -= nb;
|
/linux-master/include/uapi/linux/ |
H A D | zorro.h | 36 #define ZORRO_ID(manuf, prod, epc) \ 37 ((ZORRO_MANUF_##manuf << 16) | ((prod) << 8) | (epc))
|
/linux-master/net/smc/ |
H A D | smc_cdc.h | 46 union smc_cdc_cursor prod; member in struct:smc_cdc_msg 72 union smcd_cdc_cursor prod; member in struct:smcd_cdc_msg 216 smc_host_cursor_to_cdc(&peer->prod, &local->prod, save, conn); 249 smc_cdc_cursor_to_host(&local->prod, &peer->prod, conn); 261 temp.wrap = peer->prod.wrap; 262 temp.count = peer->prod.count; 263 smc_curs_copy(&local->prod, &temp, conn);
|
H A D | smc_tx.c | 341 union smc_host_cursor *prod, 345 smc_curs_add(conn->peer_rmbe_size, prod, len); 467 union smc_host_cursor sent, prep, prod, cons; local 489 smc_curs_copy(&prod, &conn->local_tx_ctrl.prod, conn); 499 dst_off = prod.count; 500 if (prod.wrap == cons.wrap) { 507 conn->peer_rmbe_size - prod.count, len); 535 smc_tx_advance_cursors(conn, &prod, &sent, len); 537 smc_curs_copy(&conn->local_tx_ctrl.prod, 340 smc_tx_advance_cursors(struct smc_connection *conn, union smc_host_cursor *prod, union smc_host_cursor *sent, size_t len) argument 694 union smc_host_cursor cfed, cons, prod; local [all...] |
/linux-master/sound/usb/line6/ |
H A D | variax.c | 180 #define LINE6_DEVICE(prod) USB_DEVICE(0x0e41, prod) 181 #define LINE6_IF_NUM(prod, n) USB_DEVICE_INTERFACE_NUMBER(0x0e41, prod, n)
|
/linux-master/drivers/accel/ivpu/ |
H A D | ivpu_mmu.h | 27 u32 prod; member in struct:ivpu_mmu_queue
|
/linux-master/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-master/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_xdp.c | 35 u16 prod; local 44 prod = txr->tx_prod; 45 tx_buf = &txr->tx_buf_ring[RING_TX(bp, prod)]; 50 txbd = &txr->tx_desc_ring[TX_RING(bp, prod)][TX_IDX(prod)]; 55 txbd->tx_bd_opaque = SET_TX_OPAQUE(bp, txr, prod, 1 + num_frags); 65 prod = NEXT_TX(prod); 66 WRITE_ONCE(txr->tx_prod, prod); 69 frag_tx_buf = &txr->tx_buf_ring[RING_TX(bp, prod)]; [all...] |
/linux-master/include/linux/qed/ |
H A D | qed_chain.h | 36 /* The chain's size/prod/cons are kept in 16-bit variables */ 39 /* The chain's size/prod/cons are kept in 32-bit variables */ 208 u32 prod = qed_chain_get_prod_idx(chain); local 213 if (prod < cons) 214 prod += (u32)U16_MAX + 1; 216 used = (u16)(prod - cons); 218 used -= (u16)(prod / elem_per_page - cons / elem_per_page); 230 u64 prod = qed_chain_get_prod_idx_u32(chain); local 235 if (prod < cons) 236 prod [all...] |
/linux-master/net/9p/ |
H A D | trans_xen.c | 105 RING_IDX cons, prod; local 108 prod = ring->intf->out_prod; 112 xen_9pfs_queued(prod, cons, XEN_9PFS_RING_SIZE(ring)) >= size; 118 RING_IDX cons, prod, masked_cons, masked_prod; local 143 prod = ring->intf->out_prod; 147 xen_9pfs_queued(prod, cons, XEN_9PFS_RING_SIZE(ring)) < size) { 152 masked_prod = xen_9pfs_mask(prod, XEN_9PFS_RING_SIZE(ring)); 161 prod += size; 162 ring->intf->out_prod = prod; 174 RING_IDX cons, prod, masked_con local [all...] |
/linux-master/tools/usb/usbip/libsrc/ |
H A D | usbip_common.c | 281 const char *prod, *vend; local 283 prod = names_product(vendor, product); 284 if (!prod) 285 prod = "unknown product"; 292 snprintf(buff, size, "%s : %s (%04x:%04x)", vend, prod, vendor, product);
|
/linux-master/sound/usb/ |
H A D | implicit.c | 36 #define IMPLICIT_FB_GENERIC_DEV(vend, prod) \ 37 { .id = USB_ID(vend, prod), .type = IMPLICIT_FB_GENERIC } 38 #define IMPLICIT_FB_FIXED_DEV(vend, prod, ep, ifnum) \ 39 { .id = USB_ID(vend, prod), .type = IMPLICIT_FB_FIXED, .ep_num = (ep),\ 41 #define IMPLICIT_FB_BOTH_DEV(vend, prod, ep, ifnum) \ 42 { .id = USB_ID(vend, prod), .type = IMPLICIT_FB_BOTH, .ep_num = (ep),\ 44 #define IMPLICIT_FB_SKIP_DEV(vend, prod) \ 45 { .id = USB_ID(vend, prod), .type = IMPLICIT_FB_NONE }
|
/linux-master/drivers/net/wireless/realtek/rtlwifi/ |
H A D | usb.h | 11 #define RTL_USB_DEVICE(vend, prod, cfg) \ 14 .idProduct = (prod), \
|
/linux-master/drivers/iommu/arm/arm-smmu-v3/ |
H A D | arm-smmu-v3.c | 111 u32 space, prod, cons; local 113 prod = Q_IDX(q, q->prod); 116 if (Q_WRP(q, q->prod) == Q_WRP(q, q->cons)) 117 space = (1 << q->max_n_shift) - (prod - cons); 119 space = cons - prod; 126 return Q_IDX(q, q->prod) == Q_IDX(q, q->cons) && 127 Q_WRP(q, q->prod) != Q_WRP(q, q->cons); 132 return Q_IDX(q, q->prod) == Q_IDX(q, q->cons) && 133 Q_WRP(q, q->prod) 136 queue_consumed(struct arm_smmu_ll_queue *q, u32 prod) argument 174 u32 prod; local 193 u32 prod = (Q_WRP(q, q->prod) | Q_IDX(q, q->prod)) + n; local 358 arm_smmu_cmdq_build_sync_cmd(u64 *cmd, struct arm_smmu_device *smmu, struct arm_smmu_queue *q, u32 prod) argument 662 u32 prod = llq->prod; local 716 arm_smmu_cmdq_write_entries(struct arm_smmu_cmdq *cmdq, u64 *cmds, u32 prod, int n) argument 753 u32 prod; local [all...] |
/linux-master/drivers/infiniband/hw/bnxt_re/ |
H A D | qplib_res.h | 98 ((HWQ_CMP(hwq->prod, hwq)\ 186 u32 prod; /* raw */ member in struct:bnxt_qplib_hwq 394 idx += hwq->prod; 439 /* move prod and update toggle/epoch if wrap around */ 440 hwq->prod += cnt; 441 if (hwq->prod >= hwq->depth) { 442 hwq->prod %= hwq->depth; 500 indx = (((info->hwq->prod / info->max_slot) & DBC_DBC_INDEX_MASK) |
|