/Linux-v6.1/virt/lib/ |
D | irqbypass.c | 78 * irq_bypass_register_producer - register IRQ bypass producer 79 * @producer: pointer to producer structure 81 * Add the provided IRQ producer to the list of producers and connect 84 int irq_bypass_register_producer(struct irq_bypass_producer *producer) in irq_bypass_register_producer() argument 90 if (!producer->token) in irq_bypass_register_producer() 101 if (tmp->token == producer->token) { in irq_bypass_register_producer() 108 if (consumer->token == producer->token) { in irq_bypass_register_producer() 109 ret = __connect(producer, consumer); in irq_bypass_register_producer() 116 list_add(&producer->node, &producers); in irq_bypass_register_producer() 129 * irq_bypass_unregister_producer - unregister IRQ bypass producer [all …]
|
/Linux-v6.1/net/xdp/ |
D | xsk_queue.h | 17 u32 producer ____cacheline_aligned_in_smp; 19 * pointer if the producer pointer is touched and vice versa. 53 * completion ring, the kernel is the producer and user space is the 55 * user space is the producer. 57 * producer consumer 59 * if (LOAD ->consumer) { (A) LOAD.acq ->producer (C) 61 * STORE.rel ->producer (B) STORE.rel ->consumer (D) 67 * the producer pointer. If this barrier was missing, the consumer 68 * could observe the producer pointer being set and thus load the data 69 * before the producer has written the new data. The consumer would in [all …]
|
/Linux-v6.1/include/linux/ |
D | irqbypass.h | 27 * callbacks. Match tokens must be unique per producer/consumer, 1:N pairings 32 * struct irq_bypass_producer - IRQ bypass producer definition 34 * @token: opaque token to match between producer and consumer (non-NULL) 35 * @irq: Linux IRQ number for the producer device 36 * @add_consumer: Connect the IRQ producer to an IRQ consumer (optional) 37 * @del_consumer: Disconnect the IRQ producer from an IRQ consumer (optional) 41 * The IRQ bypass producer structure represents an interrupt source for 60 * @token: opaque token to match between producer and consumer (non-NULL) 61 * @add_producer: Connect the IRQ consumer to an IRQ producer 62 * @del_producer: Disconnect the IRQ consumer from an IRQ producer
|
D | ptr_ring.h | 14 * single producer and a single consumer CPU. 31 int producer ____cacheline_aligned_in_smp; 36 /* Shared consumer/producer data */ 37 /* Read-only by both the producer and the consumer */ 51 return r->queue[r->producer]; in __ptr_ring_full() 106 if (unlikely(!r->size) || r->queue[r->producer]) in __ptr_ring_produce() 113 WRITE_ONCE(r->queue[r->producer++], ptr); in __ptr_ring_produce() 114 if (unlikely(r->producer >= r->size)) in __ptr_ring_produce() 115 r->producer = 0; in __ptr_ring_produce() 120 * Note: resize (below) nests producer lock within consumer lock, so if you [all …]
|
D | clk.h | 316 * clk_get - lookup and obtain a reference to a clock producer. 320 * Returns a struct clk corresponding to the clock producer, or 323 * the clock producer. (IOW, @id may be identical strings, but 333 * clk_bulk_get - lookup and obtain a number of references to clock producer. 345 * clock consumer, and thereby the clock producer. 356 * producer. 376 * clk_bulk_get_optional - lookup and obtain a number of references to clock producer 381 * Behaves the same as clk_bulk_get() except where there is no clock producer. 383 * NULL for a clk for which a clock producer could not be determined. 408 * producer. In this case, instead of returning -ENOENT, the function returns [all …]
|
/Linux-v6.1/Documentation/core-api/ |
D | circular-buffers.rst | 15 (2) Memory barriers for when the producer and the consumer of objects in the 19 producer and just one consumer. It is possible to handle multiple producers by 30 - The producer. 41 (1) A 'head' index - the point at which the producer inserts items into the 113 (1) CIRC_SPACE*() are intended to be used in the producer. To the producer 114 they will return a lower bound as the producer controls the head index, 118 To the consumer it will show an upper bound as the producer may be busy 123 producer may still be filling the buffer on another CPU and moving the 126 To the producer it will show an upper bound as the consumer may be busy 130 producer and consumer become visible cannot be guaranteed as they are [all …]
|
/Linux-v6.1/tools/testing/selftests/bpf/benchs/ |
D | run_bench_ringbufs.sh | 7 header "Single-producer, parallel producer" 12 header "Single-producer, parallel producer, sampled notification" 17 header "Single-producer, back-to-back mode" 40 header "Single-producer, consumer/producer competing on the same CPU, low batch count" 45 header "Ringbuf, multi-producer contention"
|
D | bench_rename.c | 17 fprintf(stderr, "benchmark doesn't support multi-producer!\n"); in validate() 26 static void *producer(void *input) in producer() function 118 .producer_thread = producer, 129 .producer_thread = producer, 140 .producer_thread = producer, 151 .producer_thread = producer, 162 .producer_thread = producer, 173 .producer_thread = producer,
|
D | bench_local_storage.c | 74 fprintf(stderr, "benchmark doesn't support multi-producer!\n"); in validate() 238 static void *producer(void *input) in producer() function 260 .producer_thread = producer, 271 .producer_thread = producer, 282 .producer_thread = producer,
|
D | bench_bloom_filter_map.c | 122 static void *producer(void *input) in producer() function 433 .producer_thread = producer, 444 .producer_thread = producer, 455 .producer_thread = producer, 466 .producer_thread = producer, 477 .producer_thread = producer,
|
/Linux-v6.1/drivers/mmc/host/ |
D | mmci_qcom_dml.c | 59 /* Read operation: configure DML for producer operation */ in qcom_dma_start() 60 /* Set producer CRCI-x and disable consumer CRCI */ in qcom_dma_start() 66 /* Set the Producer BAM block size */ in qcom_dma_start() 69 /* Set Producer BAM Transaction size */ in qcom_dma_start() 72 /* Set Producer Transaction End bit */ in qcom_dma_start() 76 /* Trigger producer */ in qcom_dma_start() 80 /* Set consumer CRCI-x and disable producer CRCI*/ in qcom_dma_start() 85 /* Clear Producer Transaction End bit */ in qcom_dma_start() 142 /* Disable the producer and consumer CRCI */ in qcom_dma_setup() 164 * Initialize the logical BAM pipe size for producer in qcom_dma_setup() [all …]
|
/Linux-v6.1/kernel/trace/ |
D | ring_buffer_benchmark.c | 33 static struct task_struct *producer; variable 39 MODULE_PARM_DESC(disable_reader, "only run producer"); 52 MODULE_PARM_DESC(producer_nice, "nice prio for producer"); 58 MODULE_PARM_DESC(producer_fifo, "use fifo for producer: 0 - disabled, 1 - low prio, 2 - fifo"); 189 * Continue running until the producer specifically asks to stop in ring_buffer_consumer() 216 /* Wait till the producer wakes us up when there is more data in ring_buffer_consumer() 217 * available or when the producer wants us to finish reading. in ring_buffer_consumer() 314 trace_printk("Running Producer at SCHED_FIFO %s\n", in ring_buffer_producer() 317 trace_printk("Running Producer at nice: %d\n", in ring_buffer_producer() 447 producer = kthread_run(ring_buffer_producer_thread, in ring_buffer_benchmark_init() [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/net/ |
D | mdio-mux-multiplexer.yaml | 14 of a mux producer device. The mux producer can be of any type like mmio mux 15 producer, gpio mux producer or generic register based mux producer. 36 mux: mux-controller { // Mux Producer
|
/Linux-v6.1/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 277 u32 producer; in qlcnic_82xx_change_filter() local 280 producer = tx_ring->producer; in qlcnic_82xx_change_filter() 281 hwdesc = &tx_ring->desc_head[tx_ring->producer]; in qlcnic_82xx_change_filter() 297 tx_ring->producer = get_next_index(producer, tx_ring->num_desc); in qlcnic_82xx_change_filter() 377 u32 producer = tx_ring->producer; in qlcnic_tx_encap_pkt() local 407 hwdesc = &tx_ring->desc_head[producer]; in qlcnic_tx_encap_pkt() 408 tx_ring->cmd_buf_arr[producer].skb = NULL; in qlcnic_tx_encap_pkt() 413 producer = get_next_index(producer, tx_ring->num_desc); in qlcnic_tx_encap_pkt() 416 tx_ring->producer = producer; in qlcnic_tx_encap_pkt() 418 /* Make sure updated tx_ring->producer is visible in qlcnic_tx_encap_pkt() [all …]
|
/Linux-v6.1/tools/testing/selftests/sync/ |
D | sync_stress_consumer.c | 2 * sync stress test: producer/consumer 90 * Every producer increments the counter, the consumer in mpsc_producer_thread() 98 "Error advancing producer timeline\n"); in mpsc_producer_thread() 129 * Make sure we see an increment from every producer thread. in mpcs_consumer_thread() 143 /* Release the producer threads */ in mpcs_consumer_thread() 145 "Failure releasing producer threads\n"); in mpcs_consumer_thread()
|
/Linux-v6.1/include/uapi/linux/ |
D | smc_diag.h | 69 struct smc_diag_cursor rx_prod; /* received producer cursor */ 72 struct smc_diag_cursor tx_prod; /* sent producer cursor */ 74 __u8 rx_prod_flags; /* received producer flags */ 76 __u8 tx_prod_flags; /* sent producer flags */
|
/Linux-v6.1/kernel/bpf/ |
D | ringbuf.c | 20 /* consumer page and producer page */ 27 * into account few extra pages for consumer/producer pages and 41 /* For user-space producer ring buffers, an atomic_t busy bit is used 43 * the spinlock that is used for kernel-producer ring buffers. This is 57 /* Consumer and producer counters are put into separate pages to 64 * Kernel-producer 66 * The producer position and data pages are mapped as r/o in 71 * User-space producer 288 * and allow writable mappings to both the producer in ringbuf_map_mmap_user() 416 /* check for out of ringbuf space by ensuring producer position in __bpf_ringbuf_reserve() [all …]
|
/Linux-v6.1/Documentation/networking/ |
D | af_xdp.rst | 64 single-consumer / single-producer (for performance reasons), the new 121 The UMEM has two single-producer/single-consumer rings that are used 129 TX. All rings are single-producer/single-consumer, so the user-space 138 The rings are head(producer)/tail(consumer) based rings. A producer 140 producer member, and increasing the producer index. A consumer reads 309 rings, and they are single producer, single consumer rings, you need 355 space is a producer. When this option is set in the bind call, the 405 be used. Note, that the rings are single-producer single-consumer, so 486 // __u32 *producer; 492 // __u32 *producer; [all …]
|
/Linux-v6.1/tools/testing/selftests/bpf/ |
D | xsk.c | 100 __u64 producer; member 183 off->rx.producer = off_v1.rx.producer; in xsk_mmap_offsets_v1() 188 off->tx.producer = off_v1.tx.producer; in xsk_mmap_offsets_v1() 193 off->fr.producer = off_v1.fr.producer; in xsk_mmap_offsets_v1() 198 off->cr.producer = off_v1.cr.producer; in xsk_mmap_offsets_v1() 257 fill->producer = map + off.fr.producer; in xsk_create_umem_rings() 273 comp->producer = map + off.cr.producer; in xsk_create_umem_rings() 1110 rx->producer = rx_map + off.rx.producer; in xsk_socket__create_shared() 1114 rx->cached_prod = *rx->producer; in xsk_socket__create_shared() 1131 tx->producer = tx_map + off.tx.producer; in xsk_socket__create_shared() [all …]
|
D | xsk.h | 104 __u32 *producer; \ 182 r->cached_prod = libbpf_smp_load_acquire(r->producer); in xsk_cons_nb_avail() 203 * this to the kernel by writing the producer pointer. in xsk_ring_prod__submit() 205 libbpf_smp_store_release(prod->producer, *prod->producer + nb); in xsk_ring_prod__submit()
|
/Linux-v6.1/drivers/net/wireless/ath/ath11k/ |
D | hal_desc.h | 33 * Producer: SW/FW 508 * Producer: RXDMA 709 * Producer: RXDMA 764 * Indicates the number of times the producer of entries into 806 * Producer: RXDMA 858 * Indicates the number of times the producer of entries into 899 * Producer: SW 1153 * producer of entries into the Ring has looped around the 1162 * use this field to figure out up to where the producer of 1377 * producer of entries into the Ring has looped around the [all …]
|
/Linux-v6.1/include/acpi/ |
D | acrestyp.h | 112 /* Producer/Consumer */ 349 u8 producer_consumer; /* For values, see Producer/Consumer above */ 389 …u8 producer_consumer; /* For values, see Producer/Consumer … 528 u8 producer_consumer; /* For values, see Producer/Consumer above */ 558 u8 producer_consumer; /* For values, see Producer/Consumer above */ 568 u8 producer_consumer; /* For values, see Producer/Consumer above */ 579 u8 producer_consumer; /* For values, see Producer/Consumer above */
|
/Linux-v6.1/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_init.c | 1813 int producer, count = 0; in netxen_post_rx_buffers() local 1817 producer = rds_ring->producer; in netxen_post_rx_buffers() 1833 pdesc = &rds_ring->desc_head[producer]; in netxen_post_rx_buffers() 1838 producer = get_next_index(producer, rds_ring->num_desc); in netxen_post_rx_buffers() 1842 rds_ring->producer = producer; in netxen_post_rx_buffers() 1844 (producer-1) & (rds_ring->num_desc-1)); in netxen_post_rx_buffers() 1849 * receive ring producer in netxen_post_rx_buffers() 1855 ((producer - 1) & in netxen_post_rx_buffers() 1871 int producer, count = 0; in netxen_post_rx_buffers_nodb() local 1877 producer = rds_ring->producer; in netxen_post_rx_buffers_nodb() [all …]
|
/Linux-v6.1/Documentation/PCI/ |
D | acpi-info.rst | 55 ACPI defines a Consumer/Producer bit to distinguish the bridge registers 56 ("Consumer") from the bridge apertures ("Producer") [4, 5], but early 58 spec defines Consumer/Producer only for the Extended Address Space 64 Consumer/Producer meant there was no way to describe bridge registers in 141 General Flags: Bit [0] Consumer/Producer:
|
/Linux-v6.1/Documentation/bpf/ |
D | ringbuf.rst | 128 of consumer/producer, respectively. 162 - producer counter denotes amount of data reserved by all producers. 164 Each time a record is reserved, producer that "owns" the record will 165 successfully advance producer counter. At that point, data is still not yet 178 Producer counter increments are serialized under spinlock, so there is
|