/drivers/iommu/ |
D | msm_iommu_hw-8xxx.h | 20 #define SET_GLOBAL_REG_N(b, n, r, v) SET_GLOBAL_REG(b, ((r) + (n << 2)), (v)) argument 21 #define GET_GLOBAL_REG_N(b, n, r) GET_GLOBAL_REG(b, ((r) + (n << 2))) argument 24 #define GET_GLOBAL_FIELD(b, r, F) GET_FIELD(((b) + (r)), F##_MASK, F##_SHIFT) argument 25 #define GET_CONTEXT_FIELD(b, c, r, F) \ argument 28 #define SET_GLOBAL_FIELD(b, r, F, v) \ argument 30 #define SET_CONTEXT_FIELD(b, c, r, F, v) \ argument 84 #define SET_M2VCBR_N(b, N, v) SET_GLOBAL_REG_N(M2VCBR_N, N, (b), (v)) argument 85 #define SET_CBACR_N(b, N, v) SET_GLOBAL_REG_N(CBACR_N, N, (b), (v)) argument 86 #define SET_TLBRSW(b, v) SET_GLOBAL_REG(TLBRSW, (b), (v)) argument 87 #define SET_TLBTR0(b, v) SET_GLOBAL_REG(TLBTR0, (b), (v)) argument [all …]
|
/drivers/staging/media/atomisp/pci/hive_isp_css_include/ |
D | math_support.h | 32 #define IMPLIES(a, b) (!(a) || (b)) argument 36 #define MAX(a, b) (((a) > (b)) ? (a) : (b)) argument 37 #define MIN(a, b) (((a) < (b)) ? (a) : (b)) argument 39 #define ROUND_DIV(a, b) (((b) != 0) ? ((a) + ((b) >> 1)) / (b) : 0) argument 40 #define CEIL_DIV(a, b) (((b) != 0) ? ((a) + (b) - 1) / (b) : 0) argument 41 #define CEIL_MUL(a, b) (CEIL_DIV(a, b) * (b)) argument 42 #define CEIL_MUL2(a, b) (((a) + (b) - 1) & ~((b) - 1)) argument 43 #define CEIL_SHIFT(a, b) (((a) + (1 << (b)) - 1) >> (b)) argument 44 #define CEIL_SHIFT_MUL(a, b) (CEIL_SHIFT(a, b) << (b)) argument 45 #define ROUND_HALF_DOWN_DIV(a, b) (((b) != 0) ? ((a) + (b / 2) - 1) / (b) : 0) argument [all …]
|
/drivers/crypto/cavium/cpt/ |
D | cpt_common.h | 49 #define CPTX_PF_MBOX_INTX(a, b) \ argument 51 #define CPTX_PF_MBOX_INT_W1SX(a, b) \ argument 53 #define CPTX_PF_MBOX_ENA_W1CX(a, b) \ argument 55 #define CPTX_PF_MBOX_ENA_W1SX(a, b) \ argument 61 #define CPTX_PF_GX_EN(a, b) \ argument 83 #define CPTX_PF_EXE_DBG_CNTX(a, b) \ argument 86 #define CPTX_PF_EXE_EPCI_INBX_CNT(a, b) \ argument 88 #define CPTX_PF_EXE_EPCI_OUTBX_CNT(a, b) \ argument 90 #define CPTX_PF_ENGX_UCODE_BASE(a, b) \ argument 92 #define CPTX_PF_QX_CTL(a, b) \ argument [all …]
|
/drivers/gpu/drm/i915/gt/ |
D | intel_breadcrumbs.c | 61 static void __intel_breadcrumbs_arm_irq(struct intel_breadcrumbs *b) in __intel_breadcrumbs_arm_irq() 83 static void intel_breadcrumbs_arm_irq(struct intel_breadcrumbs *b) in intel_breadcrumbs_arm_irq() 94 static void __intel_breadcrumbs_disarm_irq(struct intel_breadcrumbs *b) in __intel_breadcrumbs_disarm_irq() 104 static void intel_breadcrumbs_disarm_irq(struct intel_breadcrumbs *b) in intel_breadcrumbs_disarm_irq() 112 static void add_signaling_context(struct intel_breadcrumbs *b, in add_signaling_context() 122 static bool remove_signaling_context(struct intel_breadcrumbs *b, in remove_signaling_context() 184 static void add_retire(struct intel_breadcrumbs *b, struct intel_timeline *tl) in add_retire() 211 struct intel_breadcrumbs *b = container_of(work, typeof(*b), irq_work); in signal_irq_work() local 305 struct intel_breadcrumbs *b; in intel_breadcrumbs_create() local 323 void intel_breadcrumbs_reset(struct intel_breadcrumbs *b) in intel_breadcrumbs_reset() [all …]
|
/drivers/misc/ |
D | vmw_balloon.c | 422 static inline void vmballoon_stats_op_inc(struct vmballoon *b, unsigned int op, in vmballoon_stats_op_inc() 429 static inline void vmballoon_stats_gen_inc(struct vmballoon *b, in vmballoon_stats_gen_inc() 436 static inline void vmballoon_stats_gen_add(struct vmballoon *b, in vmballoon_stats_gen_add() 444 static inline void vmballoon_stats_page_inc(struct vmballoon *b, in vmballoon_stats_page_inc() 452 static inline void vmballoon_stats_page_add(struct vmballoon *b, in vmballoon_stats_page_add() 462 __vmballoon_cmd(struct vmballoon *b, unsigned long cmd, unsigned long arg1, in __vmballoon_cmd() 508 vmballoon_cmd(struct vmballoon *b, unsigned long cmd, unsigned long arg1, in vmballoon_cmd() 520 static int vmballoon_send_start(struct vmballoon *b, unsigned long req_caps) in vmballoon_send_start() 564 static int vmballoon_send_guest_id(struct vmballoon *b) in vmballoon_send_guest_id() 637 static int vmballoon_send_get_target(struct vmballoon *b) in vmballoon_send_get_target() [all …]
|
/drivers/md/bcache/ |
D | btree.c | 104 #define insert_lock(s, b) ((b)->level <= (s)->lock) argument 107 static inline struct bset *write_block(struct btree *b) in write_block() 112 static void bch_btree_init_next(struct btree *b) in bch_btree_init_next() 139 static uint64_t btree_csum_set(struct btree *b, struct bset *i) in btree_csum_set() 148 void bch_btree_node_read_done(struct btree *b) in bch_btree_node_read_done() 243 static void bch_btree_node_read(struct btree *b) in bch_btree_node_read() 281 static void btree_complete_write(struct btree *b, struct btree_write *w) in btree_complete_write() 298 struct btree *b = container_of(cl, struct btree, io); in btree_node_write_unlock() local 305 struct btree *b = container_of(cl, struct btree, io); in __btree_node_write_done() local 320 struct btree *b = container_of(cl, struct btree, io); in btree_node_write_done() local [all …]
|
D | alloc.c | 76 uint8_t bch_inc_gen(struct cache *ca, struct bucket *b) in bch_inc_gen() 89 struct bucket *b; in bch_rescale_priorities() local 125 static inline bool can_inc_bucket_gen(struct bucket *b) in can_inc_bucket_gen() 130 bool bch_can_invalidate_bucket(struct cache *ca, struct bucket *b) in bch_can_invalidate_bucket() 140 void __bch_invalidate_one_bucket(struct cache *ca, struct bucket *b) in __bch_invalidate_one_bucket() 153 static void bch_invalidate_one_bucket(struct cache *ca, struct bucket *b) in bch_invalidate_one_bucket() 169 #define bucket_prio(b) \ argument 181 struct bucket *b; in invalidate_buckets_lru() local 218 struct bucket *b; in invalidate_buckets_fifo() local 241 struct bucket *b; in invalidate_buckets_random() local [all …]
|
D | bset.c | 21 void bch_dump_bset(struct btree_keys *b, struct bset *i, unsigned int set) in bch_dump_bset() 43 void bch_dump_bucket(struct btree_keys *b) in bch_dump_bucket() 54 int __bch_count_data(struct btree_keys *b) in __bch_count_data() 66 void __bch_check_keys(struct btree_keys *b, const char *fmt, ...) in __bch_check_keys() 268 static inline size_t btree_keys_bytes(struct btree_keys *b) in btree_keys_bytes() 273 static inline size_t btree_keys_cachelines(struct btree_keys *b) in btree_keys_cachelines() 279 static inline size_t bset_tree_bytes(struct btree_keys *b) in bset_tree_bytes() 285 static inline size_t bset_prev_bytes(struct btree_keys *b) in bset_prev_bytes() 292 void bch_btree_keys_free(struct btree_keys *b) in bch_btree_keys_free() 315 int bch_btree_keys_alloc(struct btree_keys *b, in bch_btree_keys_alloc() [all …]
|
D | bset.h | 234 static inline struct bset_tree *bset_tree_last(struct btree_keys *b) in bset_tree_last() 239 static inline bool bset_written(struct btree_keys *b, struct bset_tree *t) in bset_written() 244 static inline bool bkey_written(struct btree_keys *b, struct bkey *k) in bkey_written() 249 static inline unsigned int bset_byte_offset(struct btree_keys *b, in bset_byte_offset() 255 static inline unsigned int bset_sector_offset(struct btree_keys *b, in bset_sector_offset() 269 static inline size_t bch_btree_keys_u64s_remaining(struct btree_keys *b) in bch_btree_keys_u64s_remaining() 284 static inline struct bset *bset_next_set(struct btree_keys *b, in bset_next_set() 320 struct btree_keys *b; member 346 static inline struct bkey *bch_bset_search(struct btree_keys *b, in bch_bset_search() 353 #define for_each_key_filter(b, k, iter, filter) \ argument [all …]
|
D | extents.c | 128 struct btree *b = container_of(keys, struct btree, keys); in bch_bkey_dump() local 168 struct btree *b = container_of(bk, struct btree, keys); in bch_btree_ptr_invalid() local 173 static bool btree_ptr_bad_expensive(struct btree *b, const struct bkey *k) in btree_ptr_bad_expensive() 207 struct btree *b = container_of(bk, struct btree, keys); in bch_btree_ptr_bad() local 232 struct btree *b = container_of(bk, struct btree, keys); in bch_btree_ptr_insert_fixup() local 323 static bool bch_extent_insert_fixup(struct btree_keys *b, in bch_extent_insert_fixup() 502 struct btree *b = container_of(bk, struct btree, keys); in bch_extent_invalid() local 507 static bool bch_extent_bad_expensive(struct btree *b, const struct bkey *k, in bch_extent_bad_expensive() 539 struct btree *b = container_of(bk, struct btree, keys); in bch_extent_bad() local 585 struct btree *b = container_of(bk, struct btree, keys); in bch_extent_merge() local
|
D | btree.h | 170 static inline struct btree_write *btree_current_write(struct btree *b) in btree_current_write() 175 static inline struct btree_write *btree_prev_write(struct btree *b) in btree_prev_write() 180 static inline struct bset *btree_bset_first(struct btree *b) in btree_bset_first() 185 static inline struct bset *btree_bset_last(struct btree *b) in btree_bset_last() 190 static inline unsigned int bset_block_offset(struct btree *b, struct bset *i) in bset_block_offset() 204 #define for_each_cached_btree(b, c, iter) \ argument 248 static inline void rw_lock(bool w, struct btree *b, int level) in rw_lock() 256 static inline void rw_unlock(bool w, struct btree *b) in rw_unlock() 328 #define bcache_btree(fn, key, b, op, ...) \ argument
|
D | io.c | 19 struct bbio *b = container_of(bio, struct bbio, bio); in bch_bbio_free() local 26 struct bbio *b = mempool_alloc(&c->bio_meta, GFP_NOIO); in bch_bbio_alloc() local 36 struct bbio *b = container_of(bio, struct bbio, bio); in __bch_submit_bbio() local 48 struct bbio *b = container_of(bio, struct bbio, bio); in bch_submit_bbio() local 139 struct bbio *b = container_of(bio, struct bbio, bio); in bch_bbio_count_io_errors() local
|
/drivers/md/ |
D | dm-bufio.c | 244 static void buffer_record_stack(struct dm_buffer *b) in buffer_record_stack() 256 struct dm_buffer *b; in __find() local 273 struct dm_buffer *b; in __find_next() local 293 static void __insert(struct dm_bufio_client *c, struct dm_buffer *b) in __insert() 315 static void __remove(struct dm_bufio_client *c, struct dm_buffer *b) in __remove() 322 static void adjust_total_allocated(struct dm_buffer *b, bool unlink) in adjust_total_allocated() 472 struct dm_buffer *b = kmem_cache_alloc(c->slab_buffer, gfp_mask); in alloc_buffer() local 494 static void free_buffer(struct dm_buffer *b) in free_buffer() 505 static void __link_buffer(struct dm_buffer *b, sector_t block, int dirty) in __link_buffer() 522 static void __unlink_buffer(struct dm_buffer *b) in __unlink_buffer() [all …]
|
D | dm-cache-background-tracker.c | 34 struct background_tracker *b = kmalloc(sizeof(*b), GFP_KERNEL); in btracker_create() local 61 void btracker_destroy(struct background_tracker *b) in btracker_destroy() 79 static bool __insert_pending(struct background_tracker *b, in __insert_pending() 108 static struct bt_work *__find_pending(struct background_tracker *b, in __find_pending() 133 static void update_stats(struct background_tracker *b, struct policy_work *w, int delta) in update_stats() 150 unsigned btracker_nr_writebacks_queued(struct background_tracker *b) in btracker_nr_writebacks_queued() 156 unsigned btracker_nr_demotions_queued(struct background_tracker *b) in btracker_nr_demotions_queued() 162 static bool max_work_reached(struct background_tracker *b) in max_work_reached() 169 static struct bt_work *alloc_work(struct background_tracker *b) in alloc_work() 177 int btracker_queue(struct background_tracker *b, in btracker_queue() [all …]
|
D | dm-cache-block-types.h | 24 static inline dm_oblock_t to_oblock(dm_block_t b) in to_oblock() 29 static inline dm_block_t from_oblock(dm_oblock_t b) in from_oblock() 34 static inline dm_cblock_t to_cblock(uint32_t b) in to_cblock() 39 static inline uint32_t from_cblock(dm_cblock_t b) in from_cblock() 44 static inline dm_dblock_t to_dblock(dm_block_t b) in to_dblock() 49 static inline dm_block_t from_dblock(dm_dblock_t b) in from_dblock()
|
/drivers/block/drbd/ |
D | drbd_bitmap.c | 115 struct drbd_bitmap *b = device->bitmap; in __bm_print_lock_info() local 126 struct drbd_bitmap *b = device->bitmap; in drbd_bm_lock() local 153 struct drbd_bitmap *b = device->bitmap; in drbd_bm_unlock() local 213 struct drbd_bitmap *b = device->bitmap; in bm_page_lock_io() local 220 struct drbd_bitmap *b = device->bitmap; in bm_page_unlock_io() local 256 struct drbd_bitmap *b = device->bitmap; in drbd_bm_mark_for_writeout() local 296 static unsigned int bm_word_to_page_idx(struct drbd_bitmap *b, unsigned long long_nr) in bm_word_to_page_idx() 304 static unsigned int bm_bit_to_page_idx(struct drbd_bitmap *b, u64 bitnr) in bm_bit_to_page_idx() 312 static unsigned long *__bm_map_pidx(struct drbd_bitmap *b, unsigned int idx) in __bm_map_pidx() 318 static unsigned long *bm_map_pidx(struct drbd_bitmap *b, unsigned int idx) in bm_map_pidx() [all …]
|
/drivers/crypto/marvell/octeontx/ |
D | otx_cpt_hw_types.h | 27 #define OTX_CPT_BAR_E_CPTX_VFX_BAR0_OFFSET(a, b) \ argument 63 #define OTX_CPT_PF_MBOX_INTX(b) (0x400ll | (u64)(b) << 3) argument 64 #define OTX_CPT_PF_MBOX_INT_W1SX(b) (0x420ll | (u64)(b) << 3) argument 65 #define OTX_CPT_PF_MBOX_ENA_W1CX(b) (0x440ll | (u64)(b) << 3) argument 66 #define OTX_CPT_PF_MBOX_ENA_W1SX(b) (0x460ll | (u64)(b) << 3) argument 71 #define OTX_CPT_PF_GX_EN(b) (0x600ll | (u64)(b) << 3) argument 91 #define OTX_CPT_PF_EXE_DBG_CNTX(b) (0x4001100ll | (u64)(b) << 3) argument 93 #define OTX_CPT_PF_EXE_EPCI_INBX_CNT(b) (0x4001200ll | (u64)(b) << 3) argument 94 #define OTX_CPT_PF_EXE_EPCI_OUTBX_CNT(b) (0x4001240ll | (u64)(b) << 3) argument 95 #define OTX_CPT_PF_ENGX_UCODE_BASE(b) (0x4002000ll | (u64)(b) << 3) argument [all …]
|
/drivers/md/persistent-data/ |
D | dm-space-map-common.c | 23 struct dm_block *b, in index_prepare_for_write() 35 struct dm_block *b, in index_check() 73 struct dm_block *b, in dm_bitmap_prepare_for_write() 85 struct dm_block *b, in dm_bitmap_check() 120 static void *dm_bitmap_data(struct dm_block *b) in dm_bitmap_data() 127 static unsigned dm_bitmap_word_used(void *addr, unsigned b) in dm_bitmap_word_used() 138 static unsigned sm_lookup_bitmap(void *addr, unsigned b) in sm_lookup_bitmap() 150 static void sm_set_bitmap(void *addr, unsigned b, unsigned val) in sm_set_bitmap() 255 struct dm_block *b; in sm_ll_extend() local 277 int sm_ll_lookup_bitmap(struct ll_disk *ll, dm_block_t b, uint32_t *result) in sm_ll_lookup_bitmap() [all …]
|
D | dm-space-map-metadata.c | 119 enum block_op_type type, dm_block_t b) in brb_push() 181 static int add_bop(struct sm_metadata *smm, enum block_op_type type, dm_block_t b) in add_bop() 300 static int sm_metadata_get_count(struct dm_space_map *sm, dm_block_t b, in sm_metadata_get_count() 341 dm_block_t b, int *result) in sm_metadata_count_is_more_than_one() 392 static int sm_metadata_set_count(struct dm_space_map *sm, dm_block_t b, in sm_metadata_set_count() 411 static int sm_metadata_inc_block(struct dm_space_map *sm, dm_block_t b) in sm_metadata_inc_block() 428 static int sm_metadata_dec_block(struct dm_space_map *sm, dm_block_t b) in sm_metadata_dec_block() 445 static int sm_metadata_new_block_(struct dm_space_map *sm, dm_block_t *b) in sm_metadata_new_block_() 482 static int sm_metadata_new_block(struct dm_space_map *sm, dm_block_t *b) in sm_metadata_new_block() 610 static int sm_bootstrap_get_count(struct dm_space_map *sm, dm_block_t b, in sm_bootstrap_get_count() [all …]
|
D | dm-transaction-manager.c | 31 static unsigned prefetch_hash(dm_block_t b) in prefetch_hash() 49 static void prefetch_add(struct prefetch_set *p, dm_block_t b) in prefetch_add() 103 static int is_shadow(struct dm_transaction_manager *tm, dm_block_t b) in is_shadow() 124 static void insert_shadow(struct dm_transaction_manager *tm, dm_block_t b) in insert_shadow() 328 int dm_tm_read_lock(struct dm_transaction_manager *tm, dm_block_t b, in dm_tm_read_lock() 345 void dm_tm_unlock(struct dm_transaction_manager *tm, struct dm_block *b) in dm_tm_unlock() 351 void dm_tm_inc(struct dm_transaction_manager *tm, dm_block_t b) in dm_tm_inc() 362 void dm_tm_dec(struct dm_transaction_manager *tm, dm_block_t b) in dm_tm_dec() 373 int dm_tm_ref(struct dm_transaction_manager *tm, dm_block_t b, in dm_tm_ref()
|
D | dm-block-manager.c | 300 static void report_recursive_bug(dm_block_t b, int r) in report_recursive_bug() 328 static struct dm_buffer *to_buffer(struct dm_block *b) in to_buffer() 333 dm_block_t dm_block_location(struct dm_block *b) in dm_block_location() 339 void *dm_block_data(struct dm_block *b) in dm_block_data() 455 int dm_bm_read_lock(struct dm_block_manager *bm, dm_block_t b, in dm_bm_read_lock() 489 dm_block_t b, struct dm_block_validator *v, in dm_bm_write_lock() 525 dm_block_t b, struct dm_block_validator *v, in dm_bm_read_try_lock() 558 dm_block_t b, struct dm_block_validator *v, in dm_bm_write_lock_zero() 588 void dm_bm_unlock(struct dm_block *b) in dm_bm_unlock() 612 void dm_bm_prefetch(struct dm_block_manager *bm, dm_block_t b) in dm_bm_prefetch()
|
D | dm-space-map.h | 97 static inline int dm_sm_get_count(struct dm_space_map *sm, dm_block_t b, in dm_sm_get_count() 104 dm_block_t b, int *result) in dm_sm_count_is_more_than_one() 109 static inline int dm_sm_set_count(struct dm_space_map *sm, dm_block_t b, in dm_sm_set_count() 120 static inline int dm_sm_inc_block(struct dm_space_map *sm, dm_block_t b) in dm_sm_inc_block() 125 static inline int dm_sm_dec_block(struct dm_space_map *sm, dm_block_t b) in dm_sm_dec_block() 130 static inline int dm_sm_new_block(struct dm_space_map *sm, dm_block_t *b) in dm_sm_new_block()
|
/drivers/gpu/drm/amd/display/dc/dml/ |
D | dml_inline_defs.h | 32 static inline double dml_min(double a, double b) in dml_min() 37 static inline double dml_min3(double a, double b, double c) in dml_min3() 42 static inline double dml_min4(double a, double b, double c, double d) in dml_min4() 47 static inline double dml_max(double a, double b) in dml_max() 52 static inline double dml_max3(double a, double b, double c) in dml_max3() 57 static inline double dml_max4(double a, double b, double c, double d) in dml_max4() 62 static inline double dml_max5(double a, double b, double c, double d, double e) in dml_max5()
|
/drivers/gpu/drm/nouveau/include/nvif/ |
D | object.h | 43 #define nvif_rd(a,f,b,c) ({ \ argument 52 #define nvif_wr(a,f,b,c,d) ({ \ argument 59 #define nvif_rd08(a,b) ({ ((u8)nvif_rd((a), ioread8, 1, (b))); }) argument 60 #define nvif_rd16(a,b) ({ ((u16)nvif_rd((a), ioread16_native, 2, (b))); }) argument 61 #define nvif_rd32(a,b) ({ ((u32)nvif_rd((a), ioread32_native, 4, (b))); }) argument 62 #define nvif_wr08(a,b,c) nvif_wr((a), iowrite8, 1, (b), (u8)(c)) argument 63 #define nvif_wr16(a,b,c) nvif_wr((a), iowrite16_native, 2, (b), (u16)(c)) argument 64 #define nvif_wr32(a,b,c) nvif_wr((a), iowrite32_native, 4, (b), (u32)(c)) argument 65 #define nvif_mask(a,b,c,d) ({ \ argument 72 #define nvif_mthd(a,b,c,d) nvif_object_mthd((a), (b), (c), (d)) argument
|
/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
D | aux.h | 32 #define AUX_MSG(b,l,f,a...) do { \ argument 36 #define AUX_ERR(b,f,a...) AUX_MSG((b), error, f, ##a) argument 37 #define AUX_DBG(b,f,a...) AUX_MSG((b), debug, f, ##a) argument 38 #define AUX_TRACE(b,f,a...) AUX_MSG((b), trace, f, ##a) argument
|