Searched refs:descriptor (Results 1 - 200 of 2119) sorted by relevance

1234567891011

/linux-4.1.27/include/linux/usb/
H A Dinput.h20 id->vendor = le16_to_cpu(dev->descriptor.idVendor); usb_to_input_id()
21 id->product = le16_to_cpu(dev->descriptor.idProduct); usb_to_input_id()
22 id->version = le16_to_cpu(dev->descriptor.bcdDevice); usb_to_input_id()
H A Dquirks.h30 descriptor */
44 /* device can't handle device_qualifier descriptor requests */
H A Dch9.h26 * its descriptor inside a bundle isn't "naturally aligned", and
30 * particular descriptor type.
/linux-4.1.27/include/linux/
H A Ddynamic_debug.h45 void __dynamic_pr_debug(struct _ddebug *descriptor, const char *fmt, ...);
53 void __dynamic_dev_dbg(struct _ddebug *descriptor, const struct device *dev,
59 void __dynamic_netdev_dbg(struct _ddebug *descriptor,
76 DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
77 if (unlikely(descriptor.flags & _DPRINTK_FLAGS_PRINT)) \
78 __dynamic_pr_debug(&descriptor, pr_fmt(fmt), \
84 DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
85 if (unlikely(descriptor.flags & _DPRINTK_FLAGS_PRINT)) \
86 __dynamic_dev_dbg(&descriptor, dev, fmt, \
92 DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
93 if (unlikely(descriptor.flags & _DPRINTK_FLAGS_PRINT)) \
94 __dynamic_netdev_dbg(&descriptor, dev, fmt, \
101 DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, \
103 if (unlikely(descriptor.flags & _DPRINTK_FLAGS_PRINT)) \
H A Dvfio.h24 * @open: Called when userspace creates new file descriptor for device
25 * @release: Called when userspace releases file descriptor for device
26 * @read: Perform read(2) on device file descriptor
27 * @write: Perform write(2) on device file descriptor
28 * @ioctl: Perform ioctl(2) on device file descriptor, supporting VFIO_DEVICE_*
30 * @mmap: Perform mmap(2) on a region of the device file descriptor
H A Dshdma-base.h42 * in their respective device, channel, descriptor and slave objects.
66 void *desc; /* buffer for descriptor array */
80 * desc_completed: return true, if this is the descriptor, that just has
85 * desc_setup: set up the hardware specific descriptor portion (atomic)
90 * descriptor array
H A Dirqdesc.h19 * struct irq_desc - interrupt descriptor
41 * @nr_actions: number of installed actions on this descriptor
42 * @no_suspend_depth: number of irqactions on a irq descriptor with
44 * @force_resume_depth: number of irqactions on a irq descriptor with
123 * handle an interrupt. If the descriptor is attached to an
H A Dtrace_seq.h28 * @s: trace sequence descriptor
46 * @s: trace sequence descriptor
61 * @s: trace sequence descriptor
/linux-4.1.27/drivers/usb/core/
H A Dotg_whitelist.h54 if ((le16_to_cpu(dev->descriptor.idVendor) == 0x1a0a && is_targeted()
55 le16_to_cpu(dev->descriptor.idProduct) == 0xbadd)) is_targeted()
59 if ((le16_to_cpu(dev->descriptor.idVendor) == 0x1a0a && is_targeted()
60 le16_to_cpu(dev->descriptor.idProduct) == 0x0200)) is_targeted()
68 id->idVendor != le16_to_cpu(dev->descriptor.idVendor)) is_targeted()
72 id->idProduct != le16_to_cpu(dev->descriptor.idProduct)) is_targeted()
78 (id->bcdDevice_lo > le16_to_cpu(dev->descriptor.bcdDevice))) is_targeted()
82 (id->bcdDevice_hi < le16_to_cpu(dev->descriptor.bcdDevice))) is_targeted()
86 (id->bDeviceClass != dev->descriptor.bDeviceClass)) is_targeted()
90 (id->bDeviceSubClass != dev->descriptor.bDeviceSubClass)) is_targeted()
94 (id->bDeviceProtocol != dev->descriptor.bDeviceProtocol)) is_targeted()
105 le16_to_cpu(dev->descriptor.idVendor), is_targeted()
106 le16_to_cpu(dev->descriptor.idProduct)); is_targeted()
H A Dconfig.c29 /* Find the next descriptor of type dt1 or dt2 */ find_next_descriptor()
53 /* The SuperSpeed endpoint companion descriptor is supposed to usb_parse_ss_endpoint_companion()
54 * be the first thing immediately following the endpoint descriptor. usb_parse_ss_endpoint_companion()
164 "invalid endpoint descriptor of length %d, skipping\n", usb_parse_endpoint()
276 /* Parse a possible SuperSpeed endpoint companion descriptor */ usb_parse_endpoint()
282 * find the next endpoint or interface descriptor */ usb_parse_endpoint()
289 dev_dbg(ddev, "skipped %d descriptor%s after %s\n", usb_parse_endpoint()
351 dev_warn(ddev, "Duplicate descriptor for config %d " usb_parse_interface()
362 * find the first endpoint or interface descriptor */ usb_parse_interface()
368 dev_dbg(ddev, "skipped %d descriptor%s after %s\n", usb_parse_interface()
409 "endpoint descriptor%s, different from the interface " usb_parse_interface()
410 "descriptor's value: %d\n", usb_parse_interface()
440 dev_err(ddev, "invalid descriptor for config index %d: " usb_parse_configuration()
466 dev_warn(ddev, "config %d descriptor has %d excess " usb_parse_configuration()
474 dev_warn(ddev, "config %d has an invalid descriptor " usb_parse_configuration()
487 "interface descriptor of length %d, " usb_parse_configuration()
540 "descriptor of type 0x%X, skipping\n", usb_parse_configuration()
549 "the descriptor's value: %d\n", usb_parse_configuration()
584 /* FIXME: parse the BOS descriptor */ usb_parse_configuration()
587 * find the first interface descriptor */ usb_parse_configuration()
593 dev_dbg(ddev, "skipped %d descriptor%s after %s\n", usb_parse_configuration()
638 for (i = 0; i < dev->descriptor.bNumConfigurations; i++) usb_destroy_configuration()
645 for (c = 0; c < dev->descriptor.bNumConfigurations; c++) { usb_destroy_configuration()
669 int ncfg = dev->descriptor.bNumConfigurations; usb_get_configuration()
680 dev->descriptor.bNumConfigurations = ncfg = USB_MAXCONFIG; usb_get_configuration()
704 /* We grab just the first descriptor so we know how long usb_get_configuration()
710 "descriptor/%s: %d\n", cfgno, "start", result); usb_get_configuration()
714 dev->descriptor.bNumConfigurations = cfgno; usb_get_configuration()
717 dev_err(ddev, "config index %d descriptor too short " usb_get_configuration()
740 "descriptor/%s\n", cfgno, "all"); usb_get_configuration()
745 dev_warn(ddev, "config index %d descriptor too short " usb_get_configuration()
763 dev->descriptor.bNumConfigurations = cfgno; usb_get_configuration()
779 /* Get BOS descriptor set */ usb_get_bos_descriptor()
793 /* Get BOS descriptor */ usb_get_bos_descriptor()
796 dev_err(ddev, "unable to get BOS descriptor\n"); usb_get_bos_descriptor()
814 /* Now let's get the whole BOS descriptor set */ usb_get_bos_descriptor()
824 dev_err(ddev, "unable to get BOS descriptor set\n"); usb_get_bos_descriptor()
841 dev_warn(ddev, "descriptor type invalid, skip\n"); usb_get_bos_descriptor()
847 /* Wireless USB cap descriptor is handled by wusb */ usb_get_bos_descriptor()
H A Dhub.h60 struct usb_hub_descriptor *descriptor; /* class descriptor */ member in struct:usb_hub
130 hcs = hub->descriptor->wHubCharacteristics; hub_is_port_power_switchable()
136 return hdev->descriptor.bDeviceProtocol == USB_HUB_PR_SS; hub_is_superspeed()
141 unsigned delay = hub->descriptor->bPwrOn2PwrGood * 2; hub_power_on_good_delay()
H A Dsysfs.c188 bcdUSB = le16_to_cpu(udev->descriptor.bcdUSB); version_show()
300 if (udev->descriptor.bDeviceClass == USB_CLASS_HUB) persist_store()
323 if (udev->descriptor.bDeviceClass != USB_CLASS_HUB) add_persist_attributes()
599 le16_to_cpu(udev->descriptor.field)); \
615 return sprintf(buf, format_string, udev->descriptor.field); \
769 /* The binary attribute begins with the device descriptor. read_descriptors()
770 * Following that are the raw descriptor entries for all the read_descriptors()
774 for (cfgno = -1; cfgno < udev->descriptor.bNumConfigurations && read_descriptors()
777 src = &udev->descriptor; read_descriptors()
801 .size = 18 + 65535, /* dev descr + max-size raw descriptor */
901 le16_to_cpu(udev->descriptor.idVendor), modalias_show()
902 le16_to_cpu(udev->descriptor.idProduct), modalias_show()
903 le16_to_cpu(udev->descriptor.bcdDevice), modalias_show()
904 udev->descriptor.bDeviceClass, modalias_show()
905 udev->descriptor.bDeviceSubClass, modalias_show()
906 udev->descriptor.bDeviceProtocol, modalias_show()
H A Dmessage.c613 * @dev: the device whose descriptor is being retrieved
614 * @type: the descriptor type (USB_DT_*)
615 * @index: the number of the descriptor
616 * @buf: where to put the descriptor
620 * Gets a USB descriptor. Convenience functions exist to simplify
660 * usb_get_string - gets a string descriptor
661 * @dev: the device whose string descriptor is being retrieved
662 * @langid: code for language chosen (from string descriptor zero)
663 * @index: the number of the descriptor
723 /* Try to read the string descriptor by asking for the maximum usb_string_sub()
730 /* If that failed try to read the descriptor length, then usb_string_sub()
742 /* There might be extra junk at the end of the descriptor */ usb_string_sub()
781 dev_err(&dev->dev, "string descriptor 0 read error: %d\n", usb_get_langid()
796 * usb_string - returns UTF-8 version of a string descriptor
797 * @dev: the device whose string descriptor is being retrieved
798 * @index: the number of the descriptor
841 "wrong descriptor type %02x for string %d (\"%s\")\n", usb_string()
854 * usb_cache_string - read a string descriptor and cache it for later use
855 * @udev: the device whose string descriptor is being read
856 * @index: the descriptor index
858 * Return: A pointer to a kmalloc'ed buffer containing the descriptor string,
885 * usb_get_device_descriptor - (re)reads the device descriptor (usbcore)
886 * @dev: the device whose device descriptor is being updated
887 * @size: how much of the descriptor to read
890 * Updates the copy of the device descriptor stored in the device structure,
894 * the device descriptor directly, they can call usb_get_descriptor() with
915 memcpy(&dev->descriptor, desc, size); usb_get_device_descriptor()
1116 * @intf: pointer to the interface descriptor
1241 * @intf: pointer to the interface descriptor
1407 * endpoints from the descriptor does not contain EP0. Due to its usb_set_interface()
1577 le16_to_cpu(usb_dev->descriptor.idVendor), usb_if_uevent()
1578 le16_to_cpu(usb_dev->descriptor.idProduct), usb_if_uevent()
1579 le16_to_cpu(usb_dev->descriptor.bcdDevice), usb_if_uevent()
1580 usb_dev->descriptor.bDeviceClass, usb_if_uevent()
1581 usb_dev->descriptor.bDeviceSubClass, usb_if_uevent()
1582 usb_dev->descriptor.bDeviceProtocol, usb_if_uevent()
1704 for (i = 0; i < dev->descriptor.bNumConfigurations; i++) { usb_set_configuration()
1721 dev_warn(&dev->dev, "config 0 descriptor??\n"); usb_set_configuration()
/linux-4.1.27/sound/soc/fsl/
H A Dfsl_dma.h17 __be32 eclndar; /* Current link descriptor extended addr reg */
18 __be32 clndar; /* Current link descriptor address register */
24 __be32 enlndar; /* Next link descriptor extended address reg */
25 __be32 nlndar; /* Next link descriptor address register */
27 __be32 eclsdar; /* Current list descriptor extended addr reg */
28 __be32 clsdar; /* Current list descriptor address register */
29 __be32 enlsdar; /* Next list descriptor extended address reg */
30 __be32 nlsdar; /* Next list descriptor address register */
103 * list descriptor points to a linked-list of link Descriptors.
106 __be64 next; /* Address of next list descriptor */
107 __be64 first_link; /* Address of first link descriptor */
116 * A Link Descriptor points to a single DMA buffer. Each link descriptor
124 __be64 next; /* Address of next link descriptor */
/linux-4.1.27/drivers/net/ethernet/altera/
H A Daltera_sgdmahw.h20 /* SGDMA descriptor structure */
74 * bit 2: descriptor completed
84 * bit 2: interrupt after every descriptor
87 * bit 5: starts descriptor processing
93 * bit 18: enables descriptor polling mode
115 #define SGDMA_CTRLREG_IDESCRIP BIT(2) /* Interrupt after every descriptor */
116 #define SGDMA_CTRLREG_ILASTD BIT(3) /* Interrupt after last descriptor */
118 #define SGDMA_CTRLREG_START BIT(5) /* starts descriptor processing */
123 #define SGDMA_CTRLREG_POLL BIT(18)/* enables descriptor polling mode */
H A Daltera_msgdmahw.h20 /* mSGDMA extended descriptor format
26 * per descriptor
40 /* mSGDMA descriptor control field bit definitions
53 /* Writing ‘1’ to the ‘go’ bit commits the entire descriptor into the
54 * descriptor FIFO(s)
81 /* mSGDMA extended descriptor stride definitions
H A Daltera_sgdma.c88 netdev_err(priv->dev, "error mapping rx descriptor memory\n"); sgdma_initialize()
98 netdev_err(priv->dev, "error mapping tx descriptor memory\n"); sgdma_initialize()
102 /* Initialize descriptor memory to all 0's, sync memory to cache */ sgdma_initialize()
127 * descriptor memory used for transmits and receives.
131 /* Initialize descriptor memory to 0 */ sgdma_reset()
192 sgdma_setup_descrip(cdesc, /* current descriptor */ sgdma_tx_buffer()
193 ndesc, /* next descriptor */ sgdma_tx_buffer()
279 /* kick the rx sgdma after reaping this descriptor */ sgdma_rx_status()
285 * descriptor is non-zero - meaning a valid packet sgdma_rx_status()
316 /* Clear the next descriptor as not owned by hardware */ sgdma_setup_descrip()
365 sgdma_setup_descrip(cdesc, /* current descriptor */ sgdma_async_read()
366 ndesc, /* next descriptor */ sgdma_async_read()
/linux-4.1.27/drivers/target/loopback/
H A Dtcm_loop.h11 /* State of Linux/SCSI CDB+Data descriptor */
15 /* Pointer to the CDB+Data descriptor from Linux/SCSI subsystem */
17 /* The TCM I/O descriptor that is accessed via container_of() */
/linux-4.1.27/drivers/dma/ioat/
H A Ddma_v2.h30 * workaround for IOAT ver.3.0 null descriptor issue
51 * @prep_lock: serializes descriptor preparation (producers)
104 * struct ioat_ring_ent - wrapper around hardware descriptor
105 * @hw: hardware DMA descriptor (for memcpy)
106 * @fill: hardware fill descriptor
107 * @xor: hardware xor descriptor
108 * @xor_ex: hardware xor extension descriptor
109 * @pq: hardware pq descriptor
110 * @pq_ex: hardware pq extension descriptor
111 * @pqu: hardware pq update descriptor
112 * @raw: hardware raw (un-typed) descriptor
113 * @txd: the generic software descriptor for all engines
H A Ddma.h43 * workaround for IOAT ver.3.0 null descriptor issue
143 * struct ioat_sed_ent - wrapper around super extended hardware descriptor
147 * @parent: point to the dma descriptor that's the parent
168 /* wrapper around hardware descriptor format + additional software fields */
171 * struct ioat_desc_sw - wrapper around hardware descriptor
172 * @hw: hardware DMA descriptor (for memcpy)
173 * @node: this descriptor will either be on the free list,
175 * @txd: the generic software descriptor for all engines
/linux-4.1.27/drivers/dma/
H A Ddmaengine.h22 * dma_cookie_assign - assign a DMA engine cookie to the descriptor
23 * @tx: descriptor needing cookie
25 * Assign a unique non-zero per-channel cookie to the descriptor.
42 * dma_cookie_complete - complete a descriptor
43 * @tx: descriptor to complete
45 * Mark this descriptor complete by updating the channels completed
H A Dvirt-dma.h49 * vchan_tx_prep - prepare a descriptor
50 * vc: virtual channel allocating this descriptor
51 * vd: virtual descriptor to prepare
79 * vchan_cookie_complete - report completion of a descriptor
80 * vd: virtual descriptor to update
100 * vd: virtual descriptor
111 * vchan_next_desc - peek at the next descriptor to be processed
112 * vc: virtual channel to obtain descriptor from
H A Dmv_xor.h97 * @slots_allocated: records the actual size of the descriptor slot pool
102 spinlock_t lock; /* protects the descriptor slot pool */
125 * struct mv_xor_desc_slot - software descriptor
129 * @hw_desc: virtual address of the hardware descriptor chain
130 * @phys: hardware address of the hardware descriptor chain
133 * @tx_list: list of slots that make up a multi-descriptor transaction
148 * This structure describes XOR descriptor size 64bytes. The
150 * phy_src_addr[] array. This is due to the fact that the 'descriptor
158 u32 status; /* descriptor execution status */
161 u32 phy_next_desc; /* next descriptor address pointer */
172 u32 status; /* descriptor execution status */
173 u32 phy_next_desc; /* next descriptor address pointer */
H A Dmic_x100_dma.h53 * DHPR - head of the descriptor ring updated by s/w
54 * DTPR - tail of the descriptor ring updated by h/w
55 * DRAR_LO - lower 32 bits of descriptor ring's mic address
56 * DRAR_HI - 3:0 - remaining 4 bits of descriptor ring's mic address
57 * 20:4 descriptor ring size
96 * @last_tail: cached value of descriptor ring tail
97 * @head: index of next descriptor in desc_ring
101 * @desc_ring: dma descriptor ring
103 * @status_dest: destination for status (fence) descriptor
139 * @max_xfer_size: maximum transfer size per dma descriptor
H A Dep93xx_dma.c113 * struct ep93xx_dma_desc - EP93xx specific transaction descriptor
117 * @complete: this descriptor is completed
118 * @txd: dmaengine API descriptor
153 * flattened DMA descriptor chain.
156 * descriptor in the chain. When a descriptor is moved to the @active queue,
190 * @hw_submit: pushes active descriptor(s) to the hardware
226 * ep93xx_dma_set_active - set new active descriptor chain
228 * @desc: head of the new active descriptor chain
230 * Sets @desc to be the head of the new active descriptor chain. This is the
249 * We copy the callback parameters from the first descriptor ep93xx_dma_set_active()
251 * callback without having to find out the first descriptor in ep93xx_dma_set_active()
272 * ep93xx_dma_advance_active - advances to the next active descriptor
275 * Function advances active descriptor to the next in the @edmac->active and
298 * descriptor in the chain and hence done with it. ep93xx_dma_advance_active()
360 dev_warn(chan2dev(edmac), "M2P: empty descriptor list\n"); m2p_fill_desc()
520 dev_warn(chan2dev(edmac), "M2M: empty descriptor list\n"); m2m_fill_desc()
676 /* Re-initialize the descriptor */ ep93xx_dma_desc_get()
725 /* Take the next descriptor from the pending queue */ ep93xx_dma_advance_work()
753 /* mark descriptor complete for non cyclic case only */ ep93xx_dma_tasklet()
763 /* Pick up the next descriptor from the queue */ ep93xx_dma_tasklet()
814 * ep93xx_dma_tx_submit - set the prepared descriptor(s) to be executed
815 * @tx: descriptor to be executed
817 * Function will execute given descriptor on the hardware or if the hardware
818 * is busy, queue the descriptor to be executed later on. Returns cookie which
819 * can be used to poll the status of the descriptor.
834 * If nothing is currently prosessed, we push this descriptor ep93xx_dma_tx_submit()
835 * directly to the hardware. Otherwise we put the descriptor ep93xx_dma_tx_submit()
972 * @flags: flags for the descriptor
974 * Returns a valid DMA descriptor or %NULL in case of failure.
988 dev_warn(chan2dev(edmac), "couln't get descriptor\n"); ep93xx_dma_prep_dma_memcpy()
1019 * @flags: flags for the descriptor
1022 * Returns a valid DMA descriptor or %NULL in case of failure.
1058 dev_warn(chan2dev(edmac), "couln't get descriptor\n"); for_each_sg()
1094 * @flags: tx descriptor status flags
1096 * Prepares a descriptor for cyclic DMA operation. This means that once the
1097 * descriptor is submitted, we will be submitting in a @period_len sized
1102 * Returns a valid DMA descriptor or %NULL in case of failure.
1136 dev_warn(chan2dev(edmac), "couln't get descriptor\n"); ep93xx_dma_prep_dma_cyclic()
H A Dxgene-dma.c160 /* X-Gene DMA descriptor empty s/w signature */
189 /* X-Gene DMA descriptor error codes */
222 /* X-Gene DMA SW descriptor flags */
225 /* Define to dump X-Gene DMA descriptor */
294 * @lock: serializes enqueue/dequeue operations to the descriptor pool
304 * @desc_pool: descriptor pool for DMA operations
306 * @tx_ring: transmit ring descriptor that we use to prepare actual
308 * @rx_ring: receive ring descriptor that we use to get completed DMA
378 [ERR_BAD_DESC_INT] = "Ring descriptor HE0 not set error",
465 /* Get 1st descriptor */ xgene_dma_prep_cpy_desc()
483 * and need to use 2nd descriptor xgene_dma_prep_cpy_desc()
497 /* Updated flag that we have prepared 64B descriptor */ xgene_dma_prep_cpy_desc()
501 /* Hardware stores descriptor in little endian format */ xgene_dma_prep_cpy_desc()
520 /* Initialize DMA descriptor */ xgene_dma_prep_xor_desc()
542 /* Hardware stores descriptor in little endian format */ xgene_dma_prep_xor_desc()
550 /* We need always 64B descriptor to perform xor or pq operations */ xgene_dma_prep_xor_desc()
621 /* Run the callback for each descriptor, in order */ xgene_dma_clean_completed_descriptor()
629 * xgene_dma_run_tx_complete_actions - cleanup a single link descriptor
631 * @desc: descriptor to cleanup and free
633 * This function is used on a descriptor which has been executed by the DMA
653 /* Run the link descriptor callback function */ xgene_dma_run_tx_complete_actions()
664 * xgene_dma_clean_running_descriptor - move the completed descriptor from
667 * @desc: the descriptor which is completed
669 * Free the descriptor directly if acked by async_tx api,
684 * Move this descriptor to the list of descriptors which is xgene_dma_clean_running_descriptor()
700 /* Check if can push more descriptor to hw for execution */ xgene_chan_xfer_request()
704 /* Get hw descriptor from DMA tx ring */ xgene_chan_xfer_request()
709 * descriptor for next time xgene_chan_xfer_request()
714 /* Copy prepared sw descriptor data to hw descriptor */ xgene_chan_xfer_request()
718 * Check if we have prepared 64B descriptor, xgene_chan_xfer_request()
719 * in this case we need one more hw descriptor xgene_chan_xfer_request()
730 /* Notify the hw that we have descriptor ready for execution */ xgene_chan_xfer_request()
805 /* Run the callback for each descriptor, in order */ xgene_dma_cleanup_descriptors()
807 /* Get subsequent hw descriptor from DMA rx ring */ xgene_dma_cleanup_descriptors()
810 /* Check if this descriptor has been completed */ xgene_dma_cleanup_descriptors()
841 /* Notify the hw about this completed descriptor */ xgene_dma_cleanup_descriptors()
844 /* Mark this hw descriptor as processed */ xgene_dma_cleanup_descriptors()
878 chan_err(chan, "Failed to allocate descriptor pool\n"); xgene_dma_alloc_chan_resources()
923 /* Process all running descriptor */ xgene_dma_free_chan_resources()
926 /* Clean all link descriptor queues */ xgene_dma_free_chan_resources()
952 /* Allocate the link descriptor from DMA pool */ xgene_dma_prep_memcpy()
960 /* Prepare DMA descriptor */ xgene_dma_prep_memcpy()
974 /* Insert the link descriptor to the LD ring */ xgene_dma_prep_memcpy()
1031 /* Allocate the link descriptor from DMA pool */ xgene_dma_prep_sg()
1036 /* Prepare DMA descriptor */ xgene_dma_prep_sg()
1049 /* Insert the link descriptor to the LD ring */ xgene_dma_prep_sg()
1115 /* Allocate the link descriptor from DMA pool */ xgene_dma_prep_xor()
1120 /* Prepare xor DMA descriptor */ xgene_dma_prep_xor()
1130 /* Insert the link descriptor to the LD ring */ xgene_dma_prep_xor()
1165 * prepare two descriptor to generate P and Q if both enabled xgene_dma_prep_pq()
1177 /* Allocate the link descriptor from DMA pool */ xgene_dma_prep_pq()
1188 /* Insert the link descriptor to the LD ring */ xgene_dma_prep_pq()
1192 * Prepare DMA descriptor to generate P, xgene_dma_prep_pq()
1202 * Prepare DMA descriptor to generate Q, xgene_dma_prep_pq()
1435 /* De-allocate DMA ring descriptor */ xgene_dma_delete_ring_one()
1453 /* Setup DMA ring descriptor variables */ xgene_dma_create_ring_one()
1463 /* Allocate memory for DMA ring descriptor */ xgene_dma_create_ring_one()
1484 /* Create DMA Rx ring descriptor */ xgene_dma_create_chan_rings()
1496 /* Create DMA Tx ring descriptor */ xgene_dma_create_chan_rings()
1954 /* Get DMA Rx ring descriptor interrupts for all DMA channels */ xgene_dma_get_resources()
H A Dat_hdmac.c96 * atc_alloc_descriptor - allocate and return an initialized descriptor
100 * Note: The ack-bit is positioned in the descriptor flag at creation time
127 * atc_desc_get - get an unused descriptor from free_list
128 * @atchan: channel we want a new descriptor for
153 /* no more descriptor available in initial pool: create one more */ atc_desc_get()
170 * atc_desc_put - move a descriptor, including any children, to the free list
172 * @desc: descriptor, at the head of a chain, to move to free list
194 * atc_desc_chain - build chain adding a descriptor
195 * @first: address of first descriptor of the chain
196 * @prev: address of previous descriptor of the chain
197 * @desc: descriptor to queue
209 /* insert the link descriptor to the LD ring */ atc_desc_chain()
219 * @first: first descriptor in the list we want to begin with
256 * atc_get_desc_by_cookie - get the descriptor of a cookie
258 * @cookie: the cookie to get the descriptor for
284 * @desc: the descriptor containing the transfer width
298 * @desc: the descriptor containing the transfer width
341 * To get the current child descriptor we can use the value of atc_get_bytes_left()
344 * descriptor. atc_get_bytes_left()
351 /* for the first descriptor we can be more accurate */ atc_get_bytes_left()
364 * For the last descriptor in the chain we can calculate atc_get_bytes_left()
367 * descriptor may differ. atc_get_bytes_left()
382 * @desc: descriptor at the head of the chain we want do complete
391 "descriptor %u complete\n", txd->cookie); atc_chain_complete()
393 /* mark the descriptor as complete for non cyclic cases only */ atc_chain_complete()
487 * The descriptor currently at the head of the active list is atc_handle_error()
505 * descriptor, we should consider ourselves lucky that the atc_handle_error()
510 "Bad descriptor submitted for DMA!\n"); atc_handle_error()
517 /* Pretend the descriptor completed successfully */ atc_handle_error()
604 * atc_tx_submit - set the prepared descriptor(s) to be executed by the engine
605 * @desc: descriptor at the head of the transaction chain
643 * @flags: tx descriptor status flags
701 /* First descriptor of the chain embedds additional information */ atc_prep_dma_memcpy()
709 /* set end-of-link to the last link descriptor of list*/ atc_prep_dma_memcpy()
728 * @flags: tx descriptor status flags
850 /* set end-of-link to the last link descriptor of list*/
853 /* First descriptor of the chain embedds additional information */
861 /* first link descriptor of list is responsible of flags */
880 * @flags: tx descriptor status flags
980 * the last descriptor, its easier to set it to all descriptors. atc_prep_dma_sg()
995 /* First descriptor of the chain embedds additional information */ atc_prep_dma_sg()
999 /* set end-of-link to the last link descriptor of list*/ atc_prep_dma_sg()
1033 * atc_dma_cyclic_fill_desc - Fill one period descriptor
1091 * @flags: tx descriptor status flags
1154 /* First descriptor of the chain embedds additional information */ atc_prep_dma_cyclic()
1349 * @chan: allocate descriptor resources for this channel
1440 dev_vdbg(chan2dev(chan), " freeing descriptor %p\n", desc); atc_free_chan_resources()
1442 /* free link descriptor */ atc_free_chan_resources()
1856 /* next descriptor address in the cyclic list */ atc_suspend_cyclic()
1890 * next descriptor in the cyclic list at the time of suspend */ atc_resume_cyclic()
H A Ddma-jz4780.c90 * struct jz4780_dma_hwdesc - descriptor structure read by the DMA controller.
95 * to transfer) in the low 24 bits, offset of the next descriptor from the
96 * descriptor base address in the upper 8 bits.
110 /* Size of allocations for hardware descriptor blocks. */
320 /* Automatically proceeed to the next descriptor. */ jz4780_dma_prep_slave_sg()
324 * The upper 8 bits of the DTC field in the descriptor jz4780_dma_prep_slave_sg()
325 * must be set to (offset from descriptor base of next jz4780_dma_prep_slave_sg()
326 * descriptor >> 4). jz4780_dma_prep_slave_sg()
365 * automatically proceed to the next descriptor. In jz4780_dma_prep_dma_cyclic()
372 * The upper 8 bits of the DTC field in the descriptor must be jz4780_dma_prep_dma_cyclic()
373 * set to (offset from descriptor base of next descriptor >> 4). jz4780_dma_prep_dma_cyclic()
374 * If this is the last descriptor, link it back to the first, jz4780_dma_prep_dma_cyclic()
435 * interrupt after processing each descriptor, only jz4780_dma_begin()
445 * completion of processing the previous descriptor. jz4780_dma_begin()
463 /* Write descriptor address and initiate descriptor fetch. */ jz4780_dma_begin()
654 "failed to allocate descriptor pool\n"); jz4780_dma_alloc_chan_resources()
H A Dfsldma.c48 static const char msg_ld_oom[] = "No free memory for link descriptor";
185 * - the CDAR register must point to the start descriptor
392 * Add the hardware descriptor to the chain of hardware descriptors append_ld_queue()
396 * last link in this transaction will become the EOL descriptor. append_ld_queue()
401 * Add the software descriptor and all children to the list append_ld_queue()
442 * fsl_dma_free_descriptor - Free descriptor from channel's DMA pool.
444 * @desc: descriptor to be freed
455 * fsl_dma_alloc_descriptor - Allocate descriptor from channel's DMA pool.
458 * Return - The descriptor allocated. NULL for failed.
467 chan_dbg(chan, "out of memory for link descriptor\n"); fsl_dma_alloc_descriptor()
494 /* Run the callback for each descriptor, in order */ fsldma_clean_completed_descriptor()
501 * fsldma_run_tx_complete_actions - cleanup a single link descriptor
503 * @desc: descriptor to cleanup and free
506 * This function is used on a descriptor which has been executed by the DMA
520 /* Run the link descriptor callback function */ fsldma_run_tx_complete_actions()
534 * fsldma_clean_running_descriptor - move the completed descriptor from
537 * @desc: the descriptor which is completed
539 * Free the descriptor directly if acked by async_tx api, or move it to
554 * Move this descriptor to the list of descriptors which is fsldma_clean_running_descriptor()
621 * Program the descriptor's address into the DMA controller, fsl_chan_xfer_ld_queue()
649 /* Run the callback for each descriptor, in order */ fsldma_cleanup_descriptors()
652 * do not advance past the current descriptor loaded into the fsldma_cleanup_descriptors()
660 * stop the search if we reach the current descriptor and the fsldma_cleanup_descriptors()
690 * This function will create a dma pool for descriptor allocation.
703 * We need the descriptor to be aligned to 32bytes fsl_dma_alloc_chan_resources()
710 chan_err(chan, "unable to allocate descriptor pool\n"); fsl_dma_alloc_chan_resources()
714 /* there is at least one descriptor free to be allocated */ fsl_dma_alloc_chan_resources()
782 /* Allocate the link descriptor from DMA pool */ fsl_dma_prep_memcpy()
808 /* Insert the link descriptor to the LD ring */ fsl_dma_prep_memcpy()
815 /* Set End-of-link to the last link descriptor of new list */ fsl_dma_prep_memcpy()
867 /* allocate and populate the descriptor */ fsl_dma_prep_sg()
887 /* Insert the link descriptor to the LD ring */ fsl_dma_prep_sg()
931 /* Set End-of-link to the last link descriptor of new list */ fsl_dma_prep_sg()
H A Dat_hdmac_regs.h120 #define ATC_DONE (0x1 << 31) /* Tx Done (only written back in descriptor) */
167 /* LLI == Linked List Item; aka DMA buffer descriptor */
180 * struct at_desc - software descriptor
184 * @len: descriptor byte count
233 * @save_dscr: for cyclic operations, preserve next descriptor address in
241 * @descs_allocated: records the actual size of the descriptor pool
317 * @dma_desc_pool: base of DMA descriptor region (DMA address)
438 * set_desc_eol - set end-of-link to descriptor so it will end transfer
439 * @desc: descriptor, signle or at the end of a chain, to end chain on
H A Diop-adma.c44 * iop_adma_free_slots - flags descriptor slots for reuse
98 /* leave the last descriptor in the chain iop_adma_clean_slot()
124 * the oldest descriptor __iop_adma_slot_cleanup()
136 /* do not advance past the current descriptor loaded into the __iop_adma_slot_cleanup()
143 /* stop the search if we reach the current descriptor and the __iop_adma_slot_cleanup()
144 * channel is busy, or if it appears that the current descriptor __iop_adma_slot_cleanup()
225 /* write back zero sum results (single descriptor case) */ __iop_adma_slot_cleanup()
323 /* pre-ack all but the last descriptor */ iop_adma_alloc_slots()
421 * @chan - allocate descriptor resources for this channel
440 /* Allocate descriptor slots */ iop_adma_alloc_chan_resources()
449 " %d descriptor slots", idx); iop_adma_alloc_chan_resources()
477 "allocated %d descriptor slots last_used: %p\n", iop_adma_alloc_chan_resources()
1311 dev_dbg(&pdev->dev, "%s: allocated descriptor pool virt %p phys %p\n", iop_adma_probe()
1483 /* set the descriptor address */ iop_chan_start_null_memcpy()
1491 /* run the descriptor */ iop_chan_start_null_memcpy()
1495 "failed to allocate null descriptor\n"); iop_chan_start_null_memcpy()
1536 /* set the descriptor address */ iop_chan_start_null_xor()
1544 /* run the descriptor */ iop_chan_start_null_xor()
1548 "failed to allocate null descriptor\n"); iop_chan_start_null_xor()
/linux-4.1.27/drivers/hid/
H A Dhid-holtek-mouse.c5 * descriptor.
22 * The report descriptor of some Holtek based gaming mice specifies an
24 * HID_MAX_USAGES. This prevents proper parsing of the report descriptor.
26 * This driver fixes the report descriptor for:
49 hid_info(hdev, "Fixing up report descriptor\n"); holtek_mouse_report_fixup()
58 hid_info(hdev, "Fixing up report descriptor\n"); holtek_mouse_report_fixup()
H A Dhid-elecom.c4 * the HID descriptor.
27 hid_info(hdev, "Fixing up Elecom BM084 report descriptor\n"); elecom_report_fixup()
H A Dhid-ortek.c4 * value in their HID report descriptor. Currently supported devices are:
31 hid_info(hdev, "Fixing up logical minimum in report descriptor (Ortek)\n"); ortek_report_fixup()
34 hid_info(hdev, "Fixing up logical minimum in report descriptor (Skycable)\n"); ortek_report_fixup()
H A Dhid-cherry.c25 * Cherry Cymotion keyboard have an invalid HID report descriptor,
32 hid_info(hdev, "fixing up Cherry Cymotion report descriptor\n"); ch_report_fixup()
H A Dhid-keytouch.c20 /* Replace the broken report descriptor of this device with rather
33 hid_info(hdev, "fixing up Keytouch IEC report descriptor\n"); keytouch_report_fixup()
H A Dhid-holtek-kbd.c22 * - The report descriptor specifies an excessively large number of consumer
24 * parsing of the report descriptor.
25 * - The report descriptor reports on caps/scroll/num lock key presses, but
28 * The replacement descriptor below fixes the number of consumer usages,
34 /* Original report descriptor, with reduced number of consumer usages */
H A Dhid-samsung.c40 * 1. 184 byte report descriptor
47 * 2. 203 byte report descriptor
50 * 3. 135 byte report descriptor
53 * 4. 171 byte report descriptor
59 hid_info(hdev, "fixing up Samsung IrDA %d byte report descriptor\n", samsung_irda_dev_trace()
H A Dhid-aureal.c24 dev_info(&hdev->dev, "fixing Aureal Cy se W-01RN USB_V3.1 report descriptor.\n"); aureal_report_fixup()
H A Dhid-saitek.c5 * Fixes the HID report descriptor by removing a non-existent axis and
49 hid_err(hdev, "can't alloc saitek descriptor\n"); saitek_probe()
83 hid_info(hdev, "Fixing up Saitek PS1000 report descriptor\n"); saitek_report_fixup()
143 * according to the HID report descriptor saitek_raw_event()
H A Dhid-speedlink.c4 * the HID descriptor.
35 * It sends a standard keyboard report descriptor, though, whose speedlink_input_mapping()
H A Dhid-uclogic.c31 /* Size of the original descriptor of WPXXXXU tablets */
34 /* Fixed WP4030U report descriptor */
76 /* Fixed WP5540U report descriptor */
150 /* Fixed WP8060U report descriptor */
229 /* Size of the original descriptor of WP1062 tablet */
232 /* Fixed WP1062 report descriptor */
282 /* Size of the original descriptor of PF1209 tablet */
285 /* Fixed PF1209 report descriptor */
369 /* Fixed PID 0522 tablet report descriptor, interface 0 (stylus) */
412 /* Fixed PID 0522 tablet report descriptor, interface 1 (mouse) */
449 /* Fixed PID 0522 tablet report descriptor, interface 2 (frame buttons) */
481 /* Fixed TWHA60 report descriptor, interface 0 (stylus) */
527 /* Fixed TWHA60 report descriptor, interface 1 (frame buttons) */
552 /* Report descriptor template placeholder head */
555 /* Report descriptor template placeholder IDs */
565 /* Report descriptor template placeholder */
569 /* Fixed report descriptor template */
797 * Read string descriptor containing tablet parameters. The specific uclogic_tablet_enable()
798 * string descriptor and data were discovered by sniffing the Windows uclogic_tablet_enable()
844 /* Allocate fixed report descriptor */ uclogic_tablet_enable()
855 /* Format fixed report descriptor */ uclogic_tablet_enable()
H A Dhid-zydacron.c27 * Zydacron remote control has an invalid HID report descriptor,
38 "fixing up zydacron remote control report descriptor\n"); zc_report_fixup()
174 hid_err(hdev, "can't alloc descriptor\n"); zc_probe()
/linux-4.1.27/drivers/usb/gadget/
H A Dusbstring.c23 * usb_gadget_get_string - fill out a string descriptor
25 * @id: string id, from low byte of wValue in get string descriptor
29 * string descriptor in utf16-le.
30 * Returns length of descriptor (always even) or negative errno
33 * "switch (wIndex) { ... }" in your ep0 string descriptor logic,
45 /* descriptor 0 has the language id */ usb_gadget_get_string()
H A Dconfig.c28 * @src: Array of descriptor pointers, terminated by null pointer.
45 /* fill buffer from src[] until null descriptor ptr */ usb_descriptor_fillbuf()
60 * usb_gadget_config_buf - builts a complete configuration descriptor
61 * @config: Header for the descriptor, including characteristics such
65 * @buf: Buffer for the resulting configuration descriptor.
67 * entire configuration descriptor, an error code will be returned.
69 * This copies descriptors into the response buffer, building a descriptor
72 * of the result, but other descriptor fields (including power usage and
75 * Gadget drivers could use this when constructing a config descriptor
89 /* config descriptor first */ usb_gadget_config_buf()
103 /* patch up the config descriptor */ usb_gadget_config_buf()
H A Depautoconf.c39 * descriptor; and isn't specific to a configuration or altsetting.
115 * descriptor and see if the EP matches it ep_matches()
205 * descriptor and ep companion descriptor
207 * @desc: Endpoint descriptor, with endpoint direction and transfer mode
211 * @ep_comp: Endpoint companion descriptor, with the required
220 * By choosing an endpoint to use with the specified descriptor,
223 * passed later to usb_ep_enable(), along with some descriptor.
225 * That second descriptor won't always be the same as the first one.
237 * descriptor bEndpointAddress. For bulk endpoints, the wMaxPacket value
239 * the bmAttribute field in the ep companion descriptor is
245 * On failure, this returns a null endpoint descriptor.
322 * descriptor
324 * @desc: Endpoint descriptor, with endpoint direction and transfer mode
328 * By choosing an endpoint to use with the specified descriptor, this
331 * usb_ep_enable(), along with some descriptor.
333 * That second descriptor won't always be the same as the first one.
344 * descriptor bEndpointAddress. For bulk endpoints, the wMaxPacket value
349 * On failure, this returns a null endpoint descriptor.
/linux-4.1.27/arch/cris/arch-v32/kernel/
H A Dcache.c10 /* Flush descriptor to make sure we get correct in_eop and after. */ flush_dma_descr()
12 /* Flush buffer pointed out by descriptor. */ flush_dma_descr()
/linux-4.1.27/arch/ia64/include/uapi/asm/
H A Dsetup.h11 __u64 efi_memdesc_size; /* size of an EFI memory map descriptor */
12 __u32 efi_memdesc_version; /* memory descriptor version */
/linux-4.1.27/arch/mips/include/asm/mach-bcm63xx/
H A Dbcm63xx_iudma.h7 * rx/tx dma descriptor
/linux-4.1.27/drivers/net/ethernet/samsung/sxgbe/
H A Dsxgbe_desc.h126 /* Context descriptor structure */
161 /* DMA TX descriptor ring initialization */
164 /* Invoked by the xmit function to prepare the tx descriptor */
169 /* Assign buffer lengths for descriptor */
176 /* Set the owner of the descriptor */
179 /* Get the owner of the descriptor */
182 /* Invoked by the xmit function to close the tx descriptor */
185 /* Clean the tx descriptor as soon as the tx irq is received */
196 /* Get the buffer size from the descriptor */
208 /* Set the owner of the TX context descriptor */
211 /* Get the owner of the TX context descriptor */
245 /* Close TX context descriptor */
248 /* WB status of context descriptor */
251 /* DMA RX descriptor ring initialization */
H A Dsxgbe_desc.c25 /* DMA TX descriptor ring initialization */ sxgbe_init_tx_desc()
41 /* Assign buffer lengths for descriptor */ sxgbe_prepare_tx_desc()
60 /* Set the owner of Normal descriptor */ sxgbe_set_tx_owner()
66 /* Get the owner of Normal descriptor */ sxgbe_get_tx_owner()
72 /* Invoked by the xmit function to close the tx descriptor */ sxgbe_close_tx_desc()
79 /* Clean the tx descriptor as soon as the tx irq is received */ sxgbe_release_tx_desc()
99 /* Get the buffer size from the descriptor */ sxgbe_get_tx_len()
123 /* Set the owner of TX context descriptor */ sxgbe_tx_ctxt_desc_set_owner()
129 /* Get the owner of TX context descriptor */ sxgbe_tx_ctxt_desc_get_owner()
203 /* Close TX context descriptor */ sxgbe_tx_ctxt_desc_close()
209 /* WB status of context descriptor */ sxgbe_tx_ctxt_desc_get_cde()
215 /* DMA RX descriptor ring initialization */ sxgbe_init_rx_desc()
407 /* Get own bit of context descriptor */ sxgbe_get_rx_ctxt_owner()
413 /* Set own bit for context descriptor */ sxgbe_set_ctxt_rx_owner()
/linux-4.1.27/lib/
H A Dseq_buf.c6 * The seq_buf is a handy tool that allows you to pass a descriptor around
11 * This will set up the counters within the descriptor. You can call
21 * @s: the seq_buf descriptor
34 * @m: the seq_file descriptor that is the destination
35 * @s: the seq_buf descriptor that is the source.
48 * @s: seq_buf descriptor
75 * @s: seq_buf descriptor
97 * @s: seq_buf descriptor
133 * @s: seq_buf descriptor
157 * @s: seq_buf descriptor
178 * @s: seq_buf descriptor
206 * @s: seq_buf descriptor
252 * @s: seq_buf descriptor
283 * @s: seq_buf descriptor
/linux-4.1.27/arch/tile/include/arch/
H A Dtrio_shm.h27 * The TRIO DMA descriptor is written by software and consumed by hardware.
57 * 1 : Chained buffer pointer. Next buffer descriptor (e.g. VA) stored
59 * buffer contain the next buffer descriptor formatted exactly like a PDE
60 * buffer descriptor. This allows a chained PDE buffer to be sent using
92 * Generation number. Used to indicate a valid descriptor in ring. When
93 * a new descriptor is written into the ring, software must toggle this
H A Dmpipe_shm.h27 * The eDMA descriptor is written by software and consumed by hardware. It
41 * Generation number. Used to indicate a valid descriptor in ring. When
42 * a new descriptor is written into the ring, software must toggle this
49 * descriptor to select the egress FIFO. The associated DMA ring must
68 * command. Must be clear on all but the last descriptor for an egress
75 * Number of bytes to be sent for this descriptor. When zero, no data
76 * will be moved and the buffer descriptor will be ignored. If the
77 * buffer descriptor indicates that it is chained, the low 7 bits of the
81 * processing the next eDMA descriptor in the ring.
88 * byte moved by this descriptor. Must be zero if CSUM=0 in this
89 * descriptor. Must be less than XFER_SIZE (e.g. the first byte of the
90 * CSUM_DEST must be within the span of this descriptor).
95 * descriptor. If this is not the first descriptor for the egress
97 * descriptor. Must be zero if CSUM=0 in this descriptor.
105 * Must be zero if CSUM=0 in this descriptor.
142 * whether the INST field in the buffer descriptor is populated by iDMA
155 * indicates a chained packet. If an eDMA descriptor is not chained and
193 * The packet descriptor is filled by the mPIPE's classification,
207 * Notification ring into which this packet descriptor is written.
253 * select the ring into which this packet descriptor is written.
273 * descriptor should both be dropped, both be delivered, or only the
274 * descriptor should be delivered.
296 * sequence number when the packet descriptor is written to a
304 * descriptors whose C field indicates a valid descriptor was consumed.
471 * whether the INST field in the buffer descriptor is populated by iDMA
484 * indicates a chained packet. If an eDMA descriptor is not chained and
H A Dmpipe.h107 * buffer stack manager. On an MMIO load, this pops a buffer descriptor from
153 * buffer stack manager. On an MMIO load, this pops a buffer descriptor from
187 * whether the INST field in the buffer descriptor is populated by iDMA
210 * 0 : Valid buffer descriptor popped from stack.
233 * Used to post descriptor locations to the eDMA descriptor engine. The
276 * Used to post descriptor locations to the eDMA descriptor engine. The
293 * For reads, this provides the hardware descriptor fetcher's head
308 * software to determine when buffers associated with a descriptor may be
/linux-4.1.27/drivers/usb/musb/
H A Dcppi_dma.h25 u32 tx_head; /* "DMA packet" head descriptor */
27 u32 tx_current; /* current descriptor */
38 u32 rx_sop; /* "DMA packet" head descriptor */
39 u32 rx_current; /* current descriptor */
65 u32 hw_next; /* next buffer descriptor Pointer */
71 dma_addr_t dma; /* address of this descriptor */
/linux-4.1.27/drivers/usb/misc/
H A Dlvstest.c33 /* class descriptor */
34 struct usb_hub_descriptor descriptor; member in struct:lvs_rh
246 struct usb_device_descriptor *descriptor; get_dev_desc_store() local
249 descriptor = kmalloc(sizeof(*descriptor), GFP_KERNEL); get_dev_desc_store()
250 if (!descriptor) { get_dev_desc_store()
251 dev_err(dev, "failed to allocate descriptor memory\n"); get_dev_desc_store()
264 0, descriptor, sizeof(*descriptor), get_dev_desc_store()
267 dev_err(dev, "can't read device descriptor %d\n", ret); get_dev_desc_store()
272 kfree(descriptor); get_dev_desc_store()
301 struct usb_hub_descriptor *descriptor = &lvs->descriptor; lvs_rh_work() local
307 for (i = 1; i <= descriptor->bNbrPorts; i++) { lvs_rh_work()
376 if (hdev->descriptor.bDeviceProtocol != USB_HUB_PR_SS || hdev->parent) { lvs_rh_probe()
391 USB_DT_SS_HUB << 8, 0, &lvs->descriptor, lvs_rh_probe()
394 dev_err(&hdev->dev, "wrong root hub descriptor read %d\n", ret); lvs_rh_probe()
/linux-4.1.27/drivers/acpi/acpica/
H A Drslist.c97 /* This is an I2C, SPI, or UART serial_bus descriptor */ acpi_rs_convert_aml_to_resources()
110 "Invalid/unsupported resource descriptor: Type 0x%2.2X", acpi_rs_convert_aml_to_resources()
168 /* Walk the resource descriptor list, convert each descriptor */ acpi_rs_convert_resources_to_aml()
176 "Invalid descriptor type (0x%X) in resource list", acpi_rs_convert_resources_to_aml()
185 "Invalid zero length descriptor in resource list\n")); acpi_rs_convert_resources_to_aml()
196 /* This is an I2C, SPI, or UART serial_bus descriptor */ acpi_rs_convert_resources_to_aml()
209 "Invalid/unsupported resource descriptor: Type 0x%2.2X", acpi_rs_convert_resources_to_aml()
226 /* Perform final sanity check on the new AML resource descriptor */ acpi_rs_convert_resources_to_aml()
246 * Extract the total length of the new descriptor and set the acpi_rs_convert_resources_to_aml()
247 * Aml to point to the next (output) resource descriptor acpi_rs_convert_resources_to_aml()
251 /* Point to the next input resource descriptor */ acpi_rs_convert_resources_to_aml()
256 /* Completed buffer, but did not find an end_tag resource descriptor */ acpi_rs_convert_resources_to_aml()
H A Dutresrc.c398 * user_function - Called once for each descriptor found. If
424 /* The absolute minimum resource template is one end_tag descriptor */ acpi_ut_walk_aml_resources()
434 /* Walk the byte list, abort on any invalid descriptor type or length */ acpi_ut_walk_aml_resources()
444 * Exit on failure. Cannot continue because the descriptor length acpi_ut_walk_aml_resources()
450 /* Get the length of this descriptor */ acpi_ut_walk_aml_resources()
465 /* An end_tag descriptor terminates this resource template */ acpi_ut_walk_aml_resources()
492 /* Did not find an end_tag descriptor */ acpi_ut_walk_aml_resources()
515 * aml - Pointer to the raw AML resource descriptor
521 * DESCRIPTION: Validate an AML resource descriptor by checking the Resource
545 * Byte 0 contains the descriptor name (Resource Type) acpi_ut_validate_resource()
633 "Invalid/unsupported SerialBus resource descriptor: BusType 0x%2.2X", acpi_ut_validate_resource()
653 "Invalid/unsupported resource descriptor: Type 0x%2.2X", acpi_ut_validate_resource()
662 "Invalid resource descriptor length: Type " acpi_ut_validate_resource()
674 * PARAMETERS: aml - Pointer to the raw AML resource descriptor
677 * Large/Small descriptor bit -- this is left alone)
680 * a resource descriptor.
689 * Byte 0 contains the descriptor name (Resource Type) acpi_ut_get_resource_type()
708 * PARAMETERS: aml - Pointer to the raw AML resource descriptor
712 * DESCRIPTION: Get the "Resource Length" of a raw AML descriptor. By
713 * definition, this does not include the size of the descriptor
725 * Byte 0 contains the descriptor name (Resource Type) acpi_ut_get_resource_length()
748 * PARAMETERS: aml - Pointer to the raw AML resource descriptor
750 * RETURN: Length of the AML header (depends on large/small descriptor)
773 * PARAMETERS: aml - Pointer to the raw AML resource descriptor
777 * DESCRIPTION: Get the total byte length of a raw AML descriptor, including the
778 * length of the descriptor header and the length field itself.
779 * Used to walk descriptor lists.
804 * DESCRIPTION: Find the end_tag resource descriptor in an AML resource template
H A Drsutils.c118 * PARAMETERS: destination - Pointer to the destination descriptor
119 * source - Pointer to the source descriptor
125 * DESCRIPTION: Move multiple data items from one descriptor to another. Handles
189 * PARAMETERS: total_length - Length of the AML descriptor, including
191 * aml - Pointer to the raw AML descriptor
196 * resource descriptor, both Large and Small descriptors are
210 /* Length is the total descriptor length minus the header length */ acpi_rs_set_resource_length()
219 /* Large descriptor -- bytes 1-2 contain the 16-bit length */ acpi_rs_set_resource_length()
224 /* Small descriptor -- bits 2:0 of byte 0 contain the length */ acpi_rs_set_resource_length()
228 /* Clear any existing length, preserving descriptor type bits */ acpi_rs_set_resource_length()
241 * total_length - Length of the AML descriptor, including
243 * aml - Pointer to the raw AML descriptor
248 * resource descriptor, both Large and Small descriptors are
304 * PARAMETERS: resource_length - Length field of the descriptor
305 * minimum_length - Minimum length of the descriptor (minus
308 * aml - Pointer to the raw AML descriptor
315 * DESCRIPTION: Copy the optional resource_source data from a raw AML descriptor
316 * to an internal resource descriptor
336 * resource_source is present if the length of the descriptor is longer than acpi_rs_get_resource_source()
396 * PARAMETERS: aml - Pointer to the raw AML descriptor
397 * minimum_length - Minimum length of the descriptor (minus
402 * RETURN: Total length of the AML descriptor
405 * raw AML resource descriptor
425 /* Point to the end of the AML descriptor */ acpi_rs_set_resource_source()
440 * final descriptor length acpi_rs_set_resource_source()
446 /* Return the new total length of the AML descriptor */ acpi_rs_set_resource_source()
H A Dtbdata.c56 * PARAMETERS: table_desc - Table descriptor
63 * DESCRIPTION: Initialize a new table descriptor
73 * Initialize the table descriptor. Set the pointer to NULL, since the acpi_tb_init_table_descriptor()
87 * PARAMETERS: table_desc - Table descriptor
177 * PARAMETERS: table_desc - Table descriptor to be acquired
184 * of a table and fills the table descriptor to make its state as
185 * "INSTALLED". Such a table descriptor is only used for verified
241 * PARAMETERS: table_desc - Table descriptor to be released
264 * PARAMETERS: table_desc - Table descriptor
269 * table descriptor is in "VALIDATED" state.
297 * PARAMETERS: table_desc - Table descriptor
328 * PARAMETERS: table_desc - Table descriptor
333 * table descriptor is in "VALIDATED" state.
347 * field of the installed descriptor is filled with the actual acpi_tb_validate_temp_table()
360 * PARAMETERS: table_desc - Table descriptor
366 * returned table descriptor is in "VALIDATED" state.
490 * table_desc - Where table descriptor is returned
492 * RETURN: Status and table index/descriptor.
H A Drsirq.c73 /* Get the descriptor length (2 or 3 for IRQ descriptor) */
79 /* All done if no flag byte present in descriptor */
109 /* Start with a default descriptor of length 3 */
140 * All done if the output descriptor length is required to be 3
152 * All done if the output descriptor length is required to be 2.
155 * compatible with a 2-byte descriptor.
161 /* Reset length to 3 bytes (descriptor with flags byte) */
181 /* We can optimize to a 2-byte irq_no_flags() descriptor */
H A Drscalc.c70 * (Short descriptor) interrupt and DMA lists.
94 * PARAMETERS: resource_source - Pointer to optional descriptor field
151 * If the length of the actual resource descriptor is greater than the ACPI acpi_rs_stream_option_length()
167 * guarantee that the entire resource descriptor is native word aligned acpi_rs_stream_option_length()
204 /* Validate the descriptor type */ acpi_rs_get_aml_length()
216 /* Get the base size of the (external stream) resource descriptor */ acpi_rs_get_aml_length()
252 /* Base size of a Large resource descriptor */ acpi_rs_get_aml_length()
375 /* Did not find an end_tag resource descriptor */ acpi_rs_get_aml_length()
392 * descriptor linked list.
427 * Exit on failure. Cannot continue because the descriptor length acpi_rs_get_list_length()
477 * descriptor size. If there are extra struct bytes, acpi_rs_get_list_length()
508 * included in the minimum descriptor size (reason for the -1) acpi_rs_get_list_length()
553 * Update the required buffer size for the internal descriptor structs acpi_rs_get_list_length()
581 * contained in the resource descriptor header acpi_rs_get_list_length()
586 /* Did not find an end_tag resource descriptor */ acpi_rs_get_list_length()
H A Drsio.c200 /* Get the descriptor length (0 or 1 for Start Dpf descriptor) */
206 /* All done if there is no flag byte present in the descriptor */
230 /* Start with a default descriptor of length 1 */
248 * All done if the output descriptor length is required to be 1
261 * All done if the output descriptor length is required to be 0.
264 * compatible with a 0-byte descriptor.
270 /* Reset length to 1 byte (descriptor with flags byte) */
H A Duttrack.c577 union acpi_descriptor *descriptor; acpi_ut_dump_allocations() local
599 descriptor = acpi_ut_dump_allocations()
607 descriptor, element->size, acpi_ut_dump_allocations()
612 if (ACPI_GET_DESCRIPTOR_TYPE(descriptor) != acpi_ut_dump_allocations()
616 descriptor, element->size, acpi_ut_dump_allocations()
619 (descriptor)); acpi_ut_dump_allocations()
621 /* Validate the descriptor type using Type field and length */ acpi_ut_dump_allocations()
623 descriptor_type = 0; /* Not a valid descriptor type */ acpi_ut_dump_allocations()
626 (descriptor)) { acpi_ut_dump_allocations()
664 /* Display additional info for the major descriptor types */ acpi_ut_dump_allocations()
672 (descriptor->object.common. acpi_ut_dump_allocations()
674 descriptor->object.common. acpi_ut_dump_allocations()
682 descriptor->op.asl. acpi_ut_dump_allocations()
690 (&descriptor-> acpi_ut_dump_allocations()
H A Dtbinstal.c59 * PARAMETERS: table_desc - Table 1 descriptor to be compared
104 * new_table_desc - New table descriptor to install
185 /* Fill a table descriptor for validation */ acpi_tb_install_fixed_table()
207 /* Release the temporary table descriptor */ acpi_tb_install_fixed_table()
246 /* Acquire a temporary table descriptor for validation */ acpi_tb_install_standard_table()
345 * take the responsibility of freeing the input descriptor. acpi_tb_install_standard_table()
346 * Refill the input descriptor to ensure acpi_tb_install_standard_table()
369 /* Release the temporary table descriptor */ acpi_tb_install_standard_table()
379 * PARAMETERS: old_table_desc - Validated table descriptor to be
387 * Before/after invocation, the table descriptor is in a state
445 * Replace the original table descriptor and keep its state as acpi_tb_override_table()
453 /* Release the temporary table descriptor */ acpi_tb_override_table()
462 * PARAMETERS: table_desc - Table descriptor
H A Dutobject.c78 * NOTE: We always allocate the worst-case object descriptor because
99 /* Allocate the raw object descriptor */ acpi_ut_create_internal_object_dbg()
137 /* Save the object type in the object descriptor */ acpi_ut_create_internal_object_dbg()
268 /* Return the new buffer descriptor */ acpi_ut_create_buffer_object()
318 /* Return the new string descriptor */ acpi_ut_create_string_object()
347 /* Check the descriptor type field */ acpi_ut_valid_internal_object()
375 * RETURN: Pointer to newly allocated object descriptor. Null on error
377 * DESCRIPTION: Allocate a new object descriptor. Gracefully handle
392 "Could not allocate an object descriptor")); acpi_ut_allocate_object_desc_dbg()
397 /* Mark the descriptor type */ acpi_ut_allocate_object_desc_dbg()
415 * DESCRIPTION: Free an ACPI object descriptor or add it to the object cache
H A Drsaddr.c298 * aml - Pointer to the AML resource descriptor
302 * DESCRIPTION: Convert common flag fields from a raw AML resource descriptor
303 * to an internal resource descriptor
347 * PARAMETERS: aml - Pointer to the AML resource descriptor
352 * DESCRIPTION: Convert common flag fields from a resource descriptor to an
353 * AML descriptor
H A Drsdump.c88 * PARAMETERS: resource_list - Pointer to a resource descriptor list
120 ("Invalid descriptor type (%X) in resource list\n", acpi_rs_dump_resource_list()
129 ("Invalid zero length descriptor in resource list\n"); acpi_rs_dump_resource_list()
133 /* Dump the resource descriptor */ acpi_rs_dump_resource_list()
150 /* Exit when END_TAG descriptor is reached */ acpi_rs_dump_resource_list()
203 * DESCRIPTION: Dump a resource descriptor based on a dump table entry.
428 * PARAMETERS: resource - Pointer to an internal resource descriptor
H A Drsmemory.c199 /* Default is a small vendor descriptor */
217 * fit within a small descriptor
221 /* Must create a large vendor descriptor */
/linux-4.1.27/arch/unicore32/include/asm/
H A Dpgtable-hwdef.h18 * + Level 1 descriptor (PMD)
37 * + Level 2 descriptor (PTE)
/linux-4.1.27/arch/arm/include/asm/hardware/
H A Diop_adma.h37 * @dma_desc_pool: base of DMA descriptor region (DMA address)
38 * @dma_desc_pool_virt: base of DMA descriptor region (CPU address)
59 * @slots_allocated: records the actual size of the descriptor slot pool
64 spinlock_t lock; /* protects the descriptor slot pool */
76 * struct iop_adma_desc_slot - IOP-ADMA software descriptor
79 * @hw_desc: virtual address of the hardware descriptor chain
80 * @phys: hardware address of the hardware descriptor chain
87 * @group_list: list of slots that make up a multi-descriptor transaction
/linux-4.1.27/drivers/clk/versatile/
H A Dclk-icst.h4 * struct clk_icst_desc - descriptor for the ICST VCO
/linux-4.1.27/arch/metag/include/asm/
H A Dtcm.h15 * TCM memory region descriptor.
/linux-4.1.27/drivers/thunderbolt/
H A Dnhi_regs.h48 * 10: ring head (index of first non posted descriptor)
49 * 12: descriptor count
56 * 08: ring head (index of first not posted descriptor)
58 * 12: descriptor count
/linux-4.1.27/drivers/usb/chipidea/
H A Dudc.h73 * @ptr: transfer descriptor for this request
74 * @dma: dma address for the transfer descriptor
75 * @zptr: transfer descriptor for the zero packet
76 * @zdma: dma address of the zero packet's transfer descriptor
/linux-4.1.27/arch/sh/include/asm/
H A Dshmparam.h16 * for everyone, and work out the specifics from the probed cache descriptor.
/linux-4.1.27/include/asm-generic/
H A Dmsi.h14 * @desc: Pointer to msi descriptor
/linux-4.1.27/arch/mips/include/asm/mach-lantiq/xway/
H A Dxway_dma.h21 #define LTQ_DESC_SIZE 0x08 /* each descriptor is 64bit */
40 int desc; /* the current descriptor */
41 struct ltq_dma_desc *desc_base; /* the descriptor base */
/linux-4.1.27/arch/mips/include/asm/mach-rc32434/
H A Ddma.h19 * DMA descriptor (in physical memory).
26 u32 link; /* Next descriptor in chain. */
66 u32 dmandptr; /* Next descriptor pointer. */
/linux-4.1.27/fs/jbd2/
H A Drevoke.c532 struct buffer_head *descriptor; jbd2_journal_write_revoke_records() local
538 descriptor = NULL; jbd2_journal_write_revoke_records()
553 &descriptor, &offset, jbd2_journal_write_revoke_records()
560 if (descriptor) jbd2_journal_write_revoke_records()
561 flush_descriptor(journal, descriptor, offset, write_op); jbd2_journal_write_revoke_records()
566 * Write out one revoke record. We need to create a new descriptor
579 struct buffer_head *descriptor; write_one_revoke_record() local
590 descriptor = *descriptorp; write_one_revoke_record()
602 /* Make sure we have a descriptor with space left for the record */ write_one_revoke_record()
603 if (descriptor) { write_one_revoke_record()
605 flush_descriptor(journal, descriptor, offset, write_op); write_one_revoke_record()
606 descriptor = NULL; write_one_revoke_record()
610 if (!descriptor) { write_one_revoke_record()
611 descriptor = jbd2_journal_get_descriptor_buffer(journal); write_one_revoke_record()
612 if (!descriptor) write_one_revoke_record()
614 header = (journal_header_t *)descriptor->b_data; write_one_revoke_record()
620 BUFFER_TRACE(descriptor, "file in log_bufs"); write_one_revoke_record()
621 jbd2_file_log_bh(log_bufs, descriptor); write_one_revoke_record()
624 *descriptorp = descriptor; write_one_revoke_record()
628 * ((__be64 *)(&descriptor->b_data[offset])) = write_one_revoke_record()
631 * ((__be32 *)(&descriptor->b_data[offset])) = write_one_revoke_record()
654 * Flush a revoke descriptor out to the journal. If we are aborting,
661 struct buffer_head *descriptor, flush_descriptor()
667 put_bh(descriptor); flush_descriptor()
671 header = (jbd2_journal_revoke_header_t *)descriptor->b_data; flush_descriptor()
673 jbd2_revoke_csum_set(journal, descriptor); flush_descriptor()
675 set_buffer_jwrite(descriptor); flush_descriptor()
676 BUFFER_TRACE(descriptor, "write"); flush_descriptor()
677 set_buffer_dirty(descriptor); flush_descriptor()
678 write_dirty_buffer(descriptor, write_op); flush_descriptor()
660 flush_descriptor(journal_t *journal, struct buffer_head *descriptor, int offset, int write_op) flush_descriptor() argument
H A Dcommit.c375 struct buffer_head *descriptor; jbd2_journal_commit_transaction() local
586 descriptor = NULL; jbd2_journal_commit_transaction()
605 * any descriptor buffers which may have been jbd2_journal_commit_transaction()
613 /* Make sure we have a descriptor block in which to jbd2_journal_commit_transaction()
616 if (!descriptor) { jbd2_journal_commit_transaction()
619 jbd_debug(4, "JBD2: get descriptor\n"); jbd2_journal_commit_transaction()
621 descriptor = jbd2_journal_get_descriptor_buffer(journal); jbd2_journal_commit_transaction()
622 if (!descriptor) { jbd2_journal_commit_transaction()
628 (unsigned long long)descriptor->b_blocknr, jbd2_journal_commit_transaction()
629 descriptor->b_data); jbd2_journal_commit_transaction()
630 header = (journal_header_t *)descriptor->b_data; jbd2_journal_commit_transaction()
635 tagp = &descriptor->b_data[sizeof(journal_header_t)]; jbd2_journal_commit_transaction()
636 space_left = descriptor->b_size - jbd2_journal_commit_transaction()
639 set_buffer_jwrite(descriptor); jbd2_journal_commit_transaction()
640 set_buffer_dirty(descriptor); jbd2_journal_commit_transaction()
641 wbuf[bufs++] = descriptor; jbd2_journal_commit_transaction()
645 BUFFER_TRACE(descriptor, "ph3: file as descriptor"); jbd2_journal_commit_transaction()
646 jbd2_file_log_bh(&log_bufs, descriptor); jbd2_journal_commit_transaction()
686 /* Record the new block's tag in the current descriptor jbd2_journal_commit_transaction()
711 /* If there's no more to do, or if the descriptor is full, jbd2_journal_commit_transaction()
720 /* Write an end-of-descriptor marker before jbd2_journal_commit_transaction()
726 jbd2_descr_block_csum_set(journal, descriptor); jbd2_journal_commit_transaction()
748 /* Force a new descriptor to be generated next jbd2_journal_commit_transaction()
750 descriptor = NULL; jbd2_journal_commit_transaction()
865 /* Here we wait for the revoke record and descriptor record buffers */ jbd2_journal_commit_transaction()
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
H A Di40e_hmc.h118 * @sd_index: segment descriptor index
139 * @sd_index: segment descriptor index
158 * @sd_idx: segment descriptor index
159 * @pd_idx: page descriptor index
167 * I40E_FIND_SD_INDEX_LIMIT - finds segment descriptor index limit
172 * @sd_idx: pointer to return index of the segment descriptor in question
175 * This function calculates the segment descriptor index and index limit
191 * I40E_FIND_PD_INDEX_LIMIT - finds page descriptor index limit
196 * @pd_index: pointer to return page descriptor index
197 * @pd_limit: pointer to return page descriptor index limit
199 * Calculates the page descriptor index and index limit for the resource
H A Di40e_hmc.c35 * i40e_add_sd_table_entry - Adds a segment descriptor to the table
38 * @sd_index: segment descriptor index to manipulate
39 * @type: what type of segment descriptor we're manipulating
115 * i40e_add_pd_table_entry - Adds page descriptor to the specified table
118 * @pd_index: which page descriptor index to manipulate
187 * i40e_remove_pd_bp - remove a backing page from a page descriptor
279 * i40e_remove_sd_bp_new - Removes a backing page from a segment descriptor
310 * @idx: segment descriptor index to find the relevant page descriptor
337 * @idx: segment descriptor index to find the relevant page descriptor
H A Di40e_alloc.h37 i40e_mem_arq_ring = 3, /* ARQ descriptor ring */
38 i40e_mem_atq_ring = 4, /* ATQ descriptor ring */
H A Di40e_fcoe.h40 /* receive queue descriptor filter status for FCoE */
47 /* receive queue descriptor error codes for FCoE */
54 /* receive queue descriptor programming error */
H A Di40e_txrx.c93 /* grab the next descriptor */ i40e_program_fdir_filter()
146 /* Now program a dummy descriptor */ i40e_program_fdir_filter()
176 /* Mark the data descriptor to be watched */ i40e_program_fdir_filter()
191 * @fd_data: the flow director data required for the FDir descriptor
248 * @fd_data: the flow director data required for the FDir descriptor
323 * @fd_data: the flow director data required for the FDir descriptor
340 * @fd_data: the flow director data required for the FDir descriptor
448 * @rx_ring: the Rx ring for this descriptor
449 * @rx_desc: the Rx descriptor for programming Status, not a packet descriptor.
571 /* Zero out the descriptor ring */ i40e_clean_tx_ring()
587 * @tx_ring: Tx descriptor ring for a specific queue
966 * i40e_clean_programming_status - clean the programming status descriptor
967 * @rx_ring: the rx ring that has this descriptor
968 * @rx_desc: the rx descriptor written back by HW
1023 dev_info(dev, "Unable to allocate memory for the Tx descriptor ring, size=%d\n", i40e_setup_tx_descriptors()
1100 /* Zero out the descriptor ring */ i40e_clean_rx_ring()
1159 * @rx_ring: Rx descriptor ring (for a specific queue) to setup
1184 dev_info(dev, "Unable to allocate memory for the Rx descriptor ring, size=%d\n", i40e_setup_rx_descriptors()
1364 * @rx_status: status value of last descriptor in packet
1365 * @rx_error: error value of last descriptor in packet
1366 * @rx_ptype: ptype value of last descriptor in packet
1470 * i40e_rx_hash - returns the hash value from the Rx descriptor
1471 * @ring: descriptor ring
1472 * @rx_desc: specific descriptor
1490 * @ptype: the ptype value from the descriptor
1926 * @tx_ring: ring to add programming descriptor to
1993 /* grab the next descriptor */ i40e_atr()
2119 * i40e_tso - set up the tso context descriptor
2125 * @cd_tunneling: ptr to context descriptor bits
2180 * i40e_tsyn - set up the tsyn context descriptor
2224 * @td_cmd: Tx descriptor command bits to set
2225 * @td_offset: Tx descriptor header offsets to set
2268 /* Now set the ctx descriptor fields */ i40e_tx_enable_csum()
2338 * i40e_create_tx_ctx Build the Tx context descriptor
2339 * @tx_ring: ring to create the descriptor on
2355 /* grab the next descriptor */ i40e_create_tx_ctx()
2466 * i40e_tx_map - Build the Tx descriptor
2472 * @td_cmd: the command field in the descriptor
2567 /* Place RS bit on last descriptor of any packet that spans across the i40e_tx_map()
2568 * 4th descriptor (WB_STRIDE aka 0x3) in a 64B cacheline. i40e_tx_map()
2640 * one descriptor.
2653 /* need: 1 descriptor per page * PAGE_SIZE/I40E_MAX_DATA_PER_TXD, i40e_xmit_descriptor_count()
2656 * + 1 desc for context descriptor, i40e_xmit_descriptor_count()
2700 /* record the location of the first descriptor for this packet */ i40e_xmit_frame_ring()
2731 /* Always offload the checksum, since it's in the data descriptor */ i40e_xmit_frame_ring()
2744 * NOTE: this must always be directly before the data descriptor. i40e_xmit_frame_ring()
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/
H A Di40e_hmc.h118 * @sd_index: segment descriptor index
139 * @sd_index: segment descriptor index
158 * @sd_idx: segment descriptor index
159 * @pd_idx: page descriptor index
167 * I40E_FIND_SD_INDEX_LIMIT - finds segment descriptor index limit
172 * @sd_idx: pointer to return index of the segment descriptor in question
175 * This function calculates the segment descriptor index and index limit
191 * I40E_FIND_PD_INDEX_LIMIT - finds page descriptor index limit
196 * @pd_index: pointer to return page descriptor index
197 * @pd_limit: pointer to return page descriptor index limit
199 * Calculates the page descriptor index and index limit for the resource
H A Di40e_alloc.h37 i40e_mem_arq_ring = 3, /* ARQ descriptor ring */
38 i40e_mem_atq_ring = 4, /* ATQ descriptor ring */
/linux-4.1.27/drivers/staging/android/uapi/
H A Dion.h97 * @fd: a file descriptor representing that handle
101 * descriptor to share or map in the fd field. For ION_IOC_IMPORT, userspace
102 * provides the file descriptor and the kernel returns the handle.
149 * DOC: ION_IOC_MAP - get a file descriptor to mmap
153 * descriptor open in the current address space. This file descriptor
159 * DOC: ION_IOC_SHARE - creates a file descriptor to use to share an allocation
163 * descriptor open in the current address space. This file descriptor
170 * DOC: ION_IOC_IMPORT - imports a shared file descriptor
173 * descriptor obtained from ION_IOC_SHARE and returns the struct with the handle
/linux-4.1.27/drivers/dma/ppc4xx/
H A Dadma.h55 * @dma_desc_pool_virt: base of DMA descriptor region (CPU address)
56 * @dma_desc_pool: base of DMA descriptor region (DMA address)
84 * @slots_allocated: records the actual size of the descriptor slot pool
85 * @hw_chain_inited: h/w descriptor chain initialization flag
122 * struct ppc440spe_adma_desc_slot - PPC440SPE-ADMA software descriptor
123 * @phys: hardware address of the hardware descriptor chain
125 * @hw_next: pointer to the next descriptor in chain
129 * @group_list: list of slots that make up a multi-descriptor transaction
132 * @hw_desc: virtual address of the hardware descriptor chain
136 * @src_cnt: number of sources set in this descriptor
137 * @dst_cnt: number of destinations set in the descriptor
/linux-4.1.27/drivers/net/ethernet/intel/ixgb/
H A Dixgb.h77 /* TX/RX descriptor defines */
83 * hardware descriptor cache otherwise an unreliable ring under heavy
110 /* pointer to the descriptor ring memory */
112 /* physical address of the descriptor ring */
114 /* length of descriptor ring in bytes */
118 /* next descriptor to associate a buffer with */
120 /* next descriptor to check for DD status bit */
/linux-4.1.27/drivers/net/wireless/ath/ath5k/
H A Ddesc.h20 * RX/TX descriptor structures
24 * struct ath5k_hw_rx_ctl - Common hardware RX control descriptor
38 * struct ath5k_hw_rx_status - Common hardware RX status descriptor
62 #define AR5K_5210_RX_DESC_STATUS1_DONE 0x00000001 /* descriptor complete */
89 #define AR5K_5212_RX_DESC_STATUS1_DONE 0x00000001 /* descriptor complete */
151 * struct ath5k_hw_2w_tx_ctl - 5210/5211 hardware 2-word TX control descriptor
207 * struct ath5k_hw_4w_tx_ctl - 5212 hardware 4-word TX control descriptor
272 * struct ath5k_hw_tx_status - Common TX status descriptor
301 #define AR5K_DESC_TX_STATUS1_DONE 0x00000001 /* descriptor complete */
312 * struct ath5k_hw_5210_tx_desc - 5210/5211 hardware TX descriptor
322 * struct ath5k_hw_5212_tx_desc - 5212 hardware TX descriptor
332 * struct ath5k_hw_all_rx_desc - Common hardware RX descriptor
342 * struct ath5k_desc - Atheros hardware DMA descriptor
343 * @ds_link: Physical address of the next descriptor
H A Ddesc.c32 * DOC: Hardware descriptor functions
53 * ath5k_hw_setup_2word_tx_desc() - Initialize a 2-word tx control descriptor
69 * Internal function to initialize a 2-Word TX control descriptor
110 /* Clear descriptor */ ath5k_hw_setup_2word_tx_desc()
113 /* Setup control descriptor */ ath5k_hw_setup_2word_tx_desc()
219 * ath5k_hw_setup_4word_tx_desc() - Initialize a 4-word tx control descriptor
235 * Internal function to initialize a 4-Word TX control descriptor
285 /* Clear descriptor status area */ ath5k_hw_setup_4word_tx_desc()
289 /* Setup control descriptor */ ath5k_hw_setup_4word_tx_desc()
362 * ath5k_hw_setup_mrr_tx_desc() - Initialize an MRR tx control descriptor
373 * MACs, they are part of the normal 4-word tx control descriptor (see above)
436 * ath5k_hw_proc_2word_tx_status() - Process a tx status descriptor on 5210/1
455 * Get descriptor status ath5k_hw_proc_2word_tx_status()
488 * ath5k_hw_proc_4word_tx_status() - Process a tx status descriptor on 5212
512 * Get descriptor status ath5k_hw_proc_4word_tx_status()
552 * ath5k_hw_setup_rx_desc() - Initialize an rx control descriptor
568 * Clear the descriptor ath5k_hw_setup_rx_desc()
569 * If we don't clean the status descriptor, ath5k_hw_setup_rx_desc()
579 /* Setup descriptor */ ath5k_hw_setup_rx_desc()
589 * ath5k_hw_proc_5210_rx_status() - Process the rx status descriptor on 5210/1
594 * Internal function used to process an RX status descriptor
653 * Receive/descriptor errors ath5k_hw_proc_5210_rx_status()
683 * ath5k_hw_proc_5212_rx_status() - Process the rx status descriptor on 5212
688 * Internal function used to process an RX status descriptor
736 * Receive/descriptor errors ath5k_hw_proc_5212_rx_status()
768 * Maps the internal descriptor functions to the function pointers on ah, used
/linux-4.1.27/drivers/crypto/
H A Dtalitos.h2 * Freescale SEC (talitos) device register and descriptor header defines
38 /* descriptor pointer entry */
53 /* descriptor */
61 * talitos_request - descriptor submission request
62 * @desc: descriptor pointer (kernel virtual)
63 * @dma_desc: descriptor's physical bus address
64 * @callback: whom to call when descriptor processing is done
87 /* index to next free descriptor request */
92 /* index to next in-progress/done descriptor request */
123 /* next channel to be assigned next incoming descriptor */
211 /* current descriptor pointer register */
215 /* descriptor buffer register */
263 * talitos descriptor header (hdr) bits
342 /* descriptor types */
/linux-4.1.27/kernel/trace/
H A Dtrace_seq.c6 * The trace_seq is a handy tool that allows you to pass a descriptor around
11 * This will set up the counters within the descriptor. You can call
46 * @m: the seq_file descriptor that is the destination
47 * @s: the trace_seq descriptor that is the source.
74 * @s: trace sequence descriptor
107 * @s: trace sequence descriptor
134 * @s: trace sequence descriptor
164 * @s: trace sequence descriptor
199 * @s: trace sequence descriptor
227 * @s: trace sequence descriptor
253 * @s: trace sequence descriptor
279 * @s: trace sequence descriptor
316 * @s: trace sequence descriptor
354 * @s: trace sequence descriptor
/linux-4.1.27/sound/soc/intel/atom/sst/
H A Dsst_drv_interface.c409 .descriptor[0].max_ch = 2,
410 .descriptor[0].sample_rates[0] = 48000,
411 .descriptor[0].sample_rates[1] = 44100,
412 .descriptor[0].sample_rates[2] = 32000,
413 .descriptor[0].sample_rates[3] = 16000,
414 .descriptor[0].sample_rates[4] = 8000,
415 .descriptor[0].num_sample_rates = 5,
416 .descriptor[0].bit_rate[0] = 320,
417 .descriptor[0].bit_rate[1] = 192,
418 .descriptor[0].num_bitrates = 2,
419 .descriptor[0].profiles = 0,
420 .descriptor[0].modes = SND_AUDIOCHANMODE_MP3_STEREO,
421 .descriptor[0].formats = 0,
426 .descriptor[1].max_ch = 2,
427 .descriptor[0].sample_rates[0] = 48000,
428 .descriptor[0].sample_rates[1] = 44100,
429 .descriptor[0].sample_rates[2] = 32000,
430 .descriptor[0].sample_rates[3] = 16000,
431 .descriptor[0].sample_rates[4] = 8000,
432 .descriptor[0].num_sample_rates = 5,
433 .descriptor[1].bit_rate[0] = 320,
434 .descriptor[1].bit_rate[1] = 192,
435 .descriptor[1].num_bitrates = 2,
436 .descriptor[1].profiles = 0,
437 .descriptor[1].modes = 0,
438 .descriptor[1].formats =
/linux-4.1.27/drivers/net/ethernet/toshiba/
H A Dps3_gelic_net.c189 * gelic_descr_set_status -- sets the status of a descriptor
190 * @descr: descriptor to change
191 * @status: status to set in the descriptor
203 * dma_cmd_status field is used to indicate whether the descriptor gelic_descr_set_status()
212 * gelic_card_reset_chain - reset status of a descriptor chain
215 * @start_descr: address of descriptor array
281 * gelic_descr_get_status -- returns the status of a descriptor
282 * @descr: descriptor to look at
284 * returns the status as in the dmac_cmd_status field of the descriptor
293 * gelic_card_free_chain - free descriptor chain
310 * gelic_card_init_chain - links descriptor chain
313 * @start_descr: address of descriptor array
331 /* set up the hardware pointers in each descriptor */ gelic_card_init_chain()
349 /* chain bus addr of hw descriptor */ gelic_card_init_chain()
358 /* do not chain last hw descriptor */ gelic_card_init_chain()
373 * gelic_descr_prepare_rx - reinitializes a rx descriptor
375 * @descr: descriptor to re-init
379 * allocates a new rx skb, iommu-maps it and attaches it to the descriptor.
380 * Activate the descriptor state-wise
484 * gelic_card_alloc_rx_skbs - allocates rx skbs in rx descriptor chains
500 * gelic_descr_release_tx - processes a used tx descriptor
502 * @descr: descriptor to release
504 * releases a used tx descriptor (unmapping, freeing of skb)
569 "%s: forcing end of tx descriptor " \ gelic_card_release_tx_chain()
683 * gelic_card_get_next_tx_descr - returns the next available tx descriptor
684 * @card: device structure to get descriptor from
686 * returns the address of the next descriptor, or NULL if not available.
693 /* see if the next descriptor is free */ gelic_card_get_next_tx_descr()
704 * gelic_net_set_txdescr_cmdstat - sets the tx descriptor command field
705 * @descr: descriptor structure to fill out
708 * fills out the command and status field of the descriptor structure,
769 * gelic_descr_prepare_tx - setup a descriptor for sending packets
771 * @descr: descriptor structure
811 /* bump free descriptor pointer */ gelic_descr_prepare_tx()
819 * @descr: descriptor address to enable TX processing at
883 * link this prepared descriptor to previous one gelic_net_xmit()
888 * as hardware descriptor is modified in the above lines, gelic_net_xmit()
895 * release descriptor which was just prepared gelic_net_xmit()
913 * gelic_net_pass_skb_up - takes an skb from a descriptor and passes it on
914 * @descr: descriptor to process
919 * stack. The descriptor state is not changed.
972 * gelic_card_decode_one_descr - processes an rx descriptor
977 * processes an rx descriptor by iommu-unmapping the data buffer and passing
1019 dev_info(ctodev(card), "dropping RX descriptor with state %x\n", gelic_card_decode_one_descr()
1029 * descriptor's buffer. If the frame length was equal gelic_card_decode_one_descr()
1043 dev_dbg(ctodev(card), "RX descriptor with state %x\n", gelic_card_decode_one_descr()
1052 /* is the current descriptor terminated with next_descr == NULL? */ gelic_card_decode_one_descr()
1058 * of the descriptor chain to avoid gelic_card_decode_one_descr()
1063 /* change the descriptor state: */ gelic_card_decode_one_descr()
1068 * descriptor without skb gelic_card_decode_one_descr()
1076 * Set this descriptor the end of the chain. gelic_card_decode_one_descr()
1161 /* kick outstanding tx descriptor if any */ gelic_card_interrupt()
1543 * gelic requires dma descriptor is 32 bytes aligned and gelic_alloc_card_net()
H A Dps3_gelic_net.h76 /* RX descriptor data_status bits */
97 /* TX descriptor data_status bits */
100 * descriptor was end of
105 /* RX descriptor data error bits */
140 /* tx descriptor command and status */
145 GELIC_DESCR_TX_DMA_FRAME_TAIL = 0x00040000, /* last descriptor of
236 /* size of hardware part of gelic descriptor */
292 * tx_lock guards tx descriptor list and
/linux-4.1.27/include/scsi/fc/
H A Dfc_fip.h140 * Common descriptor header format.
152 FIP_DT_FAB = 5, /* fabric descriptor */
168 * FIP_DT_PRI - priority descriptor.
177 * FIP_DT_MAC - MAC address descriptor.
185 * FIP_DT_MAP - descriptor.
194 * FIP_DT_NAME descriptor.
203 * FIP_DT_FAB descriptor.
214 * FIP_DT_FCOE_SIZE descriptor.
232 * FIP_DT_VN_ID - VN_Node Identifier descriptor.
272 * FIP_DT_VENDOR descriptor.
/linux-4.1.27/include/uapi/linux/usb/
H A Dfunctionfs.h125 * | 0 | bLength | U8 | length of the descriptor |
126 * | 1 | bDescriptorType | U8 | descriptor type |
127 * | 2 | payload | | descriptor's payload |
135 * | 1 | dwLength | U32 | length of the descriptor |
145 * | 1 | dwLength | U32 | length of the descriptor |
168 * | 0 | dwSize | U32 | length of the descriptor |
211 * Events are delivered on the ep0 file descriptor, when the user mode driver
212 * reads from this file descriptor after writing the descriptors. Don't
213 * stop polling this descriptor.
281 * Returns endpoint descriptor. If function is not active returns -ENODEV.
H A Dgadgetfs.h27 * Events are delivered on the ep0 file descriptor, when the user mode driver
28 * reads from this file descriptor after writing the descriptors. Don't
29 * stop polling this descriptor.
/linux-4.1.27/drivers/media/platform/ti-vpe/
H A Dvpdma.c346 * map descriptor/payload DMA buffer, enabling DMA access
366 * unmap descriptor/payload DMA buffer, disabling DMA access and
380 * create a descriptor list, the user of this list will append configuration,
382 * VPDMA. VPDMA's list parser will go through each descriptor and perform the
401 * once a descriptor list is parsed by VPDMA, we reset the list by emptying it,
410 * free the buffer allocated fot the VPDMA descriptor list, this should be
456 pr_debug("config descriptor of payload class: %s\n", dump_cfd()
476 * append a configuration descriptor to the given descriptor list, where the
477 * payload is in the form of a simple data block specified in the descriptor
503 * append a configuration descriptor to the given descriptor list, where the
531 * control descriptor format change based on what type of control descriptor it
537 pr_debug("control descriptor\n"); dump_ctd()
544 * append a 'sync on channel' type control descriptor to the given descriptor
545 * list, this descriptor stalls the VPDMA list till the time DMA is completed
574 pr_debug("%s data transfer descriptor for channel %d\n", dump_dtd()
615 * append an outbound data transfer descriptor to the given descriptor list,
624 * flags: VPDMA flags to configure some descriptor fileds
679 * append an inbound data transfer descriptor to the given descriptor list,
689 * flags: VPDMA flags to configure some descriptor fileds
H A Dvpdma.h54 #define VPDMA_DESC_ALIGN 16 /* 16-byte descriptor alignment */
170 /* vpdma descriptor buffer allocation and management */
176 /* vpdma descriptor list funcs */
/linux-4.1.27/drivers/net/ethernet/freescale/
H A Dfec.h31 #define FEC_R_DES_ACTIVE_0 0x010 /* Receive descriptor reg */
32 #define FEC_X_DES_ACTIVE_0 0x014 /* Transmit descriptor reg */
55 #define FEC_R_DES_START_1 0x160 /* Receive descriptor ring 1 */
56 #define FEC_X_DES_START_1 0x164 /* Transmit descriptor ring 1 */
58 #define FEC_R_DES_START_2 0x16c /* Receive descriptor ring 2 */
59 #define FEC_X_DES_START_2 0x170 /* Transmit descriptor ring 2 */
61 #define FEC_R_DES_START_0 0x180 /* Receive descriptor ring */
62 #define FEC_X_DES_START_0 0x184 /* Transmit descriptor ring */
73 #define FEC_R_DES_ACTIVE_1 0x1e0 /* Rx descriptor active for ring 1 */
74 #define FEC_X_DES_ACTIVE_1 0x1e4 /* Tx descriptor active for ring 1 */
75 #define FEC_R_DES_ACTIVE_2 0x1e8 /* Rx descriptor active for ring 2 */
76 #define FEC_X_DES_ACTIVE_2 0x1ec /* Tx descriptor active for ring 2 */
146 #define FEC_R_DES_ACTIVE_0 0x010 /* Receive descriptor reg */
149 #define FEC_X_DES_ACTIVE_0 0x014 /* Transmit descriptor reg */
165 #define FEC_R_DES_START_0 0x3d0 /* Receive descriptor ring */
168 #define FEC_X_DES_START_0 0x3d4 /* Transmit descriptor ring */
192 * Define the buffer descriptor structure.
223 #define BD_SC_WRAP ((ushort)0x2000) /* Last buffer descriptor */
234 /* Buffer descriptor control/status used by Ethernet receive.
250 /* Enhanced buffer descriptor control/status used by Ethernet receive */
253 /* Buffer descriptor control/status used by Ethernet transmit.
270 /* enhanced buffer descriptor control/status used by Ethernet transmit */
396 * If the ready bit in the transmit buffer descriptor (TxBD[R]) is previously
467 * the buffer descriptor determines the actual condition.
/linux-4.1.27/fs/jbd/
H A Drevoke.c533 struct journal_head *descriptor; journal_write_revoke_records() local
539 descriptor = NULL; journal_write_revoke_records()
554 &descriptor, &offset, journal_write_revoke_records()
561 if (descriptor) journal_write_revoke_records()
562 flush_descriptor(journal, descriptor, offset, write_op); journal_write_revoke_records()
567 * Write out one revoke record. We need to create a new descriptor
578 struct journal_head *descriptor; write_one_revoke_record() local
589 descriptor = *descriptorp; write_one_revoke_record()
592 /* Make sure we have a descriptor with space left for the record */ write_one_revoke_record()
593 if (descriptor) { write_one_revoke_record()
595 flush_descriptor(journal, descriptor, offset, write_op); write_one_revoke_record()
596 descriptor = NULL; write_one_revoke_record()
600 if (!descriptor) { write_one_revoke_record()
601 descriptor = journal_get_descriptor_buffer(journal); write_one_revoke_record()
602 if (!descriptor) write_one_revoke_record()
604 header = (journal_header_t *) &jh2bh(descriptor)->b_data[0]; write_one_revoke_record()
610 JBUFFER_TRACE(descriptor, "file as BJ_LogCtl"); write_one_revoke_record()
611 journal_file_buffer(descriptor, transaction, BJ_LogCtl); write_one_revoke_record()
614 *descriptorp = descriptor; write_one_revoke_record()
617 * ((__be32 *)(&jh2bh(descriptor)->b_data[offset])) = write_one_revoke_record()
624 * Flush a revoke descriptor out to the journal. If we are aborting,
631 struct journal_head *descriptor, flush_descriptor()
635 struct buffer_head *bh = jh2bh(descriptor); flush_descriptor()
642 header = (journal_revoke_header_t *) jh2bh(descriptor)->b_data; flush_descriptor()
630 flush_descriptor(journal_t *journal, struct journal_head *descriptor, int offset, int write_op) flush_descriptor() argument
H A Dcommit.c125 struct journal_head *descriptor; journal_write_commit_record() local
133 descriptor = journal_get_descriptor_buffer(journal); journal_write_commit_record()
134 if (!descriptor) journal_write_commit_record()
137 bh = jh2bh(descriptor); journal_write_commit_record()
144 JBUFFER_TRACE(descriptor, "write commit block"); journal_write_commit_record()
153 journal_put_journal_head(descriptor); journal_write_commit_record()
299 struct journal_head *jh, *new_jh, *descriptor; journal_commit_transaction() local
533 descriptor = NULL; journal_commit_transaction()
549 * any descriptor buffers which may have been journal_commit_transaction()
557 /* Make sure we have a descriptor block in which to journal_commit_transaction()
560 if (!descriptor) { journal_commit_transaction()
565 jbd_debug(4, "JBD: get descriptor\n"); journal_commit_transaction()
567 descriptor = journal_get_descriptor_buffer(journal); journal_commit_transaction()
568 if (!descriptor) { journal_commit_transaction()
573 bh = jh2bh(descriptor); journal_commit_transaction()
590 BUFFER_TRACE(bh, "ph3: file as descriptor"); journal_commit_transaction()
591 journal_file_buffer(descriptor, commit_transaction, journal_commit_transaction()
635 /* Record the new block's tag in the current descriptor journal_commit_transaction()
657 /* If there's no more to do, or if the descriptor is full, journal_commit_transaction()
666 /* Write an end-of-descriptor marker before journal_commit_transaction()
693 /* Force a new descriptor to be generated next journal_commit_transaction()
695 descriptor = NULL; journal_commit_transaction()
779 /* Here we wait for the revoke record and descriptor record buffers */ journal_commit_transaction()
/linux-4.1.27/tools/power/acpi/os_specific/service_layers/
H A Doslibcfs.c58 * RETURN: File descriptor.
94 * PARAMETERS: file - An open file descriptor
111 * PARAMETERS: file - An open file descriptor
139 * PARAMETERS: file - An open file descriptor
168 * PARAMETERS: file - An open file descriptor
188 * PARAMETERS: file - An open file descriptor
/linux-4.1.27/drivers/iommu/
H A Domap-iopgtable.h58 * @d: omap iommu descriptor
60 * @mask: omap iommu descriptor mask
70 * some descriptor attributes.
/linux-4.1.27/arch/x86/include/asm/
H A Ddesc_defs.h6 * Segment descriptor structure definitions, usable from both x86_64 and i386
21 /* 8 byte segment descriptor */
70 /* LDT or TSS descriptor in the GDT. 16 bytes. */
/linux-4.1.27/arch/arm/plat-pxa/include/plat/
H A Ddma.h26 #define DCSR_EORJMPEN (1 << 27) /* Jump to next descriptor on EOR */
36 #define DDADR_DESCADDR 0xfffffff0 /* Address of next descriptor (mask) */
60 volatile u32 ddadr; /* Points to the next descriptor + flags */
/linux-4.1.27/drivers/ide/
H A Dide-gd.h34 /* Last format capacity descriptor */
/linux-4.1.27/arch/x86/math-emu/
H A Dget_address.c138 struct desc_struct descriptor; pm_address() local
160 descriptor = FPU_get_ldt_descriptor(addr->selector); pm_address()
161 base_address = SEG_BASE_ADDR(descriptor); pm_address()
164 + (SEG_LIMIT(descriptor) + 1) * SEG_GRANULARITY(descriptor) - 1; pm_address()
168 if (SEG_EXPAND_DOWN(descriptor)) { pm_address()
169 if (SEG_G_BIT(descriptor)) pm_address()
184 if (SEG_EXECUTE_ONLY(descriptor) || pm_address()
185 (!SEG_WRITE_PERM(descriptor) && (FPU_modrm & FPU_WRITE_BIT))) { pm_address()
/linux-4.1.27/include/linux/platform_data/
H A Dspi-ep93xx.h7 * struct ep93xx_spi_info - EP93xx specific SPI descriptor
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/
H A Ddma.c42 * DMA hardware requires each descriptor ring to be 8kB aligned, and fit within
60 /* transmit descriptor table pointer */
61 #define D64_XP_LD_MASK 0x00000fff /* last valid descriptor */
64 #define D64_XS0_CD_MASK 0x00001fff /* current descriptor pointer */
73 #define D64_XS1_AD_MASK 0x00001fff /* active descriptor */
77 #define D64_XS1_XE_DPE 0x10000000 /* descriptor protocol error */
80 #define D64_XS1_XE_DESRE 0x40000000 /* descriptor read error */
91 /* separate rx header descriptor enable */
111 /* receive descriptor table pointer */
112 #define D64_RP_LD_MASK 0x00000fff /* last valid descriptor */
115 #define D64_RS0_CD_MASK 0x00001fff /* current descriptor pointer */
124 #define D64_RS1_AD_MASK 0x0001ffff /* active descriptor */
128 #define D64_RS1_RE_DPO 0x10000000 /* descriptor protocol error */
131 #define D64_RS1_RE_DESRE 0x40000000 /* descriptor read error */
149 /* descriptor control flags 1 */
151 #define D64_CTRL1_EOT ((u32)1 << 28) /* end of descriptor table */
156 /* descriptor control flags 2 */
225 /* pointer to dma64 tx descriptor ring */
227 /* pointer to dma64 rx descriptor ring */
233 u16 txin; /* index of next descriptor to reclaim */
234 u16 txout; /* index of next descriptor to post */
237 /* Aligned physical address of descriptor ring */
239 /* Original physical address of descriptor ring */
249 u16 rxin; /* index of next descriptor to reclaim */
250 u16 rxout; /* index of next descriptor to post */
253 /* Aligned physical address of descriptor ring */
255 /* Original physical address of descriptor ring */
274 /* add to get dma address of descriptor ring, low 32 bits */
282 /* descriptor base need to be aligned or not */
306 /* descriptor bumping functions */
463 /* This function ensures that the DMA descriptor ring will not get allocated
466 * descriptor ring size aligned location. This will ensure that the ring will
612 * swapped region for data buffer, not descriptor dma_attach()
635 /* does the descriptor need to be aligned and if yes, on 4K/8K or not */ dma_attach()
646 brcms_dbg_dma(di->core, "DMA descriptor align_needed %d, align %d\n", dma_attach()
666 * allocate transmit descriptor ring, only need ntxd descriptors dma_attach()
675 * allocate receive descriptor ring, only need nrxd descriptors dma_attach()
753 /* free dma descriptor rings */ dma_detach()
772 /* initialize descriptor table base address */
854 /* clear rx descriptor ring */ dma_rxinit()
890 /* get the packet pointer that corresponds to the rx descriptor */ dma64_getnextrxp()
896 /* clear this packet from the descriptor ring */ dma64_getnextrxp()
923 * in next DMA descriptor buffer WITHOUT DMA header
1088 /* reset flags for each descriptor */ dma_rxfill()
1151 /* clear tx descriptor ring */ dma_txinit()
1283 * obtain and initialize transmit descriptor entry. dma_txenq()
1311 /* bump the tx descriptor index */ dma_txenq()
H A Ddma.h48 u32 ptr; /* last descriptor posted to chip */
51 u32 status0; /* current descriptor, xmt state */
52 u32 status1; /* active descriptor, xmt error */
/linux-4.1.27/drivers/net/ethernet/intel/e1000/
H A De1000.h90 /* TX/RX descriptor defines */
171 /* pointer to the descriptor ring memory */
173 /* physical address of the descriptor ring */
175 /* length of descriptor ring in bytes */
179 /* next descriptor to associate a buffer with */
181 /* next descriptor to check for DD status bit */
192 /* pointer to the descriptor ring memory */
194 /* physical address of the descriptor ring */
196 /* length of descriptor ring in bytes */
200 /* next descriptor to associate a buffer with */
202 /* next descriptor to check for DD status bit */
/linux-4.1.27/drivers/dma/sh/
H A Drcar-dmac.c45 * struct rcar_dmac_hw_desc - Hardware descriptor for a transfer chunk
59 * @async_tx: base DMA asynchronous transaction descriptor
67 * @hwdescs.use: whether the transfer descriptor uses hardware descriptors
136 * @desc.running: the descriptor being processed (a member of the active list)
346 * Errata: When descriptor memory is accessed through an IOMMU rcar_dmac_chan_start_xfer()
348 * first descriptor at beginning of transfer by the DMAC like it rcar_dmac_chan_start_xfer()
358 * Program the descriptor stage interrupt to occur after the end rcar_dmac_chan_start_xfer()
367 * If the descriptor isn't cyclic enable normal descriptor mode rcar_dmac_chan_start_xfer()
373 * If the descriptor is cyclic and has a callback enable the rcar_dmac_chan_start_xfer()
374 * descriptor stage interrupt in infinite repeat mode. rcar_dmac_chan_start_xfer()
494 * rcar_dmac_desc_put - Release a DMA transfer descriptor
496 * @desc: the descriptor
498 * Put the descriptor and its transfer chunk descriptors back in the channel's
499 * free descriptors lists. The descriptor's chunks list will be reinitialized to
502 * The descriptor must have been removed from the channel's lists before calling
548 * rcar_dmac_desc_get - Allocate a descriptor for a DMA transfer
553 * Return: A pointer to the allocated descriptor or NULL if no descriptor can
623 * Return: A pointer to the allocated transfer chunk descriptor or NULL if no
624 * descriptor can be allocated.
853 * reference to the DMA descriptor, there's no need for locking. rcar_dmac_chan_prep_sg()
877 * hardware descriptor lists. for_each_sg()
919 * Use hardware descriptor lists if possible when more than one chunk
923 * optimization we could use descriptor lists for consecutive lowmem
1149 * then the descriptor hasn't been processed yet, and the residue is rcar_dmac_chan_get_residue()
1150 * equal to the full descriptor size. rcar_dmac_chan_get_residue()
1156 * In descriptor mode the descriptor running pointer is not maintained rcar_dmac_chan_get_residue()
1157 * by the interrupt handler, find the running descriptor from the rcar_dmac_chan_get_residue()
1158 * descriptor pointer field in the CHCRB register. In non-descriptor rcar_dmac_chan_get_residue()
1159 * mode just use the running descriptor pointer. rcar_dmac_chan_get_residue()
1219 * If no transfer is running pick the first descriptor from the active rcar_dmac_issue_pending()
1248 * cyclic descriptor when a descriptor stage end interrupt is rcar_dmac_isr_desc_stage_end()
1270 * descriptor when a transfer end interrupt is triggered. Warn rcar_dmac_isr_transfer_end()
1278 * descriptor mode. Only update the running chunk pointer in rcar_dmac_isr_transfer_end()
1279 * non-descriptor mode. rcar_dmac_isr_transfer_end()
1307 /* The descriptor is complete, move it to the done list. */ rcar_dmac_isr_transfer_end()
1310 /* Queue the next descriptor, if any. */ rcar_dmac_isr_transfer_end()
1386 * We own the only reference to this descriptor, we can rcar_dmac_isr_channel_thread()
/linux-4.1.27/drivers/staging/lustre/include/linux/libcfs/
H A Dlibcfs_crypto.h134 /* cfs crypto hash descriptor */
137 /** Allocate and initialize descriptor for hash algorithm.
142 * @returns pointer to descriptor of hash instance
150 * @param desc hash descriptor
162 * @param desc hash descriptor
172 * descriptor.
173 * @param desc hash descriptor
176 * destroy hash descriptor
/linux-4.1.27/drivers/net/ethernet/broadcom/
H A Dbcm63xx_enet.h15 /* default number of descriptor */
227 /* current number of armed descriptor given to hardware for rx */
230 /* next rx descriptor to fetch from hardware */
233 /* next dirty rx descriptor to refill */
262 /* number of available descriptor for tx */
265 /* next tx descriptor avaiable */
268 /* next dirty tx descriptor to reclaim */
355 /* dma descriptor shift value */
/linux-4.1.27/arch/um/drivers/
H A Dfd.c30 "file descriptor\n"); fd_init()
36 printk(UM_KERN_ERR "fd_init : couldn't parse file descriptor " fd_init()
H A Dxterm.c107 * This business of getting a descriptor to a temp file, xterm_open()
108 * deleting the file and closing the descriptor is just to get xterm_open()
147 printk(UM_KERN_ERR "xterm_open : failed to set descriptor " xterm_open()
163 "descriptor non-blocking, err = %d\n", -err); xterm_open()
/linux-4.1.27/include/uapi/linux/
H A Deventpoll.h41 /* Set the One Shot behaviour for the target file descriptor */
44 /* Set the Edge Triggered behaviour for the target file descriptor */
H A Dauxvec.h10 #define AT_EXECFD 2 /* file descriptor of program */
H A Dgfs2_ondisk.h406 * Log type descriptor
410 /* ld_data1 is the number of metadata blocks in the descriptor.
414 /* ld_data1 is the number of revoke blocks in the descriptor.
418 /* ld_data1 is the number of data blocks in the descriptor.
426 __be32 ld_data1; /* descriptor-specific field */
427 __be32 ld_data2; /* descriptor-specific field */
/linux-4.1.27/arch/powerpc/include/asm/
H A Dcpm.h13 __be16 rbase; /* Rx Buffer descriptor base address */
14 __be16 tbase; /* Tx Buffer descriptor base address */
92 /* Buffer descriptor control/status used by serial
97 #define BD_SC_WRAP (0x2000) /* Last buffer descriptor */
113 /* Buffer descriptor control/status used by Ethernet receive.
132 /* Buffer descriptor control/status used by Ethernet transmit.
150 /* Buffer descriptor control/status used by Transparent mode SCC.
154 /* Buffer descriptor control/status used by I2C.
H A Dpte-8xx.h9 * Mx_CTR.PPCS = 0, and MD_CTR.TWAM = 1. The level 2 descriptor has
16 * descriptor contains the guarded and writethrough/copyback bits, we can
20 * These will get masked from the level 2 descriptor at TLB load time, and
/linux-4.1.27/include/net/caif/
H A Dcaif_hsi.h22 * HSI descriptor.
32 /* Structure describing a HSI packet descriptor. */
42 /* Size of the complete HSI packet descriptor. */
46 * Size of the complete HSI packet descriptor excluding the optional embedded
64 /* Bitmasks for the HSI descriptor. */
/linux-4.1.27/net/caif/
H A Dcaif_usb.c26 #define CFUSB_PAD_DESCR_SZ 1 /* Alignment descriptor length */
141 le16_to_cpu(usbdev->descriptor.idVendor), cfusbl_device_notify()
142 le16_to_cpu(usbdev->descriptor.idProduct)); cfusbl_device_notify()
145 if (!(le16_to_cpu(usbdev->descriptor.idVendor) == STE_USB_VID && cfusbl_device_notify()
146 le16_to_cpu(usbdev->descriptor.idProduct) == STE_USB_PID_CAIF)) cfusbl_device_notify()
/linux-4.1.27/tools/firewire/
H A Ddecode-fcp.c99 [0x0c] = { "create descriptor" },
100 [0x08] = { "open descriptor" },
101 [0x09] = { "read descriptor" },
102 [0x0a] = { "write descriptor" },
106 [0x0b] = { "search descriptor" },
/linux-4.1.27/drivers/usb/dwc2/
H A Dhcd_ddma.c2 * hcd_ddma.c - DesignWare HS OTG Controller descriptor DMA routines
312 * Allocates memory for the descriptor list. For the first periodic QH,
358 * Frees descriptor list memory associated with the QH. If QH is periodic and
409 * descriptor firstly. dwc2_calc_starting_frame()
412 * the descriptor corresponding to curr_frame+1, the descriptor dwc2_calc_starting_frame()
416 * latest descriptor(considering rollback) corresponding to frame 2 will dwc2_calc_starting_frame()
424 * Starting descriptor index must be 8-aligned, so if the dwc2_calc_starting_frame()
442 * But for descriptor programming, 1 frame (descriptor) is dwc2_calc_starting_frame()
453 * Calculate initial descriptor index for isochronous transfer based on
476 * Calculate starting descriptor index. For INTERRUPT endpoint it is dwc2_recalc_initial_desc_idx()
482 * Calculate initial descriptor index based on FrameList current dwc2_recalc_initial_desc_idx()
528 /* Set IOC for each descriptor corresponding to last frame of URB */ dwc2_fill_host_isoc_dma_desc()
574 /* Set IOC for last descriptor if descriptor list is full */ dwc2_init_isoc_dma_desc()
581 * Set IOC bit only for one descriptor. Always try to be ahead of HW dwc2_init_isoc_dma_desc()
582 * processing, i.e. on IOC generation driver activates next descriptor dwc2_init_isoc_dma_desc()
594 * HW processing of the previous descriptor chunk. dwc2_init_isoc_dma_desc()
600 * Set the IOC for the latest descriptor if either number of dwc2_init_isoc_dma_desc()
651 * Last (or only) descriptor of IN transfer with actual size less dwc2_fill_host_dma_desc()
742 * For Control and Bulk endpoints, initializes descriptor list and starts the
743 * transfer. For Interrupt and Isochronous endpoints, initializes descriptor
746 * For Isochronous endpoints the starting descriptor index is calculated based
747 * on the scheduled frame, but only on the first transfer descriptor within a
853 /* Stop if IOC requested descriptor reached */ dwc2_cmpl_host_isoc_dma_desc()
970 "%s: Unhandled descriptor error status (%d)\n", dwc2_update_non_isoc_urb_state_ddma()
979 "Active descriptor encountered on channel %d\n", dwc2_update_non_isoc_urb_state_ddma()
1065 * Last descriptor for Control data stage which dwc2_process_non_isoc_desc()
1138 * dwc2_hcd_complete_xfer_ddma() - Scans the descriptor list, updates URB's
1185 * Scan descriptor list to complete the URB(s), then release dwc2_hcd_complete_xfer_ddma()
/linux-4.1.27/drivers/net/ethernet/3com/
H A Dtyphoon.h130 /* The Typhoon transmit/fragment descriptor
132 * A packet is described by a packet descriptor, followed by option descriptors,
135 * Packet descriptor:
141 * Fragment descriptor:
192 /* The TCP Segmentation offload option descriptor
194 * flags: descriptor type
196 * mss_flags: bits 0-11 (little endian) are MSS, 12 is first TSO descriptor
197 * 13 is list TSO descriptor, set both if only one TSO
198 * respAddrLo: low bytes of address of the bytesTx field of this descriptor
213 /* The IPSEC Offload descriptor
215 * flags: descriptor type
232 /* The Typhoon receive descriptor (Updated by NIC)
289 /* The Typhoon free buffer descriptor, used to give a buffer to the NIC
306 /* The Typhoon command descriptor, used for commands and responses
308 * flags: descriptor type
310 * ie, zero for a one descriptor command
352 /* The Typhoon response descriptor, see command descriptor for details
454 /* TYPHOON_CMD_CREATE_SA descriptor and settings
/linux-4.1.27/drivers/net/ethernet/atheros/atlx/
H A Datl1.h394 /* RRD descriptor */
434 /* RFD descriptor */
436 __le64 buffer_addr; /* Address of the descriptor's data buffer */
444 * The L1 transmit packet descriptor is comprised of four 32-bit words.
593 * mapped for the three descriptor rings (tpd, rfd, rrd) and the two
613 /* transmit packet descriptor (tpd) ring */
615 void *desc; /* descriptor ring virtual address */
616 dma_addr_t dma; /* descriptor ring physical address */
617 u16 size; /* descriptor ring length in bytes */
625 /* receive free descriptor (rfd) ring */
627 void *desc; /* descriptor ring virtual address */
628 dma_addr_t dma; /* descriptor ring physical address */
629 u16 size; /* descriptor ring length in bytes */
636 /* receive return descriptor (rrd) ring */
638 void *desc; /* descriptor ring virtual address */
639 dma_addr_t dma; /* descriptor ring physical address */
640 unsigned int size; /* descriptor ring length in bytes */
773 /* all descriptor rings' memory */
/linux-4.1.27/drivers/net/wireless/rt2x00/
H A Drt2x00queue.h79 * @SKBDESC_DESC_IN_SKB: The descriptor is at the start of the
97 * @desc_len: Length of the frame descriptor.
100 * @desc: Pointer to descriptor part of the frame.
124 * get_skb_frame_desc - Obtain the rt2x00 frame descriptor from a sk_buff.
164 * struct rxdone_entry_desc: RX Entry descriptor
166 * Summary of information that has been read from the RX frame descriptor.
222 * struct txdone_entry_desc: TX done entry descriptor
224 * Summary of information that has been read from the TX frame descriptor
236 * enum txentry_desc_flags: Status flags for TX entry descriptor
277 * struct txentry_desc: TX Entry descriptor
279 * Summary of information for the frame descriptor before sending a TX frame.
454 * @desc_size: Hardware descriptor size for the data in this queue.
639 * _rt2x00_desc_read - Read a word from the hardware descriptor.
640 * @desc: Base descriptor address
641 * @word: Word index from where the descriptor should be read.
642 * @value: Address where the descriptor value should be written into.
650 * rt2x00_desc_read - Read a word from the hardware descriptor, this
652 * @desc: Base descriptor address
653 * @word: Word index from where the descriptor should be read.
654 * @value: Address where the descriptor value should be written into.
664 * rt2x00_desc_write - write a word to the hardware descriptor, this
666 * @desc: Base descriptor address
667 * @word: Word index from where the descriptor should be written.
668 * @value: Value that should be written into the descriptor.
676 * rt2x00_desc_write - write a word to the hardware descriptor.
677 * @desc: Base descriptor address
678 * @word: Word index from where the descriptor should be written.
679 * @value: Value that should be written into the descriptor.
H A Drt2800mmio.h42 * DMA descriptor defines.
48 * TX descriptor format for TX, PRIO and Beacon Ring.
84 * RX descriptor format for RX Ring.
129 /* TX descriptor initialization */
H A Drt2x00dump.h49 * [rt2x00dump header][hardware descriptor][ieee802.11 frame]
53 * hardware descriptor: Descriptor that was used to receive or transmit
96 * @desc_length: The length of the device descriptor.
/linux-4.1.27/drivers/scsi/
H A Dvmw_pvscsi.h125 * Command descriptor for PVSCSI_CMD_RESET_DEVICE --
134 * Command descriptor for PVSCSI_CMD_CONFIG --
145 * Command descriptor for PVSCSI_CMD_SETUP_REQCALLTHRESHOLD --
165 * Command descriptor for PVSCSI_CMD_ABORT_CMD --
178 * Command descriptor for PVSCSI_CMD_SETUP_RINGS --
197 * Command descriptor for PVSCSI_CMD_SETUP_MSG_RING --
230 * Msg descriptor.
282 * Request descriptor.
363 * Completion descriptor.
H A D3w-9xxx.h192 {0x0184, "DCB UDB (unit descriptor block) segment invalid"},
240 {0x0250, "Invalid unit descriptor size in CreateUnit"},
241 {0x0251, "Unit descriptor size exceeds data buffer in CreateUnit"},
242 {0x0252, "Invalid value in CreateUnit descriptor"},
243 {0x0253, "Inadequate disk space to support descriptor in CreateUnit"},
244 {0x0254, "Unable to create data channel for this unit descriptor"},
245 {0x0255, "CreateUnit descriptor specifies a drive already in use"},
247 {0x0257, "CreateUnit does not support this descriptor version"},
250 {0x025A, "Invalid configuration specified in CreateUnit descriptor"},
251 {0x025B, "Invalid LBA offset specified in CreateUnit descriptor"},
252 {0x025C, "Invalid stripelet size specified in CreateUnit descriptor"},
604 /* GetParam descriptor */
/linux-4.1.27/drivers/regulator/
H A Dhelpers.c28 * enable_reg and enable_mask fields in their descriptor and then use
60 * enable_reg and enable_mask fields in their descriptor and then use
86 * enable_reg and enable_mask fields in their descriptor and then use
112 * vsel_reg and vsel_mask fields in their descriptor and then use this
138 * vsel_reg and vsel_mask fields in their descriptor and then use this
284 * Drivers providing linear_ranges in their descriptor can use this as
346 * selectors can set min_uV and uV_step in the regulator descriptor
370 * and selectors can set linear_ranges in the regulator descriptor and
407 * selectors can set volt_table in the regulator descriptor
/linux-4.1.27/drivers/media/usb/go7007/
H A Dgo7007-loader.c56 if (usbdev->descriptor.bNumConfigurations != 1) { go7007_loader_probe()
61 vendor = le16_to_cpu(usbdev->descriptor.idVendor); go7007_loader_probe()
62 product = le16_to_cpu(usbdev->descriptor.idProduct); go7007_loader_probe()
/linux-4.1.27/drivers/net/fddi/skfp/h/
H A Dosdef1st.h98 * OS-specific part of the transmit/receive descriptor structure (TXD/RXD).
108 struct s_txd_os { // os-specific part of transmit descriptor
113 struct s_rxd_os { // os-specific part of receive descriptor
/linux-4.1.27/drivers/scsi/fnic/
H A Dvnic_wq_copy.h60 * reordering, thus avoiding descriptor posting before vnic_wq_copy_post()
61 * descriptor is initialized. Otherwise, hardware can read vnic_wq_copy_post()
62 * stale descriptor fields. vnic_wq_copy_post()
H A Dcq_desc.h22 * Completion queue descriptor types
32 /* Completion queue descriptor: 16B
H A Dvnic_wq.h127 * reordering, thus avoiding descriptor posting before vnic_wq_post()
128 * descriptor is initialized. Otherwise, hardware can read vnic_wq_post()
129 * stale descriptor fields. vnic_wq_post()
/linux-4.1.27/drivers/usb/storage/
H A Dusual-tables.c113 vid = le16_to_cpu(udev->descriptor.idVendor); usb_usual_ignore_device()
114 pid = le16_to_cpu(udev->descriptor.idProduct); usb_usual_ignore_device()
115 bcd = le16_to_cpu(udev->descriptor.bcdDevice); usb_usual_ignore_device()
H A Dcypress_atacb.c211 /* Sense data is current and format is descriptor. */ cypress_atacb_passthrough()
258 * Filter out this revision from EEPROM default descriptor values cypress_probe()
261 if (device->descriptor.iManufacturer != 0x38 || cypress_probe()
262 device->descriptor.iProduct != 0x4e || cypress_probe()
263 device->descriptor.iSerialNumber != 0x64) { cypress_probe()
H A Duas-detect.h96 if (le16_to_cpu(udev->descriptor.idVendor) == 0x174c && uas_use_uas_driver()
97 (le16_to_cpu(udev->descriptor.idProduct) == 0x5106 || uas_use_uas_driver()
98 le16_to_cpu(udev->descriptor.idProduct) == 0x55aa)) { uas_use_uas_driver()
/linux-4.1.27/sound/usb/
H A Dhelper.c41 * parse descriptor buffer and return the pointer starting the given
42 * descriptor type.
65 * find a class-specified interface descriptor with the given subtype.
H A Dhelper.h17 * retrieve usb_interface descriptor from the host interface
/linux-4.1.27/drivers/rapidio/devices/
H A Dtsi721_dma.c90 * (add an extra element for link descriptor) tsi721_bdma_ch_init()
105 /* Allocate space for descriptor status FIFO */ tsi721_bdma_ch_init()
129 /* Initialize DMA descriptors ring using added link descriptor */ tsi721_bdma_ch_init()
135 /* Setup DMA descriptor pointers */ tsi721_bdma_ch_init()
141 /* Setup descriptor status FIFO */ tsi721_bdma_ch_init()
345 /* Initialize DMA descriptor */ tsi721_desc_fill_init()
369 /* Update DMA descriptor */ tsi721_desc_fill_end()
396 /* Check and clear descriptor status FIFO entries */ tsi721_clr_stat()
449 /* wrap around link descriptor */ tsi721_submit_sg()
472 * try to merge it into existing DMA descriptor tsi721_submit_sg()
476 /* Adjust byte count of the descriptor */ tsi721_submit_sg()
480 /* Finalize descriptor using total byte count value */ tsi721_submit_sg()
491 "%s: HW descriptor ring is full @ %d\n", tsi721_submit_sg()
514 /* wrap around link descriptor */ tsi721_submit_sg()
588 "%s: DMAC%d descriptor status FIFO is full\n", tsi721_dma_tasklet()
630 /* Check if the descriptor is detached from any lists */ tsi721_tx_submit()
633 "%s: wrong state of descriptor %p\n", __func__, txd); tsi721_tx_submit()
/linux-4.1.27/fs/nilfs2/
H A Dalloc.c36 * descriptor block can maintain
81 /* Number of blocks per descriptor including the nilfs_palloc_init_blockgroup()
82 descriptor block */ nilfs_palloc_init_blockgroup()
102 * nilfs_palloc_desc_blkoff - get block offset of a group descriptor block
106 * nilfs_palloc_desc_blkoff() returns block offset of the descriptor
107 * block which contains a descriptor of the specified group.
138 * @desc: pointer to descriptor structure for the group
156 * @desc: pointer to descriptor structure for the group
187 * nilfs_palloc_desc_block_init - initialize buffer of a group descriptor block
243 * nilfs_palloc_get_desc_block - get buffer head of a group descriptor block
299 * nilfs_palloc_block_get_group_desc - get kernel address of a group descriptor
302 * @bh: buffer head of the buffer storing the group descriptor block
385 * in a group descriptor block
401 * nilfs_palloc_count_desc_blocks - count descriptor blocks number
403 * @desc_blocks: descriptor blocks number [out]
423 * @desc_blocks: known current descriptor blocks count
434 * described by descriptor blocks count
/linux-4.1.27/drivers/dma/xilinx/
H A Dxilinx_vdma.c164 * @hw: Hardware descriptor
165 * @node: Node in the descriptor segments list
176 * @async_tx: Async transaction descriptor
190 * @desc_offset: TX descriptor registers offset
193 * @active_desc: Active descriptor
194 * @allocated_desc: Allocated descriptor
336 * xilinx_vdma_tx_descriptor - Allocate transaction descriptor
339 * Return: The allocated descriptor on success and NULL on failure.
364 * xilinx_vdma_free_tx_descriptor - Free transaction descriptor
366 * @desc: VDMA transaction descriptor
390 * @list: List to parse and delete the descriptor
455 /* Run the link descriptor callback function */ xilinx_vdma_chan_desc_cleanup()
464 /* Run any dependencies, then free the descriptor */ xilinx_vdma_chan_desc_cleanup()
498 * We need the descriptor to be aligned to 64bytes xilinx_vdma_alloc_chan_resources()
507 "unable to allocate channel %d descriptor pool\n", xilinx_vdma_alloc_chan_resources()
627 /* There's already an active descriptor, bail out. */ xilinx_vdma_start_transfer()
738 * xilinx_vdma_complete_descriptor - Mark the active descriptor as complete
883 * @tx: Async transaction descriptor
921 * xilinx_vdma_dma_prep_interleaved - prepare a descriptor for a
927 * Return: Async transaction descriptor on success and NULL on failure
948 /* Allocate a transaction descriptor. */ xilinx_vdma_dma_prep_interleaved()
957 /* Allocate the link descriptor from DMA pool */ xilinx_vdma_dma_prep_interleaved()
962 /* Fill in the hardware descriptor */ xilinx_vdma_dma_prep_interleaved()
976 /* Link the previous next descriptor to current */ xilinx_vdma_dma_prep_interleaved()
983 /* Insert the segment into the descriptor segments list. */ xilinx_vdma_dma_prep_interleaved()
988 /* Link the last hardware descriptor with the first. */ xilinx_vdma_dma_prep_interleaved()
/linux-4.1.27/drivers/net/ethernet/neterion/vxge/
H A Dvxge-config.h355 * always placed into the RxDMA descriptor.
605 * descriptor.
608 * to-be-completed descriptor.
613 * @per_dtr_space: Per-descriptor space (in bytes) that channel user can utilize
892 * 1-buffer mode descriptor is 32 byte long, etc.
894 * per-descriptor data (e.g., DMA handle for Solaris)
904 * @rxd_init: Channel's descriptor-initialize callback.
908 * @rxd_term: Channel's descriptor-terminate callback. If not NULL,
966 * Titan/HW descriptor states.
988 * @priv_size: Per-Tx descriptor space reserved for driver
994 * @txdl_term: Fifo's descriptor-terminate callback. If not NULL,
1038 * struct __vxge_hw_fifo_txdl_priv - Transmit descriptor HW-private data.
1039 * @dma_addr: DMA (mapped) address of _this_ descriptor.
1040 * @dma_handle: DMA handle used to map the descriptor onto device.
1053 * Grows while filling the descriptor, gets reset.
1065 * the descriptor. This member is used only in the "checked"
1068 * @allocated: True if the descriptor is reserved, 0 otherwise. Internal usage.
1071 * information associated with the descriptor. Note that driver can ask HW
1072 * to allocate additional per-descriptor space for its own (driver-specific)
1161 * 10: First descriptor of a frame.
1162 * 00: Middle of a multi-descriptor frame.
1163 * 01: Last descriptor of a frame.
1164 * 11: First and last descriptor of a frame (the entire frame
1166 * For multi-descriptor frames, the only valid gather code sequence
1251 * Titan descriptor prior to posting the latter on the fifo
1253 * to the driver with each completed descriptor.
1255 * Transmit descriptor (TxD).Fifo descriptor contains configured number
1372 * available buffer size in bytes when it passes the descriptor to
1476 * vxge_hw_ring_rxd_size_get - Get the size of ring descriptor.
1499 * vxge_hw_ring_rxd_1b_set - Prepare 1-buffer-mode descriptor.
1501 * @dma_pointer: DMA address of a single receive buffer this descriptor
1506 * Prepare 1-buffer-mode Rx descriptor for posting
1527 * descriptor.
1530 * @dma_pointer: DMA address of a single receive buffer this descriptor
1534 * Retrieve protocol data from the completed 1-buffer-mode Rx descriptor.
1535 * This inline helper-function uses completed descriptor to populate receive
1553 * a completed receive descriptor for 1b mode.
1558 * Retrieve extended information associated with a completed receive descriptor.
1604 * vxge_hw_ring_rxd_private_get - Get driver private per-descriptor data
1608 * Returns: private driver info associated with the descriptor.
1609 * driver requests per-descriptor space via vxge_hw_ring_attr.
1625 * descriptor.
1626 * This API is part of the preparation of the transmit descriptor for posting
1630 * All these APIs fill in the fields of the fifo descriptor,
1646 * This API is part of the preparation of the transmit descriptor for posting
1650 * All these APIs fill in the fields of the fifo descriptor,
1667 * Insert VLAN tag into specified transmit descriptor.
1679 * vxge_hw_fifo_txdl_private_get - Retrieve per-descriptor private data.
1682 * Retrieve per-descriptor private data.
1683 * Note that driver requests per-descriptor space via
1687 * Returns: private driver data associated with the descriptor.
1701 * @rxd_init: Ring's descriptor-initialize callback.
1705 * @rxd_term: Ring's descriptor-terminate callback. If not NULL,
1711 * reserved by HW per each receive descriptor.
1743 * @txdlh: First completed descriptor.
1748 * descriptor prior to posting the latter on the fifo
1750 * as is to the driver with each completed descriptor.
1767 * Non-zero @t_code means failure to process transmit descriptor.
1770 * link is down, in which case Titan completes the descriptor because it
1778 * function vxge_hw_fifo_txdl_term_f - Terminate descriptor callback.
1779 * @txdlh: First completed descriptor.
1785 * Terminate descriptor callback. Unless NULL is specified in the
1802 * @txdl_term: Fifo's descriptor-terminate callback. If not NULL,
1808 * reserved by HW per each transmit descriptor. Can be used to
H A Dvxge-traffic.c1124 * vxge_hw_ring_rxd_reserve - Reserve ring descriptor.
1126 * @rxdh: Reserved descriptor. On success HW fills this "out" parameter
1129 * Reserve Rx descriptor for the subsequent filling-in driver
1158 * vxge_hw_ring_rxd_free - Free descriptor.
1162 * Free the reserved descriptor. This operation is "symmetrical" to
1163 * vxge_hw_ring_rxd_reserve. The "free-ing" completes the descriptor's
1166 * After free-ing (see vxge_hw_ring_rxd_free()) the descriptor again can
1228 * vxge_hw_ring_rxd_post - Post descriptor on the ring.
1232 * Post descriptor on the ring.
1233 * Prior to posting the descriptor should be filled in accordance with
1267 * vxge_hw_ring_rxd_next_completed - Get the _next_ completed descriptor.
1273 * Retrieve the _next_ completed descriptor.
1286 * of the descriptor.
1288 * In this case Titan will complete the descriptor and indicate
1357 * Handle descriptor's transfer code. The latter comes with each completed
1358 * descriptor.
1434 * vxge_hw_fifo_txdl_reserve - Reserve fifo descriptor.
1436 * @txdlh: Reserved descriptor. On success HW fills this "out" parameter
1440 * Reserve a single TxDL (that is, fifo descriptor)
1446 * for lengthy (e.g., LSO) transmit operation. A single fifo descriptor
1493 * descriptor.
1501 * This API is part of the preparation of the transmit descriptor for posting
1504 * All three APIs fill in the fields of the fifo descriptor,
1546 * vxge_hw_fifo_txdl_post - Post descriptor on the fifo channel.
1552 * Post descriptor on the 'fifo' type channel for transmission.
1553 * Prior to posting the descriptor should be filled in accordance with
1590 * vxge_hw_fifo_txdl_next_completed - Retrieve next completed descriptor.
1597 * Retrieve the _next_ completed descriptor.
1609 * Non-zero @t_code means failure to process the descriptor.
1611 * down, in which case Titan completes the descriptor because it
1669 * Handle descriptor's transfer code. The latter comes with each completed
1670 * descriptor.
1696 * vxge_hw_fifo_txdl_free - Free descriptor.
1700 * Free the reserved descriptor. This operation is "symmetrical" to
1701 * vxge_hw_fifo_txdl_reserve. The "free-ing" completes the descriptor's
1704 * After free-ing (see vxge_hw_fifo_txdl_free()) the descriptor again can
/linux-4.1.27/drivers/net/ethernet/amd/
H A Da2065.h105 unsigned char rmd1_bits; /* descriptor bits */
115 unsigned char tmd1_bits; /* descriptor bits */
126 #define LE_R1_OWN 0x80 /* LANCE owns the descriptor */
141 #define LE_T1_OWN 0x80 /* LANCE owns the descriptor */
H A D7990.h48 /* Each receive buffer is described by a receive message descriptor (RMD) */
51 volatile unsigned char rmd1_bits; /* descriptor bits */
61 volatile unsigned char tmd1_bits; /* descriptor bits */
68 * the initialization block, the receive and transmit descriptor rings,
78 volatile unsigned short rx_ptr; /* receive descriptor addr */
80 volatile unsigned short tx_ptr; /* transmit descriptor addr */
197 #define LE_R1_OWN 0x80 /* LANCE owns the descriptor */
211 #define LE_T1_OWN 0x80 /* LANCE owns the descriptor */
/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/
H A Ddescs.h27 /* Basic descriptor structure for normal and alternate descriptors */
29 /* Receive descriptor */
93 /* Transmit descriptor */
168 /* Extended descriptor structure (supported by new SYNP GMAC generations) */
/linux-4.1.27/drivers/net/wireless/b43legacy/
H A Ddma.h71 /* 32-bit DMA descriptor. */
110 /* DMA base bus-address of the descriptor buffer. */
133 /* Number of descriptor slots in the ring. */
135 /* Number of used descriptor slots. */
/linux-4.1.27/drivers/crypto/caam/
H A Dctrl.c70 * run_descriptor_deco0 - runs a descriptor on DECO0, under direct control of
73 * @status - descriptor status, after being run
77 * - -EAGAIN if an error occurred while executing the descriptor
117 * If the descriptor length is longer than 4 words, then the run_descriptor_deco0()
130 * If an error occured in the descriptor, then run_descriptor_deco0()
155 * instantiate_rng - builds and executes a descriptor on DECO0,
167 * - -ENOMEM if there isn't enough memory to allocate the descriptor
169 * - -EAGAIN if an error occurred when executing the descriptor
194 /* Create the descriptor for instantiating RNG State Handle */ instantiate_rng()
201 * If ret is not 0, or descriptor status is not 0, then instantiate_rng()
205 * instantiated although the descriptor has finished instantiate_rng()
215 /* Clear the contents before recreating the descriptor */ instantiate_rng()
225 * deinstantiate_rng - builds and executes a descriptor on DECO0,
233 * - -ENOMEM if there isn't enough memory to allocate the descriptor
235 * - -EAGAIN if an error occurred when executing the descriptor
254 * Create the descriptor for deinstantating this state deinstantiate_rng()
/linux-4.1.27/arch/x86/kernel/cpu/
H A Dcpu.h31 unsigned char descriptor; member in struct:_tlb_table
/linux-4.1.27/block/partitions/
H A Dmac.h36 /* Driver descriptor structure, in block 0 */
/linux-4.1.27/drivers/acpi/
H A Dint340x_thermal.c39 /* Intel SoC DTS thermal driver needs INT3401 to set IRQ descriptor */ int340x_thermal_handler_attach()
/linux-4.1.27/arch/mips/include/asm/octeon/
H A Dcvmx-sysinfo.h38 * __cvmx_app_init() populates this from the cvmx boot descriptor.
52 /* ptr to memory descriptor block */
132 * @phy_mem_desc_ptr: Pointer to global physical memory descriptor
133 * (bootmem descriptor) @board_type: Octeon board
/linux-4.1.27/include/linux/i2c/
H A Di2c-hid.h19 * @hid_descriptor_address: i2c register where the HID descriptor is stored.
/linux-4.1.27/drivers/net/ethernet/cisco/enic/
H A Dcq_desc.h24 * Completion queue descriptor types
34 /* Completion queue descriptor: 16B
H A Dvnic_wq.h111 * reordering, thus avoiding descriptor posting before vnic_wq_doorbell()
112 * descriptor is initialized. Otherwise, hardware can read vnic_wq_doorbell()
113 * stale descriptor fields. vnic_wq_doorbell()
/linux-4.1.27/include/scsi/
H A Dscsi_eh.h11 * This is a slightly modified SCSI sense "descriptor" format header.
13 * is to place the salient data from either "fixed" or "descriptor" sense
/linux-4.1.27/arch/mips/include/asm/
H A Dsgialib.h37 /* Get next memory descriptor after CURR, returns first descriptor
/linux-4.1.27/arch/arm/include/asm/
H A Dpgtable-2level-hwdef.h16 * + Level 1 descriptor (PMD)
56 * + Level 2 descriptor (PTE)
/linux-4.1.27/arch/alpha/lib/
H A Dcallback_srm.S26 ldq $27,0($2) # DISPATCH procedure descriptor (VMS call std)
44 ldq $27,16($2) # VA of FIXUP procedure descriptor
/linux-4.1.27/fs/
H A Deventfd.c313 * eventfd_fget - Acquire a reference of an eventfd file descriptor.
314 * @fd: [in] Eventfd file descriptor.
319 * -EBADF : Invalid @fd file descriptor.
320 * -EINVAL : The @fd file descriptor is not an eventfd file.
340 * @fd: [in] Eventfd file descriptor.
366 * -EINVAL : The @fd file descriptor is not an eventfd file.
386 * phase, and the file descriptor installation phase.
387 * In this way races with userspace closing the newly installed file descriptor
/linux-4.1.27/drivers/net/ethernet/tundra/
H A Dtsi108_eth.h311 #define TSI108_TX_OWN (1 << 31) /* Set if the device owns the descriptor */
313 /* Note: the descriptor layouts assume big-endian byte order. */
317 u32 next0; /* Address of next descriptor, if any */
337 #define TSI108_RX_OWN (1 << 15) /* Set if the device owns the descriptor */
344 u32 next0; /* Address of next descriptor, if any */
345 u32 next1; /* Address of next descriptor, if any */
/linux-4.1.27/drivers/net/ethernet/xilinx/
H A Dll_temac.h281 /* CDMAC descriptor status bit definitions */
302 /* TX/RX CURDESC_PTR points to first descriptor */
303 /* TX/RX TAILDESC_PTR points to last descriptor in linked list */
306 * struct cdmac_bd - LocalLink buffer descriptor format
312 * 3 completed Current descriptor completed
320 u32 next; /* Physical address of next buffer descriptor */
H A Dxilinx_axienet.h71 #define XAXIDMA_TX_CDESC_OFFSET 0x00000008 /* Current descriptor pointer */
72 #define XAXIDMA_TX_TDESC_OFFSET 0x00000010 /* Tail descriptor pointer */
76 #define XAXIDMA_RX_CDESC_OFFSET 0x00000038 /* Current descriptor pointer */
77 #define XAXIDMA_RX_TDESC_OFFSET 0x00000040 /* Tail descriptor pointer */
82 #define XAXIDMA_BD_NDESC_OFFSET 0x00 /* Next descriptor pointer */
341 * struct axidma_bd - Axi Dma buffer descriptor layout
360 u32 next; /* Physical address of next buffer descriptor */
395 * @tx_bd_v: Virtual address of the TX buffer descriptor ring
397 * @rx_bd_v: Virtual address of the RX buffer descriptor ring
399 * @tx_bd_ci: Stores the index of the Tx buffer descriptor in the ring being
401 * @tx_bd_tail: Stores the index of the Tx buffer descriptor in the ring being
404 * @rx_bd_ci: Stores the index of the Rx buffer descriptor in the ring being
/linux-4.1.27/drivers/soc/ti/
H A Dknav_qmss.h189 * @desc_size: descriptor size
193 * @link_index: index of the first descriptor
196 * @pools: list of descriptor pools in the region
219 * @desc_size: descriptor size
241 * @descs: descriptor pointer
242 * @desc_head, desc_tail, desc_count: descriptor counters
/linux-4.1.27/include/uapi/sound/
H A Dcompress_offload.h57 * struct snd_compr_tstamp - timestamp descriptor
76 * struct snd_compr_avail - avail descriptor
91 * struct snd_compr_caps - caps descriptor
116 * @descriptor: array of codec capability descriptor
121 struct snd_codec_desc descriptor[MAX_NUM_CODEC_DESCRIPTORS]; member in struct:snd_compr_codec_caps
/linux-4.1.27/tools/perf/tests/
H A Ddso-data.c287 /* Make sure we did not leak any file descriptor. */ test__dso_data_cache()
309 * - set process file descriptor limit to current test__dso_data_reopen()
330 * open extra file descriptor and we just test__dso_data_reopen()
342 * the file descriptor limit test__dso_data_reopen()
352 * the file descriptor limit test__dso_data_reopen()
360 /* Make sure we did not leak any file descriptor. */ test__dso_data_reopen()
/linux-4.1.27/drivers/firewire/
H A Dohci.c77 struct descriptor { struct
104 struct descriptor *descriptors;
115 struct descriptor *d,
116 struct descriptor *last);
120 * storing a portion of a DMA descriptor program.
127 struct descriptor buffer[0];
152 * The descriptor containing the branch address of the first
153 * descriptor that has not yet been filled by the device.
155 struct descriptor *last;
158 * The last descriptor block in the DMA program. It contains the branch
159 * address that must be updated upon appending a new descriptor.
161 struct descriptor *prev;
672 struct descriptor *d; ar_context_link_page()
742 /* Peek at the next descriptor. */ ar_search_last_active_buffer()
748 * If the next descriptor is still empty, we must stop at this ar_search_last_active_buffer()
749 * descriptor. ar_search_last_active_buffer()
755 * buffer's descriptor might be never updated by the ar_search_last_active_buffer()
781 ar_context_abort(ctx, "corrupted descriptor"); ar_search_last_active_buffer()
972 ar_context_abort(ctx, "inconsistent descriptor"); ar_context_tasklet()
991 struct descriptor *d; ar_context_init()
1030 ar_next_buffer_index(i) * sizeof(struct descriptor)); ar_context_init()
1054 static struct descriptor *find_branch_descriptor(struct descriptor *d, int z) find_branch_descriptor()
1060 /* figure out which descriptor the branch address goes in */ find_branch_descriptor()
1070 struct descriptor *d, *last; context_tasklet()
1161 * We put a dummy descriptor in the buffer that has a NULL context_init()
1163 * have a descriptor to append DMA programs to. context_init()
1188 static struct descriptor *context_get_descriptors(struct context *ctx, context_get_descriptors()
1191 struct descriptor *d = NULL; context_get_descriptors()
1198 /* No room for the descriptor in this buffer, so advance to the context_get_descriptors()
1232 struct descriptor *d, int z, int extra) context_append()
1236 struct descriptor *d_branch; context_append()
1248 * VT6306 incorrectly checks only the single descriptor at the context_append()
1250 * multi-descriptor block starting with an INPUT_MORE, put a copy of context_append()
1251 * the branch address in the first descriptor. context_append()
1303 struct descriptor *d, *last; at_context_queue_packet()
1372 BUILD_BUG_ON(sizeof(struct driver_data) > sizeof(struct descriptor)); at_context_queue_packet()
1439 struct descriptor *d, handle_at_packet()
1440 struct descriptor *last) handle_at_packet()
1448 /* This descriptor isn't done yet, stop iteration. */ handle_at_packet()
2770 struct descriptor *d, handle_ir_packet_per_buffer()
2771 struct descriptor *last) handle_ir_packet_per_buffer()
2775 struct descriptor *pd; handle_ir_packet_per_buffer()
2803 /* d == last because each descriptor block is only a single descriptor. */ handle_ir_buffer_fill()
2805 struct descriptor *d, handle_ir_buffer_fill()
2806 struct descriptor *last) handle_ir_buffer_fill()
2856 struct descriptor *pd) sync_it_packet_for_cpu()
2865 /* skip over the OUTPUT_MORE_IMMEDIATE descriptor */ sync_it_packet_for_cpu()
2869 * If the packet has a header, the first OUTPUT_MORE/LAST descriptor's sync_it_packet_for_cpu()
2893 struct descriptor *d, handle_it_packet()
2894 struct descriptor *last) handle_it_packet()
2898 struct descriptor *pd; handle_it_packet()
3206 struct descriptor *d, *last, *pd; queue_iso_transmit()
3244 * Link the skip address to this descriptor itself. This causes queue_iso_transmit()
3311 struct descriptor *d, *pd; queue_iso_packet_per_buffer()
3331 /* d points to the header descriptor */ queue_iso_packet_per_buffer()
3391 struct descriptor *d; queue_iso_buffer_fill()
3399 /* We need one descriptor for each page in the buffer. */ queue_iso_buffer_fill()
3636 BUILD_BUG_ON(AR_BUFFERS * sizeof(struct descriptor) > PAGE_SIZE/4); pci_probe()
/linux-4.1.27/sound/usb/usx2y/
H A Dus122l.c202 if (us122l->dev->descriptor.idProduct == USB_ID_US144 || usb_stream_hwdep_open()
203 us122l->dev->descriptor.idProduct == USB_ID_US144MKII) { usb_stream_hwdep_open()
218 if (us122l->dev->descriptor.idProduct == USB_ID_US144 || usb_stream_hwdep_release()
219 us122l->dev->descriptor.idProduct == USB_ID_US144MKII) { usb_stream_hwdep_release()
340 /* The us-122l's descriptor defaults to iso max_packsize 78, us122l_start()
487 if (us122l->dev->descriptor.idProduct == USB_ID_US144 || us122l_create_card()
488 us122l->dev->descriptor.idProduct == USB_ID_US144MKII) { us122l_create_card()
507 if (us122l->dev->descriptor.idProduct == USB_ID_US144 || us122l_create_card()
508 us122l->dev->descriptor.idProduct == USB_ID_US144MKII) us122l_create_card()
565 le16_to_cpu(device->descriptor.idVendor), usx2y_create_card()
566 le16_to_cpu(device->descriptor.idProduct), usx2y_create_card()
611 if ((device->descriptor.idProduct == USB_ID_US144 || snd_us122l_probe()
612 device->descriptor.idProduct == USB_ID_US144MKII) snd_us122l_probe()
707 if (us122l->dev->descriptor.idProduct == USB_ID_US144 || snd_us122l_resume()
708 us122l->dev->descriptor.idProduct == USB_ID_US144MKII) { snd_us122l_resume()
/linux-4.1.27/drivers/net/ethernet/amd/xgbe/
H A Dxgbe.h149 * - Possible context descriptor
150 * - Possible TSO header descriptor
214 /* Helper macro for descriptor handling
215 * Always use XGBE_GET_DESC_DATA to access the descriptor data
217 * with the descriptor count value of the ring to index to
218 * the proper descriptor data.
272 /* Common Rx and Tx descriptor mapping */
313 /* Structure used to hold information related to the descriptor
314 * and the packet associated with the descriptor (always use
318 struct xgbe_ring_desc *rdesc; /* Virtual address of descriptor */
319 dma_addr_t rdesc_dma; /* DMA address of descriptor */
331 * or the last descriptor (last normal descriptor or a following
332 * context descriptor) has not been DMA'd yet the current state
352 /* Virtual/DMA addresses and count of allocated descriptor memory */
357 /* Array of descriptor data corresponding the descriptor memory
367 * cur - Tx: index of descriptor to be used for current transfer
368 * Rx: index of descriptor to check for packet availability
369 * dirty - Tx: index of descriptor to check for transfer complete
370 * Rx: index of descriptor to check for buffer reallocation
388 /* Structure used to describe the descriptor rings associated with
/linux-4.1.27/drivers/usb/serial/
H A Dio_usbvend.h297 // This descriptor is only returned by Edgeport-compatible devices
299 // descriptor, but instead return STALL on receipt of the
383 // Boot params descriptor
396 // 1. These have a standard USB descriptor header so they look like a
397 // normal descriptor.
399 // descriptor format, so that they may be separately retrieved,
419 // area for general USB descriptors and the descriptor tables (the root
420 // descriptor starts at xC00). At the bottom of the structure are the
428 __u16 RootDescTable[0x10]; // C00 Root of descriptor tables (just a placeholder)
443 __u8 DescDate[3]; // F09 MM/DD/YY when descriptor template was compiler,
446 __u8 SerNumLength; // F0C USB string descriptor len
447 __u8 SerNumDescType; // F0D USB descriptor type (=STRING type)
450 __u8 AssemblyNumLength; // F26 USB string descriptor len
451 __u8 AssemblyNumDescType; // F27 USB descriptor type (=STRING type)
454 __u8 OemAssyNumLength; // F44 USB string descriptor len
455 __u8 OemAssyNumDescType; // F45 USB descriptor type (=STRING type)
458 __u8 ManufDateLength; // F62 USB string descriptor len
459 __u8 ManufDateDescType; // F63 USB descriptor type (=STRING type)
544 __u16 EnumRootDescTable; // CA Root of ROM-based descriptor table
545 __u8 NumDescTypes; // CC Number of supported descriptor types
596 __u8 Type; // Type of descriptor
603 // for 3410 the version is stored in the WATCHPORT_FIRMWARE_VERSION descriptor
/linux-4.1.27/drivers/net/ethernet/oki-semi/pch_gbe/
H A Dpch_gbe.h306 /* TX/RX descriptor defines */
485 * @desc: pointer to the descriptor ring memory
486 * @dma: physical address of the descriptor ring
487 * @size: length of descriptor ring in bytes
489 * @next_to_use: next descriptor to associate a buffer with
490 * @next_to_clean: next descriptor to check for DD status bit
506 * @desc: pointer to the descriptor ring memory
507 * @dma: physical address of the descriptor ring
508 * @size: length of descriptor ring in bytes
510 * @next_to_use: next descriptor to associate a buffer with
511 * @next_to_clean: next descriptor to check for DD status bit
547 * @intr_rx_dsc_empty_count: Interrupt count of receive descriptor empty
614 * @tx_ring: Pointer of Tx descriptor ring structure
615 * @rx_ring: Pointer of Rx descriptor ring structure
/linux-4.1.27/drivers/net/ethernet/atheros/atl1c/
H A Datl1c.h265 /* RFD descriptor */
443 * mapped for the three descriptor rings (tpd, rfd, rrd) described below
485 /* transimit packet descriptor (tpd) ring */
487 void *desc; /* descriptor ring virtual address */
488 dma_addr_t dma; /* descriptor ring physical address */
489 u16 size; /* descriptor ring length in bytes */
496 /* receive free descriptor (rfd) ring */
498 void *desc; /* descriptor ring virtual address */
499 dma_addr_t dma; /* descriptor ring physical address */
500 u16 size; /* descriptor ring length in bytes */
507 /* receive return descriptor (rrd) ring */
509 void *desc; /* descriptor ring virtual address */
510 dma_addr_t dma; /* descriptor ring physical address */
511 u16 size; /* descriptor ring length in bytes */
/linux-4.1.27/drivers/net/ethernet/freescale/fs_enet/
H A Dfs_enet.h28 u32 fec_r_des_active; /* Receive descriptor reg */
29 u32 fec_x_des_active; /* Transmit descriptor reg */
56 u32 fec_r_des_start; /* Receive descriptor ring */
57 u32 fec_x_des_start; /* Transmit descriptor ring */
209 /* buffer descriptor access macros */
/linux-4.1.27/drivers/net/wireless/b43/
H A Ddma.h68 /* 32-bit DMA descriptor. */
141 /* 64-bit DMA descriptor. */
188 /* DMA base bus-address of the descriptor buffer. */
239 /* Number of descriptor slots in the ring. */
241 /* Number of used descriptor slots. */
/linux-4.1.27/drivers/gpu/drm/qxl/
H A Dqxl_image.c193 image->descriptor.id = 0; qxl_image_init_helper()
194 image->descriptor.type = SPICE_IMAGE_TYPE_BITMAP; qxl_image_init_helper()
196 image->descriptor.flags = 0; qxl_image_init_helper()
197 image->descriptor.width = width; qxl_image_init_helper()
198 image->descriptor.height = height; qxl_image_init_helper()
/linux-4.1.27/drivers/vme/bridges/
H A Dvme_ca91cx42.c1042 /* XXX descriptor must be aligned on 64-bit boundaries */ ca91cx42_dma_list_add()
1051 /* Test descriptor alignment */ ca91cx42_dma_list_add()
1052 if ((unsigned long)&entry->descriptor & CA91CX42_DCPP_M) { ca91cx42_dma_list_add()
1054 "required: %p\n", &entry->descriptor); ca91cx42_dma_list_add()
1059 memset(&entry->descriptor, 0, sizeof(struct ca91cx42_dma_descriptor)); ca91cx42_dma_list_add()
1062 entry->descriptor.dctl |= CA91CX42_DCTL_L2V; ca91cx42_dma_list_add()
1099 entry->descriptor.dctl |= CA91CX42_DCTL_VCT_BLT; ca91cx42_dma_list_add()
1104 entry->descriptor.dctl |= CA91CX42_DCTL_VDW_D8; ca91cx42_dma_list_add()
1107 entry->descriptor.dctl |= CA91CX42_DCTL_VDW_D16; ca91cx42_dma_list_add()
1110 entry->descriptor.dctl |= CA91CX42_DCTL_VDW_D32; ca91cx42_dma_list_add()
1113 entry->descriptor.dctl |= CA91CX42_DCTL_VDW_D64; ca91cx42_dma_list_add()
1123 entry->descriptor.dctl |= CA91CX42_DCTL_VAS_A16; ca91cx42_dma_list_add()
1126 entry->descriptor.dctl |= CA91CX42_DCTL_VAS_A24; ca91cx42_dma_list_add()
1129 entry->descriptor.dctl |= CA91CX42_DCTL_VAS_A32; ca91cx42_dma_list_add()
1132 entry->descriptor.dctl |= CA91CX42_DCTL_VAS_USER1; ca91cx42_dma_list_add()
1135 entry->descriptor.dctl |= CA91CX42_DCTL_VAS_USER2; ca91cx42_dma_list_add()
1144 entry->descriptor.dctl |= CA91CX42_DCTL_SUPER_SUPR; ca91cx42_dma_list_add()
1146 entry->descriptor.dctl |= CA91CX42_DCTL_PGM_PGM; ca91cx42_dma_list_add()
1148 entry->descriptor.dtbc = count; ca91cx42_dma_list_add()
1149 entry->descriptor.dla = pci_attr->address; ca91cx42_dma_list_add()
1150 entry->descriptor.dva = vme_attr->address; ca91cx42_dma_list_add()
1151 entry->descriptor.dcpp = CA91CX42_DCPP_NULL; ca91cx42_dma_list_add()
1161 desc_ptr = virt_to_bus(&entry->descriptor); ca91cx42_dma_list_add()
1162 prev->descriptor.dcpp = desc_ptr & ~CA91CX42_DCPP_M; ca91cx42_dma_list_add()
1225 bus_addr = virt_to_bus(&entry->descriptor); ca91cx42_dma_list_exec()
/linux-4.1.27/arch/mips/alchemy/common/
H A Ddbdma.c251 /* Allocate a channel and return a non-zero descriptor if successful. */ au1xxx_dbdma_chan_alloc()
389 /* Allocate a descriptor ring, initializing as much as possible. */ au1xxx_dbdma_ring_alloc()
438 /* Keep track of the base descriptor. */ au1xxx_dbdma_ring_alloc()
604 * an interrupt doesn't affect this pointer nor the descriptor, au1xxx_dbdma_put_source()
610 * If the descriptor is valid, we are way ahead of the DMA au1xxx_dbdma_put_source()
638 /* Get next descriptor pointer. */ au1xxx_dbdma_put_source()
661 * an interrupt doesn't affect this pointer nor the descriptor, au1xxx_dbdma_put_dest()
666 /* If the descriptor is valid, we are way ahead of the DMA au1xxx_dbdma_put_dest()
700 /* Get next descriptor pointer. */ au1xxx_dbdma_put_dest()
728 * an interrupt doesn't affect this pointer nor the descriptor, au1xxx_dbdma_get_dest()
734 * If the descriptor is valid, we are way ahead of the DMA au1xxx_dbdma_get_dest()
745 /* Get next descriptor pointer. */ au1xxx_dbdma_get_dest()
779 * Start using the current descriptor pointer. If the DBDMA encounters
780 * a non-valid descriptor, it will stop. In this case, we can just
815 * if a descriptor is in use by upper level software. Since au1xxx_dbdma_reset()
931 /* Put a descriptor into the DMA ring.
948 * an interrupt doesn't affect this pointer nor the descriptor, au1xxx_dbdma_put_dscr()
954 * If the descriptor is valid, we are way ahead of the DMA au1xxx_dbdma_put_dscr()
972 /* Get next descriptor pointer. */ au1xxx_dbdma_put_dscr()
/linux-4.1.27/drivers/staging/ft1000/ft1000-usb/
H A Dft1000_usb.c77 pr_debug("usb device descriptor info - number of configuration is %d\n", ft1000_probe()
78 dev->descriptor.bNumConfigurations); ft1000_probe()
95 pr_debug("descriptor type is: %d\n", iface_desc->desc.bDescriptorType); ft1000_probe()
/linux-4.1.27/drivers/crypto/amcc/
H A Dcrypto4xx_core.h77 descriptor ring */
80 void *gdr; /* gather descriptor ring */
83 void *sdr; /* scatter descriptor ring */
/linux-4.1.27/drivers/atm/
H A Deni.h56 unsigned long descr; /* next descriptor (RX) */
57 unsigned long rx_pos; /* current RX descriptor pos */
126 unsigned long pos; /* position of next descriptor */
H A DuPD98401.h202 * TX packet descriptor
205 #define uPD98401_TXPD_SIZE 16 /* descriptor size (in bytes) */
227 * TX buffer descriptor
230 #define uPD98401_TXBD_SIZE 8 /* descriptor size (in bytes) */
238 /* 1st word has the same structure as in a TX packet descriptor */
248 * RX free buffer pools descriptor
/linux-4.1.27/drivers/usb/wusbcore/
H A Dwa-rpipe.c31 * The number of blocks could be dynamic (wBlocks in descriptor is
74 /* Get the RPIPE descriptor -- we cannot use the usb_get_descriptor() __rpipe_get_descr()
84 dev_err(dev, "rpipe %u: get descriptor failed: %d\n", __rpipe_get_descr()
89 dev_err(dev, "rpipe %u: got short descriptor " __rpipe_get_descr()
103 * The descriptor is assumed to be properly initialized (ie: you got
122 dev_err(dev, "rpipe %u: set descriptor failed: %d\n", __rpipe_set_descr()
127 dev_err(dev, "rpipe %u: sent short descriptor " __rpipe_set_descr()
213 dev_err(dev, "Can't get descriptor for rpipe %u: %d\n", rpipe_get_idle()
247 * Fake companion descriptor for ep0
259 * Look for EP companion descriptor
292 dev_err(dev, "HW Bug? ep 0x%02x: extra descriptor " rpipe_epc_find()
325 dev_err(dev, "ep 0x%02x: can't find companion descriptor\n", rpipe_aim()
/linux-4.1.27/include/linux/soc/ti/
H A Dknav_dma.h21 * PKTDMA descriptor manipulation macros for host packet descriptor
134 * struct knav_dma_desc: Host packet descriptor layout
/linux-4.1.27/arch/arm64/include/asm/
H A Dpgtable-hwdef.h60 * Level 1 descriptor (PUD).
68 * Level 2 descriptor (PMD).
95 * Level 3 descriptor (PTE).
/linux-4.1.27/tools/lib/traceevent/
H A Dtrace-seq.c111 * @s: trace sequence descriptor
151 * @s: trace sequence descriptor
185 * @s: trace sequence descriptor
/linux-4.1.27/drivers/media/rc/
H A Drc-ir-raw.c72 * @dev: the struct rc_dev device descriptor
73 * @ev: the struct ir_raw_event descriptor of the pulse/space
97 * @dev: the struct rc_dev device descriptor
149 * @dev: the struct rc_dev device descriptor
190 * @dev: the struct rc_dev device descriptor
215 * @dev: the struct rc_dev device descriptor
/linux-4.1.27/drivers/media/usb/dvb-usb/
H A Ddibusb-common.c261 if (le16_to_cpu(adap->dev->udev->descriptor.idVendor) == USB_VID_LITEON && dibusb_dib3000mc_frontend_attach()
262 le16_to_cpu(adap->dev->udev->descriptor.idProduct) == dibusb_dib3000mc_frontend_attach()
300 if (le16_to_cpu(adap->dev->udev->descriptor.idVendor) == USB_VID_LITEON && dibusb_dib3000mc_tuner_attach()
301 le16_to_cpu(adap->dev->udev->descriptor.idProduct) == USB_PID_LITEON_DVB_T_WARM) { dibusb_dib3000mc_tuner_attach()
313 } else if (le16_to_cpu(adap->dev->udev->descriptor.idVendor) == USB_VID_DIBCOM && dibusb_dib3000mc_tuner_attach()
314 le16_to_cpu(adap->dev->udev->descriptor.idProduct) == USB_PID_DIBCOM_MOD3001_WARM) { dibusb_dib3000mc_tuner_attach()
/linux-4.1.27/drivers/staging/lustre/lnet/selftest/
H A Dconsole.h61 } lstcon_node_t; /*** node descriptor */
67 } lstcon_ndlink_t; /*** node link descriptor */
79 } lstcon_group_t; /*** (alias of nodes) group descriptor */
103 } lstcon_batch_t; /*** (tests ) batch descriptor */
125 } lstcon_test_t; /*** a single test descriptor */
167 } lstcon_session_t; /*** session descriptor */
/linux-4.1.27/drivers/usb/class/
H A Dcdc-acm.c149 * the cdc acm descriptor tells whether they do...
1129 dev_err(&intf->dev, "Weird descriptor references\n"); acm_probe()
1143 "Zero length descriptor references\n"); acm_probe()
1166 "union descriptor, skipping ...\n"); acm_probe()
1194 dev_dbg(&intf->dev, "Ignoring descriptor: " acm_probe()
1206 dev_dbg(&intf->dev, "No union descriptor, using call management descriptor\n"); acm_probe()
1215 dev_dbg(&intf->dev,"No union descriptor, giving up\n"); acm_probe()
1218 dev_warn(&intf->dev,"No union descriptor, testing for castrated device\n"); acm_probe()
1679 .driver_info = NO_UNION_NORMAL, },/* has no union descriptor */
1681 .driver_info = NO_UNION_NORMAL, },/* has no union descriptor */
1683 .driver_info = NO_UNION_NORMAL, /* has no union descriptor */
1686 .driver_info = NO_UNION_NORMAL, /* has no union descriptor */
1689 .driver_info = NO_UNION_NORMAL, /* has no union descriptor */
1692 .driver_info = NO_UNION_NORMAL, /* has no union descriptor */
1695 .driver_info = NO_UNION_NORMAL, /* has no union descriptor */
1707 .driver_info = NO_UNION_NORMAL, /* has no union descriptor */
1710 .driver_info = NO_UNION_NORMAL, /* has no union descriptor */
1713 .driver_info = NO_UNION_NORMAL, /* has no union descriptor */
1716 .driver_info = NO_UNION_NORMAL, /* has no union descriptor */
1719 .driver_info = NO_UNION_NORMAL, /* has no union descriptor */
1751 .driver_info = NO_UNION_NORMAL, /* union descriptor misplaced on
1764 .driver_info = NO_UNION_NORMAL, /* reports zero length descriptor */
1767 .driver_info = NO_UNION_NORMAL, /* reports zero length descriptor */

Completed in 8897 milliseconds

1234567891011