Home
last modified time | relevance | path

Searched full:elm (Results 1 – 25 of 108) sorted by relevance

12345

/openbmc/linux/drivers/net/can/
H A Dcan327.c53 /* Bits in elm->cmds_todo */
119 static inline void can327_uart_side_failure(struct can327 *elm);
121 static void can327_send(struct can327 *elm, const void *buf, size_t len) in can327_send() argument
125 lockdep_assert_held(&elm->lock); in can327_send()
127 if (elm->uart_side_failure) in can327_send()
130 memcpy(elm->txbuf, buf, len); in can327_send()
140 set_bit(TTY_DO_WRITE_WAKEUP, &elm->tty->flags); in can327_send()
141 written = elm->tty->ops->write(elm->tty, elm->txbuf, len); in can327_send()
143 netdev_err(elm->dev, "Failed to write to tty %s.\n", in can327_send()
144 elm->tty->name); in can327_send()
[all …]
/openbmc/openbmc/poky/meta/recipes-core/musl/bsd-headers/
H A Dsys-queue.h125 #define SLIST_NEXT(elm, field) ((elm)->field.sle_next) argument
145 #define SLIST_INSERT_AFTER(slistelm, elm, field) do { \ argument
146 (elm)->field.sle_next = (slistelm)->field.sle_next; \
147 (slistelm)->field.sle_next = (elm); \
150 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument
151 (elm)->field.sle_next = (head)->slh_first; \
152 (head)->slh_first = (elm); \
164 #define SLIST_REMOVE(head, elm, type, field) do { \ argument
165 if ((head)->slh_first == (elm)) { \
170 while(curelm->field.sle_next != (elm)) \
[all …]
H A Dsys-tree.h76 #define SPLAY_LEFT(elm, field) (elm)->field.spe_left argument
77 #define SPLAY_RIGHT(elm, field) (elm)->field.spe_right argument
121 /* Finds the node with the same key as elm */ \
123 name##_SPLAY_FIND(struct name *head, struct type *elm) \
127 name##_SPLAY(head, elm); \
128 if ((cmp)(elm, (head)->sph_root) == 0) \
134 name##_SPLAY_NEXT(struct name *head, struct type *elm) \
136 name##_SPLAY(head, elm); \
137 if (SPLAY_RIGHT(elm, field) != NULL) { \
138 elm = SPLAY_RIGHT(elm, field); \
[all …]
/openbmc/qemu/include/qemu/
H A Drcu_queue.h36 #define QLIST_NEXT_RCU(elm, field) (qatomic_rcu_read(&(elm)->field.le_next)) argument
61 #define QLIST_INSERT_AFTER_RCU(listelm, elm, field) do { \ argument
62 (elm)->field.le_next = (listelm)->field.le_next; \
63 (elm)->field.le_prev = &(listelm)->field.le_next; \
64 qatomic_rcu_set(&(listelm)->field.le_next, (elm)); \
65 if ((elm)->field.le_next != NULL) { \
66 (elm)->field.le_next->field.le_prev = \
67 &(elm)->field.le_next; \
77 #define QLIST_INSERT_BEFORE_RCU(listelm, elm, field) do { \ argument
78 (elm)->field.le_prev = (listelm)->field.le_prev; \
[all …]
H A Dqueue.h118 #define QLIST_INSERT_AFTER(listelm, elm, field) do { \ argument
119 if (((elm)->field.le_next = (listelm)->field.le_next) != NULL) \
121 &(elm)->field.le_next; \
122 (listelm)->field.le_next = (elm); \
123 (elm)->field.le_prev = &(listelm)->field.le_next; \
126 #define QLIST_INSERT_BEFORE(listelm, elm, field) do { \ argument
127 (elm)->field.le_prev = (listelm)->field.le_prev; \
128 (elm)->field.le_next = (listelm); \
129 *(listelm)->field.le_prev = (elm); \
130 (listelm)->field.le_prev = &(elm)->field.le_next; \
[all …]
/openbmc/linux/drivers/scsi/aic7xxx/
H A Dqueue.h136 #define SLIST_INSERT_AFTER(slistelm, elm, field) do { \ argument
137 SLIST_NEXT((elm), field) = SLIST_NEXT((slistelm), field); \
138 SLIST_NEXT((slistelm), field) = (elm); \
141 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument
142 SLIST_NEXT((elm), field) = SLIST_FIRST((head)); \
143 SLIST_FIRST((head)) = (elm); \
146 #define SLIST_NEXT(elm, field) ((elm)->field.sle_next) argument
148 #define SLIST_REMOVE(head, elm, type, field) do { \ argument
149 if (SLIST_FIRST((head)) == (elm)) { \
154 while (SLIST_NEXT(curelm, field) != (elm)) \
[all …]
/openbmc/linux/arch/arm64/boot/dts/mediatek/
H A Dmt8173-elm.dts7 #include "mt8173-elm.dtsi"
10 model = "Google Elm";
12 compatible = "google,elm-rev8", "google,elm-rev7", "google,elm-rev6",
13 "google,elm-rev5", "google,elm-rev4", "google,elm-rev3",
14 "google,elm", "mediatek,mt8173";
H A DMakefile19 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8173-elm.dtb
20 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8173-elm-hana.dtb
21 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8173-elm-hana-rev7.dtb
/openbmc/linux/drivers/mtd/nand/raw/
H A Domap_elm.c8 #define DRIVER_NAME "omap-elm"
17 #include <linux/platform_data/elm.h>
34 /* ELM Interrupt Status Register */
37 /* ELM Interrupt Enable Register */
40 /* ELM Location Configuration Register */
43 /* ELM syndrome */
96 * elm_config - Configure ELM module
97 * @dev: ELM device
110 dev_err(dev, "Unable to configure elm - device not probed?\n"); in elm_config()
113 /* ELM cannot detect ECC errors for chunks > 1KB */ in elm_config()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/mtd/
H A Dti,elm.yaml4 $id: http://devicetree.org/schemas/mtd/ti,elm.yaml#
7 title: Texas Instruments Error Location Module (ELM).
13 ELM module is used together with GPMC and NAND Flash to detect
20 - ti,am3352-elm
21 - ti,am64-elm
42 Name of the HWMOD associated with ELM. This is for legacy
57 const: ti,am64-elm
68 elm: ecc@0 {
69 compatible = "ti,am3352-elm";
H A Dti,gpmc-nand.yaml47 ti,elm-id:
49 phandle to the ELM (Error Location Module).
109 ti,elm-id = <&elm>;
/openbmc/linux/drivers/iommu/iommufd/
H A Dio_pagetable.c249 struct iopt_pages_list *elm; in iopt_alloc_area_pages() local
253 list_for_each_entry(elm, pages_list, next) { in iopt_alloc_area_pages()
254 elm->area = iopt_area_alloc(); in iopt_alloc_area_pages()
255 if (!elm->area) in iopt_alloc_area_pages()
267 elm = list_first_entry(pages_list, struct iopt_pages_list, in iopt_alloc_area_pages()
271 (uintptr_t)elm->pages->uptr + elm->start_byte, length); in iopt_alloc_area_pages()
290 list_for_each_entry(elm, pages_list, next) { in iopt_alloc_area_pages()
291 rc = iopt_insert_area(iopt, elm->area, elm->pages, iova, in iopt_alloc_area_pages()
292 elm->start_byte, elm->length, iommu_prot); in iopt_alloc_area_pages()
295 iova += elm->length; in iopt_alloc_area_pages()
[all …]
/openbmc/linux/drivers/staging/media/atomisp/pci/isp/kernels/s3a/s3a_1.0/
H A Dia_css_s3a.host.c334 int out_width, out_height, chunk, rest, kmax, y, x, k, elm_start, elm, ofs; in ia_css_s3a_vmem_decode() local
359 elm = elm_start + x * sizeof(*output) / sizeof(int32_t); in ia_css_s3a_vmem_decode()
360 for (k = 0; k < kmax; k++, elm++) { in ia_css_s3a_vmem_decode()
362 hi[elm + chunk * 0], lo[elm + chunk * 0]); in ia_css_s3a_vmem_decode()
364 hi[elm + chunk * 1], lo[elm + chunk * 1]); in ia_css_s3a_vmem_decode()
366 hi[elm + chunk * 2], lo[elm + chunk * 2]); in ia_css_s3a_vmem_decode()
368 hi[elm + chunk * 3], lo[elm + chunk * 3]); in ia_css_s3a_vmem_decode()
370 hi[elm + chunk * 4], lo[elm + chunk * 4]); in ia_css_s3a_vmem_decode()
372 hi[elm + chunk * 5], lo[elm + chunk * 5]); in ia_css_s3a_vmem_decode()
374 hi[elm + chunk * 6], lo[elm + chunk * 6]); in ia_css_s3a_vmem_decode()
[all …]
/openbmc/linux/drivers/infiniband/core/
H A Duverbs_uapi.c18 void *elm; in uapi_add_elm() local
24 elm = kzalloc(alloc_size, GFP_KERNEL); in uapi_add_elm()
25 if (!elm) in uapi_add_elm()
27 rc = radix_tree_insert(&uapi->radix, key, elm); in uapi_add_elm()
29 kfree(elm); in uapi_add_elm()
33 return elm; in uapi_add_elm()
39 void *elm; in uapi_add_get_elm() local
41 elm = uapi_add_elm(uapi, key, alloc_size); in uapi_add_get_elm()
42 if (!IS_ERR(elm)) { in uapi_add_get_elm()
44 return elm; in uapi_add_get_elm()
[all …]
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Domap_elm.c6 * BCH Error Location Module (ELM) support.
21 #define DRIVER_NAME "omap-elm"
24 struct elm *elm_cfg;
135 * elm_config - Configure ELM module
138 * Configure ELM module based on BCH level.
167 * elm_reset - Do a soft reset of ELM
169 * Perform a soft reset of ELM and return after reset is done.
184 * elm_init - Initialize ELM module
186 * Initialize ELM support. Currently it does only base address init
187 * and ELM reset.
[all …]
H A DKconfig115 bool "Enable ELM driver for OMAPxx and AMxx platforms."
118 ELM controller is used for ECC error detection (not ECC calculation)
120 Some legacy platforms like OMAP3xx do not have in-built ELM h/w engine,
336 bool "Enables SPL-NAND driver which supports ELM based"
340 Hardware ECC correction. This is useful for platforms which have ELM
342 Some legacy platforms like OMAP3xx do not have in-built ELM h/w engine,
/openbmc/u-boot/include/linux/mtd/
H A Domap_elm.h11 * ELM Module Registers
14 /* ELM registers bit fields */
52 /* BCH ELM register map - do not try to allocate memmory for this structure.
53 * We have used plenty of reserved variables to fill the slots in the ELM
55 * Directly initialize the struct pointer to ELM base address.
57 struct elm { struct
H A Domap_gpmc.h23 /* 4-bit ECC calculation by GPMC, Error detection by ELM */
27 /* 8-bit ECC calculation by GPMC, Error detection by ELM */
29 /* 16-bit ECC calculation by GPMC, Error detection by ELM */
/openbmc/linux/Documentation/devicetree/bindings/arm/
H A Dmediatek.yaml106 - description: Google Elm (Acer Chromebook R13)
108 - const: google,elm-rev8
109 - const: google,elm-rev7
110 - const: google,elm-rev6
111 - const: google,elm-rev5
112 - const: google,elm-rev4
113 - const: google,elm-rev3
114 - const: google,elm
/openbmc/qemu/migration/
H A Dvmstate-types.c611 void *elm; in get_qtailq() local
627 elm = g_malloc(size); in get_qtailq()
628 ret = vmstate_load_state(f, vmsd, elm, version_id); in get_qtailq()
632 QTAILQ_RAW_INSERT_TAIL(pv, elm, entry_offset); in get_qtailq()
646 void *elm; in put_qtailq() local
651 QTAILQ_RAW_FOREACH(elm, pv, entry_offset) { in put_qtailq()
653 ret = vmstate_save_state(f, vmsd, elm, vmdesc); in put_qtailq()
828 void *elm; in put_qlist() local
832 QLIST_RAW_FOREACH(elm, pv, entry_offset) { in put_qlist()
834 ret = vmstate_save_state(f, vmsd, elm, vmdesc); in put_qlist()
[all …]
/openbmc/u-boot/doc/
H A DREADME.nand193 ELM controller is used for ECC error detection (not ECC calculation)
195 Some legacy platforms like OMAP3xx do not have in-built ELM h/w engine,
201 Enables SPL-NAND driver (am335x_spl_bch.c) which supports ELM based
202 hardware ECC correction. This is useful for platforms which have ELM
204 Some legacy platforms like OMAP3xx do not have in-built ELM h/w engine,
226 (For legacy device which do not have ELM h/w engine)
230 - error detection using ELM hardware engine.
234 - error detection using ELM hardware engine.
241 Some legacy OMAP SoC do not have ELM h/w engine thus such
/openbmc/linux/tools/firewire/
H A Dlist.h56 #define list_next(elm, member) \ argument
57 list_entry((elm)->member.next, typeof(*elm), member)
/openbmc/linux/include/linux/platform_data/
H A Dmtd-nand-omap2.h35 /* 4-bit ECC calculation by GPMC, Error detection by ELM */
39 /* 8-bit ECC calculation by GPMC, Error detection by ELM */
41 /* 16-bit ECC calculation by GPMC, Error detection by ELM */
H A Delm.h17 /* ELM support 8 error syndrome process */
21 * struct elm_errorvec - error vector for elm
/openbmc/linux/drivers/net/fddi/skfp/h/
H A Dsupern_2.h19 added defines for the Motorola ELM (MOT_ELM)
742 * Special Quad-Elm Registers.
743 * A Quad-ELM consists of for ELMs and these additional registers.
745 #define QELM_XBAR_W 0x80 /* Crossbar Control ELM W */
746 #define QELM_XBAR_X 0x81 /* Crossbar Control ELM X */
747 #define QELM_XBAR_Y 0x82 /* Crossbar Control ELM Y */
748 #define QELM_XBAR_Z 0x83 /* Crossbar Control ELM Z */
759 #define QELM_ELMB 0x00 /* Elm base */
760 #define QELM_ELM_SIZE 0x20 /* ELM size */
866 #define PLC_INT_MASK 0xc000 /* ELM integration bits in status A */
[all …]

12345