xarray.h (95ee2897e98f5d444f26ed2334cc7c439f9c16c6) xarray.h (66f9a98335dcc2a3c1eead0d80ccc9fee12bbb31)
1/*-
2 * Copyright (c) 2020 Mellanox Technologies, Ltd.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 81 unchanged lines hidden (view full) ---

90void *__xa_next(struct xarray *, unsigned long *, bool);
91
92#define xa_store_irq(xa, index, ptr, gfp) \
93 xa_store((xa), (index), (ptr), (gfp))
94
95#define xa_erase_irq(xa, index) \
96 xa_erase((xa), (index))
97
1/*-
2 * Copyright (c) 2020 Mellanox Technologies, Ltd.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 81 unchanged lines hidden (view full) ---

90void *__xa_next(struct xarray *, unsigned long *, bool);
91
92#define xa_store_irq(xa, index, ptr, gfp) \
93 xa_store((xa), (index), (ptr), (gfp))
94
95#define xa_erase_irq(xa, index) \
96 xa_erase((xa), (index))
97
98#define xa_lock_irq(xa) xa_lock(xa)
99#define xa_unlock_irq(xa) xa_unlock(xa)
100
98#define xa_lock_irqsave(xa, flags) \
99 do { \
100 xa_lock((xa)); \
101 flags = 0; \
102 } while (0)
103
104#define xa_unlock_irqrestore(xa, flags) \
105 do { \

--- 40 unchanged lines hidden ---
101#define xa_lock_irqsave(xa, flags) \
102 do { \
103 xa_lock((xa)); \
104 flags = 0; \
105 } while (0)
106
107#define xa_unlock_irqrestore(xa, flags) \
108 do { \

--- 40 unchanged lines hidden ---